@secondts/bark-react-native 0.6.3 → 0.7.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 +84 -9
- package/cpp/generated/bark.hpp +4 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +225 -19
- 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 +224 -18
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +7 -3
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +177 -17
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +7 -3
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +177 -17
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +16 -3
- package/src/generated/bark.ts +344 -28
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.7.0
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
For bare React Native projects, use:
|
package/cpp/generated/bark.cpp
CHANGED
|
@@ -505,10 +505,18 @@ extern "C" {
|
|
|
505
505
|
/*handle*/ uint64_t ptr,
|
|
506
506
|
RustBuffer vtxo_base64
|
|
507
507
|
);
|
|
508
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(
|
|
509
|
+
/*handle*/ uint64_t ptr,
|
|
510
|
+
RustBuffer payment_hash
|
|
511
|
+
);
|
|
508
512
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(
|
|
509
513
|
/*handle*/ uint64_t ptr,
|
|
510
514
|
RustBuffer payment_hash
|
|
511
515
|
);
|
|
516
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_lightning_send_state(
|
|
517
|
+
/*handle*/ uint64_t ptr,
|
|
518
|
+
RustBuffer payment_hash
|
|
519
|
+
);
|
|
512
520
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(
|
|
513
521
|
/*handle*/ uint64_t ptr
|
|
514
522
|
);
|
|
@@ -569,17 +577,20 @@ extern "C" {
|
|
|
569
577
|
/*handle*/ uint64_t ptr,
|
|
570
578
|
RustBuffer lightning_address,
|
|
571
579
|
uint64_t amount_sats,
|
|
572
|
-
RustBuffer comment
|
|
580
|
+
RustBuffer comment,
|
|
581
|
+
int8_t wait
|
|
573
582
|
);
|
|
574
583
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(
|
|
575
584
|
/*handle*/ uint64_t ptr,
|
|
576
585
|
RustBuffer invoice,
|
|
577
|
-
RustBuffer amount_sats
|
|
586
|
+
RustBuffer amount_sats,
|
|
587
|
+
int8_t wait
|
|
578
588
|
);
|
|
579
589
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(
|
|
580
590
|
/*handle*/ uint64_t ptr,
|
|
581
591
|
RustBuffer offer,
|
|
582
|
-
RustBuffer amount_sats
|
|
592
|
+
RustBuffer amount_sats,
|
|
593
|
+
int8_t wait
|
|
583
594
|
);
|
|
584
595
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_peek_address(
|
|
585
596
|
/*handle*/ uint64_t ptr,
|
|
@@ -1016,8 +1027,12 @@ extern "C" {
|
|
|
1016
1027
|
);
|
|
1017
1028
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_import_vtxo(
|
|
1018
1029
|
);
|
|
1030
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(
|
|
1031
|
+
);
|
|
1019
1032
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status(
|
|
1020
1033
|
);
|
|
1034
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(
|
|
1035
|
+
);
|
|
1021
1036
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits(
|
|
1022
1037
|
);
|
|
1023
1038
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization(
|
|
@@ -5089,6 +5104,14 @@ NativeBark::NativeBark(
|
|
|
5089
5104
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxo(rt, thisVal, args, count);
|
|
5090
5105
|
}
|
|
5091
5106
|
);
|
|
5107
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid"] = jsi::Function::createFromHostFunction(
|
|
5108
|
+
rt,
|
|
5109
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid"),
|
|
5110
|
+
2,
|
|
5111
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5112
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(rt, thisVal, args, count);
|
|
5113
|
+
}
|
|
5114
|
+
);
|
|
5092
5115
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status"] = jsi::Function::createFromHostFunction(
|
|
5093
5116
|
rt,
|
|
5094
5117
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status"),
|
|
@@ -5097,6 +5120,14 @@ NativeBark::NativeBark(
|
|
|
5097
5120
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(rt, thisVal, args, count);
|
|
5098
5121
|
}
|
|
5099
5122
|
);
|
|
5123
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state"] = jsi::Function::createFromHostFunction(
|
|
5124
|
+
rt,
|
|
5125
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state"),
|
|
5126
|
+
2,
|
|
5127
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5128
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(rt, thisVal, args, count);
|
|
5129
|
+
}
|
|
5130
|
+
);
|
|
5100
5131
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits"] = jsi::Function::createFromHostFunction(
|
|
5101
5132
|
rt,
|
|
5102
5133
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits"),
|
|
@@ -5228,7 +5259,7 @@ NativeBark::NativeBark(
|
|
|
5228
5259
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address"] = jsi::Function::createFromHostFunction(
|
|
5229
5260
|
rt,
|
|
5230
5261
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address"),
|
|
5231
|
-
|
|
5262
|
+
5,
|
|
5232
5263
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5233
5264
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(rt, thisVal, args, count);
|
|
5234
5265
|
}
|
|
@@ -5236,7 +5267,7 @@ NativeBark::NativeBark(
|
|
|
5236
5267
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice"] = jsi::Function::createFromHostFunction(
|
|
5237
5268
|
rt,
|
|
5238
5269
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice"),
|
|
5239
|
-
|
|
5270
|
+
4,
|
|
5240
5271
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5241
5272
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(rt, thisVal, args, count);
|
|
5242
5273
|
}
|
|
@@ -5244,7 +5275,7 @@ NativeBark::NativeBark(
|
|
|
5244
5275
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer"] = jsi::Function::createFromHostFunction(
|
|
5245
5276
|
rt,
|
|
5246
5277
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer"),
|
|
5247
|
-
|
|
5278
|
+
4,
|
|
5248
5279
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5249
5280
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(rt, thisVal, args, count);
|
|
5250
5281
|
}
|
|
@@ -6361,6 +6392,14 @@ NativeBark::NativeBark(
|
|
|
6361
6392
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(rt, thisVal, args, count);
|
|
6362
6393
|
}
|
|
6363
6394
|
);
|
|
6395
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid"] = jsi::Function::createFromHostFunction(
|
|
6396
|
+
rt,
|
|
6397
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid"),
|
|
6398
|
+
0,
|
|
6399
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6400
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(rt, thisVal, args, count);
|
|
6401
|
+
}
|
|
6402
|
+
);
|
|
6364
6403
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status"] = jsi::Function::createFromHostFunction(
|
|
6365
6404
|
rt,
|
|
6366
6405
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status"),
|
|
@@ -6369,6 +6408,14 @@ NativeBark::NativeBark(
|
|
|
6369
6408
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status(rt, thisVal, args, count);
|
|
6370
6409
|
}
|
|
6371
6410
|
);
|
|
6411
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state"] = jsi::Function::createFromHostFunction(
|
|
6412
|
+
rt,
|
|
6413
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state"),
|
|
6414
|
+
0,
|
|
6415
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6416
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(rt, thisVal, args, count);
|
|
6417
|
+
}
|
|
6418
|
+
);
|
|
6372
6419
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits"] = jsi::Function::createFromHostFunction(
|
|
6373
6420
|
rt,
|
|
6374
6421
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits"),
|
|
@@ -7556,6 +7603,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxo(jsi::Run
|
|
|
7556
7603
|
);
|
|
7557
7604
|
|
|
7558
7605
|
|
|
7606
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7607
|
+
}
|
|
7608
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7609
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
7610
|
+
);
|
|
7611
|
+
|
|
7612
|
+
|
|
7559
7613
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7560
7614
|
}
|
|
7561
7615
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -7563,6 +7617,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_st
|
|
|
7563
7617
|
);
|
|
7564
7618
|
|
|
7565
7619
|
|
|
7620
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7621
|
+
}
|
|
7622
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7623
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_lightning_send_state(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
7624
|
+
);
|
|
7625
|
+
|
|
7626
|
+
|
|
7566
7627
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7567
7628
|
}
|
|
7568
7629
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -7687,21 +7748,21 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos(jsi::
|
|
|
7687
7748
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7688
7749
|
}
|
|
7689
7750
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7690
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3])
|
|
7751
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[4])
|
|
7691
7752
|
);
|
|
7692
7753
|
|
|
7693
7754
|
|
|
7694
7755
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7695
7756
|
}
|
|
7696
7757
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7697
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2])
|
|
7758
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[3])
|
|
7698
7759
|
);
|
|
7699
7760
|
|
|
7700
7761
|
|
|
7701
7762
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7702
7763
|
}
|
|
7703
7764
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7704
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2])
|
|
7765
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[3])
|
|
7705
7766
|
);
|
|
7706
7767
|
|
|
7707
7768
|
|
|
@@ -8728,6 +8789,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(js
|
|
|
8728
8789
|
);
|
|
8729
8790
|
|
|
8730
8791
|
|
|
8792
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8793
|
+
}
|
|
8794
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8795
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(
|
|
8796
|
+
);
|
|
8797
|
+
|
|
8798
|
+
|
|
8731
8799
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8732
8800
|
}
|
|
8733
8801
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8735,6 +8803,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_rece
|
|
|
8735
8803
|
);
|
|
8736
8804
|
|
|
8737
8805
|
|
|
8806
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8807
|
+
}
|
|
8808
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8809
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(
|
|
8810
|
+
);
|
|
8811
|
+
|
|
8812
|
+
|
|
8738
8813
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8739
8814
|
}
|
|
8740
8815
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
package/cpp/generated/bark.hpp
CHANGED
|
@@ -91,7 +91,9 @@ class NativeBark : public jsi::HostObject {
|
|
|
91
91
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_history(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
92
92
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
93
93
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
94
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
94
95
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
96
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
95
97
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
96
98
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
97
99
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -250,7 +252,9 @@ class NativeBark : public jsi::HostObject {
|
|
|
250
252
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_history(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
251
253
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
252
254
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
255
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
253
256
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
257
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
254
258
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
255
259
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
256
260
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier(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;;AA6vBA;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":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.WalletProperties = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.Vtxo = exports.RoundState = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainBalance = exports.OffboardResult = exports.NotificationHolder = exports.Network = exports.Movement = exports.LogLevel = exports.LightningSend = exports.LightningReceive = exports.LightningInvoice = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTransactionStatus = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.Destination = exports.CustomOnchainWalletCallbacksImpl = exports.CpfpParams = exports.Config = exports.BlockRef = exports.BarkLoggerImpl = exports.BarkError_Tags = exports.BarkError = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
|
|
6
|
+
exports.default = exports.WalletProperties = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.Vtxo = exports.RoundState = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainBalance = exports.OffboardResult = exports.NotificationHolder = exports.Network = exports.Movement = exports.LogLevel = exports.LightningSendStatus_Tags = exports.LightningSendStatus = exports.LightningSend = exports.LightningReceive = exports.LightningInvoice = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTransactionStatus = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.Destination = exports.CustomOnchainWalletCallbacksImpl = exports.CpfpParams = exports.Config = exports.BlockRef = exports.BarkLoggerImpl = exports.BarkError_Tags = exports.BarkError = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
|
|
7
7
|
exports.extractTxFromPsbt = extractTxFromPsbt;
|
|
8
8
|
exports.generateMnemonic = generateMnemonic;
|
|
9
9
|
exports.setLogger = setLogger;
|
|
@@ -683,18 +683,18 @@ const FfiConverterTypeLightningSend = (() => {
|
|
|
683
683
|
return {
|
|
684
684
|
invoice: FfiConverterString.read(from),
|
|
685
685
|
amountSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
feeSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
687
|
+
htlcVtxoCount: _uniffiBindgenReactNative.FfiConverterUInt32.read(from)
|
|
688
688
|
};
|
|
689
689
|
}
|
|
690
690
|
write(value, into) {
|
|
691
691
|
FfiConverterString.write(value.invoice, into);
|
|
692
692
|
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.amountSats, into);
|
|
693
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.feeSats, into);
|
|
693
694
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.htlcVtxoCount, into);
|
|
694
|
-
FfiConverterOptionalString.write(value.preimage, into);
|
|
695
695
|
}
|
|
696
696
|
allocationSize(value) {
|
|
697
|
-
return FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.
|
|
697
|
+
return FfiConverterString.allocationSize(value.invoice) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.amountSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.feeSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcVtxoCount);
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
return new FFIConverter();
|
|
@@ -1677,6 +1677,179 @@ const FfiConverterTypeBarkError = (() => {
|
|
|
1677
1677
|
return new FFIConverter();
|
|
1678
1678
|
})();
|
|
1679
1679
|
|
|
1680
|
+
// Enum: LightningSendStatus
|
|
1681
|
+
let LightningSendStatus_Tags = exports.LightningSendStatus_Tags = /*#__PURE__*/function (LightningSendStatus_Tags) {
|
|
1682
|
+
LightningSendStatus_Tags["Unknown"] = "Unknown";
|
|
1683
|
+
LightningSendStatus_Tags["InProgress"] = "InProgress";
|
|
1684
|
+
LightningSendStatus_Tags["Paid"] = "Paid";
|
|
1685
|
+
return LightningSendStatus_Tags;
|
|
1686
|
+
}({});
|
|
1687
|
+
/**
|
|
1688
|
+
* Terminal/in-flight state of an outgoing lightning send.
|
|
1689
|
+
*
|
|
1690
|
+
* Mirrors `bark`'s `LightningSendState`. `pay_lightning_*` and
|
|
1691
|
+
* `check_lightning_payment` now return this so callers can drive the
|
|
1692
|
+
* crash-safe send flow themselves (initiate with `wait = false`, then poll).
|
|
1693
|
+
*/
|
|
1694
|
+
const LightningSendStatus = exports.LightningSendStatus = (() => {
|
|
1695
|
+
/**
|
|
1696
|
+
* No record of this payment (never started, or already pruned).
|
|
1697
|
+
*/
|
|
1698
|
+
class Unknown_ extends _uniffiBindgenReactNative.UniffiEnum {
|
|
1699
|
+
/**
|
|
1700
|
+
* @private
|
|
1701
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1702
|
+
*/
|
|
1703
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "LightningSendStatus";
|
|
1704
|
+
tag = LightningSendStatus_Tags.Unknown;
|
|
1705
|
+
constructor() {
|
|
1706
|
+
super("LightningSendStatus", "Unknown");
|
|
1707
|
+
}
|
|
1708
|
+
static new() {
|
|
1709
|
+
return new Unknown_();
|
|
1710
|
+
}
|
|
1711
|
+
static instanceOf(obj) {
|
|
1712
|
+
return obj.tag === LightningSendStatus_Tags.Unknown;
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* Send is in flight; HTLC VTXOs are locked.
|
|
1717
|
+
*/
|
|
1718
|
+
class InProgress_ extends _uniffiBindgenReactNative.UniffiEnum {
|
|
1719
|
+
/**
|
|
1720
|
+
* @private
|
|
1721
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1722
|
+
*/
|
|
1723
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "LightningSendStatus";
|
|
1724
|
+
tag = LightningSendStatus_Tags.InProgress;
|
|
1725
|
+
constructor(inner) {
|
|
1726
|
+
super("LightningSendStatus", "InProgress");
|
|
1727
|
+
this.inner = Object.freeze(inner);
|
|
1728
|
+
}
|
|
1729
|
+
static new(inner) {
|
|
1730
|
+
return new InProgress_(inner);
|
|
1731
|
+
}
|
|
1732
|
+
static instanceOf(obj) {
|
|
1733
|
+
return obj.tag === LightningSendStatus_Tags.InProgress;
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
/**
|
|
1737
|
+
* Send has settled; the preimage proves payment.
|
|
1738
|
+
*/
|
|
1739
|
+
class Paid_ extends _uniffiBindgenReactNative.UniffiEnum {
|
|
1740
|
+
/**
|
|
1741
|
+
* @private
|
|
1742
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1743
|
+
*/
|
|
1744
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "LightningSendStatus";
|
|
1745
|
+
tag = LightningSendStatus_Tags.Paid;
|
|
1746
|
+
constructor(inner) {
|
|
1747
|
+
super("LightningSendStatus", "Paid");
|
|
1748
|
+
this.inner = Object.freeze(inner);
|
|
1749
|
+
}
|
|
1750
|
+
static new(inner) {
|
|
1751
|
+
return new Paid_(inner);
|
|
1752
|
+
}
|
|
1753
|
+
static instanceOf(obj) {
|
|
1754
|
+
return obj.tag === LightningSendStatus_Tags.Paid;
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
function instanceOf(obj) {
|
|
1758
|
+
return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "LightningSendStatus";
|
|
1759
|
+
}
|
|
1760
|
+
return Object.freeze({
|
|
1761
|
+
instanceOf,
|
|
1762
|
+
Unknown: Unknown_,
|
|
1763
|
+
InProgress: InProgress_,
|
|
1764
|
+
Paid: Paid_
|
|
1765
|
+
});
|
|
1766
|
+
})();
|
|
1767
|
+
|
|
1768
|
+
/**
|
|
1769
|
+
* Terminal/in-flight state of an outgoing lightning send.
|
|
1770
|
+
*
|
|
1771
|
+
* Mirrors `bark`'s `LightningSendState`. `pay_lightning_*` and
|
|
1772
|
+
* `check_lightning_payment` now return this so callers can drive the
|
|
1773
|
+
* crash-safe send flow themselves (initiate with `wait = false`, then poll).
|
|
1774
|
+
*/
|
|
1775
|
+
|
|
1776
|
+
// FfiConverter for enum LightningSendStatus
|
|
1777
|
+
const FfiConverterTypeLightningSendStatus = (() => {
|
|
1778
|
+
const ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
1779
|
+
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
1780
|
+
read(from) {
|
|
1781
|
+
switch (ordinalConverter.read(from)) {
|
|
1782
|
+
case 1:
|
|
1783
|
+
return new LightningSendStatus.Unknown();
|
|
1784
|
+
case 2:
|
|
1785
|
+
return new LightningSendStatus.InProgress({
|
|
1786
|
+
send: FfiConverterTypeLightningSend.read(from)
|
|
1787
|
+
});
|
|
1788
|
+
case 3:
|
|
1789
|
+
return new LightningSendStatus.Paid({
|
|
1790
|
+
paymentHash: FfiConverterString.read(from),
|
|
1791
|
+
preimage: FfiConverterString.read(from)
|
|
1792
|
+
});
|
|
1793
|
+
default:
|
|
1794
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
write(value, into) {
|
|
1798
|
+
switch (value.tag) {
|
|
1799
|
+
case LightningSendStatus_Tags.Unknown:
|
|
1800
|
+
{
|
|
1801
|
+
ordinalConverter.write(1, into);
|
|
1802
|
+
return;
|
|
1803
|
+
}
|
|
1804
|
+
case LightningSendStatus_Tags.InProgress:
|
|
1805
|
+
{
|
|
1806
|
+
ordinalConverter.write(2, into);
|
|
1807
|
+
const inner = value.inner;
|
|
1808
|
+
FfiConverterTypeLightningSend.write(inner.send, into);
|
|
1809
|
+
return;
|
|
1810
|
+
}
|
|
1811
|
+
case LightningSendStatus_Tags.Paid:
|
|
1812
|
+
{
|
|
1813
|
+
ordinalConverter.write(3, into);
|
|
1814
|
+
const inner = value.inner;
|
|
1815
|
+
FfiConverterString.write(inner.paymentHash, into);
|
|
1816
|
+
FfiConverterString.write(inner.preimage, into);
|
|
1817
|
+
return;
|
|
1818
|
+
}
|
|
1819
|
+
default:
|
|
1820
|
+
// Throwing from here means that LightningSendStatus_Tags hasn't matched an ordinal.
|
|
1821
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
allocationSize(value) {
|
|
1825
|
+
switch (value.tag) {
|
|
1826
|
+
case LightningSendStatus_Tags.Unknown:
|
|
1827
|
+
{
|
|
1828
|
+
return ordinalConverter.allocationSize(1);
|
|
1829
|
+
}
|
|
1830
|
+
case LightningSendStatus_Tags.InProgress:
|
|
1831
|
+
{
|
|
1832
|
+
const inner = value.inner;
|
|
1833
|
+
let size = ordinalConverter.allocationSize(2);
|
|
1834
|
+
size += FfiConverterTypeLightningSend.allocationSize(inner.send);
|
|
1835
|
+
return size;
|
|
1836
|
+
}
|
|
1837
|
+
case LightningSendStatus_Tags.Paid:
|
|
1838
|
+
{
|
|
1839
|
+
const inner = value.inner;
|
|
1840
|
+
let size = ordinalConverter.allocationSize(3);
|
|
1841
|
+
size += FfiConverterString.allocationSize(inner.paymentHash);
|
|
1842
|
+
size += FfiConverterString.allocationSize(inner.preimage);
|
|
1843
|
+
return size;
|
|
1844
|
+
}
|
|
1845
|
+
default:
|
|
1846
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
return new FFIConverter();
|
|
1851
|
+
})();
|
|
1852
|
+
|
|
1680
1853
|
/**
|
|
1681
1854
|
* Severity of a log record.
|
|
1682
1855
|
*/
|
|
@@ -2946,7 +3119,7 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
2946
3119
|
try {
|
|
2947
3120
|
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
2948
3121
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash), _uniffiBindgenReactNative.FfiConverterBool.lower(wait));
|
|
2949
|
-
}, /*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:*/
|
|
3122
|
+
}, /*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:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
2950
3123
|
} catch (__error) {
|
|
2951
3124
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
2952
3125
|
__error.stack = __stack;
|
|
@@ -3245,6 +3418,19 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3245
3418
|
throw __error;
|
|
3246
3419
|
}
|
|
3247
3420
|
}
|
|
3421
|
+
async isInvoicePaid(paymentHash, asyncOpts_) /*throws*/{
|
|
3422
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3423
|
+
try {
|
|
3424
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3425
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
3426
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_i8, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_i8, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_i8, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_i8, /*liftFunc:*/_uniffiBindgenReactNative.FfiConverterBool.lift.bind(_uniffiBindgenReactNative.FfiConverterBool), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3427
|
+
} catch (__error) {
|
|
3428
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3429
|
+
__error.stack = __stack;
|
|
3430
|
+
}
|
|
3431
|
+
throw __error;
|
|
3432
|
+
}
|
|
3433
|
+
}
|
|
3248
3434
|
async lightningReceiveStatus(paymentHash, asyncOpts_) /*throws*/{
|
|
3249
3435
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3250
3436
|
try {
|
|
@@ -3258,6 +3444,19 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3258
3444
|
throw __error;
|
|
3259
3445
|
}
|
|
3260
3446
|
}
|
|
3447
|
+
async lightningSendState(paymentHash, asyncOpts_) /*throws*/{
|
|
3448
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3449
|
+
try {
|
|
3450
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3451
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentHash));
|
|
3452
|
+
}, /*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:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3453
|
+
} catch (__error) {
|
|
3454
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3455
|
+
__error.stack = __stack;
|
|
3456
|
+
}
|
|
3457
|
+
throw __error;
|
|
3458
|
+
}
|
|
3459
|
+
}
|
|
3261
3460
|
async listClaimableExits(asyncOpts_) /*throws*/{
|
|
3262
3461
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3263
3462
|
try {
|
|
@@ -3446,12 +3645,12 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3446
3645
|
/**
|
|
3447
3646
|
* Pay to a Lightning Address (LNURL). UniFFI-only — lnurl-rs is not wasm-compatible.
|
|
3448
3647
|
*/
|
|
3449
|
-
async payLightningAddress(lightningAddress, amountSats, comment, asyncOpts_) /*throws*/{
|
|
3648
|
+
async payLightningAddress(lightningAddress, amountSats, comment, wait, asyncOpts_) /*throws*/{
|
|
3450
3649
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3451
3650
|
try {
|
|
3452
3651
|
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3453
|
-
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lightningAddress), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment));
|
|
3454
|
-
}, /*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:*/
|
|
3652
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(lightningAddress), _uniffiBindgenReactNative.FfiConverterUInt64.lower(amountSats), FfiConverterOptionalString.lower(comment), _uniffiBindgenReactNative.FfiConverterBool.lower(wait));
|
|
3653
|
+
}, /*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:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3455
3654
|
} catch (__error) {
|
|
3456
3655
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3457
3656
|
__error.stack = __stack;
|
|
@@ -3459,12 +3658,12 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3459
3658
|
throw __error;
|
|
3460
3659
|
}
|
|
3461
3660
|
}
|
|
3462
|
-
async payLightningInvoice(invoice, amountSats, asyncOpts_) /*throws*/{
|
|
3661
|
+
async payLightningInvoice(invoice, amountSats, wait, asyncOpts_) /*throws*/{
|
|
3463
3662
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3464
3663
|
try {
|
|
3465
3664
|
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3466
|
-
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(invoice), FfiConverterOptionalUInt64.lower(amountSats));
|
|
3467
|
-
}, /*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:*/
|
|
3665
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(invoice), FfiConverterOptionalUInt64.lower(amountSats), _uniffiBindgenReactNative.FfiConverterBool.lower(wait));
|
|
3666
|
+
}, /*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:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3468
3667
|
} catch (__error) {
|
|
3469
3668
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3470
3669
|
__error.stack = __stack;
|
|
@@ -3472,12 +3671,12 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3472
3671
|
throw __error;
|
|
3473
3672
|
}
|
|
3474
3673
|
}
|
|
3475
|
-
async payLightningOffer(offer, amountSats, asyncOpts_) /*throws*/{
|
|
3674
|
+
async payLightningOffer(offer, amountSats, wait, asyncOpts_) /*throws*/{
|
|
3476
3675
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3477
3676
|
try {
|
|
3478
3677
|
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3479
|
-
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(offer), FfiConverterOptionalUInt64.lower(amountSats));
|
|
3480
|
-
}, /*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:*/
|
|
3678
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(offer), FfiConverterOptionalUInt64.lower(amountSats), _uniffiBindgenReactNative.FfiConverterBool.lower(wait));
|
|
3679
|
+
}, /*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:*/FfiConverterTypeLightningSendStatus.lift.bind(FfiConverterTypeLightningSendStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
|
|
3481
3680
|
} catch (__error) {
|
|
3482
3681
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
3483
3682
|
__error.stack = __stack;
|
|
@@ -4115,7 +4314,7 @@ function uniffiEnsureInitialized() {
|
|
|
4115
4314
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round() !== 21817) {
|
|
4116
4315
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round");
|
|
4117
4316
|
}
|
|
4118
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !==
|
|
4317
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment() !== 33087) {
|
|
4119
4318
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment");
|
|
4120
4319
|
}
|
|
4121
4320
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats() !== 57824) {
|
|
@@ -4187,9 +4386,15 @@ function uniffiEnsureInitialized() {
|
|
|
4187
4386
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 58528) {
|
|
4188
4387
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");
|
|
4189
4388
|
}
|
|
4389
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid() !== 43344) {
|
|
4390
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid");
|
|
4391
|
+
}
|
|
4190
4392
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status() !== 37213) {
|
|
4191
4393
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status");
|
|
4192
4394
|
}
|
|
4395
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state() !== 37487) {
|
|
4396
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_lightning_send_state");
|
|
4397
|
+
}
|
|
4193
4398
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits() !== 46928) {
|
|
4194
4399
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits");
|
|
4195
4400
|
}
|
|
@@ -4238,13 +4443,13 @@ function uniffiEnsureInitialized() {
|
|
|
4238
4443
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos() !== 45323) {
|
|
4239
4444
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos");
|
|
4240
4445
|
}
|
|
4241
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !==
|
|
4446
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address() !== 2440) {
|
|
4242
4447
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address");
|
|
4243
4448
|
}
|
|
4244
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !==
|
|
4449
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice() !== 18714) {
|
|
4245
4450
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice");
|
|
4246
4451
|
}
|
|
4247
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !==
|
|
4452
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer() !== 31129) {
|
|
4248
4453
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer");
|
|
4249
4454
|
}
|
|
4250
4455
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 55042) {
|
|
@@ -4382,6 +4587,7 @@ var _default = exports.default = Object.freeze({
|
|
|
4382
4587
|
FfiConverterTypeLightningInvoice,
|
|
4383
4588
|
FfiConverterTypeLightningReceive,
|
|
4384
4589
|
FfiConverterTypeLightningSend,
|
|
4590
|
+
FfiConverterTypeLightningSendStatus,
|
|
4385
4591
|
FfiConverterTypeLogLevel,
|
|
4386
4592
|
FfiConverterTypeMovement,
|
|
4387
4593
|
FfiConverterTypeNetwork,
|