diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 83d989c..333f75b 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 || '0.2.15' }} - package-version: '0.2.15' + sdk-ref: ${{ inputs.sdk-ref || '0.3.1' }} + package-version: '0.3.1' steps: - run: echo "set pre-setup output variables" diff --git a/snippets/dart_snippets/pubspec.lock b/snippets/dart_snippets/pubspec.lock index e4d421d..3d5008d 100644 --- a/snippets/dart_snippets/pubspec.lock +++ b/snippets/dart_snippets/pubspec.lock @@ -55,7 +55,7 @@ packages: path: "packages/breez-sdk-flutter" relative: true source: path - version: "0.2.15" + version: "0.3.1" build: dependency: transitive description: diff --git a/snippets/go/go.mod b/snippets/go/go.mod index 72cea3c..6e80afd 100644 --- a/snippets/go/go.mod +++ b/snippets/go/go.mod @@ -2,6 +2,6 @@ module main go 1.19 -require github.com/breez/breez-sdk-go v0.2.15 +require github.com/breez/breez-sdk-go v0.3.1 replace github.com/breez/breez-sdk-go => ./packages/breez-sdk-go diff --git a/snippets/go/receive_onchain.go b/snippets/go/receive_onchain.go index a8941a4..15980df 100644 --- a/snippets/go/receive_onchain.go +++ b/snippets/go/receive_onchain.go @@ -52,7 +52,7 @@ func ExecuteRefund() { // ANCHOR_END: execute-refund } -func GetChannelOpeningFees(amountMsat uint64) { +func GetChannelOpeningFees(amountMsat *uint64) { // ANCHOR: get-channel-opening-fees if channelFees, err := sdk.OpenChannelFee(breez_sdk.OpenChannelFeeRequest{AmountMsat: amountMsat}); err == nil { log.Printf("%#v", channelFees) diff --git a/snippets/kotlin_mpp_lib/shared/build.gradle.kts b/snippets/kotlin_mpp_lib/shared/build.gradle.kts index 180d043..8a4a4c4 100644 --- a/snippets/kotlin_mpp_lib/shared/build.gradle.kts +++ b/snippets/kotlin_mpp_lib/shared/build.gradle.kts @@ -34,7 +34,7 @@ kotlin { } val commonMain by getting { dependencies { - implementation("technology.breez:breez-sdk-kmp:0.2.15") + implementation("technology.breez:breez-sdk-kmp:0.3.1") } } } diff --git a/snippets/react-native/yarn.lock b/snippets/react-native/yarn.lock index d50c693..00f5db9 100644 --- a/snippets/react-native/yarn.lock +++ b/snippets/react-native/yarn.lock @@ -714,10 +714,10 @@ "@babel/helper-validator-identifier" "^7.22.20" to-fast-properties "^2.0.0" -"@breeztech/react-native-breez-sdk@0.2.15": - version "0.2.15" - resolved "https://registry.yarnpkg.com/@breeztech/react-native-breez-sdk/-/react-native-breez-sdk-0.2.15.tgz#0a415747e94b08f0dbbca8aae23f2d4231881db3" - integrity sha512-VxT4wdZCyDrhZBe6heHJKUJc1nbVJ4Y0qbOm1B+LJa6JOq0YDooUFnbtHMq1PHQ3xviwuM1pCzAco0orWqnvDA== +"@breeztech/react-native-breez-sdk@0.3.1": + version "0.3.1" + resolved "https://registry.yarnpkg.com/@breeztech/react-native-breez-sdk/-/react-native-breez-sdk-0.3.1.tgz#d7c973dc5e044c5ab55d8ef1766cca76ecbf704e" + integrity sha512-birjzRzVRq12EhBa4oX3G2WrXtvj2PxuZ4zHXWU6G3e6FiFehYxaQXaPHzymNEM7DZuWcwC/GV6irX4xvyFRHw== "@esbuild/android-arm64@0.18.20": version "0.18.20" diff --git a/snippets/rust/Cargo.lock b/snippets/rust/Cargo.lock index b04bb38..beb68e9 100644 --- a/snippets/rust/Cargo.lock +++ b/snippets/rust/Cargo.lock @@ -497,14 +497,13 @@ dependencies = [ [[package]] name = "breez-sdk-core" -version = "0.2.15" -source = "git+https://github.com/breez/breez-sdk?tag=0.2.15#5486f167e046d28b0a3f9885b4bf9c44cd3e1ba8" +version = "0.3.1" +source = "git+https://github.com/breez/breez-sdk?tag=0.3.1#6fe250b2bad4109c7ed2ba75c552ab51e34b1fe4" dependencies = [ "aes", "anyhow", "base64 0.13.1", "bip21", - "bitcoin 0.29.2", "cbc", "chrono", "const_format", @@ -2257,9 +2256,9 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "reqwest" -version = "0.11.23" +version = "0.11.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37b1ae8d9ac08420c66222fb9096fc5de435c3c48542bc5336c51892cffafb41" +checksum = "3e9ad3fe7488d7e34558a2033d45a0c90b72d97b4f80705666fea71472e2e6a1" dependencies = [ "base64 0.21.7", "bytes", @@ -2286,7 +2285,6 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded", - "system-configuration", "tokio", "tokio-native-tls", "tokio-rustls 0.24.1", @@ -2853,27 +2851,6 @@ dependencies = [ "unicode-xid", ] -[[package]] -name = "system-configuration" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" -dependencies = [ - "bitflags 1.3.2", - "core-foundation", - "system-configuration-sys", -] - -[[package]] -name = "system-configuration-sys" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" -dependencies = [ - "core-foundation-sys", - "libc", -] - [[package]] name = "tempfile" version = "3.9.0" diff --git a/snippets/rust/Cargo.toml b/snippets/rust/Cargo.toml index 12e4ee0..71137fc 100644 --- a/snippets/rust/Cargo.toml +++ b/snippets/rust/Cargo.toml @@ -6,6 +6,6 @@ edition = "2021" [dependencies] anyhow = "1" bip39 = { version = "2", features = ["rand"] } -breez-sdk-core = { git = "https://github.com/breez/breez-sdk", tag = "0.2.15" } +breez-sdk-core = { git = "https://github.com/breez/breez-sdk", tag = "0.3.1" } log = "0.4" tokio = "1.29" diff --git a/snippets/rust/src/receive_onchain.rs b/snippets/rust/src/receive_onchain.rs index b215774..be79cc4 100644 --- a/snippets/rust/src/receive_onchain.rs +++ b/snippets/rust/src/receive_onchain.rs @@ -61,7 +61,7 @@ async fn execute_refund( Ok(()) } -async fn get_channel_opening_fees(sdk: Arc, amount_msat: u64) -> Result<()> { +async fn get_channel_opening_fees(sdk: Arc, amount_msat: Option) -> Result<()> { // ANCHOR: get-channel-opening-fees let channel_fees = sdk .open_channel_fee(OpenChannelFeeRequest { diff --git a/snippets/swift/BreezSDKExamples/Package.resolved b/snippets/swift/BreezSDKExamples/Package.resolved index 2efd42e..bad7720 100644 --- a/snippets/swift/BreezSDKExamples/Package.resolved +++ b/snippets/swift/BreezSDKExamples/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/breez/breez-sdk-swift", "state" : { - "revision" : "73c7bf88ce51471f4a6313aa583fa1a5394442f7", - "version" : "0.2.15" + "revision" : "a1b7c9065c2803d86d736850969dfe9fdbdde5b0", + "version" : "0.3.1" } }, { diff --git a/snippets/swift/BreezSDKExamples/Package.swift b/snippets/swift/BreezSDKExamples/Package.swift index 77c13a1..43d177f 100644 --- a/snippets/swift/BreezSDKExamples/Package.swift +++ b/snippets/swift/BreezSDKExamples/Package.swift @@ -8,7 +8,7 @@ let package = Package( platforms: [.macOS(.v13)], dependencies: [ .package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.3"), - .package(url: "https://github.com/breez/breez-sdk-swift", from:"0.2.15") + .package(url: "https://github.com/breez/breez-sdk-swift", from:"0.3.1") ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. diff --git a/src/guide/install.md b/src/guide/install.md index 023769e..12daf93 100644 --- a/src/guide/install.md +++ b/src/guide/install.md @@ -93,7 +93,7 @@ Check https://github.com/breez/breez-sdk/releases for the latest version. ```toml [dependencies] -breez-sdk-core = { git = "https://github.com/breez/breez-sdk", tag = "0.2.15" } +breez-sdk-core = { git = "https://github.com/breez/breez-sdk", tag = "0.3.1" } ``` ## Flutter/Dart