react-native-nitro-ark 0.0.71 → 0.0.72
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/cpp/NitroArk.hpp +146 -52
- package/cpp/generated/ark_cxx.h +48 -22
- package/lib/module/index.js +29 -25
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/NitroArk.nitro.d.ts +39 -17
- package/lib/typescript/src/NitroArk.nitro.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +27 -34
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/nitrogen/generated/shared/c++/BarkConfigOpts.hpp +5 -5
- package/nitrogen/generated/shared/c++/BarkMovement.hpp +61 -28
- package/nitrogen/generated/shared/c++/{BarkMovementRecipient.hpp → BarkMovementDestination.hpp} +14 -14
- package/nitrogen/generated/shared/c++/BarkMovementSubsystem.hpp +79 -0
- package/nitrogen/generated/shared/c++/HybridNitroArkSpec.cpp +7 -6
- package/nitrogen/generated/shared/c++/HybridNitroArkSpec.hpp +13 -9
- package/nitrogen/generated/shared/c++/RoundStatus.hpp +99 -0
- package/nitrogen/generated/shared/c++/RoundStatusType.hpp +84 -0
- package/package.json +1 -1
- package/src/NitroArk.nitro.ts +53 -17
- package/src/index.tsx +46 -51
package/cpp/NitroArk.hpp
CHANGED
|
@@ -50,6 +50,50 @@ inline std::vector<BarkVtxo> convertRustVtxosToVector(const rust::Vec<bark_cxx::
|
|
|
50
50
|
return vtxos;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
inline RoundStatus convertRoundStatus(const bark_cxx::RoundStatus& status_rs) {
|
|
54
|
+
RoundStatus status;
|
|
55
|
+
std::string status_str(status_rs.status.data(), status_rs.status.length());
|
|
56
|
+
if (status_str == "confirmed") {
|
|
57
|
+
status.status = RoundStatusType::CONFIRMED;
|
|
58
|
+
} else if (status_str == "unconfirmed") {
|
|
59
|
+
status.status = RoundStatusType::UNCONFIRMED;
|
|
60
|
+
} else if (status_str == "pending") {
|
|
61
|
+
status.status = RoundStatusType::PENDING;
|
|
62
|
+
} else if (status_str == "failed") {
|
|
63
|
+
status.status = RoundStatusType::FAILED;
|
|
64
|
+
} else {
|
|
65
|
+
status.status = RoundStatusType::FAILED;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (status_rs.funding_txid.length() > 0) {
|
|
69
|
+
status.funding_txid = std::string(status_rs.funding_txid.data(), status_rs.funding_txid.length());
|
|
70
|
+
} else {
|
|
71
|
+
status.funding_txid = std::nullopt;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (!status_rs.unsigned_funding_txids.empty()) {
|
|
75
|
+
std::vector<std::string> txids;
|
|
76
|
+
txids.reserve(status_rs.unsigned_funding_txids.size());
|
|
77
|
+
for (const auto& txid : status_rs.unsigned_funding_txids) {
|
|
78
|
+
txids.emplace_back(std::string(txid.data(), txid.length()));
|
|
79
|
+
}
|
|
80
|
+
status.unsigned_funding_txids = std::move(txids);
|
|
81
|
+
} else {
|
|
82
|
+
status.unsigned_funding_txids = std::nullopt;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (status_rs.error.length() > 0) {
|
|
86
|
+
status.error = std::string(status_rs.error.data(), status_rs.error.length());
|
|
87
|
+
} else {
|
|
88
|
+
status.error = std::nullopt;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
status.is_final = status_rs.is_final;
|
|
92
|
+
status.is_success = status_rs.is_success;
|
|
93
|
+
|
|
94
|
+
return status;
|
|
95
|
+
}
|
|
96
|
+
|
|
53
97
|
class NitroArk : public HybridNitroArkSpec {
|
|
54
98
|
|
|
55
99
|
private:
|
|
@@ -68,7 +112,7 @@ private:
|
|
|
68
112
|
config_opts.fallback_fee_rate = static_cast<uint64_t>(config->fallback_fee_rate.value_or(0));
|
|
69
113
|
config_opts.htlc_recv_claim_delta = static_cast<uint32_t>(config->htlc_recv_claim_delta);
|
|
70
114
|
config_opts.vtxo_exit_margin = static_cast<uint32_t>(config->vtxo_exit_margin);
|
|
71
|
-
config_opts.
|
|
115
|
+
config_opts.round_tx_required_confirmations = static_cast<uint32_t>(config->round_tx_required_confirmations);
|
|
72
116
|
}
|
|
73
117
|
return config_opts;
|
|
74
118
|
}
|
|
@@ -154,6 +198,16 @@ public:
|
|
|
154
198
|
});
|
|
155
199
|
}
|
|
156
200
|
|
|
201
|
+
std::shared_ptr<Promise<void>> checkConnection() override {
|
|
202
|
+
return Promise<void>::async([]() {
|
|
203
|
+
try {
|
|
204
|
+
bark_cxx::check_connection();
|
|
205
|
+
} catch (const rust::Error& e) {
|
|
206
|
+
throw std::runtime_error(e.what());
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
|
|
157
211
|
std::shared_ptr<Promise<bool>> isWalletLoaded() override {
|
|
158
212
|
return Promise<bool>::async([]() { return bark_cxx::is_wallet_loaded(); });
|
|
159
213
|
}
|
|
@@ -218,16 +272,6 @@ public:
|
|
|
218
272
|
});
|
|
219
273
|
}
|
|
220
274
|
|
|
221
|
-
std::shared_ptr<Promise<void>> syncPastRounds() override {
|
|
222
|
-
return Promise<void>::async([]() {
|
|
223
|
-
try {
|
|
224
|
-
bark_cxx::sync_past_rounds();
|
|
225
|
-
} catch (const rust::Error& e) {
|
|
226
|
-
throw std::runtime_error(e.what());
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
|
|
231
275
|
// --- Wallet Info ---
|
|
232
276
|
|
|
233
277
|
std::shared_ptr<Promise<BarkArkInfo>> getArkInfo() override {
|
|
@@ -318,6 +362,21 @@ public:
|
|
|
318
362
|
});
|
|
319
363
|
}
|
|
320
364
|
|
|
365
|
+
std::shared_ptr<Promise<NewAddressResult>> peakAddress(double index) override {
|
|
366
|
+
return Promise<NewAddressResult>::async([index]() {
|
|
367
|
+
try {
|
|
368
|
+
bark_cxx::NewAddressResult address_rs = bark_cxx::peak_address(static_cast<uint32_t>(index));
|
|
369
|
+
NewAddressResult address;
|
|
370
|
+
address.user_pubkey = std::string(address_rs.user_pubkey.data(), address_rs.user_pubkey.length());
|
|
371
|
+
address.ark_id = std::string(address_rs.ark_id.data(), address_rs.ark_id.length());
|
|
372
|
+
address.address = std::string(address_rs.address.data(), address_rs.address.length());
|
|
373
|
+
return address;
|
|
374
|
+
} catch (const rust::Error& e) {
|
|
375
|
+
throw std::runtime_error(e.what());
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
|
|
321
380
|
std::shared_ptr<Promise<std::string>> signMessage(const std::string& message, double index) override {
|
|
322
381
|
return Promise<std::string>::async([message, index]() {
|
|
323
382
|
try {
|
|
@@ -382,23 +441,51 @@ public:
|
|
|
382
441
|
for (const auto& movement_rs : movements_rs) {
|
|
383
442
|
BarkMovement movement;
|
|
384
443
|
movement.id = static_cast<double>(movement_rs.id);
|
|
385
|
-
movement.
|
|
386
|
-
movement.
|
|
444
|
+
movement.status = std::string(movement_rs.status.data(), movement_rs.status.length());
|
|
445
|
+
movement.metadata_json = std::string(movement_rs.metadata_json.data(), movement_rs.metadata_json.length());
|
|
446
|
+
movement.intended_balance_sat = static_cast<double>(movement_rs.intended_balance_sat);
|
|
447
|
+
movement.effective_balance_sat = static_cast<double>(movement_rs.effective_balance_sat);
|
|
448
|
+
movement.offchain_fee_sat = static_cast<double>(movement_rs.offchain_fee_sat);
|
|
387
449
|
movement.created_at = std::string(movement_rs.created_at.data(), movement_rs.created_at.length());
|
|
450
|
+
movement.updated_at = std::string(movement_rs.updated_at.data(), movement_rs.updated_at.length());
|
|
451
|
+
if (movement_rs.completed_at.length() == 0) {
|
|
452
|
+
movement.completed_at = std::nullopt;
|
|
453
|
+
} else {
|
|
454
|
+
movement.completed_at = std::string(movement_rs.completed_at.data(), movement_rs.completed_at.length());
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
movement.subsystem.name = std::string(movement_rs.subsystem_name.data(), movement_rs.subsystem_name.length());
|
|
458
|
+
movement.subsystem.kind = std::string(movement_rs.subsystem_kind.data(), movement_rs.subsystem_kind.length());
|
|
388
459
|
|
|
389
|
-
|
|
390
|
-
|
|
460
|
+
movement.sent_to.reserve(movement_rs.sent_to.size());
|
|
461
|
+
for (const auto& dest_rs : movement_rs.sent_to) {
|
|
462
|
+
BarkMovementDestination destination;
|
|
463
|
+
destination.destination = std::string(dest_rs.destination.data(), dest_rs.destination.length());
|
|
464
|
+
destination.amount_sat = static_cast<double>(dest_rs.amount_sat);
|
|
465
|
+
movement.sent_to.push_back(std::move(destination));
|
|
466
|
+
}
|
|
391
467
|
|
|
392
|
-
|
|
393
|
-
|
|
468
|
+
movement.received_on.reserve(movement_rs.received_on.size());
|
|
469
|
+
for (const auto& dest_rs : movement_rs.received_on) {
|
|
470
|
+
BarkMovementDestination destination;
|
|
471
|
+
destination.destination = std::string(dest_rs.destination.data(), dest_rs.destination.length());
|
|
472
|
+
destination.amount_sat = static_cast<double>(dest_rs.amount_sat);
|
|
473
|
+
movement.received_on.push_back(std::move(destination));
|
|
474
|
+
}
|
|
394
475
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
476
|
+
movement.input_vtxos.reserve(movement_rs.input_vtxos.size());
|
|
477
|
+
for (const auto& vtxo_id : movement_rs.input_vtxos) {
|
|
478
|
+
movement.input_vtxos.emplace_back(std::string(vtxo_id.data(), vtxo_id.length()));
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
movement.output_vtxos.reserve(movement_rs.output_vtxos.size());
|
|
482
|
+
for (const auto& vtxo_id : movement_rs.output_vtxos) {
|
|
483
|
+
movement.output_vtxos.emplace_back(std::string(vtxo_id.data(), vtxo_id.length()));
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
movement.exited_vtxos.reserve(movement_rs.exited_vtxos.size());
|
|
487
|
+
for (const auto& vtxo_id : movement_rs.exited_vtxos) {
|
|
488
|
+
movement.exited_vtxos.emplace_back(std::string(vtxo_id.data(), vtxo_id.length()));
|
|
402
489
|
}
|
|
403
490
|
|
|
404
491
|
movements.push_back(std::move(movement));
|
|
@@ -597,16 +684,16 @@ public:
|
|
|
597
684
|
|
|
598
685
|
// --- Lightning Operations ---
|
|
599
686
|
|
|
600
|
-
std::shared_ptr<Promise<Bolt11PaymentResult>>
|
|
601
|
-
|
|
687
|
+
std::shared_ptr<Promise<Bolt11PaymentResult>> payLightningInvoice(const std::string& destination,
|
|
688
|
+
std::optional<double> amountSat) override {
|
|
602
689
|
return Promise<Bolt11PaymentResult>::async([destination, amountSat]() {
|
|
603
690
|
try {
|
|
604
691
|
bark_cxx::Bolt11PaymentResult rust_result;
|
|
605
692
|
if (amountSat.has_value()) {
|
|
606
693
|
uint64_t amountSat_val = static_cast<uint64_t>(amountSat.value());
|
|
607
|
-
rust_result = bark_cxx::
|
|
694
|
+
rust_result = bark_cxx::pay_lightning_invoice(destination, &amountSat_val);
|
|
608
695
|
} else {
|
|
609
|
-
rust_result = bark_cxx::
|
|
696
|
+
rust_result = bark_cxx::pay_lightning_invoice(destination, nullptr);
|
|
610
697
|
}
|
|
611
698
|
|
|
612
699
|
Bolt11PaymentResult result;
|
|
@@ -621,16 +708,16 @@ public:
|
|
|
621
708
|
});
|
|
622
709
|
}
|
|
623
710
|
|
|
624
|
-
std::shared_ptr<Promise<Bolt12PaymentResult>>
|
|
625
|
-
|
|
711
|
+
std::shared_ptr<Promise<Bolt12PaymentResult>> payLightningOffer(const std::string& bolt12,
|
|
712
|
+
std::optional<double> amountSat) override {
|
|
626
713
|
return Promise<Bolt12PaymentResult>::async([bolt12, amountSat]() {
|
|
627
714
|
try {
|
|
628
715
|
bark_cxx::Bolt12PaymentResult rust_result;
|
|
629
716
|
if (amountSat.has_value()) {
|
|
630
717
|
uint64_t amountSat_val = static_cast<uint64_t>(amountSat.value());
|
|
631
|
-
rust_result = bark_cxx::
|
|
718
|
+
rust_result = bark_cxx::pay_lightning_offer(bolt12, &amountSat_val);
|
|
632
719
|
} else {
|
|
633
|
-
rust_result = bark_cxx::
|
|
720
|
+
rust_result = bark_cxx::pay_lightning_offer(bolt12, nullptr);
|
|
634
721
|
}
|
|
635
722
|
|
|
636
723
|
Bolt12PaymentResult result;
|
|
@@ -645,12 +732,12 @@ public:
|
|
|
645
732
|
});
|
|
646
733
|
}
|
|
647
734
|
|
|
648
|
-
std::shared_ptr<Promise<LnurlPaymentResult>>
|
|
649
|
-
|
|
735
|
+
std::shared_ptr<Promise<LnurlPaymentResult>> payLightningAddress(const std::string& addr, double amountSat,
|
|
736
|
+
const std::string& comment) override {
|
|
650
737
|
return Promise<LnurlPaymentResult>::async([addr, amountSat, comment]() {
|
|
651
738
|
try {
|
|
652
739
|
bark_cxx::LnurlPaymentResult rust_result =
|
|
653
|
-
bark_cxx::
|
|
740
|
+
bark_cxx::pay_lightning_address(addr, static_cast<uint64_t>(amountSat), comment);
|
|
654
741
|
|
|
655
742
|
LnurlPaymentResult result;
|
|
656
743
|
result.lnurl = std::string(rust_result.lnurl.data(), rust_result.lnurl.length());
|
|
@@ -678,20 +765,26 @@ public:
|
|
|
678
765
|
});
|
|
679
766
|
}
|
|
680
767
|
|
|
681
|
-
std::shared_ptr<Promise<void>>
|
|
682
|
-
|
|
768
|
+
std::shared_ptr<Promise<void>> tryClaimLightningReceive(const std::string& paymentHash, bool wait,
|
|
769
|
+
const std::optional<std::string>& token) override {
|
|
770
|
+
return Promise<void>::async([paymentHash, wait, token]() {
|
|
683
771
|
try {
|
|
684
|
-
|
|
772
|
+
if (token.has_value()) {
|
|
773
|
+
rust::String token_rs(token.value());
|
|
774
|
+
bark_cxx::try_claim_lightning_receive(paymentHash, wait, &token_rs);
|
|
775
|
+
} else {
|
|
776
|
+
bark_cxx::try_claim_lightning_receive(paymentHash, wait, nullptr);
|
|
777
|
+
}
|
|
685
778
|
} catch (const rust::Error& e) {
|
|
686
779
|
throw std::runtime_error(e.what());
|
|
687
780
|
}
|
|
688
781
|
});
|
|
689
782
|
}
|
|
690
783
|
|
|
691
|
-
std::shared_ptr<Promise<void>>
|
|
784
|
+
std::shared_ptr<Promise<void>> tryClaimAllLightningReceives(bool wait) override {
|
|
692
785
|
return Promise<void>::async([wait]() {
|
|
693
786
|
try {
|
|
694
|
-
bark_cxx::
|
|
787
|
+
bark_cxx::try_claim_all_lightning_receives(wait);
|
|
695
788
|
} catch (const rust::Error& e) {
|
|
696
789
|
throw std::runtime_error(e.what());
|
|
697
790
|
}
|
|
@@ -790,12 +883,13 @@ public:
|
|
|
790
883
|
});
|
|
791
884
|
}
|
|
792
885
|
|
|
793
|
-
std::shared_ptr<Promise<
|
|
886
|
+
std::shared_ptr<Promise<RoundStatus>> sendRoundOnchainPayment(const std::string& destination,
|
|
794
887
|
double amountSat) override {
|
|
795
|
-
return Promise<
|
|
888
|
+
return Promise<RoundStatus>::async([destination, amountSat]() {
|
|
796
889
|
try {
|
|
797
|
-
|
|
798
|
-
|
|
890
|
+
bark_cxx::RoundStatus status_rs =
|
|
891
|
+
bark_cxx::send_round_onchain_payment(destination, static_cast<uint64_t>(amountSat));
|
|
892
|
+
return convertRoundStatus(status_rs);
|
|
799
893
|
} catch (const rust::Error& e) {
|
|
800
894
|
throw std::runtime_error(e.what());
|
|
801
895
|
}
|
|
@@ -804,27 +898,27 @@ public:
|
|
|
804
898
|
|
|
805
899
|
// --- Offboarding / Exiting ---
|
|
806
900
|
|
|
807
|
-
std::shared_ptr<Promise<
|
|
901
|
+
std::shared_ptr<Promise<RoundStatus>> offboardSpecific(const std::vector<std::string>& vtxoIds,
|
|
808
902
|
const std::string& destinationAddress) override {
|
|
809
|
-
return Promise<
|
|
903
|
+
return Promise<RoundStatus>::async([vtxoIds, destinationAddress]() {
|
|
810
904
|
try {
|
|
811
905
|
rust::Vec<rust::String> rust_vtxo_ids;
|
|
812
906
|
for (const auto& id : vtxoIds) {
|
|
813
907
|
rust_vtxo_ids.push_back(rust::String(id));
|
|
814
908
|
}
|
|
815
|
-
|
|
816
|
-
return
|
|
909
|
+
bark_cxx::RoundStatus status_rs = bark_cxx::offboard_specific(std::move(rust_vtxo_ids), destinationAddress);
|
|
910
|
+
return convertRoundStatus(status_rs);
|
|
817
911
|
} catch (const rust::Error& e) {
|
|
818
912
|
throw std::runtime_error(e.what());
|
|
819
913
|
}
|
|
820
914
|
});
|
|
821
915
|
}
|
|
822
916
|
|
|
823
|
-
std::shared_ptr<Promise<
|
|
824
|
-
return Promise<
|
|
917
|
+
std::shared_ptr<Promise<RoundStatus>> offboardAll(const std::string& destinationAddress) override {
|
|
918
|
+
return Promise<RoundStatus>::async([destinationAddress]() {
|
|
825
919
|
try {
|
|
826
|
-
|
|
827
|
-
return
|
|
920
|
+
bark_cxx::RoundStatus status_rs = bark_cxx::offboard_all(destinationAddress);
|
|
921
|
+
return convertRoundStatus(status_rs);
|
|
828
922
|
} catch (const rust::Error& e) {
|
|
829
923
|
throw std::runtime_error(e.what());
|
|
830
924
|
}
|
package/cpp/generated/ark_cxx.h
CHANGED
|
@@ -822,8 +822,9 @@ namespace bark_cxx {
|
|
|
822
822
|
struct OffchainBalance;
|
|
823
823
|
struct OnChainBalance;
|
|
824
824
|
struct KeyPairResult;
|
|
825
|
-
struct
|
|
825
|
+
struct BarkMovementDestination;
|
|
826
826
|
struct BarkMovement;
|
|
827
|
+
struct RoundStatus;
|
|
827
828
|
}
|
|
828
829
|
|
|
829
830
|
namespace bark_cxx {
|
|
@@ -974,7 +975,7 @@ struct ConfigOpts final {
|
|
|
974
975
|
::std::uint64_t fallback_fee_rate CXX_DEFAULT_VALUE(0);
|
|
975
976
|
::std::uint16_t htlc_recv_claim_delta CXX_DEFAULT_VALUE(0);
|
|
976
977
|
::std::uint16_t vtxo_exit_margin CXX_DEFAULT_VALUE(0);
|
|
977
|
-
::std::
|
|
978
|
+
::std::uint32_t round_tx_required_confirmations CXX_DEFAULT_VALUE(0);
|
|
978
979
|
|
|
979
980
|
using IsRelocatable = ::std::true_type;
|
|
980
981
|
};
|
|
@@ -1086,31 +1087,54 @@ struct KeyPairResult final {
|
|
|
1086
1087
|
};
|
|
1087
1088
|
#endif // CXXBRIDGE1_STRUCT_bark_cxx$KeyPairResult
|
|
1088
1089
|
|
|
1089
|
-
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$
|
|
1090
|
-
#define CXXBRIDGE1_STRUCT_bark_cxx$
|
|
1091
|
-
struct
|
|
1092
|
-
::rust::String
|
|
1090
|
+
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$BarkMovementDestination
|
|
1091
|
+
#define CXXBRIDGE1_STRUCT_bark_cxx$BarkMovementDestination
|
|
1092
|
+
struct BarkMovementDestination final {
|
|
1093
|
+
::rust::String destination;
|
|
1093
1094
|
::std::uint64_t amount_sat CXX_DEFAULT_VALUE(0);
|
|
1094
1095
|
|
|
1095
1096
|
using IsRelocatable = ::std::true_type;
|
|
1096
1097
|
};
|
|
1097
|
-
#endif // CXXBRIDGE1_STRUCT_bark_cxx$
|
|
1098
|
+
#endif // CXXBRIDGE1_STRUCT_bark_cxx$BarkMovementDestination
|
|
1098
1099
|
|
|
1099
1100
|
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$BarkMovement
|
|
1100
1101
|
#define CXXBRIDGE1_STRUCT_bark_cxx$BarkMovement
|
|
1101
1102
|
struct BarkMovement final {
|
|
1102
1103
|
::std::uint32_t id CXX_DEFAULT_VALUE(0);
|
|
1103
|
-
::rust::String
|
|
1104
|
-
::
|
|
1105
|
-
::rust::
|
|
1106
|
-
::rust::
|
|
1107
|
-
::
|
|
1104
|
+
::rust::String status;
|
|
1105
|
+
::rust::String subsystem_name;
|
|
1106
|
+
::rust::String subsystem_kind;
|
|
1107
|
+
::rust::String metadata_json;
|
|
1108
|
+
::std::int64_t intended_balance_sat CXX_DEFAULT_VALUE(0);
|
|
1109
|
+
::std::int64_t effective_balance_sat CXX_DEFAULT_VALUE(0);
|
|
1110
|
+
::std::uint64_t offchain_fee_sat CXX_DEFAULT_VALUE(0);
|
|
1111
|
+
::rust::Vec<::bark_cxx::BarkMovementDestination> sent_to;
|
|
1112
|
+
::rust::Vec<::bark_cxx::BarkMovementDestination> received_on;
|
|
1113
|
+
::rust::Vec<::rust::String> input_vtxos;
|
|
1114
|
+
::rust::Vec<::rust::String> output_vtxos;
|
|
1115
|
+
::rust::Vec<::rust::String> exited_vtxos;
|
|
1108
1116
|
::rust::String created_at;
|
|
1117
|
+
::rust::String updated_at;
|
|
1118
|
+
::rust::String completed_at;
|
|
1109
1119
|
|
|
1110
1120
|
using IsRelocatable = ::std::true_type;
|
|
1111
1121
|
};
|
|
1112
1122
|
#endif // CXXBRIDGE1_STRUCT_bark_cxx$BarkMovement
|
|
1113
1123
|
|
|
1124
|
+
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$RoundStatus
|
|
1125
|
+
#define CXXBRIDGE1_STRUCT_bark_cxx$RoundStatus
|
|
1126
|
+
struct RoundStatus final {
|
|
1127
|
+
::rust::String status;
|
|
1128
|
+
::rust::String funding_txid;
|
|
1129
|
+
::rust::Vec<::rust::String> unsigned_funding_txids;
|
|
1130
|
+
::rust::String error;
|
|
1131
|
+
bool is_final CXX_DEFAULT_VALUE(false);
|
|
1132
|
+
bool is_success CXX_DEFAULT_VALUE(false);
|
|
1133
|
+
|
|
1134
|
+
using IsRelocatable = ::std::true_type;
|
|
1135
|
+
};
|
|
1136
|
+
#endif // CXXBRIDGE1_STRUCT_bark_cxx$RoundStatus
|
|
1137
|
+
|
|
1114
1138
|
void init_logger() noexcept;
|
|
1115
1139
|
|
|
1116
1140
|
::rust::String create_mnemonic();
|
|
@@ -1129,6 +1153,8 @@ void close_wallet();
|
|
|
1129
1153
|
|
|
1130
1154
|
::bark_cxx::NewAddressResult new_address();
|
|
1131
1155
|
|
|
1156
|
+
::bark_cxx::NewAddressResult peak_address(::std::uint32_t index);
|
|
1157
|
+
|
|
1132
1158
|
::rust::String sign_message(::rust::Str message, ::std::uint32_t index);
|
|
1133
1159
|
|
|
1134
1160
|
::rust::String sign_messsage_with_mnemonic(::rust::Str message, ::rust::Str mnemonic, ::rust::Str network, ::std::uint32_t index);
|
|
@@ -1159,9 +1185,9 @@ void maintenance_with_onchain();
|
|
|
1159
1185
|
|
|
1160
1186
|
void maintenance_refresh();
|
|
1161
1187
|
|
|
1162
|
-
void
|
|
1188
|
+
void check_connection();
|
|
1163
1189
|
|
|
1164
|
-
void
|
|
1190
|
+
void sync();
|
|
1165
1191
|
|
|
1166
1192
|
void create_wallet(::rust::Str datadir, ::bark_cxx::CreateOpts opts);
|
|
1167
1193
|
|
|
@@ -1175,21 +1201,21 @@ void validate_arkoor_address(::rust::Str address);
|
|
|
1175
1201
|
|
|
1176
1202
|
::bark_cxx::ArkoorPaymentResult send_arkoor_payment(::rust::Str destination, ::std::uint64_t amount_sat);
|
|
1177
1203
|
|
|
1178
|
-
::bark_cxx::Bolt11PaymentResult
|
|
1204
|
+
::bark_cxx::Bolt11PaymentResult pay_lightning_invoice(::rust::Str destination, ::std::uint64_t const *amount_sat);
|
|
1179
1205
|
|
|
1180
|
-
::bark_cxx::Bolt12PaymentResult
|
|
1206
|
+
::bark_cxx::Bolt12PaymentResult pay_lightning_offer(::rust::Str offer, ::std::uint64_t const *amount_sat);
|
|
1181
1207
|
|
|
1182
|
-
::bark_cxx::LnurlPaymentResult
|
|
1208
|
+
::bark_cxx::LnurlPaymentResult pay_lightning_address(::rust::Str addr, ::std::uint64_t amount_sat, ::rust::Str comment);
|
|
1183
1209
|
|
|
1184
|
-
::
|
|
1210
|
+
::bark_cxx::RoundStatus send_round_onchain_payment(::rust::Str destination, ::std::uint64_t amount_sat);
|
|
1185
1211
|
|
|
1186
|
-
::
|
|
1212
|
+
::bark_cxx::RoundStatus offboard_specific(::rust::Vec<::rust::String> vtxo_ids, ::rust::Str destination_address);
|
|
1187
1213
|
|
|
1188
|
-
::
|
|
1214
|
+
::bark_cxx::RoundStatus offboard_all(::rust::Str destination_address);
|
|
1189
1215
|
|
|
1190
|
-
void
|
|
1216
|
+
void try_claim_lightning_receive(::rust::String payment_hash, bool wait, ::rust::String const *token);
|
|
1191
1217
|
|
|
1192
|
-
void
|
|
1218
|
+
void try_claim_all_lightning_receives(bool wait);
|
|
1193
1219
|
|
|
1194
1220
|
void sync_exits();
|
|
1195
1221
|
|
package/lib/module/index.js
CHANGED
|
@@ -42,6 +42,9 @@ export function loadWallet(datadir, config) {
|
|
|
42
42
|
export function closeWallet() {
|
|
43
43
|
return NitroArkHybridObject.closeWallet();
|
|
44
44
|
}
|
|
45
|
+
export function checkConnection() {
|
|
46
|
+
return NitroArkHybridObject.checkConnection();
|
|
47
|
+
}
|
|
45
48
|
|
|
46
49
|
/**
|
|
47
50
|
* Checks if a wallet is currently loaded.
|
|
@@ -101,14 +104,6 @@ export function syncExits() {
|
|
|
101
104
|
return NitroArkHybridObject.syncExits();
|
|
102
105
|
}
|
|
103
106
|
|
|
104
|
-
/**
|
|
105
|
-
* Synchronizes the rounds of the wallet.
|
|
106
|
-
* @returns A promise that resolves on success.
|
|
107
|
-
*/
|
|
108
|
-
export function syncPastRounds() {
|
|
109
|
-
return NitroArkHybridObject.syncPastRounds();
|
|
110
|
-
}
|
|
111
|
-
|
|
112
107
|
// --- Wallet Info ---
|
|
113
108
|
|
|
114
109
|
/**
|
|
@@ -144,6 +139,15 @@ export function peakKeyPair(index) {
|
|
|
144
139
|
return NitroArkHybridObject.peakKeyPair(index);
|
|
145
140
|
}
|
|
146
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Peeks a derived address without advancing the wallet's address index.
|
|
144
|
+
* @param index Index of the address to preview.
|
|
145
|
+
* @returns A promise resolving to the NewAddressResult object.
|
|
146
|
+
*/
|
|
147
|
+
export function peakAddress(index) {
|
|
148
|
+
return NitroArkHybridObject.peakAddress(index);
|
|
149
|
+
}
|
|
150
|
+
|
|
147
151
|
/**
|
|
148
152
|
* Gets the wallet's Address.
|
|
149
153
|
* @returns A promise resolving to NewAddressResult object.
|
|
@@ -331,12 +335,14 @@ export function lightningReceiveStatus(paymentHash) {
|
|
|
331
335
|
}
|
|
332
336
|
|
|
333
337
|
/**
|
|
334
|
-
*
|
|
338
|
+
* Attempts to claim a Lightning payment, optionally using a claim token.
|
|
335
339
|
* @param paymentHash The payment hash of the Lightning payment.
|
|
340
|
+
* @param wait Whether to wait for the claim to complete.
|
|
341
|
+
* @param token Optional claim token used when no spendable VTXOs are owned.
|
|
336
342
|
* @returns A promise that resolves on success or rejects on error.
|
|
337
343
|
*/
|
|
338
|
-
export function
|
|
339
|
-
return NitroArkHybridObject.
|
|
344
|
+
export function tryClaimLightningReceive(paymentHash, wait, token) {
|
|
345
|
+
return NitroArkHybridObject.tryClaimLightningReceive(paymentHash, wait, token);
|
|
340
346
|
}
|
|
341
347
|
|
|
342
348
|
/**
|
|
@@ -344,18 +350,18 @@ export function checkAndClaimLnReceive(paymentHash, wait) {
|
|
|
344
350
|
* @param wait Whether to wait for the claim to complete.
|
|
345
351
|
* @returns A promise that resolves on success or rejects on error.
|
|
346
352
|
*/
|
|
347
|
-
export function
|
|
348
|
-
return NitroArkHybridObject.
|
|
353
|
+
export function tryClaimAllLightningReceives(wait) {
|
|
354
|
+
return NitroArkHybridObject.tryClaimAllLightningReceives(wait);
|
|
349
355
|
}
|
|
350
356
|
|
|
351
357
|
/**
|
|
352
|
-
*
|
|
358
|
+
* Pays a Bolt11 Lightning invoice.
|
|
353
359
|
* @param destination The Lightning invoice.
|
|
354
360
|
* @param amountSat The amount in satoshis to send. Use 0 for invoice amount.
|
|
355
361
|
* @returns A promise resolving to a Bolt11PaymentResult object
|
|
356
362
|
*/
|
|
357
|
-
export function
|
|
358
|
-
return NitroArkHybridObject.
|
|
363
|
+
export function payLightningInvoice(destination, amountSat) {
|
|
364
|
+
return NitroArkHybridObject.payLightningInvoice(destination, amountSat);
|
|
359
365
|
}
|
|
360
366
|
|
|
361
367
|
/**
|
|
@@ -364,8 +370,8 @@ export function sendLightningPayment(destination, amountSat) {
|
|
|
364
370
|
* @param amountSat The amount in satoshis to send. Use 0 for invoice amount.
|
|
365
371
|
* @returns A promise resolving to a Bolt12PaymentResult object
|
|
366
372
|
*/
|
|
367
|
-
export function
|
|
368
|
-
return NitroArkHybridObject.
|
|
373
|
+
export function payLightningOffer(offer, amountSat) {
|
|
374
|
+
return NitroArkHybridObject.payLightningOffer(offer, amountSat);
|
|
369
375
|
}
|
|
370
376
|
|
|
371
377
|
/**
|
|
@@ -375,8 +381,8 @@ export function payOffer(offer, amountSat) {
|
|
|
375
381
|
* @param comment An optional comment.
|
|
376
382
|
* @returns A promise resolving to a LnurlPaymentResult object
|
|
377
383
|
*/
|
|
378
|
-
export function
|
|
379
|
-
return NitroArkHybridObject.
|
|
384
|
+
export function payLightningAddress(addr, amountSat, comment) {
|
|
385
|
+
return NitroArkHybridObject.payLightningAddress(addr, amountSat, comment);
|
|
380
386
|
}
|
|
381
387
|
|
|
382
388
|
// --- Ark Operations ---
|
|
@@ -421,7 +427,7 @@ export function sendArkoorPayment(destination, amountSat) {
|
|
|
421
427
|
* Sends an onchain payment via an Ark round.
|
|
422
428
|
* @param destination The destination Bitcoin address.
|
|
423
429
|
* @param amountSat The amount in satoshis to send.
|
|
424
|
-
* @returns A promise resolving to
|
|
430
|
+
* @returns A promise resolving to the round status.
|
|
425
431
|
*/
|
|
426
432
|
export function sendRoundOnchainPayment(destination, amountSat) {
|
|
427
433
|
return NitroArkHybridObject.sendRoundOnchainPayment(destination, amountSat);
|
|
@@ -433,8 +439,7 @@ export function sendRoundOnchainPayment(destination, amountSat) {
|
|
|
433
439
|
* Offboards specific VTXOs to a destination address.
|
|
434
440
|
* @param vtxoIds Array of VtxoId strings to offboard.
|
|
435
441
|
* @param destinationAddress Destination Bitcoin address (if empty, sends to internal wallet).
|
|
436
|
-
* @
|
|
437
|
-
* @returns A promise resolving to a JSON result string.
|
|
442
|
+
* @returns A promise resolving to the round status.
|
|
438
443
|
*/
|
|
439
444
|
export function offboardSpecific(vtxoIds, destinationAddress) {
|
|
440
445
|
return NitroArkHybridObject.offboardSpecific(vtxoIds, destinationAddress);
|
|
@@ -443,8 +448,7 @@ export function offboardSpecific(vtxoIds, destinationAddress) {
|
|
|
443
448
|
/**
|
|
444
449
|
* Offboards all VTXOs to a destination address.
|
|
445
450
|
* @param destinationAddress Destination Bitcoin address (if empty, sends to internal wallet).
|
|
446
|
-
* @
|
|
447
|
-
* @returns A promise resolving to a JSON result string.
|
|
451
|
+
* @returns A promise resolving to the round status.
|
|
448
452
|
*/
|
|
449
453
|
export function offboardAll(destinationAddress) {
|
|
450
454
|
return NitroArkHybridObject.offboardAll(destinationAddress);
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NitroModules","NitroArkHybridObject","createHybridObject","createMnemonic","createWallet","datadir","opts","loadWallet","config","closeWallet","isWalletLoaded","syncPendingBoards","maintenance","maintenanceWithOnchain","maintenanceRefresh","sync","syncExits","
|
|
1
|
+
{"version":3,"names":["NitroModules","NitroArkHybridObject","createHybridObject","createMnemonic","createWallet","datadir","opts","loadWallet","config","closeWallet","checkConnection","isWalletLoaded","syncPendingBoards","maintenance","maintenanceWithOnchain","maintenanceRefresh","sync","syncExits","getArkInfo","offchainBalance","deriveStoreNextKeypair","peakKeyPair","index","peakAddress","newAddress","signMessage","message","signMesssageWithMnemonic","mnemonic","network","deriveKeypairFromMnemonic","verifyMessage","signature","publicKey","movements","vtxos","getFirstExpiringVtxoBlockheight","getNextRequiredRefreshBlockheight","getExpiringVtxos","threshold","onchainBalance","onchainSync","onchainListUnspent","onchainUtxos","onchainAddress","onchainSend","destination","amountSat","onchainDrain","onchainSendMany","outputs","bolt11Invoice","amountMsat","lightningReceiveStatus","paymentHash","tryClaimLightningReceive","wait","token","tryClaimAllLightningReceives","payLightningInvoice","payLightningOffer","offer","payLightningAddress","addr","comment","boardAmount","boardAll","validateArkoorAddress","address","sendArkoorPayment","sendRoundOnchainPayment","offboardSpecific","vtxoIds","destinationAddress","offboardAll"],"sourceRoot":"../../src","sources":["index.tsx"],"m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