@secondts/bark-react-native 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -60,7 +60,7 @@ npx expo install @secondts/bark-react-native@beta
60
60
 
61
61
  ```bash
62
62
  # Or install a specific beta version
63
- npx expo install @secondts/bark-react-native@0.4.1
63
+ npx expo install @secondts/bark-react-native@0.4.2
64
64
  ```
65
65
 
66
66
  For bare React Native projects, use:
@@ -269,6 +269,12 @@ extern "C" {
269
269
  RustBuffer config,
270
270
  RustBuffer datadir
271
271
  );
272
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon(
273
+ RustBuffer mnemonic,
274
+ RustBuffer config,
275
+ RustBuffer datadir,
276
+ RustBuffer onchain_wallet
277
+ );
272
278
  /*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(
273
279
  RustBuffer mnemonic,
274
280
  RustBuffer config,
@@ -541,6 +547,10 @@ extern "C" {
541
547
  /*handle*/ uint64_t ptr,
542
548
  RustBuffer vtxo_ids
543
549
  );
550
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_run_daemon(
551
+ /*handle*/ uint64_t ptr,
552
+ RustBuffer onchain_wallet
553
+ );
544
554
  /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(
545
555
  /*handle*/ uint64_t ptr,
546
556
  RustBuffer ark_address,
@@ -565,6 +575,9 @@ extern "C" {
565
575
  /*handle*/ uint64_t ptr,
566
576
  RustBuffer vtxo_ids
567
577
  );
578
+ /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_stop_daemon(
579
+ /*handle*/ uint64_t ptr
580
+ );
568
581
  /*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_sync(
569
582
  /*handle*/ uint64_t ptr
570
583
  );
@@ -967,6 +980,8 @@ extern "C" {
967
980
  );
968
981
  uint16_t uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated(
969
982
  );
983
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_run_daemon(
984
+ );
970
985
  uint16_t uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment(
971
986
  );
972
987
  uint16_t uniffi_bark_ffi_checksum_method_wallet_send_onchain(
@@ -979,6 +994,8 @@ extern "C" {
979
994
  );
980
995
  uint16_t uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos(
981
996
  );
997
+ uint16_t uniffi_bark_ffi_checksum_method_wallet_stop_daemon(
998
+ );
982
999
  uint16_t uniffi_bark_ffi_checksum_method_wallet_sync(
983
1000
  );
984
1001
  uint16_t uniffi_bark_ffi_checksum_method_wallet_sync_exits(
@@ -1003,6 +1020,8 @@ extern "C" {
1003
1020
  );
1004
1021
  uint16_t uniffi_bark_ffi_checksum_constructor_wallet_open(
1005
1022
  );
1023
+ uint16_t uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon(
1024
+ );
1006
1025
  uint16_t uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain(
1007
1026
  );
1008
1027
  uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(
@@ -4140,6 +4159,14 @@ NativeBark::NativeBark(
4140
4159
  return this->cpp_uniffi_bark_ffi_fn_constructor_wallet_open(rt, thisVal, args, count);
4141
4160
  }
4142
4161
  );
4162
+ props["ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon"] = jsi::Function::createFromHostFunction(
4163
+ rt,
4164
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon"),
4165
+ 4,
4166
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4167
+ return this->cpp_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon(rt, thisVal, args, count);
4168
+ }
4169
+ );
4143
4170
  props["ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain"] = jsi::Function::createFromHostFunction(
4144
4171
  rt,
4145
4172
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain"),
@@ -4716,6 +4743,14 @@ NativeBark::NativeBark(
4716
4743
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(rt, thisVal, args, count);
4717
4744
  }
4718
4745
  );
4746
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon"] = jsi::Function::createFromHostFunction(
4747
+ rt,
4748
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon"),
4749
+ 2,
4750
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4751
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_run_daemon(rt, thisVal, args, count);
4752
+ }
4753
+ );
4719
4754
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment"] = jsi::Function::createFromHostFunction(
4720
4755
  rt,
4721
4756
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment"),
@@ -4764,6 +4799,14 @@ NativeBark::NativeBark(
4764
4799
  return this->cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(rt, thisVal, args, count);
4765
4800
  }
4766
4801
  );
4802
+ props["ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon"] = jsi::Function::createFromHostFunction(
4803
+ rt,
4804
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon"),
4805
+ 1,
4806
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
4807
+ return this->cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(rt, thisVal, args, count);
4808
+ }
4809
+ );
4767
4810
  props["ubrn_uniffi_bark_ffi_fn_method_wallet_sync"] = jsi::Function::createFromHostFunction(
4768
4811
  rt,
4769
4812
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_sync"),
@@ -5892,6 +5935,14 @@ NativeBark::NativeBark(
5892
5935
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated(rt, thisVal, args, count);
5893
5936
  }
5894
5937
  );
5938
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon"] = jsi::Function::createFromHostFunction(
5939
+ rt,
5940
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon"),
5941
+ 0,
5942
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5943
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_run_daemon(rt, thisVal, args, count);
5944
+ }
5945
+ );
5895
5946
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment"] = jsi::Function::createFromHostFunction(
5896
5947
  rt,
