react-native-bdk-sdk 0.1.3 → 0.1.5
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/BdkSdk.podspec +1 -1
- package/cpp/generated/bdk_ffi.cpp +232 -33
- package/cpp/generated/bdk_ffi.hpp +11 -0
- package/lib/commonjs/generated/bdk_ffi-ffi.js.map +1 -1
- package/lib/commonjs/generated/bdk_ffi.js +1945 -1481
- package/lib/commonjs/generated/bdk_ffi.js.map +1 -1
- package/lib/module/generated/bdk_ffi-ffi.js.map +1 -1
- package/lib/module/generated/bdk_ffi.js +1943 -1481
- package/lib/module/generated/bdk_ffi.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bdk_ffi-ffi.d.ts +15 -4
- package/lib/typescript/commonjs/src/generated/bdk_ffi-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bdk_ffi.d.ts +3329 -1949
- package/lib/typescript/commonjs/src/generated/bdk_ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bdk_ffi-ffi.d.ts +15 -4
- package/lib/typescript/module/src/generated/bdk_ffi-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bdk_ffi.d.ts +3329 -1949
- package/lib/typescript/module/src/generated/bdk_ffi.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bdk_ffi-ffi.ts +49 -14
- package/src/generated/bdk_ffi.ts +2866 -2125
package/BdkSdk.podspec
CHANGED
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
|
|
18
18
|
s.source_files = "ios/*.{h,m,mm,swift}", "ios/generated/**/*.{h}", "cpp/**/*.{hpp,cpp,c,h}", "cpp/generated/**/*.{hpp,cpp,c,h}"
|
|
19
19
|
s.vendored_frameworks = "build/RnBdk.xcframework"
|
|
20
|
-
s.dependency "uniffi-bindgen-react-native", "0.
|
|
20
|
+
s.dependency "uniffi-bindgen-react-native", "0.31.0-2"
|
|
21
21
|
|
|
22
22
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
23
23
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
@@ -129,6 +129,18 @@ extern "C" {
|
|
|
129
129
|
uint64_t callback_data,
|
|
130
130
|
UniffiForeignFutureResultVoid result
|
|
131
131
|
);
|
|
132
|
+
/*handle*/ uint64_t uniffi_bdk_ffi_fn_clone_electrumclient(
|
|
133
|
+
/*handle*/ uint64_t handle,
|
|
134
|
+
RustCallStatus *uniffi_out_err
|
|
135
|
+
);
|
|
136
|
+
void uniffi_bdk_ffi_fn_free_electrumclient(
|
|
137
|
+
/*handle*/ uint64_t handle,
|
|
138
|
+
RustCallStatus *uniffi_out_err
|
|
139
|
+
);
|
|
140
|
+
/*handle*/ uint64_t uniffi_bdk_ffi_fn_constructor_electrumclient_new(
|
|
141
|
+
RustBuffer url,
|
|
142
|
+
RustCallStatus *uniffi_out_err
|
|
143
|
+
);
|
|
132
144
|
/*handle*/ uint64_t uniffi_bdk_ffi_fn_clone_mnemonic(
|
|
133
145
|
/*handle*/ uint64_t handle,
|
|
134
146
|
RustCallStatus *uniffi_out_err
|
|
@@ -315,8 +327,7 @@ extern "C" {
|
|
|
315
327
|
);
|
|
316
328
|
/*handle*/ uint64_t uniffi_bdk_ffi_fn_method_txbuilder_finish(
|
|
317
329
|
/*handle*/ uint64_t ptr,
|
|
318
|
-
/*handle*/ uint64_t wallet
|
|
319
|
-
RustCallStatus *uniffi_out_err
|
|
330
|
+
/*handle*/ uint64_t wallet
|
|
320
331
|
);
|
|
321
332
|
void uniffi_bdk_ffi_fn_method_txbuilder_include_output_redeem_witness_script(
|
|
322
333
|
/*handle*/ uint64_t ptr,
|
|
@@ -390,11 +401,10 @@ extern "C" {
|
|
|
390
401
|
RustBuffer db_path,
|
|
391
402
|
RustCallStatus *uniffi_out_err
|
|
392
403
|
);
|
|
393
|
-
|
|
404
|
+
/*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(
|
|
394
405
|
/*handle*/ uint64_t ptr,
|
|
395
|
-
|
|
396
|
-
/*handle*/ uint64_t psbt
|
|
397
|
-
RustCallStatus *uniffi_out_err
|
|
406
|
+
/*handle*/ uint64_t client,
|
|
407
|
+
/*handle*/ uint64_t psbt
|
|
398
408
|
);
|
|
399
409
|
/*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_broadcast_with_esplora(
|
|
400
410
|
/*handle*/ uint64_t ptr,
|
|
@@ -447,16 +457,21 @@ extern "C" {
|
|
|
447
457
|
double fee_rate,
|
|
448
458
|
RustBuffer esplora_url
|
|
449
459
|
);
|
|
460
|
+
/*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum(
|
|
461
|
+
/*handle*/ uint64_t ptr,
|
|
462
|
+
RustBuffer address,
|
|
463
|
+
double fee_rate,
|
|
464
|
+
/*handle*/ uint64_t client
|
|
465
|
+
);
|
|
450
466
|
int8_t uniffi_bdk_ffi_fn_method_wallet_finalize_psbt(
|
|
451
467
|
/*handle*/ uint64_t ptr,
|
|
452
468
|
/*handle*/ uint64_t psbt,
|
|
453
469
|
RustCallStatus *uniffi_out_err
|
|
454
470
|
);
|
|
455
|
-
|
|
471
|
+
/*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(
|
|
456
472
|
/*handle*/ uint64_t ptr,
|
|
457
|
-
|
|
458
|
-
uint64_t stop_gap
|
|
459
|
-
RustCallStatus *uniffi_out_err
|
|
473
|
+
/*handle*/ uint64_t client,
|
|
474
|
+
uint64_t stop_gap
|
|
460
475
|
);
|
|
461
476
|
/*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_full_scan_with_esplora(
|
|
462
477
|
/*handle*/ uint64_t ptr,
|
|
@@ -567,6 +582,13 @@ extern "C" {
|
|
|
567
582
|
double fee_rate,
|
|
568
583
|
RustBuffer esplora_url
|
|
569
584
|
);
|
|
585
|
+
/*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_send_with_electrum(
|
|
586
|
+
/*handle*/ uint64_t ptr,
|
|
587
|
+
RustBuffer address,
|
|
588
|
+
uint64_t amount_sats,
|
|
589
|
+
double fee_rate,
|
|
590
|
+
/*handle*/ uint64_t client
|
|
591
|
+
);
|
|
570
592
|
RustBuffer uniffi_bdk_ffi_fn_method_wallet_sent_and_received(
|
|
571
593
|
/*handle*/ uint64_t ptr,
|
|
572
594
|
RustBuffer tx_hex,
|
|
@@ -577,11 +599,10 @@ extern "C" {
|
|
|
577
599
|
/*handle*/ uint64_t psbt,
|
|
578
600
|
RustCallStatus *uniffi_out_err
|
|
579
601
|
);
|
|
580
|
-
|
|
602
|
+
/*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(
|
|
581
603
|
/*handle*/ uint64_t ptr,
|
|
582
|
-
|
|
583
|
-
uint64_t stop_gap
|
|
584
|
-
RustCallStatus *uniffi_out_err
|
|
604
|
+
/*handle*/ uint64_t client,
|
|
605
|
+
uint64_t stop_gap
|
|
585
606
|
);
|
|
586
607
|
/*handle*/ uint64_t uniffi_bdk_ffi_fn_method_wallet_sync_with_esplora(
|
|
587
608
|
/*handle*/ uint64_t ptr,
|
|
@@ -623,6 +644,12 @@ extern "C" {
|
|
|
623
644
|
RustBuffer network,
|
|
624
645
|
RustCallStatus *uniffi_out_err
|
|
625
646
|
);
|
|
647
|
+
/*handle*/ uint64_t uniffi_bdk_ffi_fn_func_create_wallet(
|
|
648
|
+
RustBuffer descriptor,
|
|
649
|
+
RustBuffer change_descriptor,
|
|
650
|
+
RustBuffer network,
|
|
651
|
+
RustBuffer db_path
|
|
652
|
+
);
|
|
626
653
|
RustBuffer uniffi_bdk_ffi_fn_func_export_wallet(
|
|
627
654
|
/*handle*/ uint64_t wallet,
|
|
628
655
|
RustBuffer label,
|
|
@@ -845,6 +872,8 @@ extern "C" {
|
|
|
845
872
|
);
|
|
846
873
|
uint16_t uniffi_bdk_ffi_checksum_func_create_single_key_descriptor(
|
|
847
874
|
);
|
|
875
|
+
uint16_t uniffi_bdk_ffi_checksum_func_create_wallet(
|
|
876
|
+
);
|
|
848
877
|
uint16_t uniffi_bdk_ffi_checksum_func_export_wallet(
|
|
849
878
|
);
|
|
850
879
|
uint16_t uniffi_bdk_ffi_checksum_func_is_valid_address(
|
|
@@ -959,6 +988,8 @@ extern "C" {
|
|
|
959
988
|
);
|
|
960
989
|
uint16_t uniffi_bdk_ffi_checksum_method_wallet_drain(
|
|
961
990
|
);
|
|
991
|
+
uint16_t uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum(
|
|
992
|
+
);
|
|
962
993
|
uint16_t uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt(
|
|
963
994
|
);
|
|
964
995
|
uint16_t uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_electrum(
|
|
@@ -1007,6 +1038,8 @@ extern "C" {
|
|
|
1007
1038
|
);
|
|
1008
1039
|
uint16_t uniffi_bdk_ffi_checksum_method_wallet_send(
|
|
1009
1040
|
);
|
|
1041
|
+
uint16_t uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum(
|
|
1042
|
+
);
|
|
1010
1043
|
uint16_t uniffi_bdk_ffi_checksum_method_wallet_sent_and_received(
|
|
1011
1044
|
);
|
|
1012
1045
|
uint16_t uniffi_bdk_ffi_checksum_method_wallet_sign(
|
|
@@ -1021,6 +1054,8 @@ extern "C" {
|
|
|
1021
1054
|
);
|
|
1022
1055
|
uint16_t uniffi_bdk_ffi_checksum_method_wallet_unmark_used(
|
|
1023
1056
|
);
|
|
1057
|
+
uint16_t uniffi_bdk_ffi_checksum_constructor_electrumclient_new(
|
|
1058
|
+
);
|
|
1024
1059
|
uint16_t uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy(
|
|
1025
1060
|
);
|
|
1026
1061
|
uint16_t uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy_in(
|
|
@@ -2469,6 +2504,30 @@ NativeBdkFfi::NativeBdkFfi(
|
|
|
2469
2504
|
return this->cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(rt, thisVal, args, count);
|
|
2470
2505
|
}
|
|
2471
2506
|
);
|
|
2507
|
+
props["ubrn_uniffi_bdk_ffi_fn_clone_electrumclient"] = jsi::Function::createFromHostFunction(
|
|
2508
|
+
rt,
|
|
2509
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_clone_electrumclient"),
|
|
2510
|
+
1,
|
|
2511
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2512
|
+
return this->cpp_uniffi_bdk_ffi_fn_clone_electrumclient(rt, thisVal, args, count);
|
|
2513
|
+
}
|
|
2514
|
+
);
|
|
2515
|
+
props["ubrn_uniffi_bdk_ffi_fn_free_electrumclient"] = jsi::Function::createFromHostFunction(
|
|
2516
|
+
rt,
|
|
2517
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_free_electrumclient"),
|
|
2518
|
+
1,
|
|
2519
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2520
|
+
return this->cpp_uniffi_bdk_ffi_fn_free_electrumclient(rt, thisVal, args, count);
|
|
2521
|
+
}
|
|
2522
|
+
);
|
|
2523
|
+
props["ubrn_uniffi_bdk_ffi_fn_constructor_electrumclient_new"] = jsi::Function::createFromHostFunction(
|
|
2524
|
+
rt,
|
|
2525
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_constructor_electrumclient_new"),
|
|
2526
|
+
1,
|
|
2527
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2528
|
+
return this->cpp_uniffi_bdk_ffi_fn_constructor_electrumclient_new(rt, thisVal, args, count);
|
|
2529
|
+
}
|
|
2530
|
+
);
|
|
2472
2531
|
props["ubrn_uniffi_bdk_ffi_fn_clone_mnemonic"] = jsi::Function::createFromHostFunction(
|
|
2473
2532
|
rt,
|
|
2474
2533
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_clone_mnemonic"),
|
|
@@ -3021,6 +3080,14 @@ NativeBdkFfi::NativeBdkFfi(
|
|
|
3021
3080
|
return this->cpp_uniffi_bdk_ffi_fn_method_wallet_drain(rt, thisVal, args, count);
|
|
3022
3081
|
}
|
|
3023
3082
|
);
|
|
3083
|
+
props["ubrn_uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum"] = jsi::Function::createFromHostFunction(
|
|
3084
|
+
rt,
|
|
3085
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum"),
|
|
3086
|
+
4,
|
|
3087
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3088
|
+
return this->cpp_uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum(rt, thisVal, args, count);
|
|
3089
|
+
}
|
|
3090
|
+
);
|
|
3024
3091
|
props["ubrn_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt"] = jsi::Function::createFromHostFunction(
|
|
3025
3092
|
rt,
|
|
3026
3093
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt"),
|
|
@@ -3213,6 +3280,14 @@ NativeBdkFfi::NativeBdkFfi(
|
|
|
3213
3280
|
return this->cpp_uniffi_bdk_ffi_fn_method_wallet_send(rt, thisVal, args, count);
|
|
3214
3281
|
}
|
|
3215
3282
|
);
|
|
3283
|
+
props["ubrn_uniffi_bdk_ffi_fn_method_wallet_send_with_electrum"] = jsi::Function::createFromHostFunction(
|
|
3284
|
+
rt,
|
|
3285
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_method_wallet_send_with_electrum"),
|
|
3286
|
+
5,
|
|
3287
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3288
|
+
return this->cpp_uniffi_bdk_ffi_fn_method_wallet_send_with_electrum(rt, thisVal, args, count);
|
|
3289
|
+
}
|
|
3290
|
+
);
|
|
3216
3291
|
props["ubrn_uniffi_bdk_ffi_fn_method_wallet_sent_and_received"] = jsi::Function::createFromHostFunction(
|
|
3217
3292
|
rt,
|
|
3218
3293
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_method_wallet_sent_and_received"),
|
|
@@ -3293,6 +3368,14 @@ NativeBdkFfi::NativeBdkFfi(
|
|
|
3293
3368
|
return this->cpp_uniffi_bdk_ffi_fn_func_create_single_key_descriptor(rt, thisVal, args, count);
|
|
3294
3369
|
}
|
|
3295
3370
|
);
|
|
3371
|
+
props["ubrn_uniffi_bdk_ffi_fn_func_create_wallet"] = jsi::Function::createFromHostFunction(
|
|
3372
|
+
rt,
|
|
3373
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_create_wallet"),
|
|
3374
|
+
4,
|
|
3375
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3376
|
+
return this->cpp_uniffi_bdk_ffi_fn_func_create_wallet(rt, thisVal, args, count);
|
|
3377
|
+
}
|
|
3378
|
+
);
|
|
3296
3379
|
props["ubrn_uniffi_bdk_ffi_fn_func_export_wallet"] = jsi::Function::createFromHostFunction(
|
|
3297
3380
|
rt,
|
|
3298
3381
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_fn_func_export_wallet"),
|
|
@@ -3733,6 +3816,14 @@ NativeBdkFfi::NativeBdkFfi(
|
|
|
3733
3816
|
return this->cpp_uniffi_bdk_ffi_checksum_func_create_single_key_descriptor(rt, thisVal, args, count);
|
|
3734
3817
|
}
|
|
3735
3818
|
);
|
|
3819
|
+
props["ubrn_uniffi_bdk_ffi_checksum_func_create_wallet"] = jsi::Function::createFromHostFunction(
|
|
3820
|
+
rt,
|
|
3821
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_create_wallet"),
|
|
3822
|
+
0,
|
|
3823
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3824
|
+
return this->cpp_uniffi_bdk_ffi_checksum_func_create_wallet(rt, thisVal, args, count);
|
|
3825
|
+
}
|
|
3826
|
+
);
|
|
3736
3827
|
props["ubrn_uniffi_bdk_ffi_checksum_func_export_wallet"] = jsi::Function::createFromHostFunction(
|
|
3737
3828
|
rt,
|
|
3738
3829
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_func_export_wallet"),
|
|
@@ -4189,6 +4280,14 @@ NativeBdkFfi::NativeBdkFfi(
|
|
|
4189
4280
|
return this->cpp_uniffi_bdk_ffi_checksum_method_wallet_drain(rt, thisVal, args, count);
|
|
4190
4281
|
}
|
|
4191
4282
|
);
|
|
4283
|
+
props["ubrn_uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum"] = jsi::Function::createFromHostFunction(
|
|
4284
|
+
rt,
|
|
4285
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum"),
|
|
4286
|
+
0,
|
|
4287
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4288
|
+
return this->cpp_uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum(rt, thisVal, args, count);
|
|
4289
|
+
}
|
|
4290
|
+
);
|
|
4192
4291
|
props["ubrn_uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt"] = jsi::Function::createFromHostFunction(
|
|
4193
4292
|
rt,
|
|
4194
4293
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt"),
|
|
@@ -4381,6 +4480,14 @@ NativeBdkFfi::NativeBdkFfi(
|
|
|
4381
4480
|
return this->cpp_uniffi_bdk_ffi_checksum_method_wallet_send(rt, thisVal, args, count);
|
|
4382
4481
|
}
|
|
4383
4482
|
);
|
|
4483
|
+
props["ubrn_uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum"] = jsi::Function::createFromHostFunction(
|
|
4484
|
+
rt,
|
|
4485
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum"),
|
|
4486
|
+
0,
|
|
4487
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4488
|
+
return this->cpp_uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum(rt, thisVal, args, count);
|
|
4489
|
+
}
|
|
4490
|
+
);
|
|
4384
4491
|
props["ubrn_uniffi_bdk_ffi_checksum_method_wallet_sent_and_received"] = jsi::Function::createFromHostFunction(
|
|
4385
4492
|
rt,
|
|
4386
4493
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_method_wallet_sent_and_received"),
|
|
@@ -4437,6 +4544,14 @@ NativeBdkFfi::NativeBdkFfi(
|
|
|
4437
4544
|
return this->cpp_uniffi_bdk_ffi_checksum_method_wallet_unmark_used(rt, thisVal, args, count);
|
|
4438
4545
|
}
|
|
4439
4546
|
);
|
|
4547
|
+
props["ubrn_uniffi_bdk_ffi_checksum_constructor_electrumclient_new"] = jsi::Function::createFromHostFunction(
|
|
4548
|
+
rt,
|
|
4549
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_constructor_electrumclient_new"),
|
|
4550
|
+
0,
|
|
4551
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4552
|
+
return this->cpp_uniffi_bdk_ffi_checksum_constructor_electrumclient_new(rt, thisVal, args, count);
|
|
4553
|
+
}
|
|
4554
|
+
);
|
|
4440
4555
|
props["ubrn_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy"] = jsi::Function::createFromHostFunction(
|
|
4441
4556
|
rt,
|
|
4442
4557
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy"),
|
|
@@ -4509,6 +4624,14 @@ NativeBdkFfi::NativeBdkFfi(
|
|
|
4509
4624
|
return this->cpp_ffi_bdk_ffi_uniffi_contract_version(rt, thisVal, args, count);
|
|
4510
4625
|
}
|
|
4511
4626
|
);
|
|
4627
|
+
props["ubrn_uniffi_internal_fn_method_electrumclient_ffi__bless_pointer"] = jsi::Function::createFromHostFunction(
|
|
4628
|
+
rt,
|
|
4629
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_electrumclient_ffi__bless_pointer"),
|
|
4630
|
+
1,
|
|
4631
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4632
|
+
return this->cpp_uniffi_internal_fn_method_electrumclient_ffi__bless_pointer(rt, thisVal, args, count);
|
|
4633
|
+
}
|
|
4634
|
+
);
|
|
4512
4635
|
props["ubrn_uniffi_internal_fn_method_mnemonic_ffi__bless_pointer"] = jsi::Function::createFromHostFunction(
|
|
4513
4636
|
rt,
|
|
4514
4637
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_mnemonic_ffi__bless_pointer"),
|
|
@@ -4595,6 +4718,15 @@ jsi::Value NativeBdkFfi::cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer(
|
|
|
4595
4718
|
|
|
4596
4719
|
jsi::Value NativeBdkFfi::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4597
4720
|
return uniffi_jsi::Bridging<std::string>::arraybuffer_to_string(rt, args[0]);
|
|
4721
|
+
}jsi::Value NativeBdkFfi::cpp_uniffi_internal_fn_method_electrumclient_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4722
|
+
auto pointer = uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
4723
|
+
auto static destructor = [](uint64_t p) {
|
|
4724
|
+
RustCallStatus status = {0};
|
|
4725
|
+
uniffi_bdk_ffi_fn_free_electrumclient(p, &status);
|
|
4726
|
+
};
|
|
4727
|
+
auto ptrObj = std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
|
|
4728
|
+
auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
|
|
4729
|
+
return jsi::Value(rt, obj);
|
|
4598
4730
|
}jsi::Value NativeBdkFfi::cpp_uniffi_internal_fn_method_mnemonic_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4599
4731
|
auto pointer = uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
4600
4732
|
auto static destructor = [](uint64_t p) {
|
|
@@ -4634,6 +4766,36 @@ jsi::Value NativeBdkFfi::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(
|
|
|
4634
4766
|
}
|
|
4635
4767
|
|
|
4636
4768
|
// Methods calling directly into the uniffi generated C API of the Rust crate.
|
|
4769
|
+
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_clone_electrumclient(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4770
|
+
RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4771
|
+
auto value = uniffi_bdk_ffi_fn_clone_electrumclient(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
4772
|
+
&status
|
|
4773
|
+
);
|
|
4774
|
+
uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
4775
|
+
|
|
4776
|
+
|
|
4777
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
4778
|
+
}
|
|
4779
|
+
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_free_electrumclient(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4780
|
+
RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4781
|
+
uniffi_bdk_ffi_fn_free_electrumclient(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
4782
|
+
&status
|
|
4783
|
+
);
|
|
4784
|
+
uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
4785
|
+
|
|
4786
|
+
|
|
4787
|
+
return jsi::Value::undefined();
|
|
4788
|
+
}
|
|
4789
|
+
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_constructor_electrumclient_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4790
|
+
RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4791
|
+
auto value = uniffi_bdk_ffi_fn_constructor_electrumclient_new(uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
4792
|
+
&status
|
|
4793
|
+
);
|
|
4794
|
+
uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
4795
|
+
|
|
4796
|
+
|
|
4797
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
4798
|
+
}
|
|
4637
4799
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_clone_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4638
4800
|
RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4639
4801
|
auto value = uniffi_bdk_ffi_fn_clone_mnemonic(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
@@ -5054,11 +5216,8 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_txbuilder_fee_rate(jsi::Ru
|
|
|
5054
5216
|
return jsi::Value::undefined();
|
|
5055
5217
|
}
|
|
5056
5218
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_txbuilder_finish(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5057
|
-
|
|
5058
|
-
auto value = uniffi_bdk_ffi_fn_method_txbuilder_finish(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]),
|
|
5059
|
-
&status
|
|
5219
|
+
auto value = uniffi_bdk_ffi_fn_method_txbuilder_finish(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1])
|
|
5060
5220
|
);
|
|
5061
|
-
uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
5062
5221
|
|
|
5063
5222
|
|
|
5064
5223
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
@@ -5214,14 +5373,11 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_constructor_wallet_new(jsi::Runti
|
|
|
5214
5373
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5215
5374
|
}
|
|
5216
5375
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5217
|
-
|
|
5218
|
-
auto value = uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[2]),
|
|
5219
|
-
&status
|
|
5376
|
+
auto value = uniffi_bdk_ffi_fn_method_wallet_broadcast_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[2])
|
|
5220
5377
|
);
|
|
5221
|
-
uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
5222
5378
|
|
|
5223
5379
|
|
|
5224
|
-
return
|
|
5380
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5225
5381
|
}
|
|
5226
5382
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_broadcast_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5227
5383
|
auto value = uniffi_bdk_ffi_fn_method_wallet_broadcast_with_esplora(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[2])
|
|
@@ -5315,6 +5471,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_drain(jsi::Runtime&
|
|
|
5315
5471
|
);
|
|
5316
5472
|
|
|
5317
5473
|
|
|
5474
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5475
|
+
}
|
|
5476
|
+
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5477
|
+
auto value = uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<double>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[3])
|
|
5478
|
+
);
|
|
5479
|
+
|
|
5480
|
+
|
|
5318
5481
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5319
5482
|
}
|
|
5320
5483
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -5328,14 +5491,11 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt(jsi::
|
|
|
5328
5491
|
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
5329
5492
|
}
|
|
5330
5493
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5331
|
-
|
|
5332
|
-
uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]),
|
|
5333
|
-
&status
|
|
5494
|
+
auto value = uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2])
|
|
5334
5495
|
);
|
|
5335
|
-
uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
5336
5496
|
|
|
5337
5497
|
|
|
5338
|
-
return
|
|
5498
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5339
5499
|
}
|
|
5340
5500
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_full_scan_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5341
5501
|
auto value = uniffi_bdk_ffi_fn_method_wallet_full_scan_with_esplora(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2])
|
|
@@ -5549,6 +5709,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_send(jsi::Runtime&
|
|
|
5549
5709
|
);
|
|
5550
5710
|
|
|
5551
5711
|
|
|
5712
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5713
|
+
}
|
|
5714
|
+
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_send_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5715
|
+
auto value = uniffi_bdk_ffi_fn_method_wallet_send_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<double>::fromJs(rt, callInvoker, args[3]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[4])
|
|
5716
|
+
);
|
|
5717
|
+
|
|
5718
|
+
|
|
5552
5719
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5553
5720
|
}
|
|
5554
5721
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_sent_and_received(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -5572,14 +5739,11 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_sign(jsi::Runtime&
|
|
|
5572
5739
|
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
5573
5740
|
}
|
|
5574
5741
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5575
|
-
|
|
5576
|
-
uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2]),
|
|
5577
|
-
&status
|
|
5742
|
+
auto value = uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2])
|
|
5578
5743
|
);
|
|
5579
|
-
uniffi::bdk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
5580
5744
|
|
|
5581
5745
|
|
|
5582
|
-
return
|
|
5746
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5583
5747
|
}
|
|
5584
5748
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_method_wallet_sync_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5585
5749
|
auto value = uniffi_bdk_ffi_fn_method_wallet_sync_with_esplora(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[2])
|
|
@@ -5648,6 +5812,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_create_single_key_descriptor
|
|
|
5648
5812
|
|
|
5649
5813
|
return uniffi::bdk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
5650
5814
|
}
|
|
5815
|
+
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_create_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5816
|
+
auto value = uniffi_bdk_ffi_fn_func_create_wallet(uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3])
|
|
5817
|
+
);
|
|
5818
|
+
|
|
5819
|
+
|
|
5820
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
5821
|
+
}
|
|
5651
5822
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_fn_func_export_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
5652
5823
|
RustCallStatus status = uniffi::bdk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
5653
5824
|
auto value = uniffi_bdk_ffi_fn_func_export_wallet(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bdk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<int8_t>::fromJs(rt, callInvoker, args[2]),
|
|
@@ -6078,6 +6249,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_create_single_key_desc
|
|
|
6078
6249
|
);
|
|
6079
6250
|
|
|
6080
6251
|
|
|
6252
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6253
|
+
}
|
|
6254
|
+
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_create_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6255
|
+
auto value = uniffi_bdk_ffi_checksum_func_create_wallet(
|
|
6256
|
+
);
|
|
6257
|
+
|
|
6258
|
+
|
|
6081
6259
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6082
6260
|
}
|
|
6083
6261
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_func_export_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -6477,6 +6655,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_drain(jsi::Ru
|
|
|
6477
6655
|
);
|
|
6478
6656
|
|
|
6479
6657
|
|
|
6658
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6659
|
+
}
|
|
6660
|
+
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6661
|
+
auto value = uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum(
|
|
6662
|
+
);
|
|
6663
|
+
|
|
6664
|
+
|
|
6480
6665
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6481
6666
|
}
|
|
6482
6667
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -6645,6 +6830,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_send(jsi::Run
|
|
|
6645
6830
|
);
|
|
6646
6831
|
|
|
6647
6832
|
|
|
6833
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6834
|
+
}
|
|
6835
|
+
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6836
|
+
auto value = uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum(
|
|
6837
|
+
);
|
|
6838
|
+
|
|
6839
|
+
|
|
6648
6840
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6649
6841
|
}
|
|
6650
6842
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_sent_and_received(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -6694,6 +6886,13 @@ jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_method_wallet_unmark_used(j
|
|
|
6694
6886
|
);
|
|
6695
6887
|
|
|
6696
6888
|
|
|
6889
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6890
|
+
}
|
|
6891
|
+
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_constructor_electrumclient_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6892
|
+
auto value = uniffi_bdk_ffi_checksum_constructor_electrumclient_new(
|
|
6893
|
+
);
|
|
6894
|
+
|
|
6895
|
+
|
|
6697
6896
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6698
6897
|
}
|
|
6699
6898
|
jsi::Value NativeBdkFfi::cpp_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -21,6 +21,9 @@ class NativeBdkFfi : public jsi::HostObject {
|
|
|
21
21
|
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
22
22
|
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
23
23
|
jsi::Value cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
24
|
+
jsi::Value cpp_uniffi_bdk_ffi_fn_clone_electrumclient(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
25
|
+
jsi::Value cpp_uniffi_bdk_ffi_fn_free_electrumclient(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
26
|
+
jsi::Value cpp_uniffi_bdk_ffi_fn_constructor_electrumclient_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
24
27
|
jsi::Value cpp_uniffi_bdk_ffi_fn_clone_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
25
28
|
jsi::Value cpp_uniffi_bdk_ffi_fn_free_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
26
29
|
jsi::Value cpp_uniffi_bdk_ffi_fn_constructor_mnemonic_from_entropy(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -90,6 +93,7 @@ class NativeBdkFfi : public jsi::HostObject {
|
|
|
90
93
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_derivation_of_spk(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
91
94
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_descriptor_checksum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
92
95
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_drain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
96
|
+
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_drain_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
93
97
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_finalize_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
94
98
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_full_scan_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
95
99
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_full_scan_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -114,6 +118,7 @@ class NativeBdkFfi : public jsi::HostObject {
|
|
|
114
118
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_reveal_addresses_to(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
115
119
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_reveal_next_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
116
120
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_send(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
121
|
+
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_send_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
117
122
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_sent_and_received(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
118
123
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_sign(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
119
124
|
jsi::Value cpp_uniffi_bdk_ffi_fn_method_wallet_sync_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -124,6 +129,7 @@ class NativeBdkFfi : public jsi::HostObject {
|
|
|
124
129
|
jsi::Value cpp_uniffi_bdk_ffi_fn_func_create_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
125
130
|
jsi::Value cpp_uniffi_bdk_ffi_fn_func_create_public_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
126
131
|
jsi::Value cpp_uniffi_bdk_ffi_fn_func_create_single_key_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
132
|
+
jsi::Value cpp_uniffi_bdk_ffi_fn_func_create_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
127
133
|
jsi::Value cpp_uniffi_bdk_ffi_fn_func_export_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
128
134
|
jsi::Value cpp_uniffi_bdk_ffi_fn_func_is_valid_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
129
135
|
jsi::Value cpp_uniffi_bdk_ffi_fn_func_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -179,6 +185,7 @@ class NativeBdkFfi : public jsi::HostObject {
|
|
|
179
185
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_func_create_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
180
186
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_func_create_public_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
181
187
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_func_create_single_key_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
188
|
+
jsi::Value cpp_uniffi_bdk_ffi_checksum_func_create_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
182
189
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_func_export_wallet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
183
190
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_func_is_valid_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
184
191
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_func_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -236,6 +243,7 @@ class NativeBdkFfi : public jsi::HostObject {
|
|
|
236
243
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_derivation_of_spk(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
237
244
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_descriptor_checksum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
238
245
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_drain(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
246
|
+
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_drain_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
239
247
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_finalize_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
240
248
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
241
249
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_full_scan_with_esplora(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -260,6 +268,7 @@ class NativeBdkFfi : public jsi::HostObject {
|
|
|
260
268
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_reveal_addresses_to(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
261
269
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_reveal_next_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
262
270
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_send(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
271
|
+
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_send_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
263
272
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_sent_and_received(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
264
273
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_sign(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
265
274
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_sync_with_electrum(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -267,6 +276,7 @@ class NativeBdkFfi : public jsi::HostObject {
|
|
|
267
276
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_transactions(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
268
277
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_tx_details(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
269
278
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_method_wallet_unmark_used(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
279
|
+
jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_electrumclient_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
270
280
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
271
281
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_entropy_in(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
272
282
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_mnemonic_from_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -276,6 +286,7 @@ class NativeBdkFfi : public jsi::HostObject {
|
|
|
276
286
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_txbuilder_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
277
287
|
jsi::Value cpp_uniffi_bdk_ffi_checksum_constructor_wallet_new(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
278
288
|
jsi::Value cpp_ffi_bdk_ffi_uniffi_contract_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
289
|
+
jsi::Value cpp_uniffi_internal_fn_method_electrumclient_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
279
290
|
jsi::Value cpp_uniffi_internal_fn_method_mnemonic_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
280
291
|
jsi::Value cpp_uniffi_internal_fn_method_psbt_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
281
292
|
jsi::Value cpp_uniffi_internal_fn_method_txbuilder_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBdkFfi","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bdk_ffi-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBdkFfi","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bdk_ffi-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AAwzBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,YAAY;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACpBL,MAAM,EAErB;AA4GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
|