@secondts/bark-react-native 0.12.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cpp/generated/bark.cpp +187 -0
- package/cpp/generated/bark.hpp +10 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +242 -9
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +241 -8
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +10 -0
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +238 -5
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +10 -0
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +238 -5
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +29 -0
- package/src/generated/bark.ts +522 -5
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ npx expo install @secondts/bark-react-native@beta
|
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
62
|
# Or install a specific beta version
|
|
63
|
-
npx expo install @secondts/bark-react-native@0.
|
|
63
|
+
npx expo install @secondts/bark-react-native@0.14.0
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
For bare React Native projects, use:
|
package/cpp/generated/bark.cpp
CHANGED
|
@@ -376,6 +376,13 @@ extern "C" {
|
|
|
376
376
|
RustBuffer description,
|
|
377
377
|
RustBuffer token
|
|
378
378
|
);
|
|
379
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(
|
|
380
|
+
/*handle*/ uint64_t ptr,
|
|
381
|
+
uint64_t amount_sats,
|
|
382
|
+
RustBuffer claim_destination,
|
|
383
|
+
RustBuffer description,
|
|
384
|
+
RustBuffer token
|
|
385
|
+
);
|
|
379
386
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_broadcast_tx(
|
|
380
387
|
/*handle*/ uint64_t ptr,
|
|
381
388
|
RustBuffer tx_hex
|
|
@@ -608,6 +615,14 @@ extern "C" {
|
|
|
608
615
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_properties(
|
|
609
616
|
/*handle*/ uint64_t ptr
|
|
610
617
|
);
|
|
618
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_recover_vtxos(
|
|
619
|
+
/*handle*/ uint64_t ptr,
|
|
620
|
+
RustBuffer vtxo_ids
|
|
621
|
+
);
|
|
622
|
+
RustBuffer uniffi_bark_ffi_fn_method_wallet_recovery_report(
|
|
623
|
+
/*handle*/ uint64_t ptr,
|
|
624
|
+
RustCallStatus *uniffi_out_err
|
|
625
|
+
);
|
|
611
626
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_refresh_server(
|
|
612
627
|
/*handle*/ uint64_t ptr
|
|
613
628
|
);
|
|
@@ -619,6 +634,11 @@ extern "C" {
|
|
|
619
634
|
/*handle*/ uint64_t ptr,
|
|
620
635
|
RustBuffer vtxo_ids
|
|
621
636
|
);
|
|
637
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled(
|
|
638
|
+
/*handle*/ uint64_t ptr,
|
|
639
|
+
RustBuffer vtxo_ids,
|
|
640
|
+
uint32_t scheduled_height
|
|
641
|
+
);
|
|
622
642
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_run_daemon(
|
|
623
643
|
/*handle*/ uint64_t ptr
|
|
624
644
|
);
|
|
@@ -677,6 +697,10 @@ extern "C" {
|
|
|
677
697
|
/*handle*/ uint64_t ptr,
|
|
678
698
|
RustBuffer address
|
|
679
699
|
);
|
|
700
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_vtxo_encoded(
|
|
701
|
+
/*handle*/ uint64_t ptr,
|
|
702
|
+
RustBuffer vtxo_id
|
|
703
|
+
);
|
|
680
704
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_vtxos(
|
|
681
705
|
/*handle*/ uint64_t ptr
|
|
682
706
|
);
|
|
@@ -965,6 +989,8 @@ extern "C" {
|
|
|
965
989
|
);
|
|
966
990
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice(
|
|
967
991
|
);
|
|
992
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address(
|
|
993
|
+
);
|
|
968
994
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_broadcast_tx(
|
|
969
995
|
);
|
|
970
996
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds(
|
|
@@ -1085,12 +1111,18 @@ extern "C" {
|
|
|
1085
1111
|
);
|
|
1086
1112
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_properties(
|
|
1087
1113
|
);
|
|
1114
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_recover_vtxos(
|
|
1115
|
+
);
|
|
1116
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_recovery_report(
|
|
1117
|
+
);
|
|
1088
1118
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_refresh_server(
|
|
1089
1119
|
);
|
|
1090
1120
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos(
|
|
1091
1121
|
);
|
|
1092
1122
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated(
|
|
1093
1123
|
);
|
|
1124
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled(
|
|
1125
|
+
);
|
|
1094
1126
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_run_daemon(
|
|
1095
1127
|
);
|
|
1096
1128
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment(
|
|
@@ -1123,6 +1155,8 @@ extern "C" {
|
|
|
1123
1155
|
);
|
|
1124
1156
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address(
|
|
1125
1157
|
);
|
|
1158
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded(
|
|
1159
|
+
);
|
|
1126
1160
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_vtxos(
|
|
1127
1161
|
);
|
|
1128
1162
|
uint16_t uniffi_bark_ffi_checksum_constructor_onchainwallet_custom(
|
|
@@ -4829,6 +4863,14 @@ NativeBark::NativeBark(
|
|
|
4829
4863
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(rt, thisVal, args, count);
|
|
4830
4864
|
}
|
|
4831
4865
|
);
|
|
4866
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address"] = jsi::Function::createFromHostFunction(
|
|
4867
|
+
rt,
|
|
4868
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address"),
|
|
4869
|
+
5,
|
|
4870
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4871
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(rt, thisVal, args, count);
|
|
4872
|
+
}
|
|
4873
|
+
);
|
|
4832
4874
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_broadcast_tx"] = jsi::Function::createFromHostFunction(
|
|
4833
4875
|
rt,
|
|
4834
4876
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_broadcast_tx"),
|
|
@@ -5309,6 +5351,22 @@ NativeBark::NativeBark(
|
|
|
5309
5351
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_properties(rt, thisVal, args, count);
|
|
5310
5352
|
}
|
|
5311
5353
|
);
|
|
5354
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_recover_vtxos"] = jsi::Function::createFromHostFunction(
|
|
5355
|
+
rt,
|
|
5356
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_recover_vtxos"),
|
|
5357
|
+
2,
|
|
5358
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5359
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_recover_vtxos(rt, thisVal, args, count);
|
|
5360
|
+
}
|
|
5361
|
+
);
|
|
5362
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_report"] = jsi::Function::createFromHostFunction(
|
|
5363
|
+
rt,
|
|
5364
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_report"),
|
|
5365
|
+
1,
|
|
5366
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5367
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_recovery_report(rt, thisVal, args, count);
|
|
5368
|
+
}
|
|
5369
|
+
);
|
|
5312
5370
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server"] = jsi::Function::createFromHostFunction(
|
|
5313
5371
|
rt,
|
|
5314
5372
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server"),
|
|
@@ -5333,6 +5391,14 @@ NativeBark::NativeBark(
|
|
|
5333
5391
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(rt, thisVal, args, count);
|
|
5334
5392
|
}
|
|
5335
5393
|
);
|
|
5394
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled"] = jsi::Function::createFromHostFunction(
|
|
5395
|
+
rt,
|
|
5396
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled"),
|
|
5397
|
+
3,
|
|
5398
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5399
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled(rt, thisVal, args, count);
|
|
5400
|
+
}
|
|
5401
|
+
);
|
|
5336
5402
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon"] = jsi::Function::createFromHostFunction(
|
|
5337
5403
|
rt,
|
|
5338
5404
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon"),
|
|
@@ -5461,6 +5527,14 @@ NativeBark::NativeBark(
|
|
|
5461
5527
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(rt, thisVal, args, count);
|
|
5462
5528
|
}
|
|
5463
5529
|
);
|
|
5530
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_vtxo_encoded"] = jsi::Function::createFromHostFunction(
|
|
5531
|
+
rt,
|
|
5532
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_vtxo_encoded"),
|
|
5533
|
+
2,
|
|
5534
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5535
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_vtxo_encoded(rt, thisVal, args, count);
|
|
5536
|
+
}
|
|
5537
|
+
);
|
|
5464
5538
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos"] = jsi::Function::createFromHostFunction(
|
|
5465
5539
|
rt,
|
|
5466
5540
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos"),
|
|
@@ -6149,6 +6223,14 @@ NativeBark::NativeBark(
|
|
|
6149
6223
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice(rt, thisVal, args, count);
|
|
6150
6224
|
}
|
|
6151
6225
|
);
|
|
6226
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address"] = jsi::Function::createFromHostFunction(
|
|
6227
|
+
rt,
|
|
6228
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address"),
|
|
6229
|
+
0,
|
|
6230
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6231
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address(rt, thisVal, args, count);
|
|
6232
|
+
}
|
|
6233
|
+
);
|
|
6152
6234
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx"] = jsi::Function::createFromHostFunction(
|
|
6153
6235
|
rt,
|
|
6154
6236
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx"),
|
|
@@ -6629,6 +6711,22 @@ NativeBark::NativeBark(
|
|
|
6629
6711
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_properties(rt, thisVal, args, count);
|
|
6630
6712
|
}
|
|
6631
6713
|
);
|
|
6714
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos"] = jsi::Function::createFromHostFunction(
|
|
6715
|
+
rt,
|
|
6716
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos"),
|
|
6717
|
+
0,
|
|
6718
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6719
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos(rt, thisVal, args, count);
|
|
6720
|
+
}
|
|
6721
|
+
);
|
|
6722
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_report"] = jsi::Function::createFromHostFunction(
|
|
6723
|
+
rt,
|
|
6724
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_report"),
|
|
6725
|
+
0,
|
|
6726
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6727
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_report(rt, thisVal, args, count);
|
|
6728
|
+
}
|
|
6729
|
+
);
|
|
6632
6730
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server"] = jsi::Function::createFromHostFunction(
|
|
6633
6731
|
rt,
|
|
6634
6732
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server"),
|
|
@@ -6653,6 +6751,14 @@ NativeBark::NativeBark(
|
|
|
6653
6751
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated(rt, thisVal, args, count);
|
|
6654
6752
|
}
|
|
6655
6753
|
);
|
|
6754
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled"] = jsi::Function::createFromHostFunction(
|
|
6755
|
+
rt,
|
|
6756
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled"),
|
|
6757
|
+
0,
|
|
6758
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6759
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled(rt, thisVal, args, count);
|
|
6760
|
+
}
|
|
6761
|
+
);
|
|
6656
6762
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon"] = jsi::Function::createFromHostFunction(
|
|
6657
6763
|
rt,
|
|
6658
6764
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon"),
|
|
@@ -6781,6 +6887,14 @@ NativeBark::NativeBark(
|
|
|
6781
6887
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address(rt, thisVal, args, count);
|
|
6782
6888
|
}
|
|
6783
6889
|
);
|
|
6890
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded"] = jsi::Function::createFromHostFunction(
|
|
6891
|
+
rt,
|
|
6892
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded"),
|
|
6893
|
+
0,
|
|
6894
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6895
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded(rt, thisVal, args, count);
|
|
6896
|
+
}
|
|
6897
|
+
);
|
|
6784
6898
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos"] = jsi::Function::createFromHostFunction(
|
|
6785
6899
|
rt,
|
|
6786
6900
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos"),
|
|
@@ -7339,6 +7453,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(jsi::
|
|
|
7339
7453
|
);
|
|
7340
7454
|
|
|
7341
7455
|
|
|
7456
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7457
|
+
}
|
|
7458
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7459
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[4])
|
|
7460
|
+
);
|
|
7461
|
+
|
|
7462
|
+
|
|
7342
7463
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7343
7464
|
}
|
|
7344
7465
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -7773,6 +7894,23 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_properties(jsi::Runt
|
|
|
7773
7894
|
|
|
7774
7895
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7775
7896
|
}
|
|
7897
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_recover_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7898
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_recover_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
7899
|
+
);
|
|
7900
|
+
|
|
7901
|
+
|
|
7902
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7903
|
+
}
|
|
7904
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_recovery_report(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7905
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7906
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_recovery_report(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
7907
|
+
&status
|
|
7908
|
+
);
|
|
7909
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7910
|
+
|
|
7911
|
+
|
|
7912
|
+
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
7913
|
+
}
|
|
7776
7914
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7777
7915
|
auto value = uniffi_bark_ffi_fn_method_wallet_refresh_server(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
7778
7916
|
);
|
|
@@ -7792,6 +7930,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delega
|
|
|
7792
7930
|
);
|
|
7793
7931
|
|
|
7794
7932
|
|
|
7933
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7934
|
+
}
|
|
7935
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7936
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[2])
|
|
7937
|
+
);
|
|
7938
|
+
|
|
7939
|
+
|
|
7795
7940
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7796
7941
|
}
|
|
7797
7942
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -7904,6 +8049,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_addr
|
|
|
7904
8049
|
);
|
|
7905
8050
|
|
|
7906
8051
|
|
|
8052
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8053
|
+
}
|
|
8054
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_vtxo_encoded(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8055
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_vtxo_encoded(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
8056
|
+
);
|
|
8057
|
+
|
|
8058
|
+
|
|
7907
8059
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7908
8060
|
}
|
|
7909
8061
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8556,6 +8708,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice
|
|
|
8556
8708
|
);
|
|
8557
8709
|
|
|
8558
8710
|
|
|
8711
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8712
|
+
}
|
|
8713
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8714
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address(
|
|
8715
|
+
);
|
|
8716
|
+
|
|
8717
|
+
|
|
8559
8718
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8560
8719
|
}
|
|
8561
8720
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8976,6 +9135,20 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_properties(jsi
|
|
|
8976
9135
|
);
|
|
8977
9136
|
|
|
8978
9137
|
|
|
9138
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9139
|
+
}
|
|
9140
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9141
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_recover_vtxos(
|
|
9142
|
+
);
|
|
9143
|
+
|
|
9144
|
+
|
|
9145
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9146
|
+
}
|
|
9147
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_report(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9148
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_recovery_report(
|
|
9149
|
+
);
|
|
9150
|
+
|
|
9151
|
+
|
|
8979
9152
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8980
9153
|
}
|
|
8981
9154
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8997,6 +9170,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_
|
|
|
8997
9170
|
);
|
|
8998
9171
|
|
|
8999
9172
|
|
|
9173
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9174
|
+
}
|
|
9175
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9176
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled(
|
|
9177
|
+
);
|
|
9178
|
+
|
|
9179
|
+
|
|
9000
9180
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9001
9181
|
}
|
|
9002
9182
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -9109,6 +9289,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_validate_arkoo
|
|
|
9109
9289
|
);
|
|
9110
9290
|
|
|
9111
9291
|
|
|
9292
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9293
|
+
}
|
|
9294
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9295
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded(
|
|
9296
|
+
);
|
|
9297
|
+
|
|
9298
|
+
|
|
9112
9299
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9113
9300
|
}
|
|
9114
9301
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
package/cpp/generated/bark.hpp
CHANGED
|
@@ -61,6 +61,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
61
61
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_board_all(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
62
62
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
63
63
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
64
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
64
65
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
65
66
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
66
67
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -121,9 +122,12 @@ class NativeBark : public jsi::HostObject {
|
|
|
121
122
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_progress_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
122
123
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
123
124
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_properties(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
125
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_recover_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
126
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_recovery_report(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
124
127
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
125
128
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
126
129
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
130
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
127
131
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
128
132
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
129
133
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_send_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -140,6 +144,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
140
144
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
141
145
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
142
146
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
147
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_vtxo_encoded(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
143
148
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
144
149
|
jsi::Value cpp_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
145
150
|
jsi::Value cpp_uniffi_bark_ffi_fn_func_generate_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -226,6 +231,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
226
231
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_board_all(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
227
232
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_board_amount(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
228
233
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
234
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
229
235
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
230
236
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
231
237
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -286,9 +292,12 @@ class NativeBark : public jsi::HostObject {
|
|
|
286
292
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_progress_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
287
293
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
288
294
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_properties(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
295
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
296
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_report(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
289
297
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
290
298
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
291
299
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
300
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
292
301
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
293
302
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
294
303
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_send_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -305,6 +314,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
305
314
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
306
315
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
307
316
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
317
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
308
318
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
309
319
|
jsi::Value cpp_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
310
320
|
jsi::Value cpp_uniffi_bark_ffi_checksum_constructor_onchainwallet_default(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AAwwBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAClBL,MAAM,EAErB;AAwKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
|