Skip to content

Commit 55d2772

Browse files
committed
update frb to v2.2.0
1 parent 32a8818 commit 55d2772

File tree

21 files changed

+4538
-58
lines changed

21 files changed

+4538
-58
lines changed

CHANGELOG.md

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
## [0.3.1]
2+
3+
Updated `flutter_rust_bridge` to `2.2.0`.
4+
15
## [0.3.0]
6+
27
Updated `flutter_rust_bridge` to `2.0.0`.
8+
39
#### APIs added
10+
411
- `buildWithFsStore` method is added in the `Builder` class allowing to use the filesystem storage backend.
5-
- Exposed `setLiquiditySourceLsps2` method to `Builder` to configure the `Node` instance to source the inbound liquidity.
12+
- Exposed `setLiquiditySourceLsps2` method to `Builder` to configure the `Node` instance to source the inbound liquidity.
613
- `nextEventAsync` method is added to `Node` class that allows polling the event queue asynchronously.
714
- `status` method has been added to `Node` allowing to retrieve information about the Node's status.
815
- `config` method added to get the config with which the `Node` was initialized.
@@ -11,60 +18,84 @@ Updated `flutter_rust_bridge` to `2.0.0`.
1118
- Support for creating and paying BOLT12 offers and refunds has been added.
1219
- Added `networkGraph` handler method allowing to query the network graph.
1320
- Added `forceCloseChannel` to `Node` class.
21+
1422
#### API changed
23+
1524
- All available balances outside of channel balances are now exposed via a unified `listBalances` interface method.
25+
1626
#### Fixed
27+
1728
Persisted peers are now correctly reconnected after startup.
1829

