@secondts/bark-react-native 0.22.0 → 0.24.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 +436 -33
- package/cpp/generated/bark.hpp +14 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +508 -29
- 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 +505 -28
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +24 -8
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +424 -32
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +24 -8
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +424 -32
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +46 -7
- package/src/generated/bark.ts +812 -42
package/cpp/generated/bark.cpp
CHANGED
|
@@ -169,17 +169,23 @@ extern "C" {
|
|
|
169
169
|
typedef void
|
|
170
170
|
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6)(
|
|
171
171
|
uint64_t uniffi_handle,
|
|
172
|
+
RustBuffer txid,
|
|
173
|
+
void * uniffi_out_return, RustCallStatus* rust_call_status
|
|
174
|
+
);
|
|
175
|
+
typedef void
|
|
176
|
+
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7)(
|
|
177
|
+
uint64_t uniffi_handle,
|
|
172
178
|
RustBuffer params,
|
|
173
179
|
RustBuffer * uniffi_out_return, RustCallStatus* rust_call_status
|
|
174
180
|
);
|
|
175
181
|
typedef void
|
|
176
|
-
(*
|
|
182
|
+
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8)(
|
|
177
183
|
uint64_t uniffi_handle,
|
|
178
184
|
RustBuffer tx_hex,
|
|
179
185
|
void * uniffi_out_return, RustCallStatus* rust_call_status
|
|
180
186
|
);
|
|
181
187
|
typedef void
|
|
182
|
-
(*
|
|
188
|
+
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9)(
|
|
183
189
|
uint64_t uniffi_handle,
|
|
184
190
|
void * uniffi_out_return, RustCallStatus* rust_call_status
|
|
185
191
|
);
|
|
@@ -199,9 +205,10 @@ extern "C" {
|
|
|
199
205
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3 finish_psbt;
|
|
200
206
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4 is_mine;
|
|
201
207
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5 register_tx;
|
|
202
|
-
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
|
|
203
|
-
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
|
|
204
|
-
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
|
|
208
|
+
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6 evict_tx;
|
|
209
|
+
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7 make_signed_p2a_cpfp;
|
|
210
|
+
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8 store_signed_p2a_cpfp;
|
|
211
|
+
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9 sync;
|
|
205
212
|
} UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks;typedef struct UniffiVTableCallbackInterfaceBarkLogger {
|
|
206
213
|
UniffiCallbackInterfaceFree uniffi_free;
|
|
207
214
|
UniffiCallbackInterfaceClone uniffi_clone;
|
|
@@ -264,6 +271,11 @@ extern "C" {
|
|
|
264
271
|
RustBuffer tx_hex,
|
|
265
272
|
RustCallStatus *uniffi_out_err
|
|
266
273
|
);
|
|
274
|
+
void uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx(
|
|
275
|
+
/*handle*/ uint64_t ptr,
|
|
276
|
+
RustBuffer txid,
|
|
277
|
+
RustCallStatus *uniffi_out_err
|
|
278
|
+
);
|
|
267
279
|
RustBuffer uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
268
280
|
/*handle*/ uint64_t ptr,
|
|
269
281
|
RustBuffer params,
|
|
@@ -317,6 +329,10 @@ extern "C" {
|
|
|
317
329
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_onchainwallet_balance(
|
|
318
330
|
/*handle*/ uint64_t ptr
|
|
319
331
|
);
|
|
332
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_onchainwallet_evict_tx(
|
|
333
|
+
/*handle*/ uint64_t ptr,
|
|
334
|
+
RustBuffer txid
|
|
335
|
+
);
|
|
320
336
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_onchainwallet_fee_rates(
|
|
321
337
|
/*handle*/ uint64_t ptr
|
|
322
338
|
);
|
|
@@ -527,7 +543,13 @@ extern "C" {
|
|
|
527
543
|
);
|
|
528
544
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_import_vtxo(
|
|
529
545
|
/*handle*/ uint64_t ptr,
|
|
530
|
-
RustBuffer vtxo_base64
|
|
546
|
+
RustBuffer vtxo_base64,
|
|
547
|
+
RustBuffer args
|
|
548
|
+
);
|
|
549
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_import_vtxos(
|
|
550
|
+
/*handle*/ uint64_t ptr,
|
|
551
|
+
RustBuffer encoded_vtxos,
|
|
552
|
+
RustBuffer args
|
|
531
553
|
);
|
|
532
554
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(
|
|
533
555
|
/*handle*/ uint64_t ptr,
|
|
@@ -657,12 +679,17 @@ extern "C" {
|
|
|
657
679
|
);
|
|
658
680
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_recover_vtxos(
|
|
659
681
|
/*handle*/ uint64_t ptr,
|
|
660
|
-
RustBuffer vtxo_ids
|
|
682
|
+
RustBuffer vtxo_ids,
|
|
683
|
+
RustBuffer gap_limit
|
|
661
684
|
);
|
|
662
685
|
RustBuffer uniffi_bark_ffi_fn_method_wallet_recovery_report(
|
|
663
686
|
/*handle*/ uint64_t ptr,
|
|
664
687
|
RustCallStatus *uniffi_out_err
|
|
665
688
|
);
|
|
689
|
+
RustBuffer uniffi_bark_ffi_fn_method_wallet_recovery_status(
|
|
690
|
+
/*handle*/ uint64_t ptr,
|
|
691
|
+
RustCallStatus *uniffi_out_err
|
|
692
|
+
);
|
|
666
693
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_refresh_server(
|
|
667
694
|
/*handle*/ uint64_t ptr
|
|
668
695
|
);
|
|
@@ -713,6 +740,9 @@ extern "C" {
|
|
|
713
740
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_stop_daemon(
|
|
714
741
|
/*handle*/ uint64_t ptr
|
|
715
742
|
);
|
|
743
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(
|
|
744
|
+
/*handle*/ uint64_t ptr
|
|
745
|
+
);
|
|
716
746
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(
|
|
717
747
|
/*handle*/ uint64_t ptr
|
|
718
748
|
);
|
|
@@ -753,12 +783,16 @@ extern "C" {
|
|
|
753
783
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_vtxos(
|
|
754
784
|
/*handle*/ uint64_t ptr
|
|
755
785
|
);
|
|
786
|
+
uint32_t uniffi_bark_ffi_fn_func_default_vtxo_key_gap_limit(RustCallStatus *uniffi_out_err
|
|
787
|
+
);
|
|
756
788
|
RustBuffer uniffi_bark_ffi_fn_func_extract_tx_from_psbt(
|
|
757
789
|
RustBuffer psbt_base64,
|
|
758
790
|
RustCallStatus *uniffi_out_err
|
|
759
791
|
);
|
|
760
792
|
RustBuffer uniffi_bark_ffi_fn_func_generate_mnemonic(RustCallStatus *uniffi_out_err
|
|
761
793
|
);
|
|
794
|
+
uint32_t uniffi_bark_ffi_fn_func_max_vtxo_key_gap_limit(RustCallStatus *uniffi_out_err
|
|
795
|
+
);
|
|
762
796
|
int8_t uniffi_bark_ffi_fn_func_validate_ark_address(
|
|
763
797
|
RustBuffer address,
|
|
764
798
|
RustCallStatus *uniffi_out_err
|
|
@@ -976,10 +1010,14 @@ extern "C" {
|
|
|
976
1010
|
/*handle*/ uint64_t handle,
|
|
977
1011
|
RustCallStatus *uniffi_out_err
|
|
978
1012
|
);
|
|
1013
|
+
uint16_t uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit(
|
|
1014
|
+
);
|
|
979
1015
|
uint16_t uniffi_bark_ffi_checksum_func_extract_tx_from_psbt(
|
|
980
1016
|
);
|
|
981
1017
|
uint16_t uniffi_bark_ffi_checksum_func_generate_mnemonic(
|
|
982
1018
|
);
|
|
1019
|
+
uint16_t uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit(
|
|
1020
|
+
);
|
|
983
1021
|
uint16_t uniffi_bark_ffi_checksum_func_validate_ark_address(
|
|
984
1022
|
);
|
|
985
1023
|
uint16_t uniffi_bark_ffi_checksum_func_validate_mnemonic(
|
|
@@ -1004,6 +1042,8 @@ extern "C" {
|
|
|
1004
1042
|
);
|
|
1005
1043
|
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx(
|
|
1006
1044
|
);
|
|
1045
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx(
|
|
1046
|
+
);
|
|
1007
1047
|
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
1008
1048
|
);
|
|
1009
1049
|
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
|
|
@@ -1014,6 +1054,8 @@ extern "C" {
|
|
|
1014
1054
|
);
|
|
1015
1055
|
uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_balance(
|
|
1016
1056
|
);
|
|
1057
|
+
uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx(
|
|
1058
|
+
);
|
|
1017
1059
|
uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates(
|
|
1018
1060
|
);
|
|
1019
1061
|
uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_initial_scan(
|
|
@@ -1114,6 +1156,8 @@ extern "C" {
|
|
|
1114
1156
|
);
|
|
1115
1157
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_import_vtxo(
|
|
1116
1158
|
);
|
|
1159
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_import_vtxos(
|
|
1160
|
+
);
|
|
1117
1161
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(
|
|
1118
1162
|
);
|
|
1119
1163
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state(
|
|
@@ -1184,6 +1228,8 @@ extern "C" {
|
|
|
1184
1228
|
);
|
|
1185
1229
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_recovery_report(
|
|
1186
1230
|
);
|
|
1231
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_recovery_status(
|
|
1232
|
+
);
|
|
1187
1233
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_refresh_server(
|
|
1188
1234
|
);
|
|
1189
1235
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos(
|
|
@@ -1210,6 +1256,8 @@ extern "C" {
|
|
|
1210
1256
|
);
|
|
1211
1257
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_stop_daemon(
|
|
1212
1258
|
);
|
|
1259
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait(
|
|
1260
|
+
);
|
|
1213
1261
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends(
|
|
1214
1262
|
);
|
|
1215
1263
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_sync(
|
|
@@ -3802,7 +3850,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3802
3850
|
rsLambda = nullptr;
|
|
3803
3851
|
}
|
|
3804
3852
|
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3805
|
-
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod6 for vtable field
|
|
3853
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod6 for vtable field evict_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3806
3854
|
|
|
3807
3855
|
|
|
3808
3856
|
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
|
|
@@ -3820,6 +3868,137 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3820
3868
|
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
3821
3869
|
using namespace facebook;
|
|
3822
3870
|
|
|
3871
|
+
// We need to store a lambda in a global so we can call it from
|
|
3872
|
+
// a function pointer. The function pointer is passed to Rust.
|
|
3873
|
+
static std::function<void(uint64_t, RustBuffer, void *, RustCallStatus*)> rsLambda = nullptr;
|
|
3874
|
+
|
|
3875
|
+
// This is the main body of the callback. It's called from the lambda,
|
|
3876
|
+
// which itself is called from the callback function which is passed to Rust.
|
|
3877
|
+
static void body(jsi::Runtime &rt,
|
|
3878
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3879
|
+
std::shared_ptr<jsi::Value> callbackValue
|
|
3880
|
+
,uint64_t rs_uniffiHandle
|
|
3881
|
+
,RustBuffer rs_txid
|
|
3882
|
+
,void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3883
|
+
|
|
3884
|
+
// Convert the arguments from Rust, into jsi::Values.
|
|
3885
|
+
// We'll use the Bridging class to do this…
|
|
3886
|
+
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3887
|
+
auto js_txid = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_txid);
|
|
3888
|
+
|
|
3889
|
+
// Now we are ready to call the callback.
|
|
3890
|
+
// We are already on the JS thread, because this `body` function was
|
|
3891
|
+
// invoked from the CallInvoker.
|
|
3892
|
+
try {
|
|
3893
|
+
// Getting the callback function
|
|
3894
|
+
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3895
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txid
|
|
3896
|
+
);
|
|
3897
|
+
|
|
3898
|
+
// Now copy the result back from JS into the RustCallStatus object.
|
|
3899
|
+
uniffi::bark::Bridging<RustCallStatus>::copyFromJs(rt, callInvoker, uniffiResult, uniffi_call_status);
|
|
3900
|
+
|
|
3901
|
+
if (uniffi_call_status->code != UNIFFI_CALL_STATUS_OK) {
|
|
3902
|
+
// The JS callback finished abnormally, so we cannot retrieve the return value.
|
|
3903
|
+
return;
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
} catch (const jsi::JSError &error) {
|
|
3908
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6: "
|
|
3909
|
+
<< error.what() << std::endl;
|
|
3910
|
+
throw error;
|
|
3911
|
+
}
|
|
3912
|
+
}
|
|
3913
|
+
|
|
3914
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_txid, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3915
|
+
// If the runtime has shutdown, then there is no point in trying to
|
|
3916
|
+
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3917
|
+
//
|
|
3918
|
+
// Answer: the module destructor calls into callback `cleanup` method,
|
|
3919
|
+
// which nulls out the rsLamda.
|
|
3920
|
+
//
|
|
3921
|
+
// If rsLamda is null, then there is no runtime to call into.
|
|
3922
|
+
if (rsLambda == nullptr) {
|
|
3923
|
+
// This only occurs when destructors are calling into Rust free/drop,
|
|
3924
|
+
// which causes the JS callback to be dropped.
|
|
3925
|
+
return;
|
|
3926
|
+
}
|
|
3927
|
+
|
|
3928
|
+
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
3929
|
+
// are all in the lambda.
|
|
3930
|
+
rsLambda(
|
|
3931
|
+
rs_uniffiHandle,
|
|
3932
|
+
rs_txid,
|
|
3933
|
+
rs_uniffiOutReturn, uniffi_call_status);
|
|
3934
|
+
}
|
|
3935
|
+
|
|
3936
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
|
|
3937
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3938
|
+
jsi::Runtime &rt,
|
|
3939
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3940
|
+
const jsi::Value &value) {
|
|
3941
|
+
if (rsLambda != nullptr) {
|
|
3942
|
+
// `makeCallbackFunction` is called in two circumstances:
|
|
3943
|
+
//
|
|
3944
|
+
// 1. at startup, when initializing callback interface vtables.
|
|
3945
|
+
// 2. when polling futures. This happens at least once per future that is
|
|
3946
|
+
// exposed to Javascript. We know that this is always the same function,
|
|
3947
|
+
// `uniffiFutureContinuationCallback` in `async-rust-calls.ts`.
|
|
3948
|
+
//
|
|
3949
|
+
// We can therefore return the callback function without making anything
|
|
3950
|
+
// new if we've been initialized already.
|
|
3951
|
+
return callback;
|
|
3952
|
+
}
|
|
3953
|
+
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3954
|
+
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3955
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_txid, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3956
|
+
// We immediately make a lambda which will do the work of transforming the
|
|
3957
|
+
// arguments into JSI values and calling the callback.
|
|
3958
|
+
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3959
|
+
callInvoker,
|
|
3960
|
+
callbackValue
|
|
3961
|
+
, rs_uniffiHandle
|
|
3962
|
+
, rs_txid
|
|
3963
|
+
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3964
|
+
body(rt, callInvoker, callbackValue
|
|
3965
|
+
, rs_uniffiHandle
|
|
3966
|
+
, rs_txid
|
|
3967
|
+
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3968
|
+
};
|
|
3969
|
+
// We'll then call that lambda from the callInvoker which will
|
|
3970
|
+
// look after calling it on the correct thread.
|
|
3971
|
+
callInvoker->invokeBlocking(rt, jsLambda);
|
|
3972
|
+
};
|
|
3973
|
+
return callback;
|
|
3974
|
+
}
|
|
3975
|
+
|
|
3976
|
+
// This method is called from the destructor of NativeBark, which only happens
|
|
3977
|
+
// when the jsi::Runtime is being destroyed.
|
|
3978
|
+
static void cleanup() {
|
|
3979
|
+
// The lambda holds a reference to the the Runtime, so when this is nulled out,
|
|
3980
|
+
// then the pointer will no longer be left dangling.
|
|
3981
|
+
rsLambda = nullptr;
|
|
3982
|
+
}
|
|
3983
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3984
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod7 for vtable field make_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3985
|
+
|
|
3986
|
+
|
|
3987
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
|
|
3988
|
+
//
|
|
3989
|
+
// We have the following constraints:
|
|
3990
|
+
// - we need to pass a function pointer to Rust.
|
|
3991
|
+
// - we need a jsi::Runtime and jsi::Function to call into JS.
|
|
3992
|
+
// - function pointers can't store state, so we can't use a lamda.
|
|
3993
|
+
//
|
|
3994
|
+
// For this, we store a lambda as a global, as `rsLambda`. The `callback` function calls
|
|
3995
|
+
// the lambda, which itself calls the `body` which then calls into JS.
|
|
3996
|
+
//
|
|
3997
|
+
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
3998
|
+
// future.
|
|
3999
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
4000
|
+
using namespace facebook;
|
|
4001
|
+
|
|
3823
4002
|
// We need to store a lambda in a global so we can call it from
|
|
3824
4003
|
// a function pointer. The function pointer is passed to Rust.
|
|
3825
4004
|
static std::function<void(uint64_t, RustBuffer, RustBuffer *, RustCallStatus*)> rsLambda = nullptr;
|
|
@@ -3865,7 +4044,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
3865
4044
|
rt, callInvoker, uniffiResult
|
|
3866
4045
|
);
|
|
3867
4046
|
} catch (const jsi::JSError &error) {
|
|
3868
|
-
std::cout << "Error in callback
|
|
4047
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7: "
|
|
3869
4048
|
<< error.what() << std::endl;
|
|
3870
4049
|
throw error;
|
|
3871
4050
|
}
|
|
@@ -3893,8 +4072,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
3893
4072
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
3894
4073
|
}
|
|
3895
4074
|
|
|
3896
|
-
[[maybe_unused]] static
|
|
3897
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
4075
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
|
|
4076
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3898
4077
|
jsi::Runtime &rt,
|
|
3899
4078
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3900
4079
|
const jsi::Value &value) {
|
|
@@ -3940,11 +4119,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
3940
4119
|
// then the pointer will no longer be left dangling.
|
|
3941
4120
|
rsLambda = nullptr;
|
|
3942
4121
|
}
|
|
3943
|
-
} // namespace uniffi::bark::cb::
|
|
3944
|
-
// Implementation of
|
|
4122
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
4123
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod8 for vtable field store_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3945
4124
|
|
|
3946
4125
|
|
|
3947
|
-
// Callback function: uniffi::bark::cb::
|
|
4126
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
|
|
3948
4127
|
//
|
|
3949
4128
|
// We have the following constraints:
|
|
3950
4129
|
// - we need to pass a function pointer to Rust.
|
|
@@ -3956,7 +4135,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
3956
4135
|
//
|
|
3957
4136
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
3958
4137
|
// future.
|
|
3959
|
-
namespace uniffi::bark::cb::
|
|
4138
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
3960
4139
|
using namespace facebook;
|
|
3961
4140
|
|
|
3962
4141
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -3996,7 +4175,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
3996
4175
|
|
|
3997
4176
|
|
|
3998
4177
|
} catch (const jsi::JSError &error) {
|
|
3999
|
-
std::cout << "Error in callback
|
|
4178
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8: "
|
|
4000
4179
|
<< error.what() << std::endl;
|
|
4001
4180
|
throw error;
|
|
4002
4181
|
}
|
|
@@ -4024,8 +4203,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
4024
4203
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
4025
4204
|
}
|
|
4026
4205
|
|
|
4027
|
-
[[maybe_unused]] static
|
|
4028
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
4206
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
|
|
4207
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
4029
4208
|
jsi::Runtime &rt,
|
|
4030
4209
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
4031
4210
|
const jsi::Value &value) {
|
|
@@ -4071,11 +4250,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
4071
4250
|
// then the pointer will no longer be left dangling.
|
|
4072
4251
|
rsLambda = nullptr;
|
|
4073
4252
|
}
|
|
4074
|
-
} // namespace uniffi::bark::cb::
|
|
4075
|
-
// Implementation of
|
|
4253
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
4254
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod9 for vtable field sync in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
4076
4255
|
|
|
4077
4256
|
|
|
4078
|
-
// Callback function: uniffi::bark::cb::
|
|
4257
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9
|
|
4079
4258
|
//
|
|
4080
4259
|
// We have the following constraints:
|
|
4081
4260
|
// - we need to pass a function pointer to Rust.
|
|
@@ -4087,7 +4266,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
4087
4266
|
//
|
|
4088
4267
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
4089
4268
|
// future.
|
|
4090
|
-
namespace uniffi::bark::cb::
|
|
4269
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
4091
4270
|
using namespace facebook;
|
|
4092
4271
|
|
|
4093
4272
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -4125,7 +4304,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4125
4304
|
|
|
4126
4305
|
|
|
4127
4306
|
} catch (const jsi::JSError &error) {
|
|
4128
|
-
std::cout << "Error in callback
|
|
4307
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9: "
|
|
4129
4308
|
<< error.what() << std::endl;
|
|
4130
4309
|
throw error;
|
|
4131
4310
|
}
|
|
@@ -4152,8 +4331,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4152
4331
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
4153
4332
|
}
|
|
4154
4333
|
|
|
4155
|
-
[[maybe_unused]] static
|
|
4156
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
4334
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9
|
|
4335
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
4157
4336
|
jsi::Runtime &rt,
|
|
4158
4337
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
4159
4338
|
const jsi::Value &value) {
|
|
@@ -4197,7 +4376,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4197
4376
|
// then the pointer will no longer be left dangling.
|
|
4198
4377
|
rsLambda = nullptr;
|
|
4199
4378
|
}
|
|
4200
|
-
} // namespace uniffi::bark::cb::
|
|
4379
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
4201
4380
|
namespace uniffi::bark {
|
|
4202
4381
|
using namespace facebook;
|
|
4203
4382
|
using CallInvoker = uniffi_runtime::UniffiCallInvoker;
|
|
@@ -4243,13 +4422,16 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceCustomOnchainWalletCall
|
|
|
4243
4422
|
rsObject.register_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4244
4423
|
rt, callInvoker, jsObject.getProperty(rt, "registerTx")
|
|
4245
4424
|
);
|
|
4246
|
-
rsObject.
|
|
4425
|
+
rsObject.evict_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4426
|
+
rt, callInvoker, jsObject.getProperty(rt, "evictTx")
|
|
4427
|
+
);
|
|
4428
|
+
rsObject.make_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4247
4429
|
rt, callInvoker, jsObject.getProperty(rt, "makeSignedP2aCpfp")
|
|
4248
4430
|
);
|
|
4249
|
-
rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::
|
|
4431
|
+
rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4250
4432
|
rt, callInvoker, jsObject.getProperty(rt, "storeSignedP2aCpfp")
|
|
4251
4433
|
);
|
|
4252
|
-
rsObject.sync = uniffi::bark::cb::
|
|
4434
|
+
rsObject.sync = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4253
4435
|
rt, callInvoker, jsObject.getProperty(rt, "sync")
|
|
4254
4436
|
);
|
|
4255
4437
|
|
|
@@ -4720,6 +4902,14 @@ NativeBark::NativeBark(
|
|
|
4720
4902
|
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx(rt, thisVal, args, count);
|
|
4721
4903
|
}
|
|
4722
4904
|
);
|
|
4905
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx"] = jsi::Function::createFromHostFunction(
|
|
4906
|
+
rt,
|
|
4907
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx"),
|
|
4908
|
+
2,
|
|
4909
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4910
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx(rt, thisVal, args, count);
|
|
4911
|
+
}
|
|
4912
|
+
);
|
|
4723
4913
|
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
|
|
4724
4914
|
rt,
|
|
4725
4915
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"),
|
|
@@ -4816,6 +5006,14 @@ NativeBark::NativeBark(
|
|
|
4816
5006
|
return this->cpp_uniffi_bark_ffi_fn_method_onchainwallet_balance(rt, thisVal, args, count);
|
|
4817
5007
|
}
|
|
4818
5008
|
);
|
|
5009
|
+
props["ubrn_uniffi_bark_ffi_fn_method_onchainwallet_evict_tx"] = jsi::Function::createFromHostFunction(
|
|
5010
|
+
rt,
|
|
5011
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_onchainwallet_evict_tx"),
|
|
5012
|
+
2,
|
|
5013
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5014
|
+
return this->cpp_uniffi_bark_ffi_fn_method_onchainwallet_evict_tx(rt, thisVal, args, count);
|
|
5015
|
+
}
|
|
5016
|
+
);
|
|
4819
5017
|
props["ubrn_uniffi_bark_ffi_fn_method_onchainwallet_fee_rates"] = jsi::Function::createFromHostFunction(
|
|
4820
5018
|
rt,
|
|
4821
5019
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_onchainwallet_fee_rates"),
|
|
@@ -5235,11 +5433,19 @@ NativeBark::NativeBark(
|
|
|
5235
5433
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo"] = jsi::Function::createFromHostFunction(
|
|
5236
5434
|
rt,
|
|
5237
5435
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo"),
|
|
5238
|
-
|
|
5436
|
+
3,
|
|
5239
5437
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5240
5438
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxo(rt, thisVal, args, count);
|
|
5241
5439
|
}
|
|
5242
5440
|
);
|
|
5441
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxos"] = jsi::Function::createFromHostFunction(
|
|
5442
|
+
rt,
|
|
5443
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxos"),
|
|
5444
|
+
3,
|
|
5445
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5446
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxos(rt, thisVal, args, count);
|
|
5447
|
+
}
|
|
5448
|
+
);
|
|
5243
5449
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid"] = jsi::Function::createFromHostFunction(
|
|
5244
5450
|
rt,
|
|
5245
5451
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid"),
|
|
@@ -5507,7 +5713,7 @@ NativeBark::NativeBark(
|
|
|
5507
5713
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_recover_vtxos"] = jsi::Function::createFromHostFunction(
|
|
5508
5714
|
rt,
|
|
5509
5715
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_recover_vtxos"),
|
|
5510
|
-
|
|
5716
|
+
3,
|
|
5511
5717
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5512
5718
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_recover_vtxos(rt, thisVal, args, count);
|
|
5513
5719
|
}
|
|
@@ -5520,6 +5726,14 @@ NativeBark::NativeBark(
|
|
|
5520
5726
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_recovery_report(rt, thisVal, args, count);
|
|
5521
5727
|
}
|
|
5522
5728
|
);
|
|
5729
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_status"] = jsi::Function::createFromHostFunction(
|
|
5730
|
+
rt,
|
|
5731
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_status"),
|
|
5732
|
+
1,
|
|
5733
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5734
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_recovery_status(rt, thisVal, args, count);
|
|
5735
|
+
}
|
|
5736
|
+
);
|
|
5523
5737
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server"] = jsi::Function::createFromHostFunction(
|
|
5524
5738
|
rt,
|
|
5525
5739
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server"),
|
|
@@ -5624,6 +5838,14 @@ NativeBark::NativeBark(
|
|
|
5624
5838
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(rt, thisVal, args, count);
|
|
5625
5839
|
}
|
|
5626
5840
|
);
|
|
5841
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait"] = jsi::Function::createFromHostFunction(
|
|
5842
|
+
rt,
|
|
5843
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait"),
|
|
5844
|
+
1,
|
|
5845
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5846
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(rt, thisVal, args, count);
|
|
5847
|
+
}
|
|
5848
|
+
);
|
|
5627
5849
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends"] = jsi::Function::createFromHostFunction(
|
|
5628
5850
|
rt,
|
|
5629
5851
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends"),
|
|
@@ -5712,6 +5934,14 @@ NativeBark::NativeBark(
|
|
|
5712
5934
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_vtxos(rt, thisVal, args, count);
|
|
5713
5935
|
}
|
|
5714
5936
|
);
|
|
5937
|
+
props["ubrn_uniffi_bark_ffi_fn_func_default_vtxo_key_gap_limit"] = jsi::Function::createFromHostFunction(
|
|
5938
|
+
rt,
|
|
5939
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_func_default_vtxo_key_gap_limit"),
|
|
5940
|
+
0,
|
|
5941
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5942
|
+
return this->cpp_uniffi_bark_ffi_fn_func_default_vtxo_key_gap_limit(rt, thisVal, args, count);
|
|
5943
|
+
}
|
|
5944
|
+
);
|
|
5715
5945
|
props["ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt"] = jsi::Function::createFromHostFunction(
|
|
5716
5946
|
rt,
|
|
5717
5947
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt"),
|
|
@@ -5728,6 +5958,14 @@ NativeBark::NativeBark(
|
|
|
5728
5958
|
return this->cpp_uniffi_bark_ffi_fn_func_generate_mnemonic(rt, thisVal, args, count);
|
|
5729
5959
|
}
|
|
5730
5960
|
);
|
|
5961
|
+
props["ubrn_uniffi_bark_ffi_fn_func_max_vtxo_key_gap_limit"] = jsi::Function::createFromHostFunction(
|
|
5962
|
+
rt,
|
|
5963
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_func_max_vtxo_key_gap_limit"),
|
|
5964
|
+
0,
|
|
5965
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5966
|
+
return this->cpp_uniffi_bark_ffi_fn_func_max_vtxo_key_gap_limit(rt, thisVal, args, count);
|
|
5967
|
+
}
|
|
5968
|
+
);
|
|
5731
5969
|
props["ubrn_uniffi_bark_ffi_fn_func_validate_ark_address"] = jsi::Function::createFromHostFunction(
|
|
5732
5970
|
rt,
|
|
5733
5971
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_func_validate_ark_address"),
|
|
@@ -6144,6 +6382,14 @@ NativeBark::NativeBark(
|
|
|
6144
6382
|
return this->cpp_ffi_bark_ffi_rust_future_complete_void(rt, thisVal, args, count);
|
|
6145
6383
|
}
|
|
6146
6384
|
);
|
|
6385
|
+
props["ubrn_uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit"] = jsi::Function::createFromHostFunction(
|
|
6386
|
+
rt,
|
|
6387
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit"),
|
|
6388
|
+
0,
|
|
6389
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6390
|
+
return this->cpp_uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit(rt, thisVal, args, count);
|
|
6391
|
+
}
|
|
6392
|
+
);
|
|
6147
6393
|
props["ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt"] = jsi::Function::createFromHostFunction(
|
|
6148
6394
|
rt,
|
|
6149
6395
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt"),
|
|
@@ -6160,6 +6406,14 @@ NativeBark::NativeBark(
|
|
|
6160
6406
|
return this->cpp_uniffi_bark_ffi_checksum_func_generate_mnemonic(rt, thisVal, args, count);
|
|
6161
6407
|
}
|
|
6162
6408
|
);
|
|
6409
|
+
props["ubrn_uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit"] = jsi::Function::createFromHostFunction(
|
|
6410
|
+
rt,
|
|
6411
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit"),
|
|
6412
|
+
0,
|
|
6413
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6414
|
+
return this->cpp_uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit(rt, thisVal, args, count);
|
|
6415
|
+
}
|
|
6416
|
+
);
|
|
6163
6417
|
props["ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address"] = jsi::Function::createFromHostFunction(
|
|
6164
6418
|
rt,
|
|
6165
6419
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address"),
|
|
@@ -6256,6 +6510,14 @@ NativeBark::NativeBark(
|
|
|
6256
6510
|
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx(rt, thisVal, args, count);
|
|
6257
6511
|
}
|
|
6258
6512
|
);
|
|
6513
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx"] = jsi::Function::createFromHostFunction(
|
|
6514
|
+
rt,
|
|
6515
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx"),
|
|
6516
|
+
0,
|
|
6517
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6518
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx(rt, thisVal, args, count);
|
|
6519
|
+
}
|
|
6520
|
+
);
|
|
6259
6521
|
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
|
|
6260
6522
|
rt,
|
|
6261
6523
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"),
|
|
@@ -6296,6 +6558,14 @@ NativeBark::NativeBark(
|
|
|
6296
6558
|
return this->cpp_uniffi_bark_ffi_checksum_method_onchainwallet_balance(rt, thisVal, args, count);
|
|
6297
6559
|
}
|
|
6298
6560
|
);
|
|
6561
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx"] = jsi::Function::createFromHostFunction(
|
|
6562
|
+
rt,
|
|
6563
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx"),
|
|
6564
|
+
0,
|
|
6565
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6566
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx(rt, thisVal, args, count);
|
|
6567
|
+
}
|
|
6568
|
+
);
|
|
6299
6569
|
props["ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates"] = jsi::Function::createFromHostFunction(
|
|
6300
6570
|
rt,
|
|
6301
6571
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates"),
|
|
@@ -6696,6 +6966,14 @@ NativeBark::NativeBark(
|
|
|
6696
6966
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(rt, thisVal, args, count);
|
|
6697
6967
|
}
|
|
6698
6968
|
);
|
|
6969
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxos"] = jsi::Function::createFromHostFunction(
|
|
6970
|
+
rt,
|
|
6971
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxos"),
|
|
6972
|
+
0,
|
|
6973
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6974
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxos(rt, thisVal, args, count);
|
|
6975
|
+
}
|
|
6976
|
+
);
|
|
6699
6977
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid"] = jsi::Function::createFromHostFunction(
|
|
6700
6978
|
rt,
|
|
6701
6979
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid"),
|
|
@@ -6976,6 +7254,14 @@ NativeBark::NativeBark(
|
|
|
6976
7254
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_report(rt, thisVal, args, count);
|
|
6977
7255
|
}
|
|
6978
7256
|
);
|
|
7257
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_status"] = jsi::Function::createFromHostFunction(
|
|
7258
|
+
rt,
|
|
7259
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_status"),
|
|
7260
|
+
0,
|
|
7261
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
7262
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_status(rt, thisVal, args, count);
|
|
7263
|
+
}
|
|
7264
|
+
);
|
|
6979
7265
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server"] = jsi::Function::createFromHostFunction(
|
|
6980
7266
|
rt,
|
|
6981
7267
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server"),
|
|
@@ -7080,6 +7366,14 @@ NativeBark::NativeBark(
|
|
|
7080
7366
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(rt, thisVal, args, count);
|
|
7081
7367
|
}
|
|
7082
7368
|
);
|
|
7369
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait"] = jsi::Function::createFromHostFunction(
|
|
7370
|
+
rt,
|
|
7371
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait"),
|
|
7372
|
+
0,
|
|
7373
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
7374
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait(rt, thisVal, args, count);
|
|
7375
|
+
}
|
|
7376
|
+
);
|
|
7083
7377
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends"] = jsi::Function::createFromHostFunction(
|
|
7084
7378
|
rt,
|
|
7085
7379
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends"),
|
|
@@ -7291,6 +7585,7 @@ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtableca
|
|
|
7291
7585
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
7292
7586
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
7293
7587
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
7588
|
+
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
7294
7589
|
uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger::cleanup();
|
|
7295
7590
|
uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger::cleanup();
|
|
7296
7591
|
}
|
|
@@ -7486,6 +7781,16 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallback
|
|
|
7486
7781
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7487
7782
|
|
|
7488
7783
|
|
|
7784
|
+
return jsi::Value::undefined();
|
|
7785
|
+
}
|
|
7786
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7787
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7788
|
+
uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
7789
|
+
&status
|
|
7790
|
+
);
|
|
7791
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7792
|
+
|
|
7793
|
+
|
|
7489
7794
|
return jsi::Value::undefined();
|
|
7490
7795
|
}
|
|
7491
7796
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -7607,6 +7912,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_balance(jsi::
|
|
|
7607
7912
|
);
|
|
7608
7913
|
|
|
7609
7914
|
|
|
7915
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7916
|
+
}
|
|
7917
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_evict_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7918
|
+
auto value = uniffi_bark_ffi_fn_method_onchainwallet_evict_tx(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
7919
|
+
);
|
|
7920
|
+
|
|
7921
|
+
|
|
7610
7922
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7611
7923
|
}
|
|
7612
7924
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_fee_rates(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -7983,7 +8295,14 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_history_by_payment_m
|
|
|
7983
8295
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7984
8296
|
}
|
|
7985
8297
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7986
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_import_vtxo(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
8298
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_import_vtxo(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])
|
|
8299
|
+
);
|
|
8300
|
+
|
|
8301
|
+
|
|
8302
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8303
|
+
}
|
|
8304
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8305
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_import_vtxos(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])
|
|
7987
8306
|
);
|
|
7988
8307
|
|
|
7989
8308
|
|
|
@@ -8230,7 +8549,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_properties(jsi::Runt
|
|
|
8230
8549
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8231
8550
|
}
|
|
8232
8551
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_recover_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8233
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_recover_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
8552
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_recover_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2])
|
|
8234
8553
|
);
|
|
8235
8554
|
|
|
8236
8555
|
|
|
@@ -8244,6 +8563,16 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_recovery_report(jsi:
|
|
|
8244
8563
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
8245
8564
|
|
|
8246
8565
|
|
|
8566
|
+
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
8567
|
+
}
|
|
8568
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_recovery_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8569
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
8570
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_recovery_status(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
8571
|
+
&status
|
|
8572
|
+
);
|
|
8573
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
8574
|
+
|
|
8575
|
+
|
|
8247
8576
|
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
8248
8577
|
}
|
|
8249
8578
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8335,6 +8664,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(jsi::Run
|
|
|
8335
8664
|
);
|
|
8336
8665
|
|
|
8337
8666
|
|
|
8667
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8668
|
+
}
|
|
8669
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8670
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
8671
|
+
);
|
|
8672
|
+
|
|
8673
|
+
|
|
8338
8674
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8339
8675
|
}
|
|
8340
8676
|
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) {
|
|
@@ -8414,6 +8750,15 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_vtxos(jsi::Runtime&
|
|
|
8414
8750
|
|
|
8415
8751
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8416
8752
|
}
|
|
8753
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_default_vtxo_key_gap_limit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8754
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
8755
|
+
auto value = uniffi_bark_ffi_fn_func_default_vtxo_key_gap_limit(&status
|
|
8756
|
+
);
|
|
8757
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
8758
|
+
|
|
8759
|
+
|
|
8760
|
+
return uniffi_jsi::Bridging<uint32_t>::toJs(rt, callInvoker, value);
|
|
8761
|
+
}
|
|
8417
8762
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8418
8763
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
8419
8764
|
auto value = uniffi_bark_ffi_fn_func_extract_tx_from_psbt(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
@@ -8433,6 +8778,15 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_generate_mnemonic(jsi::Runtim
|
|
|
8433
8778
|
|
|
8434
8779
|
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
8435
8780
|
}
|
|
8781
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_max_vtxo_key_gap_limit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8782
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
8783
|
+
auto value = uniffi_bark_ffi_fn_func_max_vtxo_key_gap_limit(&status
|
|
8784
|
+
);
|
|
8785
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
8786
|
+
|
|
8787
|
+
|
|
8788
|
+
return uniffi_jsi::Bridging<uint32_t>::toJs(rt, callInvoker, value);
|
|
8789
|
+
}
|
|
8436
8790
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_validate_ark_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8437
8791
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
8438
8792
|
auto value = uniffi_bark_ffi_fn_func_validate_ark_address(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
@@ -8842,6 +9196,13 @@ jsi::Value NativeBark::cpp_ffi_bark_ffi_rust_future_complete_void(jsi::Runtime&
|
|
|
8842
9196
|
|
|
8843
9197
|
return jsi::Value::undefined();
|
|
8844
9198
|
}
|
|
9199
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9200
|
+
auto value = uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit(
|
|
9201
|
+
);
|
|
9202
|
+
|
|
9203
|
+
|
|
9204
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9205
|
+
}
|
|
8845
9206
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8846
9207
|
auto value = uniffi_bark_ffi_checksum_func_extract_tx_from_psbt(
|
|
8847
9208
|
);
|
|
@@ -8854,6 +9215,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_generate_mnemonic(jsi::
|
|
|
8854
9215
|
);
|
|
8855
9216
|
|
|
8856
9217
|
|
|
9218
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9219
|
+
}
|
|
9220
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9221
|
+
auto value = uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit(
|
|
9222
|
+
);
|
|
9223
|
+
|
|
9224
|
+
|
|
8857
9225
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8858
9226
|
}
|
|
8859
9227
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_validate_ark_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8938,6 +9306,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletca
|
|
|
8938
9306
|
);
|
|
8939
9307
|
|
|
8940
9308
|
|
|
9309
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9310
|
+
}
|
|
9311
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9312
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx(
|
|
9313
|
+
);
|
|
9314
|
+
|
|
9315
|
+
|
|
8941
9316
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8942
9317
|
}
|
|
8943
9318
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8973,6 +9348,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_onchainwallet_balance
|
|
|
8973
9348
|
);
|
|
8974
9349
|
|
|
8975
9350
|
|
|
9351
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9352
|
+
}
|
|
9353
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9354
|
+
auto value = uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx(
|
|
9355
|
+
);
|
|
9356
|
+
|
|
9357
|
+
|
|
8976
9358
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8977
9359
|
}
|
|
8978
9360
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -9323,6 +9705,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(js
|
|
|
9323
9705
|
);
|
|
9324
9706
|
|
|
9325
9707
|
|
|
9708
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9709
|
+
}
|
|
9710
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9711
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_import_vtxos(
|
|
9712
|
+
);
|
|
9713
|
+
|
|
9714
|
+
|
|
9326
9715
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9327
9716
|
}
|
|
9328
9717
|
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) {
|
|
@@ -9568,6 +9957,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_repor
|
|
|
9568
9957
|
);
|
|
9569
9958
|
|
|
9570
9959
|
|
|
9960
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9961
|
+
}
|
|
9962
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9963
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_recovery_status(
|
|
9964
|
+
);
|
|
9965
|
+
|
|
9966
|
+
|
|
9571
9967
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9572
9968
|
}
|
|
9573
9969
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -9659,6 +10055,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(js
|
|
|
9659
10055
|
);
|
|
9660
10056
|
|
|
9661
10057
|
|
|
10058
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10059
|
+
}
|
|
10060
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
10061
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait(
|
|
10062
|
+
);
|
|
10063
|
+
|
|
10064
|
+
|
|
9662
10065
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9663
10066
|
}
|
|
9664
10067
|
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) {
|