Skip to content

Commit 794b209

Browse files
Merge pull request #11 from synonymdev/feat/add-description
Feat/add description
2 parents 4131285 + 90d678d commit 794b209

File tree

12 files changed

+91
-17
lines changed

12 files changed

+91
-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.2"
3+
version = "0.6.1-rc.3"
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.2"
7-
let checksum = "c7c6373886f0a6d673d0921c8ffd57bb2ad9e3df07ec4e62ee937d83c1f79496"
6+
let tag = "v0.6.1-rc.3"
7+
let checksum = "da5c2248d7b6c69b68626e89c9a44012b99232f8163e33bbd4292c9367cb06a2"
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.2"
34+
ldk-node-android = { module = "com.github.synonymdev:ldk-node", version = "v0.6.1-rc.3"
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.2
5+
libraryVersion=v0.6.1-rc.3
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
@@ -10269,7 +10269,8 @@ sealed class PaymentKind {
1026910269
data class Bolt11(
1027010270
val `hash`: PaymentHash,
1027110271
val `preimage`: PaymentPreimage?,
10272-
val `secret`: PaymentSecret?) : PaymentKind() {
10272+
val `secret`: PaymentSecret?,
10273+
val `description`: kotlin.String?) : PaymentKind() {
1027310274
companion object
1027410275
}
1027510276

@@ -10278,7 +10279,8 @@ sealed class PaymentKind {
1027810279
val `preimage`: PaymentPreimage?,
1027910280
val `secret`: PaymentSecret?,
1028010281
val `counterpartySkimmedFeeMsat`: kotlin.ULong?,
10281-
val `lspFeeLimits`: LspFeeLimits) : PaymentKind() {
10282+
val `lspFeeLimits`: LspFeeLimits,
10283+
val `description`: kotlin.String?) : PaymentKind() {
1028210284
companion object
1028310285
}
1028410286

@@ -10323,13 +10325,15 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1032310325
FfiConverterTypePaymentHash.read(buf),
1032410326
FfiConverterOptionalTypePaymentPreimage.read(buf),
1032510327
FfiConverterOptionalTypePaymentSecret.read(buf),
10328+
FfiConverterOptionalString.read(buf),
1032610329
)
1032710330
3 -> PaymentKind.Bolt11Jit(
1032810331
FfiConverterTypePaymentHash.read(buf),
1032910332
FfiConverterOptionalTypePaymentPreimage.read(buf),
1033010333
FfiConverterOptionalTypePaymentSecret.read(buf),
1033110334
FfiConverterOptionalULong.read(buf),
1033210335
FfiConverterTypeLSPFeeLimits.read(buf),
10336+
FfiConverterOptionalString.read(buf),
1033310337
)
1033410338
4 -> PaymentKind.Bolt12Offer(
1033510339
FfiConverterOptionalTypePaymentHash.read(buf),
@@ -10370,6 +10374,7 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1037010374
+ FfiConverterTypePaymentHash.allocationSize(value.`hash`)
1037110375
+ FfiConverterOptionalTypePaymentPreimage.allocationSize(value.`preimage`)
1037210376
+ FfiConverterOptionalTypePaymentSecret.allocationSize(value.`secret`)
10377+
+ FfiConverterOptionalString.allocationSize(value.`description`)
1037310378
)
1037410379
}
1037510380
is PaymentKind.Bolt11Jit -> {
@@ -10381,6 +10386,7 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1038110386
+ FfiConverterOptionalTypePaymentSecret.allocationSize(value.`secret`)
1038210387
+ FfiConverterOptionalULong.allocationSize(value.`counterpartySkimmedFeeMsat`)
1038310388
+ FfiConverterTypeLSPFeeLimits.allocationSize(value.`lspFeeLimits`)
10389+
+ FfiConverterOptionalString.allocationSize(value.`description`)
1038410390
)
1038510391
}
1038610392
is PaymentKind.Bolt12Offer -> {
@@ -10429,6 +10435,7 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1042910435
FfiConverterTypePaymentHash.write(value.`hash`, buf)
1043010436
FfiConverterOptionalTypePaymentPreimage.write(value.`preimage`, buf)
1043110437
FfiConverterOptionalTypePaymentSecret.write(value.`secret`, buf)
10438+
FfiConverterOptionalString.write(value.`description`, buf)
1043210439
Unit
1043310440
}
1043410441
is PaymentKind.Bolt11Jit -> {
@@ -10438,6 +10445,7 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1043810445
FfiConverterOptionalTypePaymentSecret.write(value.`secret`, buf)
1043910446
FfiConverterOptionalULong.write(value.`counterpartySkimmedFeeMsat`, buf)
1044010447
FfiConverterTypeLSPFeeLimits.write(value.`lspFeeLimits`, buf)
10448+
FfiConverterOptionalString.write(value.`description`, buf)
1044110449
Unit
1044210450
}
1044310451
is PaymentKind.Bolt12Offer -> {

bindings/ldk_node.udl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ interface ClosureReason {
429429
[Enum]
430430
interface PaymentKind {
431431
Onchain(Txid txid, ConfirmationStatus status);
432-
Bolt11(PaymentHash hash, PaymentPreimage? preimage, PaymentSecret? secret);
433-
Bolt11Jit(PaymentHash hash, PaymentPreimage? preimage, PaymentSecret? secret, u64? counterparty_skimmed_fee_msat, LSPFeeLimits lsp_fee_limits);
432+
Bolt11(PaymentHash hash, PaymentPreimage? preimage, PaymentSecret? secret, string? description);
433+
Bolt11Jit(PaymentHash hash, PaymentPreimage? preimage, PaymentSecret? secret, u64? counterparty_skimmed_fee_msat, LSPFeeLimits lsp_fee_limits, string? description);
434434
Bolt12Offer(PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret, OfferId offer_id, UntrustedString? payer_note, u64? quantity);
435435
Bolt12Refund(PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret, UntrustedString? payer_note, u64? quantity);
436436
Spontaneous(PaymentHash hash, PaymentPreimage? preimage);

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?
7333+
case bolt11(hash: PaymentHash, preimage: PaymentPreimage?, secret: PaymentSecret?, description: String?
73347334
)
7335-
case bolt11Jit(hash: PaymentHash, preimage: PaymentPreimage?, secret: PaymentSecret?, counterpartySkimmedFeeMsat: UInt64?, lspFeeLimits: LspFeeLimits
7335+
case bolt11Jit(hash: PaymentHash, preimage: PaymentPreimage?, secret: PaymentSecret?, counterpartySkimmedFeeMsat: UInt64?, lspFeeLimits: LspFeeLimits, description: 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)
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)
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)
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)
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,20 +7382,22 @@ public struct FfiConverterTypePaymentKind: FfiConverterRustBuffer {
73827382
FfiConverterTypeConfirmationStatus.write(status, into: &buf)
73837383

73847384

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

73917392

7392-
case let .bolt11Jit(hash,preimage,secret,counterpartySkimmedFeeMsat,lspFeeLimits):
7393+
case let .bolt11Jit(hash,preimage,secret,counterpartySkimmedFeeMsat,lspFeeLimits,description):
73937394
writeInt(&buf, Int32(3))
73947395
FfiConverterTypePaymentHash.write(hash, into: &buf)
73957396
FfiConverterOptionTypePaymentPreimage.write(preimage, into: &buf)
73967397
FfiConverterOptionTypePaymentSecret.write(secret, into: &buf)
73977398
FfiConverterOptionUInt64.write(counterpartySkimmedFeeMsat, into: &buf)
73987399
FfiConverterTypeLSPFeeLimits.write(lspFeeLimits, into: &buf)
7400+
FfiConverterOptionString.write(description, into: &buf)
73997401

74007402

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

0 commit comments

Comments
 (0)