1930
## [0.2.2-dev]
31+
2032
Updated Rust and Flutter dependencies.
33+
2134
#### APIs added
35+
2236
- Expose `isRunning()` in `Node` class.
37+
2338
#### API changed
39+
2440
- Renamed `waitUntilNextHandled()` to `waitNextHandled`.
2541
- Renamed `listeningAddress()` to `listeningAddresses`.
2642
- Upgraded `BuilderException` to handle invalid `socketAddress` & `trustedPeers.
2743
- Upgraded `NodeException` to handle invalid `txid`.
44+
2845
#### Fixed
46+
2947
- Functions hang indefinitely on iOs devices
3048
- Android support bug resolved
3149
- Thread `frb_workerpool` panic on `SocketAddress`, `PublicKey`, `Address` `Bolt11Invoice`, `Config` and `Txid`.
3250

3351
## [0.2.0]
52+
3453
Updated `Rust` and `Flutter` dependencies.
3554

3655
## [0.1.3]
56+
3757
Updated `Rust` and `Flutter` dependencies.
3858
Invalid `BuilderException` bug resolved
59+
3960
#### APIs added
40-
- Expose `generate()` in `Mnemonic` class.
61+
62+
- Expose `generate()` in `Mnemonic` class.
63+
4164
#### API changed
65+
4266
- Remove `generateEntropyMnemonic()`.
4367

4468
## [0.1.2]
69+
4570
#### APIs added
71+
4672
- Expose `generateEntropyMnemonic` function - a utility method for generating a BIP39 mnemonic.
47-
- Expose `Node` class's `updateChannelConfig`, `verifySignature`, `signMessage`, `sendPaymentProbe`, `sendSpontaneousPaymentProbe` methods.
73+
- Expose `Node` class's `updateChannelConfig`, `verifySignature`, `signMessage`, `sendPaymentProbe`, `sendSpontaneousPaymentProbe` methods.
4874
- Add `ChannelConfig?` to node.connectOpenChannel() params - a `ChannelConfig` may now be specified on channel open or updated afterwards.
4975
- Expose `counterpartyNodeId`, `funding_txo` & `channelValueSats` in `ChannelDetails`.
5076
- Expose `trustedPeers0Conf` `probingLiquidityLimitMultiplier`, `logDirPath`, `onchainWalletSyncInterval_secs`, `walletSyncIntervalSecs`, &
51-
`feeRateCacheUpdateIntervalSecs` in `Config` - allowing inbound trusted 0conf channels.
77+
`feeRateCacheUpdateIntervalSecs` in `Config` - allowing inbound trusted 0conf channels.
5278
- Non-permanently connected peers are now included in node.listPeers().
5379

5480
#### API changed
81+
5582
- node.newFundingAddress renamed to `newOnchainAddress`.
5683
- node.sendToOnChainAddress renamed to `sendToOnchainAddress`.
5784
- node.sendAllToOnChainAddress renamed to `sendAllToOnchainAddress`.
5885
- Remove node.onChainBalance.
5986

6087
## [0.1.1-alpha]
88+
6189
Support `Dart 3` and `Flutter 3.10`
6290

6391
## [0.1.1]
92+
6493
Support `Dart 3` and `Flutter 3.10`
6594

6695
### Fixed
67-
- `setEntropyBip39Mnemonic` issue resolved
96+
97+
- `setEntropyBip39Mnemonic` issue resolved
98+
6899
## [0.1.0]
69100

70101
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.
@@ -135,4 +166,4 @@ This is the first release of `ldk_node`. It features support for sourcing chain
135166

136167
`stop`- Disconnects all peers, stops all running background tasks, and shuts down Node.
137168

138-
`syncWallets`- Sync the `LDK & BDK` wallets with the current chain state.
169+
`syncWallets`- Sync the `LDK & BDK` wallets with the current chain state.

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.10'
2+
ext.kotlin_version = '1.7.0'
33
repositories {
44
google()
55
mavenCentral()

example/pubspec.lock

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ packages:
143143
dependency: transitive
144144
description:
145145
name: flutter_rust_bridge
146-
sha256: f703c4b50e253e53efc604d50281bbaefe82d615856f8ae1e7625518ae252e98
146+
sha256: "7beb9cb4690916a6c4fd151d91dba53555ea258dbc029dd5f1bfba2e7bd32b86"
147147
url: "https://pub.dev"
148148
source: hosted
149-
version: "2.0.0"
149+
version: "2.2.0"
150150
flutter_test:
151151
dependency: "direct dev"
152152
description: flutter
@@ -213,18 +213,18 @@ packages:
213213
dependency: transitive
214214
description:
215215
name: leak_tracker
216-
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
216+
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
217217
url: "https://pub.dev"
218218
source: hosted
219-
version: "10.0.4"
219+
version: "10.0.5"
220220
leak_tracker_flutter_testing:
221221
dependency: transitive
222222
description:
223223
name: leak_tracker_flutter_testing
224-
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
224+
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
225225
url: "https://pub.dev"
226226
source: hosted
227-
version: "3.0.3"
227+
version: "3.0.5"
228228
leak_tracker_testing:
229229
dependency: transitive
230230
description:
@@ -253,18 +253,18 @@ packages:
253253
dependency: transitive
254254
description:
255255
name: material_color_utilities
256-
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
256+
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
257257
url: "https://pub.dev"
258258
source: hosted
259-
version: "0.8.0"
259+
version: "0.11.1"
260260
meta:
261261
dependency: transitive
262262
description:
263263
name: meta
264-
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
264+
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
265265
url: "https://pub.dev"
266266
source: hosted
267-
version: "1.12.0"
267+
version: "1.15.0"
268268
path:
269269
dependency: transitive
270270
description:
@@ -325,10 +325,10 @@ packages:
325325
dependency: transitive
326326
description:
327327
name: platform
328-
sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec"
328+
sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
329329
url: "https://pub.dev"
330330
source: hosted
331-
version: "3.1.4"
331+
version: "3.1.5"
332332
plugin_platform_interface:
333333
dependency: transitive
334334
description:
@@ -410,10 +410,10 @@ packages:
410410
dependency: transitive
411411
description:
412412
name: test_api
413-
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
413+
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
414414
url: "https://pub.dev"
415415
source: hosted
416-
version: "0.7.0"
416+
version: "0.7.2"
417417
typed_data:
418418
dependency: transitive
419419
description:
@@ -442,10 +442,10 @@ packages:
442442
dependency: transitive
443443
description:
444444
name: vm_service
445-
sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
445+
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
446446
url: "https://pub.dev"
447447
source: hosted
448-
version: "14.2.1"
448+
version: "14.2.4"
449449
web:
450450
dependency: transitive
451451
description:

ios/Classes/frb_generated.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,10 @@ void frbgen_ldk_node_wire__crate__api__spontaneous__ldk_spontaneous_payment_send
953953
uint64_t amount_msat,
954954
struct wire_cst_public_key *node_id);
955955

956+
void frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default(int64_t port_);
957+
958+
void frbgen_ldk_node_wire__crate__api__types__config_default(int64_t port_);
959+
956960
void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment(const void *ptr);
957961

958962
void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment(const void *ptr);
@@ -1234,6 +1238,8 @@ static int64_t dummy_method_to_enforce_bundling(void) {
12341238
dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address);
12351239
dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__spontaneous__ldk_spontaneous_payment_send);
12361240
dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes);
1241+
dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default);
1242+
dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__types__config_default);
12371243
dummy_var ^= ((int64_t) (void*) store_dart_post_cobject);
12381244
return dummy_var;
12391245
}

lib/src/generated/api/bolt11.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is automatically generated, so please do not edit it.
2-
// Generated by `flutter_rust_bridge`@ 2.0.0.
2+
// Generated by `flutter_rust_bridge`@ 2.2.0.
33

44
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
55

lib/src/generated/api/bolt12.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is automatically generated, so please do not edit it.
2-
// Generated by `flutter_rust_bridge`@ 2.0.0.
2+
// Generated by `flutter_rust_bridge`@ 2.2.0.
33

44
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
55

lib/src/generated/api/builder.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is automatically generated, so please do not edit it.
2-
// Generated by `flutter_rust_bridge`@ 2.0.0.
2+
// Generated by `flutter_rust_bridge`@ 2.2.0.
33

44
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
55

@@ -16,7 +16,7 @@ import 'types.dart';
1616
abstract class NodeBuilder implements RustOpaqueInterface {
1717
Builder get builder;
1818

19-
void set builder(Builder builder);
19+
set builder(Builder builder);
2020

2121
Future<LdkNode> build();
2222

lib/src/generated/api/graph.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is automatically generated, so please do not edit it.
2-
// Generated by `flutter_rust_bridge`@ 2.0.0.
2+
// Generated by `flutter_rust_bridge`@ 2.2.0.
33

44
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
55

lib/src/generated/api/node.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is automatically generated, so please do not edit it.
2-
// Generated by `flutter_rust_bridge`@ 2.0.0.
2+
// Generated by `flutter_rust_bridge`@ 2.2.0.
33

44
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
55

lib/src/generated/api/on_chain.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is automatically generated, so please do not edit it.
2-
// Generated by `flutter_rust_bridge`@ 2.0.0.
2+
// Generated by `flutter_rust_bridge`@ 2.2.0.
33

44
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
55

0 commit comments

Comments
 (0)