@secondts/bark-react-native 0.20.1 → 0.22.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 +111 -0
- package/cpp/generated/bark.hpp +6 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +161 -1
- 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 +160 -0
- 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 +133 -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 +133 -0
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +18 -0
- package/src/generated/bark.ts +342 -0
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.22.0
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
For bare React Native projects, use:
|
package/cpp/generated/bark.cpp
CHANGED
|
@@ -386,6 +386,15 @@ extern "C" {
|
|
|
386
386
|
/*handle*/ uint64_t ptr,
|
|
387
387
|
uint64_t amount_sats
|
|
388
388
|
);
|
|
389
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_board_funding_address(
|
|
390
|
+
/*handle*/ uint64_t ptr
|
|
391
|
+
);
|
|
392
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_board_psbt(
|
|
393
|
+
/*handle*/ uint64_t ptr,
|
|
394
|
+
RustBuffer psbt_base64,
|
|
395
|
+
uint32_t keypair_index,
|
|
396
|
+
uint32_t expiry_height
|
|
397
|
+
);
|
|
389
398
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(
|
|
390
399
|
/*handle*/ uint64_t ptr,
|
|
391
400
|
uint64_t amount_sats,
|
|
@@ -443,6 +452,12 @@ extern "C" {
|
|
|
443
452
|
/*handle*/ uint64_t ptr,
|
|
444
453
|
uint64_t amount_sats
|
|
445
454
|
);
|
|
455
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee(
|
|
456
|
+
/*handle*/ uint64_t ptr,
|
|
457
|
+
RustBuffer vtxo_ids,
|
|
458
|
+
RustBuffer fee_rate_sat_per_vb,
|
|
459
|
+
RustBuffer destination
|
|
460
|
+
);
|
|
446
461
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(
|
|
447
462
|
/*handle*/ uint64_t ptr,
|
|
448
463
|
uint64_t amount_sats
|
|
@@ -1031,6 +1046,10 @@ extern "C" {
|
|
|
1031
1046
|
);
|
|
1032
1047
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_board_amount(
|
|
1033
1048
|
);
|
|
1049
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_board_funding_address(
|
|
1050
|
+
);
|
|
1051
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_board_psbt(
|
|
1052
|
+
);
|
|
1034
1053
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice(
|
|
1035
1054
|
);
|
|
1036
1055
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address(
|
|
@@ -1057,6 +1076,8 @@ extern "C" {
|
|
|
1057
1076
|
);
|
|
1058
1077
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(
|
|
1059
1078
|
);
|
|
1079
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee(
|
|
1080
|
+
);
|
|
1060
1081
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee(
|
|
1061
1082
|
);
|
|
1062
1083
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee(
|
|
@@ -4947,6 +4968,22 @@ NativeBark::NativeBark(
|
|
|
4947
4968
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(rt, thisVal, args, count);
|
|
4948
4969
|
}
|
|
4949
4970
|
);
|
|
4971
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_board_funding_address"] = jsi::Function::createFromHostFunction(
|
|
4972
|
+
rt,
|
|
4973
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_board_funding_address"),
|
|
4974
|
+
1,
|
|
4975
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4976
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_funding_address(rt, thisVal, args, count);
|
|
4977
|
+
}
|
|
4978
|
+
);
|
|
4979
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_board_psbt"] = jsi::Function::createFromHostFunction(
|
|
4980
|
+
rt,
|
|
4981
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_board_psbt"),
|
|
4982
|
+
4,
|
|
4983
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4984
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_psbt(rt, thisVal, args, count);
|
|
4985
|
+
}
|
|
4986
|
+
);
|
|
4950
4987
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice"] = jsi::Function::createFromHostFunction(
|
|
4951
4988
|
rt,
|
|
4952
4989
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice"),
|
|
@@ -5051,6 +5088,14 @@ NativeBark::NativeBark(
|
|
|
5051
5088
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(rt, thisVal, args, count);
|
|
5052
5089
|
}
|
|
5053
5090
|
);
|
|
5091
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee"] = jsi::Function::createFromHostFunction(
|
|
5092
|
+
rt,
|
|
5093
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee"),
|
|
5094
|
+
4,
|
|
5095
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5096
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee(rt, thisVal, args, count);
|
|
5097
|
+
}
|
|
5098
|
+
);
|
|
5054
5099
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee"] = jsi::Function::createFromHostFunction(
|
|
5055
5100
|
rt,
|
|
5056
5101
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee"),
|
|
@@ -6379,6 +6424,22 @@ NativeBark::NativeBark(
|
|
|
6379
6424
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_board_amount(rt, thisVal, args, count);
|
|
6380
6425
|
}
|
|
6381
6426
|
);
|
|
6427
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_board_funding_address"] = jsi::Function::createFromHostFunction(
|
|
6428
|
+
rt,
|
|
6429
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_board_funding_address"),
|
|
6430
|
+
0,
|
|
6431
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6432
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_board_funding_address(rt, thisVal, args, count);
|
|
6433
|
+
}
|
|
6434
|
+
);
|
|
6435
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_board_psbt"] = jsi::Function::createFromHostFunction(
|
|
6436
|
+
rt,
|
|
6437
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_board_psbt"),
|
|
6438
|
+
0,
|
|
6439
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6440
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_board_psbt(rt, thisVal, args, count);
|
|
6441
|
+
}
|
|
6442
|
+
);
|
|
6382
6443
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice"] = jsi::Function::createFromHostFunction(
|
|
6383
6444
|
rt,
|
|
6384
6445
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice"),
|
|
@@ -6483,6 +6544,14 @@ NativeBark::NativeBark(
|
|
|
6483
6544
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(rt, thisVal, args, count);
|
|
6484
6545
|
}
|
|
6485
6546
|
);
|
|
6547
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee"] = jsi::Function::createFromHostFunction(
|
|
6548
|
+
rt,
|
|
6549
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee"),
|
|
6550
|
+
0,
|
|
6551
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6552
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee(rt, thisVal, args, count);
|
|
6553
|
+
}
|
|
6554
|
+
);
|
|
6486
6555
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"] = jsi::Function::createFromHostFunction(
|
|
6487
6556
|
rt,
|
|
6488
6557
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"),
|
|
@@ -7677,6 +7746,20 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(jsi::Ru
|
|
|
7677
7746
|
);
|
|
7678
7747
|
|
|
7679
7748
|
|
|
7749
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7750
|
+
}
|
|
7751
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_funding_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7752
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_board_funding_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
7753
|
+
);
|
|
7754
|
+
|
|
7755
|
+
|
|
7756
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7757
|
+
}
|
|
7758
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7759
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_board_psbt(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]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[3])
|
|
7760
|
+
);
|
|
7761
|
+
|
|
7762
|
+
|
|
7680
7763
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7681
7764
|
}
|
|
7682
7765
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -7768,6 +7851,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(j
|
|
|
7768
7851
|
);
|
|
7769
7852
|
|
|
7770
7853
|
|
|
7854
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7855
|
+
}
|
|
7856
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7857
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee(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::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3])
|
|
7858
|
+
);
|
|
7859
|
+
|
|
7860
|
+
|
|
7771
7861
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7772
7862
|
}
|
|
7773
7863
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8995,6 +9085,20 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_board_amount(j
|
|
|
8995
9085
|
);
|
|
8996
9086
|
|
|
8997
9087
|
|
|
9088
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9089
|
+
}
|
|
9090
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_board_funding_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9091
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_board_funding_address(
|
|
9092
|
+
);
|
|
9093
|
+
|
|
9094
|
+
|
|
9095
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9096
|
+
}
|
|
9097
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_board_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9098
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_board_psbt(
|
|
9099
|
+
);
|
|
9100
|
+
|
|
9101
|
+
|
|
8998
9102
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8999
9103
|
}
|
|
9000
9104
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -9086,6 +9190,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_board
|
|
|
9086
9190
|
);
|
|
9087
9191
|
|
|
9088
9192
|
|
|
9193
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9194
|
+
}
|
|
9195
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9196
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee(
|
|
9197
|
+
);
|
|
9198
|
+
|
|
9199
|
+
|
|
9089
9200
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9090
9201
|
}
|
|
9091
9202
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
package/cpp/generated/bark.hpp
CHANGED
|
@@ -65,6 +65,8 @@ class NativeBark : public jsi::HostObject {
|
|
|
65
65
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
66
66
|
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);
|
|
67
67
|
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);
|
|
68
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_board_funding_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
69
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_board_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
68
70
|
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);
|
|
69
71
|
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);
|
|
70
72
|
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);
|
|
@@ -78,6 +80,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
78
80
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_drain_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
79
81
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_estimate_arkoor_payment_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
80
82
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
83
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
81
84
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
82
85
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
83
86
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_all_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -244,6 +247,8 @@ class NativeBark : public jsi::HostObject {
|
|
|
244
247
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
245
248
|
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);
|
|
246
249
|
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);
|
|
250
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_board_funding_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
251
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_board_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
247
252
|
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);
|
|
248
253
|
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);
|
|
249
254
|
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);
|
|
@@ -257,6 +262,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
257
262
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_drain_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
258
263
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
259
264
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
265
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
260
266
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
261
267
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
262
268
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee(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;;AA+zBA;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":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.WalletTransaction = exports.WalletProperties = exports.WalletOpenArgs = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.VtxoState_Tags = exports.VtxoState = exports.VtxoLockHolder_Tags = exports.VtxoLockHolder = exports.Vtxo = exports.RoundState = exports.RefreshFees = exports.RecoveryReport = exports.RecoveryBucket = exports.PpmExpiryFeeEntry = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainUtxo_Tags = exports.OnchainUtxo = exports.OnchainBalance = exports.OffboardResult = exports.OffboardFees = exports.NotificationHolder = exports.Network = exports.Movement = exports.LogLevel = exports.LightningSendStatus_Tags = exports.LightningSendStatus = exports.LightningSendFees = exports.LightningSend = exports.LightningReceiveFees = exports.LightningReceive = exports.LightningInvoice = exports.FeeSchedule = exports.FeeRates = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTxStatus_Tags = exports.ExitTxStatus = exports.ExitTxOrigin_Tags = exports.ExitTxOrigin = exports.ExitTx = exports.ExitTransactionStatus = exports.ExitState_Tags = exports.ExitStateKind = exports.ExitState = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.ExitCancelResult = exports.ExitCancelFailure_Tags = exports.ExitCancelFailure = exports.Exception_Tags = exports.Exception = exports.Destination = exports.CustomOnchainWalletCallbacksImpl = exports.CpfpParams = exports.Config = exports.BoardFees = exports.BlockRef = exports.BarkLoggerImpl = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
|
|
6
|
+
exports.default = exports.WalletTransaction = exports.WalletProperties = exports.WalletOpenArgs = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.VtxoState_Tags = exports.VtxoState = exports.VtxoLockHolder_Tags = exports.VtxoLockHolder = exports.Vtxo = exports.RoundState = exports.RefreshFees = exports.RecoveryReport = exports.RecoveryBucket = exports.PpmExpiryFeeEntry = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainUtxo_Tags = exports.OnchainUtxo = exports.OnchainBalance = exports.OffboardResult = exports.OffboardFees = exports.NotificationHolder = exports.Network = exports.Movement = exports.LogLevel = exports.LightningSendStatus_Tags = exports.LightningSendStatus = exports.LightningSendFees = exports.LightningSend = exports.LightningReceiveFees = exports.LightningReceive = exports.LightningInvoice = exports.FeeSchedule = exports.FeeRates = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTxStatus_Tags = exports.ExitTxStatus = exports.ExitTxOrigin_Tags = exports.ExitTxOrigin = exports.ExitTx = exports.ExitTransactionStatus = exports.ExitState_Tags = exports.ExitStateKind = exports.ExitState = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.ExitCancelResult = exports.ExitCancelFailure_Tags = exports.ExitCancelFailure = exports.Exception_Tags = exports.Exception = exports.EmergencyExitFeeEstimate = exports.Destination = exports.CustomOnchainWalletCallbacksImpl = exports.CpfpParams = exports.Config = exports.BoardFundingInfo = exports.BoardFees = exports.BlockRef = exports.BarkLoggerImpl = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
|
|
7
7
|
exports.extractTxFromPsbt = extractTxFromPsbt;
|
|
8
8
|
exports.generateMnemonic = generateMnemonic;
|
|
9
9
|
exports.initWallet = initWallet;
|
|
@@ -315,6 +315,50 @@ const FfiConverterTypeBoardFees = (() => {
|
|
|
315
315
|
}
|
|
316
316
|
return new FFIConverter();
|
|
317
317
|
})();
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Destination for an externally funded board (e.g. a payjoin receive).
|
|
321
|
+
*
|
|
322
|
+
* The funding script commits to the derived keypair and expiry height, so
|
|
323
|
+
* `keypair_index` and `expiry_height` must be passed back unchanged to
|
|
324
|
+
* `board_psbt` once the funding PSBT is available — including on retries
|
|
325
|
+
* after the sender changes the transaction.
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Generated factory for {@link BoardFundingInfo} record objects.
|
|
330
|
+
*/
|
|
331
|
+
const BoardFundingInfo = exports.BoardFundingInfo = (() => {
|
|
332
|
+
const defaults = () => ({});
|
|
333
|
+
const create = (() => {
|
|
334
|
+
return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
|
|
335
|
+
})();
|
|
336
|
+
return Object.freeze({
|
|
337
|
+
create,
|
|
338
|
+
new: create,
|
|
339
|
+
defaults: () => Object.freeze(defaults())
|
|
340
|
+
});
|
|
341
|
+
})();
|
|
342
|
+
const FfiConverterTypeBoardFundingInfo = (() => {
|
|
343
|
+
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
344
|
+
read(from) {
|
|
345
|
+
return {
|
|
346
|
+
address: FfiConverterString.read(from),
|
|
347
|
+
expiryHeight: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
348
|
+
keypairIndex: _uniffiBindgenReactNative.FfiConverterUInt32.read(from)
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
write(value, into) {
|
|
352
|
+
FfiConverterString.write(value.address, into);
|
|
353
|
+
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.expiryHeight, into);
|
|
354
|
+
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.keypairIndex, into);
|
|
355
|
+
}
|
|
356
|
+
allocationSize(value) {
|
|
357
|
+
return FfiConverterString.allocationSize(value.address) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.expiryHeight) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.keypairIndex);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return new FFIConverter();
|
|
361
|
+
})();
|
|
318
362
|
/**
|
|
319
363
|
* Generated factory for {@link Config} record objects.
|
|
320
364
|
*/
|
|
@@ -456,6 +500,57 @@ const FfiConverterTypeDestination = (() => {
|
|
|
456
500
|
return new FFIConverter();
|
|
457
501
|
})();
|
|
458
502
|
|
|
503
|
+
/**
|
|
504
|
+
* Estimated onchain cost of unilaterally (emergency) exiting a set of VTXOs.
|
|
505
|
+
*
|
|
506
|
+
* Mirrors bark-rest's `GET /exits/fee` response. The two legs are paid from
|
|
507
|
+
* different pockets: `exit_broadcast_fee_sats` is spent now out of confirmed
|
|
508
|
+
* onchain funds to CPFP-bump every not-yet-confirmed exit transaction, while
|
|
509
|
+
* `claim_fee_sats` is deducted later from the recovered value when the
|
|
510
|
+
* matured outputs are drained.
|
|
511
|
+
*/
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Generated factory for {@link EmergencyExitFeeEstimate} record objects.
|
|
515
|
+
*/
|
|
516
|
+
const EmergencyExitFeeEstimate = exports.EmergencyExitFeeEstimate = (() => {
|
|
517
|
+
const defaults = () => ({});
|
|
518
|
+
const create = (() => {
|
|
519
|
+
return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
|
|
520
|
+
})();
|
|
521
|
+
return Object.freeze({
|
|
522
|
+
create,
|
|
523
|
+
new: create,
|
|
524
|
+
defaults: () => Object.freeze(defaults())
|
|
525
|
+
});
|
|
526
|
+
})();
|
|
527
|
+
const FfiConverterTypeEmergencyExitFeeEstimate = (() => {
|
|
528
|
+
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
529
|
+
read(from) {
|
|
530
|
+
return {
|
|
531
|
+
exitBroadcastFeeSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
532
|
+
claimFeeSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
533
|
+
totalFeeSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
534
|
+
feeRateSatPerVb: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
535
|
+
txsToBroadcast: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
536
|
+
fundable: _uniffiBindgenReactNative.FfiConverterBool.read(from)
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
write(value, into) {
|
|
540
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.exitBroadcastFeeSats, into);
|
|
541
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.claimFeeSats, into);
|
|
542
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.totalFeeSats, into);
|
|
543
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.feeRateSatPerVb, into);
|
|
544
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.txsToBroadcast, into);
|
|
545
|
+
_uniffiBindgenReactNative.FfiConverterBool.write(value.fundable, into);
|
|
546
|
+
}
|
|
547
|
+
allocationSize(value) {
|
|
548
|
+
return _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.exitBroadcastFeeSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.claimFeeSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.totalFeeSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.feeRateSatPerVb) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.txsToBroadcast) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.fundable);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
return new FFIConverter();
|
|
552
|
+
})();
|
|
553
|
+
|
|
459
554
|
/**
|
|
460
555
|
* Outcome of a cancellation request.
|
|
461
556
|
*
|
|
@@ -4692,6 +4787,32 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4692
4787
|
throw __error;
|
|
4693
4788
|
}
|
|
4694
4789
|
}
|
|
4790
|
+
async boardFundingAddress(asyncOpts_) /*throws*/{
|
|
4791
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4792
|
+
try {
|
|
4793
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4794
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_funding_address(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4795
|
+
}, /*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:*/FfiConverterTypeBoardFundingInfo.lift.bind(FfiConverterTypeBoardFundingInfo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4796
|
+
} catch (__error) {
|
|
4797
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4798
|
+
__error.stack = __stack;
|
|
4799
|
+
}
|
|
4800
|
+
throw __error;
|
|
4801
|
+
}
|
|
4802
|
+
}
|
|
4803
|
+
async boardPsbt(psbtBase64, keypairIndex, expiryHeight, asyncOpts_) /*throws*/{
|
|
4804
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4805
|
+
try {
|
|
4806
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4807
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_psbt(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64), _uniffiBindgenReactNative.FfiConverterUInt32.lower(keypairIndex), _uniffiBindgenReactNative.FfiConverterUInt32.lower(expiryHeight));
|
|
4808
|
+
}, /*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:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4809
|
+
} catch (__error) {
|
|
4810
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4811
|
+
__error.stack = __stack;
|
|
4812
|
+
}
|
|
4813
|
+
throw __error;
|
|
4814
|
+
}
|
|
4815
|
+
}
|
|
4695
4816
|
async bolt11Invoice(amountSats, description, token = undefined, asyncOpts_) /*throws*/{
|
|
4696
4817
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4697
4818
|
try {
|
|
@@ -4878,6 +4999,34 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4878
4999
|
throw __error;
|
|
4879
5000
|
}
|
|
4880
5001
|
}
|
|
5002
|
+
|
|
5003
|
+
/**
|
|
5004
|
+
* Estimate the onchain cost of unilaterally (emergency) exiting VTXOs.
|
|
5005
|
+
* Mirrors bark-rest `GET /exits/fee`.
|
|
5006
|
+
*
|
|
5007
|
+
* Pass an empty `vtxo_ids` to price exiting the whole wallet (every
|
|
5008
|
+
* spendable VTXO). `fee_rate_sat_per_vb` applies to both legs; omit it to
|
|
5009
|
+
* use the chain's fast rate for the broadcast leg and regular rate for
|
|
5010
|
+
* the claim leg. `destination` only affects the claim transaction's weight.
|
|
5011
|
+
*
|
|
5012
|
+
* The onchain wallet is synced first so `fundable` reflects the current
|
|
5013
|
+
* confirmed balance. Requires a BDK onchain wallet: callback-backed
|
|
5014
|
+
* wallets (`CustomOnchainWalletCallbacks`) cannot simulate the CPFP walk
|
|
5015
|
+
* and return an error.
|
|
5016
|
+
*/
|
|
5017
|
+
async estimateEmergencyExitFee(vtxoIds, feeRateSatPerVb, destination, asyncOpts_) /*throws*/{
|
|
5018
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5019
|
+
try {
|
|
5020
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
5021
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterOptionalUInt64.lower(feeRateSatPerVb), FfiConverterOptionalString.lower(destination));
|
|
5022
|
+
}, /*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:*/FfiConverterTypeEmergencyExitFeeEstimate.lift.bind(FfiConverterTypeEmergencyExitFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
5023
|
+
} catch (__error) {
|
|
5024
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
5025
|
+
__error.stack = __stack;
|
|
5026
|
+
}
|
|
5027
|
+
throw __error;
|
|
5028
|
+
}
|
|
5029
|
+
}
|
|
4881
5030
|
async estimateLightningReceiveFee(amountSats, asyncOpts_) /*throws*/{
|
|
4882
5031
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4883
5032
|
try {
|
|
@@ -6180,6 +6329,12 @@ function uniffiEnsureInitialized() {
|
|
|
6180
6329
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 54692) {
|
|
6181
6330
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");
|
|
6182
6331
|
}
|
|
6332
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_funding_address() !== 8961) {
|
|
6333
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_funding_address");
|
|
6334
|
+
}
|
|
6335
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_psbt() !== 28300) {
|
|
6336
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_psbt");
|
|
6337
|
+
}
|
|
6183
6338
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 54959) {
|
|
6184
6339
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");
|
|
6185
6340
|
}
|
|
@@ -6219,6 +6374,9 @@ function uniffiEnsureInitialized() {
|
|
|
6219
6374
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !== 55967) {
|
|
6220
6375
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee");
|
|
6221
6376
|
}
|
|
6377
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee() !== 44713) {
|
|
6378
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee");
|
|
6379
|
+
}
|
|
6222
6380
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !== 33637) {
|
|
6223
6381
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee");
|
|
6224
6382
|
}
|
|
@@ -6471,10 +6629,12 @@ var _default = exports.default = Object.freeze({
|
|
|
6471
6629
|
FfiConverterTypeBarkLogger,
|
|
6472
6630
|
FfiConverterTypeBlockRef,
|
|
6473
6631
|
FfiConverterTypeBoardFees,
|
|
6632
|
+
FfiConverterTypeBoardFundingInfo,
|
|
6474
6633
|
FfiConverterTypeConfig,
|
|
6475
6634
|
FfiConverterTypeCpfpParams,
|
|
6476
6635
|
FfiConverterTypeCustomOnchainWalletCallbacks,
|
|
6477
6636
|
FfiConverterTypeDestination,
|
|
6637
|
+
FfiConverterTypeEmergencyExitFeeEstimate,
|
|
6478
6638
|
FfiConverterTypeError,
|
|
6479
6639
|
FfiConverterTypeExitCancelFailure,
|
|
6480
6640
|
FfiConverterTypeExitCancelResult,
|