5897
5948
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment"),
@@ -5940,6 +5991,14 @@ NativeBark::NativeBark(
5940
5991
  return this->cpp_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos(rt, thisVal, args, count);
5941
5992
  }
5942
5993
  );
5994
+ props["ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon"] = jsi::Function::createFromHostFunction(
5995
+ rt,
5996
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon"),
5997
+ 0,
5998
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
5999
+ return this->cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(rt, thisVal, args, count);
6000
+ }
6001
+ );
5943
6002
  props["ubrn_uniffi_bark_ffi_checksum_method_wallet_sync"] = jsi::Function::createFromHostFunction(
5944
6003
  rt,
5945
6004
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_sync"),
@@ -6036,6 +6095,14 @@ NativeBark::NativeBark(
6036
6095
  return this->cpp_uniffi_bark_ffi_checksum_constructor_wallet_open(rt, thisVal, args, count);
6037
6096
  }
6038
6097
  );
6098
+ props["ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon"] = jsi::Function::createFromHostFunction(
6099
+ rt,
6100
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon"),
6101
+ 0,
6102
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
6103
+ return this->cpp_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon(rt, thisVal, args, count);
6104
+ }
6105
+ );
6039
6106
  props["ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain"] = jsi::Function::createFromHostFunction(
6040
6107
  rt,
6041
6108
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain"),
@@ -6383,6 +6450,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_wallet_open(jsi::Runti
6383
6450
  );
6384
6451
 
6385
6452
 
6453
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
6454
+ }
6455
+ 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) {
6456
+ 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])
6457
+ );
6458
+
6459
+
6386
6460
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
6387
6461
  }
6388
6462
  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) {
@@ -6899,6 +6973,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delega
6899
6973
  );
6900
6974
 
6901
6975
 
6976
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
6977
+ }
6978
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
6979
+ auto value = uniffi_bark_ffi_fn_method_wallet_run_daemon(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
6980
+ );
6981
+
6982
+
6902
6983
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
6903
6984
  }
6904
6985
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -6941,6 +7022,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos
6941
7022
  );
6942
7023
 
6943
7024
 
7025
+ return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
7026
+ }
7027
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
7028
+ auto value = uniffi_bark_ffi_fn_method_wallet_stop_daemon(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
7029
+ );
7030
+
7031
+
6944
7032
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
6945
7033
  }
6946
7034
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -7985,6 +8073,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_
7985
8073
  );
7986
8074
 
7987
8075
 
8076
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8077
+ }
8078
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
8079
+ auto value = uniffi_bark_ffi_checksum_method_wallet_run_daemon(
8080
+ );
8081
+
8082
+
7988
8083
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
7989
8084
  }
7990
8085
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment(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_checksum_method_wallet_start_exit_for
8027
8122
  );
8028
8123
 
8029
8124
 
8125
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8126
+ }
8127
+ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
8128
+ auto value = uniffi_bark_ffi_checksum_method_wallet_stop_daemon(
8129
+ );
8130
+
8131
+
8030
8132
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8031
8133
  }
8032
8134
  jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
@@ -8111,6 +8213,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_constructor_wallet_open(jsi:
8111
8213
  );
8112
8214
 
8113
8215
 
8216
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8217
+ }
8218
+ 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) {
8219
+ auto value = uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon(
8220
+ );
8221
+
8222
+
8114
8223
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
8115
8224
  }
