@secondts/bark-react-native 0.9.0 → 0.11.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.
@@ -185,6 +185,11 @@ extern "C" {
185
185
  void * uniffi_out_return, RustCallStatus* rust_call_status
186
186
  );
187
187
  typedef void
188
+ (*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9)(
189
+ uint64_t uniffi_handle,
190
+ void * uniffi_out_return, RustCallStatus* rust_call_status
191
+ );
192
+ typedef void
188
193
  (*UniffiCallbackInterfaceBarkLoggerMethod0)(
189
194
  uint64_t uniffi_handle,
190
195
  RustBuffer level,
@@ -203,6 +208,7 @@ extern "C" {
203
208
  UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6 get_spending_tx;
204
209
  UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7 make_signed_p2a_cpfp;
205
210
  UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8 store_signed_p2a_cpfp;
211
+ UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9 sync;
206
212
  } UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks;typedef struct UniffiVTableCallbackInterfaceBarkLogger {
207
213
  UniffiCallbackInterfaceFree uniffi_free;
208
214
  UniffiCallbackInterfaceClone uniffi_clone;
@@ -280,6 +286,10 @@ extern "C" {
280
286
  RustBuffer tx_hex,
281
287
  RustCallStatus *uniffi_out_err
282
288
  );
289
+ void uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync(
290
+ /*handle*/ uint64_t ptr,
291
+ RustCallStatus *uniffi_out_err
292
+ );
283
293
  /*handle*/ uint64_t uniffi_bark_ffi_fn_clone_barklogger(
284
294
  /*handle*/ uint64_t handle,
285
295
  RustCallStatus *uniffi_out_err
@@ -311,6 +321,7 @@ extern "C" {
311
321
  RustCallStatus *uniffi_out_err
312
322
  );
313
323
  /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_onchainwallet_default(
324
+ RustBuffer network,
314
325
  RustBuffer mnemonic,
315
326
  RustBuffer config,
316
327
  RustBuffer datadir
@@ -338,35 +349,11 @@ extern "C" {
338
349
  /*handle*/ uint64_t handle,
339
350
  RustCallStatus *uniffi_out_err
340
351
  );
341
- /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_create(
342
- RustBuffer mnemonic,
343
- RustBuffer config,
344
- RustBuffer datadir,
345
- int8_t force_rescan
346
- );
347
- /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(
348
- RustBuffer mnemonic,
349
- RustBuffer config,
350
- RustBuffer datadir,
351
- /*handle*/ uint64_t onchain_wallet,
352
- int8_t force_rescan
353
- );
354
352
  /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_open(
355
- RustBuffer mnemonic,
353
+ RustBuffer network,
354
+ RustBuffer mnemonic_or_seed,
356
355
  RustBuffer config,
357
- RustBuffer datadir
358
- );
359
- /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon(
360
- RustBuffer mnemonic,
361
- RustBuffer config,
362
- RustBuffer datadir,
363
- RustBuffer onchain_wallet
364
- );
365
- /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(
366
- RustBuffer mnemonic,
367
- RustBuffer config,
368
- RustBuffer datadir,
369
- /*handle*/ uint64_t onchain_wallet
356
+ RustBuffer args
370
357
  );
371
358
  /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(
372
359
  /*handle*/ uint64_t ptr
@@ -553,9 +540,6 @@ extern "C" {
553
540
  /*handle*/ uint64_t ptr,
554
541
  /*handle*/ uint64_t onchain_wallet
555
542
  );
556
- /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(
557
- /*handle*/ uint64_t ptr
558
- );
559
543
  /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_network(
560
544
  /*handle*/ uint64_t ptr
561
545
  );
@@ -600,6 +584,13 @@ extern "C" {
600
584
  RustBuffer amount_sats,
601
585
  int8_t wait
602
586
  );
587
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_pay_lnurl(
588
+ /*handle*/ uint64_t ptr,
589
+ RustBuffer lnurl,
590
+ uint64_t amount_sats,
591
+ RustBuffer comment,
592
+ int8_t wait
593
+ );
603
594
  /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_peek_address(
604
595
  /*handle*/ uint64_t ptr,
605
596
  uint32_t index
@@ -691,6 +682,9 @@ extern "C" {
691
682
  /*handle*/ uint64_t ptr,
692
683
  /*handle*/ uint64_t onchain_wallet
693
684
  );
685
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos(
686
+ /*handle*/ uint64_t ptr
687
+ );
694
688
  /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(
695
689
  /*handle*/ uint64_t ptr
696
690
  );
@@ -729,6 +723,13 @@ extern "C" {
729
723
  RustBuffer max_level,
730
724
  RustCallStatus *uniffi_out_err
731
725
  );
726
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_func_init_wallet(
727
+ RustBuffer network,
728
+ RustBuffer mnemonic_or_seed,
729
+ RustBuffer config,
730
+ RustBuffer datadir,
731
+ int8_t allow_unreachable_server
732
+ );
732
733
  RustBuffer ffi_bark_ffi_rustbuffer_alloc(
733
734
  uint64_t size,
734
735
  RustCallStatus *uniffi_out_err
@@ -936,6 +937,8 @@ extern "C" {
936
937
  );
937
938
  uint16_t uniffi_bark_ffi_checksum_func_set_logger(
938
939
  );
940
+ uint16_t uniffi_bark_ffi_checksum_func_init_wallet(
941
+ );
939
942
  uint16_t uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait(
940
943
  );
941
944
  uint16_t uniffi_bark_ffi_checksum_method_notificationholder_next_notification(
@@ -958,6 +961,8 @@ extern "C" {
958
961
  );
959
962
  uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
960
963
  );
964
+ uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync(
965
+ );
961
966
  uint16_t uniffi_bark_ffi_checksum_method_barklogger_log(
962
967
  );
963
968
  uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_balance(
@@ -1064,8 +1069,6 @@ extern "C" {
1064
1069
  );
1065
1070
  uint16_t uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated(
1066
1071
  );
1067
- uint16_t uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh(
1068
- );
1069
1072
  uint16_t uniffi_bark_ffi_checksum_method_wallet_network(
1070
1073
  );
1071
1074
  uint16_t uniffi_bark_ffi_checksum_method_wallet_new_address(
@@ -1086,6 +1089,8 @@ extern "C" {
1086
1089
  );
1087
1090
  uint16_t uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer(
1088
1091
  );
1092
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_pay_lnurl(
1093
+ );
1089
1094
  uint16_t uniffi_bark_ffi_checksum_method_wallet_peek_address(
1090
1095
  );
1091
1096
  uint16_t uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos(
@@ -1138,6 +1143,8 @@ extern "C" {
1138
1143
  );
1139
1144
  uint16_t uniffi_bark_ffi_checksum_method_wallet_sync_exits(
1140
1145
  );
1146
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos(
1147
+ );
1141
1148
  uint16_t uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards(
1142
1149
  );
1143
1150
  uint16_t uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives(
@@ -1152,16 +1159,8 @@ extern "C" {
1152
1159
  );
1153
1160
  uint16_t uniffi_bark_ffi_checksum_constructor_onchainwallet_default(
1154
1161
  );
1155
- uint16_t uniffi_bark_ffi_checksum_constructor_wallet_create(
1156
- );
1157
- uint16_t uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain(
1158
- );
1159
1162
  uint16_t uniffi_bark_ffi_checksum_constructor_wallet_open(
1160
1163
  );
1161
- uint16_t uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon(
1162
- );
1163
- uint16_t uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain(
1164
- );
1165
1164
  uint32_t ffi_bark_ffi_uniffi_contract_version(
1166
1165
  );
1167
1166
  }
@@ -4143,6 +4142,132 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
4143
4142
  rsLambda = nullptr;
4144
4143
  }
4145
4144
  } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
4145
+ // Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod9 for vtable field sync in VTableCallbackInterfaceCustomOnchainWalletCallbacks
4146
+
4147
+
4148
+ // Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9
4149
+ //
4150
+ // We have the following constraints:
4151
+ // - we need to pass a function pointer to Rust.
4152
+ // - we need a jsi::Runtime and jsi::Function to call into JS.
4153
+ // - function pointers can't store state, so we can't use a lamda.
4154
+ //
4155
+ // For this, we store a lambda as a global, as `rsLambda`. The `callback` function calls
4156
+ // the lambda, which itself calls the `body` which then calls into JS.
4157
+ //
4158
+ // We then give the `callback` function pointer to Rust which will call the lambda sometime in the
4159
+ // future.
4160
+ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks {
4161
+ using namespace facebook;
4162
+
4163
+ // We need to store a lambda in a global so we can call it from
4164
+ // a function pointer. The function pointer is passed to Rust.
4165
+ static std::function<void(uint64_t, void *, RustCallStatus*)> rsLambda = nullptr;
4166
+
4167
+ // This is the main body of the callback. It's called from the lambda,
4168
+ // which itself is called from the callback function which is passed to Rust.
4169
+ static void body(jsi::Runtime &rt,
4170
+ std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
4171
+ std::shared_ptr<jsi::Value> callbackValue
4172
+ ,uint64_t rs_uniffiHandle
4173
+ ,void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
4174
+
4175
+ // Convert the arguments from Rust, into jsi::Values.
4176
+ // We'll use the Bridging class to do this…
4177
+ auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
4178
+
4179
+ // Now we are ready to call the callback.
4180
+ // We are already on the JS thread, because this `body` function was
4181
+ // invoked from the CallInvoker.
4182
+ try {
4183
+ // Getting the callback function
4184
+ auto cb = callbackValue->asObject(rt).asFunction(rt);
4185
+ auto uniffiResult = cb.call(rt, js_uniffiHandle
4186
+ );
4187
+
4188
+ // Now copy the result back from JS into the RustCallStatus object.
4189
+ uniffi::bark::Bridging<RustCallStatus>::copyFromJs(rt, callInvoker, uniffiResult, uniffi_call_status);
4190
+
4191
+ if (uniffi_call_status->code != UNIFFI_CALL_STATUS_OK) {
4192
+ // The JS callback finished abnormally, so we cannot retrieve the return value.
4193
+ return;
4194
+ }
4195
+
4196
+
4197
+ } catch (const jsi::JSError &error) {
4198
+ std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9: "
4199
+ << error.what() << std::endl;
4200
+ throw error;
4201
+ }
4202
+ }
4203
+
4204
+ static void callback(uint64_t rs_uniffiHandle, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
4205
+ // If the runtime has shutdown, then there is no point in trying to
4206
+ // call into Javascript. BUT how do we tell if the runtime has shutdown?
4207
+ //
4208
+ // Answer: the module destructor calls into callback `cleanup` method,
4209
+ // which nulls out the rsLamda.
4210
+ //
4211
+ // If rsLamda is null, then there is no runtime to call into.
4212
+ if (rsLambda == nullptr) {
4213
+ // This only occurs when destructors are calling into Rust free/drop,
4214
+ // which causes the JS callback to be dropped.
4215
+ return;
4216
+ }
4217
+
4218
+ // The runtime, the actual callback jsi::funtion, and the callInvoker
4219
+ // are all in the lambda.
4220
+ rsLambda(
4221
+ rs_uniffiHandle,
4222
+ rs_uniffiOutReturn, uniffi_call_status);
4223
+ }
4224
+
4225
+ [[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9
4226
+ makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks
4227
+ jsi::Runtime &rt,
4228
+ std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
4229
+ const jsi::Value &value) {
4230
+ if (rsLambda != nullptr) {
4231
+ // `makeCallbackFunction` is called in two circumstances:
4232
+ //
4233
+ // 1. at startup, when initializing callback interface vtables.
4234
+ // 2. when polling futures. This happens at least once per future that is
4235
+ // exposed to Javascript. We know that this is always the same function,
4236
+ // `uniffiFutureContinuationCallback` in `async-rust-calls.ts`.
4237
+ //
4238
+ // We can therefore return the callback function without making anything
4239
+ // new if we've been initialized already.
4240
+ return callback;
4241
+ }
4242
+ auto callbackFunction = value.asObject(rt).asFunction(rt);
4243
+ auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
4244
+ rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
4245
+ // We immediately make a lambda which will do the work of transforming the
4246
+ // arguments into JSI values and calling the callback.
4247
+ uniffi_runtime::UniffiCallFunc jsLambda = [
4248
+ callInvoker,
4249
+ callbackValue
4250
+ , rs_uniffiHandle
4251
+ , rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
4252
+ body(rt, callInvoker, callbackValue
4253
+ , rs_uniffiHandle
4254
+ , rs_uniffiOutReturn, uniffi_call_status);
4255
+ };
4256
+ // We'll then call that lambda from the callInvoker which will
4257
+ // look after calling it on the correct thread.
4258
+ callInvoker->invokeBlocking(rt, jsLambda);
4259
+ };
4260
+ return callback;
4261
+ }
4262
+
4263
+ // This method is called from the destructor of NativeBark, which only happens
4264
+ // when the jsi::Runtime is being destroyed.
4265
+ static void cleanup() {
4266
+ // The lambda holds a reference to the the Runtime, so when this is nulled out,
4267
+ // then the pointer will no longer be left dangling.
4268
+ rsLambda = nullptr;
4269
+ }
4270
+ } // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks
4146
4271
  namespace uniffi::bark {
4147
4272
  using namespace facebook;
4148
4273
  using CallInvoker = uniffi_runtime::UniffiCallInvoker;
@@ -4197,6 +4322,9 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceCustomOnchainWalletCall
4197
4322
  rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
4198
4323
  rt, callInvoker, jsObject.getProperty(rt, "storeSignedP2aCpfp")
4199
4324
  );
4325
+ rsObject.sync = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
4326
+ rt, callInvoker, jsObject.getProperty(rt, "sync")
4327
+ );
4200
4328
 
4201
4329
  return rsObject;
4202
4330
  }
@@ -4689,6 +4817,14 @@ NativeBark::NativeBark(
4689
4817
  return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(rt, thisVal, args, count);
4690
4818
  }
4691
4819
  );
4820
+ props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync"] = jsi::Function::createFromHostFunction(
4821
+ rt,
4822
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync"),
4823
+ 1,
4824
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4825
+ return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync(rt, thisVal, args, count);
4826
+ }
4827
+ );
4692
4828
  props["ubrn_uniffi_bark_ffi_fn_clone_barklogger"] = jsi::Function::createFromHostFunction(
4693
4829
  rt,
4694
4830
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_clone_barklogger"),
@@ -4748,7 +4884,7 @@ NativeBark::NativeBark(
4748
4884
  props["ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default"] = jsi::Function::createFromHostFunction(
4749
4885
  rt,
4750
4886
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default"),
4751
- 3,
4887
+ 4,
4752
4888
  [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4753
4889
  return this->cpp_uniffi_bark_ffi_fn_constructor_onchainwallet_default(rt, thisVal, args, count);
4754
4890
  }
@@ -4801,44 +4937,12 @@ NativeBark::NativeBark(
4801
4937
  return this->cpp_uniffi_bark_ffi_fn_free_wallet(rt, thisVal, args, count);
4802
4938
  }
4803
4939
  );
4804
- props["ubrn_uniffi_bark_ffi_fn_constructor_wallet_create"] = jsi::Function::createFromHostFunction(
4805
- rt,
4806
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_constructor_wallet_create"),
4807
- 4,
4808
- [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4809
- return this->cpp_uniffi_bark_ffi_fn_constructor_wallet_create(rt, thisVal, args, count);
4810
- }
4811
- );
4812
- props["ubrn_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain"] = jsi::Function::createFromHostFunction(
4813
- rt,
4814
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain"),
4815
- 5,
4816
- [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4817
- return this->cpp_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(rt, thisVal, args, count);
4818
- }
4819
- );
4820
4940
  props["ubrn_uniffi_bark_ffi_fn_constructor_wallet_open"] = jsi::Function::createFromHostFunction(
4821
4941
  rt,
4822
4942
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_constructor_wallet_open"),
4823
- 3,
4824
- [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4825
- return this->cpp_uniffi_bark_ffi_fn_constructor_wallet_open(rt, thisVal, args, count);
4826
- }
4827
- );
4828
- props["ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon"] = jsi::Function::createFromHostFunction(
4829
- rt,
4830
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon"),
4831
- 4,
4832
- [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4833
- return this->cpp_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon(rt, thisVal, args, count);
4834
- }
4835
- );
4836
- props["ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain"] = jsi::Function::createFromHostFunction(
4837
- rt,
4838
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain"),
4839
4943
  4,
4840
4944
  [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4841
- return this->cpp_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(rt, thisVal, args, count);
4945
+ return this->cpp_uniffi_bark_ffi_fn_constructor_wallet_open(rt, thisVal, args, count);
4842
4946
  }
4843
4947
  );
4844
4948
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height"] = jsi::Function::createFromHostFunction(
@@ -5225,14 +5329,6 @@ NativeBark::NativeBark(
5225
5329
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(rt, thisVal, args, count);
5226
5330
  }
5227
5331
  );
5228
- props["ubrn_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh"] = jsi::Function::createFromHostFunction(
5229
- rt,
5230
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh"),
5231
- 1,
5232
- [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5233
- return this->cpp_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(rt, thisVal, args, count);
5234
- }
5235
- );
5236
5332
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_network"] = jsi::Function::createFromHostFunction(
5237
5333
  rt,
5238
5334
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_network"),
@@ -5313,6 +5409,14 @@ NativeBark::NativeBark(
5313
5409
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(rt, thisVal, args, count);
5314
5410
  }
5315
5411
  );
5412
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lnurl"] = jsi::Function::createFromHostFunction(
5413
+ rt,
5414
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lnurl"),
5415
+ 5,
5416
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5417
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_pay_lnurl(rt, thisVal, args, count);
5418
+ }
5419
+ );
5316
5420
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address"] = jsi::Function::createFromHostFunction(
5317
5421
  rt,
5318
5422
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address"),
@@ -5521,6 +5625,14 @@ NativeBark::NativeBark(
5521
5625
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_sync_exits(rt, thisVal, args, count);
5522
5626
  }
5523
5627
  );
