react-native-nitro-ark 0.0.103 → 0.0.105
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 +200 -19
- package/cpp/generated/ark_cxx.h +57 -0
- package/lib/module/index.js +73 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/NitroArk.nitro.d.ts +28 -0
- package/lib/typescript/src/NitroArk.nitro.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +57 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/nitrogen/generated/shared/c++/BarkFeeEstimate.hpp +96 -0
- package/nitrogen/generated/shared/c++/ExitStatusResult.hpp +98 -0
- package/nitrogen/generated/shared/c++/ExitTransactionPackageResult.hpp +103 -0
- package/nitrogen/generated/shared/c++/HybridNitroArkSpec.cpp +8 -0
- package/nitrogen/generated/shared/c++/HybridNitroArkSpec.hpp +15 -1
- package/package.json +4 -4
- package/src/NitroArk.nitro.ts +38 -0
- package/src/index.tsx +105 -0
package/cpp/NitroArk.hpp
CHANGED
|
@@ -34,6 +34,35 @@ inline std::vector<BarkVtxo> convertRustVtxosToVector(const rust::Vec<bark_cxx::
|
|
|
34
34
|
return vtxos;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
inline std::vector<ExitVtxoResult> convertRustExitVtxosToVector(
|
|
38
|
+
const rust::Vec<bark_cxx::ExitVtxoResult>& rust_results) {
|
|
39
|
+
std::vector<ExitVtxoResult> results;
|
|
40
|
+
results.reserve(rust_results.size());
|
|
41
|
+
|
|
42
|
+
for (const auto& rust_result : rust_results) {
|
|
43
|
+
ExitVtxoResult result;
|
|
44
|
+
result.vtxo_id = std::string(rust_result.vtxo_id.data(), rust_result.vtxo_id.length());
|
|
45
|
+
result.amount_sat = static_cast<double>(rust_result.amount_sat);
|
|
46
|
+
result.state = std::string(rust_result.state.data(), rust_result.state.length());
|
|
47
|
+
|
|
48
|
+
result.history.reserve(rust_result.history.size());
|
|
49
|
+
for (const auto& state : rust_result.history) {
|
|
50
|
+
result.history.emplace_back(std::string(state.data(), state.length()));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
result.txids.reserve(rust_result.txids.size());
|
|
54
|
+
for (const auto& txid : rust_result.txids) {
|
|
55
|
+
result.txids.emplace_back(std::string(txid.data(), txid.length()));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
result.is_claimable = rust_result.is_claimable;
|
|
59
|
+
result.is_initialized = rust_result.is_initialized;
|
|
60
|
+
results.push_back(std::move(result));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return results;
|
|
64
|
+
}
|
|
65
|
+
|
|
37
66
|
inline BarkMovementDestination convertRustMovementDestination(const bark_cxx::BarkMovementDestination& destination_rs) {
|
|
38
67
|
BarkMovementDestination destination;
|
|
39
68
|
destination.destination = std::string(destination_rs.destination.data(), destination_rs.destination.length());
|
|
@@ -322,6 +351,21 @@ public:
|
|
|
322
351
|
});
|
|
323
352
|
}
|
|
324
353
|
|
|
354
|
+
std::shared_ptr<Promise<void>> startExitForVtxos(const std::vector<std::string>& vtxoIds) override {
|
|
355
|
+
return Promise<void>::async([vtxoIds]() {
|
|
356
|
+
try {
|
|
357
|
+
rust::Vec<rust::String> rust_vtxo_ids;
|
|
358
|
+
rust_vtxo_ids.reserve(vtxoIds.size());
|
|
359
|
+
for (const auto& vtxoId : vtxoIds) {
|
|
360
|
+
rust_vtxo_ids.push_back(vtxoId);
|
|
361
|
+
}
|
|
362
|
+
bark_cxx::start_exit_for_vtxos(std::move(rust_vtxo_ids));
|
|
363
|
+
} catch (const rust::Error& e) {
|
|
364
|
+
throw std::runtime_error(e.what());
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
|
|
325
369
|
std::shared_ptr<Promise<void>> syncExit() override {
|
|
326
370
|
return Promise<void>::async([]() {
|
|
327
371
|
try {
|
|
@@ -332,6 +376,16 @@ public:
|
|
|
332
376
|
});
|
|
333
377
|
}
|
|
334
378
|
|
|
379
|
+
std::shared_ptr<Promise<void>> syncNoProgress() override {
|
|
380
|
+
return Promise<void>::async([]() {
|
|
381
|
+
try {
|
|
382
|
+
bark_cxx::sync_no_progress();
|
|
383
|
+
} catch (const rust::Error& e) {
|
|
384
|
+
throw std::runtime_error(e.what());
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
|
|
335
389
|
std::shared_ptr<Promise<std::vector<ExitProgressStatusResult>>>
|
|
336
390
|
progressExits(std::optional<double> feeRateSatPerKvb) override {
|
|
337
391
|
return Promise<std::vector<ExitProgressStatusResult>>::async([feeRateSatPerKvb]() {
|
|
@@ -369,30 +423,58 @@ public:
|
|
|
369
423
|
return Promise<std::vector<ExitVtxoResult>>::async([]() {
|
|
370
424
|
try {
|
|
371
425
|
rust::Vec<bark_cxx::ExitVtxoResult> rust_results = bark_cxx::get_exit_vtxos();
|
|
426
|
+
return convertRustExitVtxosToVector(rust_results);
|
|
427
|
+
} catch (const rust::Error& e) {
|
|
428
|
+
throw std::runtime_error(e.what());
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
}
|
|
372
432
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
433
|
+
std::shared_ptr<Promise<std::vector<ExitVtxoResult>>> listClaimable() override {
|
|
434
|
+
return Promise<std::vector<ExitVtxoResult>>::async([]() {
|
|
435
|
+
try {
|
|
436
|
+
rust::Vec<bark_cxx::ExitVtxoResult> rust_results = bark_cxx::list_claimable();
|
|
437
|
+
return convertRustExitVtxosToVector(rust_results);
|
|
438
|
+
} catch (const rust::Error& e) {
|
|
439
|
+
throw std::runtime_error(e.what());
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
380
443
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
444
|
+
std::shared_ptr<Promise<std::optional<ExitStatusResult>>>
|
|
445
|
+
getExitStatus(const std::string& vtxoId, std::optional<bool> includeHistory,
|
|
446
|
+
std::optional<bool> includeTransactions) override {
|
|
447
|
+
return Promise<std::optional<ExitStatusResult>>::async([vtxoId, includeHistory, includeTransactions]() {
|
|
448
|
+
try {
|
|
449
|
+
const bark_cxx::ExitStatusResult* status_ptr =
|
|
450
|
+
bark_cxx::get_exit_status(vtxoId, includeHistory.value_or(false), includeTransactions.value_or(false));
|
|
451
|
+
if (status_ptr == nullptr) {
|
|
452
|
+
return std::optional<ExitStatusResult>();
|
|
453
|
+
}
|
|
385
454
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
455
|
+
std::unique_ptr<const bark_cxx::ExitStatusResult> rust_status(status_ptr);
|
|
456
|
+
ExitStatusResult result;
|
|
457
|
+
result.vtxo_id = std::string(rust_status->vtxo_id.data(), rust_status->vtxo_id.length());
|
|
458
|
+
result.state = std::string(rust_status->state.data(), rust_status->state.length());
|
|
390
459
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
460
|
+
result.history.reserve(rust_status->history.size());
|
|
461
|
+
for (const auto& state : rust_status->history) {
|
|
462
|
+
result.history.emplace_back(std::string(state.data(), state.length()));
|
|
394
463
|
}
|
|
395
|
-
|
|
464
|
+
|
|
465
|
+
result.transactions.reserve(rust_status->transactions.size());
|
|
466
|
+
for (const auto& rust_tx : rust_status->transactions) {
|
|
467
|
+
ExitTransactionPackageResult tx;
|
|
468
|
+
tx.exit_txid = std::string(rust_tx.exit_txid.data(), rust_tx.exit_txid.length());
|
|
469
|
+
tx.exit_tx_hex = std::string(rust_tx.exit_tx_hex.data(), rust_tx.exit_tx_hex.length());
|
|
470
|
+
tx.child_txid = std::string(rust_tx.child_txid.data(), rust_tx.child_txid.length());
|
|
471
|
+
tx.child_tx_hex = std::string(rust_tx.child_tx_hex.data(), rust_tx.child_tx_hex.length());
|
|
472
|
+
tx.child_origin = std::string(rust_tx.child_origin.data(), rust_tx.child_origin.length());
|
|
473
|
+
tx.has_child = rust_tx.has_child;
|
|
474
|
+
result.transactions.push_back(std::move(tx));
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
return std::optional<ExitStatusResult>(result);
|
|
396
478
|
} catch (const rust::Error& e) {
|
|
397
479
|
throw std::runtime_error(e.what());
|
|
398
480
|
}
|
|
@@ -1000,6 +1082,31 @@ public:
|
|
|
1000
1082
|
});
|
|
1001
1083
|
}
|
|
1002
1084
|
|
|
1085
|
+
std::shared_ptr<Promise<BarkFeeEstimate>> estimateLightningSendFee(double amountSat) override {
|
|
1086
|
+
return Promise<BarkFeeEstimate>::async([amountSat]() {
|
|
1087
|
+
try {
|
|
1088
|
+
bark_cxx::BarkFeeEstimate rust_result =
|
|
1089
|
+
bark_cxx::estimate_lightning_send_fee(static_cast<uint64_t>(amountSat));
|
|
1090
|
+
|
|
1091
|
+
BarkFeeEstimate result;
|
|
1092
|
+
result.gross_amount_sat = static_cast<double>(rust_result.gross_amount_sat);
|
|
1093
|
+
result.fee_sat = static_cast<double>(rust_result.fee_sat);
|
|
1094
|
+
result.net_amount_sat = static_cast<double>(rust_result.net_amount_sat);
|
|
1095
|
+
|
|
1096
|
+
std::vector<std::string> vtxos_spent;
|
|
1097
|
+
vtxos_spent.reserve(rust_result.vtxos_spent.size());
|
|
1098
|
+
for (const auto& vtxo_id : rust_result.vtxos_spent) {
|
|
1099
|
+
vtxos_spent.push_back(std::string(vtxo_id.data(), vtxo_id.length()));
|
|
1100
|
+
}
|
|
1101
|
+
result.vtxos_spent = vtxos_spent;
|
|
1102
|
+
|
|
1103
|
+
return result;
|
|
1104
|
+
} catch (const rust::Error& e) {
|
|
1105
|
+
throw std::runtime_error(e.what());
|
|
1106
|
+
}
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1003
1110
|
std::shared_ptr<Promise<Bolt11Invoice>> bolt11Invoice(double amountMsat,
|
|
1004
1111
|
const std::optional<std::string>& description) override {
|
|
1005
1112
|
return Promise<Bolt11Invoice>::async([amountMsat, description]() {
|
|
@@ -1187,6 +1294,31 @@ public:
|
|
|
1187
1294
|
});
|
|
1188
1295
|
}
|
|
1189
1296
|
|
|
1297
|
+
std::shared_ptr<Promise<BarkFeeEstimate>> estimateArkoorPaymentFee(double amountSat) override {
|
|
1298
|
+
return Promise<BarkFeeEstimate>::async([amountSat]() {
|
|
1299
|
+
try {
|
|
1300
|
+
bark_cxx::BarkFeeEstimate rust_result =
|
|
1301
|
+
bark_cxx::estimate_arkoor_payment_fee(static_cast<uint64_t>(amountSat));
|
|
1302
|
+
|
|
1303
|
+
BarkFeeEstimate result;
|
|
1304
|
+
result.gross_amount_sat = static_cast<double>(rust_result.gross_amount_sat);
|
|
1305
|
+
result.fee_sat = static_cast<double>(rust_result.fee_sat);
|
|
1306
|
+
result.net_amount_sat = static_cast<double>(rust_result.net_amount_sat);
|
|
1307
|
+
|
|
1308
|
+
std::vector<std::string> vtxos_spent;
|
|
1309
|
+
vtxos_spent.reserve(rust_result.vtxos_spent.size());
|
|
1310
|
+
for (const auto& vtxo_id : rust_result.vtxos_spent) {
|
|
1311
|
+
vtxos_spent.push_back(std::string(vtxo_id.data(), vtxo_id.length()));
|
|
1312
|
+
}
|
|
1313
|
+
result.vtxos_spent = vtxos_spent;
|
|
1314
|
+
|
|
1315
|
+
return result;
|
|
1316
|
+
} catch (const rust::Error& e) {
|
|
1317
|
+
throw std::runtime_error(e.what());
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1190
1322
|
std::shared_ptr<Promise<std::string>> sendOnchain(const std::string& destination, double amountSat) override {
|
|
1191
1323
|
return Promise<std::string>::async([destination, amountSat]() {
|
|
1192
1324
|
try {
|
|
@@ -1198,6 +1330,31 @@ public:
|
|
|
1198
1330
|
});
|
|
1199
1331
|
}
|
|
1200
1332
|
|
|
1333
|
+
std::shared_ptr<Promise<BarkFeeEstimate>> estimateSendOnchain(const std::string& destination, double amountSat) override {
|
|
1334
|
+
return Promise<BarkFeeEstimate>::async([destination, amountSat]() {
|
|
1335
|
+
try {
|
|
1336
|
+
bark_cxx::BarkFeeEstimate rust_result =
|
|
1337
|
+
bark_cxx::estimate_send_onchain(destination, static_cast<uint64_t>(amountSat));
|
|
1338
|
+
|
|
1339
|
+
BarkFeeEstimate result;
|
|
1340
|
+
result.gross_amount_sat = static_cast<double>(rust_result.gross_amount_sat);
|
|
1341
|
+
result.fee_sat = static_cast<double>(rust_result.fee_sat);
|
|
1342
|
+
result.net_amount_sat = static_cast<double>(rust_result.net_amount_sat);
|
|
1343
|
+
|
|
1344
|
+
std::vector<std::string> vtxos_spent;
|
|
1345
|
+
vtxos_spent.reserve(rust_result.vtxos_spent.size());
|
|
1346
|
+
for (const auto& vtxo_id : rust_result.vtxos_spent) {
|
|
1347
|
+
vtxos_spent.push_back(std::string(vtxo_id.data(), vtxo_id.length()));
|
|
1348
|
+
}
|
|
1349
|
+
result.vtxos_spent = vtxos_spent;
|
|
1350
|
+
|
|
1351
|
+
return result;
|
|
1352
|
+
} catch (const rust::Error& e) {
|
|
1353
|
+
throw std::runtime_error(e.what());
|
|
1354
|
+
}
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1201
1358
|
// --- Offboarding / Exiting ---
|
|
1202
1359
|
|
|
1203
1360
|
std::shared_ptr<Promise<std::string>> offboardSpecific(const std::vector<std::string>& vtxoIds,
|
|
@@ -1227,6 +1384,30 @@ public:
|
|
|
1227
1384
|
});
|
|
1228
1385
|
}
|
|
1229
1386
|
|
|
1387
|
+
std::shared_ptr<Promise<BarkFeeEstimate>> estimateOffboardAll(const std::string& destinationAddress) override {
|
|
1388
|
+
return Promise<BarkFeeEstimate>::async([destinationAddress]() {
|
|
1389
|
+
try {
|
|
1390
|
+
bark_cxx::BarkFeeEstimate rust_result = bark_cxx::estimate_offboard_all(destinationAddress);
|
|
1391
|
+
|
|
1392
|
+
BarkFeeEstimate result;
|
|
1393
|
+
result.gross_amount_sat = static_cast<double>(rust_result.gross_amount_sat);
|
|
1394
|
+
result.fee_sat = static_cast<double>(rust_result.fee_sat);
|
|
1395
|
+
result.net_amount_sat = static_cast<double>(rust_result.net_amount_sat);
|
|
1396
|
+
|
|
1397
|
+
std::vector<std::string> vtxos_spent;
|
|
1398
|
+
vtxos_spent.reserve(rust_result.vtxos_spent.size());
|
|
1399
|
+
for (const auto& vtxo_id : rust_result.vtxos_spent) {
|
|
1400
|
+
vtxos_spent.push_back(std::string(vtxo_id.data(), vtxo_id.length()));
|
|
1401
|
+
}
|
|
1402
|
+
result.vtxos_spent = vtxos_spent;
|
|
1403
|
+
|
|
1404
|
+
return result;
|
|
1405
|
+
} catch (const rust::Error& e) {
|
|
1406
|
+
throw std::runtime_error(e.what());
|
|
1407
|
+
}
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1230
1411
|
private:
|
|
1231
1412
|
// Tag for logging/debugging within Nitro
|
|
1232
1413
|
std::mutex subscriptions_mutex_;
|
package/cpp/generated/ark_cxx.h
CHANGED
|
@@ -972,9 +972,12 @@ namespace bark_cxx {
|
|
|
972
972
|
struct Bolt11Invoice;
|
|
973
973
|
struct LightningSend;
|
|
974
974
|
struct ArkoorPaymentResult;
|
|
975
|
+
struct BarkFeeEstimate;
|
|
975
976
|
struct OnchainPaymentResult;
|
|
976
977
|
struct ExitProgressStatusResult;
|
|
977
978
|
struct ExitVtxoResult;
|
|
979
|
+
struct ExitTransactionPackageResult;
|
|
980
|
+
struct ExitStatusResult;
|
|
978
981
|
struct CxxArkInfo;
|
|
979
982
|
struct ConfigOpts;
|
|
980
983
|
struct CreateOpts;
|
|
@@ -1066,6 +1069,18 @@ struct ArkoorPaymentResult final {
|
|
|
1066
1069
|
};
|
|
1067
1070
|
#endif // CXXBRIDGE1_STRUCT_bark_cxx$ArkoorPaymentResult
|
|
1068
1071
|
|
|
1072
|
+
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$BarkFeeEstimate
|
|
1073
|
+
#define CXXBRIDGE1_STRUCT_bark_cxx$BarkFeeEstimate
|
|
1074
|
+
struct BarkFeeEstimate final {
|
|
1075
|
+
::std::uint64_t gross_amount_sat CXX_DEFAULT_VALUE(0);
|
|
1076
|
+
::std::uint64_t fee_sat CXX_DEFAULT_VALUE(0);
|
|
1077
|
+
::std::uint64_t net_amount_sat CXX_DEFAULT_VALUE(0);
|
|
1078
|
+
::rust::Vec<::rust::String> vtxos_spent;
|
|
1079
|
+
|
|
1080
|
+
using IsRelocatable = ::std::true_type;
|
|
1081
|
+
};
|
|
1082
|
+
#endif // CXXBRIDGE1_STRUCT_bark_cxx$BarkFeeEstimate
|
|
1083
|
+
|
|
1069
1084
|
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$OnchainPaymentResult
|
|
1070
1085
|
#define CXXBRIDGE1_STRUCT_bark_cxx$OnchainPaymentResult
|
|
1071
1086
|
struct OnchainPaymentResult final {
|
|
@@ -1103,6 +1118,32 @@ struct ExitVtxoResult final {
|
|
|
1103
1118
|
};
|
|
1104
1119
|
#endif // CXXBRIDGE1_STRUCT_bark_cxx$ExitVtxoResult
|
|
1105
1120
|
|
|
1121
|
+
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$ExitTransactionPackageResult
|
|
1122
|
+
#define CXXBRIDGE1_STRUCT_bark_cxx$ExitTransactionPackageResult
|
|
1123
|
+
struct ExitTransactionPackageResult final {
|
|
1124
|
+
::rust::String exit_txid;
|
|
1125
|
+
::rust::String exit_tx_hex;
|
|
1126
|
+
::rust::String child_txid;
|
|
1127
|
+
::rust::String child_tx_hex;
|
|
1128
|
+
::rust::String child_origin;
|
|
1129
|
+
bool has_child CXX_DEFAULT_VALUE(false);
|
|
1130
|
+
|
|
1131
|
+
using IsRelocatable = ::std::true_type;
|
|
1132
|
+
};
|
|
1133
|
+
#endif // CXXBRIDGE1_STRUCT_bark_cxx$ExitTransactionPackageResult
|
|
1134
|
+
|
|
1135
|
+
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$ExitStatusResult
|
|
1136
|
+
#define CXXBRIDGE1_STRUCT_bark_cxx$ExitStatusResult
|
|
1137
|
+
struct ExitStatusResult final {
|
|
1138
|
+
::rust::String vtxo_id;
|
|
1139
|
+
::rust::String state;
|
|
1140
|
+
::rust::Vec<::rust::String> history;
|
|
1141
|
+
::rust::Vec<::bark_cxx::ExitTransactionPackageResult> transactions;
|
|
1142
|
+
|
|
1143
|
+
using IsRelocatable = ::std::true_type;
|
|
1144
|
+
};
|
|
1145
|
+
#endif // CXXBRIDGE1_STRUCT_bark_cxx$ExitStatusResult
|
|
1146
|
+
|
|
1106
1147
|
#ifndef CXXBRIDGE1_STRUCT_bark_cxx$CxxArkInfo
|
|
1107
1148
|
#define CXXBRIDGE1_STRUCT_bark_cxx$CxxArkInfo
|
|
1108
1149
|
struct CxxArkInfo final {
|
|
@@ -1409,6 +1450,10 @@ void validate_arkoor_address(::rust::Str address);
|
|
|
1409
1450
|
|
|
1410
1451
|
::bark_cxx::ArkoorPaymentResult send_arkoor_payment(::rust::Str destination, ::std::uint64_t amount_sat);
|
|
1411
1452
|
|
|
1453
|
+
::bark_cxx::BarkFeeEstimate estimate_arkoor_payment_fee(::std::uint64_t amount_sat);
|
|
1454
|
+
|
|
1455
|
+
::bark_cxx::BarkFeeEstimate estimate_lightning_send_fee(::std::uint64_t amount_sat);
|
|
1456
|
+
|
|
1412
1457
|
::bark_cxx::LightningSend pay_lightning_invoice(::rust::Str destination, ::std::uint64_t const *amount_sat);
|
|
1413
1458
|
|
|
1414
1459
|
::bark_cxx::LightningSend pay_lightning_offer(::rust::Str offer, ::std::uint64_t const *amount_sat);
|
|
@@ -1419,6 +1464,10 @@ void validate_arkoor_address(::rust::Str address);
|
|
|
1419
1464
|
|
|
1420
1465
|
::rust::Vec<::bark_cxx::ExitVtxoResult> get_exit_vtxos();
|
|
1421
1466
|
|
|
1467
|
+
::rust::Vec<::bark_cxx::ExitVtxoResult> list_claimable();
|
|
1468
|
+
|
|
1469
|
+
::bark_cxx::ExitStatusResult const *get_exit_status(::rust::Str vtxo_id, bool include_history, bool include_transactions);
|
|
1470
|
+
|
|
1422
1471
|
bool has_pending_exits();
|
|
1423
1472
|
|
|
1424
1473
|
::std::uint64_t pending_exit_total();
|
|
@@ -1429,18 +1478,26 @@ bool has_pending_exits();
|
|
|
1429
1478
|
|
|
1430
1479
|
::rust::String send_onchain(::rust::Str destination, ::std::uint64_t amount_sat);
|
|
1431
1480
|
|
|
1481
|
+
::bark_cxx::BarkFeeEstimate estimate_send_onchain(::rust::Str destination, ::std::uint64_t amount_sat);
|
|
1482
|
+
|
|
1432
1483
|
::rust::String offboard_specific(::rust::Vec<::rust::String> vtxo_ids, ::rust::Str destination_address);
|
|
1433
1484
|
|
|
1434
1485
|
::rust::String offboard_all(::rust::Str destination_address);
|
|
1435
1486
|
|
|
1487
|
+
::bark_cxx::BarkFeeEstimate estimate_offboard_all(::rust::Str destination_address);
|
|
1488
|
+
|
|
1436
1489
|
::bark_cxx::LightningReceive try_claim_lightning_receive(::rust::String payment_hash, bool wait, ::rust::String const *token);
|
|
1437
1490
|
|
|
1438
1491
|
void try_claim_all_lightning_receives(bool wait);
|
|
1439
1492
|
|
|
1440
1493
|
void start_exit_for_entire_wallet();
|
|
1441
1494
|
|
|
1495
|
+
void start_exit_for_vtxos(::rust::Vec<::rust::String> vtxo_ids);
|
|
1496
|
+
|
|
1442
1497
|
void sync_exit();
|
|
1443
1498
|
|
|
1499
|
+
void sync_no_progress();
|
|
1500
|
+
|
|
1444
1501
|
void sync_exits();
|
|
1445
1502
|
|
|
1446
1503
|
void sync_pending_rounds();
|
package/lib/module/index.js
CHANGED
|
@@ -127,6 +127,15 @@ export function startExitForEntireWallet() {
|
|
|
127
127
|
return NitroArkHybridObject.startExitForEntireWallet();
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Starts unilateral exits for selected wallet VTXOs.
|
|
132
|
+
* @param vtxoIds VTXO IDs to exit.
|
|
133
|
+
* @returns A promise that resolves on success.
|
|
134
|
+
*/
|
|
135
|
+
export function startExitForVtxos(vtxoIds) {
|
|
136
|
+
return NitroArkHybridObject.startExitForVtxos(vtxoIds);
|
|
137
|
+
}
|
|
138
|
+
|
|
130
139
|
/**
|
|
131
140
|
* Synchronizes the exit coordinator state.
|
|
132
141
|
* @returns A promise that resolves on success.
|
|
@@ -135,6 +144,14 @@ export function syncExit() {
|
|
|
135
144
|
return NitroArkHybridObject.syncExit();
|
|
136
145
|
}
|
|
137
146
|
|
|
147
|
+
/**
|
|
148
|
+
* Synchronizes tracked exits without advancing their state.
|
|
149
|
+
* @returns A promise that resolves on success.
|
|
150
|
+
*/
|
|
151
|
+
export function syncNoProgress() {
|
|
152
|
+
return NitroArkHybridObject.syncNoProgress();
|
|
153
|
+
}
|
|
154
|
+
|
|
138
155
|
/**
|
|
139
156
|
* Progresses tracked exits by one step.
|
|
140
157
|
* @param feeRateSatPerKvb Optional fee rate override in sat/kvB.
|
|
@@ -152,6 +169,25 @@ export function getExitVtxos() {
|
|
|
152
169
|
return NitroArkHybridObject.getExitVtxos();
|
|
153
170
|
}
|
|
154
171
|
|
|
172
|
+
/**
|
|
173
|
+
* Lists tracked unilateral exits that are claimable.
|
|
174
|
+
* @returns A promise resolving to claimable exit entries.
|
|
175
|
+
*/
|
|
176
|
+
export function listClaimable() {
|
|
177
|
+
return NitroArkHybridObject.listClaimable();
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Gets the detailed unilateral exit status for a tracked VTXO.
|
|
182
|
+
* @param vtxoId Exit VTXO ID to inspect.
|
|
183
|
+
* @param includeHistory Whether to include the state transition history.
|
|
184
|
+
* @param includeTransactions Whether to include exit transaction packages as hex.
|
|
185
|
+
* @returns A promise resolving to the exit status, or undefined when the VTXO is not tracked as an exit.
|
|
186
|
+
*/
|
|
187
|
+
export function getExitStatus(vtxoId, includeHistory, includeTransactions) {
|
|
188
|
+
return NitroArkHybridObject.getExitStatus(vtxoId, includeHistory, includeTransactions);
|
|
189
|
+
}
|
|
190
|
+
|
|
155
191
|
/**
|
|
156
192
|
* Checks whether the wallet has exits that are still pending.
|
|
157
193
|
* @returns A promise resolving to true when any tracked exit is not yet claimable.
|
|
@@ -541,6 +577,15 @@ export function payLightningAddress(addr, amountSat, comment) {
|
|
|
541
577
|
return NitroArkHybridObject.payLightningAddress(addr, amountSat, comment);
|
|
542
578
|
}
|
|
543
579
|
|
|
580
|
+
/**
|
|
581
|
+
* Estimates the fee for a Lightning send.
|
|
582
|
+
* @param amountSat The amount in satoshis to send.
|
|
583
|
+
* @returns A promise resolving to the fee estimate.
|
|
584
|
+
*/
|
|
585
|
+
export function estimateLightningSendFee(amountSat) {
|
|
586
|
+
return NitroArkHybridObject.estimateLightningSendFee(amountSat);
|
|
587
|
+
}
|
|
588
|
+
|
|
544
589
|
// --- Ark Operations ---
|
|
545
590
|
|
|
546
591
|
/**
|
|
@@ -579,6 +624,15 @@ export function sendArkoorPayment(destination, amountSat) {
|
|
|
579
624
|
return NitroArkHybridObject.sendArkoorPayment(destination, amountSat);
|
|
580
625
|
}
|
|
581
626
|
|
|
627
|
+
/**
|
|
628
|
+
* Estimates the fee for an Arkoor payment.
|
|
629
|
+
* @param amountSat The amount in satoshis to send.
|
|
630
|
+
* @returns A promise resolving to the fee estimate.
|
|
631
|
+
*/
|
|
632
|
+
export function estimateArkoorPaymentFee(amountSat) {
|
|
633
|
+
return NitroArkHybridObject.estimateArkoorPaymentFee(amountSat);
|
|
634
|
+
}
|
|
635
|
+
|
|
582
636
|
/**
|
|
583
637
|
* Sends an onchain payment via an Ark round.
|
|
584
638
|
* @param destination The destination Bitcoin address.
|
|
@@ -589,6 +643,16 @@ export function sendOnchain(destination, amountSat) {
|
|
|
589
643
|
return NitroArkHybridObject.sendOnchain(destination, amountSat);
|
|
590
644
|
}
|
|
591
645
|
|
|
646
|
+
/**
|
|
647
|
+
* Estimates the fee for sending an onchain payment via an Ark round.
|
|
648
|
+
* @param destination The destination Bitcoin address.
|
|
649
|
+
* @param amountSat The amount in satoshis to send.
|
|
650
|
+
* @returns A promise resolving to the fee estimate.
|
|
651
|
+
*/
|
|
652
|
+
export function estimateSendOnchain(destination, amountSat) {
|
|
653
|
+
return NitroArkHybridObject.estimateSendOnchain(destination, amountSat);
|
|
654
|
+
}
|
|
655
|
+
|
|
592
656
|
// --- Offboarding / Exiting ---
|
|
593
657
|
|
|
594
658
|
/**
|
|
@@ -610,5 +674,14 @@ export function offboardAll(destinationAddress) {
|
|
|
610
674
|
return NitroArkHybridObject.offboardAll(destinationAddress);
|
|
611
675
|
}
|
|
612
676
|
|
|
677
|
+
/**
|
|
678
|
+
* Estimates the fee for offboarding all Ark funds to an onchain address.
|
|
679
|
+
* @param destinationAddress The destination Bitcoin address.
|
|
680
|
+
* @returns A promise resolving to the fee estimate.
|
|
681
|
+
*/
|
|
682
|
+
export function estimateOffboardAll(destinationAddress) {
|
|
683
|
+
return NitroArkHybridObject.estimateOffboardAll(destinationAddress);
|
|
684
|
+
}
|
|
685
|
+
|
|
613
686
|
// --- Re-export types and enums ---
|
|
614
687
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NitroModules","NitroArkHybridObject","createHybridObject","createMnemonic","createWallet","datadir","opts","loadWallet","config","closeWallet","refreshServer","isWalletLoaded","syncPendingBoards","maintenance","maintenanceWithOnchain","maintenanceDelegated","maintenanceWithOnchainDelegated","maintenanceRefresh","sync","startExitForEntireWallet","syncExit","progressExits","feeRateSatPerKvb","getExitVtxos","hasPendingExits","pendingExitTotal","allClaimableAtHeight","drainExits","vtxoIds","destinationAddress","syncExits","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","history","vtxos","getFirstExpiringVtxoBlockheight","getNextRequiredRefreshBlockheight","getExpiringVtxos","threshold","onchainBalance","onchainSync","onchainListUnspent","onchainUtxos","onchainAddress","onchainSend","destination","amountSat","onchainDrain","onchainSendMany","outputs","bolt11Invoice","amountMsat","description","lightningReceiveStatus","checkLightningPayment","wait","tryClaimLightningReceive","token","tryClaimAllLightningReceives","payLightningInvoice","payLightningOffer","offer","payLightningAddress","addr","comment","boardAmount","boardAll","validateArkoorAddress","sendArkoorPayment","sendOnchain","offboardSpecific","offboardAll"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAA4B;AAyFzD;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,OAAe,EACfG,MAAsB,EACP;EACf,OAAOP,oBAAoB,CAACM,UAAU,CAACF,OAAO,EAAEG,MAAM,CAAC;AACzD;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAAA,EAAkB;EAC3C,OAAOR,oBAAoB,CAACQ,WAAW,CAAC,CAAC;AAC3C;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAAA,EAAkB;EAC7C,OAAOT,oBAAoB,CAACS,aAAa,CAAC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CAACC,IAAI,EAAEjB,SAAS,EAAEkB,OAAO,CAAC;AAC3E;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAACnB,SAAiB,EAAwB;EACnE,OAAOrE,oBAAoB,CAACwF,WAAW,CAACnB,SAAS,CAAC;AACpD;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASoB,QAAQA,CAAA,EAAyB;EAC/C,OAAOzF,oBAAoB,CAACyF,QAAQ,CAAC,CAAC;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAACrC,OAAe,EAAiB;EACpE,OAAOrD,oBAAoB,CAAC0F,qBAAqB,CAACrC,OAAO,CAAC;AAC5D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASsC,iBAAiBA,CAC/BvB,WAAmB,EACnBC,SAAiB,EACa;EAC9B,OAAOrE,oBAAoB,CAAC2F,iBAAiB,CAACvB,WAAW,EAAEC,SAAS,CAAC;AACvE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASuB,WAAWA,CACzBxB,WAAmB,EACnBC,SAAiB,EACA;EACjB,OAAOrE,oBAAoB,CAAC4F,WAAW,CAACxB,WAAW,EAAEC,SAAS,CAAC;AACjE;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASwB,gBAAgBA,CAC9BlE,OAAiB,EACjBC,kBAA0B,EACT;EACjB,OAAO5B,oBAAoB,CAAC6F,gBAAgB,CAAClE,OAAO,EAAEC,kBAAkB,CAAC;AAC3E;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASkE,WAAWA,CAAClE,kBAA0B,EAAmB;EACvE,OAAO5B,oBAAoB,CAAC8F,WAAW,CAAClE,kBAAkB,CAAC;AAC7D;;AAEA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["NitroModules","NitroArkHybridObject","createHybridObject","createMnemonic","createWallet","datadir","opts","loadWallet","config","closeWallet","refreshServer","isWalletLoaded","syncPendingBoards","maintenance","maintenanceWithOnchain","maintenanceDelegated","maintenanceWithOnchainDelegated","maintenanceRefresh","sync","startExitForEntireWallet","startExitForVtxos","vtxoIds","syncExit","syncNoProgress","progressExits","feeRateSatPerKvb","getExitVtxos","listClaimable","getExitStatus","vtxoId","includeHistory","includeTransactions","hasPendingExits","pendingExitTotal","allClaimableAtHeight","drainExits","destinationAddress","syncExits","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","history","vtxos","getFirstExpiringVtxoBlockheight","getNextRequiredRefreshBlockheight","getExpiringVtxos","threshold","onchainBalance","onchainSync","onchainListUnspent","onchainUtxos","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","sendOnchain","estimateSendOnchain","offboardSpecific","offboardAll","estimateOffboardAll"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAA4B;AAuGzD;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,OA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;AACA;AACA;AACA;AACA,OAAO,SAASqE,WAAWA,CAACrE,kBAA0B,EAAmB;EACvE,OAAOnC,oBAAoB,CAACwG,WAAW,CAACrE,kBAAkB,CAAC;AAC7D;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASsE,mBAAmBA,CACjCtE,kBAA0B,EACA;EAC1B,OAAOnC,oBAAoB,CAACyG,mBAAmB,CAACtE,kBAAkB,CAAC;AACrE;;AAEA","ignoreList":[]}
|
|
@@ -62,6 +62,12 @@ export interface ArkoorPaymentResult {
|
|
|
62
62
|
destination_pubkey: string;
|
|
63
63
|
vtxos: BarkVtxo[];
|
|
64
64
|
}
|
|
65
|
+
export interface BarkFeeEstimate {
|
|
66
|
+
gross_amount_sat: number;
|
|
67
|
+
fee_sat: number;
|
|
68
|
+
net_amount_sat: number;
|
|
69
|
+
vtxos_spent: string[];
|
|
70
|
+
}
|
|
65
71
|
export interface ExitProgressStatusResult {
|
|
66
72
|
vtxo_id: string;
|
|
67
73
|
state: string;
|
|
@@ -76,6 +82,20 @@ export interface ExitVtxoResult {
|
|
|
76
82
|
is_claimable: boolean;
|
|
77
83
|
is_initialized: boolean;
|
|
78
84
|
}
|
|
85
|
+
export interface ExitTransactionPackageResult {
|
|
86
|
+
exit_txid: string;
|
|
87
|
+
exit_tx_hex: string;
|
|
88
|
+
child_txid: string;
|
|
89
|
+
child_tx_hex: string;
|
|
90
|
+
child_origin: string;
|
|
91
|
+
has_child: boolean;
|
|
92
|
+
}
|
|
93
|
+
export interface ExitStatusResult {
|
|
94
|
+
vtxo_id: string;
|
|
95
|
+
state: string;
|
|
96
|
+
history: string[];
|
|
97
|
+
transactions: ExitTransactionPackageResult[];
|
|
98
|
+
}
|
|
79
99
|
export interface LightningSendResult {
|
|
80
100
|
invoice: string;
|
|
81
101
|
payment_hash: string;
|
|
@@ -179,9 +199,13 @@ export interface NitroArk extends HybridObject<{
|
|
|
179
199
|
maintenanceRefresh(): Promise<void>;
|
|
180
200
|
sync(): Promise<void>;
|
|
181
201
|
startExitForEntireWallet(): Promise<void>;
|
|
202
|
+
startExitForVtxos(vtxoIds: string[]): Promise<void>;
|
|
182
203
|
syncExit(): Promise<void>;
|
|
204
|
+
syncNoProgress(): Promise<void>;
|
|
183
205
|
progressExits(feeRateSatPerKvb?: number): Promise<ExitProgressStatusResult[]>;
|
|
184
206
|
getExitVtxos(): Promise<ExitVtxoResult[]>;
|
|
207
|
+
listClaimable(): Promise<ExitVtxoResult[]>;
|
|
208
|
+
getExitStatus(vtxoId: string, includeHistory?: boolean, includeTransactions?: boolean): Promise<ExitStatusResult | undefined>;
|
|
185
209
|
hasPendingExits(): Promise<boolean>;
|
|
186
210
|
pendingExitTotal(): Promise<number>;
|
|
187
211
|
allClaimableAtHeight(): Promise<number | undefined>;
|
|
@@ -220,10 +244,13 @@ export interface NitroArk extends HybridObject<{
|
|
|
220
244
|
boardAll(): Promise<BoardResult>;
|
|
221
245
|
validateArkoorAddress(address: string): Promise<void>;
|
|
222
246
|
sendArkoorPayment(destination: string, amountSat: number): Promise<ArkoorPaymentResult>;
|
|
247
|
+
estimateArkoorPaymentFee(amountSat: number): Promise<BarkFeeEstimate>;
|
|
223
248
|
payLightningInvoice(destination: string, amountSat?: number): Promise<LightningSendResult>;
|
|
224
249
|
payLightningOffer(offer: string, amountSat?: number): Promise<LightningSendResult>;
|
|
225
250
|
payLightningAddress(addr: string, amountSat: number, comment: string): Promise<LightningSendResult>;
|
|
251
|
+
estimateLightningSendFee(amountSat: number): Promise<BarkFeeEstimate>;
|
|
226
252
|
sendOnchain(destination: string, amountSat: number): Promise<string>;
|
|
253
|
+
estimateSendOnchain(destination: string, amountSat: number): Promise<BarkFeeEstimate>;
|
|
227
254
|
bolt11Invoice(amountMsat: number, description?: string): Promise<Bolt11Invoice>;
|
|
228
255
|
lightningReceiveStatus(paymentHash: string): Promise<LightningReceive | undefined>;
|
|
229
256
|
checkLightningPayment(paymentHash: string, wait: boolean): Promise<string | null>;
|
|
@@ -231,6 +258,7 @@ export interface NitroArk extends HybridObject<{
|
|
|
231
258
|
tryClaimAllLightningReceives(wait: boolean): Promise<void>;
|
|
232
259
|
offboardSpecific(vtxoIds: string[], destinationAddress: string): Promise<string>;
|
|
233
260
|
offboardAll(destinationAddress: string): Promise<string>;
|
|
261
|
+
estimateOffboardAll(destinationAddress: string): Promise<BarkFeeEstimate>;
|
|
234
262
|
}
|
|
235
263
|
export {};
|
|
236
264
|
//# sourceMappingURL=NitroArk.nitro.d.ts.map
|