@secondts/bark-react-native 0.21.0 → 0.23.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.
@@ -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
- (*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7)(
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
- (*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8)(
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 make_signed_p2a_cpfp;
203
- UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7 store_signed_p2a_cpfp;
204
- UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8 sync;
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
  );
@@ -452,6 +468,12 @@ extern "C" {
452
468
  /*handle*/ uint64_t ptr,
453
469
  uint64_t amount_sats
454
470
  );
471
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee(
472
+ /*handle*/ uint64_t ptr,
473
+ RustBuffer vtxo_ids,
474
+ RustBuffer fee_rate_sat_per_vb,
475
+ RustBuffer destination
476
+ );
455
477
  /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(
456
478
  /*handle*/ uint64_t ptr,
457
479
  uint64_t amount_sats
@@ -657,6 +679,10 @@ extern "C" {
657
679
  /*handle*/ uint64_t ptr,
658
680
  RustCallStatus *uniffi_out_err
659
681
  );
682
+ RustBuffer uniffi_bark_ffi_fn_method_wallet_recovery_status(
683
+ /*handle*/ uint64_t ptr,
684
+ RustCallStatus *uniffi_out_err
685
+ );
660
686
  /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_refresh_server(
661
687
  /*handle*/ uint64_t ptr
662
688
  );
@@ -707,6 +733,9 @@ extern "C" {
707
733
  /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_stop_daemon(
708
734
  /*handle*/ uint64_t ptr
709
735
  );
736
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(
737
+ /*handle*/ uint64_t ptr
738
+ );
710
739
  /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(
711
740
  /*handle*/ uint64_t ptr
712
741
  );
@@ -998,6 +1027,8 @@ extern "C" {
998
1027
  );
999
1028
  uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx(
1000
1029
  );
1030
+ uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx(
1031
+ );
1001
1032
  uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
1002
1033
  );
1003
1034
  uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
@@ -1008,6 +1039,8 @@ extern "C" {
1008
1039
  );
1009
1040
  uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_balance(
1010
1041
  );
1042
+ uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx(
1043
+ );
1011
1044
  uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates(
1012
1045
  );
1013
1046
  uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_initial_scan(
@@ -1070,6 +1103,8 @@ extern "C" {
1070
1103
  );
1071
1104
  uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(
1072
1105
  );
1106
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee(
1107
+ );
1073
1108
  uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee(
1074
1109
  );
1075
1110
  uint16_t uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee(
@@ -1176,6 +1211,8 @@ extern "C" {
1176
1211
  );
1177
1212
  uint16_t uniffi_bark_ffi_checksum_method_wallet_recovery_report(
1178
1213
  );
1214
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_recovery_status(
1215
+ );
1179
1216
  uint16_t uniffi_bark_ffi_checksum_method_wallet_refresh_server(
1180
1217
  );
1181
1218
  uint16_t uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos(
@@ -1202,6 +1239,8 @@ extern "C" {
1202
1239
  );
1203
1240
  uint16_t uniffi_bark_ffi_checksum_method_wallet_stop_daemon(
1204
1241
  );
1242
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait(
1243
+ );
1205
1244
  uint16_t uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends(
1206
1245
  );
1207
1246
  uint16_t uniffi_bark_ffi_checksum_method_wallet_sync(
@@ -3794,7 +3833,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
3794
3833
  rsLambda = nullptr;
3795
3834
  }
3796
3835
  } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks
3797
- // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod6 for vtable field make_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
3836
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod6 for vtable field evict_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
3798
3837
 
3799
3838
 
3800
3839
  // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
@@ -3812,6 +3851,137 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
3812
3851
  namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks {
3813
3852
  using namespace facebook;
3814
3853
 
3854
+ // We need to store a lambda in a global so we can call it from
3855
+ // a function pointer. The function pointer is passed to Rust.
3856
+ static std::function<void(uint64_t, RustBuffer, void *, RustCallStatus*)> rsLambda = nullptr;
3857
+
3858
+ // This is the main body of the callback. It's called from the lambda,
3859
+ // which itself is called from the callback function which is passed to Rust.
3860
+ static void body(jsi::Runtime &rt,
3861
+ std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
3862
+ std::shared_ptr<jsi::Value> callbackValue
3863
+ ,uint64_t rs_uniffiHandle
3864
+ ,RustBuffer rs_txid
3865
+ ,void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
3866
+
3867
+ // Convert the arguments from Rust, into jsi::Values.
3868
+ // We'll use the Bridging class to do this…
3869
+ auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
3870
+ auto js_txid = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_txid);
3871
+
3872
+ // Now we are ready to call the callback.
3873
+ // We are already on the JS thread, because this `body` function was
3874
+ // invoked from the CallInvoker.
3875
+ try {
3876
+ // Getting the callback function
3877
+ auto cb = callbackValue->asObject(rt).asFunction(rt);
3878
+ auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txid
3879
+ );
3880
+
3881
+ // Now copy the result back from JS into the RustCallStatus object.
3882
+ uniffi::bark::Bridging<RustCallStatus>::copyFromJs(rt, callInvoker, uniffiResult, uniffi_call_status);
3883
+
3884
+ if (uniffi_call_status->code != UNIFFI_CALL_STATUS_OK) {
3885
+ // The JS callback finished abnormally, so we cannot retrieve the return value.
3886
+ return;
3887
+ }
3888
+
3889
+
3890
+ } catch (const jsi::JSError &error) {
3891
+ std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6: "
3892
+ << error.what() << std::endl;
3893
+ throw error;
3894
+ }
3895
+ }
3896
+
3897
+ static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_txid, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
3898
+ // If the runtime has shutdown, then there is no point in trying to
3899
+ // call into Javascript. BUT how do we tell if the runtime has shutdown?
3900
+ //
3901
+ // Answer: the module destructor calls into callback `cleanup` method,
3902
+ // which nulls out the rsLamda.
3903
+ //
3904
+ // If rsLamda is null, then there is no runtime to call into.
3905
+ if (rsLambda == nullptr) {
3906
+ // This only occurs when destructors are calling into Rust free/drop,
3907
+ // which causes the JS callback to be dropped.
3908
+ return;
3909
+ }
3910
+
3911
+ // The runtime, the actual callback jsi::funtion, and the callInvoker
3912
+ // are all in the lambda.
3913
+ rsLambda(
3914
+ rs_uniffiHandle,
3915
+ rs_txid,
3916
+ rs_uniffiOutReturn, uniffi_call_status);
3917
+ }
3918
+
3919
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
3920
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
3921
+ jsi::Runtime &rt,
3922
+ std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
3923
+ const jsi::Value &value) {
3924
+ if (rsLambda != nullptr) {
3925
+ // `makeCallbackFunction` is called in two circumstances:
3926
+ //
3927
+ // 1. at startup, when initializing callback interface vtables.
3928
+ // 2. when polling futures. This happens at least once per future that is
3929
+ // exposed to Javascript. We know that this is always the same function,
3930
+ // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`.
3931
+ //
3932
+ // We can therefore return the callback function without making anything
3933
+ // new if we've been initialized already.
3934
+ return callback;
3935
+ }
3936
+ auto callbackFunction = value.asObject(rt).asFunction(rt);
3937
+ auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
3938
+ rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_txid, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
3939
+ // We immediately make a lambda which will do the work of transforming the
3940
+ // arguments into JSI values and calling the callback.
3941
+ uniffi_runtime::UniffiCallFunc jsLambda = [
3942
+ callInvoker,
3943
+ callbackValue
3944
+ , rs_uniffiHandle
3945
+ , rs_txid
3946
+ , rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
3947
+ body(rt, callInvoker, callbackValue
3948
+ , rs_uniffiHandle
3949
+ , rs_txid
3950
+ , rs_uniffiOutReturn, uniffi_call_status);
3951
+ };
3952
+ // We'll then call that lambda from the callInvoker which will
3953
+ // look after calling it on the correct thread.
3954
+ callInvoker->invokeBlocking(rt, jsLambda);
3955
+ };
3956
+ return callback;
3957
+ }
3958
+
3959
+ // This method is called from the destructor of NativeBark, which only happens
3960
+ // when the jsi::Runtime is being destroyed.
3961
+ static void cleanup() {
3962
+ // The lambda holds a reference to the the Runtime, so when this is nulled out,
3963
+ // then the pointer will no longer be left dangling.
3964
+ rsLambda = nullptr;
3965
+ }
3966
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
3967
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod7 for vtable field make_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
3968
+
3969
+
3970
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
3971
+ //
3972
+ // We have the following constraints:
3973
+ // - we need to pass a function pointer to Rust.
3974
+ // - we need a jsi::Runtime and jsi::Function to call into JS.
3975
+ // - function pointers can't store state, so we can't use a lamda.
3976
+ //
3977
+ // For this, we store a lambda as a global, as `rsLambda`. The `callback` function calls
3978
+ // the lambda, which itself calls the `body` which then calls into JS.
3979
+ //
3980
+ // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
3981
+ // future.
3982
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks {
3983
+ using namespace facebook;
3984
+
3815
3985
  // We need to store a lambda in a global so we can call it from
3816
3986
  // a function pointer. The function pointer is passed to Rust.
3817
3987
  static std::function<void(uint64_t, RustBuffer, RustBuffer *, RustCallStatus*)> rsLambda = nullptr;
@@ -3857,7 +4027,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
3857
4027
  rt, callInvoker, uniffiResult
3858
4028
  );