5628
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos"] = jsi::Function::createFromHostFunction(
5629
+ rt,
5630
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos"),
5631
+ 1,
5632
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5633
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos(rt, thisVal, args, count);
5634
+ }
5635
+ );
5524
5636
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards"] = jsi::Function::createFromHostFunction(
5525
5637
  rt,
5526
5638
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards"),
@@ -5601,6 +5713,14 @@ NativeBark::NativeBark(
5601
5713
  return this->cpp_uniffi_bark_ffi_fn_func_set_logger(rt, thisVal, args, count);
5602
5714
  }
5603
5715
  );
5716
+ props["ubrn_uniffi_bark_ffi_fn_func_init_wallet"] = jsi::Function::createFromHostFunction(
5717
+ rt,
5718
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_func_init_wallet"),
5719
+ 5,
5720
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5721
+ return this->cpp_uniffi_bark_ffi_fn_func_init_wallet(rt, thisVal, args, count);
5722
+ }
5723
+ );
5604
5724
  props["ubrn_ffi_bark_ffi_rust_future_poll_u8"] = jsi::Function::createFromHostFunction(
5605
5725
  rt,
5606
5726
  jsi::PropNameID::forAscii(rt, "ubrn_ffi_bark_ffi_rust_future_poll_u8"),
@@ -6025,6 +6145,14 @@ NativeBark::NativeBark(
6025
6145
  return this->cpp_uniffi_bark_ffi_checksum_func_set_logger(rt, thisVal, args, count);
6026
6146
  }
6027
6147
  );
