Skip to content

Commit

Permalink
Merge pull request #173 from breez/savage-0.4.3
Browse files Browse the repository at this point in the history
Pre-release v0.4.3 docs
  • Loading branch information
dangeross authored Jun 27, 2024
2 parents eae06bf + 24b82ea commit 3c98a86
Show file tree
Hide file tree
Showing 18 changed files with 512 additions and 366 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
name: setup
runs-on: ubuntu-latest
outputs:
sdk-ref: ${{ inputs.sdk-ref || 'd658f85c7c349bd7ed96c05c3d008b7b75e6273a' }}
package-version: '0.4.2-rc1'
sdk-ref: ${{ inputs.sdk-ref || 'a9d208a0b8aa074cd6ab0bc490ecd074c704197a' }}
package-version: '0.4.3-rc1'
steps:
- run: echo "set pre-setup output variables"

Expand Down
6 changes: 3 additions & 3 deletions snippets/csharp/Production.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ public NodeConfig ProductionNodeConfig() {
// ANCHOR: moving-to-production
// Read in your Greenlight credentials from the file
// system, environment variable or build config
var deviceKey = new List<byte>();
var deviceCert = new List<byte>();
var greenlightCredentials = new GreenlightCredentials(deviceKey, deviceCert);
var developerKey = new List<byte>();
var developerCert = new List<byte>();
var greenlightCredentials = new GreenlightCredentials(developerKey, developerCert);

var nodeConfig = new NodeConfig.Greenlight(
new GreenlightNodeConfig(greenlightCredentials, null)
Expand Down
8 changes: 4 additions & 4 deletions snippets/dart_snippets/lib/production.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ NodeConfig productionNodeConfig() {
// ANCHOR: moving-to-production
// Read in your Greenlight credentials from the file
// system, environment variable or build config
Uint8List deviceKey = Uint8List(0);
Uint8List deviceCert = Uint8List(0);
Uint8List developerKey = Uint8List(0);
Uint8List developerCert = Uint8List(0);
GreenlightCredentials greenlightCredentials = GreenlightCredentials(
deviceKey: deviceKey,
deviceCert: deviceCert,
developerKey: developerKey,
developerCert: developerCert,
);

NodeConfig nodeConfig = NodeConfig.greenlight(
Expand Down
2 changes: 1 addition & 1 deletion snippets/dart_snippets/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ packages:
path: "packages/breez-sdk-flutter"
relative: true
source: path
version: "0.4.2-rc1"
version: "0.4.3-rc1"
build:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion snippets/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module main

go 1.19

require github.com/breez/breez-sdk-go v0.4.0-rc5
require github.com/breez/breez-sdk-go v0.4.3-rc1

replace github.com/breez/breez-sdk-go => ./packages/breez-sdk-go
8 changes: 4 additions & 4 deletions snippets/go/production.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ func ProductionNodeConfig() breez_sdk.NodeConfig {
// ANCHOR: moving-to-production
// Read in your Greenlight credentials from the file
// system, environment variable or build config
deviceKey := []uint8{}
deviceCert := []uint8{}
developerKey := []uint8{}
developerCert := []uint8{}
greenlightCredentials := breez_sdk.GreenlightCredentials{
DeviceKey: deviceKey,
DeviceCert: deviceCert,
DeveloperKey: developerKey,
DeveloperCert: developerCert,
}

nodeConfig := breez_sdk.NodeConfigGreenlight{
Expand Down
2 changes: 1 addition & 1 deletion snippets/kotlin_mpp_lib/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ kotlin {
}
val commonMain by getting {
dependencies {
implementation("technology.breez:breez-sdk-kmp:0.4.2-rc1")
implementation("technology.breez:breez-sdk-kmp:0.4.3-rc1")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ class Production {
// ANCHOR: moving-to-production
// Read in your Greenlight credentials from the file
// system, environment variable or build config
val deviceKey = emptyList<UByte>()
val deviceCert = emptyList<UByte>()
val greenlightCredentials = GreenlightCredentials(deviceKey, deviceCert)
val developerKey = emptyList<UByte>()
val developerCert = emptyList<UByte>()
val greenlightCredentials = GreenlightCredentials(developerKey, developerCert)

val nodeConfig = NodeConfig.Greenlight(GreenlightNodeConfig(greenlightCredentials, null))
// ANCHOR_END: moving-to-production
Expand Down
6 changes: 3 additions & 3 deletions snippets/python/src/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ def production_node_config():
# ANCHOR: moving-to-production
# Read in your Greenlight credentials from the file
# system, environment variable or build config
deviceKey = []
deviceCert = []
greenlightCredentials = breez_sdk.GreenlightCredentials(deviceKey, deviceCert)
developerKey = []
developerCert = []
greenlightCredentials = breez_sdk.GreenlightCredentials(developerKey, developerCert)

node_config = breez_sdk.NodeConfig.GREENLIGHT(
breez_sdk.GreenlightNodeConfig(greenlightCredentials, None))
Expand Down
8 changes: 4 additions & 4 deletions snippets/react-native/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const productionNodeConfig = (): NodeConfig => {
// ANCHOR: moving-to-production
// Read in your Greenlight credentials from the file
// system, environment variable or build config
const deviceKey: number[] = []
const deviceCert: number[] = []
const developerKey: number[] = []
const developerCert: number[] = []
const greenlightCredentials: GreenlightCredentials = {
deviceKey,
deviceCert
developerKey,
developerCert
}

const nodeConfig: NodeConfig = {
Expand Down
Loading

0 comments on commit 3c98a86

Please sign in to comment.