3859
4029
  } catch (const jsi::JSError &error) {
3860
- std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6: "
4030
+ std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7: "
3861
4031
  << error.what() << std::endl;
3862
4032
  throw error;
3863
4033
  }
@@ -3885,8 +4055,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
3885
4055
  rs_uniffiOutReturn, uniffi_call_status);
3886
4056
  }
3887
4057
 
3888
- [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
3889
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
4058
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
4059
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
3890
4060
  jsi::Runtime &rt,
3891
4061
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
3892
4062
  const jsi::Value &value) {
@@ -3932,11 +4102,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
3932
4102
  // then the pointer will no longer be left dangling.
3933
4103
  rsLambda = nullptr;
3934
4104
  }
3935
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
3936
- // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod7 for vtable field store_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
4105
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
4106
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod8 for vtable field store_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
3937
4107
 
3938
4108
 
3939
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
4109
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
3940
4110
  //
3941
4111
  // We have the following constraints:
3942
4112
  // - we need to pass a function pointer to Rust.
@@ -3948,7 +4118,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
3948
4118
  //
3949
4119
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
3950
4120
  // future.
3951
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks {
4121
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks {
3952
4122
  using namespace facebook;
3953
4123
 
3954
4124
  // We need to store a lambda in a global so we can call it from
@@ -3988,7 +4158,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
3988
4158
 
3989
4159
 
3990
4160
  } catch (const jsi::JSError &error) {
3991
- std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7: "
4161
+ std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8: "
3992
4162
  << error.what() << std::endl;
3993
4163
  throw error;
3994
4164
  }
@@ -4016,8 +4186,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
4016
4186
  rs_uniffiOutReturn, uniffi_call_status);