6148
+ props["ubrn_uniffi_bark_ffi_checksum_func_init_wallet"] = jsi::Function::createFromHostFunction(
6149
+ rt,
6150
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_func_init_wallet"),
6151
+ 0,
6152
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6153
+ return this->cpp_uniffi_bark_ffi_checksum_func_init_wallet(rt, thisVal, args, count);
6154
+ }
6155
+ );
6028
6156
  props["ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait"] = jsi::Function::createFromHostFunction(
6029
6157
  rt,
6030
6158
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait"),
@@ -6113,6 +6241,14 @@ NativeBark::NativeBark(
6113
6241
  return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(rt, thisVal, args, count);
6114
6242
  }
6115
6243
  );
6244
+ props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync"] = jsi::Function::createFromHostFunction(
6245
+ rt,
6246
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync"),
6247
+ 0,
6248
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6249
+ return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync(rt, thisVal, args, count);
6250
+ }
6251
+ );
6116
6252
  props["ubrn_uniffi_bark_ffi_checksum_method_barklogger_log"] = jsi::Function::createFromHostFunction(
6117
6253
  rt,
6118
6254
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_barklogger_log"),
@@ -6537,14 +6673,6 @@ NativeBark::NativeBark(
6537
6673
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated(rt, thisVal, args, count);
6538
6674
  }
6539
6675
  );
