From 4c7a87d0d652770515d631225937c614da545d60 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Mon, 30 Sep 2024 19:49:09 +0200 Subject: [PATCH] bump sdk to 0.6.1 --- .github/workflows/main.yml | 4 +- snippets/csharp/CommunicatingFees.cs | 4 +- snippets/csharp/LnurlPay.cs | 4 +- snippets/csharp/SendPayment.cs | 4 +- .../dart_snippets/lib/communicating_fees.dart | 4 +- snippets/dart_snippets/lib/lnurl_pay.dart | 2 + snippets/dart_snippets/lib/send_payment.dart | 4 +- snippets/go/communicating_fees.go | 4 +- snippets/go/lnurl_pay.go | 10 +- snippets/go/send_payment.go | 8 +- .../kotlin_mpp_lib/shared/build.gradle.kts | 2 +- .../example/kotlinmpplib/CommunicatingFees.kt | 4 +- .../com/example/kotlinmpplib/LnurlPay.kt | 4 +- .../com/example/kotlinmpplib/SendPayment.kt | 3 +- snippets/python/src/communicating_fees.py | 4 +- snippets/python/src/lnurl_pay.py | 3 +- snippets/python/src/send_payment.py | 3 +- snippets/react-native/communicating_fees.ts | 4 +- snippets/react-native/lnurl_pay.ts | 2 + snippets/react-native/send_payment.ts | 2 + snippets/rust/Cargo.lock | 940 +++++++++++++----- snippets/rust/Cargo.toml | 2 +- snippets/rust/src/communicating_fees.rs | 4 +- snippets/rust/src/getting_started.rs | 2 +- snippets/rust/src/lnurl_pay.rs | 4 +- snippets/rust/src/production.rs | 2 +- snippets/rust/src/send_payment.rs | 2 + snippets/swift/BreezSDKExamples/Package.swift | 2 +- .../Sources/CommunicatingFees.swift | 4 +- .../BreezSDKExamples/Sources/LnurlPay.swift | 3 +- .../Sources/SendPayment.swift | 3 +- src/guide/install.md | 4 +- 32 files changed, 745 insertions(+), 306 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2c8a785d..dc53ddac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,8 +25,8 @@ jobs: name: setup runs-on: ubuntu-latest outputs: - sdk-ref: ${{ inputs.sdk-ref || '10a4cd62fc39c1e0c56ab2bac3a26210f5515204' }} - package-version: '0.5.2' + sdk-ref: ${{ inputs.sdk-ref || '0.6.1' }} + package-version: '0.6.1' steps: - run: echo "set pre-setup output variables" diff --git a/snippets/csharp/CommunicatingFees.cs b/snippets/csharp/CommunicatingFees.cs index 1be3f349..d1b0007f 100644 --- a/snippets/csharp/CommunicatingFees.cs +++ b/snippets/csharp/CommunicatingFees.cs @@ -9,7 +9,7 @@ public void getFeeInfoBeforeInvoiceCreated(BlockingBreezServices sdk) { var nodeInfo = sdk.NodeInfo(); - var inboundLiquiditySat = nodeInfo?.inboundLiquidityMsats / 1_000; + var inboundLiquiditySat = nodeInfo?.maxReceivableSinglePaymentAmountMsat / 1_000; var openingFeeResponse = sdk.OpenChannelFee(new OpenChannelFeeRequest(null)); var openingFees = openingFeeResponse?.feeParams; @@ -59,7 +59,7 @@ public void getFeeInfoReceiveOnchain(BlockingBreezServices sdk) var maxDepositSat = swapInfo?.maxAllowedDeposit; var nodeInfo = sdk.NodeInfo(); - var inboundLiquiditySat = nodeInfo?.inboundLiquidityMsats / 1_000; + var inboundLiquiditySat = nodeInfo?.maxReceivableSinglePaymentAmountMsat / 1_000; var swapOpeningFees = swapInfo?.channelOpeningFees; if (swapOpeningFees != null) diff --git a/snippets/csharp/LnurlPay.cs b/snippets/csharp/LnurlPay.cs index ae4fc506..dbadf028 100644 --- a/snippets/csharp/LnurlPay.cs +++ b/snippets/csharp/LnurlPay.cs @@ -16,9 +16,11 @@ public void LnurlPay(BlockingBreezServices sdk) if (input is InputType.LnUrlPay lnurlp) { var amountMsat = lnurlp.data.minSendable; + var useTrampoline = false; var optionalComment = ""; var optionalPaymentLabel = "