4017
4187
  }
4018
4188
 
4019
- [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
4020
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
4189
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
4190
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
4021
4191
  jsi::Runtime &rt,
4022
4192
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
4023
4193
  const jsi::Value &value) {
@@ -4063,11 +4233,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
4063
4233
  // then the pointer will no longer be left dangling.
4064
4234
  rsLambda = nullptr;
4065
4235
  }
4066
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
4067
- // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod8 for vtable field sync in VTableCallbackInterfaceCustomOnchainWalletCallbacks
4236
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
4237
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod9 for vtable field sync in VTableCallbackInterfaceCustomOnchainWalletCallbacks
4068
4238
 
4069
4239
 
4070
- // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
4240
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9
4071
4241
  //
4072
4242
  // We have the following constraints:
4073
4243
  // - we need to pass a function pointer to Rust.
@@ -4079,7 +4249,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
4079
4249
  //
4080
4250
  // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
4081
4251
  // future.
4082
- namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks {
4252
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks {
4083
4253
  using namespace facebook;
4084
4254
 
4085
4255
  // We need to store a lambda in a global so we can call it from
@@ -4117,7 +4287,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
4117
4287
 
4118
4288
 
4119
4289
  } catch (const jsi::JSError &error) {
4120
- std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8: "
4290
+ std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9: "
4121
4291
  << error.what() << std::endl;
4122
4292
  throw error;
4123
4293
  }
@@ -4144,8 +4314,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
4144
4314
  rs_uniffiOutReturn, uniffi_call_status);