6540
- props["ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh"] = jsi::Function::createFromHostFunction(
6541
- rt,
6542
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh"),
6543
- 0,
6544
- [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6545
- return this->cpp_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh(rt, thisVal, args, count);
6546
- }
6547
- );
6548
6676
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_network"] = jsi::Function::createFromHostFunction(
6549
6677
  rt,
6550
6678
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_network"),
@@ -6625,6 +6753,14 @@ NativeBark::NativeBark(
6625
6753
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer(rt, thisVal, args, count);
6626
6754
  }
6627
6755
  );
6756
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lnurl"] = jsi::Function::createFromHostFunction(
6757
+ rt,
6758
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lnurl"),
6759
+ 0,
6760
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6761
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_pay_lnurl(rt, thisVal, args, count);
6762
+ }
6763
+ );
6628
6764
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address"] = jsi::Function::createFromHostFunction(
6629
6765
  rt,
6630
6766
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address"),
@@ -6833,6 +6969,14 @@ NativeBark::NativeBark(
6833
6969
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_sync_exits(rt, thisVal, args, count);
6834
6970
  }
6835
6971
  );
6972
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos"] = jsi::Function::createFromHostFunction(
6973
+ rt,
6974
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos"),
6975
+ 0,
6976
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6977
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos(rt, thisVal, args, count);
6978
+ }
6979
+ );
6836
6980
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards"] = jsi::Function::createFromHostFunction(
6837
6981
  rt,
