@secondts/bark-react-native 0.11.2 → 0.12.1
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 +119 -393
- package/cpp/generated/bark.hpp +6 -12
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +71 -137
- 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 +71 -137
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +22 -30
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +62 -80
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +22 -30
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +62 -80
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +26 -57
- package/src/generated/bark.ts +138 -318
package/cpp/generated/bark.cpp
CHANGED
|
@@ -157,35 +157,29 @@ extern "C" {
|
|
|
157
157
|
typedef void
|
|
158
158
|
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4)(
|
|
159
159
|
uint64_t uniffi_handle,
|
|
160
|
-
RustBuffer
|
|
161
|
-
|
|
160
|
+
RustBuffer script_pubkey_hex,
|
|
161
|
+
int8_t * uniffi_out_return, RustCallStatus* rust_call_status
|
|
162
162
|
);
|
|
163
163
|
typedef void
|
|
164
164
|
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5)(
|
|
165
165
|
uint64_t uniffi_handle,
|
|
166
|
-
RustBuffer
|
|
167
|
-
|
|
166
|
+
RustBuffer tx_hex,
|
|
167
|
+
void * uniffi_out_return, RustCallStatus* rust_call_status
|
|
168
168
|
);
|
|
169
169
|
typedef void
|
|
170
170
|
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6)(
|
|
171
171
|
uint64_t uniffi_handle,
|
|
172
|
-
RustBuffer outpoint,
|
|
173
|
-
RustBuffer * uniffi_out_return, RustCallStatus* rust_call_status
|
|
174
|
-
);
|
|
175
|
-
typedef void
|
|
176
|
-
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7)(
|
|
177
|
-
uint64_t uniffi_handle,
|
|
178
172
|
RustBuffer params,
|
|
179
173
|
RustBuffer * uniffi_out_return, RustCallStatus* rust_call_status
|
|
180
174
|
);
|
|
181
175
|
typedef void
|
|
182
|
-
(*
|
|
176
|
+
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7)(
|
|
183
177
|
uint64_t uniffi_handle,
|
|
184
178
|
RustBuffer tx_hex,
|
|
185
179
|
void * uniffi_out_return, RustCallStatus* rust_call_status
|
|
186
180
|
);
|
|
187
181
|
typedef void
|
|
188
|
-
(*
|
|
182
|
+
(*UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8)(
|
|
189
183
|
uint64_t uniffi_handle,
|
|
190
184
|
void * uniffi_out_return, RustCallStatus* rust_call_status
|
|
191
185
|
);
|
|
@@ -203,12 +197,11 @@ extern "C" {
|
|
|
203
197
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1 prepare_tx;
|
|
204
198
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2 prepare_drain_tx;
|
|
205
199
|
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3 finish_psbt;
|
|
206
|
-
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4
|
|
207
|
-
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5
|
|
208
|
-
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
|
|
209
|
-
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
|
|
210
|
-
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
|
|
211
|
-
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod9 sync;
|
|
200
|
+
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4 is_mine;
|
|
201
|
+
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5 register_tx;
|
|
202
|
+
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6 make_signed_p2a_cpfp;
|
|
203
|
+
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7 store_signed_p2a_cpfp;
|
|
204
|
+
UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8 sync;
|
|
212
205
|
} UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks;typedef struct UniffiVTableCallbackInterfaceBarkLogger {
|
|
213
206
|
UniffiCallbackInterfaceFree uniffi_free;
|
|
214
207
|
UniffiCallbackInterfaceClone uniffi_clone;
|
|
@@ -261,19 +254,14 @@ extern "C" {
|
|
|
261
254
|
RustBuffer psbt_base64,
|
|
262
255
|
RustCallStatus *uniffi_out_err
|
|
263
256
|
);
|
|
264
|
-
|
|
265
|
-
/*handle*/ uint64_t ptr,
|
|
266
|
-
RustBuffer txid,
|
|
267
|
-
RustCallStatus *uniffi_out_err
|
|
268
|
-
);
|
|
269
|
-
RustBuffer uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(
|
|
257
|
+
int8_t uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_is_mine(
|
|
270
258
|
/*handle*/ uint64_t ptr,
|
|
271
|
-
RustBuffer
|
|
259
|
+
RustBuffer script_pubkey_hex,
|
|
272
260
|
RustCallStatus *uniffi_out_err
|
|
273
261
|
);
|
|
274
|
-
|
|
262
|
+
void uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx(
|
|
275
263
|
/*handle*/ uint64_t ptr,
|
|
276
|
-
RustBuffer
|
|
264
|
+
RustBuffer tx_hex,
|
|
277
265
|
RustCallStatus *uniffi_out_err
|
|
278
266
|
);
|
|
279
267
|
RustBuffer uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
@@ -376,18 +364,17 @@ extern "C" {
|
|
|
376
364
|
/*handle*/ uint64_t ptr
|
|
377
365
|
);
|
|
378
366
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_board_all(
|
|
379
|
-
/*handle*/ uint64_t ptr
|
|
380
|
-
/*handle*/ uint64_t onchain_wallet
|
|
367
|
+
/*handle*/ uint64_t ptr
|
|
381
368
|
);
|
|
382
369
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_board_amount(
|
|
383
370
|
/*handle*/ uint64_t ptr,
|
|
384
|
-
/*handle*/ uint64_t onchain_wallet,
|
|
385
371
|
uint64_t amount_sats
|
|
386
372
|
);
|
|
387
373
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(
|
|
388
374
|
/*handle*/ uint64_t ptr,
|
|
389
375
|
uint64_t amount_sats,
|
|
390
|
-
RustBuffer description
|
|
376
|
+
RustBuffer description,
|
|
377
|
+
RustBuffer token
|
|
391
378
|
);
|
|
392
379
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_broadcast_tx(
|
|
393
380
|
/*handle*/ uint64_t ptr,
|
|
@@ -504,7 +491,7 @@ extern "C" {
|
|
|
504
491
|
/*handle*/ uint64_t ptr,
|
|
505
492
|
RustBuffer payment_hash
|
|
506
493
|
);
|
|
507
|
-
/*handle*/ uint64_t
|
|
494
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(
|
|
508
495
|
/*handle*/ uint64_t ptr,
|
|
509
496
|
RustBuffer payment_hash
|
|
510
497
|
);
|
|
@@ -532,14 +519,6 @@ extern "C" {
|
|
|
532
519
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(
|
|
533
520
|
/*handle*/ uint64_t ptr
|
|
534
521
|
);
|
|
535
|
-
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(
|
|
536
|
-
/*handle*/ uint64_t ptr,
|
|
537
|
-
/*handle*/ uint64_t onchain_wallet
|
|
538
|
-
);
|
|
539
|
-
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(
|
|
540
|
-
/*handle*/ uint64_t ptr,
|
|
541
|
-
/*handle*/ uint64_t onchain_wallet
|
|
542
|
-
);
|
|
543
522
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_network(
|
|
544
523
|
/*handle*/ uint64_t ptr
|
|
545
524
|
);
|
|
@@ -621,7 +600,6 @@ extern "C" {
|
|
|
621
600
|
);
|
|
622
601
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_progress_exits(
|
|
623
602
|
/*handle*/ uint64_t ptr,
|
|
624
|
-
/*handle*/ uint64_t onchain_wallet,
|
|
625
603
|
RustBuffer fee_rate_sat_per_vb
|
|
626
604
|
);
|
|
627
605
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds(
|
|
@@ -642,8 +620,7 @@ extern "C" {
|
|
|
642
620
|
RustBuffer vtxo_ids
|
|
643
621
|
);
|
|
644
622
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_run_daemon(
|
|
645
|
-
/*handle*/ uint64_t ptr
|
|
646
|
-
RustBuffer onchain_wallet
|
|
623
|
+
/*handle*/ uint64_t ptr
|
|
647
624
|
);
|
|
648
625
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment(
|
|
649
626
|
/*handle*/ uint64_t ptr,
|
|
@@ -679,8 +656,7 @@ extern "C" {
|
|
|
679
656
|
/*handle*/ uint64_t ptr
|
|
680
657
|
);
|
|
681
658
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_sync_exits(
|
|
682
|
-
/*handle*/ uint64_t ptr
|
|
683
|
-
/*handle*/ uint64_t onchain_wallet
|
|
659
|
+
/*handle*/ uint64_t ptr
|
|
684
660
|
);
|
|
685
661
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_sync_force_exited_vtxos(
|
|
686
662
|
/*handle*/ uint64_t ptr
|
|
@@ -951,11 +927,9 @@ extern "C" {
|
|
|
951
927
|
);
|
|
952
928
|
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt(
|
|
953
929
|
);
|
|
954
|
-
uint16_t
|
|
930
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine(
|
|
955
931
|
);
|
|
956
|
-
uint16_t
|
|
957
|
-
);
|
|
958
|
-
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(
|
|
932
|
+
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx(
|
|
959
933
|
);
|
|
960
934
|
uint16_t uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(
|
|
961
935
|
);
|
|
@@ -1049,7 +1023,7 @@ extern "C" {
|
|
|
1049
1023
|
);
|
|
1050
1024
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(
|
|
1051
1025
|
);
|
|
1052
|
-
uint16_t
|
|
1026
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state(
|
|
1053
1027
|
);
|
|
1054
1028
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(
|
|
1055
1029
|
);
|
|
@@ -1065,10 +1039,6 @@ extern "C" {
|
|
|
1065
1039
|
);
|
|
1066
1040
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh(
|
|
1067
1041
|
);
|
|
1068
|
-
uint16_t uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain(
|
|
1069
|
-
);
|
|
1070
|
-
uint16_t uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated(
|
|
1071
|
-
);
|
|
1072
1042
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_network(
|
|
1073
1043
|
);
|
|
1074
1044
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_new_address(
|
|
@@ -3455,7 +3425,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3
|
|
|
3455
3425
|
rsLambda = nullptr;
|
|
3456
3426
|
}
|
|
3457
3427
|
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3458
|
-
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod4 for vtable field
|
|
3428
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod4 for vtable field is_mine in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3459
3429
|
|
|
3460
3430
|
|
|
3461
3431
|
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4
|
|
@@ -3475,7 +3445,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3475
3445
|
|
|
3476
3446
|
// We need to store a lambda in a global so we can call it from
|
|
3477
3447
|
// a function pointer. The function pointer is passed to Rust.
|
|
3478
|
-
static std::function<void(uint64_t, RustBuffer,
|
|
3448
|
+
static std::function<void(uint64_t, RustBuffer, int8_t *, RustCallStatus*)> rsLambda = nullptr;
|
|
3479
3449
|
|
|
3480
3450
|
// This is the main body of the callback. It's called from the lambda,
|
|
3481
3451
|
// which itself is called from the callback function which is passed to Rust.
|
|
@@ -3483,13 +3453,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3483
3453
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3484
3454
|
std::shared_ptr<jsi::Value> callbackValue
|
|
3485
3455
|
,uint64_t rs_uniffiHandle
|
|
3486
|
-
,RustBuffer
|
|
3487
|
-
,
|
|
3456
|
+
,RustBuffer rs_scriptPubkeyHex
|
|
3457
|
+
,int8_t * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3488
3458
|
|
|
3489
3459
|
// Convert the arguments from Rust, into jsi::Values.
|
|
3490
3460
|
// We'll use the Bridging class to do this…
|
|
3491
3461
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3492
|
-
auto
|
|
3462
|
+
auto js_scriptPubkeyHex = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_scriptPubkeyHex);
|
|
3493
3463
|
|
|
3494
3464
|
// Now we are ready to call the callback.
|
|
3495
3465
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -3497,7 +3467,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3497
3467
|
try {
|
|
3498
3468
|
// Getting the callback function
|
|
3499
3469
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3500
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
3470
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_scriptPubkeyHex
|
|
3501
3471
|
);
|
|
3502
3472
|
|
|
3503
3473
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -3509,11 +3479,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3509
3479
|
}
|
|
3510
3480
|
|
|
3511
3481
|
|
|
3512
|
-
// return type is
|
|
3482
|
+
// return type is Int8
|
|
3513
3483
|
// Finally, we need to copy the return value back into the Rust pointer.
|
|
3514
3484
|
*rs_uniffiOutReturn =
|
|
3515
|
-
|
|
3516
|
-
ReferenceHolder<
|
|
3485
|
+
uniffi_jsi::Bridging<
|
|
3486
|
+
ReferenceHolder<int8_t>
|
|
3517
3487
|
>::fromJs(
|
|
3518
3488
|
rt, callInvoker, uniffiResult
|
|
3519
3489
|
);
|
|
@@ -3524,7 +3494,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3524
3494
|
}
|
|
3525
3495
|
}
|
|
3526
3496
|
|
|
3527
|
-
static void callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
3497
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_scriptPubkeyHex, int8_t * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3528
3498
|
// If the runtime has shutdown, then there is no point in trying to
|
|
3529
3499
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3530
3500
|
//
|
|
@@ -3542,7 +3512,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3542
3512
|
// are all in the lambda.
|
|
3543
3513
|
rsLambda(
|
|
3544
3514
|
rs_uniffiHandle,
|
|
3545
|
-
|
|
3515
|
+
rs_scriptPubkeyHex,
|
|
3546
3516
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
3547
3517
|
}
|
|
3548
3518
|
|
|
@@ -3565,18 +3535,18 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3565
3535
|
}
|
|
3566
3536
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3567
3537
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3568
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer
|
|
3538
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_scriptPubkeyHex, int8_t * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3569
3539
|
// We immediately make a lambda which will do the work of transforming the
|
|
3570
3540
|
// arguments into JSI values and calling the callback.
|
|
3571
3541
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3572
3542
|
callInvoker,
|
|
3573
3543
|
callbackValue
|
|
3574
3544
|
, rs_uniffiHandle
|
|
3575
|
-
,
|
|
3545
|
+
, rs_scriptPubkeyHex
|
|
3576
3546
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3577
3547
|
body(rt, callInvoker, callbackValue
|
|
3578
3548
|
, rs_uniffiHandle
|
|
3579
|
-
,
|
|
3549
|
+
, rs_scriptPubkeyHex
|
|
3580
3550
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3581
3551
|
};
|
|
3582
3552
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -3594,7 +3564,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4
|
|
|
3594
3564
|
rsLambda = nullptr;
|
|
3595
3565
|
}
|
|
3596
3566
|
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3597
|
-
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod5 for vtable field
|
|
3567
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod5 for vtable field register_tx in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3598
3568
|
|
|
3599
3569
|
|
|
3600
3570
|
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5
|
|
@@ -3614,7 +3584,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3614
3584
|
|
|
3615
3585
|
// We need to store a lambda in a global so we can call it from
|
|
3616
3586
|
// a function pointer. The function pointer is passed to Rust.
|
|
3617
|
-
static std::function<void(uint64_t, RustBuffer,
|
|
3587
|
+
static std::function<void(uint64_t, RustBuffer, void *, RustCallStatus*)> rsLambda = nullptr;
|
|
3618
3588
|
|
|
3619
3589
|
// This is the main body of the callback. It's called from the lambda,
|
|
3620
3590
|
// which itself is called from the callback function which is passed to Rust.
|
|
@@ -3622,13 +3592,13 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3622
3592
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3623
3593
|
std::shared_ptr<jsi::Value> callbackValue
|
|
3624
3594
|
,uint64_t rs_uniffiHandle
|
|
3625
|
-
,RustBuffer
|
|
3626
|
-
,
|
|
3595
|
+
,RustBuffer rs_txHex
|
|
3596
|
+
,void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3627
3597
|
|
|
3628
3598
|
// Convert the arguments from Rust, into jsi::Values.
|
|
3629
3599
|
// We'll use the Bridging class to do this…
|
|
3630
3600
|
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3631
|
-
auto
|
|
3601
|
+
auto js_txHex = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_txHex);
|
|
3632
3602
|
|
|
3633
3603
|
// Now we are ready to call the callback.
|
|
3634
3604
|
// We are already on the JS thread, because this `body` function was
|
|
@@ -3636,7 +3606,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3636
3606
|
try {
|
|
3637
3607
|
// Getting the callback function
|
|
3638
3608
|
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3639
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle,
|
|
3609
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_txHex
|
|
3640
3610
|
);
|
|
3641
3611
|
|
|
3642
3612
|
// Now copy the result back from JS into the RustCallStatus object.
|
|
@@ -3648,14 +3618,6 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3648
3618
|
}
|
|
3649
3619
|
|
|
3650
3620
|
|
|
3651
|
-
// return type is RustBuffer(None)
|
|
3652
|
-
// Finally, we need to copy the return value back into the Rust pointer.
|
|
3653
|
-
*rs_uniffiOutReturn =
|
|
3654
|
-
uniffi::bark::Bridging<
|
|
3655
|
-
ReferenceHolder<RustBuffer>
|
|
3656
|
-
>::fromJs(
|
|
3657
|
-
rt, callInvoker, uniffiResult
|
|
3658
|
-
);
|
|
3659
3621
|
} catch (const jsi::JSError &error) {
|
|
3660
3622
|
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5: "
|
|
3661
3623
|
<< error.what() << std::endl;
|
|
@@ -3663,7 +3625,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3663
3625
|
}
|
|
3664
3626
|
}
|
|
3665
3627
|
|
|
3666
|
-
static void callback(uint64_t rs_uniffiHandle, RustBuffer
|
|
3628
|
+
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_txHex, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3667
3629
|
// If the runtime has shutdown, then there is no point in trying to
|
|
3668
3630
|
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3669
3631
|
//
|
|
@@ -3681,7 +3643,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3681
3643
|
// are all in the lambda.
|
|
3682
3644
|
rsLambda(
|
|
3683
3645
|
rs_uniffiHandle,
|
|
3684
|
-
|
|
3646
|
+
rs_txHex,
|
|
3685
3647
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
3686
3648
|
}
|
|
3687
3649
|
|
|
@@ -3704,18 +3666,18 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3704
3666
|
}
|
|
3705
3667
|
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3706
3668
|
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3707
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer
|
|
3669
|
+
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_txHex, void * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3708
3670
|
// We immediately make a lambda which will do the work of transforming the
|
|
3709
3671
|
// arguments into JSI values and calling the callback.
|
|
3710
3672
|
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3711
3673
|
callInvoker,
|
|
3712
3674
|
callbackValue
|
|
3713
3675
|
, rs_uniffiHandle
|
|
3714
|
-
,
|
|
3676
|
+
, rs_txHex
|
|
3715
3677
|
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3716
3678
|
body(rt, callInvoker, callbackValue
|
|
3717
3679
|
, rs_uniffiHandle
|
|
3718
|
-
,
|
|
3680
|
+
, rs_txHex
|
|
3719
3681
|
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3720
3682
|
};
|
|
3721
3683
|
// We'll then call that lambda from the callInvoker which will
|
|
@@ -3733,7 +3695,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5
|
|
|
3733
3695
|
rsLambda = nullptr;
|
|
3734
3696
|
}
|
|
3735
3697
|
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3736
|
-
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod6 for vtable field
|
|
3698
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod6 for vtable field make_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3737
3699
|
|
|
3738
3700
|
|
|
3739
3701
|
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
|
|
@@ -3755,145 +3717,6 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6
|
|
|
3755
3717
|
// a function pointer. The function pointer is passed to Rust.
|
|
3756
3718
|
static std::function<void(uint64_t, RustBuffer, RustBuffer *, RustCallStatus*)> rsLambda = nullptr;
|
|
3757
3719
|
|
|
3758
|
-
// This is the main body of the callback. It's called from the lambda,
|
|
3759
|
-
// which itself is called from the callback function which is passed to Rust.
|
|
3760
|
-
static void body(jsi::Runtime &rt,
|
|
3761
|
-
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3762
|
-
std::shared_ptr<jsi::Value> callbackValue
|
|
3763
|
-
,uint64_t rs_uniffiHandle
|
|
3764
|
-
,RustBuffer rs_outpoint
|
|
3765
|
-
,RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3766
|
-
|
|
3767
|
-
// Convert the arguments from Rust, into jsi::Values.
|
|
3768
|
-
// We'll use the Bridging class to do this…
|
|
3769
|
-
auto js_uniffiHandle = uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
3770
|
-
auto js_outpoint = uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, rs_outpoint);
|
|
3771
|
-
|
|
3772
|
-
// Now we are ready to call the callback.
|
|
3773
|
-
// We are already on the JS thread, because this `body` function was
|
|
3774
|
-
// invoked from the CallInvoker.
|
|
3775
|
-
try {
|
|
3776
|
-
// Getting the callback function
|
|
3777
|
-
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
3778
|
-
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_outpoint
|
|
3779
|
-
);
|
|
3780
|
-
|
|
3781
|
-
// Now copy the result back from JS into the RustCallStatus object.
|
|
3782
|
-
uniffi::bark::Bridging<RustCallStatus>::copyFromJs(rt, callInvoker, uniffiResult, uniffi_call_status);
|
|
3783
|
-
|
|
3784
|
-
if (uniffi_call_status->code != UNIFFI_CALL_STATUS_OK) {
|
|
3785
|
-
// The JS callback finished abnormally, so we cannot retrieve the return value.
|
|
3786
|
-
return;
|
|
3787
|
-
}
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
// return type is RustBuffer(None)
|
|
3791
|
-
// Finally, we need to copy the return value back into the Rust pointer.
|
|
3792
|
-
*rs_uniffiOutReturn =
|
|
3793
|
-
uniffi::bark::Bridging<
|
|
3794
|
-
ReferenceHolder<RustBuffer>
|
|
3795
|
-
>::fromJs(
|
|
3796
|
-
rt, callInvoker, uniffiResult
|
|
3797
|
-
);
|
|
3798
|
-
} catch (const jsi::JSError &error) {
|
|
3799
|
-
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6: "
|
|
3800
|
-
<< error.what() << std::endl;
|
|
3801
|
-
throw error;
|
|
3802
|
-
}
|
|
3803
|
-
}
|
|
3804
|
-
|
|
3805
|
-
static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_outpoint, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3806
|
-
// If the runtime has shutdown, then there is no point in trying to
|
|
3807
|
-
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
3808
|
-
//
|
|
3809
|
-
// Answer: the module destructor calls into callback `cleanup` method,
|
|
3810
|
-
// which nulls out the rsLamda.
|
|
3811
|
-
//
|
|
3812
|
-
// If rsLamda is null, then there is no runtime to call into.
|
|
3813
|
-
if (rsLambda == nullptr) {
|
|
3814
|
-
// This only occurs when destructors are calling into Rust free/drop,
|
|
3815
|
-
// which causes the JS callback to be dropped.
|
|
3816
|
-
return;
|
|
3817
|
-
}
|
|
3818
|
-
|
|
3819
|
-
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
3820
|
-
// are all in the lambda.
|
|
3821
|
-
rsLambda(
|
|
3822
|
-
rs_uniffiHandle,
|
|
3823
|
-
rs_outpoint,
|
|
3824
|
-
rs_uniffiOutReturn, uniffi_call_status);
|
|
3825
|
-
}
|
|
3826
|
-
|
|
3827
|
-
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
|
|
3828
|
-
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3829
|
-
jsi::Runtime &rt,
|
|
3830
|
-
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3831
|
-
const jsi::Value &value) {
|
|
3832
|
-
if (rsLambda != nullptr) {
|
|
3833
|
-
// `makeCallbackFunction` is called in two circumstances:
|
|
3834
|
-
//
|
|
3835
|
-
// 1. at startup, when initializing callback interface vtables.
|
|
3836
|
-
// 2. when polling futures. This happens at least once per future that is
|
|
3837
|
-
// exposed to Javascript. We know that this is always the same function,
|
|
3838
|
-
// `uniffiFutureContinuationCallback` in `async-rust-calls.ts`.
|
|
3839
|
-
//
|
|
3840
|
-
// We can therefore return the callback function without making anything
|
|
3841
|
-
// new if we've been initialized already.
|
|
3842
|
-
return callback;
|
|
3843
|
-
}
|
|
3844
|
-
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
3845
|
-
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
3846
|
-
rsLambda = [&rt, callInvoker, callbackValue](uint64_t rs_uniffiHandle, RustBuffer rs_outpoint, RustBuffer * rs_uniffiOutReturn, RustCallStatus* uniffi_call_status) {
|
|
3847
|
-
// We immediately make a lambda which will do the work of transforming the
|
|
3848
|
-
// arguments into JSI values and calling the callback.
|
|
3849
|
-
uniffi_runtime::UniffiCallFunc jsLambda = [
|
|
3850
|
-
callInvoker,
|
|
3851
|
-
callbackValue
|
|
3852
|
-
, rs_uniffiHandle
|
|
3853
|
-
, rs_outpoint
|
|
3854
|
-
, rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable {
|
|
3855
|
-
body(rt, callInvoker, callbackValue
|
|
3856
|
-
, rs_uniffiHandle
|
|
3857
|
-
, rs_outpoint
|
|
3858
|
-
, rs_uniffiOutReturn, uniffi_call_status);
|
|
3859
|
-
};
|
|
3860
|
-
// We'll then call that lambda from the callInvoker which will
|
|
3861
|
-
// look after calling it on the correct thread.
|
|
3862
|
-
callInvoker->invokeBlocking(rt, jsLambda);
|
|
3863
|
-
};
|
|
3864
|
-
return callback;
|
|
3865
|
-
}
|
|
3866
|
-
|
|
3867
|
-
// This method is called from the destructor of NativeBark, which only happens
|
|
3868
|
-
// when the jsi::Runtime is being destroyed.
|
|
3869
|
-
static void cleanup() {
|
|
3870
|
-
// The lambda holds a reference to the the Runtime, so when this is nulled out,
|
|
3871
|
-
// then the pointer will no longer be left dangling.
|
|
3872
|
-
rsLambda = nullptr;
|
|
3873
|
-
}
|
|
3874
|
-
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3875
|
-
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod7 for vtable field make_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
|
|
3879
|
-
//
|
|
3880
|
-
// We have the following constraints:
|
|
3881
|
-
// - we need to pass a function pointer to Rust.
|
|
3882
|
-
// - we need a jsi::Runtime and jsi::Function to call into JS.
|
|
3883
|
-
// - function pointers can't store state, so we can't use a lamda.
|
|
3884
|
-
//
|
|
3885
|
-
// For this, we store a lambda as a global, as `rsLambda`. The `callback` function calls
|
|
3886
|
-
// the lambda, which itself calls the `body` which then calls into JS.
|
|
3887
|
-
//
|
|
3888
|
-
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
3889
|
-
// future.
|
|
3890
|
-
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
3891
|
-
using namespace facebook;
|
|
3892
|
-
|
|
3893
|
-
// We need to store a lambda in a global so we can call it from
|
|
3894
|
-
// a function pointer. The function pointer is passed to Rust.
|
|
3895
|
-
static std::function<void(uint64_t, RustBuffer, RustBuffer *, RustCallStatus*)> rsLambda = nullptr;
|
|
3896
|
-
|
|
3897
3720
|
// This is the main body of the callback. It's called from the lambda,
|
|
3898
3721
|
// which itself is called from the callback function which is passed to Rust.
|
|
3899
3722
|
static void body(jsi::Runtime &rt,
|
|
@@ -3935,7 +3758,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
3935
3758
|
rt, callInvoker, uniffiResult
|
|
3936
3759
|
);
|
|
3937
3760
|
} catch (const jsi::JSError &error) {
|
|
3938
|
-
std::cout << "Error in callback
|
|
3761
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6: "
|
|
3939
3762
|
<< error.what() << std::endl;
|
|
3940
3763
|
throw error;
|
|
3941
3764
|
}
|
|
@@ -3963,8 +3786,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
3963
3786
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
3964
3787
|
}
|
|
3965
3788
|
|
|
3966
|
-
[[maybe_unused]] static
|
|
3967
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
3789
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6
|
|
3790
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3968
3791
|
jsi::Runtime &rt,
|
|
3969
3792
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
3970
3793
|
const jsi::Value &value) {
|
|
@@ -4010,11 +3833,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
4010
3833
|
// then the pointer will no longer be left dangling.
|
|
4011
3834
|
rsLambda = nullptr;
|
|
4012
3835
|
}
|
|
4013
|
-
} // namespace uniffi::bark::cb::
|
|
4014
|
-
// Implementation of
|
|
3836
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3837
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod7 for vtable field store_signed_p2a_cpfp in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
4015
3838
|
|
|
4016
3839
|
|
|
4017
|
-
// Callback function: uniffi::bark::cb::
|
|
3840
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
|
|
4018
3841
|
//
|
|
4019
3842
|
// We have the following constraints:
|
|
4020
3843
|
// - we need to pass a function pointer to Rust.
|
|
@@ -4026,7 +3849,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7
|
|
|
4026
3849
|
//
|
|
4027
3850
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
4028
3851
|
// future.
|
|
4029
|
-
namespace uniffi::bark::cb::
|
|
3852
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
4030
3853
|
using namespace facebook;
|
|
4031
3854
|
|
|
4032
3855
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -4066,7 +3889,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4066
3889
|
|
|
4067
3890
|
|
|
4068
3891
|
} catch (const jsi::JSError &error) {
|
|
4069
|
-
std::cout << "Error in callback
|
|
3892
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7: "
|
|
4070
3893
|
<< error.what() << std::endl;
|
|
4071
3894
|
throw error;
|
|
4072
3895
|
}
|
|
@@ -4094,8 +3917,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4094
3917
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
4095
3918
|
}
|
|
4096
3919
|
|
|
4097
|
-
[[maybe_unused]] static
|
|
4098
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
3920
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7
|
|
3921
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
4099
3922
|
jsi::Runtime &rt,
|
|
4100
3923
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
4101
3924
|
const jsi::Value &value) {
|
|
@@ -4141,11 +3964,11 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4141
3964
|
// then the pointer will no longer be left dangling.
|
|
4142
3965
|
rsLambda = nullptr;
|
|
4143
3966
|
}
|
|
4144
|
-
} // namespace uniffi::bark::cb::
|
|
4145
|
-
// Implementation of
|
|
3967
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
3968
|
+
// Implementation of CallbackInterfaceCustomOnchainWalletCallbacksMethod8 for vtable field sync in VTableCallbackInterfaceCustomOnchainWalletCallbacks
|
|
4146
3969
|
|
|
4147
3970
|
|
|
4148
|
-
// Callback function: uniffi::bark::cb::
|
|
3971
|
+
// Callback function: uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
|
|
4149
3972
|
//
|
|
4150
3973
|
// We have the following constraints:
|
|
4151
3974
|
// - we need to pass a function pointer to Rust.
|
|
@@ -4157,7 +3980,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8
|
|
|
4157
3980
|
//
|
|
4158
3981
|
// We then give the `callback` function pointer to Rust which will call the lambda sometime in the
|
|
4159
3982
|
// future.
|
|
4160
|
-
namespace uniffi::bark::cb::
|
|
3983
|
+
namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks {
|
|
4161
3984
|
using namespace facebook;
|
|
4162
3985
|
|
|
4163
3986
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -4195,7 +4018,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9
|
|
|
4195
4018
|
|
|
4196
4019
|
|
|
4197
4020
|
} catch (const jsi::JSError &error) {
|
|
4198
|
-
std::cout << "Error in callback
|
|
4021
|
+
std::cout << "Error in callback UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8: "
|
|
4199
4022
|
<< error.what() << std::endl;
|
|
4200
4023
|
throw error;
|
|
4201
4024
|
}
|
|
@@ -4222,8 +4045,8 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9
|
|
|
4222
4045
|
rs_uniffiOutReturn, uniffi_call_status);
|
|
4223
4046
|
}
|
|
4224
4047
|
|
|
4225
|
-
[[maybe_unused]] static
|
|
4226
|
-
makeCallbackFunction( // uniffi::bark::cb::
|
|
4048
|
+
[[maybe_unused]] static UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8
|
|
4049
|
+
makeCallbackFunction( // uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
4227
4050
|
jsi::Runtime &rt,
|
|
4228
4051
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
4229
4052
|
const jsi::Value &value) {
|
|
@@ -4267,7 +4090,7 @@ namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9
|
|
|
4267
4090
|
// then the pointer will no longer be left dangling.
|
|
4268
4091
|
rsLambda = nullptr;
|
|
4269
4092
|
}
|
|
4270
|
-
} // namespace uniffi::bark::cb::
|
|
4093
|
+
} // namespace uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks
|
|
4271
4094
|
namespace uniffi::bark {
|
|
4272
4095
|
using namespace facebook;
|
|
4273
4096
|
using CallInvoker = uniffi_runtime::UniffiCallInvoker;
|
|
@@ -4307,22 +4130,19 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceCustomOnchainWalletCall
|
|
|
4307
4130
|
rsObject.finish_psbt = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod3::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4308
4131
|
rt, callInvoker, jsObject.getProperty(rt, "finishPsbt")
|
|
4309
4132
|
);
|
|
4310
|
-
rsObject.
|
|
4311
|
-
rt, callInvoker, jsObject.getProperty(rt, "
|
|
4312
|
-
);
|
|
4313
|
-
rsObject.get_wallet_tx_confirmed_block = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4314
|
-
rt, callInvoker, jsObject.getProperty(rt, "getWalletTxConfirmedBlock")
|
|
4133
|
+
rsObject.is_mine = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod4::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4134
|
+
rt, callInvoker, jsObject.getProperty(rt, "isMine")
|
|
4315
4135
|
);
|
|
4316
|
-
rsObject.
|
|
4317
|
-
rt, callInvoker, jsObject.getProperty(rt, "
|
|
4136
|
+
rsObject.register_tx = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4137
|
+
rt, callInvoker, jsObject.getProperty(rt, "registerTx")
|
|
4318
4138
|
);
|
|
4319
|
-
rsObject.make_signed_p2a_cpfp = uniffi::bark::cb::
|
|
4139
|
+
rsObject.make_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4320
4140
|
rt, callInvoker, jsObject.getProperty(rt, "makeSignedP2aCpfp")
|
|
4321
4141
|
);
|
|
4322
|
-
rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::
|
|
4142
|
+
rsObject.store_signed_p2a_cpfp = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4323
4143
|
rt, callInvoker, jsObject.getProperty(rt, "storeSignedP2aCpfp")
|
|
4324
4144
|
);
|
|
4325
|
-
rsObject.sync = uniffi::bark::cb::
|
|
4145
|
+
rsObject.sync = uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::makeCallbackFunction(
|
|
4326
4146
|
rt, callInvoker, jsObject.getProperty(rt, "sync")
|
|
4327
4147
|
);
|
|
4328
4148
|
|
|
@@ -4777,28 +4597,20 @@ NativeBark::NativeBark(
|
|
|
4777
4597
|
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(rt, thisVal, args, count);
|
|
4778
4598
|
}
|
|
4779
4599
|
);
|
|
4780
|
-
props["
|
|
4600
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_is_mine"] = jsi::Function::createFromHostFunction(
|
|
4781
4601
|
rt,
|
|
4782
|
-
jsi::PropNameID::forAscii(rt, "
|
|
4602
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_is_mine"),
|
|
4783
4603
|
2,
|
|
4784
4604
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4785
|
-
return this->
|
|
4605
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_is_mine(rt, thisVal, args, count);
|
|
4786
4606
|
}
|
|
4787
4607
|
);
|
|
4788
|
-
props["
|
|
4608
|
+
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx"] = jsi::Function::createFromHostFunction(
|
|
4789
4609
|
rt,
|
|
4790
|
-
jsi::PropNameID::forAscii(rt, "
|
|
4610
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx"),
|
|
4791
4611
|
2,
|
|
4792
4612
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4793
|
-
return this->
|
|
4794
|
-
}
|
|
4795
|
-
);
|
|
4796
|
-
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx"] = jsi::Function::createFromHostFunction(
|
|
4797
|
-
rt,
|
|
4798
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx"),
|
|
4799
|
-
2,
|
|
4800
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4801
|
-
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx(rt, thisVal, args, count);
|
|
4613
|
+
return this->cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx(rt, thisVal, args, count);
|
|
4802
4614
|
}
|
|
4803
4615
|
);
|
|
4804
4616
|
props["ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
|
|
@@ -4996,7 +4808,7 @@ NativeBark::NativeBark(
|
|
|
4996
4808
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_board_all"] = jsi::Function::createFromHostFunction(
|
|
4997
4809
|
rt,
|
|
4998
4810
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_board_all"),
|
|
4999
|
-
|
|
4811
|
+
1,
|
|
5000
4812
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5001
4813
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_all(rt, thisVal, args, count);
|
|
5002
4814
|
}
|
|
@@ -5004,7 +4816,7 @@ NativeBark::NativeBark(
|
|
|
5004
4816
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount"] = jsi::Function::createFromHostFunction(
|
|
5005
4817
|
rt,
|
|
5006
4818
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount"),
|
|
5007
|
-
|
|
4819
|
+
2,
|
|
5008
4820
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5009
4821
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(rt, thisVal, args, count);
|
|
5010
4822
|
}
|
|
@@ -5012,7 +4824,7 @@ NativeBark::NativeBark(
|
|
|
5012
4824
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice"] = jsi::Function::createFromHostFunction(
|
|
5013
4825
|
rt,
|
|
5014
4826
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice"),
|
|
5015
|
-
|
|
4827
|
+
4,
|
|
5016
4828
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5017
4829
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(rt, thisVal, args, count);
|
|
5018
4830
|
}
|
|
@@ -5249,12 +5061,12 @@ NativeBark::NativeBark(
|
|
|
5249
5061
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(rt, thisVal, args, count);
|
|
5250
5062
|
}
|
|
5251
5063
|
);
|
|
5252
|
-
props["
|
|
5064
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state"] = jsi::Function::createFromHostFunction(
|
|
5253
5065
|
rt,
|
|
5254
|
-
jsi::PropNameID::forAscii(rt, "
|
|
5066
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state"),
|
|
5255
5067
|
2,
|
|
5256
5068
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5257
|
-
return this->
|
|
5069
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(rt, thisVal, args, count);
|
|
5258
5070
|
}
|
|
5259
5071
|
);
|
|
5260
5072
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state"] = jsi::Function::createFromHostFunction(
|
|
@@ -5313,22 +5125,6 @@ NativeBark::NativeBark(
|
|
|
5313
5125
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(rt, thisVal, args, count);
|
|
5314
5126
|
}
|
|
5315
5127
|
);
|
|
5316
|
-
props["ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain"] = jsi::Function::createFromHostFunction(
|
|
5317
|
-
rt,
|
|
5318
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain"),
|
|
5319
|
-
2,
|
|
5320
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5321
|
-
return this->cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(rt, thisVal, args, count);
|
|
5322
|
-
}
|
|
5323
|
-
);
|
|
5324
|
-
props["ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated"] = jsi::Function::createFromHostFunction(
|
|
5325
|
-
rt,
|
|
5326
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated"),
|
|
5327
|
-
2,
|
|
5328
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5329
|
-
return this->cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(rt, thisVal, args, count);
|
|
5330
|
-
}
|
|
5331
|
-
);
|
|
5332
5128
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_network"] = jsi::Function::createFromHostFunction(
|
|
5333
5129
|
rt,
|
|
5334
5130
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_network"),
|
|
@@ -5492,7 +5288,7 @@ NativeBark::NativeBark(
|
|
|
5492
5288
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits"] = jsi::Function::createFromHostFunction(
|
|
5493
5289
|
rt,
|
|
5494
5290
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits"),
|
|
5495
|
-
|
|
5291
|
+
2,
|
|
5496
5292
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5497
5293
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_progress_exits(rt, thisVal, args, count);
|
|
5498
5294
|
}
|
|
@@ -5540,7 +5336,7 @@ NativeBark::NativeBark(
|
|
|
5540
5336
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon"] = jsi::Function::createFromHostFunction(
|
|
5541
5337
|
rt,
|
|
5542
5338
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon"),
|
|
5543
|
-
|
|
5339
|
+
1,
|
|
5544
5340
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5545
5341
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_run_daemon(rt, thisVal, args, count);
|
|
5546
5342
|
}
|
|
@@ -5620,7 +5416,7 @@ NativeBark::NativeBark(
|
|
|
5620
5416
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits"] = jsi::Function::createFromHostFunction(
|
|
5621
5417
|
rt,
|
|
5622
5418
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits"),
|
|
5623
|
-
|
|
5419
|
+
1,
|
|
5624
5420
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5625
5421
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_sync_exits(rt, thisVal, args, count);
|
|
5626
5422
|
}
|
|
@@ -6201,28 +5997,20 @@ NativeBark::NativeBark(
|
|
|
6201
5997
|
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt(rt, thisVal, args, count);
|
|
6202
5998
|
}
|
|
6203
5999
|
);
|
|
6204
|
-
props["
|
|
6000
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine"] = jsi::Function::createFromHostFunction(
|
|
6205
6001
|
rt,
|
|
6206
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6002
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine"),
|
|
6207
6003
|
0,
|
|
6208
6004
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6209
|
-
return this->
|
|
6005
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine(rt, thisVal, args, count);
|
|
6210
6006
|
}
|
|
6211
6007
|
);
|
|
6212
|
-
props["
|
|
6008
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx"] = jsi::Function::createFromHostFunction(
|
|
6213
6009
|
rt,
|
|
6214
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6010
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx"),
|
|
6215
6011
|
0,
|
|
6216
6012
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6217
|
-
return this->
|
|
6218
|
-
}
|
|
6219
|
-
);
|
|
6220
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"] = jsi::Function::createFromHostFunction(
|
|
6221
|
-
rt,
|
|
6222
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx"),
|
|
6223
|
-
0,
|
|
6224
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6225
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(rt, thisVal, args, count);
|
|
6013
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx(rt, thisVal, args, count);
|
|
6226
6014
|
}
|
|
6227
6015
|
);
|
|
6228
6016
|
props["ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp"] = jsi::Function::createFromHostFunction(
|
|
@@ -6593,12 +6381,12 @@ NativeBark::NativeBark(
|
|
|
6593
6381
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(rt, thisVal, args, count);
|
|
6594
6382
|
}
|
|
6595
6383
|
);
|
|
6596
|
-
props["
|
|
6384
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state"] = jsi::Function::createFromHostFunction(
|
|
6597
6385
|
rt,
|
|
6598
|
-
jsi::PropNameID::forAscii(rt, "
|
|
6386
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state"),
|
|
6599
6387
|
0,
|
|
6600
6388
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6601
|
-
return this->
|
|
6389
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state(rt, thisVal, args, count);
|
|
6602
6390
|
}
|
|
6603
6391
|
);
|
|
6604
6392
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state"] = jsi::Function::createFromHostFunction(
|
|
@@ -6657,22 +6445,6 @@ NativeBark::NativeBark(
|
|
|
6657
6445
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh(rt, thisVal, args, count);
|
|
6658
6446
|
}
|
|
6659
6447
|
);
|
|
6660
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain"] = jsi::Function::createFromHostFunction(
|
|
6661
|
-
rt,
|
|
6662
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain"),
|
|
6663
|
-
0,
|
|
6664
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6665
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain(rt, thisVal, args, count);
|
|
6666
|
-
}
|
|
6667
|
-
);
|
|
6668
|
-
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated"] = jsi::Function::createFromHostFunction(
|
|
6669
|
-
rt,
|
|
6670
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated"),
|
|
6671
|
-
0,
|
|
6672
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6673
|
-
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated(rt, thisVal, args, count);
|
|
6674
|
-
}
|
|
6675
|
-
);
|
|
6676
6448
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_network"] = jsi::Function::createFromHostFunction(
|
|
6677
6449
|
rt,
|
|
6678
6450
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_network"),
|
|
@@ -7140,7 +6912,6 @@ uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod5::vtableca
|
|
|
7140
6912
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod6::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
7141
6913
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod7::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
7142
6914
|
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod8::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
7143
|
-
uniffi::bark::cb::callbackinterfacecustomonchainwalletcallbacksmethod9::vtablecallbackinterfacecustomonchainwalletcallbacks::cleanup();
|
|
7144
6915
|
uniffi::bark::cb::callbackinterfaceclone::vtablecallbackinterfacebarklogger::cleanup();
|
|
7145
6916
|
uniffi::bark::cb::callbackinterfacebarkloggermethod0::vtablecallbackinterfacebarklogger::cleanup();
|
|
7146
6917
|
}
|
|
@@ -7318,35 +7089,25 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallback
|
|
|
7318
7089
|
|
|
7319
7090
|
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
7320
7091
|
}
|
|
7321
|
-
jsi::Value NativeBark::
|
|
7322
|
-
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7323
|
-
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]),
|
|
7324
|
-
&status
|
|
7325
|
-
);
|
|
7326
|
-
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
return uniffi::bark::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
7330
|
-
}
|
|
7331
|
-
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) {
|
|
7092
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_is_mine(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7332
7093
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7333
|
-
auto value =
|
|
7094
|
+
auto value = uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_is_mine(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
7334
7095
|
&status
|
|
7335
7096
|
);
|
|
7336
7097
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7337
7098
|
|
|
7338
7099
|
|
|
7339
|
-
return
|
|
7100
|
+
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
7340
7101
|
}
|
|
7341
|
-
jsi::Value NativeBark::
|
|
7102
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7342
7103
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
7343
|
-
|
|
7104
|
+
uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
7344
7105
|
&status
|
|
7345
7106
|
);
|
|
7346
7107
|
uniffi::bark::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
7347
7108
|
|
|
7348
7109
|
|
|
7349
|
-
return
|
|
7110
|
+
return jsi::Value::undefined();
|
|
7350
7111
|
}
|
|
7351
7112
|
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) {
|
|
7352
7113
|
RustCallStatus status = uniffi::bark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
@@ -7560,21 +7321,21 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_balance(jsi::Runtime
|
|
|
7560
7321
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7561
7322
|
}
|
|
7562
7323
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_all(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7563
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_board_all(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
7324
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_board_all(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
7564
7325
|
);
|
|
7565
7326
|
|
|
7566
7327
|
|
|
7567
7328
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7568
7329
|
}
|
|
7569
7330
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7570
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_board_amount(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging
|
|
7331
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_board_amount(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1])
|
|
7571
7332
|
);
|
|
7572
7333
|
|
|
7573
7334
|
|
|
7574
7335
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7575
7336
|
}
|
|
7576
7337
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7577
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2])
|
|
7338
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3])
|
|
7578
7339
|
);
|
|
7579
7340
|
|
|
7580
7341
|
|
|
@@ -7786,8 +7547,8 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(jsi:
|
|
|
7786
7547
|
|
|
7787
7548
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7788
7549
|
}
|
|
7789
|
-
jsi::Value NativeBark::
|
|
7790
|
-
auto value =
|
|
7550
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7551
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
7791
7552
|
);
|
|
7792
7553
|
|
|
7793
7554
|
|
|
@@ -7846,20 +7607,6 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh(
|
|
|
7846
7607
|
);
|
|
7847
7608
|
|
|
7848
7609
|
|
|
7849
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7850
|
-
}
|
|
7851
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7852
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1])
|
|
7853
|
-
);
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7857
|
-
}
|
|
7858
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7859
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1])
|
|
7860
|
-
);
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
7610
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7864
7611
|
}
|
|
7865
7612
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -8006,7 +7753,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_round_states
|
|
|
8006
7753
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8007
7754
|
}
|
|
8008
7755
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_progress_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8009
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
7756
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_progress_exits(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
8010
7757
|
);
|
|
8011
7758
|
|
|
8012
7759
|
|
|
@@ -8048,7 +7795,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delega
|
|
|
8048
7795
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8049
7796
|
}
|
|
8050
7797
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8051
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_run_daemon(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
7798
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_run_daemon(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
8052
7799
|
);
|
|
8053
7800
|
|
|
8054
7801
|
|
|
@@ -8118,7 +7865,7 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync(jsi::Runtime& r
|
|
|
8118
7865
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8119
7866
|
}
|
|
8120
7867
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8121
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
7868
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_sync_exits(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
8122
7869
|
);
|
|
8123
7870
|
|
|
8124
7871
|
|
|
@@ -8678,22 +8425,15 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletca
|
|
|
8678
8425
|
|
|
8679
8426
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8680
8427
|
}
|
|
8681
|
-
jsi::Value NativeBark::
|
|
8682
|
-
auto value =
|
|
8428
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8429
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine(
|
|
8683
8430
|
);
|
|
8684
8431
|
|
|
8685
8432
|
|
|
8686
8433
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8687
8434
|
}
|
|
8688
|
-
jsi::Value NativeBark::
|
|
8689
|
-
auto value =
|
|
8690
|
-
);
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8694
|
-
}
|
|
8695
|
-
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) {
|
|
8696
|
-
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(
|
|
8435
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8436
|
+
auto value = uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx(
|
|
8697
8437
|
);
|
|
8698
8438
|
|
|
8699
8439
|
|
|
@@ -9021,8 +8761,8 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_is_invoice_pai
|
|
|
9021
8761
|
|
|
9022
8762
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9023
8763
|
}
|
|
9024
|
-
jsi::Value NativeBark::
|
|
9025
|
-
auto value =
|
|
8764
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8765
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state(
|
|
9026
8766
|
);
|
|
9027
8767
|
|
|
9028
8768
|
|
|
@@ -9075,20 +8815,6 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_re
|
|
|
9075
8815
|
);
|
|
9076
8816
|
|
|
9077
8817
|
|
|
9078
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9079
|
-
}
|
|
9080
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9081
|
-
auto value = uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain(
|
|
9082
|
-
);
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9086
|
-
}
|
|
9087
|
-
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9088
|
-
auto value = uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated(
|
|
9089
|
-
);
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
8818
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9093
8819
|
}
|
|
9094
8820
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|