4145
4315
  }
4146
4316
 
4147
- [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
4148
- makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
4317
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9
4318
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks
4149
4319
  jsi::Runtime &rt,
4150
4320
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
4151
4321
  const jsi::Value &value) {
@@ -4189,7 +4359,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
4189
4359
  // then the pointer will no longer be left dangling.
4190
4360
  rsLambda = nullptr;
4191
4361
  }
4192
- } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
4362
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks
4193
4363
  namespace uniffi::bark {
4194
4364
  using namespace facebook;
4195
4365
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
@@ -4235,13 +4405,16 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceCustomOnchainWalletCall
4235
4405
  rsObject.register_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
4236
4406
  rt, callInvoker, jsObject.getProperty(rt, "registerTx")
4237
4407
  );
4238
- rsObject.make_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
4408
+ rsObject.evict_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
4409
+ rt, callInvoker, jsObject.getProperty(rt, "evictTx")
4410
+ );
4411
+ rsObject.make_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
4239
4412
  rt, callInvoker, jsObject.getProperty(rt, "makeSignedP2aCpfp")
4240
4413
  );
4241
- rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
4414
+ rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
4242
4415
  rt, callInvoker, jsObject.getProperty(rt, "storeSignedP2aCpfp")
4243
4416
  );
4244
- rsObject.sync = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
4417
+ rsObject.sync = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
4245
4418
  rt, callInvoker, jsObject.getProperty(rt, "sync")
4246
4419
  );
4247
4420
 
@@ -4712,6 +4885,14 @@ NativeBark::NativeBark(
4712
4885
  return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx(rt, thisVal, args, count);
4713
4886
  }
4714
4887
  );
4888
+ props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx"] = jsi::Function::createFromHostFunction(
4889
+ rt,
4890
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx"),
4891
+ 2,
4892
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4893
+ return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx(rt, thisVal, args, count);
4894
+ }
4895
+ );
4715
4896
  props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
4716
4897
  rt,
4717
4898
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"),
@@ -4808,6 +4989,14 @@ NativeBark::NativeBark(
4808
4989
  return this->cpp_uniffi_bark_ffi_fn_method_onchainwallet_balance(rt, thisVal, args, count);
4809
4990
  }
4810
4991
  );
4992
+ props["ubrn_uniffi_bark_ffi_fn_method_onchainwallet_evict_tx"] = jsi::Function::createFromHostFunction(
4993
+ rt,
4994
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_onchainwallet_evict_tx"),
4995
+ 2,
4996
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4997
+ return this->cpp_uniffi_bark_ffi_fn_method_onchainwallet_evict_tx(rt, thisVal, args, count);
4998
+ }
4999
+ );
4811
5000
  props["ubrn_uniffi_bark_ffi_fn_method_onchainwallet_fee_rates"] = jsi::Function::createFromHostFunction(
4812
5001
  rt,
4813
5002
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_onchainwallet_fee_rates"),
@@ -5080,6 +5269,14 @@ NativeBark::NativeBark(
5080
5269
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(rt, thisVal, args, count);
5081
5270
  }
5082
5271
  );