6838
6982
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards"),
@@ -6889,22 +7033,6 @@ NativeBark::NativeBark(
6889
7033
  return this->cpp_uniffi_bark_ffi_checksum_constructor_onchainwallet_default(rt, thisVal, args, count);
6890
7034
  }
6891
7035
  );
6892
- props["ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create"] = jsi::Function::createFromHostFunction(
6893
- rt,
6894
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create"),
6895
- 0,
6896
- [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6897
- return this->cpp_uniffi_bark_ffi_checksum_constructor_wallet_create(rt, thisVal, args, count);
6898
- }
6899
- );
6900
- props["ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain"] = jsi::Function::createFromHostFunction(
6901
- rt,
6902
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain"),
6903
- 0,
6904
- [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6905
- return this->cpp_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain(rt, thisVal, args, count);
6906
- }
6907
- );
6908
7036
  props["ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open"] = jsi::Function::createFromHostFunction(
6909
7037
  rt,
6910
7038
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open"),
@@ -6913,22 +7041,6 @@ NativeBark::NativeBark(
6913
7041
  return this->cpp_uniffi_bark_ffi_checksum_constructor_wallet_open(rt, thisVal, args, count);
6914
7042
  }
6915
7043
  );
6916
- props["ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon"] = jsi::Function::createFromHostFunction(
6917
- rt,
6918
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon"),
6919
- 0,
6920
- [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6921
- return this->cpp_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon(rt, thisVal, args, count);
6922
- }
6923
- );
6924
- props["ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain"] = jsi::Function::createFromHostFunction(
6925
- rt,
6926
- jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain"),
6927
- 0,
6928
- [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6929
- return this->cpp_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain(rt, thisVal, args, count);
6930
- }
6931
- );
6932
7044
  props["ubrn_ffi_bark_ffi_uniffi_contract_version"] = jsi::Function::createFromHostFunction(
6933
7045
  rt,
6934
7046
  jsi::PropNameID::forAscii(rt, "ubrn_ffi_bark_ffi_uniffi_contract_version"),
@@ -7028,6 +7140,7 @@ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtableca
7028
7140
  uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
7029
7141
  uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
7030
7142
  uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
7143
+ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
7031
7144
  uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger::cleanup();
7032
7145
  uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger::cleanup();
7033
7146
  }
