Skip to content

Commit 5f82714

Browse files
Merge pull request #17 from LtbLightning/v0.1.1
v0.1.1
2 parents a2eb6d0 + 0178f7b commit 5f82714

29 files changed

+1430
-1819
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
## [0.1.1]
2+
Support `Dart 3` and `Flutter 3.10`
3+
4+
### Fixed
5+
- `setEntropyBip39Mnemonic` issue resolved
16
## [0.1.0]
27

3-
This is the first release of `ldk_node`. It features support for sourcing chain data via an `Esplora` server, filesystem persistence, gossip sourcing via the `Lightning` peer-to-peer network, and configurable entropy sources for the integrated LDK & BDK-based wallets.
8+
This is the first release of `ldk_node`. It features support for sourcing chain data via an `Esplora` server, filesystem persistence, gossip sourcing via the `Lightning` peer-to-peer network, and configurble entropy sources for the integrated LDK & BDK-based wallets.
49

510
### Functionality Added
611

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To use the `ldk_node` package in your project, add it as a dependency in your pr
1515

1616
```dart
1717
dependencies:
18-
ldk_node: ^0.1.0
18+
ldk_node: ^0.1.1
1919
```
2020
or add from pub.dev using `pub add` command
2121

-14.3 KB
Binary file not shown.
2.29 KB
Binary file not shown.
248 KB
Binary file not shown.

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ subprojects {
2626
project.evaluationDependsOn(':app')
2727
}
2828

29-
task clean(type: Delete) {
29+
tasks.register("clean", Delete) {
3030
delete rootProject.buildDir
3131
}

example/ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- ldk_node (0.0.1):
3+
- ldk_node (0.1.0):
44
- Flutter
55
- path_provider_foundation (0.0.1):
66
- Flutter
@@ -9,20 +9,20 @@ PODS:
99
DEPENDENCIES:
1010
- Flutter (from `Flutter`)
1111
- ldk_node (from `.symlinks/plugins/ldk_node/ios`)
12-
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/ios`)
12+
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
1313

1414
EXTERNAL SOURCES:
1515
Flutter:
1616
:path: Flutter
1717
ldk_node:
1818
:path: ".symlinks/plugins/ldk_node/ios"
1919
path_provider_foundation:
20-
:path: ".symlinks/plugins/path_provider_foundation/ios"
20+
:path: ".symlinks/plugins/path_provider_foundation/darwin"
2121

2222
SPEC CHECKSUMS:
2323
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
24-
ldk_node: 92b971316adccb8455bf39224c740f1cad90d2c9
25-
path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9
24+
ldk_node: 22f8295d7ea99b61dea82fe2819057a4e3d0e1d1
25+
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
2626

2727
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
2828

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@
230230
files = (
231231
);
232232
inputPaths = (
233+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
233234
);
234235
name = "Thin Binary";
235236
outputPaths = (
@@ -368,7 +369,7 @@
368369
"$(inherited)",
369370
"@executable_path/Frameworks",
370371
);
371-
PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkMobileExample;
372+
PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkNodeExample;
372373
PRODUCT_NAME = "$(TARGET_NAME)";
373374
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
374375
SWIFT_VERSION = 5.0;
@@ -497,7 +498,7 @@
497498
"$(inherited)",
498499
"@executable_path/Frameworks",
499500
);
500-
PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkMobileExample;
501+
PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkNodeExample;
501502
PRODUCT_NAME = "$(TARGET_NAME)";
502503
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
503504
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -520,7 +521,7 @@
520521
"$(inherited)",
521522
"@executable_path/Frameworks",
522523
);
523-
PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkMobileExample;
524+
PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkNodeExample;
524525
PRODUCT_NAME = "$(TARGET_NAME)";
525526
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
526527
SWIFT_VERSION = 5.0;
@@ -597,7 +598,7 @@
597598
"$(inherited)",
598599
"@executable_path/Frameworks",
599600
);
600-
PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkMobileExample;
601+
PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkNodeExample;
601602
PRODUCT_NAME = "$(TARGET_NAME)";
602603
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
603604
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -672,7 +673,7 @@
672673
"$(inherited)",
673674
"@executable_path/Frameworks",
674675
);
675-
PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkMobileExample;
676+
PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkNodeExample;
676677
PRODUCT_NAME = "$(TARGET_NAME)";
677678
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
678679
SWIFT_VERSION = 5.0;

example/lib/main.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:flutter/foundation.dart';
44
import 'package:flutter/material.dart';
55
import 'package:google_fonts/google_fonts.dart';
66
import 'package:ldk_node/ldk_node.dart' as ldk;
7-
// import 'package:path_provider/path_provider.dart';
7+
import 'package:path_provider/path_provider.dart';
88

99
void main() {
1010
runApp(const MyApp());
@@ -37,14 +37,14 @@ class _MyAppState extends State<MyApp> {
3737
Future<ldk.Config> initLdkConfig(String path, ldk.SocketAddr address) async {
3838
// Please replace this url with your Electrum RPC Api url
3939
// Please use 10.0.2.2, instead of 0.0.0.0
40-
//final directory = await getApplicationDocumentsDirectory();
41-
final nodePath = "{directory.path}/ldk_cache/$path";
40+
final directory = await getApplicationDocumentsDirectory();
41+
final nodePath = "${directory.path}/ldk_cache/$path";
4242
final esploraUrl =
4343
Platform.isAndroid ? "http://10.0.2.2:3002" : "http://0.0.0.0:3002";
4444
final config = ldk.Config(
4545
storageDirPath: nodePath,
4646
esploraServerUrl: esploraUrl,
47-
network: ldk.Network.Regtest,
47+
network: ldk.Network.regtest,
4848
listeningAddress: address,
4949
defaultCltvExpiryDelta: 144);
5050
return config;
@@ -59,6 +59,9 @@ class _MyAppState extends State<MyApp> {
5959
final aliceConfig = await initLdkConfig(
6060
'alice', const ldk.SocketAddr(ip: "0.0.0.0", port: 3006));
6161
ldk.Builder aliceBuilder = ldk.Builder.fromConfig(config: aliceConfig);
62+
aliceBuilder.setEntropyBip39Mnemonic(
63+
mnemonic:
64+
'certain sense kiss guide crumble hint transfer crime much stereo warm coral');
6265
aliceNode = await aliceBuilder.build();
6366
await aliceNode.start();
6467
final res = await aliceNode.nodeId();
@@ -118,7 +121,7 @@ class _MyAppState extends State<MyApp> {
118121

119122
Future<ldk.PaymentDetails?> listPayments(bool printPayments) async {
120123
final res = await aliceNode.listPaymentsWithFilter(
121-
paymentDirection: ldk.PaymentDirection.Outbound);
124+
paymentDirection: ldk.PaymentDirection.outbound);
122125
if (res.isNotEmpty) {
123126
if (printPayments) {
124127
if (kDebugMode) {

0 commit comments

Comments
 (0)