react-native-nitro-ark 0.0.128 → 0.0.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,13 +6,43 @@ Pure C++ Nitro Modules for Ark client
6
6
 
7
7
  ```sh
8
8
  npm install react-native-nitro-ark react-native-nitro-modules
9
+ ```
9
10
 
10
11
  > `react-native-nitro-modules` is required as this library relies on [Nitro Modules](https://nitro.margelo.com/).
11
- ```
12
12
 
13
13
  ## Usage
14
+
14
15
  - Please check the [`src/index.tsx`](./src/index.tsx) file for all methods and type definitions.
15
16
 
17
+ ### Wallet snapshots
18
+
19
+ `createWalletSnapshot` uses SQLite Online Backup to create a consistent database image while the wallet remains loaded. The destination's parent directory must exist, and an existing destination is never overwritten.
20
+
21
+ ```ts
22
+ import {
23
+ createWalletSnapshot,
24
+ subscribeWalletStateChanges,
25
+ validateWalletSnapshot,
26
+ } from 'react-native-nitro-ark';
27
+
28
+ const snapshot = await createWalletSnapshot(snapshotPath);
29
+ // Persist snapshot.sha256 only after uploading snapshot.path successfully.
30
+
31
+ await validateWalletSnapshot(snapshot.path, {
32
+ network: snapshot.network,
33
+ walletFingerprint: snapshot.walletFingerprint,
34
+ });
35
+
36
+ const subscription = subscribeWalletStateChanges((event) => {
37
+ // Debounce databaseChanged events before creating the next snapshot.
38
+ // An initial event is emitted so clients can reconcile on startup.
39
+ });
40
+
41
+ subscription.stop();
42
+ ```
43
+
44
+ State-change `sequence` values are local to each subscription and reset on restart. They are backup scheduling signals, not durable wallet generations. Clients should compare the SHA-256 returned by a newly created startup snapshot with the last successfully uploaded snapshot.
45
+
16
46
  ## License
17
47
 
18
48
  MIT
package/cpp/NitroArk.hpp CHANGED
@@ -1,6 +1,7 @@
1
1
  #pragma once
2
2
 
3
3
  #include "BarkNotificationSubscription.hpp"
4
+ #include "WalletStateChangeSubscription.hpp"
4
5
  #include "HybridNitroArkSpec.hpp"
5
6
  #include "generated/ark_cxx.h"
6
7
  #include "generated/cxx.h"
@@ -55,6 +56,16 @@ inline PendingRoundStatus convertRustPendingRoundStatus(const bark_cxx::PendingR
55
56
  return status;
56
57
  }
57
58
 
59
+ inline std::optional<DelegatedRoundState>
60
+ convertRustDelegatedRoundState(const bark_cxx::DelegatedRoundState& state_rs) {
61
+ if (!state_rs.has_round) {
62
+ return std::nullopt;
63
+ }
64
+ DelegatedRoundState state;
65
+ state.round_id = static_cast<double>(state_rs.round_id);
66
+ return state;
67
+ }
68
+
58
69
  inline LightningPaymentResult convertRustLightningPaymentResult(const bark_cxx::LightningPaymentResult& rust_result) {
59
70
  LightningPaymentResult result;
60
71
  result.state = std::string(rust_result.state.data(), rust_result.state.length());
@@ -259,6 +270,12 @@ private:
259
270
  subscriptions_.push_back(subscription);
260
271
  }
261
272
 
273
+ void trackStateChangeSubscription(
274
+ const std::shared_ptr<HybridWalletStateChangeSubscriptionSpec>& subscription) {
275
+ std::lock_guard<std::mutex> lock(state_change_subscriptions_mutex_);
276
+ state_change_subscriptions_.push_back(subscription);
277
+ }
278
+
262
279
  void stopAllSubscriptions() {
263
280
  std::vector<std::shared_ptr<HybridBarkNotificationSubscriptionSpec>> active_subscriptions;
264
281
  {
@@ -280,6 +297,44 @@ private:
280
297
  } catch (...) {
281
298
  }
282
299
  }
300
+
301
+ std::vector<std::shared_ptr<HybridWalletStateChangeSubscriptionSpec>> active_state_change_subscriptions;
302
+ {
303
+ std::lock_guard<std::mutex> lock(state_change_subscriptions_mutex_);
304
+ auto it = state_change_subscriptions_.begin();
305
+ while (it != state_change_subscriptions_.end()) {
306
+ if (auto subscription = it->lock()) {
307
+ active_state_change_subscriptions.push_back(std::move(subscription));
308
+ ++it;
309
+ } else {
310
+ it = state_change_subscriptions_.erase(it);
311
+ }
312
+ }
313
+ }
314
+ for (const auto& subscription : active_state_change_subscriptions) {
315
+ try {
316
+ subscription->stop();
317
+ } catch (...) {
318
+ }
319
+ }
320
+ }
321
+
322
+ static WalletSnapshotInfo convertWalletSnapshotInfo(const bark_cxx::WalletSnapshotInfo& info) {
323
+ WalletSnapshotInfo result;
324
+ result.path = std::string(info.path.data(), info.path.length());
325
+ result.sizeBytes = static_cast<double>(info.size_bytes);
326
+ result.sha256 = std::string(info.sha256.data(), info.sha256.length());
327
+ result.network = std::string(info.network.data(), info.network.length());
328
+ result.walletFingerprint =
329
+ std::string(info.wallet_fingerprint.data(), info.wallet_fingerprint.length());
330
+ if (!info.server_pubkey.empty()) {
331
+ result.serverPubkey = std::string(info.server_pubkey.data(), info.server_pubkey.length());
332
+ }
333
+ if (!info.mailbox_pubkey.empty()) {
334
+ result.mailboxPubkey = std::string(info.mailbox_pubkey.data(), info.mailbox_pubkey.length());
335
+ }
336
+ result.schemaVersion = static_cast<double>(info.schema_version);
337
+ return result;
283
338
  }
284
339
 
285
340
  // Helper function to create ConfigOpts from BarkConfigOpts
@@ -390,6 +445,51 @@ public:
390
445
  });
391
446
  }
392
447
 
448
+ std::shared_ptr<Promise<WalletSnapshotInfo>>
449
+ createWalletSnapshot(const std::string& destinationPath) override {
450
+ return Promise<WalletSnapshotInfo>::async([destinationPath]() {
451
+ try {
452
+ return convertWalletSnapshotInfo(bark_cxx::create_wallet_snapshot(destinationPath));
453
+ } catch (const rust::Error& e) {
454
+ throw std::runtime_error(e.what());
455
+ }
456
+ });
457
+ }
458
+
459
+ std::shared_ptr<Promise<WalletSnapshotInfo>>
460
+ validateWalletSnapshot(const std::string& path,
461
+ const std::optional<WalletSnapshotExpectation>& expected) override {
462
+ return Promise<WalletSnapshotInfo>::async([path, expected]() {
463
+ try {
464
+ bark_cxx::WalletSnapshotExpectation expectedRs;
465
+ expectedRs.has_network = expected.has_value() && expected->network.has_value();
466
+ expectedRs.network = expectedRs.has_network ? *expected->network : "";
467
+ expectedRs.has_wallet_fingerprint =
468
+ expected.has_value() && expected->walletFingerprint.has_value();
469
+ expectedRs.wallet_fingerprint =
470
+ expectedRs.has_wallet_fingerprint ? *expected->walletFingerprint : "";
471
+ expectedRs.has_server_pubkey = expected.has_value() && expected->serverPubkey.has_value();
472
+ expectedRs.server_pubkey = expectedRs.has_server_pubkey ? *expected->serverPubkey : "";
473
+ return convertWalletSnapshotInfo(bark_cxx::validate_wallet_snapshot(path, expectedRs));
474
+ } catch (const rust::Error& e) {
475
+ throw std::runtime_error(e.what());
476
+ }
477
+ });
478
+ }
479
+
480
+ std::shared_ptr<HybridWalletStateChangeSubscriptionSpec>
481
+ subscribeWalletStateChanges(const std::function<void(const WalletStateChangeEvent&)>& onEvent) override {
482
+ try {
483
+ auto subscription = std::make_shared<WalletStateChangeSubscription>(
484
+ bark_cxx::subscribe_wallet_state_changes(),
485
+ std::function<void(const WalletStateChangeEvent&)>(onEvent));
486
+ trackStateChangeSubscription(subscription);
487
+ return subscription;
488
+ } catch (const rust::Error& e) {
489
+ throw std::runtime_error(e.what());
490
+ }
491
+ }
492
+
393
493
  std::shared_ptr<Promise<void>> refreshServer() override {
394
494
  return Promise<void>::async([]() {
395
495
  try {
@@ -1014,6 +1114,23 @@ public:
1014
1114
  });
1015
1115
  }
1016
1116
 
1117
+ std::shared_ptr<Promise<std::optional<DelegatedRoundState>>>
1118
+ refreshVtxosDelegated(const std::vector<std::string>& vtxoIds) override {
1119
+ return Promise<std::optional<DelegatedRoundState>>::async([vtxoIds]() {
1120
+ try {
1121
+ rust::Vec<rust::String> rust_vtxo_ids;
1122
+ rust_vtxo_ids.reserve(vtxoIds.size());
1123
+ for (const auto& vtxoId : vtxoIds) {
1124
+ rust_vtxo_ids.push_back(vtxoId);
1125
+ }
1126
+ bark_cxx::DelegatedRoundState state = bark_cxx::refresh_vtxos_delegated(std::move(rust_vtxo_ids));
1127
+ return convertRustDelegatedRoundState(state);
1128
+ } catch (const rust::Error& e) {
1129
+ throw std::runtime_error(e.what());
1130
+ }
1131
+ });
1132
+ }
1133
+
1017
1134
  std::shared_ptr<Promise<std::optional<double>>> getFirstExpiringVtxoBlockheight() override {
1018
1135
  return Promise<std::optional<double>>::async([]() {
1019
1136
  try {
@@ -1528,6 +1645,35 @@ public:
1528
1645
  });
1529
1646
  }
1530
1647
 
1648
+ std::shared_ptr<Promise<BarkFeeEstimate>> estimateRefreshFee(const std::vector<std::string>& vtxoIds) override {
1649
+ return Promise<BarkFeeEstimate>::async([vtxoIds]() {
1650
+ try {
1651
+ rust::Vec<rust::String> rust_vtxo_ids;
1652
+ rust_vtxo_ids.reserve(vtxoIds.size());
1653
+ for (const auto& vtxoId : vtxoIds) {
1654
+ rust_vtxo_ids.push_back(vtxoId);
1655
+ }
1656
+ bark_cxx::BarkFeeEstimate rust_result = bark_cxx::estimate_refresh_fee(std::move(rust_vtxo_ids));
1657
+
1658
+ BarkFeeEstimate result;
1659
+ result.gross_amount_sat = static_cast<double>(rust_result.gross_amount_sat);
1660
+ result.fee_sat = static_cast<double>(rust_result.fee_sat);
1661
+ result.net_amount_sat = static_cast<double>(rust_result.net_amount_sat);
1662
+
1663
+ std::vector<std::string> vtxos_spent;
1664
+ vtxos_spent.reserve(rust_result.vtxos_spent.size());
1665
+ for (const auto& vtxo_id : rust_result.vtxos_spent) {
1666
+ vtxos_spent.push_back(std::string(vtxo_id.data(), vtxo_id.length()));
1667
+ }
1668
+ result.vtxos_spent = vtxos_spent;
1669
+
1670
+ return result;
1671
+ } catch (const rust::Error& e) {
1672
+ throw std::runtime_error(e.what());
1673
+ }
1674
+ });
1675
+ }
1676
+
1531
1677
  std::shared_ptr<Promise<std::string>> sendOnchain(const std::string& destination, double amountSat) override {
1532
1678
  return Promise<std::string>::async([destination, amountSat]() {
1533
1679
  try {
@@ -1622,6 +1768,8 @@ private:
1622
1768
  // Tag for logging/debugging within Nitro
1623
1769
  std::mutex subscriptions_mutex_;
1624
1770
  std::vector<std::weak_ptr<HybridBarkNotificationSubscriptionSpec>> subscriptions_;
1771
+ std::mutex state_change_subscriptions_mutex_;
1772
+ std::vector<std::weak_ptr<HybridWalletStateChangeSubscriptionSpec>> state_change_subscriptions_;
1625
1773
  static constexpr auto TAG = "NitroArk";
1626
1774
  };
1627
1775
 
@@ -0,0 +1,118 @@
1
+ #pragma once
2
+
3
+ #include "HybridWalletStateChangeSubscriptionSpec.hpp"
4
+ #include "WalletStateChangeEvent.hpp"
5
+ #include "generated/ark_cxx.h"
6
+ #include <atomic>
7
+ #include <functional>
8
+ #include <memory>
9
+ #include <mutex>
10
+ #include <thread>
11
+ #include <utility>
12
+
13
+ namespace margelo::nitro::nitroark {
14
+
15
+ class WalletStateChangeSubscription final : public HybridWalletStateChangeSubscriptionSpec {
16
+ public:
17
+ WalletStateChangeSubscription(rust::Box<bark_cxx::StateChangeSubscription> subscription,
18
+ std::function<void(const WalletStateChangeEvent&)>&& onEvent)
19
+ : HybridObject(TAG), state_(std::make_shared<State>(std::move(subscription), std::move(onEvent))) {
20
+ state_->worker = std::thread([state = state_]() { pumpEvents(state); });
21
+ }
22
+
23
+ ~WalletStateChangeSubscription() override {
24
+ stopInternal();
25
+ }
26
+
27
+ void stop() override {
28
+ stopInternal();
29
+ }
30
+
31
+ bool isActive() override {
32
+ if (!state_ || !state_->isActive.load()) {
33
+ return false;
34
+ }
35
+ std::lock_guard<std::mutex> lock(state_->subscriptionMutex);
36
+ return state_->subscription->is_active();
37
+ }
38
+
39
+ private:
40
+ struct State {
41
+ State(rust::Box<bark_cxx::StateChangeSubscription> nextSubscription,
42
+ std::function<void(const WalletStateChangeEvent&)>&& nextOnEvent)
43
+ : subscription(std::move(nextSubscription)), onEvent(std::move(nextOnEvent)) {}
44
+
45
+ rust::Box<bark_cxx::StateChangeSubscription> subscription;
46
+ std::function<void(const WalletStateChangeEvent&)> onEvent;
47
+ std::thread worker;
48
+ std::atomic<bool> isActive{true};
49
+ std::atomic<bool> cleanupScheduled{false};
50
+ std::mutex subscriptionMutex;
51
+ };
52
+
53
+ void stopInternal() {
54
+ if (!state_) {
55
+ return;
56
+ }
57
+ state_->isActive.store(false);
58
+ scheduleCleanup(state_);
59
+ }
60
+
61
+ static void scheduleCleanup(const std::shared_ptr<State>& state) {
62
+ if (state->cleanupScheduled.exchange(true)) {
63
+ return;
64
+ }
65
+ std::thread([state]() {
66
+ try {
67
+ std::lock_guard<std::mutex> lock(state->subscriptionMutex);
68
+ if (state->subscription->is_active()) {
69
+ state->subscription->stop();
70
+ }
71
+ } catch (...) {
72
+ }
73
+ joinWorker(state);
74
+ }).detach();
75
+ }
76
+
77
+ static void joinWorker(const std::shared_ptr<State>& state) {
78
+ if (!state->worker.joinable()) {
79
+ return;
80
+ }
81
+ if (state->worker.get_id() == std::this_thread::get_id()) {
82
+ state->worker.detach();
83
+ return;
84
+ }
85
+ state->worker.join();
86
+ }
87
+
88
+ static void pumpEvents(const std::shared_ptr<State>& state) {
89
+ try {
90
+ while (state->isActive.load()) {
91
+ bark_cxx::StateChangePollResult result;
92
+ {
93
+ std::lock_guard<std::mutex> lock(state->subscriptionMutex);
94
+ result = state->subscription->wait_next(250);
95
+ }
96
+ if (!state->isActive.load()) {
97
+ break;
98
+ }
99
+ if (result.has_event) {
100
+ WalletStateChangeEvent event;
101
+ event.sequence = static_cast<double>(result.event.sequence);
102
+ event.reason = std::string(result.event.reason.data(), result.event.reason.length());
103
+ state->onEvent(event);
104
+ }
105
+ if (!result.is_active) {
106
+ state->isActive.store(false);
107
+ break;
108
+ }
109
+ }
110
+ } catch (...) {
111
+ state->isActive.store(false);
112
+ }
113
+ }
114
+
115
+ std::shared_ptr<State> state_;
116
+ };
117
+
118
+ } // namespace margelo::nitro::nitroark
@@ -997,10 +997,16 @@ namespace bark_cxx {
997
997
  struct MailboxAuthorizationResult;
998
998
  struct NotificationEvent;
999
999
  struct NotificationPollResult;
1000
+ struct WalletSnapshotInfo;
1001
+ struct WalletSnapshotExpectation;
1002
+ struct StateChangeEvent;
1003
+ struct StateChangePollResult;
1000
1004
  struct BarkMovementDestination;
1001
1005
  struct BarkMovement;
1002
1006
  struct PendingRoundStatus;
1007
+ struct DelegatedRoundState;
1003
1008
  struct NotificationSubscription;
1009
+ struct StateChangeSubscription;
1004
1010
  }
1005
1011
 
1006
1012
  namespace bark_cxx {
@@ -1446,6 +1452,57 @@ struct NotificationPollResult final {
1446
1452
  };
1447
1453
  #endif // CXXBRIDGE1_STRUCT_bark_cxx$NotificationPollResult
1448
1454
 
1455
+ #ifndef CXXBRIDGE1_STRUCT_bark_cxx$WalletSnapshotInfo
1456
+ #define CXXBRIDGE1_STRUCT_bark_cxx$WalletSnapshotInfo
1457
+ struct WalletSnapshotInfo final {
1458
+ ::rust::String path;
1459
+ ::std::uint64_t size_bytes CXX_DEFAULT_VALUE(0);
1460
+ ::rust::String sha256;
1461
+ ::rust::String network;
1462
+ ::rust::String wallet_fingerprint;
1463
+ ::rust::String server_pubkey;
1464
+ ::rust::String mailbox_pubkey;
1465
+ ::std::uint32_t schema_version CXX_DEFAULT_VALUE(0);
1466
+
1467
+ using IsRelocatable = ::std::true_type;
1468
+ };
1469
+ #endif // CXXBRIDGE1_STRUCT_bark_cxx$WalletSnapshotInfo
1470
+
1471
+ #ifndef CXXBRIDGE1_STRUCT_bark_cxx$WalletSnapshotExpectation
1472
+ #define CXXBRIDGE1_STRUCT_bark_cxx$WalletSnapshotExpectation
1473
+ struct WalletSnapshotExpectation final {
1474
+ bool has_network CXX_DEFAULT_VALUE(false);
1475
+ ::rust::String network;
1476
+ bool has_wallet_fingerprint CXX_DEFAULT_VALUE(false);
1477
+ ::rust::String wallet_fingerprint;
1478
+ bool has_server_pubkey CXX_DEFAULT_VALUE(false);
1479
+ ::rust::String server_pubkey;
1480
+
1481
+ using IsRelocatable = ::std::true_type;
1482
+ };
1483
+ #endif // CXXBRIDGE1_STRUCT_bark_cxx$WalletSnapshotExpectation
1484
+
1485
+ #ifndef CXXBRIDGE1_STRUCT_bark_cxx$StateChangeEvent
1486
+ #define CXXBRIDGE1_STRUCT_bark_cxx$StateChangeEvent
1487
+ struct StateChangeEvent final {
1488
+ ::std::uint64_t sequence CXX_DEFAULT_VALUE(0);
1489
+ ::rust::String reason;
1490
+
1491
+ using IsRelocatable = ::std::true_type;
1492
+ };
1493
+ #endif // CXXBRIDGE1_STRUCT_bark_cxx$StateChangeEvent
1494
+
1495
+ #ifndef CXXBRIDGE1_STRUCT_bark_cxx$StateChangePollResult
1496
+ #define CXXBRIDGE1_STRUCT_bark_cxx$StateChangePollResult
1497
+ struct StateChangePollResult final {
1498
+ bool has_event CXX_DEFAULT_VALUE(false);
1499
+ bool is_active CXX_DEFAULT_VALUE(false);
1500
+ ::bark_cxx::StateChangeEvent event;
1501
+
1502
+ using IsRelocatable = ::std::true_type;
1503
+ };
1504
+ #endif // CXXBRIDGE1_STRUCT_bark_cxx$StateChangePollResult
1505
+
1449
1506
  #ifndef CXXBRIDGE1_STRUCT_bark_cxx$BarkMovementDestination
1450
1507
  #define CXXBRIDGE1_STRUCT_bark_cxx$BarkMovementDestination
1451
1508
  struct BarkMovementDestination final {
@@ -1472,6 +1529,16 @@ struct PendingRoundStatus final {
1472
1529
  };
1473
1530
  #endif // CXXBRIDGE1_STRUCT_bark_cxx$PendingRoundStatus
1474
1531
 
1532
+ #ifndef CXXBRIDGE1_STRUCT_bark_cxx$DelegatedRoundState
1533
+ #define CXXBRIDGE1_STRUCT_bark_cxx$DelegatedRoundState
1534
+ struct DelegatedRoundState final {
1535
+ bool has_round CXX_DEFAULT_VALUE(false);
1536
+ ::std::uint32_t round_id CXX_DEFAULT_VALUE(0);
1537
+
1538
+ using IsRelocatable = ::std::true_type;
1539
+ };
1540
+ #endif // CXXBRIDGE1_STRUCT_bark_cxx$DelegatedRoundState
1541
+
1475
1542
  #ifndef CXXBRIDGE1_STRUCT_bark_cxx$NotificationSubscription
1476
1543
  #define CXXBRIDGE1_STRUCT_bark_cxx$NotificationSubscription
1477
1544
  struct NotificationSubscription final : public ::rust::Opaque {
@@ -1489,6 +1556,23 @@ private:
1489
1556
  };
1490
1557
  #endif // CXXBRIDGE1_STRUCT_bark_cxx$NotificationSubscription
1491
1558
 
1559
+ #ifndef CXXBRIDGE1_STRUCT_bark_cxx$StateChangeSubscription
1560
+ #define CXXBRIDGE1_STRUCT_bark_cxx$StateChangeSubscription
1561
+ struct StateChangeSubscription final : public ::rust::Opaque {
1562
+ void stop();
1563
+ bool is_active() const noexcept;
1564
+ ::bark_cxx::StateChangePollResult wait_next(::std::uint32_t timeout_ms);
1565
+ ~StateChangeSubscription() = delete;
1566
+
1567
+ private:
1568
+ friend ::rust::layout;
1569
+ struct layout {
1570
+ static ::std::size_t size() noexcept;
1571
+ static ::std::size_t align() noexcept;
1572
+ };
1573
+ };
1574
+ #endif // CXXBRIDGE1_STRUCT_bark_cxx$StateChangeSubscription
1575
+
1492
1576
  void init_logger() noexcept;
1493
1577
 
1494
1578
  ::rust::String create_mnemonic();
@@ -1497,6 +1581,10 @@ bool is_wallet_loaded() noexcept;
1497
1581
 
1498
1582
  void close_wallet();
1499
1583
 
1584
+ ::bark_cxx::WalletSnapshotInfo create_wallet_snapshot(::rust::Str destination_path);
1585
+
1586
+ ::bark_cxx::WalletSnapshotInfo validate_wallet_snapshot(::rust::Str path, ::bark_cxx::WalletSnapshotExpectation expected);
1587
+
1500
1588
  ::bark_cxx::CxxArkInfo get_ark_info();
1501
1589
 
1502
1590
  ::bark_cxx::OffchainBalance offchain_balance();
@@ -1529,6 +1617,8 @@ void dangerous_drop_vtxo(::rust::Str vtxo_id);
1529
1617
 
1530
1618
  ::rust::Vec<::bark_cxx::BarkVtxo> get_expiring_vtxos(::std::uint32_t threshold);
1531
1619
 
1620
+ ::bark_cxx::DelegatedRoundState refresh_vtxos_delegated(::rust::Vec<::rust::String> vtxo_ids);
1621
+
1532
1622
  ::std::uint32_t const *get_first_expiring_vtxo_blockheight();
1533
1623
 
1534
1624
  ::std::uint32_t const *get_next_required_refresh_blockheight();
@@ -1571,6 +1661,8 @@ void validate_arkoor_address(::rust::Str address);
1571
1661
 
1572
1662
  ::bark_cxx::BarkFeeEstimate estimate_board_offchain_fee(::std::uint64_t amount_sat);
1573
1663
 
1664
+ ::bark_cxx::BarkFeeEstimate estimate_refresh_fee(::rust::Vec<::rust::String> vtxo_ids);
1665
+
1574
1666
  ::bark_cxx::BarkFeeEstimate estimate_lightning_send_fee(::std::uint64_t amount_sat);
1575
1667
 
1576
1668
  ::bark_cxx::LightningPaymentResult pay_lightning_invoice(::rust::Str destination, ::std::uint64_t const *amount_sat, bool wait);
@@ -1631,6 +1723,8 @@ void sync_exit();
1631
1723
 
1632
1724
  ::rust::Box<::bark_cxx::NotificationSubscription> subscribe_lightning_payment_movements(::rust::Str payment_hash);
1633
1725
 
1726
+ ::rust::Box<::bark_cxx::StateChangeSubscription> subscribe_wallet_state_changes();
1727
+
1634
1728
  ::bark_cxx::OnChainBalance onchain_balance();
1635
1729
 
1636
1730
  void onchain_sync();
@@ -76,6 +76,30 @@ export function closeWallet() {
76
76
  return NitroArkHybridObject.closeWallet();
77
77
  }
78
78
 
79
+ /**
80
+ * Creates a transactionally consistent SQLite snapshot of the loaded wallet.
81
+ * The destination must not already exist.
82
+ */
83
+ export function createWalletSnapshot(destinationPath) {
84
+ return NitroArkHybridObject.createWalletSnapshot(destinationPath);
85
+ }
86
+
87
+ /**
88
+ * Validates a wallet snapshot without modifying it. When expected identity
89
+ * fields are omitted, the loaded wallet identity is used when available.
90
+ */
91
+ export function validateWalletSnapshot(path, expected) {
92
+ return NitroArkHybridObject.validateWalletSnapshot(path, expected);
93
+ }
94
+
95
+ /**
96
+ * Observes committed native SQLite changes. Sequence values are local to this
97
+ * subscription and reset when a new subscription is created.
98
+ */
99
+ export function subscribeWalletStateChanges(onEvent) {
100
+ return NitroArkHybridObject.subscribeWalletStateChanges(onEvent);
101
+ }
102
+
79
103
  /**
80
104
  * Refreshes the server state.
81
105
  * @returns A promise that resolves on success or rejects on error.
@@ -144,6 +168,15 @@ export function maintenanceRefresh() {
144
168
  return NitroArkHybridObject.maintenanceRefresh();
145
169
  }
146
170
 
171
+ /**
172
+ * Refreshes the provided VTXOs in delegated mode.
173
+ * @param vtxoIds Array of VTXO ID strings to refresh.
174
+ * @returns A pending round state reference, or undefined if no VTXOs needed refresh.
175
+ */
176
+ export function refreshVtxosDelegated(vtxoIds) {
177
+ return NitroArkHybridObject.refreshVtxosDelegated(vtxoIds);
178
+ }
179
+
147
180
  /**
148
181
  * Synchronizes the wallet with the blockchain.
149
182
  * @returns A promise that resolves on success.
@@ -738,6 +771,15 @@ export function estimateBoardOffchainFee(amountSat) {
738
771
  return NitroArkHybridObject.estimateBoardOffchainFee(amountSat);
739
772
  }
740
773
 
774
+ /**
775
+ * Estimates the Ark protocol fee for refreshing the provided VTXOs.
776
+ * @param vtxoIds Array of VTXO ID strings to refresh.
777
+ * @returns A promise resolving to the fee estimate.
778
+ */
779
+ export function estimateRefreshFee(vtxoIds) {
780
+ return NitroArkHybridObject.estimateRefreshFee(vtxoIds);
781
+ }
782
+
741
783
  /**
742
784
  * Sends an onchain payment via an Ark round.
743
785
  * @param destination The destination Bitcoin address.
@@ -1 +1 @@
1
- {"version":3,"names":["NitroModules","NitroArkHybridObject","createHybridObject","enrichExitProgressStatus","result","state","rest","enrichExitVtxo","history","stateHistory","enrichExitStatus","createMnemonic","createWallet","datadir","opts","loadWallet","config","closeWallet","refreshServer","isWalletLoaded","syncPendingBoards","maintenance","maintenanceWithOnchain","maintenanceDelegated","maintenanceWithOnchainDelegated","maintenanceRefresh","sync","startExitForEntireWallet","startExitForVtxos","vtxoIds","syncExit","progressExits","feeRateSatPerKvb","then","results","map","getExitVtxos","listClaimable","getExitStatus","vtxoId","includeHistory","includeTransactions","undefined","hasPendingExits","pendingExitTotal","allClaimableAtHeight","drainExits","destinationAddress","extractTransaction","psbt","broadcastTransaction","txHex","syncPendingRounds","getArkInfo","offchainBalance","deriveStoreNextKeypair","peekKeyPair","index","peekAddress","newAddress","signMessage","message","signMesssageWithMnemonic","mnemonic","network","deriveKeypairFromMnemonic","verifyMessage","signature","publicKey","mailboxKeypair","mailboxAuthorization","authorizationExpiry","subscribeNotifications","onEvent","subscribeArkoorAddressMovements","address","subscribeLightningPaymentMovements","paymentHash","vtxos","decodeVtxoHex","vtxoHex","importVtxo","dangerousDropVtxo","getFirstExpiringVtxoBlockheight","getNextRequiredRefreshBlockheight","getExpiringVtxos","threshold","onchainBalance","onchainSync","onchainListUnspent","onchainUtxos","onchainFeeRates","onchainTransactions","onchainAddress","onchainSend","destination","amountSat","onchainDrain","onchainSendMany","outputs","bolt11Invoice","amountMsat","description","lightningReceiveStatus","checkLightningPayment","wait","tryClaimLightningReceive","token","tryClaimAllLightningReceives","payLightningInvoice","payLightningOffer","offer","payLightningAddress","addr","comment","estimateLightningSendFee","boardAmount","boardAll","validateArkoorAddress","sendArkoorPayment","estimateArkoorPaymentFee","estimateBoardOffchainFee","sendOnchain","estimateSendOnchain","offboardSpecific","offboardAll","estimateOffboardAll"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAA4B;AA6IzD,OAAO,MAAMC,oBAAoB,GAC/BD,YAAY,CAACE,kBAAkB,CAAW,UAAU,CAAC;AAEvD,SAASC,wBAAwBA,CAC/BC,MAAqC,EACX;EAC1B,MAAM;IAAEC,KAAK;IAAE,GAAGC;EAAK,CAAC,GAAGF,MAAM;EACjC,OAAO;IACL,GAAGE,IAAI;IACPD,KAAK,EAAEA;EACT,CAAC;AACH;AAEA,SAASE,cAAcA,CAACH,MAA2B,EAAkB;EACnE,MAAM;IAAEC,KAAK;IAAEG,OAAO,EAAEC,YAAY;IAAE,GAAGH;EAAK,CAAC,GAAGF,MAAM;EACxD,OAAO;IACL,GAAGE,IAAI;IACPD,KAAK,EAAEA,KAA0B;IACjCG,OAAO,EAAEC;EACX,CAAC;AACH;AAEA,SAASC,gBAAgBA,CAACN,MAA6B,EAAoB;EACzE,MAAM;IAAEC,KAAK;IAAEG,OAAO,EAAEC,YAAY;IAAE,GAAGH;EAAK,CAAC,GAAGF,MAAM;EACxD,OAAO;IACL,GAAGE,IAAI;IACPD,KAAK,EAAEA,KAA0B;IACjCG,OAAO,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AAC;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASyB,wBAAwBA,CACtCzB,SAAiB,EACS;EAC1B,OAAO/F,oBAAoB,CAACwH,wBAAwB,CAACzB,SAAS,CAAC;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS0B,WAAWA,CACzB3B,WAAmB,EACnBC,SAAiB,EACA;EACjB,OAAO/F,oBAAoB,CAACyH,WAAW,CAAC3B,WAAW,EAAEC,SAAS,CAAC;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS2B,mBAAmBA,CACjC5B,WAAmB,EACnBC,SAAiB,EACS;EAC1B,OAAO/F,oBAAoB,CAAC0H,mBAAmB,CAAC5B,WAAW,EAAEC,SAAS,CAAC;AACzE;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS4B,gBAAgBA,CAC9B/F,OAAiB,EACjBkB,kBAA0B,EACT;EACjB,OAAO9C,oBAAoB,CAAC2H,gBAAgB,CAAC/F,OAAO,EAAEkB,kBAAkB,CAAC;AAC3E;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS8E,WAAWA,CAAC9E,kBAA0B,EAAmB;EACvE,OAAO9C,oBAAoB,CAAC4H,WAAW,CAAC9E,kBAAkB,CAAC;AAC7D;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS+E,mBAAmBA,CACjC/E,kBAA0B,EACA;EAC1B,OAAO9C,oBAAoB,CAAC6H,mBAAmB,CAAC/E,kBAAkB,CAAC;AACrE;;AAEA","ignoreList":[]}
1
+ {"version":3,"names":["NitroModules","NitroArkHybridObject","createHybridObject","enrichExitProgressStatus","result","state","rest","enrichExitVtxo","history","stateHistory","enrichExitStatus","createMnemonic","createWallet","datadir","opts","loadWallet","config","closeWallet","createWalletSnapshot","destinationPath","validateWalletSnapshot","path","expected","subscribeWalletStateChanges","onEvent","refreshServer","isWalletLoaded","syncPendingBoards","maintenance","maintenanceWithOnchain","maintenanceDelegated","maintenanceWithOnchainDelegated","maintenanceRefresh","refreshVtxosDelegated","vtxoIds","sync","startExitForEntireWallet","startExitForVtxos","syncExit","progressExits","feeRateSatPerKvb","then","results","map","getExitVtxos","listClaimable","getExitStatus","vtxoId","includeHistory","includeTransactions","undefined","hasPendingExits","pendingExitTotal","allClaimableAtHeight","drainExits","destinationAddress","extractTransaction","psbt","broadcastTransaction","txHex","syncPendingRounds","getArkInfo","offchainBalance","deriveStoreNextKeypair","peekKeyPair","index","peekAddress","newAddress","signMessage","message","signMesssageWithMnemonic","mnemonic","network","deriveKeypairFromMnemonic","verifyMessage","signature","publicKey","mailboxKeypair","mailboxAuthorization","authorizationExpiry","subscribeNotifications","subscribeArkoorAddressMovements","address","subscribeLightningPaymentMovements","paymentHash","vtxos","decodeVtxoHex","vtxoHex","importVtxo","dangerousDropVtxo","getFirstExpiringVtxoBlockheight","getNextRequiredRefreshBlockheight","getExpiringVtxos","threshold","onchainBalance","onchainSync","onchainListUnspent","onchainUtxos","onchainFeeRates","onchainTransactions","onchainAddress","onchainSend","destination","amountSat","onchainDrain","onchainSendMany","outputs","bolt11Invoice","amountMsat","description","lightningReceiveStatus","checkLightningPayment","wait","tryClaimLightningReceive","token","tryClaimAllLightningReceives","payLightningInvoice","payLightningOffer","offer","payLightningAddress","addr","comment","estimateLightningSendFee","boardAmount","boardAll","validateArkoorAddress","sendArkoorPayment","estimateArkoorPaymentFee","estimateBoardOffchainFee","estimateRefreshFee","sendOnchain","estimateSendOnchain","offboardSpecific","offboardAll","estimateOffboardAll"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAA4B;AAoKzD,OAAO,MAAMC,oBAAoB,GAC/BD,YAAY,CAACE,kBAAkB,CAAW,UAAU,CAAC;AAEvD,SAASC,wBAAwBA,CAC/BC,MAAqC,EACX;EAC1B,MAAM;IAAEC,KAAK;IAAE,GAAGC;EAAK,CAAC,GAAGF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