@@ -7253,6 +7366,16 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallback
7253
7366
  uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
7254
7367
 
7255
7368
 
7369
+ return jsi::Value::undefined();
7370
+ }
7371
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7372
+ RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
7373
+ uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
7374
+ &status
7375
+ );
7376
+ uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
7377
+
7378
+
7256
7379
  return jsi::Value::undefined();
7257
7380
  }
7258
7381
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_clone_barklogger(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -7333,7 +7456,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(j
7333
7456
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7334
7457
  }
7335
7458
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_onchainwallet_default(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7336
- auto value = uniffi_bark_ffi_fn_constructor_onchainwallet_default(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2])
7459
+ auto value = uniffi_bark_ffi_fn_constructor_onchainwallet_default(uniffi::bark::Bridging<RustBuffer>::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])
7337
7460
  );
7338
7461
 
7339
7462
 
@@ -7387,36 +7510,8 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_free_wallet(jsi::Runtime& rt, cons
7387
7510
 
7388
7511
  return jsi::Value::undefined();
7389
7512
  }
7390
- jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_create(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7391
- auto value = uniffi_bark_ffi_fn_constructor_wallet_create(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[3])
7392
- );
7393
-
7394
-
7395
- return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7396
- }
7397
- jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7398
- auto value = uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[3]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[4])
7399
- );
7400
-
7401
-
7402
- return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7403
- }
7404
7513
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_open(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7405
- auto value = uniffi_bark_ffi_fn_constructor_wallet_open(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2])
7406
- );
7407
-
7408
-
7409
- return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7410
- }
7411
- jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7412
- auto value = uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon(uniffi::bark::Bridging<RustBuffer>::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])
7413
- );
7414
-
7415
-
7416
- return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7417
- }
7418
- jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7419
- auto value = uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[3])
7514
+ auto value = uniffi_bark_ffi_fn_constructor_wallet_open(uniffi::bark::Bridging<RustBuffer>::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])
7420
7515
  );