5272
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee"] = jsi::Function::createFromHostFunction(
5273
+ rt,
5274
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee"),
5275
+ 4,
5276
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5277
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee(rt, thisVal, args, count);
5278
+ }
5279
+ );
5083
5280
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee"] = jsi::Function::createFromHostFunction(
5084
5281
  rt,
5085
5282
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee"),
@@ -5504,6 +5701,14 @@ NativeBark::NativeBark(
5504
5701
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_recovery_report(rt, thisVal, args, count);
5505
5702
  }
5506
5703
  );
5704
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_status"] = jsi::Function::createFromHostFunction(
5705
+ rt,
5706
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_status"),
5707
+ 1,
5708
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5709
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_recovery_status(rt, thisVal, args, count);
5710
+ }
5711
+ );
5507
5712
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server"] = jsi::Function::createFromHostFunction(
5508
5713
  rt,
5509
5714
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server"),
@@ -5608,6 +5813,14 @@ NativeBark::NativeBark(
5608
5813
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(rt, thisVal, args, count);
5609
5814
  }
5610
5815
  );
5816
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait"] = jsi::Function::createFromHostFunction(
5817
+ rt,
5818
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait"),
5819
+ 1,
5820
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5821
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(rt, thisVal, args, count);
5822
+ }
5823
+ );
5611
5824
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends"] = jsi::Function::createFromHostFunction(
5612
5825
  rt,
5613
5826
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends"),
@@ -6240,6 +6453,14 @@ NativeBark::NativeBark(
6240
6453
  return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx(rt, thisVal, args, count);
6241
6454
  }
6242
6455
  );
6456
+ props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx"] = jsi::Function::createFromHostFunction(
6457
+ rt,
6458
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx"),
6459
+ 0,
6460
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6461
+ return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx(rt, thisVal, args, count);
6462
+ }
6463
+ );
6243
6464
  props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
6244
6465
  rt,
6245
6466
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"),
@@ -6280,6 +6501,14 @@ NativeBark::NativeBark(
6280
6501
  return this->cpp_uniffi_bark_ffi_checksum_method_onchainwallet_balance(rt, thisVal, args, count);
6281
6502
  }
6282
6503
  );
6504
+ props["ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx"] = jsi::Function::createFromHostFunction(
6505
+ rt,
6506
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx"),
6507
+ 0,
6508
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6509
+ return this->cpp_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx(rt, thisVal, args, count);
6510
+ }
6511
+ );
6283
6512
  props["ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates"] = jsi::Function::createFromHostFunction(
6284
6513
  rt,
6285
6514
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates"),
@@ -6528,6 +6757,14 @@ NativeBark::NativeBark(
6528
6757
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(rt, thisVal, args, count);
6529
6758
  }
6530
6759
  );
6760
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee"] = jsi::Function::createFromHostFunction(
6761
+ rt,
6762
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee"),
6763
+ 0,
6764
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6765
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee(rt, thisVal, args, count);
6766
+ }
6767
+ );
6531
6768
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"] = jsi::Function::createFromHostFunction(
6532
6769
  rt,
6533
6770
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee"),
@@ -6952,6 +7189,14 @@ NativeBark::NativeBark(
6952
7189
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_report(rt, thisVal, args, count);
6953
7190
  }
6954
7191
  );
7192
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_status"] = jsi::Function::createFromHostFunction(
7193
+ rt,
7194
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_status"),
7195
+ 0,
7196
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
7197
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_status(rt, thisVal, args, count);
7198
+ }
7199
+ );
6955
7200
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server"] = jsi::Function::createFromHostFunction(
6956
7201
  rt,
6957
7202
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server"),
@@ -7056,6 +7301,14 @@ NativeBark::NativeBark(
7056
7301
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(rt, thisVal, args, count);
7057
7302
  }
7058
7303
  );
