react-native-nitro-ark 0.0.79 → 0.0.81
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/android/src/main/jniLibs/arm64-v8a/libcxxbridge1.a +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/libcxxbridge1.a +0 -0
- package/android/src/main/jniLibs/x86_64/libcxxbridge1.a +0 -0
- package/cpp/NitroArk.hpp +85 -55
- package/cpp/generated/ark_cxx.h +21 -55
- package/lib/module/index.js +31 -8
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/NitroArk.nitro.d.ts +16 -26
- package/lib/typescript/src/NitroArk.nitro.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +32 -11
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/nitrogen/generated/shared/c++/ArkoorPaymentResult.hpp +2 -9
- package/nitrogen/generated/shared/c++/BarkArkInfo.hpp +1 -5
- package/nitrogen/generated/shared/c++/BarkMovementDestination.hpp +5 -1
- package/nitrogen/generated/shared/c++/BoardResult.hpp +6 -8
- package/nitrogen/generated/shared/c++/HybridNitroArkSpec.cpp +4 -2
- package/nitrogen/generated/shared/c++/HybridNitroArkSpec.hpp +12 -14
- package/nitrogen/generated/shared/c++/LightningSendResult.hpp +101 -0
- package/nitrogen/generated/shared/c++/OffchainBalanceResult.hpp +3 -8
- package/nitrogen/generated/shared/c++/OnchainPaymentResult.hpp +3 -9
- package/package.json +4 -4
- package/src/NitroArk.nitro.ts +19 -29
- package/src/index.tsx +52 -17
- package/nitrogen/generated/shared/c++/Bolt11PaymentResult.hpp +0 -85
- package/nitrogen/generated/shared/c++/Bolt12PaymentResult.hpp +0 -85
- package/nitrogen/generated/shared/c++/LightningReceiveBalance.hpp +0 -79
- package/nitrogen/generated/shared/c++/LnurlPaymentResult.hpp +0 -89
- package/nitrogen/generated/shared/c++/PaymentTypes.hpp +0 -88
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/cpp/NitroArk.hpp
CHANGED
|
@@ -12,24 +12,6 @@
|
|
|
12
12
|
namespace margelo::nitro::nitroark {
|
|
13
13
|
|
|
14
14
|
using namespace margelo::nitro;
|
|
15
|
-
// Helper function to convert rust cxx payment type to nitrogen payment type
|
|
16
|
-
inline PaymentTypes convertPaymentType(bark_cxx::PaymentTypes type) {
|
|
17
|
-
switch (type) {
|
|
18
|
-
case bark_cxx::PaymentTypes::Bolt11:
|
|
19
|
-
return PaymentTypes::BOLT11;
|
|
20
|
-
case bark_cxx::PaymentTypes::Bolt12:
|
|
21
|
-
return PaymentTypes::BOLT12;
|
|
22
|
-
case bark_cxx::PaymentTypes::Lnurl:
|
|
23
|
-
return PaymentTypes::LNURL;
|
|
24
|
-
case bark_cxx::PaymentTypes::Arkoor:
|
|
25
|
-
return PaymentTypes::ARKOOR;
|
|
26
|
-
case bark_cxx::PaymentTypes::Onchain:
|
|
27
|
-
return PaymentTypes::ONCHAIN;
|
|
28
|
-
default:
|
|
29
|
-
throw std::runtime_error("Invalid payment type");
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
15
|
// Helper function to convert rust vtxos vector to C++ vector
|
|
34
16
|
inline std::vector<BarkVtxo> convertRustVtxosToVector(const rust::Vec<bark_cxx::BarkVtxo>& rust_vtxos) {
|
|
35
17
|
std::vector<BarkVtxo> vtxos;
|
|
@@ -200,10 +182,10 @@ public:
|
|
|
200
182
|
});
|
|
201
183
|
}
|
|
202
184
|
|
|
203
|
-
std::shared_ptr<Promise<void>>
|
|
185
|
+
std::shared_ptr<Promise<void>> refreshServer() override {
|
|
204
186
|
return Promise<void>::async([]() {
|
|
205
187
|
try {
|
|
206
|
-
bark_cxx::
|
|
188
|
+
bark_cxx::refresh_server();
|
|
207
189
|
} catch (const rust::Error& e) {
|
|
208
190
|
throw std::runtime_error(e.what());
|
|
209
191
|
}
|
|
@@ -274,6 +256,16 @@ public:
|
|
|
274
256
|
});
|
|
275
257
|
}
|
|
276
258
|
|
|
259
|
+
std::shared_ptr<Promise<void>> syncPendingRounds() override {
|
|
260
|
+
return Promise<void>::async([]() {
|
|
261
|
+
try {
|
|
262
|
+
bark_cxx::sync_pending_rounds();
|
|
263
|
+
} catch (const rust::Error& e) {
|
|
264
|
+
throw std::runtime_error(e.what());
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
|
|
277
269
|
// --- Wallet Info ---
|
|
278
270
|
|
|
279
271
|
std::shared_ptr<Promise<BarkArkInfo>> getArkInfo() override {
|
|
@@ -289,7 +281,6 @@ public:
|
|
|
289
281
|
info.vtxo_expiry_delta = static_cast<double>(rust_info.vtxo_expiry_delta);
|
|
290
282
|
info.htlc_send_expiry_delta = static_cast<double>(rust_info.htlc_send_expiry_delta);
|
|
291
283
|
info.max_vtxo_amount = static_cast<double>(rust_info.max_vtxo_amount);
|
|
292
|
-
info.max_arkoor_depth = static_cast<double>(rust_info.max_arkoor_depth);
|
|
293
284
|
info.required_board_confirmations = static_cast<double>(rust_info.required_board_confirmations);
|
|
294
285
|
return info;
|
|
295
286
|
} catch (const rust::Error& e) {
|
|
@@ -308,9 +299,7 @@ public:
|
|
|
308
299
|
balance.pending_in_round = static_cast<double>(rust_balance.pending_in_round);
|
|
309
300
|
balance.pending_exit = static_cast<double>(rust_balance.pending_exit);
|
|
310
301
|
balance.pending_board = static_cast<double>(rust_balance.pending_board);
|
|
311
|
-
|
|
312
|
-
balance.pending_lightning_receive.claimable =
|
|
313
|
-
static_cast<double>(rust_balance.pending_lightning_receive.claimable);
|
|
302
|
+
|
|
314
303
|
return balance;
|
|
315
304
|
} catch (const rust::Error& e) {
|
|
316
305
|
throw std::runtime_error(e.what());
|
|
@@ -432,10 +421,10 @@ public:
|
|
|
432
421
|
});
|
|
433
422
|
}
|
|
434
423
|
|
|
435
|
-
std::shared_ptr<Promise<std::vector<BarkMovement>>>
|
|
424
|
+
std::shared_ptr<Promise<std::vector<BarkMovement>>> history() override {
|
|
436
425
|
return Promise<std::vector<BarkMovement>>::async([]() {
|
|
437
426
|
try {
|
|
438
|
-
rust::Vec<bark_cxx::BarkMovement> movements_rs = bark_cxx::
|
|
427
|
+
rust::Vec<bark_cxx::BarkMovement> movements_rs = bark_cxx::history();
|
|
439
428
|
|
|
440
429
|
std::vector<BarkMovement> movements;
|
|
441
430
|
movements.reserve(movements_rs.size());
|
|
@@ -463,6 +452,7 @@ public:
|
|
|
463
452
|
for (const auto& dest_rs : movement_rs.sent_to) {
|
|
464
453
|
BarkMovementDestination destination;
|
|
465
454
|
destination.destination = std::string(dest_rs.destination.data(), dest_rs.destination.length());
|
|
455
|
+
destination.payment_method = std::string(dest_rs.payment_method.data(), dest_rs.payment_method.length());
|
|
466
456
|
destination.amount_sat = static_cast<double>(dest_rs.amount_sat);
|
|
467
457
|
movement.sent_to.push_back(std::move(destination));
|
|
468
458
|
}
|
|
@@ -471,6 +461,7 @@ public:
|
|
|
471
461
|
for (const auto& dest_rs : movement_rs.received_on) {
|
|
472
462
|
BarkMovementDestination destination;
|
|
473
463
|
destination.destination = std::string(dest_rs.destination.data(), dest_rs.destination.length());
|
|
464
|
+
destination.payment_method = std::string(dest_rs.payment_method.data(), dest_rs.payment_method.length());
|
|
474
465
|
destination.amount_sat = static_cast<double>(dest_rs.amount_sat);
|
|
475
466
|
movement.received_on.push_back(std::move(destination));
|
|
476
467
|
}
|
|
@@ -633,7 +624,6 @@ public:
|
|
|
633
624
|
result.amount_sat = static_cast<double>(rust_result.amount_sat);
|
|
634
625
|
result.destination_address =
|
|
635
626
|
std::string(rust_result.destination_address.data(), rust_result.destination_address.length());
|
|
636
|
-
result.payment_type = convertPaymentType(rust_result.payment_type);
|
|
637
627
|
|
|
638
628
|
return result;
|
|
639
629
|
} catch (const rust::Error& e) {
|
|
@@ -686,11 +676,11 @@ public:
|
|
|
686
676
|
|
|
687
677
|
// --- Lightning Operations ---
|
|
688
678
|
|
|
689
|
-
std::shared_ptr<Promise<
|
|
679
|
+
std::shared_ptr<Promise<LightningSendResult>> payLightningInvoice(const std::string& destination,
|
|
690
680
|
std::optional<double> amountSat) override {
|
|
691
|
-
return Promise<
|
|
681
|
+
return Promise<LightningSendResult>::async([destination, amountSat]() {
|
|
692
682
|
try {
|
|
693
|
-
bark_cxx::
|
|
683
|
+
bark_cxx::LightningSend rust_result;
|
|
694
684
|
if (amountSat.has_value()) {
|
|
695
685
|
uint64_t amountSat_val = static_cast<uint64_t>(amountSat.value());
|
|
696
686
|
rust_result = bark_cxx::pay_lightning_invoice(destination, &amountSat_val);
|
|
@@ -698,10 +688,16 @@ public:
|
|
|
698
688
|
rust_result = bark_cxx::pay_lightning_invoice(destination, nullptr);
|
|
699
689
|
}
|
|
700
690
|
|
|
701
|
-
|
|
702
|
-
result.
|
|
703
|
-
result.
|
|
704
|
-
result.
|
|
691
|
+
LightningSendResult result;
|
|
692
|
+
result.invoice = std::string(rust_result.invoice.data(), rust_result.invoice.length());
|
|
693
|
+
result.payment_hash = std::string(rust_result.payment_hash.data(), rust_result.payment_hash.length());
|
|
694
|
+
result.amount = static_cast<double>(rust_result.amount);
|
|
695
|
+
result.htlc_vtxos = convertRustVtxosToVector(rust_result.htlc_vtxos);
|
|
696
|
+
result.movement_id = static_cast<double>(rust_result.movement_id);
|
|
697
|
+
std::string preimage_str(rust_result.preimage.data(), rust_result.preimage.length());
|
|
698
|
+
result.preimage = preimage_str.empty()
|
|
699
|
+
? std::nullopt
|
|
700
|
+
: std::make_optional(std::variant<nitro::NullType, std::string>(preimage_str));
|
|
705
701
|
|
|
706
702
|
return result;
|
|
707
703
|
} catch (const rust::Error& e) {
|
|
@@ -710,22 +706,28 @@ public:
|
|
|
710
706
|
});
|
|
711
707
|
}
|
|
712
708
|
|
|
713
|
-
std::shared_ptr<Promise<
|
|
709
|
+
std::shared_ptr<Promise<LightningSendResult>> payLightningOffer(const std::string& offer,
|
|
714
710
|
std::optional<double> amountSat) override {
|
|
715
|
-
return Promise<
|
|
711
|
+
return Promise<LightningSendResult>::async([offer, amountSat]() {
|
|
716
712
|
try {
|
|
717
|
-
bark_cxx::
|
|
713
|
+
bark_cxx::LightningSend rust_result;
|
|
718
714
|
if (amountSat.has_value()) {
|
|
719
715
|
uint64_t amountSat_val = static_cast<uint64_t>(amountSat.value());
|
|
720
|
-
rust_result = bark_cxx::pay_lightning_offer(
|
|
716
|
+
rust_result = bark_cxx::pay_lightning_offer(offer, &amountSat_val);
|
|
721
717
|
} else {
|
|
722
|
-
rust_result = bark_cxx::pay_lightning_offer(
|
|
718
|
+
rust_result = bark_cxx::pay_lightning_offer(offer, nullptr);
|
|
723
719
|
}
|
|
724
720
|
|
|
725
|
-
|
|
726
|
-
result.
|
|
727
|
-
result.
|
|
728
|
-
result.
|
|
721
|
+
LightningSendResult result;
|
|
722
|
+
result.invoice = std::string(rust_result.invoice.data(), rust_result.invoice.length());
|
|
723
|
+
result.payment_hash = std::string(rust_result.payment_hash.data(), rust_result.payment_hash.length());
|
|
724
|
+
result.amount = static_cast<double>(rust_result.amount);
|
|
725
|
+
result.htlc_vtxos = convertRustVtxosToVector(rust_result.htlc_vtxos);
|
|
726
|
+
result.movement_id = static_cast<double>(rust_result.movement_id);
|
|
727
|
+
std::string preimage_str(rust_result.preimage.data(), rust_result.preimage.length());
|
|
728
|
+
result.preimage = preimage_str.empty()
|
|
729
|
+
? std::nullopt
|
|
730
|
+
: std::make_optional(std::variant<nitro::NullType, std::string>(preimage_str));
|
|
729
731
|
|
|
730
732
|
return result;
|
|
731
733
|
} catch (const rust::Error& e) {
|
|
@@ -734,18 +736,23 @@ public:
|
|
|
734
736
|
});
|
|
735
737
|
}
|
|
736
738
|
|
|
737
|
-
std::shared_ptr<Promise<
|
|
738
|
-
|
|
739
|
-
return Promise<
|
|
739
|
+
std::shared_ptr<Promise<LightningSendResult>> payLightningAddress(const std::string& addr, double amountSat,
|
|
740
|
+
const std::string& comment) override {
|
|
741
|
+
return Promise<LightningSendResult>::async([addr, amountSat, comment]() {
|
|
740
742
|
try {
|
|
741
|
-
bark_cxx::
|
|
743
|
+
bark_cxx::LightningSend rust_result =
|
|
742
744
|
bark_cxx::pay_lightning_address(addr, static_cast<uint64_t>(amountSat), comment);
|
|
743
745
|
|
|
744
|
-
|
|
745
|
-
result.
|
|
746
|
-
result.
|
|
747
|
-
result.
|
|
748
|
-
result.
|
|
746
|
+
LightningSendResult result;
|
|
747
|
+
result.invoice = std::string(rust_result.invoice.data(), rust_result.invoice.length());
|
|
748
|
+
result.payment_hash = std::string(rust_result.payment_hash.data(), rust_result.payment_hash.length());
|
|
749
|
+
result.amount = static_cast<double>(rust_result.amount);
|
|
750
|
+
result.htlc_vtxos = convertRustVtxosToVector(rust_result.htlc_vtxos);
|
|
751
|
+
result.movement_id = static_cast<double>(rust_result.movement_id);
|
|
752
|
+
std::string preimage_str(rust_result.preimage.data(), rust_result.preimage.length());
|
|
753
|
+
result.preimage = preimage_str.empty()
|
|
754
|
+
? std::nullopt
|
|
755
|
+
: std::make_optional(std::variant<nitro::NullType, std::string>(preimage_str));
|
|
749
756
|
|
|
750
757
|
return result;
|
|
751
758
|
} catch (const rust::Error& e) {
|
|
@@ -824,6 +831,22 @@ public:
|
|
|
824
831
|
});
|
|
825
832
|
}
|
|
826
833
|
|
|
834
|
+
std::shared_ptr<Promise<std::variant<nitro::NullType, std::string>>>
|
|
835
|
+
checkLightningPayment(const std::string& paymentHash, bool wait) override {
|
|
836
|
+
return Promise<std::variant<nitro::NullType, std::string>>::async([paymentHash, wait]() {
|
|
837
|
+
try {
|
|
838
|
+
rust::String result = bark_cxx::check_lightning_payment(paymentHash, wait);
|
|
839
|
+
std::string preimage_str(result.data(), result.length());
|
|
840
|
+
if (preimage_str.empty()) {
|
|
841
|
+
return std::variant<nitro::NullType, std::string>(nitro::NullType());
|
|
842
|
+
}
|
|
843
|
+
return std::variant<nitro::NullType, std::string>(preimage_str);
|
|
844
|
+
} catch (const rust::Error& e) {
|
|
845
|
+
throw std::runtime_error(e.what());
|
|
846
|
+
}
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
|
|
827
850
|
// --- Ark Operations ---
|
|
828
851
|
std::shared_ptr<Promise<BoardResult>> boardAmount(double amountSat) override {
|
|
829
852
|
return Promise<BoardResult>::async([amountSat]() {
|
|
@@ -831,7 +854,11 @@ public:
|
|
|
831
854
|
bark_cxx::BoardResult result_rs = bark_cxx::board_amount(static_cast<uint64_t>(amountSat));
|
|
832
855
|
BoardResult result;
|
|
833
856
|
result.funding_txid = std::string(result_rs.funding_txid.data(), result_rs.funding_txid.length());
|
|
834
|
-
|
|
857
|
+
std::vector<std::string> vtxos_vec;
|
|
858
|
+
for (const auto& vtxo : result_rs.vtxos) {
|
|
859
|
+
vtxos_vec.push_back(std::string(vtxo.data(), vtxo.length()));
|
|
860
|
+
}
|
|
861
|
+
result.vtxos = vtxos_vec;
|
|
835
862
|
return result;
|
|
836
863
|
} catch (const rust::Error& e) {
|
|
837
864
|
throw std::runtime_error(e.what());
|
|
@@ -845,7 +872,11 @@ public:
|
|
|
845
872
|
bark_cxx::BoardResult result_rs = bark_cxx::board_all();
|
|
846
873
|
BoardResult result;
|
|
847
874
|
result.funding_txid = std::string(result_rs.funding_txid.data(), result_rs.funding_txid.length());
|
|
848
|
-
|
|
875
|
+
std::vector<std::string> vtxos_vec;
|
|
876
|
+
for (const auto& vtxo : result_rs.vtxos) {
|
|
877
|
+
vtxos_vec.push_back(std::string(vtxo.data(), vtxo.length()));
|
|
878
|
+
}
|
|
879
|
+
result.vtxos = vtxos_vec;
|
|
849
880
|
return result;
|
|
850
881
|
} catch (const rust::Error& e) {
|
|
851
882
|
throw std::runtime_error(e.what());
|
|
@@ -874,7 +905,6 @@ public:
|
|
|
874
905
|
result.amount_sat = static_cast<double>(rust_result.amount_sat);
|
|
875
906
|
result.destination_pubkey =
|
|
876
907
|
std::string(rust_result.destination_pubkey.data(), rust_result.destination_pubkey.length());
|
|
877
|
-
result.payment_type = convertPaymentType(rust_result.payment_type);
|
|
878
908
|
|
|
879
909
|
result.vtxos = convertRustVtxosToVector(rust_result.vtxos);
|
|
880
910
|
|
package/cpp/generated/ark_cxx.h
CHANGED
|
@@ -803,13 +803,10 @@ std::size_t align_of() {
|
|
|
803
803
|
|
|
804
804
|
namespace bark_cxx {
|
|
805
805
|
struct BarkVtxo;
|
|
806
|
-
enum class PaymentTypes : ::std::uint8_t;
|
|
807
806
|
struct BoardResult;
|
|
808
807
|
struct NewAddressResult;
|
|
809
808
|
struct Bolt11Invoice;
|
|
810
|
-
struct
|
|
811
|
-
struct Bolt12PaymentResult;
|
|
812
|
-
struct LnurlPaymentResult;
|
|
809
|
+
struct LightningSend;
|
|
813
810
|
struct ArkoorPaymentResult;
|
|
814
811
|
struct OnchainPaymentResult;
|
|
815
812
|
struct CxxArkInfo;
|
|
@@ -843,21 +840,10 @@ struct BarkVtxo final {
|
|
|
843
840
|
};
|
|
844
841
|
#endif // CXXBRIDGE1_STRUCT_bark_cxx$BarkVtxo
|
|
845
842
|
|
|
846
|
-
#ifndef CXXBRIDGE1_ENUM_bark_cxx$PaymentTypes
|
|
847
|
-
#define CXXBRIDGE1_ENUM_bark_cxx$PaymentTypes
|
|
848
|
-
enum class PaymentTypes : ::std::uint8_t {
|
|
849
|
-
Bolt11 = 0,
|
|
850
|
-
Bolt12 = 1,
|
|
851
|
-
Lnurl = 2,
|
|
852
|
-
Arkoor = 3,
|
|
853
|
-
Onchain = 4,
|
|
854
|
-
};
|
|
855
|
-
#endif // CXXBRIDGE1_ENUM_bark_cxx$PaymentTypes
|
|
856
|
-
|
|
857
843
|
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$BoardResult
|
|
858
844
|
#define CXXBRIDGE1_STRUCT_bark_cxx$BoardResult
|
|
859
845
|
struct BoardResult final {
|
|
860
|
-
::rust::Vec<::
|
|
846
|
+
::rust::Vec<::rust::String> vtxos;
|
|
861
847
|
::rust::String funding_txid;
|
|
862
848
|
|
|
863
849
|
using IsRelocatable = ::std::true_type;
|
|
@@ -886,46 +872,25 @@ struct Bolt11Invoice final {
|
|
|
886
872
|
};
|
|
887
873
|
#endif // CXXBRIDGE1_STRUCT_bark_cxx$Bolt11Invoice
|
|
888
874
|
|
|
889
|
-
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$
|
|
890
|
-
#define CXXBRIDGE1_STRUCT_bark_cxx$
|
|
891
|
-
struct
|
|
892
|
-
::rust::String
|
|
893
|
-
::rust::String
|
|
894
|
-
::
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
};
|
|
898
|
-
#endif // CXXBRIDGE1_STRUCT_bark_cxx$Bolt11PaymentResult
|
|
899
|
-
|
|
900
|
-
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$Bolt12PaymentResult
|
|
901
|
-
#define CXXBRIDGE1_STRUCT_bark_cxx$Bolt12PaymentResult
|
|
902
|
-
struct Bolt12PaymentResult final {
|
|
903
|
-
::rust::String bolt12_offer;
|
|
904
|
-
::rust::String preimage;
|
|
905
|
-
::bark_cxx::PaymentTypes payment_type;
|
|
906
|
-
|
|
907
|
-
using IsRelocatable = ::std::true_type;
|
|
908
|
-
};
|
|
909
|
-
#endif // CXXBRIDGE1_STRUCT_bark_cxx$Bolt12PaymentResult
|
|
910
|
-
|
|
911
|
-
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$LnurlPaymentResult
|
|
912
|
-
#define CXXBRIDGE1_STRUCT_bark_cxx$LnurlPaymentResult
|
|
913
|
-
struct LnurlPaymentResult final {
|
|
914
|
-
::rust::String lnurl;
|
|
915
|
-
::rust::String bolt11_invoice;
|
|
875
|
+
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$LightningSend
|
|
876
|
+
#define CXXBRIDGE1_STRUCT_bark_cxx$LightningSend
|
|
877
|
+
struct LightningSend final {
|
|
878
|
+
::rust::String invoice;
|
|
879
|
+
::rust::String payment_hash;
|
|
880
|
+
::std::uint64_t amount CXX_DEFAULT_VALUE(0);
|
|
881
|
+
::rust::Vec<::bark_cxx::BarkVtxo> htlc_vtxos;
|
|
882
|
+
::std::uint32_t movement_id CXX_DEFAULT_VALUE(0);
|
|
916
883
|
::rust::String preimage;
|
|
917
|
-
::bark_cxx::PaymentTypes payment_type;
|
|
918
884
|
|
|
919
885
|
using IsRelocatable = ::std::true_type;
|
|
920
886
|
};
|
|
921
|
-
#endif // CXXBRIDGE1_STRUCT_bark_cxx$
|
|
887
|
+
#endif // CXXBRIDGE1_STRUCT_bark_cxx$LightningSend
|
|
922
888
|
|
|
923
889
|
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$ArkoorPaymentResult
|
|
924
890
|
#define CXXBRIDGE1_STRUCT_bark_cxx$ArkoorPaymentResult
|
|
925
891
|
struct ArkoorPaymentResult final {
|
|
926
892
|
::std::uint64_t amount_sat CXX_DEFAULT_VALUE(0);
|
|
927
893
|
::rust::String destination_pubkey;
|
|
928
|
-
::bark_cxx::PaymentTypes payment_type;
|
|
929
894
|
::rust::Vec<::bark_cxx::BarkVtxo> vtxos;
|
|
930
895
|
|
|
931
896
|
using IsRelocatable = ::std::true_type;
|
|
@@ -938,7 +903,6 @@ struct OnchainPaymentResult final {
|
|
|
938
903
|
::rust::String txid;
|
|
939
904
|
::std::uint64_t amount_sat CXX_DEFAULT_VALUE(0);
|
|
940
905
|
::rust::String destination_address;
|
|
941
|
-
::bark_cxx::PaymentTypes payment_type;
|
|
942
906
|
|
|
943
907
|
using IsRelocatable = ::std::true_type;
|
|
944
908
|
};
|
|
@@ -955,7 +919,6 @@ struct CxxArkInfo final {
|
|
|
955
919
|
::std::uint16_t vtxo_expiry_delta CXX_DEFAULT_VALUE(0);
|
|
956
920
|
::std::uint16_t htlc_send_expiry_delta CXX_DEFAULT_VALUE(0);
|
|
957
921
|
::std::uint64_t max_vtxo_amount CXX_DEFAULT_VALUE(0);
|
|
958
|
-
::std::uint16_t max_arkoor_depth CXX_DEFAULT_VALUE(0);
|
|
959
922
|
::std::uint8_t required_board_confirmations CXX_DEFAULT_VALUE(0);
|
|
960
923
|
|
|
961
924
|
using IsRelocatable = ::std::true_type;
|
|
@@ -1048,8 +1011,6 @@ struct OffchainBalance final {
|
|
|
1048
1011
|
::std::uint64_t spendable CXX_DEFAULT_VALUE(0);
|
|
1049
1012
|
// Coins that are in the process of being sent over Lightning.
|
|
1050
1013
|
::std::uint64_t pending_lightning_send CXX_DEFAULT_VALUE(0);
|
|
1051
|
-
// Coins that are in the process of being received over Lightning.
|
|
1052
|
-
::bark_cxx::LightningReceiveBalance pending_lightning_receive;
|
|
1053
1014
|
// Coins locked in a round.
|
|
1054
1015
|
::std::uint64_t pending_in_round CXX_DEFAULT_VALUE(0);
|
|
1055
1016
|
// Coins that are in the process of unilaterally exiting the Ark.
|
|
@@ -1091,6 +1052,7 @@ struct KeyPairResult final {
|
|
|
1091
1052
|
#define CXXBRIDGE1_STRUCT_bark_cxx$BarkMovementDestination
|
|
1092
1053
|
struct BarkMovementDestination final {
|
|
1093
1054
|
::rust::String destination;
|
|
1055
|
+
::rust::String payment_method;
|
|
1094
1056
|
::std::uint64_t amount_sat CXX_DEFAULT_VALUE(0);
|
|
1095
1057
|
|
|
1096
1058
|
using IsRelocatable = ::std::true_type;
|
|
@@ -1163,7 +1125,7 @@ void close_wallet();
|
|
|
1163
1125
|
|
|
1164
1126
|
bool verify_message(::rust::Str message, ::rust::Str signature, ::rust::Str public_key);
|
|
1165
1127
|
|
|
1166
|
-
::rust::Vec<::bark_cxx::BarkMovement>
|
|
1128
|
+
::rust::Vec<::bark_cxx::BarkMovement> history();
|
|
1167
1129
|
|
|
1168
1130
|
::rust::Vec<::bark_cxx::BarkVtxo> vtxos();
|
|
1169
1131
|
|
|
@@ -1177,6 +1139,8 @@ bool verify_message(::rust::Str message, ::rust::Str signature, ::rust::Str publ
|
|
|
1177
1139
|
|
|
1178
1140
|
::bark_cxx::LightningReceive const *lightning_receive_status(::rust::String payment_hash);
|
|
1179
1141
|
|
|
1142
|
+
::rust::String check_lightning_payment(::rust::String payment_hash, bool wait);
|
|
1143
|
+
|
|
1180
1144
|
void sync_pending_boards();
|
|
1181
1145
|
|
|
1182
1146
|
void maintenance();
|
|
@@ -1185,7 +1149,7 @@ void maintenance_with_onchain();
|
|
|
1185
1149
|
|
|
1186
1150
|
void maintenance_refresh();
|
|
1187
1151
|
|
|
1188
|
-
void
|
|
1152
|
+
void refresh_server();
|
|
1189
1153
|
|
|
1190
1154
|
void sync();
|
|
1191
1155
|
|
|
@@ -1201,11 +1165,11 @@ void validate_arkoor_address(::rust::Str address);
|
|
|
1201
1165
|
|
|
1202
1166
|
::bark_cxx::ArkoorPaymentResult send_arkoor_payment(::rust::Str destination, ::std::uint64_t amount_sat);
|
|
1203
1167
|
|
|
1204
|
-
::bark_cxx::
|
|
1168
|
+
::bark_cxx::LightningSend pay_lightning_invoice(::rust::Str destination, ::std::uint64_t const *amount_sat);
|
|
1205
1169
|
|
|
1206
|
-
::bark_cxx::
|
|
1170
|
+
::bark_cxx::LightningSend pay_lightning_offer(::rust::Str offer, ::std::uint64_t const *amount_sat);
|
|
1207
1171
|
|
|
1208
|
-
::bark_cxx::
|
|
1172
|
+
::bark_cxx::LightningSend pay_lightning_address(::rust::Str addr, ::std::uint64_t amount_sat, ::rust::Str comment);
|
|
1209
1173
|
|
|
1210
1174
|
::bark_cxx::RoundStatus send_round_onchain_payment(::rust::Str destination, ::std::uint64_t amount_sat);
|
|
1211
1175
|
|
|
@@ -1219,6 +1183,8 @@ void try_claim_all_lightning_receives(bool wait);
|
|
|
1219
1183
|
|
|
1220
1184
|
void sync_exits();
|
|
1221
1185
|
|
|
1186
|
+
void sync_pending_rounds();
|
|
1187
|
+
|
|
1222
1188
|
::bark_cxx::OnChainBalance onchain_balance();
|
|
1223
1189
|
|
|
1224
1190
|
void onchain_sync();
|
package/lib/module/index.js
CHANGED
|
@@ -42,8 +42,13 @@ export function loadWallet(datadir, config) {
|
|
|
42
42
|
export function closeWallet() {
|
|
43
43
|
return NitroArkHybridObject.closeWallet();
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Refreshes the server state.
|
|
48
|
+
* @returns A promise that resolves on success or rejects on error.
|
|
49
|
+
*/
|
|
50
|
+
export function refreshServer() {
|
|
51
|
+
return NitroArkHybridObject.refreshServer();
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
/**
|
|
@@ -104,6 +109,14 @@ export function syncExits() {
|
|
|
104
109
|
return NitroArkHybridObject.syncExits();
|
|
105
110
|
}
|
|
106
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Synchronizes pending rounds.
|
|
114
|
+
* @returns A promise that resolves on success.
|
|
115
|
+
*/
|
|
116
|
+
export function syncPendingRounds() {
|
|
117
|
+
return NitroArkHybridObject.syncPendingRounds();
|
|
118
|
+
}
|
|
119
|
+
|
|
107
120
|
// --- Wallet Info ---
|
|
108
121
|
|
|
109
122
|
/**
|
|
@@ -202,11 +215,11 @@ export function verifyMessage(message, signature, publicKey) {
|
|
|
202
215
|
}
|
|
203
216
|
|
|
204
217
|
/**
|
|
205
|
-
* Gets a paginated list of wallet
|
|
218
|
+
* Gets a paginated list of wallet history (balance changes).
|
|
206
219
|
* @returns A promise resolving to an array of BarkMovement objects.
|
|
207
220
|
*/
|
|
208
|
-
export function
|
|
209
|
-
return NitroArkHybridObject.
|
|
221
|
+
export function history() {
|
|
222
|
+
return NitroArkHybridObject.history();
|
|
210
223
|
}
|
|
211
224
|
|
|
212
225
|
/**
|
|
@@ -334,6 +347,16 @@ export function lightningReceiveStatus(paymentHash) {
|
|
|
334
347
|
return NitroArkHybridObject.lightningReceiveStatus(paymentHash);
|
|
335
348
|
}
|
|
336
349
|
|
|
350
|
+
/**
|
|
351
|
+
* Checks if a Lightning payment has been received and returns the preimage if available.
|
|
352
|
+
* @param paymentHash The payment hash of the Lightning payment.
|
|
353
|
+
* @param wait Whether to wait for the payment to be received.
|
|
354
|
+
* @returns A promise resolving to the preimage string if payment received, or null if not.
|
|
355
|
+
*/
|
|
356
|
+
export function checkLightningPayment(paymentHash, wait) {
|
|
357
|
+
return NitroArkHybridObject.checkLightningPayment(paymentHash, wait);
|
|
358
|
+
}
|
|
359
|
+
|
|
337
360
|
/**
|
|
338
361
|
* Attempts to claim a Lightning payment, optionally using a claim token.
|
|
339
362
|
* @param paymentHash The payment hash of the Lightning payment.
|
|
@@ -358,7 +381,7 @@ export function tryClaimAllLightningReceives(wait) {
|
|
|
358
381
|
* Pays a Bolt11 Lightning invoice.
|
|
359
382
|
* @param destination The Lightning invoice.
|
|
360
383
|
* @param amountSat The amount in satoshis to send. Use 0 for invoice amount.
|
|
361
|
-
* @returns A promise resolving to a
|
|
384
|
+
* @returns A promise resolving to a LightningSendResult object
|
|
362
385
|
*/
|
|
363
386
|
export function payLightningInvoice(destination, amountSat) {
|
|
364
387
|
return NitroArkHybridObject.payLightningInvoice(destination, amountSat);
|
|
@@ -368,7 +391,7 @@ export function payLightningInvoice(destination, amountSat) {
|
|
|
368
391
|
* Sends a payment to a Bolt12 offer.
|
|
369
392
|
* @param offer The Bolt12 offer.
|
|
370
393
|
* @param amountSat The amount in satoshis to send. Use 0 for invoice amount.
|
|
371
|
-
* @returns A promise resolving to a
|
|
394
|
+
* @returns A promise resolving to a LightningSendResult object
|
|
372
395
|
*/
|
|
373
396
|
export function payLightningOffer(offer, amountSat) {
|
|
374
397
|
return NitroArkHybridObject.payLightningOffer(offer, amountSat);
|
|
@@ -379,7 +402,7 @@ export function payLightningOffer(offer, amountSat) {
|
|
|
379
402
|
* @param addr The Lightning Address.
|
|
380
403
|
* @param amountSat The amount in satoshis to send.
|
|
381
404
|
* @param comment An optional comment.
|
|
382
|
-
* @returns A promise resolving to a
|
|
405
|
+
* @returns A promise resolving to a LightningSendResult object
|
|
383
406
|
*/
|
|
384
407
|
export function payLightningAddress(addr, amountSat, comment) {
|
|
385
408
|
return NitroArkHybridObject.payLightningAddress(addr, amountSat, comment);
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NitroModules","NitroArkHybridObject","createHybridObject","createMnemonic","createWallet","datadir","opts","loadWallet","config","closeWallet","
|
|
1
|
+
{"version":3,"names":["NitroModules","NitroArkHybridObject","createHybridObject","createMnemonic","createWallet","datadir","opts","loadWallet","config","closeWallet","refreshServer","isWalletLoaded","syncPendingBoards","maintenance","maintenanceWithOnchain","maintenanceRefresh","sync","syncExits","syncPendingRounds","getArkInfo","offchainBalance","deriveStoreNextKeypair","peakKeyPair","index","peakAddress","newAddress","signMessage","message","signMesssageWithMnemonic","mnemonic","network","deriveKeypairFromMnemonic","verifyMessage","signature","publicKey","history","vtxos","getFirstExpiringVtxoBlockheight","getNextRequiredRefreshBlockheight","getExpiringVtxos","threshold","onchainBalance","onchainSync","onchainListUnspent","onchainUtxos","onchainAddress","onchainSend","destination","amountSat","onchainDrain","onchainSendMany","outputs","bolt11Invoice","amountMsat","lightningReceiveStatus","paymentHash","checkLightningPayment","wait","tryClaimLightningReceive","token","tryClaimAllLightningReceives","payLightningInvoice","payLightningOffer","offer","payLightningAddress","addr","comment","boardAmount","boardAll","validateArkoorAddress","address","sendArkoorPayment","sendRoundOnchainPayment","offboardSpecific","vtxoIds","destinationAddress","offboardAll"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAA4B;AAkDzD;AACA,OAAO,MAAMC,oBAAoB,GAC/BD,YAAY,CAACE,kBAAkB,CAAW,UAAU,CAAC;;AAEvD;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAAA,EAAoB;EAChD,OAAOF,oBAAoB,CAACE,cAAc,CAAC,CAAC;AAC9C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAC1BC,OAAe,EACfC,IAAoB,EACL;EACf,OAAOL,oBAAoB,CAACG,YAAY,CAACC,OAAO,EAAEC,IAAI,CAAC;AACzD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CACxBF,OA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