@secondts/bark-react-native 0.7.0 → 0.8.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 +107 -0
- package/cpp/generated/bark.hpp +6 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +52 -2
- 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 +52 -2
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +6 -0
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +23 -0
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +6 -0
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +23 -0
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +14 -0
- package/src/generated/bark.ts +151 -1
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.8.0
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
For bare React Native projects, use:
|
package/cpp/generated/bark.cpp
CHANGED
|
@@ -374,9 +374,17 @@ extern "C" {
|
|
|
374
374
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_all_vtxos(
|
|
375
375
|
/*handle*/ uint64_t ptr
|
|
376
376
|
);
|
|
377
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(
|
|
378
|
+
/*handle*/ uint64_t ptr,
|
|
379
|
+
RustBuffer payment_hash
|
|
380
|
+
);
|
|
377
381
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_ark_info(
|
|
378
382
|
/*handle*/ uint64_t ptr
|
|
379
383
|
);
|
|
384
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(
|
|
385
|
+
/*handle*/ uint64_t ptr,
|
|
386
|
+
RustBuffer payment_hash
|
|
387
|
+
);
|
|
380
388
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_balance(
|
|
381
389
|
/*handle*/ uint64_t ptr
|
|
382
390
|
);
|
|
@@ -673,6 +681,9 @@ extern "C" {
|
|
|
673
681
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_stop_daemon(
|
|
674
682
|
/*handle*/ uint64_t ptr
|
|
675
683
|
);
|
|
684
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(
|
|
685
|
+
/*handle*/ uint64_t ptr
|
|
686
|
+
);
|
|
676
687
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_sync(
|
|
677
688
|
/*handle*/ uint64_t ptr
|
|
678
689
|
);
|
|
@@ -961,8 +972,12 @@ extern "C" {
|
|
|
961
972
|
);
|
|
962
973
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_all_vtxos(
|
|
963
974
|
);
|
|
975
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit(
|
|
976
|
+
);
|
|
964
977
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_ark_info(
|
|
965
978
|
);
|
|
979
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit(
|
|
980
|
+
);
|
|
966
981
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_balance(
|
|
967
982
|
);
|
|
968
983
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_board_all(
|
|
@@ -1117,6 +1132,8 @@ extern "C" {
|
|
|
1117
1132
|
);
|
|
1118
1133
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_stop_daemon(
|
|
1119
1134
|
);
|
|
1135
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends(
|
|
1136
|
+
);
|
|
1120
1137
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_sync(
|
|
1121
1138
|
);
|
|
1122
1139
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_sync_exits(
|
|
@@ -4840,6 +4857,14 @@ NativeBark::NativeBark(
|
|
|
4840
4857
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_all_vtxos(rt, thisVal, args, count);
|
|
4841
4858
|
}
|
|
4842
4859
|
);
|
|
4860
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit"] = jsi::Function::createFromHostFunction(
|
|
4861
|
+
rt,
|
|
4862
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit"),
|
|
4863
|
+
2,
|
|
4864
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4865
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(rt, thisVal, args, count);
|
|
4866
|
+
}
|
|
4867
|
+
);
|
|
4843
4868
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_ark_info"] = jsi::Function::createFromHostFunction(
|
|
4844
4869
|
rt,
|
|
4845
4870
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_ark_info"),
|
|
@@ -4848,6 +4873,14 @@ NativeBark::NativeBark(
|
|
|
4848
4873
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_ark_info(rt, thisVal, args, count);
|
|
4849
4874
|
}
|
|
4850
4875
|
);
|
|
4876
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit"] = jsi::Function::createFromHostFunction(
|
|
4877
|
+
rt,
|
|
4878
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit"),
|
|
4879
|
+
2,
|
|
4880
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4881
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(rt, thisVal, args, count);
|
|
4882
|
+
}
|
|
4883
|
+
);
|
|
4851
4884
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_balance"] = jsi::Function::createFromHostFunction(
|
|
4852
4885
|
rt,
|
|
4853
4886
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_balance"),
|
|
@@ -5464,6 +5497,14 @@ NativeBark::NativeBark(
|
|
|
5464
5497
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(rt, thisVal, args, count);
|
|
5465
5498
|
}
|
|
5466
5499
|
);
|
|
5500
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends"] = jsi::Function::createFromHostFunction(
|
|
5501
|
+
rt,
|
|
5502
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends"),
|
|
5503
|
+
1,
|
|
5504
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5505
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(rt, thisVal, args, count);
|
|
5506
|
+
}
|
|
5507
|
+
);
|
|
5467
5508
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_sync"] = jsi::Function::createFromHostFunction(
|
|
5468
5509
|
rt,
|
|
5469
5510
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_sync"),
|
|
@@ -6128,6 +6169,14 @@ NativeBark::NativeBark(
|
|
|
6128
6169
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_all_vtxos(rt, thisVal, args, count);
|
|
6129
6170
|
}
|
|
6130
6171
|
);
|
|
6172
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit"] = jsi::Function::createFromHostFunction(
|
|
6173
|
+
rt,
|
|
6174
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit"),
|
|
6175
|
+
0,
|
|
6176
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6177
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit(rt, thisVal, args, count);
|
|
6178
|
+
}
|
|
6179
|
+
);
|
|
6131
6180
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info"] = jsi::Function::createFromHostFunction(
|
|
6132
6181
|
rt,
|
|
6133
6182
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info"),
|
|
@@ -6136,6 +6185,14 @@ NativeBark::NativeBark(
|
|
|
6136
6185
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_ark_info(rt, thisVal, args, count);
|
|
6137
6186
|
}
|
|
6138
6187
|
);
|
|
6188
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit"] = jsi::Function::createFromHostFunction(
|
|
6189
|
+
rt,
|
|
6190
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit"),
|
|
6191
|
+
0,
|
|
6192
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6193
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit(rt, thisVal, args, count);
|
|
6194
|
+
}
|
|
6195
|
+
);
|
|
6139
6196
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_balance"] = jsi::Function::createFromHostFunction(
|
|
6140
6197
|
rt,
|
|
6141
6198
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_balance"),
|
|
@@ -6752,6 +6809,14 @@ NativeBark::NativeBark(
|
|
|
6752
6809
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(rt, thisVal, args, count);
|
|
6753
6810
|
}
|
|
6754
6811
|
);
|
|
6812
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends"] = jsi::Function::createFromHostFunction(
|
|
6813
|
+
rt,
|
|
6814
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends"),
|
|
6815
|
+
0,
|
|
6816
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6817
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends(rt, thisVal, args, count);
|
|
6818
|
+
}
|
|
6819
|
+
);
|
|
6755
6820
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_sync"] = jsi::Function::createFromHostFunction(
|
|
6756
6821
|
rt,
|
|
6757
6822
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_sync"),
|
|
@@ -7369,6 +7434,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_all_vtxos(jsi::Runti
|
|
|
7369
7434
|
);
|
|
7370
7435
|
|
|
7371
7436
|
|
|
7437
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7438
|
+
}
|
|
7439
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7440
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
7441
|
+
);
|
|
7442
|
+
|
|
7443
|
+
|
|
7372
7444
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7373
7445
|
}
|
|
7374
7446
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_ark_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -7376,6 +7448,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_ark_info(jsi::Runtim
|
|
|
7376
7448
|
);
|
|
7377
7449
|
|
|
7378
7450
|
|
|
7451
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7452
|
+
}
|
|
7453
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7454
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
7455
|
+
);
|
|
7456
|
+
|
|
7457
|
+
|
|
7379
7458
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7380
7459
|
}
|
|
7381
7460
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -7927,6 +8006,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(jsi::Run
|
|
|
7927
8006
|
);
|
|
7928
8007
|
|
|
7929
8008
|
|
|
8009
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8010
|
+
}
|
|
8011
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8012
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
8013
|
+
);
|
|
8014
|
+
|
|
8015
|
+
|
|
7930
8016
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7931
8017
|
}
|
|
7932
8018
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8558,6 +8644,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_all_vtxos(jsi:
|
|
|
8558
8644
|
);
|
|
8559
8645
|
|
|
8560
8646
|
|
|
8647
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8648
|
+
}
|
|
8649
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8650
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit(
|
|
8651
|
+
);
|
|
8652
|
+
|
|
8653
|
+
|
|
8561
8654
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8562
8655
|
}
|
|
8563
8656
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_ark_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8565,6 +8658,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_ark_info(jsi::
|
|
|
8565
8658
|
);
|
|
8566
8659
|
|
|
8567
8660
|
|
|
8661
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8662
|
+
}
|
|
8663
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8664
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit(
|
|
8665
|
+
);
|
|
8666
|
+
|
|
8667
|
+
|
|
8568
8668
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8569
8669
|
}
|
|
8570
8670
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -9104,6 +9204,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(js
|
|
|
9104
9204
|
);
|
|
9105
9205
|
|
|
9106
9206
|
|
|
9207
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9208
|
+
}
|
|
9209
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9210
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends(
|
|
9211
|
+
);
|
|
9212
|
+
|
|
9213
|
+
|
|
9107
9214
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9108
9215
|
}
|
|
9109
9216
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
package/cpp/generated/bark.hpp
CHANGED
|
@@ -58,7 +58,9 @@ class NativeBark : public jsi::HostObject {
|
|
|
58
58
|
jsi::Value cpp_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
59
59
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
60
60
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_all_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
61
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
61
62
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_ark_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
63
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
62
64
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
63
65
|
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);
|
|
64
66
|
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);
|
|
@@ -136,6 +138,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
136
138
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
137
139
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
138
140
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
141
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
139
142
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
140
143
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_sync_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
141
144
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -219,7 +222,9 @@ class NativeBark : public jsi::HostObject {
|
|
|
219
222
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_onchainwallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
220
223
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
221
224
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_all_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
225
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
222
226
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_ark_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
227
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
223
228
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
224
229
|
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);
|
|
225
230
|
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);
|
|
@@ -297,6 +302,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
297
302
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
298
303
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
299
304
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
305
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
300
306
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
301
307
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_sync_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
302
308
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards(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;;AA2wBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAClBL,MAAM,EAErB;AAyKA;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":[]}
|
|
@@ -684,7 +684,8 @@ const FfiConverterTypeLightningSend = (() => {
|
|
|
684
684
|
invoice: FfiConverterString.read(from),
|
|
685
685
|
amountSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
686
686
|
feeSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
687
|
-
htlcVtxoCount: _uniffiBindgenReactNative.FfiConverterUInt32.read(from)
|
|
687
|
+
htlcVtxoCount: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
688
|
+
hasFailedRevocation: _uniffiBindgenReactNative.FfiConverterBool.read(from)
|
|
688
689
|
};
|
|
689
690
|
}
|
|
690
691
|
write(value, into) {
|
|
@@ -692,9 +693,10 @@ const FfiConverterTypeLightningSend = (() => {
|
|
|
692
693
|
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.amountSats, into);
|
|
693
694
|
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.feeSats, into);
|
|
694
695
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.htlcVtxoCount, into);
|
|
696
|
+
_uniffiBindgenReactNative.FfiConverterBool.write(value.hasFailedRevocation, into);
|
|
695
697
|
}
|
|
696
698
|
allocationSize(value) {
|
|
697
|
-
return FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.feeSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcVtxoCount);
|
|
699
|
+
return FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.feeSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcVtxoCount) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.hasFailedRevocation);
|
|
698
700
|
}
|
|
699
701
|
}
|
|
700
702
|
return new FFIConverter();
|
|
@@ -2997,6 +2999,19 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2997
2999
|
throw __error;
|
|
2998
3000
|
}
|
|
2999
3001
|
}
|
|
3002
|
+
async allowLightningSendToExit(paymentHash, asyncOpts_) /*throws*/{
|
|
3003
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3004
|
+
try {
|
|
3005
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3006
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
3007
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3008
|
+
} catch (__error) {
|
|
3009
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3010
|
+
__error.stack = __stack;
|
|
3011
|
+
}
|
|
3012
|
+
throw __error;
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3000
3015
|
async arkInfo(asyncOpts_) {
|
|
3001
3016
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3002
3017
|
try {
|
|
@@ -3010,6 +3025,19 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3010
3025
|
throw __error;
|
|
3011
3026
|
}
|
|
3012
3027
|
}
|
|
3028
|
+
async attemptLightningReceiveExit(paymentHash, asyncOpts_) /*throws*/{
|
|
3029
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3030
|
+
try {
|
|
3031
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3032
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
3033
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3034
|
+
} catch (__error) {
|
|
3035
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3036
|
+
__error.stack = __stack;
|
|
3037
|
+
}
|
|
3038
|
+
throw __error;
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3013
3041
|
async balance(asyncOpts_) /*throws*/{
|
|
3014
3042
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3015
3043
|
try {
|
|
@@ -3983,6 +4011,19 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3983
4011
|
throw __error;
|
|
3984
4012
|
}
|
|
3985
4013
|
}
|
|
4014
|
+
async stuckFailedLightningSends(asyncOpts_) /*throws*/{
|
|
4015
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4016
|
+
try {
|
|
4017
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4018
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4019
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterArrayTypeLightningSend.lift.bind(FfiConverterArrayTypeLightningSend), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
4020
|
+
} catch (__error) {
|
|
4021
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4022
|
+
__error.stack = __stack;
|
|
4023
|
+
}
|
|
4024
|
+
throw __error;
|
|
4025
|
+
}
|
|
4026
|
+
}
|
|
3986
4027
|
async sync(asyncOpts_) /*throws*/{
|
|
3987
4028
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3988
4029
|
try {
|
|
@@ -4287,9 +4328,15 @@ function uniffiEnsureInitialized() {
|
|
|
4287
4328
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos() !== 38449) {
|
|
4288
4329
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_all_vtxos");
|
|
4289
4330
|
}
|
|
4331
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit() !== 44140) {
|
|
4332
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit");
|
|
4333
|
+
}
|
|
4290
4334
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info() !== 37357) {
|
|
4291
4335
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_ark_info");
|
|
4292
4336
|
}
|
|
4337
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit() !== 32877) {
|
|
4338
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit");
|
|
4339
|
+
}
|
|
4293
4340
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_balance() !== 26361) {
|
|
4294
4341
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_balance");
|
|
4295
4342
|
}
|
|
@@ -4521,6 +4568,9 @@ function uniffiEnsureInitialized() {
|
|
|
4521
4568
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 27848) {
|
|
4522
4569
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");
|
|
4523
4570
|
}
|
|
4571
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !== 51351) {
|
|
4572
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends");
|
|
4573
|
+
}
|
|
4524
4574
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 38360) {
|
|
4525
4575
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");
|
|
4526
4576
|
}
|