@secondts/bark-react-native 0.5.0 → 0.6.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 +1 -1
- package/cpp/generated/bark.cpp +971 -652
- package/cpp/generated/bark.hpp +30 -16
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +879 -1140
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +876 -1139
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +37 -23
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +353 -1345
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +37 -23
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +353 -1345
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +111 -39
- package/src/generated/bark.ts +2243 -2876
package/cpp/generated/bark.cpp
CHANGED
|
@@ -130,14 +130,6 @@ extern "C" {
|
|
|
130
130
|
UniffiForeignFutureResultVoid result
|
|
131
131
|
);
|
|
132
132
|
typedef void
|
|
133
|
-
(*UniffiCallbackInterfaceBarkLoggerMethod0)(
|
|
134
|
-
uint64_t uniffi_handle,
|
|
135
|
-
RustBuffer level,
|
|
136
|
-
RustBuffer target,
|
|
137
|
-
RustBuffer message,
|
|
138
|
-
void * uniffi_out_return, RustCallStatus* rust_call_status
|
|
139
|
-
);
|
|
140
|
-
typedef void
|
|
141
133
|
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0)(
|
|
142
134
|
uint64_t uniffi_handle,
|
|
143
135
|
uint64_t * uniffi_out_return, RustCallStatus* rust_call_status
|
|
@@ -191,23 +183,31 @@ extern "C" {
|
|
|
191
183
|
uint64_t uniffi_handle,
|
|
192
184
|
RustBuffer tx_hex,
|
|
193
185
|
void * uniffi_out_return, RustCallStatus* rust_call_status
|
|
194
|
-
);
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
186
|
+
);
|
|
187
|
+
typedef void
|
|
188
|
+
(*UniffiCallbackInterfaceBarkLoggerMethod0)(
|
|
189
|
+
uint64_t uniffi_handle,
|
|
190
|
+
RustBuffer level,
|
|
191
|
+
RustBuffer target,
|
|
192
|
+
RustBuffer message,
|
|
193
|
+
void * uniffi_out_return, RustCallStatus* rust_call_status
|
|
194
|
+
);typedef struct UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks {
|
|
199
195
|
UniffiCallbackInterfaceFree uniffi_free;
|
|
200
196
|
UniffiCallbackInterfaceClone uniffi_clone;
|
|
201
197
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0 get_balance;
|
|
202
198
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1 prepare_tx;
|
|
203
199
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2 prepare_drain_tx;
|
|
204
|
-
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3
|
|
200
|
+
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3 finish_psbt;
|
|
205
201
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4 get_wallet_tx;
|
|
206
202
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5 get_wallet_tx_confirmed_block;
|
|
207
203
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6 get_spending_tx;
|
|
208
204
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7 make_signed_p2a_cpfp;
|
|
209
205
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8 store_signed_p2a_cpfp;
|
|
210
|
-
} UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks;
|
|
206
|
+
} UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks;typedef struct UniffiVTableCallbackInterfaceBarkLogger {
|
|
207
|
+
UniffiCallbackInterfaceFree uniffi_free;
|
|
208
|
+
UniffiCallbackInterfaceClone uniffi_clone;
|
|
209
|
+
UniffiCallbackInterfaceBarkLoggerMethod0 log;
|
|
210
|
+
} UniffiVTableCallbackInterfaceBarkLogger;
|
|
211
211
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_clone_notificationholder(
|
|
212
212
|
/*handle*/ uint64_t handle,
|
|
213
213
|
RustCallStatus *uniffi_out_err
|
|
@@ -223,6 +223,81 @@ extern "C" {
|
|
|
223
223
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_notificationholder_next_notification(
|
|
224
224
|
/*handle*/ uint64_t ptr
|
|
225
225
|
);
|
|
226
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_clone_customonchainwalletcallbacks(
|
|
227
|
+
/*handle*/ uint64_t handle,
|
|
228
|
+
RustCallStatus *uniffi_out_err
|
|
229
|
+
);
|
|
230
|
+
void uniffi_bark_ffi_fn_free_customonchainwalletcallbacks(
|
|
231
|
+
/*handle*/ uint64_t handle,
|
|
232
|
+
RustCallStatus *uniffi_out_err
|
|
233
|
+
);
|
|
234
|
+
void uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(
|
|
235
|
+
UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks * vtable
|
|
236
|
+
);
|
|
237
|
+
uint64_t uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(
|
|
238
|
+
/*handle*/ uint64_t ptr,
|
|
239
|
+
RustCallStatus *uniffi_out_err
|
|
240
|
+
);
|
|
241
|
+
RustBuffer uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(
|
|
242
|
+
/*handle*/ uint64_t ptr,
|
|
243
|
+
RustBuffer destinations,
|
|
244
|
+
uint64_t fee_rate_sat_per_vb,
|
|
245
|
+
RustCallStatus *uniffi_out_err
|
|
246
|
+
);
|
|
247
|
+
RustBuffer uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(
|
|
248
|
+
/*handle*/ uint64_t ptr,
|
|
249
|
+
RustBuffer address,
|
|
250
|
+
uint64_t fee_rate_sat_per_vb,
|
|
251
|
+
RustCallStatus *uniffi_out_err
|
|
252
|
+
);
|
|
253
|
+
RustBuffer uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(
|
|
254
|
+
/*handle*/ uint64_t ptr,
|
|
255
|
+
RustBuffer psbt_base64,
|
|
256
|
+
RustCallStatus *uniffi_out_err
|
|
257
|
+
);
|
|
258
|
+
RustBuffer uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(
|
|
259
|
+
/*handle*/ uint64_t ptr,
|
|
260
|
+
RustBuffer txid,
|
|
261
|
+
RustCallStatus *uniffi_out_err
|
|
262
|
+
);
|
|
263
|
+
RustBuffer uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(
|
|
264
|
+
/*handle*/ uint64_t ptr,
|
|
265
|
+
RustBuffer txid,
|
|
266
|
+
RustCallStatus *uniffi_out_err
|
|
267
|
+
);
|
|
268
|
+
RustBuffer uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(
|
|
269
|
+
/*handle*/ uint64_t ptr,
|
|
270
|
+
RustBuffer outpoint,
|
|
271
|
+
RustCallStatus *uniffi_out_err
|
|
272
|
+
);
|
|
273
|
+
RustBuffer uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
274
|
+
/*handle*/ uint64_t ptr,
|
|
275
|
+
RustBuffer params,
|
|
276
|
+
RustCallStatus *uniffi_out_err
|
|
277
|
+
);
|
|
278
|
+
void uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
|
|
279
|
+
/*handle*/ uint64_t ptr,
|
|
280
|
+
RustBuffer tx_hex,
|
|
281
|
+
RustCallStatus *uniffi_out_err
|
|
282
|
+
);
|
|
283
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_clone_barklogger(
|
|
284
|
+
/*handle*/ uint64_t handle,
|
|
285
|
+
RustCallStatus *uniffi_out_err
|
|
286
|
+
);
|
|
287
|
+
void uniffi_bark_ffi_fn_free_barklogger(
|
|
288
|
+
/*handle*/ uint64_t handle,
|
|
289
|
+
RustCallStatus *uniffi_out_err
|
|
290
|
+
);
|
|
291
|
+
void uniffi_bark_ffi_fn_init_callback_vtable_barklogger(
|
|
292
|
+
UniffiVTableCallbackInterfaceBarkLogger * vtable
|
|
293
|
+
);
|
|
294
|
+
void uniffi_bark_ffi_fn_method_barklogger_log(
|
|
295
|
+
/*handle*/ uint64_t ptr,
|
|
296
|
+
RustBuffer level,
|
|
297
|
+
RustBuffer target,
|
|
298
|
+
RustBuffer message,
|
|
299
|
+
RustCallStatus *uniffi_out_err
|
|
300
|
+
);
|
|
226
301
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_clone_onchainwallet(
|
|
227
302
|
/*handle*/ uint64_t handle,
|
|
228
303
|
RustCallStatus *uniffi_out_err
|
|
@@ -232,7 +307,7 @@ extern "C" {
|
|
|
232
307
|
RustCallStatus *uniffi_out_err
|
|
233
308
|
);
|
|
234
309
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_onchainwallet_custom(
|
|
235
|
-
uint64_t callbacks,
|
|
310
|
+
/*handle*/ uint64_t callbacks,
|
|
236
311
|
RustCallStatus *uniffi_out_err
|
|
237
312
|
);
|
|
238
313
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_constructor_onchainwallet_default(
|
|
@@ -506,10 +581,6 @@ extern "C" {
|
|
|
506
581
|
RustBuffer offer,
|
|
507
582
|
RustBuffer amount_sats
|
|
508
583
|
);
|
|
509
|
-
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_peak_address(
|
|
510
|
-
/*handle*/ uint64_t ptr,
|
|
511
|
-
uint32_t index
|
|
512
|
-
);
|
|
513
584
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_peek_address(
|
|
514
585
|
/*handle*/ uint64_t ptr,
|
|
515
586
|
uint32_t index
|
|
@@ -617,23 +688,12 @@ extern "C" {
|
|
|
617
688
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_vtxos(
|
|
618
689
|
/*handle*/ uint64_t ptr
|
|
619
690
|
);
|
|
620
|
-
void uniffi_bark_ffi_fn_init_callback_vtable_barklogger(
|
|
621
|
-
UniffiVTableCallbackInterfaceBarkLogger * vtable
|
|
622
|
-
);
|
|
623
|
-
void uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(
|
|
624
|
-
UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks * vtable
|
|
625
|
-
);
|
|
626
691
|
RustBuffer uniffi_bark_ffi_fn_func_extract_tx_from_psbt(
|
|
627
692
|
RustBuffer psbt_base64,
|
|
628
693
|
RustCallStatus *uniffi_out_err
|
|
629
694
|
);
|
|
630
695
|
RustBuffer uniffi_bark_ffi_fn_func_generate_mnemonic(RustCallStatus *uniffi_out_err
|
|
631
696
|
);
|
|
632
|
-
void uniffi_bark_ffi_fn_func_set_logger(
|
|
633
|
-
uint64_t logger,
|
|
634
|
-
RustBuffer max_level,
|
|
635
|
-
RustCallStatus *uniffi_out_err
|
|
636
|
-
);
|
|
637
697
|
int8_t uniffi_bark_ffi_fn_func_validate_ark_address(
|
|
638
698
|
RustBuffer address,
|
|
639
699
|
RustCallStatus *uniffi_out_err
|
|
@@ -642,6 +702,11 @@ extern "C" {
|
|
|
642
702
|
RustBuffer mnemonic,
|
|
643
703
|
RustCallStatus *uniffi_out_err
|
|
644
704
|
);
|
|
705
|
+
void uniffi_bark_ffi_fn_func_set_logger(
|
|
706
|
+
/*handle*/ uint64_t logger,
|
|
707
|
+
RustBuffer max_level,
|
|
708
|
+
RustCallStatus *uniffi_out_err
|
|
709
|
+
);
|
|
645
710
|
RustBuffer ffi_bark_ffi_rustbuffer_alloc(
|
|
646
711
|
uint64_t size,
|
|
647
712
|
RustCallStatus *uniffi_out_err
|
|
@@ -843,16 +908,36 @@ extern "C" {
|
|
|
843
908
|
);
|
|
844
909
|
uint16_t uniffi_bark_ffi_checksum_func_generate_mnemonic(
|
|
845
910
|
);
|
|
846
|
-
uint16_t uniffi_bark_ffi_checksum_func_set_logger(
|
|
847
|
-
);
|
|
848
911
|
uint16_t uniffi_bark_ffi_checksum_func_validate_ark_address(
|
|
849
912
|
);
|
|
850
913
|
uint16_t uniffi_bark_ffi_checksum_func_validate_mnemonic(
|
|
851
914
|
);
|
|
915
|
+
uint16_t uniffi_bark_ffi_checksum_func_set_logger(
|
|
916
|
+
);
|
|
852
917
|
uint16_t uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait(
|
|
853
918
|
);
|
|
854
919
|
uint16_t uniffi_bark_ffi_checksum_method_notificationholder_next_notification(
|
|
855
920
|
);
|
|
921
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(
|
|
922
|
+
);
|
|
923
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(
|
|
924
|
+
);
|
|
925
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(
|
|
926
|
+
);
|
|
927
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt(
|
|
928
|
+
);
|
|
929
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx(
|
|
930
|
+
);
|
|
931
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(
|
|
932
|
+
);
|
|
933
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(
|
|
934
|
+
);
|
|
935
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
936
|
+
);
|
|
937
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
|
|
938
|
+
);
|
|
939
|
+
uint16_t uniffi_bark_ffi_checksum_method_barklogger_log(
|
|
940
|
+
);
|
|
856
941
|
uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_balance(
|
|
857
942
|
);
|
|
858
943
|
uint16_t uniffi_bark_ffi_checksum_method_onchainwallet_new_address(
|
|
@@ -971,8 +1056,6 @@ extern "C" {
|
|
|
971
1056
|
);
|
|
972
1057
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer(
|
|
973
1058
|
);
|
|
974
|
-
uint16_t uniffi_bark_ffi_checksum_method_wallet_peak_address(
|
|
975
|
-
);
|
|
976
1059
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_peek_address(
|
|
977
1060
|
);
|
|
978
1061
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos(
|
|
@@ -1047,26 +1130,6 @@ extern "C" {
|
|
|
1047
1130
|
);
|
|
1048
1131
|
uint16_t uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain(
|
|
1049
1132
|
);
|
|
1050
|
-
uint16_t uniffi_bark_ffi_checksum_method_barklogger_log(
|
|
1051
|
-
);
|
|
1052
|
-
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(
|
|
1053
|
-
);
|
|
1054
|
-
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(
|
|
1055
|
-
);
|
|
1056
|
-
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(
|
|
1057
|
-
);
|
|
1058
|
-
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx(
|
|
1059
|
-
);
|
|
1060
|
-
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx(
|
|
1061
|
-
);
|
|
1062
|
-
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(
|
|
1063
|
-
);
|
|
1064
|
-
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(
|
|
1065
|
-
);
|
|
1066
|
-
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
1067
|
-
);
|
|
1068
|
-
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
|
|
1069
|
-
);
|
|
1070
1133
|
uint32_t ffi_bark_ffi_uniffi_contract_version(
|
|
1071
1134
|
);
|
|
1072
1135
|
}
|
|
@@ -1527,7 +1590,7 @@ namespace uniffi::bark::cb::foreignfuturedroppedcallback {
|
|
|
1527
1590
|
// Implementation of free callback function CallbackInterfaceFree
|
|
1528
1591
|
|
|
1529
1592
|
|
|
1530
|
-
// Callback function: uniffi::bark::st::
|
|
1593
|
+
// Callback function: uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free::UniffiCallbackInterfaceFree
|
|
1531
1594
|
//
|
|
1532
1595
|
// We have the following constraints:
|
|
1533
1596
|
// - we need to pass a function pointer to Rust.
|
|
@@ -1539,7 +1602,7 @@ namespace uniffi::bark::cb::foreignfuturedroppedcallback {
|
|
|
1539
1602
|
//
|
|
1540
1603
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
1541
1604
|
// future.
|
|
1542
|
-
namespace uniffi::bark::st::
|
|
1605
|
+
namespace uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free {
|
|
1543
1606
|
using namespace facebook;
|
|
1544
1607
|
|
|
1545
1608
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -1597,7 +1660,7 @@ namespace uniffi::bark::st::vtablecallbackinterfacebarklogger::vtablecallbackint
|
|
|
1597
1660
|
}
|
|
1598
1661
|
|
|
1599
1662
|
[[maybe_unused]] static UniffiCallbackInterfaceFree
|
|
1600
|
-
makeCallbackFunction( // uniffi::bark::st::
|
|
1663
|
+
makeCallbackFunction( // uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free
|
|
1601
1664
|
jsi::Runtime &rt,
|
|
1602
1665
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
1603
1666
|
const jsi::Value &value) {
|
|
@@ -1640,9 +1703,9 @@ namespace uniffi::bark::st::vtablecallbackinterfacebarklogger::vtablecallbackint
|
|
|
1640
1703
|
// then the pointer will no longer be left dangling.
|
|
1641
1704
|
rsLambda = nullptr;
|
|
1642
1705
|
}
|
|
1643
|
-
} // namespace uniffi::bark::st::
|
|
1706
|
+
} // namespace uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free
|
|
1644
1707
|
|
|
1645
|
-
// Callback function: uniffi::bark::st::
|
|
1708
|
+
// Callback function: uniffi::bark::st::vtablecallbackinterfacebarklogger::vtablecallbackinterfacebarklogger::free::UniffiCallbackInterfaceFree
|
|
1646
1709
|
//
|
|
1647
1710
|
// We have the following constraints:
|
|
1648
1711
|
// - we need to pass a function pointer to Rust.
|
|
@@ -1654,7 +1717,7 @@ namespace uniffi::bark::st::vtablecallbackinterfacebarklogger::vtablecallbackint
|
|
|
1654
1717
|
//
|
|
1655
1718
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
1656
1719
|
// future.
|
|
1657
|
-
namespace uniffi::bark::st::
|
|
1720
|
+
namespace uniffi::bark::st::vtablecallbackinterfacebarklogger::vtablecallbackinterfacebarklogger::free {
|
|
1658
1721
|
using namespace facebook;
|
|
1659
1722
|
|
|
1660
1723
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -1712,7 +1775,7 @@ namespace uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks:
|
|
|
1712
1775
|
}
|
|
1713
1776
|
|
|
1714
1777
|
[[maybe_unused]] static UniffiCallbackInterfaceFree
|
|
1715
|
-
makeCallbackFunction( // uniffi::bark::st::
|
|
1778
|
+
makeCallbackFunction( // uniffi::bark::st::vtablecallbackinterfacebarklogger::vtablecallbackinterfacebarklogger::free
|
|
1716
1779
|
jsi::Runtime &rt,
|
|
1717
1780
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
1718
1781
|
const jsi::Value &value) {
|
|
@@ -1755,7 +1818,7 @@ namespace uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks:
|
|
|
1755
1818
|
// then the pointer will no longer be left dangling.
|
|
1756
1819
|
rsLambda = nullptr;
|
|
1757
1820
|
}
|
|
1758
|
-
} // namespace uniffi::bark::st::
|
|
1821
|
+
} // namespace uniffi::bark::st::vtablecallbackinterfacebarklogger::vtablecallbackinterfacebarklogger::free
|
|
1759
1822
|
namespace uniffi::bark {
|
|
1760
1823
|
using namespace facebook;
|
|
1761
1824
|
using CallInvoker = uniffi_runtime::UniffiCallInvoker;
|
|
@@ -2674,10 +2737,10 @@ template <> struct Bridging<UniffiForeignFutureCompleteVoid> {
|
|
|
2674
2737
|
}
|
|
2675
2738
|
};
|
|
2676
2739
|
} // namespace uniffi::bark
|
|
2677
|
-
// Implementation of CallbackInterfaceClone for vtable field uniffi_clone in
|
|
2740
|
+
// Implementation of CallbackInterfaceClone for vtable field uniffi_clone in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
2678
2741
|
|
|
2679
2742
|
|
|
2680
|
-
// Callback function: uniffi::bark::cb::callbackinterfaceclone::
|
|
2743
|
+
// Callback function: uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceClone
|
|
2681
2744
|
//
|
|
2682
2745
|
// We have the following constraints:
|
|
2683
2746
|
// - we need to pass a function pointer to Rust.
|
|
@@ -2689,7 +2752,7 @@ template <> struct Bridging<UniffiForeignFutureCompleteVoid> {
|
|
|
2689
2752
|
//
|
|
2690
2753
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
2691
2754
|
// future.
|
|
2692
|
-
namespace uniffi::bark::cb::callbackinterfaceclone::
|
|
2755
|
+
namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
2693
2756
|
using namespace facebook;
|
|
2694
2757
|
|
|
2695
2758
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -2757,7 +2820,7 @@ namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarkl
|
|
|
2757
2820
|
}
|
|
2758
2821
|
|
|
2759
2822
|
[[maybe_unused]] static UniffiCallbackInterfaceClone
|
|
2760
|
-
makeCallbackFunction( // uniffi::bark::cb::callbackinterfaceclone::
|
|
2823
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
2761
2824
|
jsi::Runtime &rt,
|
|
2762
2825
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
2763
2826
|
const jsi::Value &value) {
|
|
@@ -2799,11 +2862,11 @@ namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarkl
|
|
|
2799
2862
|
// then the pointer will no longer be left dangling.
|
|
2800
2863
|
rsLambda = nullptr;
|
|
2801
2864
|
}
|
|
2802
|
-
} // namespace uniffi::bark::cb::callbackinterfaceclone::
|
|
2803
|
-
// Implementation of
|
|
2865
|
+
} // namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
2866
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod0 for vtable field get_balance in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
2804
2867
|
|
|
2805
2868
|
|
|
2806
|
-
// Callback function: uniffi::bark::cb::
|
|
2869
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0
|
|
2807
2870
|
//
|
|
2808
2871
|
// We have the following constraints:
|
|
2809
2872
|
// - we need to pass a function pointer to Rust.
|
|
@@ -2815,12 +2878,12 @@ namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarkl
|
|
|
2815
2878
|
//
|
|
2816
2879
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
2817
2880
|
// future.
|
|
2818
|
-
namespace uniffi::bark::cb::
|
|
2881
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
2819
2882
|
using namespace facebook;
|
|
2820
2883
|
|
|
2821
2884
|
// We need to store a lambda in a global so we can call it from
|
|
2822
2885
|
// a function pointer. The function pointer is passed to Rust.
|
|
2823
|
-
static std::function<void(uint64_t,
|
|
2886
|
+
static std::function<void(uint64_t, uint64_t *, RustCallStatus*)> rsLambda = nullptr;
|
|
2824
2887
|
|
|
2825
2888
|
// This is the main body of the callback. It's called from the lambda,
|
|
2826
2889
|
// which itself is called from the callback function which is passed to Rust.
|
|
@@ -2828,17 +2891,11 @@ namespace uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackin
|
|
|
2828
2891
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
2829
2892
|
std::shared_ptr<jsi::Value> callbackValue
|
|
2830
2893
|
,uint64_t rs_uniffiHandle
|
|
2831
|
-
,
|
|
2832
|
-
,RustBuffer rs_target
|
|
2833
|
-
,RustBuffer rs_message
|
|
2834
|
-
,void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
2894
|
+
,uint64_t * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
2835
2895
|
|
|
2836
2896
|
// Convert the arguments from Rust, into jsi::Values.
|
|
2837
2897
|
// We'll use the Bridging class to do this…
|
|
2838
2898
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
2839
|
-
auto js_level = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_level);
|
|
2840
|
-
auto js_target = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_target);
|
|
2841
|
-
auto js_message = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_message);
|
|
2842
2899
|
|
|
2843
2900
|
// Now we are ready to call the callback.
|
|
2844
2901
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -2846,7 +2903,7 @@ namespace uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackin
|
|
|
2846
2903
|
try {
|
|
2847
2904
|
// Getting the callback function
|
|
2848
2905
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
2849
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle
|
|
2906
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle
|
|
2850
2907
|
);
|
|
2851
2908
|
|
|
2852
2909
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -2858,14 +2915,22 @@ namespace uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackin
|
|
|
2858
2915
|
}
|
|
2859
2916
|
|
|
2860
2917
|
|
|
2918
|
+
// return type is UInt64
|
|
2919
|
+
// Finally, we need to copy the return value back into the Rust pointer.
|
|
2920
|
+
*rs_uniffiOutReturn =
|
|
2921
|
+
uniffi_jsi::Bridging<
|
|
2922
|
+
ReferenceHolder<uint64_t>
|
|
2923
|
+
>::fromJs(
|
|
2924
|
+
rt, callInvoker, uniffiResult
|
|
2925
|
+
);
|
|
2861
2926
|
} catch (const jsi::JSError &error) {
|
|
2862
|
-
std::cout << "Error in callback
|
|
2927
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0: "
|
|
2863
2928
|
<< error.what() << std::endl;
|
|
2864
2929
|
throw error;
|
|
2865
2930
|
}
|
|
2866
2931
|
}
|
|
2867
2932
|
|
|
2868
|
-
static void callback(uint64_t rs_uniffiHandle,
|
|
2933
|
+
static void callback(uint64_t rs_uniffiHandle, uint64_t * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
2869
2934
|
// If the runtime has shutdown, then there is no point in trying to
|
|
2870
2935
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
2871
2936
|
//
|
|
@@ -2883,14 +2948,11 @@ namespace uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackin
|
|
|
2883
2948
|
// are all in the lambda.
|
|
2884
2949
|
rsLambda(
|
|
2885
2950
|
rs_uniffiHandle,
|
|
2886
|
-
rs_level,
|
|
2887
|
-
rs_target,
|
|
2888
|
-
rs_message,
|
|
2889
2951
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
2890
2952
|
}
|
|
2891
2953
|
|
|
2892
|
-
[[maybe_unused]] static
|
|
2893
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
2954
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0
|
|
2955
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
2894
2956
|
jsi::Runtime &rt,
|
|
2895
2957
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
2896
2958
|
const jsi::Value &value) {
|
|
@@ -2908,22 +2970,16 @@ namespace uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackin
|
|
|
2908
2970
|
}
|
|
2909
2971
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
2910
2972
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
2911
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle,
|
|
2973
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, uint64_t * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
2912
2974
|
// We immediately make a lambda which will do the work of transforming the
|
|
2913
2975
|
// arguments into JSI values and calling the callback.
|
|
2914
2976
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
2915
2977
|
callInvoker,
|
|
2916
2978
|
callbackValue
|
|
2917
2979
|
, rs_uniffiHandle
|
|
2918
|
-
, rs_level
|
|
2919
|
-
, rs_target
|
|
2920
|
-
, rs_message
|
|
2921
2980
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
2922
2981
|
body(rt, callInvoker, callbackValue
|
|
2923
2982
|
, rs_uniffiHandle
|
|
2924
|
-
, rs_level
|
|
2925
|
-
, rs_target
|
|
2926
|
-
, rs_message
|
|
2927
2983
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
2928
2984
|
};
|
|
2929
2985
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -2940,47 +2996,11 @@ namespace uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackin
|
|
|
2940
2996
|
// then the pointer will no longer be left dangling.
|
|
2941
2997
|
rsLambda = nullptr;
|
|
2942
2998
|
}
|
|
2943
|
-
} // namespace uniffi::bark::cb::
|
|
2944
|
-
|
|
2945
|
-
using namespace facebook;
|
|
2946
|
-
using CallInvoker = uniffi_runtime::UniffiCallInvoker;
|
|
2947
|
-
|
|
2948
|
-
template <> struct Bridging<UniffiVTableCallbackInterfaceBarkLogger> {
|
|
2949
|
-
static UniffiVTableCallbackInterfaceBarkLogger fromJs(jsi::Runtime &rt,
|
|
2950
|
-
std::shared_ptr<CallInvoker> callInvoker,
|
|
2951
|
-
const jsi::Value &jsValue
|
|
2952
|
-
) {
|
|
2953
|
-
// Check if the input is an object
|
|
2954
|
-
if (!jsValue.isObject()) {
|
|
2955
|
-
throw jsi::JSError(rt, "Expected an object for UniffiVTableCallbackInterfaceBarkLogger");
|
|
2956
|
-
}
|
|
2957
|
-
|
|
2958
|
-
// Get the object from the jsi::Value
|
|
2959
|
-
auto jsObject = jsValue.getObject(rt);
|
|
2960
|
-
|
|
2961
|
-
// Create the vtable struct
|
|
2962
|
-
UniffiVTableCallbackInterfaceBarkLogger rsObject;
|
|
2963
|
-
|
|
2964
|
-
// Create the vtable from the js callbacks.
|
|
2965
|
-
rsObject.uniffi_free = uniffi::bark::st::vtablecallbackinterfacebarklogger::vtablecallbackinterfacebarklogger::free::makeCallbackFunction(
|
|
2966
|
-
rt, callInvoker, jsObject.getProperty(rt, "uniffiFree")
|
|
2967
|
-
);
|
|
2968
|
-
rsObject.uniffi_clone = uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger::makeCallbackFunction(
|
|
2969
|
-
rt, callInvoker, jsObject.getProperty(rt, "uniffiClone")
|
|
2970
|
-
);
|
|
2971
|
-
rsObject.log = uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger::makeCallbackFunction(
|
|
2972
|
-
rt, callInvoker, jsObject.getProperty(rt, "log")
|
|
2973
|
-
);
|
|
2974
|
-
|
|
2975
|
-
return rsObject;
|
|
2976
|
-
}
|
|
2977
|
-
};
|
|
2978
|
-
|
|
2979
|
-
} // namespace uniffi::bark
|
|
2980
|
-
// Implementation of CallbackInterfaceClone for vtable field uniffi_clone in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
2999
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3000
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod1 for vtable field prepare_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
2981
3001
|
|
|
2982
3002
|
|
|
2983
|
-
// Callback function: uniffi::bark::cb::
|
|
3003
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1
|
|
2984
3004
|
//
|
|
2985
3005
|
// We have the following constraints:
|
|
2986
3006
|
// - we need to pass a function pointer to Rust.
|
|
@@ -2992,24 +3012,28 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceBarkLogger> {
|
|
|
2992
3012
|
//
|
|
2993
3013
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
2994
3014
|
// future.
|
|
2995
|
-
namespace uniffi::bark::cb::
|
|
3015
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
2996
3016
|
using namespace facebook;
|
|
2997
3017
|
|
|
2998
3018
|
// We need to store a lambda in a global so we can call it from
|
|
2999
3019
|
// a function pointer. The function pointer is passed to Rust.
|
|
3000
|
-
static std::function<void(uint64_t, uint64_t*)> rsLambda = nullptr;
|
|
3020
|
+
static std::function<void(uint64_t, RustBuffer, uint64_t, RustBuffer *, RustCallStatus*)> rsLambda = nullptr;
|
|
3001
3021
|
|
|
3002
3022
|
// This is the main body of the callback. It's called from the lambda,
|
|
3003
3023
|
// which itself is called from the callback function which is passed to Rust.
|
|
3004
3024
|
static void body(jsi::Runtime &rt,
|
|
3005
3025
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3006
3026
|
std::shared_ptr<jsi::Value> callbackValue
|
|
3007
|
-
,uint64_t
|
|
3008
|
-
,
|
|
3027
|
+
,uint64_t rs_uniffiHandle
|
|
3028
|
+
,RustBuffer rs_destinations
|
|
3029
|
+
,uint64_t rs_feeRateSatPerVb
|
|
3030
|
+
,RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3009
3031
|
|
|
3010
3032
|
// Convert the arguments from Rust, into jsi::Values.
|
|
3011
3033
|
// We'll use the Bridging class to do this…
|
|
3012
|
-
auto
|
|
3034
|
+
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3035
|
+
auto js_destinations = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_destinations);
|
|
3036
|
+
auto js_feeRateSatPerVb = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_feeRateSatPerVb);
|
|
3013
3037
|
|
|
3014
3038
|
// Now we are ready to call the callback.
|
|
3015
3039
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -3017,26 +3041,34 @@ namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecusto
|
|
|
3017
3041
|
try {
|
|
3018
3042
|
// Getting the callback function
|
|
3019
3043
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3020
|
-
auto uniffiResult = cb.call(rt,
|
|
3044
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_destinations, js_feeRateSatPerVb
|
|
3021
3045
|
);
|
|
3022
3046
|
|
|
3023
|
-
|
|
3047
|
+
// Now copy the result back from JS into the RustCallStatus object.
|
|
3048
|
+
uniffi::bark::Bridging<RustCallStatus>::copyFromJs(rt, callInvoker, uniffiResult, uniffi_call_status);
|
|
3049
|
+
|
|
3050
|
+
if (uniffi_call_status->code != UNIFFI_CALL_STATUS_OK) {
|
|
3051
|
+
// The JS callback finished abnormally, so we cannot retrieve the return value.
|
|
3052
|
+
return;
|
|
3053
|
+
}
|
|
3024
3054
|
|
|
3025
3055
|
|
|
3026
|
-
//
|
|
3027
|
-
|
|
3028
|
-
|
|
3056
|
+
// return type is RustBuffer(None)
|
|
3057
|
+
// Finally, we need to copy the return value back into the Rust pointer.
|
|
3058
|
+
*rs_uniffiOutReturn =
|
|
3059
|
+
uniffi::bark::Bridging<
|
|
3060
|
+
ReferenceHolder<RustBuffer>
|
|
3061
|
+
>::fromJs(
|
|
3029
3062
|
rt, callInvoker, uniffiResult
|
|
3030
3063
|
);
|
|
3031
|
-
}
|
|
3032
3064
|
} catch (const jsi::JSError &error) {
|
|
3033
|
-
std::cout << "Error in callback
|
|
3065
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1: "
|
|
3034
3066
|
<< error.what() << std::endl;
|
|
3035
3067
|
throw error;
|
|
3036
3068
|
}
|
|
3037
3069
|
}
|
|
3038
3070
|
|
|
3039
|
-
static
|
|
3071
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_destinations, uint64_t rs_feeRateSatPerVb, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3040
3072
|
// If the runtime has shutdown, then there is no point in trying to
|
|
3041
3073
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3042
3074
|
//
|
|
@@ -3047,20 +3079,20 @@ namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecusto
|
|
|
3047
3079
|
if (rsLambda == nullptr) {
|
|
3048
3080
|
// This only occurs when destructors are calling into Rust free/drop,
|
|
3049
3081
|
// which causes the JS callback to be dropped.
|
|
3050
|
-
return
|
|
3082
|
+
return;
|
|
3051
3083
|
}
|
|
3052
|
-
uint64_t uniffi_result = 0;
|
|
3053
3084
|
|
|
3054
3085
|
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
3055
3086
|
// are all in the lambda.
|
|
3056
3087
|
rsLambda(
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3088
|
+
rs_uniffiHandle,
|
|
3089
|
+
rs_destinations,
|
|
3090
|
+
rs_feeRateSatPerVb,
|
|
3091
|
+
rs_uniffiOutReturn, uniffi_call_status);
|
|
3060
3092
|
}
|
|
3061
3093
|
|
|
3062
|
-
[[maybe_unused]] static
|
|
3063
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
3094
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1
|
|
3095
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3064
3096
|
jsi::Runtime &rt,
|
|
3065
3097
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3066
3098
|
const jsi::Value &value) {
|
|
@@ -3078,15 +3110,21 @@ namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecusto
|
|
|
3078
3110
|
}
|
|
3079
3111
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3080
3112
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3081
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t
|
|
3113
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_destinations, uint64_t rs_feeRateSatPerVb, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3082
3114
|
// We immediately make a lambda which will do the work of transforming the
|
|
3083
3115
|
// arguments into JSI values and calling the callback.
|
|
3084
3116
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3085
3117
|
callInvoker,
|
|
3086
3118
|
callbackValue
|
|
3087
|
-
,
|
|
3119
|
+
, rs_uniffiHandle
|
|
3120
|
+
, rs_destinations
|
|
3121
|
+
, rs_feeRateSatPerVb
|
|
3122
|
+
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3088
3123
|
body(rt, callInvoker, callbackValue
|
|
3089
|
-
,
|
|
3124
|
+
, rs_uniffiHandle
|
|
3125
|
+
, rs_destinations
|
|
3126
|
+
, rs_feeRateSatPerVb
|
|
3127
|
+
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3090
3128
|
};
|
|
3091
3129
|
// We'll then call that lambda from the callInvoker which will
|
|
3092
3130
|
// look after calling it on the correct thread.
|
|
@@ -3102,11 +3140,11 @@ namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecusto
|
|
|
3102
3140
|
// then the pointer will no longer be left dangling.
|
|
3103
3141
|
rsLambda = nullptr;
|
|
3104
3142
|
}
|
|
3105
|
-
} // namespace uniffi::bark::cb::
|
|
3106
|
-
// Implementation of
|
|
3143
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3144
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod2 for vtable field prepare_drain_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3107
3145
|
|
|
3108
3146
|
|
|
3109
|
-
// Callback function: uniffi::bark::cb::
|
|
3147
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2
|
|
3110
3148
|
//
|
|
3111
3149
|
// We have the following constraints:
|
|
3112
3150
|
// - we need to pass a function pointer to Rust.
|
|
@@ -3118,12 +3156,12 @@ namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecusto
|
|
|
3118
3156
|
//
|
|
3119
3157
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
3120
3158
|
// future.
|
|
3121
|
-
namespace uniffi::bark::cb::
|
|
3159
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
3122
3160
|
using namespace facebook;
|
|
3123
3161
|
|
|
3124
3162
|
// We need to store a lambda in a global so we can call it from
|
|
3125
3163
|
// a function pointer. The function pointer is passed to Rust.
|
|
3126
|
-
static std::function<void(uint64_t, uint64_t *, RustCallStatus*)> rsLambda = nullptr;
|
|
3164
|
+
static std::function<void(uint64_t, RustBuffer, uint64_t, RustBuffer *, RustCallStatus*)> rsLambda = nullptr;
|
|
3127
3165
|
|
|
3128
3166
|
// This is the main body of the callback. It's called from the lambda,
|
|
3129
3167
|
// which itself is called from the callback function which is passed to Rust.
|
|
@@ -3131,11 +3169,15 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
|
|
|
3131
3169
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3132
3170
|
std::shared_ptr<jsi::Value> callbackValue
|
|
3133
3171
|
,uint64_t rs_uniffiHandle
|
|
3134
|
-
,
|
|
3172
|
+
,RustBuffer rs_address
|
|
3173
|
+
,uint64_t rs_feeRateSatPerVb
|
|
3174
|
+
,RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3135
3175
|
|
|
3136
3176
|
// Convert the arguments from Rust, into jsi::Values.
|
|
3137
3177
|
// We'll use the Bridging class to do this…
|
|
3138
3178
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3179
|
+
auto js_address = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_address);
|
|
3180
|
+
auto js_feeRateSatPerVb = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_feeRateSatPerVb);
|
|
3139
3181
|
|
|
3140
3182
|
// Now we are ready to call the callback.
|
|
3141
3183
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -3143,7 +3185,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
|
|
|
3143
3185
|
try {
|
|
3144
3186
|
// Getting the callback function
|
|
3145
3187
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3146
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle
|
|
3188
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_address, js_feeRateSatPerVb
|
|
3147
3189
|
);
|
|
3148
3190
|
|
|
3149
3191
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -3155,22 +3197,22 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
|
|
|
3155
3197
|
}
|
|
3156
3198
|
|
|
3157
3199
|
|
|
3158
|
-
// return type is
|
|
3200
|
+
// return type is RustBuffer(None)
|
|
3159
3201
|
// Finally, we need to copy the return value back into the Rust pointer.
|
|
3160
3202
|
*rs_uniffiOutReturn =
|
|
3161
|
-
|
|
3162
|
-
ReferenceHolder<
|
|
3203
|
+
uniffi::bark::Bridging<
|
|
3204
|
+
ReferenceHolder<RustBuffer>
|
|
3163
3205
|
>::fromJs(
|
|
3164
3206
|
rt, callInvoker, uniffiResult
|
|
3165
3207
|
);
|
|
3166
3208
|
} catch (const jsi::JSError &error) {
|
|
3167
|
-
std::cout << "Error in callback
|
|
3209
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2: "
|
|
3168
3210
|
<< error.what() << std::endl;
|
|
3169
3211
|
throw error;
|
|
3170
3212
|
}
|
|
3171
3213
|
}
|
|
3172
3214
|
|
|
3173
|
-
static void callback(uint64_t rs_uniffiHandle, uint64_t * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3215
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_address, uint64_t rs_feeRateSatPerVb, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3174
3216
|
// If the runtime has shutdown, then there is no point in trying to
|
|
3175
3217
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3176
3218
|
//
|
|
@@ -3188,11 +3230,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
|
|
|
3188
3230
|
// are all in the lambda.
|
|
3189
3231
|
rsLambda(
|
|
3190
3232
|
rs_uniffiHandle,
|
|
3233
|
+
rs_address,
|
|
3234
|
+
rs_feeRateSatPerVb,
|
|
3191
3235
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
3192
3236
|
}
|
|
3193
3237
|
|
|
3194
|
-
[[maybe_unused]] static
|
|
3195
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
3238
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2
|
|
3239
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3196
3240
|
jsi::Runtime &rt,
|
|
3197
3241
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3198
3242
|
const jsi::Value &value) {
|
|
@@ -3210,16 +3254,20 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
|
|
|
3210
3254
|
}
|
|
3211
3255
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3212
3256
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3213
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, uint64_t * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3257
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_address, uint64_t rs_feeRateSatPerVb, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3214
3258
|
// We immediately make a lambda which will do the work of transforming the
|
|
3215
3259
|
// arguments into JSI values and calling the callback.
|
|
3216
3260
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3217
3261
|
callInvoker,
|
|
3218
3262
|
callbackValue
|
|
3219
3263
|
, rs_uniffiHandle
|
|
3264
|
+
, rs_address
|
|
3265
|
+
, rs_feeRateSatPerVb
|
|
3220
3266
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3221
3267
|
body(rt, callInvoker, callbackValue
|
|
3222
3268
|
, rs_uniffiHandle
|
|
3269
|
+
, rs_address
|
|
3270
|
+
, rs_feeRateSatPerVb
|
|
3223
3271
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3224
3272
|
};
|
|
3225
3273
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -3236,11 +3284,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
|
|
|
3236
3284
|
// then the pointer will no longer be left dangling.
|
|
3237
3285
|
rsLambda = nullptr;
|
|
3238
3286
|
}
|
|
3239
|
-
} // namespace uniffi::bark::cb::
|
|
3240
|
-
// Implementation of
|
|
3287
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3288
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod3 for vtable field finish_psbt in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3241
3289
|
|
|
3242
3290
|
|
|
3243
|
-
// Callback function: uniffi::bark::cb::
|
|
3291
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3
|
|
3244
3292
|
//
|
|
3245
3293
|
// We have the following constraints:
|
|
3246
3294
|
// - we need to pass a function pointer to Rust.
|
|
@@ -3252,12 +3300,12 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0
|
|
|
3252
3300
|
//
|
|
3253
3301
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
3254
3302
|
// future.
|
|
3255
|
-
namespace uniffi::bark::cb::
|
|
3303
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
3256
3304
|
using namespace facebook;
|
|
3257
3305
|
|
|
3258
3306
|
// We need to store a lambda in a global so we can call it from
|
|
3259
3307
|
// a function pointer. The function pointer is passed to Rust.
|
|
3260
|
-
static std::function<void(uint64_t, RustBuffer,
|
|
3308
|
+
static std::function<void(uint64_t, RustBuffer, RustBuffer *, RustCallStatus*)> rsLambda = nullptr;
|
|
3261
3309
|
|
|
3262
3310
|
// This is the main body of the callback. It's called from the lambda,
|
|
3263
3311
|
// which itself is called from the callback function which is passed to Rust.
|
|
@@ -3265,15 +3313,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
|
|
|
3265
3313
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3266
3314
|
std::shared_ptr<jsi::Value> callbackValue
|
|
3267
3315
|
,uint64_t rs_uniffiHandle
|
|
3268
|
-
,RustBuffer
|
|
3269
|
-
,uint64_t rs_feeRateSatPerVb
|
|
3316
|
+
,RustBuffer rs_psbtBase64
|
|
3270
3317
|
,RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3271
3318
|
|
|
3272
3319
|
// Convert the arguments from Rust, into jsi::Values.
|
|
3273
3320
|
// We'll use the Bridging class to do this…
|
|
3274
3321
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3275
|
-
auto
|
|
3276
|
-
auto js_feeRateSatPerVb = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_feeRateSatPerVb);
|
|
3322
|
+
auto js_psbtBase64 = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_psbtBase64);
|
|
3277
3323
|
|
|
3278
3324
|
// Now we are ready to call the callback.
|
|
3279
3325
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -3281,7 +3327,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
|
|
|
3281
3327
|
try {
|
|
3282
3328
|
// Getting the callback function
|
|
3283
3329
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3284
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
3330
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_psbtBase64
|
|
3285
3331
|
);
|
|
3286
3332
|
|
|
3287
3333
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -3302,13 +3348,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
|
|
|
3302
3348
|
rt, callInvoker, uniffiResult
|
|
3303
3349
|
);
|
|
3304
3350
|
} catch (const jsi::JSError &error) {
|
|
3305
|
-
std::cout << "Error in callback
|
|
3351
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3: "
|
|
3306
3352
|
<< error.what() << std::endl;
|
|
3307
3353
|
throw error;
|
|
3308
3354
|
}
|
|
3309
3355
|
}
|
|
3310
3356
|
|
|
3311
|
-
static void callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
3357
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_psbtBase64, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3312
3358
|
// If the runtime has shutdown, then there is no point in trying to
|
|
3313
3359
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3314
3360
|
//
|
|
@@ -3326,13 +3372,12 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
|
|
|
3326
3372
|
// are all in the lambda.
|
|
3327
3373
|
rsLambda(
|
|
3328
3374
|
rs_uniffiHandle,
|
|
3329
|
-
|
|
3330
|
-
rs_feeRateSatPerVb,
|
|
3375
|
+
rs_psbtBase64,
|
|
3331
3376
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
3332
3377
|
}
|
|
3333
3378
|
|
|
3334
|
-
[[maybe_unused]] static
|
|
3335
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
3379
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3
|
|
3380
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3336
3381
|
jsi::Runtime &rt,
|
|
3337
3382
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3338
3383
|
const jsi::Value &value) {
|
|
@@ -3350,20 +3395,18 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
|
|
|
3350
3395
|
}
|
|
3351
3396
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3352
3397
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3353
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer
|
|
3398
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_psbtBase64, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3354
3399
|
// We immediately make a lambda which will do the work of transforming the
|
|
3355
3400
|
// arguments into JSI values and calling the callback.
|
|
3356
3401
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3357
3402
|
callInvoker,
|
|
3358
3403
|
callbackValue
|
|
3359
3404
|
, rs_uniffiHandle
|
|
3360
|
-
,
|
|
3361
|
-
, rs_feeRateSatPerVb
|
|
3405
|
+
, rs_psbtBase64
|
|
3362
3406
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3363
3407
|
body(rt, callInvoker, callbackValue
|
|
3364
3408
|
, rs_uniffiHandle
|
|
3365
|
-
,
|
|
3366
|
-
, rs_feeRateSatPerVb
|
|
3409
|
+
, rs_psbtBase64
|
|
3367
3410
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3368
3411
|
};
|
|
3369
3412
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -3380,11 +3423,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
|
|
|
3380
3423
|
// then the pointer will no longer be left dangling.
|
|
3381
3424
|
rsLambda = nullptr;
|
|
3382
3425
|
}
|
|
3383
|
-
} // namespace uniffi::bark::cb::
|
|
3384
|
-
// Implementation of
|
|
3426
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3427
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod4 for vtable field get_wallet_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3385
3428
|
|
|
3386
3429
|
|
|
3387
|
-
// Callback function: uniffi::bark::cb::
|
|
3430
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4
|
|
3388
3431
|
//
|
|
3389
3432
|
// We have the following constraints:
|
|
3390
3433
|
// - we need to pass a function pointer to Rust.
|
|
@@ -3396,12 +3439,12 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1
|
|
|
3396
3439
|
//
|
|
3397
3440
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
3398
3441
|
// future.
|
|
3399
|
-
namespace uniffi::bark::cb::
|
|
3442
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
3400
3443
|
using namespace facebook;
|
|
3401
3444
|
|
|
3402
3445
|
// We need to store a lambda in a global so we can call it from
|
|
3403
3446
|
// a function pointer. The function pointer is passed to Rust.
|
|
3404
|
-
static std::function<void(uint64_t, RustBuffer,
|
|
3447
|
+
static std::function<void(uint64_t, RustBuffer, RustBuffer *, RustCallStatus*)> rsLambda = nullptr;
|
|
3405
3448
|
|
|
3406
3449
|
// This is the main body of the callback. It's called from the lambda,
|
|
3407
3450
|
// which itself is called from the callback function which is passed to Rust.
|
|
@@ -3409,15 +3452,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
|
|
|
3409
3452
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3410
3453
|
std::shared_ptr<jsi::Value> callbackValue
|
|
3411
3454
|
,uint64_t rs_uniffiHandle
|
|
3412
|
-
,RustBuffer
|
|
3413
|
-
,uint64_t rs_feeRateSatPerVb
|
|
3455
|
+
,RustBuffer rs_txid
|
|
3414
3456
|
,RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3415
3457
|
|
|
3416
3458
|
// Convert the arguments from Rust, into jsi::Values.
|
|
3417
3459
|
// We'll use the Bridging class to do this…
|
|
3418
3460
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3419
|
-
auto
|
|
3420
|
-
auto js_feeRateSatPerVb = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_feeRateSatPerVb);
|
|
3461
|
+
auto js_txid = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_txid);
|
|
3421
3462
|
|
|
3422
3463
|
// Now we are ready to call the callback.
|
|
3423
3464
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -3425,7 +3466,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
|
|
|
3425
3466
|
try {
|
|
3426
3467
|
// Getting the callback function
|
|
3427
3468
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3428
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
3469
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txid
|
|
3429
3470
|
);
|
|
3430
3471
|
|
|
3431
3472
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -3446,13 +3487,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
|
|
|
3446
3487
|
rt, callInvoker, uniffiResult
|
|
3447
3488
|
);
|
|
3448
3489
|
} catch (const jsi::JSError &error) {
|
|
3449
|
-
std::cout << "Error in callback
|
|
3490
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4: "
|
|
3450
3491
|
<< error.what() << std::endl;
|
|
3451
3492
|
throw error;
|
|
3452
3493
|
}
|
|
3453
3494
|
}
|
|
3454
3495
|
|
|
3455
|
-
static void callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
3496
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_txid, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3456
3497
|
// If the runtime has shutdown, then there is no point in trying to
|
|
3457
3498
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3458
3499
|
//
|
|
@@ -3470,13 +3511,12 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
|
|
|
3470
3511
|
// are all in the lambda.
|
|
3471
3512
|
rsLambda(
|
|
3472
3513
|
rs_uniffiHandle,
|
|
3473
|
-
|
|
3474
|
-
rs_feeRateSatPerVb,
|
|
3514
|
+
rs_txid,
|
|
3475
3515
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
3476
3516
|
}
|
|
3477
3517
|
|
|
3478
|
-
[[maybe_unused]] static
|
|
3479
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
3518
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4
|
|
3519
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3480
3520
|
jsi::Runtime &rt,
|
|
3481
3521
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3482
3522
|
const jsi::Value &value) {
|
|
@@ -3494,20 +3534,18 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
|
|
|
3494
3534
|
}
|
|
3495
3535
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3496
3536
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3497
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer
|
|
3537
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_txid, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3498
3538
|
// We immediately make a lambda which will do the work of transforming the
|
|
3499
3539
|
// arguments into JSI values and calling the callback.
|
|
3500
3540
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3501
3541
|
callInvoker,
|
|
3502
3542
|
callbackValue
|
|
3503
3543
|
, rs_uniffiHandle
|
|
3504
|
-
,
|
|
3505
|
-
, rs_feeRateSatPerVb
|
|
3544
|
+
, rs_txid
|
|
3506
3545
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3507
3546
|
body(rt, callInvoker, callbackValue
|
|
3508
3547
|
, rs_uniffiHandle
|
|
3509
|
-
,
|
|
3510
|
-
, rs_feeRateSatPerVb
|
|
3548
|
+
, rs_txid
|
|
3511
3549
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3512
3550
|
};
|
|
3513
3551
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -3524,11 +3562,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
|
|
|
3524
3562
|
// then the pointer will no longer be left dangling.
|
|
3525
3563
|
rsLambda = nullptr;
|
|
3526
3564
|
}
|
|
3527
|
-
} // namespace uniffi::bark::cb::
|
|
3528
|
-
// Implementation of
|
|
3565
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3566
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod5 for vtable field get_wallet_tx_confirmed_block in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3529
3567
|
|
|
3530
3568
|
|
|
3531
|
-
// Callback function: uniffi::bark::cb::
|
|
3569
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5
|
|
3532
3570
|
//
|
|
3533
3571
|
// We have the following constraints:
|
|
3534
3572
|
// - we need to pass a function pointer to Rust.
|
|
@@ -3540,7 +3578,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2
|
|
|
3540
3578
|
//
|
|
3541
3579
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
3542
3580
|
// future.
|
|
3543
|
-
namespace uniffi::bark::cb::
|
|
3581
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
3544
3582
|
using namespace facebook;
|
|
3545
3583
|
|
|
3546
3584
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -3553,13 +3591,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
|
|
|
3553
3591
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3554
3592
|
std::shared_ptr<jsi::Value> callbackValue
|
|
3555
3593
|
,uint64_t rs_uniffiHandle
|
|
3556
|
-
,RustBuffer
|
|
3594
|
+
,RustBuffer rs_txid
|
|
3557
3595
|
,RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3558
3596
|
|
|
3559
3597
|
// Convert the arguments from Rust, into jsi::Values.
|
|
3560
3598
|
// We'll use the Bridging class to do this…
|
|
3561
3599
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3562
|
-
auto
|
|
3600
|
+
auto js_txid = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_txid);
|
|
3563
3601
|
|
|
3564
3602
|
// Now we are ready to call the callback.
|
|
3565
3603
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -3567,7 +3605,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
|
|
|
3567
3605
|
try {
|
|
3568
3606
|
// Getting the callback function
|
|
3569
3607
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3570
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
3608
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txid
|
|
3571
3609
|
);
|
|
3572
3610
|
|
|
3573
3611
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -3588,13 +3626,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
|
|
|
3588
3626
|
rt, callInvoker, uniffiResult
|
|
3589
3627
|
);
|
|
3590
3628
|
} catch (const jsi::JSError &error) {
|
|
3591
|
-
std::cout << "Error in callback
|
|
3629
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5: "
|
|
3592
3630
|
<< error.what() << std::endl;
|
|
3593
3631
|
throw error;
|
|
3594
3632
|
}
|
|
3595
3633
|
}
|
|
3596
3634
|
|
|
3597
|
-
static void callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
3635
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_txid, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3598
3636
|
// If the runtime has shutdown, then there is no point in trying to
|
|
3599
3637
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3600
3638
|
//
|
|
@@ -3612,12 +3650,12 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
|
|
|
3612
3650
|
// are all in the lambda.
|
|
3613
3651
|
rsLambda(
|
|
3614
3652
|
rs_uniffiHandle,
|
|
3615
|
-
|
|
3653
|
+
rs_txid,
|
|
3616
3654
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
3617
3655
|
}
|
|
3618
3656
|
|
|
3619
|
-
[[maybe_unused]] static
|
|
3620
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
3657
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5
|
|
3658
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3621
3659
|
jsi::Runtime &rt,
|
|
3622
3660
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3623
3661
|
const jsi::Value &value) {
|
|
@@ -3635,18 +3673,18 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
|
|
|
3635
3673
|
}
|
|
3636
3674
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3637
3675
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3638
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer
|
|
3676
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_txid, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3639
3677
|
// We immediately make a lambda which will do the work of transforming the
|
|
3640
3678
|
// arguments into JSI values and calling the callback.
|
|
3641
3679
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3642
3680
|
callInvoker,
|
|
3643
3681
|
callbackValue
|
|
3644
3682
|
, rs_uniffiHandle
|
|
3645
|
-
,
|
|
3683
|
+
, rs_txid
|
|
3646
3684
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3647
3685
|
body(rt, callInvoker, callbackValue
|
|
3648
3686
|
, rs_uniffiHandle
|
|
3649
|
-
,
|
|
3687
|
+
, rs_txid
|
|
3650
3688
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3651
3689
|
};
|
|
3652
3690
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -3663,11 +3701,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
|
|
|
3663
3701
|
// then the pointer will no longer be left dangling.
|
|
3664
3702
|
rsLambda = nullptr;
|
|
3665
3703
|
}
|
|
3666
|
-
} // namespace uniffi::bark::cb::
|
|
3667
|
-
// Implementation of
|
|
3704
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3705
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod6 for vtable field get_spending_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3668
3706
|
|
|
3669
3707
|
|
|
3670
|
-
// Callback function: uniffi::bark::cb::
|
|
3708
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
|
|
3671
3709
|
//
|
|
3672
3710
|
// We have the following constraints:
|
|
3673
3711
|
// - we need to pass a function pointer to Rust.
|
|
@@ -3679,7 +3717,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
|
|
|
3679
3717
|
//
|
|
3680
3718
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
3681
3719
|
// future.
|
|
3682
|
-
namespace uniffi::bark::cb::
|
|
3720
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
3683
3721
|
using namespace facebook;
|
|
3684
3722
|
|
|
3685
3723
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -3692,13 +3730,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3692
3730
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3693
3731
|
std::shared_ptr<jsi::Value> callbackValue
|
|
3694
3732
|
,uint64_t rs_uniffiHandle
|
|
3695
|
-
,RustBuffer
|
|
3733
|
+
,RustBuffer rs_outpoint
|
|
3696
3734
|
,RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3697
3735
|
|
|
3698
3736
|
// Convert the arguments from Rust, into jsi::Values.
|
|
3699
3737
|
// We'll use the Bridging class to do this…
|
|
3700
3738
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3701
|
-
auto
|
|
3739
|
+
auto js_outpoint = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_outpoint);
|
|
3702
3740
|
|
|
3703
3741
|
// Now we are ready to call the callback.
|
|
3704
3742
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -3706,7 +3744,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3706
3744
|
try {
|
|
3707
3745
|
// Getting the callback function
|
|
3708
3746
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3709
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
3747
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_outpoint
|
|
3710
3748
|
);
|
|
3711
3749
|
|
|
3712
3750
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -3727,13 +3765,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3727
3765
|
rt, callInvoker, uniffiResult
|
|
3728
3766
|
);
|
|
3729
3767
|
} catch (const jsi::JSError &error) {
|
|
3730
|
-
std::cout << "Error in callback
|
|
3768
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6: "
|
|
3731
3769
|
<< error.what() << std::endl;
|
|
3732
3770
|
throw error;
|
|
3733
3771
|
}
|
|
3734
3772
|
}
|
|
3735
3773
|
|
|
3736
|
-
static void callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
3774
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_outpoint, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3737
3775
|
// If the runtime has shutdown, then there is no point in trying to
|
|
3738
3776
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3739
3777
|
//
|
|
@@ -3751,12 +3789,12 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3751
3789
|
// are all in the lambda.
|
|
3752
3790
|
rsLambda(
|
|
3753
3791
|
rs_uniffiHandle,
|
|
3754
|
-
|
|
3792
|
+
rs_outpoint,
|
|
3755
3793
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
3756
3794
|
}
|
|
3757
3795
|
|
|
3758
|
-
[[maybe_unused]] static
|
|
3759
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
3796
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
|
|
3797
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3760
3798
|
jsi::Runtime &rt,
|
|
3761
3799
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3762
3800
|
const jsi::Value &value) {
|
|
@@ -3774,18 +3812,18 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3774
3812
|
}
|
|
3775
3813
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3776
3814
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3777
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer
|
|
3815
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_outpoint, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3778
3816
|
// We immediately make a lambda which will do the work of transforming the
|
|
3779
3817
|
// arguments into JSI values and calling the callback.
|
|
3780
3818
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3781
3819
|
callInvoker,
|
|
3782
3820
|
callbackValue
|
|
3783
3821
|
, rs_uniffiHandle
|
|
3784
|
-
,
|
|
3822
|
+
, rs_outpoint
|
|
3785
3823
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3786
3824
|
body(rt, callInvoker, callbackValue
|
|
3787
3825
|
, rs_uniffiHandle
|
|
3788
|
-
,
|
|
3826
|
+
, rs_outpoint
|
|
3789
3827
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3790
3828
|
};
|
|
3791
3829
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -3802,11 +3840,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3802
3840
|
// then the pointer will no longer be left dangling.
|
|
3803
3841
|
rsLambda = nullptr;
|
|
3804
3842
|
}
|
|
3805
|
-
} // namespace uniffi::bark::cb::
|
|
3806
|
-
// Implementation of
|
|
3843
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3844
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod7 for vtable field make_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3807
3845
|
|
|
3808
3846
|
|
|
3809
|
-
// Callback function: uniffi::bark::cb::
|
|
3847
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
|
|
3810
3848
|
//
|
|
3811
3849
|
// We have the following constraints:
|
|
3812
3850
|
// - we need to pass a function pointer to Rust.
|
|
@@ -3818,7 +3856,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3818
3856
|
//
|
|
3819
3857
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
3820
3858
|
// future.
|
|
3821
|
-
namespace uniffi::bark::cb::
|
|
3859
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
3822
3860
|
using namespace facebook;
|
|
3823
3861
|
|
|
3824
3862
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -3831,13 +3869,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3831
3869
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3832
3870
|
std::shared_ptr<jsi::Value> callbackValue
|
|
3833
3871
|
,uint64_t rs_uniffiHandle
|
|
3834
|
-
,RustBuffer
|
|
3872
|
+
,RustBuffer rs_params
|
|
3835
3873
|
,RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3836
3874
|
|
|
3837
3875
|
// Convert the arguments from Rust, into jsi::Values.
|
|
3838
3876
|
// We'll use the Bridging class to do this…
|
|
3839
3877
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3840
|
-
auto
|
|
3878
|
+
auto js_params = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_params);
|
|
3841
3879
|
|
|
3842
3880
|
// Now we are ready to call the callback.
|
|
3843
3881
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -3845,7 +3883,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3845
3883
|
try {
|
|
3846
3884
|
// Getting the callback function
|
|
3847
3885
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3848
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
3886
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_params
|
|
3849
3887
|
);
|
|
3850
3888
|
|
|
3851
3889
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -3866,13 +3904,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3866
3904
|
rt, callInvoker, uniffiResult
|
|
3867
3905
|
);
|
|
3868
3906
|
} catch (const jsi::JSError &error) {
|
|
3869
|
-
std::cout << "Error in callback
|
|
3907
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7: "
|
|
3870
3908
|
<< error.what() << std::endl;
|
|
3871
3909
|
throw error;
|
|
3872
3910
|
}
|
|
3873
3911
|
}
|
|
3874
3912
|
|
|
3875
|
-
static void callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
3913
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_params, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3876
3914
|
// If the runtime has shutdown, then there is no point in trying to
|
|
3877
3915
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3878
3916
|
//
|
|
@@ -3890,12 +3928,12 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3890
3928
|
// are all in the lambda.
|
|
3891
3929
|
rsLambda(
|
|
3892
3930
|
rs_uniffiHandle,
|
|
3893
|
-
|
|
3931
|
+
rs_params,
|
|
3894
3932
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
3895
3933
|
}
|
|
3896
3934
|
|
|
3897
|
-
[[maybe_unused]] static
|
|
3898
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
3935
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
|
|
3936
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3899
3937
|
jsi::Runtime &rt,
|
|
3900
3938
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3901
3939
|
const jsi::Value &value) {
|
|
@@ -3913,18 +3951,18 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3913
3951
|
}
|
|
3914
3952
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3915
3953
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3916
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer
|
|
3954
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_params, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3917
3955
|
// We immediately make a lambda which will do the work of transforming the
|
|
3918
3956
|
// arguments into JSI values and calling the callback.
|
|
3919
3957
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3920
3958
|
callInvoker,
|
|
3921
3959
|
callbackValue
|
|
3922
3960
|
, rs_uniffiHandle
|
|
3923
|
-
,
|
|
3961
|
+
, rs_params
|
|
3924
3962
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3925
3963
|
body(rt, callInvoker, callbackValue
|
|
3926
3964
|
, rs_uniffiHandle
|
|
3927
|
-
,
|
|
3965
|
+
, rs_params
|
|
3928
3966
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3929
3967
|
};
|
|
3930
3968
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -3941,11 +3979,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3941
3979
|
// then the pointer will no longer be left dangling.
|
|
3942
3980
|
rsLambda = nullptr;
|
|
3943
3981
|
}
|
|
3944
|
-
} // namespace uniffi::bark::cb::
|
|
3945
|
-
// Implementation of
|
|
3982
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3983
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod8 for vtable field store_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3946
3984
|
|
|
3947
3985
|
|
|
3948
|
-
// Callback function: uniffi::bark::cb::
|
|
3986
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
|
|
3949
3987
|
//
|
|
3950
3988
|
// We have the following constraints:
|
|
3951
3989
|
// - we need to pass a function pointer to Rust.
|
|
@@ -3957,12 +3995,12 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3957
3995
|
//
|
|
3958
3996
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
3959
3997
|
// future.
|
|
3960
|
-
namespace uniffi::bark::cb::
|
|
3998
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
3961
3999
|
using namespace facebook;
|
|
3962
4000
|
|
|
3963
4001
|
// We need to store a lambda in a global so we can call it from
|
|
3964
4002
|
// a function pointer. The function pointer is passed to Rust.
|
|
3965
|
-
static std::function<void(uint64_t, RustBuffer,
|
|
4003
|
+
static std::function<void(uint64_t, RustBuffer, void *, RustCallStatus*)> rsLambda = nullptr;
|
|
3966
4004
|
|
|
3967
4005
|
// This is the main body of the callback. It's called from the lambda,
|
|
3968
4006
|
// which itself is called from the callback function which is passed to Rust.
|
|
@@ -3970,13 +4008,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
3970
4008
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3971
4009
|
std::shared_ptr<jsi::Value> callbackValue
|
|
3972
4010
|
,uint64_t rs_uniffiHandle
|
|
3973
|
-
,RustBuffer
|
|
3974
|
-
,
|
|
4011
|
+
,RustBuffer rs_txHex
|
|
4012
|
+
,void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3975
4013
|
|
|
3976
4014
|
// Convert the arguments from Rust, into jsi::Values.
|
|
3977
4015
|
// We'll use the Bridging class to do this…
|
|
3978
4016
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3979
|
-
auto
|
|
4017
|
+
auto js_txHex = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_txHex);
|
|
3980
4018
|
|
|
3981
4019
|
// Now we are ready to call the callback.
|
|
3982
4020
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -3984,7 +4022,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
3984
4022
|
try {
|
|
3985
4023
|
// Getting the callback function
|
|
3986
4024
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3987
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
4025
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txHex
|
|
3988
4026
|
);
|
|
3989
4027
|
|
|
3990
4028
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -3996,22 +4034,14 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
3996
4034
|
}
|
|
3997
4035
|
|
|
3998
4036
|
|
|
3999
|
-
// return type is RustBuffer(None)
|
|
4000
|
-
// Finally, we need to copy the return value back into the Rust pointer.
|
|
4001
|
-
*rs_uniffiOutReturn =
|
|
4002
|
-
uniffi::bark::Bridging<
|
|
4003
|
-
ReferenceHolder<RustBuffer>
|
|
4004
|
-
>::fromJs(
|
|
4005
|
-
rt, callInvoker, uniffiResult
|
|
4006
|
-
);
|
|
4007
4037
|
} catch (const jsi::JSError &error) {
|
|
4008
|
-
std::cout << "Error in callback
|
|
4038
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8: "
|
|
4009
4039
|
<< error.what() << std::endl;
|
|
4010
4040
|
throw error;
|
|
4011
4041
|
}
|
|
4012
4042
|
}
|
|
4013
4043
|
|
|
4014
|
-
static void callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
4044
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_txHex, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
4015
4045
|
// If the runtime has shutdown, then there is no point in trying to
|
|
4016
4046
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
4017
4047
|
//
|
|
@@ -4029,12 +4059,12 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
4029
4059
|
// are all in the lambda.
|
|
4030
4060
|
rsLambda(
|
|
4031
4061
|
rs_uniffiHandle,
|
|
4032
|
-
|
|
4062
|
+
rs_txHex,
|
|
4033
4063
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
4034
4064
|
}
|
|
4035
4065
|
|
|
4036
|
-
[[maybe_unused]] static
|
|
4037
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
4066
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
|
|
4067
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
4038
4068
|
jsi::Runtime &rt,
|
|
4039
4069
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
4040
4070
|
const jsi::Value &value) {
|
|
@@ -4052,18 +4082,18 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
4052
4082
|
}
|
|
4053
4083
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
4054
4084
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
4055
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer
|
|
4085
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_txHex, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
4056
4086
|
// We immediately make a lambda which will do the work of transforming the
|
|
4057
4087
|
// arguments into JSI values and calling the callback.
|
|
4058
4088
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
4059
4089
|
callInvoker,
|
|
4060
4090
|
callbackValue
|
|
4061
4091
|
, rs_uniffiHandle
|
|
4062
|
-
,
|
|
4092
|
+
, rs_txHex
|
|
4063
4093
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
4064
4094
|
body(rt, callInvoker, callbackValue
|
|
4065
4095
|
, rs_uniffiHandle
|
|
4066
|
-
,
|
|
4096
|
+
, rs_txHex
|
|
4067
4097
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
4068
4098
|
};
|
|
4069
4099
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -4080,11 +4110,71 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
4080
4110
|
// then the pointer will no longer be left dangling.
|
|
4081
4111
|
rsLambda = nullptr;
|
|
4082
4112
|
}
|
|
4083
|
-
} // namespace uniffi::bark::cb::
|
|
4084
|
-
|
|
4113
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
4114
|
+
namespace uniffi::bark {
|
|
4115
|
+
using namespace facebook;
|
|
4116
|
+
using CallInvoker = uniffi_runtime::UniffiCallInvoker;
|
|
4117
|
+
|
|
4118
|
+
template <> struct Bridging<UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks> {
|
|
4119
|
+
static UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks fromJs(jsi::Runtime &rt,
|
|
4120
|
+
std::shared_ptr<CallInvoker> callInvoker,
|
|
4121
|
+
const jsi::Value &jsValue
|
|
4122
|
+
) {
|
|
4123
|
+
// Check if the input is an object
|
|
4124
|
+
if (!jsValue.isObject()) {
|
|
4125
|
+
throw jsi::JSError(rt, "Expected an object for UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks");
|
|
4126
|
+
}
|
|
4127
|
+
|
|
4128
|
+
// Get the object from the jsi::Value
|
|
4129
|
+
auto jsObject = jsValue.getObject(rt);
|
|
4085
4130
|
|
|
4131
|
+
// Create the vtable struct
|
|
4132
|
+
UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks rsObject;
|
|
4086
4133
|
|
|
4087
|
-
//
|
|
4134
|
+
// Create the vtable from the js callbacks.
|
|
4135
|
+
rsObject.uniffi_free = uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free::makeCallbackFunction(
|
|
4136
|
+
rt, callInvoker, jsObject.getProperty(rt, "uniffiFree")
|
|
4137
|
+
);
|
|
4138
|
+
rsObject.uniffi_clone = uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4139
|
+
rt, callInvoker, jsObject.getProperty(rt, "uniffiClone")
|
|
4140
|
+
);
|
|
4141
|
+
rsObject.get_balance = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4142
|
+
rt, callInvoker, jsObject.getProperty(rt, "getBalance")
|
|
4143
|
+
);
|
|
4144
|
+
rsObject.prepare_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4145
|
+
rt, callInvoker, jsObject.getProperty(rt, "prepareTx")
|
|
4146
|
+
);
|
|
4147
|
+
rsObject.prepare_drain_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4148
|
+
rt, callInvoker, jsObject.getProperty(rt, "prepareDrainTx")
|
|
4149
|
+
);
|
|
4150
|
+
rsObject.finish_psbt = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4151
|
+
rt, callInvoker, jsObject.getProperty(rt, "finishPsbt")
|
|
4152
|
+
);
|
|
4153
|
+
rsObject.get_wallet_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4154
|
+
rt, callInvoker, jsObject.getProperty(rt, "getWalletTx")
|
|
4155
|
+
);
|
|
4156
|
+
rsObject.get_wallet_tx_confirmed_block = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4157
|
+
rt, callInvoker, jsObject.getProperty(rt, "getWalletTxConfirmedBlock")
|
|
4158
|
+
);
|
|
4159
|
+
rsObject.get_spending_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4160
|
+
rt, callInvoker, jsObject.getProperty(rt, "getSpendingTx")
|
|
4161
|
+
);
|
|
4162
|
+
rsObject.make_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4163
|
+
rt, callInvoker, jsObject.getProperty(rt, "makeSignedP2aCpfp")
|
|
4164
|
+
);
|
|
4165
|
+
rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4166
|
+
rt, callInvoker, jsObject.getProperty(rt, "storeSignedP2aCpfp")
|
|
4167
|
+
);
|
|
4168
|
+
|
|
4169
|
+
return rsObject;
|
|
4170
|
+
}
|
|
4171
|
+
};
|
|
4172
|
+
|
|
4173
|
+
} // namespace uniffi::bark
|
|
4174
|
+
// Implementation of CallbackInterfaceClone for vtable field uniffi_clone in VTableCallbackInterfaceBarkLogger
|
|
4175
|
+
|
|
4176
|
+
|
|
4177
|
+
// Callback function: uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger::UniffiCallbackInterfaceClone
|
|
4088
4178
|
//
|
|
4089
4179
|
// We have the following constraints:
|
|
4090
4180
|
// - we need to pass a function pointer to Rust.
|
|
@@ -4096,26 +4186,24 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
4096
4186
|
//
|
|
4097
4187
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
4098
4188
|
// future.
|
|
4099
|
-
namespace uniffi::bark::cb::
|
|
4189
|
+
namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger {
|
|
4100
4190
|
using namespace facebook;
|
|
4101
4191
|
|
|
4102
4192
|
// We need to store a lambda in a global so we can call it from
|
|
4103
4193
|
// a function pointer. The function pointer is passed to Rust.
|
|
4104
|
-
static std::function<void(uint64_t,
|
|
4194
|
+
static std::function<void(uint64_t, uint64_t*)> rsLambda = nullptr;
|
|
4105
4195
|
|
|
4106
4196
|
// This is the main body of the callback. It's called from the lambda,
|
|
4107
4197
|
// which itself is called from the callback function which is passed to Rust.
|
|
4108
4198
|
static void body(jsi::Runtime &rt,
|
|
4109
4199
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
4110
4200
|
std::shared_ptr<jsi::Value> callbackValue
|
|
4111
|
-
,uint64_t
|
|
4112
|
-
,
|
|
4113
|
-
,RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
4201
|
+
,uint64_t rs_handle
|
|
4202
|
+
, uint64_t* uniffi_direct_return) {
|
|
4114
4203
|
|
|
4115
4204
|
// Convert the arguments from Rust, into jsi::Values.
|
|
4116
4205
|
// We'll use the Bridging class to do this…
|
|
4117
|
-
auto
|
|
4118
|
-
auto js_params = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_params);
|
|
4206
|
+
auto js_handle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_handle);
|
|
4119
4207
|
|
|
4120
4208
|
// Now we are ready to call the callback.
|
|
4121
4209
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -4123,34 +4211,26 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
4123
4211
|
try {
|
|
4124
4212
|
// Getting the callback function
|
|
4125
4213
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
4126
|
-
auto uniffiResult = cb.call(rt,
|
|
4214
|
+
auto uniffiResult = cb.call(rt, js_handle
|
|
4127
4215
|
);
|
|
4128
4216
|
|
|
4129
|
-
|
|
4130
|
-
uniffi::bark::Bridging<RustCallStatus>::copyFromJs(rt, callInvoker, uniffiResult, uniffi_call_status);
|
|
4131
|
-
|
|
4132
|
-
if (uniffi_call_status->code != UNIFFI_CALL_STATUS_OK) {
|
|
4133
|
-
// The JS callback finished abnormally, so we cannot retrieve the return value.
|
|
4134
|
-
return;
|
|
4135
|
-
}
|
|
4217
|
+
|
|
4136
4218
|
|
|
4137
4219
|
|
|
4138
|
-
// return
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
uniffi::bark::Bridging<
|
|
4142
|
-
ReferenceHolder<RustBuffer>
|
|
4143
|
-
>::fromJs(
|
|
4220
|
+
// Write the direct return value back to the caller.
|
|
4221
|
+
if (uniffi_direct_return != nullptr) {
|
|
4222
|
+
*uniffi_direct_return = uniffi_jsi::Bridging<uint64_t>::fromJs(
|
|
4144
4223
|
rt, callInvoker, uniffiResult
|
|
4145
4224
|
);
|
|
4225
|
+
}
|
|
4146
4226
|
} catch (const jsi::JSError &error) {
|
|
4147
|
-
std::cout << "Error in callback
|
|
4227
|
+
std::cout << "Error in callback UniffiCallbackInterfaceClone: "
|
|
4148
4228
|
<< error.what() << std::endl;
|
|
4149
4229
|
throw error;
|
|
4150
4230
|
}
|
|
4151
4231
|
}
|
|
4152
4232
|
|
|
4153
|
-
static
|
|
4233
|
+
static uint64_t callback(uint64_t rs_handle) {
|
|
4154
4234
|
// If the runtime has shutdown, then there is no point in trying to
|
|
4155
4235
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
4156
4236
|
//
|
|
@@ -4161,19 +4241,20 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
4161
4241
|
if (rsLambda == nullptr) {
|
|
4162
4242
|
// This only occurs when destructors are calling into Rust free/drop,
|
|
4163
4243
|
// which causes the JS callback to be dropped.
|
|
4164
|
-
return;
|
|
4244
|
+
return 0;
|
|
4165
4245
|
}
|
|
4246
|
+
uint64_t uniffi_result = 0;
|
|
4166
4247
|
|
|
4167
4248
|
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
4168
4249
|
// are all in the lambda.
|
|
4169
4250
|
rsLambda(
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4251
|
+
rs_handle,
|
|
4252
|
+
&uniffi_result);
|
|
4253
|
+
return uniffi_result;
|
|
4173
4254
|
}
|
|
4174
4255
|
|
|
4175
|
-
[[maybe_unused]] static
|
|
4176
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
4256
|
+
[[maybe_unused]] static UniffiCallbackInterfaceClone
|
|
4257
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger
|
|
4177
4258
|
jsi::Runtime &rt,
|
|
4178
4259
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
4179
4260
|
const jsi::Value &value) {
|
|
@@ -4191,19 +4272,15 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
4191
4272
|
}
|
|
4192
4273
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
4193
4274
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
4194
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t
|
|
4275
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_handle, uint64_t* uniffi_direct_return) {
|
|
4195
4276
|
// We immediately make a lambda which will do the work of transforming the
|
|
4196
4277
|
// arguments into JSI values and calling the callback.
|
|
4197
4278
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
4198
4279
|
callInvoker,
|
|
4199
4280
|
callbackValue
|
|
4200
|
-
,
|
|
4201
|
-
, rs_params
|
|
4202
|
-
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
4281
|
+
, rs_handle, uniffi_direct_return](jsi::Runtime &rt) mutable {
|
|
4203
4282
|
body(rt, callInvoker, callbackValue
|
|
4204
|
-
,
|
|
4205
|
-
, rs_params
|
|
4206
|
-
, rs_uniffiOutReturn, uniffi_call_status);
|
|
4283
|
+
, rs_handle, uniffi_direct_return);
|
|
4207
4284
|
};
|
|
4208
4285
|
// We'll then call that lambda from the callInvoker which will
|
|
4209
4286
|
// look after calling it on the correct thread.
|
|
@@ -4219,11 +4296,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
4219
4296
|
// then the pointer will no longer be left dangling.
|
|
4220
4297
|
rsLambda = nullptr;
|
|
4221
4298
|
}
|
|
4222
|
-
} // namespace uniffi::bark::cb::
|
|
4223
|
-
// Implementation of
|
|
4299
|
+
} // namespace uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger
|
|
4300
|
+
// Implementation of CallbackInterfaceBarkLoggerMethod0 for vtable field log in VTableCallbackInterfaceBarkLogger
|
|
4224
4301
|
|
|
4225
4302
|
|
|
4226
|
-
// Callback function: uniffi::bark::cb::
|
|
4303
|
+
// Callback function: uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger::UniffiCallbackInterfaceBarkLoggerMethod0
|
|
4227
4304
|
//
|
|
4228
4305
|
// We have the following constraints:
|
|
4229
4306
|
// - we need to pass a function pointer to Rust.
|
|
@@ -4235,12 +4312,12 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
4235
4312
|
//
|
|
4236
4313
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
4237
4314
|
// future.
|
|
4238
|
-
namespace uniffi::bark::cb::
|
|
4315
|
+
namespace uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger {
|
|
4239
4316
|
using namespace facebook;
|
|
4240
4317
|
|
|
4241
4318
|
// We need to store a lambda in a global so we can call it from
|
|
4242
4319
|
// a function pointer. The function pointer is passed to Rust.
|
|
4243
|
-
static std::function<void(uint64_t, RustBuffer, void *, RustCallStatus*)> rsLambda = nullptr;
|
|
4320
|
+
static std::function<void(uint64_t, RustBuffer, RustBuffer, RustBuffer, void *, RustCallStatus*)> rsLambda = nullptr;
|
|
4244
4321
|
|
|
4245
4322
|
// This is the main body of the callback. It's called from the lambda,
|
|
4246
4323
|
// which itself is called from the callback function which is passed to Rust.
|
|
@@ -4248,13 +4325,17 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4248
4325
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
4249
4326
|
std::shared_ptr<jsi::Value> callbackValue
|
|
4250
4327
|
,uint64_t rs_uniffiHandle
|
|
4251
|
-
,RustBuffer
|
|
4328
|
+
,RustBuffer rs_level
|
|
4329
|
+
,RustBuffer rs_target
|
|
4330
|
+
,RustBuffer rs_message
|
|
4252
4331
|
,void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
4253
4332
|
|
|
4254
4333
|
// Convert the arguments from Rust, into jsi::Values.
|
|
4255
4334
|
// We'll use the Bridging class to do this…
|
|
4256
4335
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
4257
|
-
auto
|
|
4336
|
+
auto js_level = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_level);
|
|
4337
|
+
auto js_target = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_target);
|
|
4338
|
+
auto js_message = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_message);
|
|
4258
4339
|
|
|
4259
4340
|
// Now we are ready to call the callback.
|
|
4260
4341
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -4262,7 +4343,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4262
4343
|
try {
|
|
4263
4344
|
// Getting the callback function
|
|
4264
4345
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
4265
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
4346
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_level, js_target, js_message
|
|
4266
4347
|
);
|
|
4267
4348
|
|
|
4268
4349
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -4275,13 +4356,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4275
4356
|
|
|
4276
4357
|
|
|
4277
4358
|
} catch (const jsi::JSError &error) {
|
|
4278
|
-
std::cout << "Error in callback
|
|
4359
|
+
std::cout << "Error in callback UniffiCallbackInterfaceBarkLoggerMethod0: "
|
|
4279
4360
|
<< error.what() << std::endl;
|
|
4280
4361
|
throw error;
|
|
4281
4362
|
}
|
|
4282
4363
|
}
|
|
4283
4364
|
|
|
4284
|
-
static void callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
4365
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_level, RustBuffer rs_target, RustBuffer rs_message, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
4285
4366
|
// If the runtime has shutdown, then there is no point in trying to
|
|
4286
4367
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
4287
4368
|
//
|
|
@@ -4299,12 +4380,14 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4299
4380
|
// are all in the lambda.
|
|
4300
4381
|
rsLambda(
|
|
4301
4382
|
rs_uniffiHandle,
|
|
4302
|
-
|
|
4383
|
+
rs_level,
|
|
4384
|
+
rs_target,
|
|
4385
|
+
rs_message,
|
|
4303
4386
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
4304
4387
|
}
|
|
4305
4388
|
|
|
4306
|
-
[[maybe_unused]] static
|
|
4307
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
4389
|
+
[[maybe_unused]] static UniffiCallbackInterfaceBarkLoggerMethod0
|
|
4390
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger
|
|
4308
4391
|
jsi::Runtime &rt,
|
|
4309
4392
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
4310
4393
|
const jsi::Value &value) {
|
|
@@ -4322,18 +4405,22 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4322
4405
|
}
|
|
4323
4406
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
4324
4407
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
4325
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer
|
|
4408
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_level, RustBuffer rs_target, RustBuffer rs_message, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
4326
4409
|
// We immediately make a lambda which will do the work of transforming the
|
|
4327
4410
|
// arguments into JSI values and calling the callback.
|
|
4328
4411
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
4329
4412
|
callInvoker,
|
|
4330
4413
|
callbackValue
|
|
4331
4414
|
, rs_uniffiHandle
|
|
4332
|
-
,
|
|
4415
|
+
, rs_level
|
|
4416
|
+
, rs_target
|
|
4417
|
+
, rs_message
|
|
4333
4418
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
4334
4419
|
body(rt, callInvoker, callbackValue
|
|
4335
4420
|
, rs_uniffiHandle
|
|
4336
|
-
,
|
|
4421
|
+
, rs_level
|
|
4422
|
+
, rs_target
|
|
4423
|
+
, rs_message
|
|
4337
4424
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
4338
4425
|
};
|
|
4339
4426
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -4350,60 +4437,36 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4350
4437
|
// then the pointer will no longer be left dangling.
|
|
4351
4438
|
rsLambda = nullptr;
|
|
4352
4439
|
}
|
|
4353
|
-
} // namespace uniffi::bark::cb::
|
|
4440
|
+
} // namespace uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger
|
|
4354
4441
|
namespace uniffi::bark {
|
|
4355
4442
|
using namespace facebook;
|
|
4356
4443
|
using CallInvoker = uniffi_runtime::UniffiCallInvoker;
|
|
4357
4444
|
|
|
4358
|
-
template <> struct Bridging<
|
|
4359
|
-
static
|
|
4445
|
+
template <> struct Bridging<UniffiVTableCallbackInterfaceBarkLogger> {
|
|
4446
|
+
static UniffiVTableCallbackInterfaceBarkLogger fromJs(jsi::Runtime &rt,
|
|
4360
4447
|
std::shared_ptr<CallInvoker> callInvoker,
|
|
4361
4448
|
const jsi::Value &jsValue
|
|
4362
4449
|
) {
|
|
4363
4450
|
// Check if the input is an object
|
|
4364
4451
|
if (!jsValue.isObject()) {
|
|
4365
|
-
throw jsi::JSError(rt, "Expected an object for
|
|
4452
|
+
throw jsi::JSError(rt, "Expected an object for UniffiVTableCallbackInterfaceBarkLogger");
|
|
4366
4453
|
}
|
|
4367
4454
|
|
|
4368
4455
|
// Get the object from the jsi::Value
|
|
4369
4456
|
auto jsObject = jsValue.getObject(rt);
|
|
4370
4457
|
|
|
4371
4458
|
// Create the vtable struct
|
|
4372
|
-
|
|
4459
|
+
UniffiVTableCallbackInterfaceBarkLogger rsObject;
|
|
4373
4460
|
|
|
4374
4461
|
// Create the vtable from the js callbacks.
|
|
4375
|
-
rsObject.uniffi_free = uniffi::bark::st::
|
|
4462
|
+
rsObject.uniffi_free = uniffi::bark::st::vtablecallbackinterfacebarklogger::vtablecallbackinterfacebarklogger::free::makeCallbackFunction(
|
|
4376
4463
|
rt, callInvoker, jsObject.getProperty(rt, "uniffiFree")
|
|
4377
4464
|
);
|
|
4378
|
-
rsObject.uniffi_clone = uniffi::bark::cb::callbackinterfaceclone::
|
|
4465
|
+
rsObject.uniffi_clone = uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger::makeCallbackFunction(
|
|
4379
4466
|
rt, callInvoker, jsObject.getProperty(rt, "uniffiClone")
|
|
4380
4467
|
);
|
|
4381
|
-
rsObject.
|
|
4382
|
-
rt, callInvoker, jsObject.getProperty(rt, "
|
|
4383
|
-
);
|
|
4384
|
-
rsObject.prepare_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4385
|
-
rt, callInvoker, jsObject.getProperty(rt, "prepareTx")
|
|
4386
|
-
);
|
|
4387
|
-
rsObject.prepare_drain_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod2::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4388
|
-
rt, callInvoker, jsObject.getProperty(rt, "prepareDrainTx")
|
|
4389
|
-
);
|
|
4390
|
-
rsObject.finish_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4391
|
-
rt, callInvoker, jsObject.getProperty(rt, "finishTx")
|
|
4392
|
-
);
|
|
4393
|
-
rsObject.get_wallet_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4394
|
-
rt, callInvoker, jsObject.getProperty(rt, "getWalletTx")
|
|
4395
|
-
);
|
|
4396
|
-
rsObject.get_wallet_tx_confirmed_block = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4397
|
-
rt, callInvoker, jsObject.getProperty(rt, "getWalletTxConfirmedBlock")
|
|
4398
|
-
);
|
|
4399
|
-
rsObject.get_spending_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4400
|
-
rt, callInvoker, jsObject.getProperty(rt, "getSpendingTx")
|
|
4401
|
-
);
|
|
4402
|
-
rsObject.make_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4403
|
-
rt, callInvoker, jsObject.getProperty(rt, "makeSignedP2aCpfp")
|
|
4404
|
-
);
|
|
4405
|
-
rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4406
|
-
rt, callInvoker, jsObject.getProperty(rt, "storeSignedP2aCpfp")
|
|
4468
|
+
rsObject.log = uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger::makeCallbackFunction(
|
|
4469
|
+
rt, callInvoker, jsObject.getProperty(rt, "log")
|
|
4407
4470
|
);
|
|
4408
4471
|
|
|
4409
4472
|
return rsObject;
|
|
@@ -4498,6 +4561,134 @@ NativeBark::NativeBark(
|
|
|
4498
4561
|
return this->cpp_uniffi_bark_ffi_fn_method_notificationholder_next_notification(rt, thisVal, args, count);
|
|
4499
4562
|
}
|
|
4500
4563
|
);
|
|
4564
|
+
props["ubrn_uniffi_bark_ffi_fn_clone_customonchainwalletcallbacks"] = jsi::Function::createFromHostFunction(
|
|
4565
|
+
rt,
|
|
4566
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_clone_customonchainwalletcallbacks"),
|
|
4567
|
+
1,
|
|
4568
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4569
|
+
return this->cpp_uniffi_bark_ffi_fn_clone_customonchainwalletcallbacks(rt, thisVal, args, count);
|
|
4570
|
+
}
|
|
4571
|
+
);
|
|
4572
|
+
props["ubrn_uniffi_bark_ffi_fn_free_customonchainwalletcallbacks"] = jsi::Function::createFromHostFunction(
|
|
4573
|
+
rt,
|
|
4574
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_free_customonchainwalletcallbacks"),
|
|
4575
|
+
1,
|
|
4576
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4577
|
+
return this->cpp_uniffi_bark_ffi_fn_free_customonchainwalletcallbacks(rt, thisVal, args, count);
|
|
4578
|
+
}
|
|
4579
|
+
);
|
|
4580
|
+
props["ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks"] = jsi::Function::createFromHostFunction(
|
|
4581
|
+
rt,
|
|
4582
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks"),
|
|
4583
|
+
1,
|
|
4584
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4585
|
+
return this->cpp_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(rt, thisVal, args, count);
|
|
4586
|
+
}
|
|
4587
|
+
);
|
|
4588
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance"] = jsi::Function::createFromHostFunction(
|
|
4589
|
+
rt,
|
|
4590
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance"),
|
|
4591
|
+
1,
|
|
4592
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4593
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(rt, thisVal, args, count);
|
|
4594
|
+
}
|
|
4595
|
+
);
|
|
4596
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx"] = jsi::Function::createFromHostFunction(
|
|
4597
|
+
rt,
|
|
4598
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx"),
|
|
4599
|
+
3,
|
|
4600
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4601
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(rt, thisVal, args, count);
|
|
4602
|
+
}
|
|
4603
|
+
);
|
|
4604
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx"] = jsi::Function::createFromHostFunction(
|
|
4605
|
+
rt,
|
|
4606
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx"),
|
|
4607
|
+
3,
|
|
4608
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4609
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(rt, thisVal, args, count);
|
|
4610
|
+
}
|
|
4611
|
+
);
|
|
4612
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt"] = jsi::Function::createFromHostFunction(
|
|
4613
|
+
rt,
|
|
4614
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt"),
|
|
4615
|
+
2,
|
|
4616
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4617
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(rt, thisVal, args, count);
|
|
4618
|
+
}
|
|
4619
|
+
);
|
|
4620
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx"] = jsi::Function::createFromHostFunction(
|
|
4621
|
+
rt,
|
|
4622
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx"),
|
|
4623
|
+
2,
|
|
4624
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4625
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(rt, thisVal, args, count);
|
|
4626
|
+
}
|
|
4627
|
+
);
|
|
4628
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"] = jsi::Function::createFromHostFunction(
|
|
4629
|
+
rt,
|
|
4630
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"),
|
|
4631
|
+
2,
|
|
4632
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4633
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(rt, thisVal, args, count);
|
|
4634
|
+
}
|
|
4635
|
+
);
|
|
4636
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx"] = jsi::Function::createFromHostFunction(
|
|
4637
|
+
rt,
|
|
4638
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx"),
|
|
4639
|
+
2,
|
|
4640
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4641
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(rt, thisVal, args, count);
|
|
4642
|
+
}
|
|
4643
|
+
);
|
|
4644
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
|
|
4645
|
+
rt,
|
|
4646
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"),
|
|
4647
|
+
2,
|
|
4648
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4649
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(rt, thisVal, args, count);
|
|
4650
|
+
}
|
|
4651
|
+
);
|
|
4652
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
|
|
4653
|
+
rt,
|
|
4654
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp"),
|
|
4655
|
+
2,
|
|
4656
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4657
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(rt, thisVal, args, count);
|
|
4658
|
+
}
|
|
4659
|
+
);
|
|
4660
|
+
props["ubrn_uniffi_bark_ffi_fn_clone_barklogger"] = jsi::Function::createFromHostFunction(
|
|
4661
|
+
rt,
|
|
4662
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_clone_barklogger"),
|
|
4663
|
+
1,
|
|
4664
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4665
|
+
return this->cpp_uniffi_bark_ffi_fn_clone_barklogger(rt, thisVal, args, count);
|
|
4666
|
+
}
|
|
4667
|
+
);
|
|
4668
|
+
props["ubrn_uniffi_bark_ffi_fn_free_barklogger"] = jsi::Function::createFromHostFunction(
|
|
4669
|
+
rt,
|
|
4670
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_free_barklogger"),
|
|
4671
|
+
1,
|
|
4672
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4673
|
+
return this->cpp_uniffi_bark_ffi_fn_free_barklogger(rt, thisVal, args, count);
|
|
4674
|
+
}
|
|
4675
|
+
);
|
|
4676
|
+
props["ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger"] = jsi::Function::createFromHostFunction(
|
|
4677
|
+
rt,
|
|
4678
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger"),
|
|
4679
|
+
1,
|
|
4680
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4681
|
+
return this->cpp_uniffi_bark_ffi_fn_init_callback_vtable_barklogger(rt, thisVal, args, count);
|
|
4682
|
+
}
|
|
4683
|
+
);
|
|
4684
|
+
props["ubrn_uniffi_bark_ffi_fn_method_barklogger_log"] = jsi::Function::createFromHostFunction(
|
|
4685
|
+
rt,
|
|
4686
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_barklogger_log"),
|
|
4687
|
+
4,
|
|
4688
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4689
|
+
return this->cpp_uniffi_bark_ffi_fn_method_barklogger_log(rt, thisVal, args, count);
|
|
4690
|
+
}
|
|
4691
|
+
);
|
|
4501
4692
|
props["ubrn_uniffi_bark_ffi_fn_clone_onchainwallet"] = jsi::Function::createFromHostFunction(
|
|
4502
4693
|
rt,
|
|
4503
4694
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_clone_onchainwallet"),
|
|
@@ -5058,14 +5249,6 @@ NativeBark::NativeBark(
|
|
|
5058
5249
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(rt, thisVal, args, count);
|
|
5059
5250
|
}
|
|
5060
5251
|
);
|
|
5061
|
-
props["ubrn_uniffi_bark_ffi_fn_method_wallet_peak_address"] = jsi::Function::createFromHostFunction(
|
|
5062
|
-
rt,
|
|
5063
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_peak_address"),
|
|
5064
|
-
2,
|
|
5065
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5066
|
-
return this->cpp_uniffi_bark_ffi_fn_method_wallet_peak_address(rt, thisVal, args, count);
|
|
5067
|
-
}
|
|
5068
|
-
);
|
|
5069
5252
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address"] = jsi::Function::createFromHostFunction(
|
|
5070
5253
|
rt,
|
|
5071
5254
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address"),
|
|
@@ -5306,22 +5489,6 @@ NativeBark::NativeBark(
|
|
|
5306
5489
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_vtxos(rt, thisVal, args, count);
|
|
5307
5490
|
}
|
|
5308
5491
|
);
|
|
5309
|
-
props["ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger"] = jsi::Function::createFromHostFunction(
|
|
5310
|
-
rt,
|
|
5311
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger"),
|
|
5312
|
-
1,
|
|
5313
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5314
|
-
return this->cpp_uniffi_bark_ffi_fn_init_callback_vtable_barklogger(rt, thisVal, args, count);
|
|
5315
|
-
}
|
|
5316
|
-
);
|
|
5317
|
-
props["ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks"] = jsi::Function::createFromHostFunction(
|
|
5318
|
-
rt,
|
|
5319
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks"),
|
|
5320
|
-
1,
|
|
5321
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5322
|
-
return this->cpp_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(rt, thisVal, args, count);
|
|
5323
|
-
}
|
|
5324
|
-
);
|
|
5325
5492
|
props["ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt"] = jsi::Function::createFromHostFunction(
|
|
5326
5493
|
rt,
|
|
5327
5494
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt"),
|
|
@@ -5338,14 +5505,6 @@ NativeBark::NativeBark(
|
|
|
5338
5505
|
return this->cpp_uniffi_bark_ffi_fn_func_generate_mnemonic(rt, thisVal, args, count);
|
|
5339
5506
|
}
|
|
5340
5507
|
);
|
|
5341
|
-
props["ubrn_uniffi_bark_ffi_fn_func_set_logger"] = jsi::Function::createFromHostFunction(
|
|
5342
|
-
rt,
|
|
5343
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_func_set_logger"),
|
|
5344
|
-
2,
|
|
5345
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5346
|
-
return this->cpp_uniffi_bark_ffi_fn_func_set_logger(rt, thisVal, args, count);
|
|
5347
|
-
}
|
|
5348
|
-
);
|
|
5349
5508
|
props["ubrn_uniffi_bark_ffi_fn_func_validate_ark_address"] = jsi::Function::createFromHostFunction(
|
|
5350
5509
|
rt,
|
|
5351
5510
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_func_validate_ark_address"),
|
|
@@ -5362,6 +5521,14 @@ NativeBark::NativeBark(
|
|
|
5362
5521
|
return this->cpp_uniffi_bark_ffi_fn_func_validate_mnemonic(rt, thisVal, args, count);
|
|
5363
5522
|
}
|
|
5364
5523
|
);
|
|
5524
|
+
props["ubrn_uniffi_bark_ffi_fn_func_set_logger"] = jsi::Function::createFromHostFunction(
|
|
5525
|
+
rt,
|
|
5526
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_func_set_logger"),
|
|
5527
|
+
2,
|
|
5528
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5529
|
+
return this->cpp_uniffi_bark_ffi_fn_func_set_logger(rt, thisVal, args, count);
|
|
5530
|
+
}
|
|
5531
|
+
);
|
|
5365
5532
|
props["ubrn_ffi_bark_ffi_rust_future_poll_u8"] = jsi::Function::createFromHostFunction(
|
|
5366
5533
|
rt,
|
|
5367
5534
|
jsi::PropNameID::forAscii(rt, "ubrn_ffi_bark_ffi_rust_future_poll_u8"),
|
|
@@ -5759,47 +5926,127 @@ NativeBark::NativeBark(
|
|
|
5759
5926
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic"),
|
|
5760
5927
|
0,
|
|
5761
5928
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5762
|
-
return this->cpp_uniffi_bark_ffi_checksum_func_generate_mnemonic(rt, thisVal, args, count);
|
|
5929
|
+
return this->cpp_uniffi_bark_ffi_checksum_func_generate_mnemonic(rt, thisVal, args, count);
|
|
5930
|
+
}
|
|
5931
|
+
);
|
|
5932
|
+
props["ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address"] = jsi::Function::createFromHostFunction(
|
|
5933
|
+
rt,
|
|
5934
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address"),
|
|
5935
|
+
0,
|
|
5936
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5937
|
+
return this->cpp_uniffi_bark_ffi_checksum_func_validate_ark_address(rt, thisVal, args, count);
|
|
5938
|
+
}
|
|
5939
|
+
);
|
|
5940
|
+
props["ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic"] = jsi::Function::createFromHostFunction(
|
|
5941
|
+
rt,
|
|
5942
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic"),
|
|
5943
|
+
0,
|
|
5944
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5945
|
+
return this->cpp_uniffi_bark_ffi_checksum_func_validate_mnemonic(rt, thisVal, args, count);
|
|
5946
|
+
}
|
|
5947
|
+
);
|
|
5948
|
+
props["ubrn_uniffi_bark_ffi_checksum_func_set_logger"] = jsi::Function::createFromHostFunction(
|
|
5949
|
+
rt,
|
|
5950
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_func_set_logger"),
|
|
5951
|
+
0,
|
|
5952
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5953
|
+
return this->cpp_uniffi_bark_ffi_checksum_func_set_logger(rt, thisVal, args, count);
|
|
5954
|
+
}
|
|
5955
|
+
);
|
|
5956
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait"] = jsi::Function::createFromHostFunction(
|
|
5957
|
+
rt,
|
|
5958
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait"),
|
|
5959
|
+
0,
|
|
5960
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5961
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait(rt, thisVal, args, count);
|
|
5962
|
+
}
|
|
5963
|
+
);
|
|
5964
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification"] = jsi::Function::createFromHostFunction(
|
|
5965
|
+
rt,
|
|
5966
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification"),
|
|
5967
|
+
0,
|
|
5968
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5969
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_notificationholder_next_notification(rt, thisVal, args, count);
|
|
5970
|
+
}
|
|
5971
|
+
);
|
|
5972
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance"] = jsi::Function::createFromHostFunction(
|
|
5973
|
+
rt,
|
|
5974
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance"),
|
|
5975
|
+
0,
|
|
5976
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5977
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(rt, thisVal, args, count);
|
|
5978
|
+
}
|
|
5979
|
+
);
|
|
5980
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx"] = jsi::Function::createFromHostFunction(
|
|
5981
|
+
rt,
|
|
5982
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx"),
|
|
5983
|
+
0,
|
|
5984
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5985
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(rt, thisVal, args, count);
|
|
5986
|
+
}
|
|
5987
|
+
);
|
|
5988
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx"] = jsi::Function::createFromHostFunction(
|
|
5989
|
+
rt,
|
|
5990
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx"),
|
|
5991
|
+
0,
|
|
5992
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5993
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(rt, thisVal, args, count);
|
|
5994
|
+
}
|
|
5995
|
+
);
|
|
5996
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt"] = jsi::Function::createFromHostFunction(
|
|
5997
|
+
rt,
|
|
5998
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt"),
|
|
5999
|
+
0,
|
|
6000
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6001
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt(rt, thisVal, args, count);
|
|
6002
|
+
}
|
|
6003
|
+
);
|
|
6004
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx"] = jsi::Function::createFromHostFunction(
|
|
6005
|
+
rt,
|
|
6006
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx"),
|
|
6007
|
+
0,
|
|
6008
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6009
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx(rt, thisVal, args, count);
|
|
5763
6010
|
}
|
|
5764
6011
|
);
|
|
5765
|
-
props["
|
|
6012
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"] = jsi::Function::createFromHostFunction(
|
|
5766
6013
|
rt,
|
|
5767
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6014
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"),
|
|
5768
6015
|
0,
|
|
5769
6016
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5770
|
-
return this->
|
|
6017
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(rt, thisVal, args, count);
|
|
5771
6018
|
}
|
|
5772
6019
|
);
|
|
5773
|
-
props["
|
|
6020
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"] = jsi::Function::createFromHostFunction(
|
|
5774
6021
|
rt,
|
|
5775
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6022
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"),
|
|
5776
6023
|
0,
|
|
5777
6024
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5778
|
-
return this->
|
|
6025
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(rt, thisVal, args, count);
|
|
5779
6026
|
}
|
|
5780
6027
|
);
|
|
5781
|
-
props["
|
|
6028
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
|
|
5782
6029
|
rt,
|
|
5783
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6030
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"),
|
|
5784
6031
|
0,
|
|
5785
6032
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5786
|
-
return this->
|
|
6033
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(rt, thisVal, args, count);
|
|
5787
6034
|
}
|
|
5788
6035
|
);
|
|
5789
|
-
props["
|
|
6036
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
|
|
5790
6037
|
rt,
|
|
5791
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6038
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp"),
|
|
5792
6039
|
0,
|
|
5793
6040
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5794
|
-
return this->
|
|
6041
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(rt, thisVal, args, count);
|
|
5795
6042
|
}
|
|
5796
6043
|
);
|
|
5797
|
-
props["
|
|
6044
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_barklogger_log"] = jsi::Function::createFromHostFunction(
|
|
5798
6045
|
rt,
|
|
5799
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6046
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_barklogger_log"),
|
|
5800
6047
|
0,
|
|
5801
6048
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5802
|
-
return this->
|
|
6049
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_barklogger_log(rt, thisVal, args, count);
|
|
5803
6050
|
}
|
|
5804
6051
|
);
|
|
5805
6052
|
props["ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance"] = jsi::Function::createFromHostFunction(
|
|
@@ -6274,14 +6521,6 @@ NativeBark::NativeBark(
|
|
|
6274
6521
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer(rt, thisVal, args, count);
|
|
6275
6522
|
}
|
|
6276
6523
|
);
|
|
6277
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address"] = jsi::Function::createFromHostFunction(
|
|
6278
|
-
rt,
|
|
6279
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address"),
|
|
6280
|
-
0,
|
|
6281
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6282
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_peak_address(rt, thisVal, args, count);
|
|
6283
|
-
}
|
|
6284
|
-
);
|
|
6285
6524
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address"] = jsi::Function::createFromHostFunction(
|
|
6286
6525
|
rt,
|
|
6287
6526
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address"),
|
|
@@ -6578,100 +6817,36 @@ NativeBark::NativeBark(
|
|
|
6578
6817
|
return this->cpp_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain(rt, thisVal, args, count);
|
|
6579
6818
|
}
|
|
6580
6819
|
);
|
|
6581
|
-
props["
|
|
6582
|
-
rt,
|
|
6583
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_barklogger_log"),
|
|
6584
|
-
0,
|
|
6585
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6586
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_barklogger_log(rt, thisVal, args, count);
|
|
6587
|
-
}
|
|
6588
|
-
);
|
|
6589
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance"] = jsi::Function::createFromHostFunction(
|
|
6590
|
-
rt,
|
|
6591
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance"),
|
|
6592
|
-
0,
|
|
6593
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6594
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(rt, thisVal, args, count);
|
|
6595
|
-
}
|
|
6596
|
-
);
|
|
6597
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx"] = jsi::Function::createFromHostFunction(
|
|
6598
|
-
rt,
|
|
6599
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx"),
|
|
6600
|
-
0,
|
|
6601
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6602
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(rt, thisVal, args, count);
|
|
6603
|
-
}
|
|
6604
|
-
);
|
|
6605
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx"] = jsi::Function::createFromHostFunction(
|
|
6606
|
-
rt,
|
|
6607
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx"),
|
|
6608
|
-
0,
|
|
6609
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6610
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(rt, thisVal, args, count);
|
|
6611
|
-
}
|
|
6612
|
-
);
|
|
6613
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx"] = jsi::Function::createFromHostFunction(
|
|
6614
|
-
rt,
|
|
6615
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx"),
|
|
6616
|
-
0,
|
|
6617
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6618
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx(rt, thisVal, args, count);
|
|
6619
|
-
}
|
|
6620
|
-
);
|
|
6621
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx"] = jsi::Function::createFromHostFunction(
|
|
6622
|
-
rt,
|
|
6623
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx"),
|
|
6624
|
-
0,
|
|
6625
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6626
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx(rt, thisVal, args, count);
|
|
6627
|
-
}
|
|
6628
|
-
);
|
|
6629
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"] = jsi::Function::createFromHostFunction(
|
|
6630
|
-
rt,
|
|
6631
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block"),
|
|
6632
|
-
0,
|
|
6633
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6634
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(rt, thisVal, args, count);
|
|
6635
|
-
}
|
|
6636
|
-
);
|
|
6637
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"] = jsi::Function::createFromHostFunction(
|
|
6638
|
-
rt,
|
|
6639
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"),
|
|
6640
|
-
0,
|
|
6641
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6642
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(rt, thisVal, args, count);
|
|
6643
|
-
}
|
|
6644
|
-
);
|
|
6645
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
|
|
6820
|
+
props["ubrn_ffi_bark_ffi_uniffi_contract_version"] = jsi::Function::createFromHostFunction(
|
|
6646
6821
|
rt,
|
|
6647
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6822
|
+
jsi::PropNameID::forAscii(rt, "ubrn_ffi_bark_ffi_uniffi_contract_version"),
|
|
6648
6823
|
0,
|
|
6649
6824
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6650
|
-
return this->
|
|
6825
|
+
return this->cpp_ffi_bark_ffi_uniffi_contract_version(rt, thisVal, args, count);
|
|
6651
6826
|
}
|
|
6652
6827
|
);
|
|
6653
|
-
props["
|
|
6828
|
+
props["ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer"] = jsi::Function::createFromHostFunction(
|
|
6654
6829
|
rt,
|
|
6655
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6656
|
-
|
|
6830
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer"),
|
|
6831
|
+
1,
|
|
6657
6832
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6658
|
-
return this->
|
|
6833
|
+
return this->cpp_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer(rt, thisVal, args, count);
|
|
6659
6834
|
}
|
|
6660
6835
|
);
|
|
6661
|
-
props["
|
|
6836
|
+
props["ubrn_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer"] = jsi::Function::createFromHostFunction(
|
|
6662
6837
|
rt,
|
|
6663
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6664
|
-
|
|
6838
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer"),
|
|
6839
|
+
1,
|
|
6665
6840
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6666
|
-
return this->
|
|
6841
|
+
return this->cpp_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer(rt, thisVal, args, count);
|
|
6667
6842
|
}
|
|
6668
6843
|
);
|
|
6669
|
-
props["
|
|
6844
|
+
props["ubrn_uniffi_internal_fn_method_barklogger_ffi__bless_pointer"] = jsi::Function::createFromHostFunction(
|
|
6670
6845
|
rt,
|
|
6671
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6846
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_barklogger_ffi__bless_pointer"),
|
|
6672
6847
|
1,
|
|
6673
6848
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6674
|
-
return this->
|
|
6849
|
+
return this->cpp_uniffi_internal_fn_method_barklogger_ffi__bless_pointer(rt, thisVal, args, count);
|
|
6675
6850
|
}
|
|
6676
6851
|
);
|
|
6677
6852
|
props["ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer"] = jsi::Function::createFromHostFunction(
|
|
@@ -6730,9 +6905,7 @@ uniffi::bark::cb::rustfuturecontinuationcallback::cleanup();
|
|
|
6730
6905
|
// Cleanup for callback function ForeignFutureDroppedCallback
|
|
6731
6906
|
uniffi::bark::cb::foreignfuturedroppedcallback::cleanup();
|
|
6732
6907
|
// Cleanup for "free" callback function CallbackInterfaceFree
|
|
6733
|
-
uniffi::bark::st::
|
|
6734
|
-
uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger::cleanup();
|
|
6735
|
-
uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger::cleanup();
|
|
6908
|
+
uniffi::bark::st::vtablecallbackinterfacecustomonchainwalletcallbacks::vtablecallbackinterfacecustomonchainwalletcallbacks::free::cleanup();uniffi::bark::st::vtablecallbackinterfacebarklogger::vtablecallbackinterfacebarklogger::free::cleanup();
|
|
6736
6909
|
uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
6737
6910
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod0::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
6738
6911
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod1::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
@@ -6743,6 +6916,8 @@ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtableca
|
|
|
6743
6916
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
6744
6917
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
6745
6918
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
6919
|
+
uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger::cleanup();
|
|
6920
|
+
uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger::cleanup();
|
|
6746
6921
|
}
|
|
6747
6922
|
|
|
6748
6923
|
// Utility functions for serialization/deserialization of strings.
|
|
@@ -6765,6 +6940,24 @@ jsi::Value NativeBark::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(js
|
|
|
6765
6940
|
auto ptrObj = std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
|
|
6766
6941
|
auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
|
|
6767
6942
|
return jsi::Value(rt, obj);
|
|
6943
|
+
}jsi::Value NativeBark::cpp_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6944
|
+
auto pointer = uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
6945
|
+
auto static destructor = [](uint64_t p) {
|
|
6946
|
+
RustCallStatus status = {0};
|
|
6947
|
+
uniffi_bark_ffi_fn_free_customonchainwalletcallbacks(p, &status);
|
|
6948
|
+
};
|
|
6949
|
+
auto ptrObj = std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
|
|
6950
|
+
auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
|
|
6951
|
+
return jsi::Value(rt, obj);
|
|
6952
|
+
}jsi::Value NativeBark::cpp_uniffi_internal_fn_method_barklogger_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6953
|
+
auto pointer = uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
6954
|
+
auto static destructor = [](uint64_t p) {
|
|
6955
|
+
RustCallStatus status = {0};
|
|
6956
|
+
uniffi_bark_ffi_fn_free_barklogger(p, &status);
|
|
6957
|
+
};
|
|
6958
|
+
auto ptrObj = std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
|
|
6959
|
+
auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
|
|
6960
|
+
return jsi::Value(rt, obj);
|
|
6768
6961
|
}jsi::Value NativeBark::cpp_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6769
6962
|
auto pointer = uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
6770
6963
|
auto static destructor = [](uint64_t p) {
|
|
@@ -6785,20 +6978,164 @@ jsi::Value NativeBark::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(js
|
|
|
6785
6978
|
return jsi::Value(rt, obj);
|
|
6786
6979
|
}
|
|
6787
6980
|
|
|
6788
|
-
// Methods calling directly into the uniffi generated C API of the Rust crate.
|
|
6789
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_clone_notificationholder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6981
|
+
// Methods calling directly into the uniffi generated C API of the Rust crate.
|
|
6982
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_clone_notificationholder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6983
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
6984
|
+
auto value = uniffi_bark_ffi_fn_clone_notificationholder(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
6985
|
+
&status
|
|
6986
|
+
);
|
|
6987
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
6988
|
+
|
|
6989
|
+
|
|
6990
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
6991
|
+
}
|
|
6992
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_free_notificationholder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6993
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
6994
|
+
uniffi_bark_ffi_fn_free_notificationholder(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
6995
|
+
&status
|
|
6996
|
+
);
|
|
6997
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
6998
|
+
|
|
6999
|
+
|
|
7000
|
+
return jsi::Value::undefined();
|
|
7001
|
+
}
|
|
7002
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7003
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7004
|
+
uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
7005
|
+
&status
|
|
7006
|
+
);
|
|
7007
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7008
|
+
|
|
7009
|
+
|
|
7010
|
+
return jsi::Value::undefined();
|
|
7011
|
+
}
|
|
7012
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_notificationholder_next_notification(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7013
|
+
auto value = uniffi_bark_ffi_fn_method_notificationholder_next_notification(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
7014
|
+
);
|
|
7015
|
+
|
|
7016
|
+
|
|
7017
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7018
|
+
}
|
|
7019
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_clone_customonchainwalletcallbacks(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7020
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7021
|
+
auto value = uniffi_bark_ffi_fn_clone_customonchainwalletcallbacks(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
7022
|
+
&status
|
|
7023
|
+
);
|
|
7024
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7025
|
+
|
|
7026
|
+
|
|
7027
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7028
|
+
}
|
|
7029
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_free_customonchainwalletcallbacks(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7030
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7031
|
+
uniffi_bark_ffi_fn_free_customonchainwalletcallbacks(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
7032
|
+
&status
|
|
7033
|
+
);
|
|
7034
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7035
|
+
|
|
7036
|
+
|
|
7037
|
+
return jsi::Value::undefined();
|
|
7038
|
+
}
|
|
7039
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7040
|
+
auto vtableInstance =
|
|
7041
|
+
uniffi::bark::Bridging<UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks>::fromJs(
|
|
7042
|
+
rt,
|
|
7043
|
+
callInvoker,
|
|
7044
|
+
args[0]
|
|
7045
|
+
);
|
|
7046
|
+
|
|
7047
|
+
std::lock_guard<std::mutex> lock(uniffi::bark::registry::vtableMutex);
|
|
7048
|
+
uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(
|
|
7049
|
+
uniffi::bark::registry::putTable(
|
|
7050
|
+
"UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks",
|
|
7051
|
+
vtableInstance
|
|
7052
|
+
)
|
|
7053
|
+
);
|
|
7054
|
+
return jsi::Value::undefined();
|
|
7055
|
+
}
|
|
7056
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7057
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7058
|
+
auto value = uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
7059
|
+
&status
|
|
7060
|
+
);
|
|
7061
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7062
|
+
|
|
7063
|
+
|
|
7064
|
+
return uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, value);
|
|
7065
|
+
}
|
|
7066
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7067
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7068
|
+
auto value = uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx(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]),
|
|
7069
|
+
&status
|
|
7070
|
+
);
|
|
7071
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7072
|
+
|
|
7073
|
+
|
|
7074
|
+
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
7075
|
+
}
|
|
7076
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7077
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7078
|
+
auto value = uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx(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]),
|
|
7079
|
+
&status
|
|
7080
|
+
);
|
|
7081
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7082
|
+
|
|
7083
|
+
|
|
7084
|
+
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
7085
|
+
}
|
|
7086
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7087
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7088
|
+
auto value = uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
7089
|
+
&status
|
|
7090
|
+
);
|
|
7091
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7092
|
+
|
|
7093
|
+
|
|
7094
|
+
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
7095
|
+
}
|
|
7096
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7097
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7098
|
+
auto value = uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
7099
|
+
&status
|
|
7100
|
+
);
|
|
7101
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7102
|
+
|
|
7103
|
+
|
|
7104
|
+
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
7105
|
+
}
|
|
7106
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7107
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7108
|
+
auto value = uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
7109
|
+
&status
|
|
7110
|
+
);
|
|
7111
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7112
|
+
|
|
7113
|
+
|
|
7114
|
+
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
7115
|
+
}
|
|
7116
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7117
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7118
|
+
auto value = uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
7119
|
+
&status
|
|
7120
|
+
);
|
|
7121
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7122
|
+
|
|
7123
|
+
|
|
7124
|
+
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
7125
|
+
}
|
|
7126
|
+
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) {
|
|
6790
7127
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
6791
|
-
auto value =
|
|
7128
|
+
auto value = uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
6792
7129
|
&status
|
|
6793
7130
|
);
|
|
6794
7131
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
6795
7132
|
|
|
6796
7133
|
|
|
6797
|
-
return
|
|
7134
|
+
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
6798
7135
|
}
|
|
6799
|
-
jsi::Value NativeBark::
|
|
7136
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6800
7137
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
6801
|
-
|
|
7138
|
+
uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
6802
7139
|
&status
|
|
6803
7140
|
);
|
|
6804
7141
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
@@ -6806,9 +7143,19 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_free_notificationholder(jsi::Runti
|
|
|
6806
7143
|
|
|
6807
7144
|
return jsi::Value::undefined();
|
|
6808
7145
|
}
|
|
6809
|
-
jsi::Value NativeBark::
|
|
7146
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_clone_barklogger(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6810
7147
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
6811
|
-
|
|
7148
|
+
auto value = uniffi_bark_ffi_fn_clone_barklogger(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
7149
|
+
&status
|
|
7150
|
+
);
|
|
7151
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7152
|
+
|
|
7153
|
+
|
|
7154
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7155
|
+
}
|
|
7156
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_free_barklogger(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7157
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7158
|
+
uniffi_bark_ffi_fn_free_barklogger(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
6812
7159
|
&status
|
|
6813
7160
|
);
|
|
6814
7161
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
@@ -6816,12 +7163,32 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_notificationholder_cancel_n
|
|
|
6816
7163
|
|
|
6817
7164
|
return jsi::Value::undefined();
|
|
6818
7165
|
}
|
|
6819
|
-
jsi::Value NativeBark::
|
|
6820
|
-
|
|
7166
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_init_callback_vtable_barklogger(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7167
|
+
auto vtableInstance =
|
|
7168
|
+
uniffi::bark::Bridging<UniffiVTableCallbackInterfaceBarkLogger>::fromJs(
|
|
7169
|
+
rt,
|
|
7170
|
+
callInvoker,
|
|
7171
|
+
args[0]
|
|
7172
|
+
);
|
|
7173
|
+
|
|
7174
|
+
std::lock_guard<std::mutex> lock(uniffi::bark::registry::vtableMutex);
|
|
7175
|
+
uniffi_bark_ffi_fn_init_callback_vtable_barklogger(
|
|
7176
|
+
uniffi::bark::registry::putTable(
|
|
7177
|
+
"UniffiVTableCallbackInterfaceBarkLogger",
|
|
7178
|
+
vtableInstance
|
|
7179
|
+
)
|
|
7180
|
+
);
|
|
7181
|
+
return jsi::Value::undefined();
|
|
7182
|
+
}
|
|
7183
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_barklogger_log(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7184
|
+
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7185
|
+
uniffi_bark_ffi_fn_method_barklogger_log(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]),
|
|
7186
|
+
&status
|
|
6821
7187
|
);
|
|
7188
|
+
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
6822
7189
|
|
|
6823
7190
|
|
|
6824
|
-
return
|
|
7191
|
+
return jsi::Value::undefined();
|
|
6825
7192
|
}
|
|
6826
7193
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_clone_onchainwallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6827
7194
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
@@ -6845,7 +7212,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_free_onchainwallet(jsi::Runtime& r
|
|
|
6845
7212
|
}
|
|
6846
7213
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6847
7214
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
6848
|
-
auto value = uniffi_bark_ffi_fn_constructor_onchainwallet_custom(uniffi_jsi::Bridging
|
|
7215
|
+
auto value = uniffi_bark_ffi_fn_constructor_onchainwallet_custom(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
6849
7216
|
&status
|
|
6850
7217
|
);
|
|
6851
7218
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
@@ -7338,13 +7705,6 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer(
|
|
|
7338
7705
|
);
|
|
7339
7706
|
|
|
7340
7707
|
|
|
7341
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7342
|
-
}
|
|
7343
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_peak_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7344
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_peak_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1])
|
|
7345
|
-
);
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
7708
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7349
7709
|
}
|
|
7350
7710
|
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) {
|
|
@@ -7557,40 +7917,6 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_vtxos(jsi::Runtime&
|
|
|
7557
7917
|
|
|
7558
7918
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7559
7919
|
}
|
|
7560
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_init_callback_vtable_barklogger(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7561
|
-
auto vtableInstance =
|
|
7562
|
-
uniffi::bark::Bridging<UniffiVTableCallbackInterfaceBarkLogger>::fromJs(
|
|
7563
|
-
rt,
|
|
7564
|
-
callInvoker,
|
|
7565
|
-
args[0]
|
|
7566
|
-
);
|
|
7567
|
-
|
|
7568
|
-
std::lock_guard<std::mutex> lock(uniffi::bark::registry::vtableMutex);
|
|
7569
|
-
uniffi_bark_ffi_fn_init_callback_vtable_barklogger(
|
|
7570
|
-
uniffi::bark::registry::putTable(
|
|
7571
|
-
"UniffiVTableCallbackInterfaceBarkLogger",
|
|
7572
|
-
vtableInstance
|
|
7573
|
-
)
|
|
7574
|
-
);
|
|
7575
|
-
return jsi::Value::undefined();
|
|
7576
|
-
}
|
|
7577
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7578
|
-
auto vtableInstance =
|
|
7579
|
-
uniffi::bark::Bridging<UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks>::fromJs(
|
|
7580
|
-
rt,
|
|
7581
|
-
callInvoker,
|
|
7582
|
-
args[0]
|
|
7583
|
-
);
|
|
7584
|
-
|
|
7585
|
-
std::lock_guard<std::mutex> lock(uniffi::bark::registry::vtableMutex);
|
|
7586
|
-
uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks(
|
|
7587
|
-
uniffi::bark::registry::putTable(
|
|
7588
|
-
"UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks",
|
|
7589
|
-
vtableInstance
|
|
7590
|
-
)
|
|
7591
|
-
);
|
|
7592
|
-
return jsi::Value::undefined();
|
|
7593
|
-
}
|
|
7594
7920
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7595
7921
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7596
7922
|
auto value = uniffi_bark_ffi_fn_func_extract_tx_from_psbt(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
@@ -7610,19 +7936,19 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_generate_mnemonic(jsi::Runtim
|
|
|
7610
7936
|
|
|
7611
7937
|
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
7612
7938
|
}
|
|
7613
|
-
jsi::Value NativeBark::
|
|
7939
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_validate_ark_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7614
7940
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7615
|
-
|
|
7941
|
+
auto value = uniffi_bark_ffi_fn_func_validate_ark_address(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
7616
7942
|
&status
|
|
7617
7943
|
);
|
|
7618
7944
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7619
7945
|
|
|
7620
7946
|
|
|
7621
|
-
return
|
|
7947
|
+
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
7622
7948
|
}
|
|
7623
|
-
jsi::Value NativeBark::
|
|
7949
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_validate_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7624
7950
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7625
|
-
auto value =
|
|
7951
|
+
auto value = uniffi_bark_ffi_fn_func_validate_mnemonic(uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
7626
7952
|
&status
|
|
7627
7953
|
);
|
|
7628
7954
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
@@ -7630,15 +7956,15 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_validate_ark_address(jsi::Run
|
|
|
7630
7956
|
|
|
7631
7957
|
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
7632
7958
|
}
|
|
7633
|
-
jsi::Value NativeBark::
|
|
7959
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_func_set_logger(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7634
7960
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7635
|
-
|
|
7961
|
+
uniffi_bark_ffi_fn_func_set_logger(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
7636
7962
|
&status
|
|
7637
7963
|
);
|
|
7638
7964
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7639
7965
|
|
|
7640
7966
|
|
|
7641
|
-
return
|
|
7967
|
+
return jsi::Value::undefined();
|
|
7642
7968
|
}
|
|
7643
7969
|
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) {
|
|
7644
7970
|
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])
|
|
@@ -8026,22 +8352,22 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_generate_mnemonic(jsi::
|
|
|
8026
8352
|
|
|
8027
8353
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8028
8354
|
}
|
|
8029
|
-
jsi::Value NativeBark::
|
|
8030
|
-
auto value =
|
|
8355
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_validate_ark_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8356
|
+
auto value = uniffi_bark_ffi_checksum_func_validate_ark_address(
|
|
8031
8357
|
);
|
|
8032
8358
|
|
|
8033
8359
|
|
|
8034
8360
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8035
8361
|
}
|
|
8036
|
-
jsi::Value NativeBark::
|
|
8037
|
-
auto value =
|
|
8362
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_validate_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8363
|
+
auto value = uniffi_bark_ffi_checksum_func_validate_mnemonic(
|
|
8038
8364
|
);
|
|
8039
8365
|
|
|
8040
8366
|
|
|
8041
8367
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8042
8368
|
}
|
|
8043
|
-
jsi::Value NativeBark::
|
|
8044
|
-
auto value =
|
|
8369
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_func_set_logger(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8370
|
+
auto value = uniffi_bark_ffi_checksum_func_set_logger(
|
|
8045
8371
|
);
|
|
8046
8372
|
|
|
8047
8373
|
|
|
@@ -8059,6 +8385,76 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_notificationholder_ne
|
|
|
8059
8385
|
);
|
|
8060
8386
|
|
|
8061
8387
|
|
|
8388
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8389
|
+
}
|
|
8390
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8391
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(
|
|
8392
|
+
);
|
|
8393
|
+
|
|
8394
|
+
|
|
8395
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8396
|
+
}
|
|
8397
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8398
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(
|
|
8399
|
+
);
|
|
8400
|
+
|
|
8401
|
+
|
|
8402
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8403
|
+
}
|
|
8404
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8405
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(
|
|
8406
|
+
);
|
|
8407
|
+
|
|
8408
|
+
|
|
8409
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8410
|
+
}
|
|
8411
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8412
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt(
|
|
8413
|
+
);
|
|
8414
|
+
|
|
8415
|
+
|
|
8416
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8417
|
+
}
|
|
8418
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8419
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx(
|
|
8420
|
+
);
|
|
8421
|
+
|
|
8422
|
+
|
|
8423
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8424
|
+
}
|
|
8425
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8426
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(
|
|
8427
|
+
);
|
|
8428
|
+
|
|
8429
|
+
|
|
8430
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8431
|
+
}
|
|
8432
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8433
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(
|
|
8434
|
+
);
|
|
8435
|
+
|
|
8436
|
+
|
|
8437
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8438
|
+
}
|
|
8439
|
+
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) {
|
|
8440
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
8441
|
+
);
|
|
8442
|
+
|
|
8443
|
+
|
|
8444
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8445
|
+
}
|
|
8446
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8447
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
|
|
8448
|
+
);
|
|
8449
|
+
|
|
8450
|
+
|
|
8451
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8452
|
+
}
|
|
8453
|
+
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) {
|
|
8454
|
+
auto value = uniffi_bark_ffi_checksum_method_barklogger_log(
|
|
8455
|
+
);
|
|
8456
|
+
|
|
8457
|
+
|
|
8062
8458
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8063
8459
|
}
|
|
8064
8460
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_onchainwallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8472,13 +8868,6 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_
|
|
|
8472
8868
|
);
|
|
8473
8869
|
|
|
8474
8870
|
|
|
8475
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8476
|
-
}
|
|
8477
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_peak_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8478
|
-
auto value = uniffi_bark_ffi_checksum_method_wallet_peak_address(
|
|
8479
|
-
);
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
8871
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8483
8872
|
}
|
|
8484
8873
|
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) {
|
|
@@ -8738,76 +9127,6 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_constructor_wallet_open_with
|
|
|
8738
9127
|
);
|
|
8739
9128
|
|
|
8740
9129
|
|
|
8741
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8742
|
-
}
|
|
8743
|
-
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) {
|
|
8744
|
-
auto value = uniffi_bark_ffi_checksum_method_barklogger_log(
|
|
8745
|
-
);
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8749
|
-
}
|
|
8750
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8751
|
-
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(
|
|
8752
|
-
);
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8756
|
-
}
|
|
8757
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8758
|
-
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(
|
|
8759
|
-
);
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8763
|
-
}
|
|
8764
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8765
|
-
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(
|
|
8766
|
-
);
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8770
|
-
}
|
|
8771
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8772
|
-
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_tx(
|
|
8773
|
-
);
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8777
|
-
}
|
|
8778
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8779
|
-
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx(
|
|
8780
|
-
);
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8784
|
-
}
|
|
8785
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8786
|
-
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(
|
|
8787
|
-
);
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8791
|
-
}
|
|
8792
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8793
|
-
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(
|
|
8794
|
-
);
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8798
|
-
}
|
|
8799
|
-
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) {
|
|
8800
|
-
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
8801
|
-
);
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8805
|
-
}
|
|
8806
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8807
|
-
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(
|
|
8808
|
-
);
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
9130
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8812
9131
|
}
|
|
8813
9132
|
jsi::Value NativeBark::cpp_ffi_bark_ffi_uniffi_contract_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|