7304
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait"] = jsi::Function::createFromHostFunction(
7305
+ rt,
7306
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait"),
7307
+ 0,
7308
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
7309
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait(rt, thisVal, args, count);
7310
+ }
7311
+ );
7059
7312
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends"] = jsi::Function::createFromHostFunction(
7060
7313
  rt,
7061
7314
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends"),
@@ -7267,6 +7520,7 @@ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtableca
7267
7520
  uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
7268
7521
  uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
7269
7522
  uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
7523
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
7270
7524
  uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger::cleanup();
7271
7525
  uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger::cleanup();
7272
7526
  }
@@ -7462,6 +7716,16 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallback
7462
7716
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
7463
7717
 
7464
7718
 
7719
+ return jsi::Value::undefined();
7720
+ }
7721
+ 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) {
7722
+ RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
7723
+ 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]),
7724
+ &status
7725
+ );
7726
+ uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
7727
+
7728
+
7465
7729
  return jsi::Value::undefined();
7466
7730
  }
7467
7731
  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) {
@@ -7583,6 +7847,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_onchainwallet_balance(jsi::
7583
7847
  );
7584
7848
 
7585
7849
 
7850
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7851
+ }
7852
+ 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) {
7853
+ 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])
7854
+ );
7855
+
7856
+
7586
7857
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7587
7858
  }
7588
7859
  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) {
@@ -7827,6 +8098,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(j
7827
8098
  );
7828
8099
 
7829
8100
 
8101
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
8102
+ }
8103
+ 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) {
8104
+ 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])
8105
+ );
8106
+
8107
+
7830
8108
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7831
8109
  }
7832
8110
  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) {
@@ -8213,6 +8491,16 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_recovery_report(jsi:
8213
8491
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
8214
8492
 
8215
8493
 
8494
+ return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
8495
+ }
8496
+ 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) {
8497
+ RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
8498
+ auto value = uniffi_bark_ffi_fn_method_wallet_recovery_status(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
8499
+ &status
8500
+ );
8501
+ uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
8502
+
8503
+
8216
8504
  return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
8217
8505
  }
8218
8506
  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) {
@@ -8304,6 +8592,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(jsi::Run
8304
8592
  );
8305
8593
 
8306
8594
 
8595
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
8596
+ }
8597
+ 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) {
8598
+ auto value = uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
8599
+ );
8600
+
8601
+
8307
8602
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
8308
8603
  }
8309
8604
  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) {
@@ -8907,6 +9202,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletca
8907
9202
  );
8908
9203
 
8909
9204
 
9205
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9206
+ }
9207
+ 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) {
9208
+ auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx(
9209
+ );
9210
+
9211
+
8910
9212
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8911
9213
  }
8912
9214
  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) {
@@ -8942,6 +9244,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_onchainwallet_balance
8942
9244
  );
8943
9245
 
8944
9246
 
9247
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9248
+ }
9249
+ 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) {
9250
+ auto value = uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx(
9251
+ );
9252
+
9253
+
8945
9254
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8946
9255
  }
8947
9256
  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) {
@@ -9159,6 +9468,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_estimate_board
9159
9468
  );
9160
9469
 
9161
9470
 
9471
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9472
+ }
9473
+ 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) {
9474
+ auto value = uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee(
9475
+ );
9476
+
9477
+
9162
9478
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9163
9479
  }
9164
9480
  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) {
@@ -9530,6 +9846,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_repor
9530
9846
  );
9531
9847
 
9532
9848
 
9849
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9850
+ }
9851
+ 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) {
9852
+ auto value = uniffi_bark_ffi_checksum_method_wallet_recovery_status(
9853
+ );
9854
+
9855
+
9533
9856
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9534
9857
  }
9535
9858
  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) {
@@ -9621,6 +9944,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(js
9621
9944
  );
9622
9945
 
9623
9946
 
9947
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9948
+ }
9949
+ 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) {
9950
+ auto value = uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait(
9951
+ );
9952
+
9953
+
9624
9954
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9625
9955
  }
9626
9956
  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) {