7421
7516
 
7422
7517
 
@@ -7765,13 +7860,6 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onc
7765
7860
  );
7766
7861
 
7767
7862
 
7768
- return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7769
- }
7770
- jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7771
- auto value = uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
7772
- );
7773
-
7774
-
7775
7863
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7776
7864
  }
7777
7865
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -7845,6 +7933,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(
7845
7933
  );
7846
7934
 
7847
7935
 
7936
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7937
+ }
7938
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lnurl(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7939
+ auto value = uniffi_bark_ffi_fn_method_wallet_pay_lnurl(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[4])
7940
+ );
7941
+
7942
+
7848
7943
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7849
7944
  }
7850
7945
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_peek_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -8027,6 +8122,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync_exits(jsi::Runt
8027
8122
  );
8028
8123
 
8029
8124
 
8125
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
8126
+ }
8127
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
8128
+ auto value = uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
8129
+ );
8130
+
8131
+
8030
8132
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
8031
8133
  }
8032
8134
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -8113,6 +8215,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_set_logger(jsi::Runtime& rt,
8113
8215
 
8114
8216
  return jsi::Value::undefined();
8115
8217
  }
8218
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_init_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
8219
+ auto value = uniffi_bark_ffi_fn_func_init_wallet(uniffi::bark::Bridging<RustBuffer>::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]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[4])
8220
+ );
8221
+
8222
+
8223
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
8224
+ }
8116
8225
  jsi::Value NativeBark::cpp_ffi_bark_ffi_rust_future_poll_u8(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
8117
8226
  ffi_bark_ffi_rust_future_poll_u8(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<UniffiRustFutureContinuationCallback>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[2])
8118
8227
  );