8116
8225
  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) {
@@ -38,6 +38,7 @@ class NativeBark : public jsi::HostObject {
38
38
  jsi::Value cpp_uniffi_bark_ffi_fn_constructor_wallet_create(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
39
39
  jsi::Value cpp_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
40
40
  jsi::Value cpp_uniffi_bark_ffi_fn_constructor_wallet_open(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
41
+ jsi::Value cpp_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
41
42
  jsi::Value cpp_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
42
43
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
43
44
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_all_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -110,12 +111,14 @@ class NativeBark : public jsi::HostObject {
110
111
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
111
112
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
112
113
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
114
+ jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
113
115
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
114
116
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_send_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
115
117
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
116
118
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
117
119
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
118
120
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
121
+ jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
119
122
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
120
123
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_sync_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
121
124
  jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -257,12 +260,14 @@ class NativeBark : public jsi::HostObject {
257
260
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
258
261
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
259
262
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
263
+ jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
260
264
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
261
265
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_send_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
262
266
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
263
267
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
264
268
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
265
269
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
270
+ jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
266
271
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
267
272
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_sync_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
268
273
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -275,6 +280,7 @@ class NativeBark : public jsi::HostObject {
275
280
  jsi::Value cpp_uniffi_bark_ffi_checksum_constructor_wallet_create(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
276
281
  jsi::Value cpp_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
277
282
  jsi::Value cpp_uniffi_bark_ffi_checksum_constructor_wallet_open(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
283
+ jsi::Value cpp_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
278
284
  jsi::Value cpp_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
279
285
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
280
286
  jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AA+oBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAClBL,MAAM,EAErB;AA8JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AA6pBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAClBL,MAAM,EAErB;AA8JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
@@ -2446,6 +2446,28 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
2446
2446
  }
2447
2447
  }
2448
2448
 
2449
+ /**
2450
+ * Open an existing Bark wallet and start running the daemon,
2451
+ * optionally with onchain capabilities.
2452
+ *
2453
+ * The daemon runs in the background and is stopped when the wallet is dropped.
2454
+ * Callback-based onchain wallets are not supported for daemon mode and the
2455
+ * wallet will be opened without onchain capabilities in that case.
2456
+ */
2457
+ static async openWithDaemon(mnemonic, config, datadir, onchainWallet, asyncOpts_) /*throws*/{
2458
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2459
+ try {
2460
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2461
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon(FfiConverterString.lower(mnemonic), FfiConverterTypeConfig.lower(config), FfiConverterString.lower(datadir), FfiConverterOptionalTypeOnchainWallet.lower(onchainWallet));
2462
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_u64, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_u64, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_u64, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_u64, /*liftFunc:*/FfiConverterTypeWallet.lift.bind(FfiConverterTypeWallet), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2463
+ } catch (__error) {
2464
+ if (uniffiIsDebug && __error instanceof Error) {
2465
+ __error.stack = __stack;
2466
+ }
2467
+ throw __error;
2468
+ }
2469
+ }
2470
+
2449
2471
  /**
2450
2472
  * Open an existing Bark wallet WITH onchain capabilities
2451
2473
  */
@@ -3751,6 +3773,29 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3751
3773
  throw __error;
3752
3774
  }
3753
3775
  }
3776
+
3777
+ /**
3778
+ * Start a background daemon for the wallet.
3779
+ *
3780
+ * The daemon performs periodic syncs, exit progression and other
3781
+ * background work. It is stopped automatically when the wallet is dropped.
3782
+ * Callback-based onchain wallets are not supported for daemon mode and the
3783
+ * daemon will run without onchain capabilities in that case.
3784
+ * Calling this multiple times stops the previous daemon and starts a new one.
3785
+ */
3786
+ async runDaemon(onchainWallet, asyncOpts_) /*throws*/{
3787
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3788
+ try {
3789
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3790
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterOptionalTypeOnchainWallet.lower(onchainWallet));
3791
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3792
+ } catch (__error) {
3793
+ if (uniffiIsDebug && __error instanceof Error) {
3794
+ __error.stack = __stack;
3795
+ }
3796
+ throw __error;
3797
+ }
3798
+ }
3754
3799
  async sendArkoorPayment(arkAddress, amountSats, asyncOpts_) /*throws*/{
3755
3800
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3756
3801
  try {
@@ -3857,6 +3902,23 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
3857
3902
  }
3858
3903
  }
3859
3904
 
3905
+ /**
3906
+ * Stop the running daemon if any. No-op otherwise.
3907
+ */
3908
+ async stopDaemon(asyncOpts_) /*throws*/{
3909
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
3910
+ try {
3911
+ return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3912
+ return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon(uniffiTypeWalletObjectFactory.clonePointer(this));
3913
+ }, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
3914
+ } catch (__error) {
3915
+ if (uniffiIsDebug && __error instanceof Error) {
3916
+ __error.stack = __stack;
3917
+ }
3918
+ throw __error;
3919
+ }
3920
+ }
3921
+
3860
3922
  /**
3861
3923
  * Lightweight sync with Ark server and blockchain
3862
3924
  * Note: Bark's sync() handles errors internally with logging.
@@ -4092,6 +4154,9 @@ const FfiConverterArrayString = new _uniffiBindgenReactNative.FfiConverterArray(
4092
4154
  // FfiConverter for WalletNotification | undefined
4093
4155
  const FfiConverterOptionalTypeWalletNotification = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeWalletNotification);
4094
4156
 
4157
+ // FfiConverter for OnchainWalletLike | undefined
4158
+ const FfiConverterOptionalTypeOnchainWallet = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeOnchainWallet);
4159
+
4095
4160
  // FfiConverter for Array<string> | undefined
4096
4161
  const FfiConverterOptionalArrayString = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterArrayString);
4097
4162
 
@@ -4356,6 +4421,9 @@ function uniffiEnsureInitialized() {
4356
4421
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated() !== 16216) {
4357
4422
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated");
4358
4423
  }
4424
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon() !== 21553) {
4425
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_run_daemon");
4426
+ }
4359
4427
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment() !== 30372) {
4360
4428
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment");
4361
4429
  }
@@ -4374,6 +4442,9 @@ function uniffiEnsureInitialized() {
4374
4442
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos() !== 26632) {
4375
4443
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos");
4376
4444
  }
4445
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 9450) {
4446
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");
4447
+ }
4377
4448
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync() !== 22105) {
4378
4449
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync");
4379
4450
  }
@@ -4410,6 +4481,9 @@ function uniffiEnsureInitialized() {
4410
4481
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open() !== 31794) {
4411
4482
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open");
4412
4483
  }
4484
+ if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon() !== 8446) {
4485
+ throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon");
4486
+ }
4413
4487
  if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain() !== 22896) {
4414
4488
  throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain");
4415
4489
  }