@@ -8518,6 +8627,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_set_logger(jsi::Runtime
8518
8627
  );
8519
8628
 
8520
8629
 
8630
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8631
+ }
8632
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_init_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
8633
+ auto value = uniffi_bark_ffi_checksum_func_init_wallet(
8634
+ );
8635
+
8636
+
8521
8637
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8522
8638
  }
8523
8639
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -8595,6 +8711,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletca
8595
8711
  );
8596
8712
 
8597
8713
 
8714
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8715
+ }
8716
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
8717
+ auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync(
8718
+ );
8719
+
8720
+
8598
8721
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8599
8722
  }
8600
8723
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_barklogger_log(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -8966,13 +9089,6 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_wi
8966
9089
  );
8967
9090
 
8968
9091
 
8969
- return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8970
- }
8971
- jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
8972
- auto value = uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh(
8973
- );
8974
-
8975
-
8976
9092
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8977
9093
  }
8978
9094
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -9043,6 +9159,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_
9043
9159
  );
9044
9160
 
9045
9161
 
9162
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9163
+ }
9164
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_pay_lnurl(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
9165
+ auto value = uniffi_bark_ffi_checksum_method_wallet_pay_lnurl(
9166
+ );
9167
+
9168
+
9046
9169
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9047
9170
  }
9048
9171
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_peek_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -9225,6 +9348,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_sync_exits(jsi
9225
9348
  );
9226
9349
 
9227
9350
 
9351
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9352
+ }
9353
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
9354
+ auto value = uniffi_bark_ffi_checksum_method_wallet_sync_force_exited_vtxos(
9355
+ );
9356
+
9357
+
9228
9358
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9229
9359
  }
9230
9360
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -9274,20 +9404,6 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_constructor_onchainwallet_de
9274
9404
  );
9275
9405
 
9276
9406
 
9277
- return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9278
- }
9279
- jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_constructor_wallet_create(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
9280
- auto value = uniffi_bark_ffi_checksum_constructor_wallet_create(
9281
- );
9282
-
9283
-
9284
- return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9285
- }
9286
- jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
9287
- auto value = uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain(
9288
- );
9289
-
9290
-
9291
9407
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9292
9408
  }
9293
9409
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_constructor_wallet_open(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -9295,20 +9411,6 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_constructor_wallet_open(jsi:
9295
9411
  );
9296
9412
 
9297
9413
 
9298
- return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9299
- }
9300
- jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
9301
- auto value = uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon(
9302
- );
9303
-
9304
-
9305
- return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9306
- }
9307
- jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
9308
- auto value = uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain(
9309
- );
9310
-
9311
-
9312
9414
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
9313
9415
  }
9314
9416
  jsi::Value NativeBark::cpp_ffi_bark_ffi_uniffi_contract_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {