@bennyblader/ddk-rn 0.4.0 → 1.0.0-rc1
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 +184 -49
- package/android/src/main/jniLibs/arm64-v8a/libddk_ffi.so +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/libddk_ffi.so +0 -0
- package/android/src/main/jniLibs/x86/libddk_ffi.so +0 -0
- package/android/src/main/jniLibs/x86_64/libddk_ffi.so +0 -0
- package/cpp/ddk_ffi.cpp +1120 -33
- package/cpp/ddk_ffi.hpp +53 -0
- package/ios/DdkRn.xcframework/ios-arm64/libddk_ffi.a +0 -0
- package/ios/DdkRn.xcframework/ios-arm64-simulator/libddk_ffi.a +0 -0
- package/lib/commonjs/ddk_ffi-ffi.js.map +1 -1
- package/lib/commonjs/ddk_ffi.js +2097 -228
- package/lib/commonjs/ddk_ffi.js.map +1 -1
- package/lib/module/ddk_ffi-ffi.js.map +1 -1
- package/lib/module/ddk_ffi.js +2076 -228
- package/lib/module/ddk_ffi.js.map +1 -1
- package/lib/typescript/commonjs/src/ddk_ffi-ffi.d.ts +54 -1
- package/lib/typescript/commonjs/src/ddk_ffi-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ddk_ffi.d.ts +2251 -201
- package/lib/typescript/commonjs/src/ddk_ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/ddk_ffi-ffi.d.ts +54 -1
- package/lib/typescript/module/src/ddk_ffi-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/ddk_ffi.d.ts +2251 -201
- package/lib/typescript/module/src/ddk_ffi.d.ts.map +1 -1
- package/package.json +17 -8
- package/src/ddk_ffi-ffi.ts +190 -0
- package/src/ddk_ffi.ts +3530 -506
package/cpp/ddk_ffi.cpp
CHANGED
|
@@ -129,6 +129,38 @@ extern "C" {
|
|
|
129
129
|
uint64_t callback_data,
|
|
130
130
|
UniffiForeignFutureResultVoid result
|
|
131
131
|
);
|
|
132
|
+
/*handle*/ uint64_t uniffi_ddk_ffi_fn_clone_contractkeyprovider(
|
|
133
|
+
/*handle*/ uint64_t handle,
|
|
134
|
+
RustCallStatus *uniffi_out_err
|
|
135
|
+
);
|
|
136
|
+
void uniffi_ddk_ffi_fn_free_contractkeyprovider(
|
|
137
|
+
/*handle*/ uint64_t handle,
|
|
138
|
+
RustCallStatus *uniffi_out_err
|
|
139
|
+
);
|
|
140
|
+
/*handle*/ uint64_t uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_descriptor(
|
|
141
|
+
RustBuffer descriptor,
|
|
142
|
+
RustCallStatus *uniffi_out_err
|
|
143
|
+
);
|
|
144
|
+
/*handle*/ uint64_t uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_mnemonic(
|
|
145
|
+
RustBuffer mnemonic,
|
|
146
|
+
RustBuffer passphrase,
|
|
147
|
+
RustBuffer network,
|
|
148
|
+
RustCallStatus *uniffi_out_err
|
|
149
|
+
);
|
|
150
|
+
/*handle*/ uint64_t uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_seed(
|
|
151
|
+
RustBuffer seed,
|
|
152
|
+
RustBuffer network,
|
|
153
|
+
RustCallStatus *uniffi_out_err
|
|
154
|
+
);
|
|
155
|
+
/*handle*/ uint64_t uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_xprv(
|
|
156
|
+
RustBuffer xprv,
|
|
157
|
+
RustCallStatus *uniffi_out_err
|
|
158
|
+
);
|
|
159
|
+
RustBuffer uniffi_ddk_ffi_fn_method_contractkeyprovider_funding_pubkey(
|
|
160
|
+
/*handle*/ uint64_t ptr,
|
|
161
|
+
RustBuffer temporary_contract_id,
|
|
162
|
+
RustCallStatus *uniffi_out_err
|
|
163
|
+
);
|
|
132
164
|
int8_t uniffi_ddk_ffi_fn_method_adaptorsignature_verify_from_oracle_info(
|
|
133
165
|
RustBuffer ptr,
|
|
134
166
|
RustBuffer cet,
|
|
@@ -355,6 +387,134 @@ extern "C" {
|
|
|
355
387
|
);
|
|
356
388
|
RustBuffer uniffi_ddk_ffi_fn_func_version(RustCallStatus *uniffi_out_err
|
|
357
389
|
);
|
|
390
|
+
RustBuffer uniffi_ddk_ffi_fn_func_accept_offer(
|
|
391
|
+
RustBuffer offer,
|
|
392
|
+
RustBuffer params,
|
|
393
|
+
/*handle*/ uint64_t keys,
|
|
394
|
+
RustBuffer new_temporary_contract_id,
|
|
395
|
+
RustCallStatus *uniffi_out_err
|
|
396
|
+
);
|
|
397
|
+
RustBuffer uniffi_ddk_ffi_fn_func_chain_hash_from_network(
|
|
398
|
+
RustBuffer network,
|
|
399
|
+
RustCallStatus *uniffi_out_err
|
|
400
|
+
);
|
|
401
|
+
RustBuffer uniffi_ddk_ffi_fn_func_compute_contract_id(
|
|
402
|
+
RustBuffer offer,
|
|
403
|
+
RustBuffer accept,
|
|
404
|
+
RustCallStatus *uniffi_out_err
|
|
405
|
+
);
|
|
406
|
+
RustBuffer uniffi_ddk_ffi_fn_func_contract_info_payouts(
|
|
407
|
+
RustBuffer contract_info,
|
|
408
|
+
RustCallStatus *uniffi_out_err
|
|
409
|
+
);
|
|
410
|
+
RustBuffer uniffi_ddk_ffi_fn_func_create_dlc_splice_input(
|
|
411
|
+
RustBuffer prev_offer,
|
|
412
|
+
RustBuffer prev_accept,
|
|
413
|
+
RustBuffer local_party,
|
|
414
|
+
RustBuffer input_serial_id,
|
|
415
|
+
uint16_t max_witness_len,
|
|
416
|
+
RustCallStatus *uniffi_out_err
|
|
417
|
+
);
|
|
418
|
+
RustBuffer uniffi_ddk_ffi_fn_func_create_funding_psbt(
|
|
419
|
+
RustBuffer offer,
|
|
420
|
+
RustBuffer accept,
|
|
421
|
+
RustCallStatus *uniffi_out_err
|
|
422
|
+
);
|
|
423
|
+
RustBuffer uniffi_ddk_ffi_fn_func_create_offer(
|
|
424
|
+
RustBuffer params,
|
|
425
|
+
RustCallStatus *uniffi_out_err
|
|
426
|
+
);
|
|
427
|
+
uint16_t uniffi_ddk_ffi_fn_func_dlc_input_max_witness_len(RustCallStatus *uniffi_out_err
|
|
428
|
+
);
|
|
429
|
+
RustBuffer uniffi_ddk_ffi_fn_func_dlc_transactions_from_messages(
|
|
430
|
+
RustBuffer offer,
|
|
431
|
+
RustBuffer accept,
|
|
432
|
+
RustCallStatus *uniffi_out_err
|
|
433
|
+
);
|
|
434
|
+
RustBuffer uniffi_ddk_ffi_fn_func_finalize_sign(
|
|
435
|
+
RustBuffer offer,
|
|
436
|
+
RustBuffer accept,
|
|
437
|
+
RustBuffer sign,
|
|
438
|
+
RustBuffer signed_funding_psbt,
|
|
439
|
+
RustCallStatus *uniffi_out_err
|
|
440
|
+
);
|
|
441
|
+
RustBuffer uniffi_ddk_ffi_fn_func_finalize_sign_spliced(
|
|
442
|
+
RustBuffer offer,
|
|
443
|
+
RustBuffer accept,
|
|
444
|
+
RustBuffer sign,
|
|
445
|
+
RustBuffer signed_funding_psbt,
|
|
446
|
+
/*handle*/ uint64_t keys,
|
|
447
|
+
RustBuffer splice_keys,
|
|
448
|
+
RustCallStatus *uniffi_out_err
|
|
449
|
+
);
|
|
450
|
+
RustBuffer uniffi_ddk_ffi_fn_func_funding_input(
|
|
451
|
+
RustBuffer previous_transaction,
|
|
452
|
+
uint32_t vout,
|
|
453
|
+
RustBuffer input_serial_id,
|
|
454
|
+
uint32_t sequence,
|
|
455
|
+
uint16_t max_witness_len,
|
|
456
|
+
RustBuffer redeem_script,
|
|
457
|
+
RustCallStatus *uniffi_out_err
|
|
458
|
+
);
|
|
459
|
+
RustBuffer uniffi_ddk_ffi_fn_func_sign_accept(
|
|
460
|
+
RustBuffer offer,
|
|
461
|
+
RustBuffer accept,
|
|
462
|
+
/*handle*/ uint64_t keys,
|
|
463
|
+
RustBuffer temporary_contract_id,
|
|
464
|
+
RustBuffer signed_funding_psbt,
|
|
465
|
+
RustCallStatus *uniffi_out_err
|
|
466
|
+
);
|
|
467
|
+
RustBuffer uniffi_ddk_ffi_fn_func_sign_accept_spliced(
|
|
468
|
+
RustBuffer offer,
|
|
469
|
+
RustBuffer accept,
|
|
470
|
+
/*handle*/ uint64_t keys,
|
|
471
|
+
RustBuffer temporary_contract_id,
|
|
472
|
+
RustBuffer signed_funding_psbt,
|
|
473
|
+
RustBuffer splice_keys,
|
|
474
|
+
RustCallStatus *uniffi_out_err
|
|
475
|
+
);
|
|
476
|
+
RustBuffer uniffi_ddk_ffi_fn_func_sign_contract_cet(
|
|
477
|
+
RustBuffer offer,
|
|
478
|
+
RustBuffer accept,
|
|
479
|
+
RustBuffer sign,
|
|
480
|
+
/*handle*/ uint64_t keys,
|
|
481
|
+
RustBuffer temporary_contract_id,
|
|
482
|
+
RustBuffer attestations,
|
|
483
|
+
RustCallStatus *uniffi_out_err
|
|
484
|
+
);
|
|
485
|
+
RustBuffer uniffi_ddk_ffi_fn_func_sign_contract_refund(
|
|
486
|
+
RustBuffer offer,
|
|
487
|
+
RustBuffer accept,
|
|
488
|
+
RustBuffer sign,
|
|
489
|
+
/*handle*/ uint64_t keys,
|
|
490
|
+
RustBuffer temporary_contract_id,
|
|
491
|
+
RustCallStatus *uniffi_out_err
|
|
492
|
+
);
|
|
493
|
+
RustBuffer uniffi_ddk_ffi_fn_func_sign_funding_psbt_with_descriptor(
|
|
494
|
+
RustBuffer offer,
|
|
495
|
+
RustBuffer accept,
|
|
496
|
+
RustBuffer funding_psbt,
|
|
497
|
+
RustBuffer descriptor,
|
|
498
|
+
RustBuffer inputs,
|
|
499
|
+
RustCallStatus *uniffi_out_err
|
|
500
|
+
);
|
|
501
|
+
void uniffi_ddk_ffi_fn_func_validate_accept(
|
|
502
|
+
RustBuffer offer,
|
|
503
|
+
RustBuffer accept,
|
|
504
|
+
RustCallStatus *uniffi_out_err
|
|
505
|
+
);
|
|
506
|
+
void uniffi_ddk_ffi_fn_func_validate_offer(
|
|
507
|
+
RustBuffer offer,
|
|
508
|
+
uint32_t min_timeout_interval,
|
|
509
|
+
uint32_t max_timeout_interval,
|
|
510
|
+
RustCallStatus *uniffi_out_err
|
|
511
|
+
);
|
|
512
|
+
void uniffi_ddk_ffi_fn_func_validate_sign(
|
|
513
|
+
RustBuffer offer,
|
|
514
|
+
RustBuffer accept,
|
|
515
|
+
RustBuffer sign,
|
|
516
|
+
RustCallStatus *uniffi_out_err
|
|
517
|
+
);
|
|
358
518
|
RustBuffer ffi_ddk_ffi_rustbuffer_alloc(
|
|
359
519
|
uint64_t size,
|
|
360
520
|
RustCallStatus *uniffi_out_err
|
|
@@ -590,6 +750,56 @@ extern "C" {
|
|
|
590
750
|
);
|
|
591
751
|
uint16_t uniffi_ddk_ffi_checksum_func_version(
|
|
592
752
|
);
|
|
753
|
+
uint16_t uniffi_ddk_ffi_checksum_func_accept_offer(
|
|
754
|
+
);
|
|
755
|
+
uint16_t uniffi_ddk_ffi_checksum_func_chain_hash_from_network(
|
|
756
|
+
);
|
|
757
|
+
uint16_t uniffi_ddk_ffi_checksum_func_compute_contract_id(
|
|
758
|
+
);
|
|
759
|
+
uint16_t uniffi_ddk_ffi_checksum_func_contract_info_payouts(
|
|
760
|
+
);
|
|
761
|
+
uint16_t uniffi_ddk_ffi_checksum_func_create_dlc_splice_input(
|
|
762
|
+
);
|
|
763
|
+
uint16_t uniffi_ddk_ffi_checksum_func_create_funding_psbt(
|
|
764
|
+
);
|
|
765
|
+
uint16_t uniffi_ddk_ffi_checksum_func_create_offer(
|
|
766
|
+
);
|
|
767
|
+
uint16_t uniffi_ddk_ffi_checksum_func_dlc_input_max_witness_len(
|
|
768
|
+
);
|
|
769
|
+
uint16_t uniffi_ddk_ffi_checksum_func_dlc_transactions_from_messages(
|
|
770
|
+
);
|
|
771
|
+
uint16_t uniffi_ddk_ffi_checksum_func_finalize_sign(
|
|
772
|
+
);
|
|
773
|
+
uint16_t uniffi_ddk_ffi_checksum_func_finalize_sign_spliced(
|
|
774
|
+
);
|
|
775
|
+
uint16_t uniffi_ddk_ffi_checksum_func_funding_input(
|
|
776
|
+
);
|
|
777
|
+
uint16_t uniffi_ddk_ffi_checksum_func_sign_accept(
|
|
778
|
+
);
|
|
779
|
+
uint16_t uniffi_ddk_ffi_checksum_func_sign_accept_spliced(
|
|
780
|
+
);
|
|
781
|
+
uint16_t uniffi_ddk_ffi_checksum_func_sign_contract_cet(
|
|
782
|
+
);
|
|
783
|
+
uint16_t uniffi_ddk_ffi_checksum_func_sign_contract_refund(
|
|
784
|
+
);
|
|
785
|
+
uint16_t uniffi_ddk_ffi_checksum_func_sign_funding_psbt_with_descriptor(
|
|
786
|
+
);
|
|
787
|
+
uint16_t uniffi_ddk_ffi_checksum_func_validate_accept(
|
|
788
|
+
);
|
|
789
|
+
uint16_t uniffi_ddk_ffi_checksum_func_validate_offer(
|
|
790
|
+
);
|
|
791
|
+
uint16_t uniffi_ddk_ffi_checksum_func_validate_sign(
|
|
792
|
+
);
|
|
793
|
+
uint16_t uniffi_ddk_ffi_checksum_method_contractkeyprovider_funding_pubkey(
|
|
794
|
+
);
|
|
795
|
+
uint16_t uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_descriptor(
|
|
796
|
+
);
|
|
797
|
+
uint16_t uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_mnemonic(
|
|
798
|
+
);
|
|
799
|
+
uint16_t uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_seed(
|
|
800
|
+
);
|
|
801
|
+
uint16_t uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_xprv(
|
|
802
|
+
);
|
|
593
803
|
uint32_t ffi_ddk_ffi_uniffi_contract_version(
|
|
594
804
|
);
|
|
595
805
|
}
|
|
@@ -2050,6 +2260,62 @@ NativeDdkFfi::NativeDdkFfi(
|
|
|
2050
2260
|
return this->cpp_uniffi_internal_fn_func_ffi__read_string_from_buffer(rt, thisVal, args, count);
|
|
2051
2261
|
}
|
|
2052
2262
|
);
|
|
2263
|
+
props["ubrn_uniffi_ddk_ffi_fn_clone_contractkeyprovider"] = jsi::Function::createFromHostFunction(
|
|
2264
|
+
rt,
|
|
2265
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_clone_contractkeyprovider"),
|
|
2266
|
+
1,
|
|
2267
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2268
|
+
return this->cpp_uniffi_ddk_ffi_fn_clone_contractkeyprovider(rt, thisVal, args, count);
|
|
2269
|
+
}
|
|
2270
|
+
);
|
|
2271
|
+
props["ubrn_uniffi_ddk_ffi_fn_free_contractkeyprovider"] = jsi::Function::createFromHostFunction(
|
|
2272
|
+
rt,
|
|
2273
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_free_contractkeyprovider"),
|
|
2274
|
+
1,
|
|
2275
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2276
|
+
return this->cpp_uniffi_ddk_ffi_fn_free_contractkeyprovider(rt, thisVal, args, count);
|
|
2277
|
+
}
|
|
2278
|
+
);
|
|
2279
|
+
props["ubrn_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_descriptor"] = jsi::Function::createFromHostFunction(
|
|
2280
|
+
rt,
|
|
2281
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_descriptor"),
|
|
2282
|
+
1,
|
|
2283
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2284
|
+
return this->cpp_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_descriptor(rt, thisVal, args, count);
|
|
2285
|
+
}
|
|
2286
|
+
);
|
|
2287
|
+
props["ubrn_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_mnemonic"] = jsi::Function::createFromHostFunction(
|
|
2288
|
+
rt,
|
|
2289
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_mnemonic"),
|
|
2290
|
+
3,
|
|
2291
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2292
|
+
return this->cpp_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_mnemonic(rt, thisVal, args, count);
|
|
2293
|
+
}
|
|
2294
|
+
);
|
|
2295
|
+
props["ubrn_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_seed"] = jsi::Function::createFromHostFunction(
|
|
2296
|
+
rt,
|
|
2297
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_seed"),
|
|
2298
|
+
2,
|
|
2299
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2300
|
+
return this->cpp_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_seed(rt, thisVal, args, count);
|
|
2301
|
+
}
|
|
2302
|
+
);
|
|
2303
|
+
props["ubrn_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_xprv"] = jsi::Function::createFromHostFunction(
|
|
2304
|
+
rt,
|
|
2305
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_xprv"),
|
|
2306
|
+
1,
|
|
2307
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2308
|
+
return this->cpp_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_xprv(rt, thisVal, args, count);
|
|
2309
|
+
}
|
|
2310
|
+
);
|
|
2311
|
+
props["ubrn_uniffi_ddk_ffi_fn_method_contractkeyprovider_funding_pubkey"] = jsi::Function::createFromHostFunction(
|
|
2312
|
+
rt,
|
|
2313
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_method_contractkeyprovider_funding_pubkey"),
|
|
2314
|
+
2,
|
|
2315
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2316
|
+
return this->cpp_uniffi_ddk_ffi_fn_method_contractkeyprovider_funding_pubkey(rt, thisVal, args, count);
|
|
2317
|
+
}
|
|
2318
|
+
);
|
|
2053
2319
|
props["ubrn_uniffi_ddk_ffi_fn_method_adaptorsignature_verify_from_oracle_info"] = jsi::Function::createFromHostFunction(
|
|
2054
2320
|
rt,
|
|
2055
2321
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_method_adaptorsignature_verify_from_oracle_info"),
|
|
@@ -2298,6 +2564,166 @@ NativeDdkFfi::NativeDdkFfi(
|
|
|
2298
2564
|
return this->cpp_uniffi_ddk_ffi_fn_func_version(rt, thisVal, args, count);
|
|
2299
2565
|
}
|
|
2300
2566
|
);
|
|
2567
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_accept_offer"] = jsi::Function::createFromHostFunction(
|
|
2568
|
+
rt,
|
|
2569
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_accept_offer"),
|
|
2570
|
+
4,
|
|
2571
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2572
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_accept_offer(rt, thisVal, args, count);
|
|
2573
|
+
}
|
|
2574
|
+
);
|
|
2575
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_chain_hash_from_network"] = jsi::Function::createFromHostFunction(
|
|
2576
|
+
rt,
|
|
2577
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_chain_hash_from_network"),
|
|
2578
|
+
1,
|
|
2579
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2580
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_chain_hash_from_network(rt, thisVal, args, count);
|
|
2581
|
+
}
|
|
2582
|
+
);
|
|
2583
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_compute_contract_id"] = jsi::Function::createFromHostFunction(
|
|
2584
|
+
rt,
|
|
2585
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_compute_contract_id"),
|
|
2586
|
+
2,
|
|
2587
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2588
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_compute_contract_id(rt, thisVal, args, count);
|
|
2589
|
+
}
|
|
2590
|
+
);
|
|
2591
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_contract_info_payouts"] = jsi::Function::createFromHostFunction(
|
|
2592
|
+
rt,
|
|
2593
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_contract_info_payouts"),
|
|
2594
|
+
1,
|
|
2595
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2596
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_contract_info_payouts(rt, thisVal, args, count);
|
|
2597
|
+
}
|
|
2598
|
+
);
|
|
2599
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_create_dlc_splice_input"] = jsi::Function::createFromHostFunction(
|
|
2600
|
+
rt,
|
|
2601
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_create_dlc_splice_input"),
|
|
2602
|
+
5,
|
|
2603
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2604
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_create_dlc_splice_input(rt, thisVal, args, count);
|
|
2605
|
+
}
|
|
2606
|
+
);
|
|
2607
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_create_funding_psbt"] = jsi::Function::createFromHostFunction(
|
|
2608
|
+
rt,
|
|
2609
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_create_funding_psbt"),
|
|
2610
|
+
2,
|
|
2611
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2612
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_create_funding_psbt(rt, thisVal, args, count);
|
|
2613
|
+
}
|
|
2614
|
+
);
|
|
2615
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_create_offer"] = jsi::Function::createFromHostFunction(
|
|
2616
|
+
rt,
|
|
2617
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_create_offer"),
|
|
2618
|
+
1,
|
|
2619
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2620
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_create_offer(rt, thisVal, args, count);
|
|
2621
|
+
}
|
|
2622
|
+
);
|
|
2623
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_dlc_input_max_witness_len"] = jsi::Function::createFromHostFunction(
|
|
2624
|
+
rt,
|
|
2625
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_dlc_input_max_witness_len"),
|
|
2626
|
+
0,
|
|
2627
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2628
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_dlc_input_max_witness_len(rt, thisVal, args, count);
|
|
2629
|
+
}
|
|
2630
|
+
);
|
|
2631
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_dlc_transactions_from_messages"] = jsi::Function::createFromHostFunction(
|
|
2632
|
+
rt,
|
|
2633
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_dlc_transactions_from_messages"),
|
|
2634
|
+
2,
|
|
2635
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2636
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_dlc_transactions_from_messages(rt, thisVal, args, count);
|
|
2637
|
+
}
|
|
2638
|
+
);
|
|
2639
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_finalize_sign"] = jsi::Function::createFromHostFunction(
|
|
2640
|
+
rt,
|
|
2641
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_finalize_sign"),
|
|
2642
|
+
4,
|
|
2643
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2644
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_finalize_sign(rt, thisVal, args, count);
|
|
2645
|
+
}
|
|
2646
|
+
);
|
|
2647
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_finalize_sign_spliced"] = jsi::Function::createFromHostFunction(
|
|
2648
|
+
rt,
|
|
2649
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_finalize_sign_spliced"),
|
|
2650
|
+
6,
|
|
2651
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2652
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_finalize_sign_spliced(rt, thisVal, args, count);
|
|
2653
|
+
}
|
|
2654
|
+
);
|
|
2655
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_funding_input"] = jsi::Function::createFromHostFunction(
|
|
2656
|
+
rt,
|
|
2657
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_funding_input"),
|
|
2658
|
+
6,
|
|
2659
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2660
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_funding_input(rt, thisVal, args, count);
|
|
2661
|
+
}
|
|
2662
|
+
);
|
|
2663
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_sign_accept"] = jsi::Function::createFromHostFunction(
|
|
2664
|
+
rt,
|
|
2665
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_sign_accept"),
|
|
2666
|
+
5,
|
|
2667
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2668
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_sign_accept(rt, thisVal, args, count);
|
|
2669
|
+
}
|
|
2670
|
+
);
|
|
2671
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_sign_accept_spliced"] = jsi::Function::createFromHostFunction(
|
|
2672
|
+
rt,
|
|
2673
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_sign_accept_spliced"),
|
|
2674
|
+
6,
|
|
2675
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2676
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_sign_accept_spliced(rt, thisVal, args, count);
|
|
2677
|
+
}
|
|
2678
|
+
);
|
|
2679
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_sign_contract_cet"] = jsi::Function::createFromHostFunction(
|
|
2680
|
+
rt,
|
|
2681
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_sign_contract_cet"),
|
|
2682
|
+
6,
|
|
2683
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2684
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_sign_contract_cet(rt, thisVal, args, count);
|
|
2685
|
+
}
|
|
2686
|
+
);
|
|
2687
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_sign_contract_refund"] = jsi::Function::createFromHostFunction(
|
|
2688
|
+
rt,
|
|
2689
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_sign_contract_refund"),
|
|
2690
|
+
5,
|
|
2691
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2692
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_sign_contract_refund(rt, thisVal, args, count);
|
|
2693
|
+
}
|
|
2694
|
+
);
|
|
2695
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_sign_funding_psbt_with_descriptor"] = jsi::Function::createFromHostFunction(
|
|
2696
|
+
rt,
|
|
2697
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_sign_funding_psbt_with_descriptor"),
|
|
2698
|
+
5,
|
|
2699
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2700
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_sign_funding_psbt_with_descriptor(rt, thisVal, args, count);
|
|
2701
|
+
}
|
|
2702
|
+
);
|
|
2703
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_validate_accept"] = jsi::Function::createFromHostFunction(
|
|
2704
|
+
rt,
|
|
2705
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_validate_accept"),
|
|
2706
|
+
2,
|
|
2707
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2708
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_validate_accept(rt, thisVal, args, count);
|
|
2709
|
+
}
|
|
2710
|
+
);
|
|
2711
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_validate_offer"] = jsi::Function::createFromHostFunction(
|
|
2712
|
+
rt,
|
|
2713
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_validate_offer"),
|
|
2714
|
+
3,
|
|
2715
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2716
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_validate_offer(rt, thisVal, args, count);
|
|
2717
|
+
}
|
|
2718
|
+
);
|
|
2719
|
+
props["ubrn_uniffi_ddk_ffi_fn_func_validate_sign"] = jsi::Function::createFromHostFunction(
|
|
2720
|
+
rt,
|
|
2721
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_fn_func_validate_sign"),
|
|
2722
|
+
3,
|
|
2723
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2724
|
+
return this->cpp_uniffi_ddk_ffi_fn_func_validate_sign(rt, thisVal, args, count);
|
|
2725
|
+
}
|
|
2726
|
+
);
|
|
2301
2727
|
props["ubrn_uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed"] = jsi::Function::createFromHostFunction(
|
|
2302
2728
|
rt,
|
|
2303
2729
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed"),
|
|
@@ -2450,45 +2876,253 @@ NativeDdkFfi::NativeDdkFfi(
|
|
|
2450
2876
|
return this->cpp_uniffi_ddk_ffi_checksum_func_version(rt, thisVal, args, count);
|
|
2451
2877
|
}
|
|
2452
2878
|
);
|
|
2453
|
-
props["
|
|
2879
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_accept_offer"] = jsi::Function::createFromHostFunction(
|
|
2454
2880
|
rt,
|
|
2455
|
-
jsi::PropNameID::forAscii(rt, "
|
|
2881
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_accept_offer"),
|
|
2456
2882
|
0,
|
|
2457
2883
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2458
|
-
return this->
|
|
2884
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_accept_offer(rt, thisVal, args, count);
|
|
2459
2885
|
}
|
|
2460
2886
|
);
|
|
2461
|
-
|
|
2462
|
-
// `rustbuffer_alloc(n)` -> Uint8Array view over Rust-owned memory of capacity `n`.
|
|
2463
|
-
// `rustbuffer_free(view)` -> hands the underlying (ptr, capacity) back to the
|
|
2464
|
-
// crate's `rustbuffer_free`. Together they let JS allocate buffers that the
|
|
2465
|
-
// codegen-emitted lowering path can fill in place and ship to Rust without copying.
|
|
2466
|
-
props["rustbuffer_alloc"] = jsi::Function::createFromHostFunction(
|
|
2887
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_chain_hash_from_network"] = jsi::Function::createFromHostFunction(
|
|
2467
2888
|
rt,
|
|
2468
|
-
jsi::PropNameID::forAscii(rt, "
|
|
2469
|
-
|
|
2470
|
-
[](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2889
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_chain_hash_from_network"),
|
|
2890
|
+
0,
|
|
2891
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2892
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_chain_hash_from_network(rt, thisVal, args, count);
|
|
2893
|
+
}
|
|
2894
|
+
);
|
|
2895
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_compute_contract_id"] = jsi::Function::createFromHostFunction(
|
|
2896
|
+
rt,
|
|
2897
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_compute_contract_id"),
|
|
2898
|
+
0,
|
|
2899
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2900
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_compute_contract_id(rt, thisVal, args, count);
|
|
2901
|
+
}
|
|
2902
|
+
);
|
|
2903
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_contract_info_payouts"] = jsi::Function::createFromHostFunction(
|
|
2904
|
+
rt,
|
|
2905
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_contract_info_payouts"),
|
|
2906
|
+
0,
|
|
2907
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2908
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_contract_info_payouts(rt, thisVal, args, count);
|
|
2909
|
+
}
|
|
2910
|
+
);
|
|
2911
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_create_dlc_splice_input"] = jsi::Function::createFromHostFunction(
|
|
2912
|
+
rt,
|
|
2913
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_create_dlc_splice_input"),
|
|
2914
|
+
0,
|
|
2915
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2916
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_create_dlc_splice_input(rt, thisVal, args, count);
|
|
2917
|
+
}
|
|
2918
|
+
);
|
|
2919
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_create_funding_psbt"] = jsi::Function::createFromHostFunction(
|
|
2920
|
+
rt,
|
|
2921
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_create_funding_psbt"),
|
|
2922
|
+
0,
|
|
2923
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2924
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_create_funding_psbt(rt, thisVal, args, count);
|
|
2925
|
+
}
|
|
2926
|
+
);
|
|
2927
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_create_offer"] = jsi::Function::createFromHostFunction(
|
|
2928
|
+
rt,
|
|
2929
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_create_offer"),
|
|
2930
|
+
0,
|
|
2931
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2932
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_create_offer(rt, thisVal, args, count);
|
|
2933
|
+
}
|
|
2934
|
+
);
|
|
2935
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_dlc_input_max_witness_len"] = jsi::Function::createFromHostFunction(
|
|
2936
|
+
rt,
|
|
2937
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_dlc_input_max_witness_len"),
|
|
2938
|
+
0,
|
|
2939
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2940
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_dlc_input_max_witness_len(rt, thisVal, args, count);
|
|
2941
|
+
}
|
|
2942
|
+
);
|
|
2943
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_dlc_transactions_from_messages"] = jsi::Function::createFromHostFunction(
|
|
2944
|
+
rt,
|
|
2945
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_dlc_transactions_from_messages"),
|
|
2946
|
+
0,
|
|
2947
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2948
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_dlc_transactions_from_messages(rt, thisVal, args, count);
|
|
2949
|
+
}
|
|
2950
|
+
);
|
|
2951
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_finalize_sign"] = jsi::Function::createFromHostFunction(
|
|
2952
|
+
rt,
|
|
2953
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_finalize_sign"),
|
|
2954
|
+
0,
|
|
2955
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2956
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_finalize_sign(rt, thisVal, args, count);
|
|
2957
|
+
}
|
|
2958
|
+
);
|
|
2959
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_finalize_sign_spliced"] = jsi::Function::createFromHostFunction(
|
|
2960
|
+
rt,
|
|
2961
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_finalize_sign_spliced"),
|
|
2962
|
+
0,
|
|
2963
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2964
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_finalize_sign_spliced(rt, thisVal, args, count);
|
|
2965
|
+
}
|
|
2966
|
+
);
|
|
2967
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_funding_input"] = jsi::Function::createFromHostFunction(
|
|
2968
|
+
rt,
|
|
2969
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_funding_input"),
|
|
2970
|
+
0,
|
|
2971
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2972
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_funding_input(rt, thisVal, args, count);
|
|
2973
|
+
}
|
|
2974
|
+
);
|
|
2975
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_sign_accept"] = jsi::Function::createFromHostFunction(
|
|
2976
|
+
rt,
|
|
2977
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_sign_accept"),
|
|
2978
|
+
0,
|
|
2979
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2980
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_sign_accept(rt, thisVal, args, count);
|
|
2981
|
+
}
|
|
2982
|
+
);
|
|
2983
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_sign_accept_spliced"] = jsi::Function::createFromHostFunction(
|
|
2984
|
+
rt,
|
|
2985
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_sign_accept_spliced"),
|
|
2986
|
+
0,
|
|
2987
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2988
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_sign_accept_spliced(rt, thisVal, args, count);
|
|
2989
|
+
}
|
|
2990
|
+
);
|
|
2991
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_sign_contract_cet"] = jsi::Function::createFromHostFunction(
|
|
2992
|
+
rt,
|
|
2993
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_sign_contract_cet"),
|
|
2994
|
+
0,
|
|
2995
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2996
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_sign_contract_cet(rt, thisVal, args, count);
|
|
2997
|
+
}
|
|
2998
|
+
);
|
|
2999
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_sign_contract_refund"] = jsi::Function::createFromHostFunction(
|
|
3000
|
+
rt,
|
|
3001
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_sign_contract_refund"),
|
|
3002
|
+
0,
|
|
3003
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3004
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_sign_contract_refund(rt, thisVal, args, count);
|
|
3005
|
+
}
|
|
3006
|
+
);
|
|
3007
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_sign_funding_psbt_with_descriptor"] = jsi::Function::createFromHostFunction(
|
|
3008
|
+
rt,
|
|
3009
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_sign_funding_psbt_with_descriptor"),
|
|
3010
|
+
0,
|
|
3011
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3012
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_sign_funding_psbt_with_descriptor(rt, thisVal, args, count);
|
|
3013
|
+
}
|
|
3014
|
+
);
|
|
3015
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_validate_accept"] = jsi::Function::createFromHostFunction(
|
|
3016
|
+
rt,
|
|
3017
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_validate_accept"),
|
|
3018
|
+
0,
|
|
3019
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3020
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_validate_accept(rt, thisVal, args, count);
|
|
3021
|
+
}
|
|
3022
|
+
);
|
|
3023
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_validate_offer"] = jsi::Function::createFromHostFunction(
|
|
3024
|
+
rt,
|
|
3025
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_validate_offer"),
|
|
3026
|
+
0,
|
|
3027
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3028
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_validate_offer(rt, thisVal, args, count);
|
|
3029
|
+
}
|
|
3030
|
+
);
|
|
3031
|
+
props["ubrn_uniffi_ddk_ffi_checksum_func_validate_sign"] = jsi::Function::createFromHostFunction(
|
|
3032
|
+
rt,
|
|
3033
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_func_validate_sign"),
|
|
3034
|
+
0,
|
|
3035
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3036
|
+
return this->cpp_uniffi_ddk_ffi_checksum_func_validate_sign(rt, thisVal, args, count);
|
|
3037
|
+
}
|
|
3038
|
+
);
|
|
3039
|
+
props["ubrn_uniffi_ddk_ffi_checksum_method_contractkeyprovider_funding_pubkey"] = jsi::Function::createFromHostFunction(
|
|
3040
|
+
rt,
|
|
3041
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_method_contractkeyprovider_funding_pubkey"),
|
|
3042
|
+
0,
|
|
3043
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3044
|
+
return this->cpp_uniffi_ddk_ffi_checksum_method_contractkeyprovider_funding_pubkey(rt, thisVal, args, count);
|
|
3045
|
+
}
|
|
3046
|
+
);
|
|
3047
|
+
props["ubrn_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_descriptor"] = jsi::Function::createFromHostFunction(
|
|
3048
|
+
rt,
|
|
3049
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_descriptor"),
|
|
3050
|
+
0,
|
|
3051
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3052
|
+
return this->cpp_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_descriptor(rt, thisVal, args, count);
|
|
3053
|
+
}
|
|
3054
|
+
);
|
|
3055
|
+
props["ubrn_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_mnemonic"] = jsi::Function::createFromHostFunction(
|
|
3056
|
+
rt,
|
|
3057
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_mnemonic"),
|
|
3058
|
+
0,
|
|
3059
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3060
|
+
return this->cpp_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_mnemonic(rt, thisVal, args, count);
|
|
3061
|
+
}
|
|
3062
|
+
);
|
|
3063
|
+
props["ubrn_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_seed"] = jsi::Function::createFromHostFunction(
|
|
3064
|
+
rt,
|
|
3065
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_seed"),
|
|
3066
|
+
0,
|
|
3067
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3068
|
+
return this->cpp_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_seed(rt, thisVal, args, count);
|
|
3069
|
+
}
|
|
3070
|
+
);
|
|
3071
|
+
props["ubrn_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_xprv"] = jsi::Function::createFromHostFunction(
|
|
3072
|
+
rt,
|
|
3073
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_xprv"),
|
|
3074
|
+
0,
|
|
3075
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3076
|
+
return this->cpp_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_xprv(rt, thisVal, args, count);
|
|
3077
|
+
}
|
|
3078
|
+
);
|
|
3079
|
+
props["ubrn_ffi_ddk_ffi_uniffi_contract_version"] = jsi::Function::createFromHostFunction(
|
|
3080
|
+
rt,
|
|
3081
|
+
jsi::PropNameID::forAscii(rt, "ubrn_ffi_ddk_ffi_uniffi_contract_version"),
|
|
3082
|
+
0,
|
|
3083
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3084
|
+
return this->cpp_ffi_ddk_ffi_uniffi_contract_version(rt, thisVal, args, count);
|
|
3085
|
+
}
|
|
3086
|
+
);
|
|
3087
|
+
props["ubrn_uniffi_internal_fn_method_contractkeyprovider_ffi__bless_pointer"] = jsi::Function::createFromHostFunction(
|
|
3088
|
+
rt,
|
|
3089
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_contractkeyprovider_ffi__bless_pointer"),
|
|
3090
|
+
1,
|
|
3091
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3092
|
+
return this->cpp_uniffi_internal_fn_method_contractkeyprovider_ffi__bless_pointer(rt, thisVal, args, count);
|
|
3093
|
+
}
|
|
3094
|
+
);
|
|
3095
|
+
|
|
3096
|
+
// `rustbuffer_alloc(n)` -> Uint8Array view over Rust-owned memory of capacity `n`.
|
|
3097
|
+
// `rustbuffer_free(view)` -> hands the underlying (ptr, capacity) back to the
|
|
3098
|
+
// crate's `rustbuffer_free`. Together they let JS allocate buffers that the
|
|
3099
|
+
// codegen-emitted lowering path can fill in place and ship to Rust without copying.
|
|
3100
|
+
props["rustbuffer_alloc"] = jsi::Function::createFromHostFunction(
|
|
3101
|
+
rt,
|
|
3102
|
+
jsi::PropNameID::forAscii(rt, "rustbuffer_alloc"),
|
|
3103
|
+
1,
|
|
3104
|
+
[](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3105
|
+
if (count < 1 || !args[0].isNumber()) {
|
|
3106
|
+
throw jsi::JSError(rt, "rustbuffer_alloc expected a number argument");
|
|
3107
|
+
}
|
|
3108
|
+
double size = args[0].asNumber();
|
|
3109
|
+
if (size < 0) {
|
|
3110
|
+
throw jsi::JSError(rt, "rustbuffer_alloc: size must be non-negative");
|
|
3111
|
+
}
|
|
3112
|
+
if (size > INT32_MAX) {
|
|
3113
|
+
throw jsi::JSError(rt, "rustbuffer_alloc: size exceeds INT32_MAX");
|
|
3114
|
+
}
|
|
3115
|
+
auto rb = uniffi::ddk_ffi::Bridging<RustBuffer>::rustbuffer_alloc(static_cast<int32_t>(size));
|
|
3116
|
+
if (rb.data == nullptr) {
|
|
3117
|
+
throw jsi::JSError(rt, "rustbuffer_alloc failed: alloc returned null");
|
|
3118
|
+
}
|
|
3119
|
+
// Non-owning view over Rust-allocated memory; CMutableBuffer's destructor
|
|
3120
|
+
// is the default and does not free `rb.data`. JS must call rustbuffer_free
|
|
3121
|
+
// explicitly before dropping the reference.
|
|
3122
|
+
auto payload = std::make_shared<uniffi_jsi::CMutableBuffer>(
|
|
3123
|
+
rb.data, static_cast<size_t>(rb.capacity));
|
|
3124
|
+
// Wrap as Uint8Array so JS can index/assign bytes directly.
|
|
3125
|
+
return jsi::Value(
|
|
2492
3126
|
rt, uniffi_jsi::arraybufferToUint8Array(
|
|
2493
3127
|
rt, jsi::ArrayBuffer(rt, payload)));
|
|
2494
3128
|
}
|
|
@@ -2595,9 +3229,88 @@ jsi::Value NativeDdkFfi::cpp_uniffi_internal_fn_func_ffi__string_from_buffer(jsi
|
|
|
2595
3229
|
|
|
2596
3230
|
jsi::Value NativeDdkFfi::cpp_uniffi_internal_fn_func_ffi__read_string_from_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
2597
3231
|
return uniffi_jsi::Bridging<std::string>::read_string_from_buffer(rt, args[0], args[1], args[2]);
|
|
3232
|
+
}jsi::Value NativeDdkFfi::cpp_uniffi_internal_fn_method_contractkeyprovider_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3233
|
+
auto pointer = uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
3234
|
+
auto static destructor = [](uint64_t p) {
|
|
3235
|
+
RustCallStatus status = {0};
|
|
3236
|
+
uniffi_ddk_ffi_fn_free_contractkeyprovider(p, &status);
|
|
3237
|
+
};
|
|
3238
|
+
auto ptrObj = std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
|
|
3239
|
+
auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
|
|
3240
|
+
return jsi::Value(rt, obj);
|
|
2598
3241
|
}
|
|
2599
3242
|
|
|
2600
3243
|
// Methods calling directly into the uniffi generated C API of the Rust crate.
|
|
3244
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_clone_contractkeyprovider(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3245
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3246
|
+
auto value = uniffi_ddk_ffi_fn_clone_contractkeyprovider(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
3247
|
+
&status
|
|
3248
|
+
);
|
|
3249
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3250
|
+
|
|
3251
|
+
|
|
3252
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
3253
|
+
}
|
|
3254
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_free_contractkeyprovider(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3255
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3256
|
+
uniffi_ddk_ffi_fn_free_contractkeyprovider(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]),
|
|
3257
|
+
&status
|
|
3258
|
+
);
|
|
3259
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3260
|
+
|
|
3261
|
+
|
|
3262
|
+
return jsi::Value::undefined();
|
|
3263
|
+
}
|
|
3264
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3265
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3266
|
+
auto value = uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_descriptor(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
3267
|
+
&status
|
|
3268
|
+
);
|
|
3269
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3270
|
+
|
|
3271
|
+
|
|
3272
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
3273
|
+
}
|
|
3274
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3275
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3276
|
+
auto value = uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_mnemonic(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
|
|
3277
|
+
&status
|
|
3278
|
+
);
|
|
3279
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3280
|
+
|
|
3281
|
+
|
|
3282
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
3283
|
+
}
|
|
3284
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_seed(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3285
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3286
|
+
auto value = uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_seed(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
3287
|
+
&status
|
|
3288
|
+
);
|
|
3289
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
3293
|
+
}
|
|
3294
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_xprv(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3295
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3296
|
+
auto value = uniffi_ddk_ffi_fn_constructor_contractkeyprovider_from_xprv(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
3297
|
+
&status
|
|
3298
|
+
);
|
|
3299
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3300
|
+
|
|
3301
|
+
|
|
3302
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
3303
|
+
}
|
|
3304
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_method_contractkeyprovider_funding_pubkey(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3305
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3306
|
+
auto value = uniffi_ddk_ffi_fn_method_contractkeyprovider_funding_pubkey(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
3307
|
+
&status
|
|
3308
|
+
);
|
|
3309
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3310
|
+
|
|
3311
|
+
|
|
3312
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3313
|
+
}
|
|
2601
3314
|
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_method_adaptorsignature_verify_from_oracle_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
2602
3315
|
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
2603
3316
|
auto value = uniffi_ddk_ffi_fn_method_adaptorsignature_verify_from_oracle_info(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[4]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[5]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[6]),
|
|
@@ -2907,6 +3620,205 @@ jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_version(jsi::Runtime& rt, co
|
|
|
2907
3620
|
|
|
2908
3621
|
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
2909
3622
|
}
|
|
3623
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_accept_offer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3624
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3625
|
+
auto value = uniffi_ddk_ffi_fn_func_accept_offer(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]),
|
|
3626
|
+
&status
|
|
3627
|
+
);
|
|
3628
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3629
|
+
|
|
3630
|
+
|
|
3631
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3632
|
+
}
|
|
3633
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_chain_hash_from_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3634
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3635
|
+
auto value = uniffi_ddk_ffi_fn_func_chain_hash_from_network(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
3636
|
+
&status
|
|
3637
|
+
);
|
|
3638
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3639
|
+
|
|
3640
|
+
|
|
3641
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3642
|
+
}
|
|
3643
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_compute_contract_id(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3644
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3645
|
+
auto value = uniffi_ddk_ffi_fn_func_compute_contract_id(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
3646
|
+
&status
|
|
3647
|
+
);
|
|
3648
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3649
|
+
|
|
3650
|
+
|
|
3651
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3652
|
+
}
|
|
3653
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_contract_info_payouts(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3654
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3655
|
+
auto value = uniffi_ddk_ffi_fn_func_contract_info_payouts(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
3656
|
+
&status
|
|
3657
|
+
);
|
|
3658
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3659
|
+
|
|
3660
|
+
|
|
3661
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3662
|
+
}
|
|
3663
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_create_dlc_splice_input(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3664
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3665
|
+
auto value = uniffi_ddk_ffi_fn_func_create_dlc_splice_input(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi_jsi::Bridging<uint16_t>::fromJs(rt, callInvoker, args[4]),
|
|
3666
|
+
&status
|
|
3667
|
+
);
|
|
3668
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3669
|
+
|
|
3670
|
+
|
|
3671
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3672
|
+
}
|
|
3673
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_create_funding_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3674
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3675
|
+
auto value = uniffi_ddk_ffi_fn_func_create_funding_psbt(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
3676
|
+
&status
|
|
3677
|
+
);
|
|
3678
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3679
|
+
|
|
3680
|
+
|
|
3681
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3682
|
+
}
|
|
3683
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_create_offer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3684
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3685
|
+
auto value = uniffi_ddk_ffi_fn_func_create_offer(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
3686
|
+
&status
|
|
3687
|
+
);
|
|
3688
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3689
|
+
|
|
3690
|
+
|
|
3691
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3692
|
+
}
|
|
3693
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_dlc_input_max_witness_len(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3694
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3695
|
+
auto value = uniffi_ddk_ffi_fn_func_dlc_input_max_witness_len(&status
|
|
3696
|
+
);
|
|
3697
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3698
|
+
|
|
3699
|
+
|
|
3700
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3701
|
+
}
|
|
3702
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_dlc_transactions_from_messages(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3703
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3704
|
+
auto value = uniffi_ddk_ffi_fn_func_dlc_transactions_from_messages(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
3705
|
+
&status
|
|
3706
|
+
);
|
|
3707
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3711
|
+
}
|
|
3712
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_finalize_sign(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3713
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3714
|
+
auto value = uniffi_ddk_ffi_fn_func_finalize_sign(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]),
|
|
3715
|
+
&status
|
|
3716
|
+
);
|
|
3717
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3718
|
+
|
|
3719
|
+
|
|
3720
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3721
|
+
}
|
|
3722
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_finalize_sign_spliced(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3723
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3724
|
+
auto value = uniffi_ddk_ffi_fn_func_finalize_sign_spliced(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[4]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[5]),
|
|
3725
|
+
&status
|
|
3726
|
+
);
|
|
3727
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3728
|
+
|
|
3729
|
+
|
|
3730
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3731
|
+
}
|
|
3732
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_funding_input(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3733
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3734
|
+
auto value = uniffi_ddk_ffi_fn_func_funding_input(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[3]), uniffi_jsi::Bridging<uint16_t>::fromJs(rt, callInvoker, args[4]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[5]),
|
|
3735
|
+
&status
|
|
3736
|
+
);
|
|
3737
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3738
|
+
|
|
3739
|
+
|
|
3740
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3741
|
+
}
|
|
3742
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_sign_accept(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3743
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3744
|
+
auto value = uniffi_ddk_ffi_fn_func_sign_accept(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[4]),
|
|
3745
|
+
&status
|
|
3746
|
+
);
|
|
3747
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3748
|
+
|
|
3749
|
+
|
|
3750
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3751
|
+
}
|
|
3752
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_sign_accept_spliced(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3753
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3754
|
+
auto value = uniffi_ddk_ffi_fn_func_sign_accept_spliced(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[2]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[4]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[5]),
|
|
3755
|
+
&status
|
|
3756
|
+
);
|
|
3757
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3758
|
+
|
|
3759
|
+
|
|
3760
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3761
|
+
}
|
|
3762
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_sign_contract_cet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3763
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3764
|
+
auto value = uniffi_ddk_ffi_fn_func_sign_contract_cet(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[3]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[4]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[5]),
|
|
3765
|
+
&status
|
|
3766
|
+
);
|
|
3767
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3768
|
+
|
|
3769
|
+
|
|
3770
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3771
|
+
}
|
|
3772
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_sign_contract_refund(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3773
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3774
|
+
auto value = uniffi_ddk_ffi_fn_func_sign_contract_refund(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[3]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[4]),
|
|
3775
|
+
&status
|
|
3776
|
+
);
|
|
3777
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3778
|
+
|
|
3779
|
+
|
|
3780
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3781
|
+
}
|
|
3782
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_sign_funding_psbt_with_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3783
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3784
|
+
auto value = uniffi_ddk_ffi_fn_func_sign_funding_psbt_with_descriptor(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[4]),
|
|
3785
|
+
&status
|
|
3786
|
+
);
|
|
3787
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3788
|
+
|
|
3789
|
+
|
|
3790
|
+
return uniffi::ddk_ffi::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
3791
|
+
}
|
|
3792
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_validate_accept(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3793
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3794
|
+
uniffi_ddk_ffi_fn_func_validate_accept(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
3795
|
+
&status
|
|
3796
|
+
);
|
|
3797
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3798
|
+
|
|
3799
|
+
|
|
3800
|
+
return jsi::Value::undefined();
|
|
3801
|
+
}
|
|
3802
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_validate_offer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3803
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3804
|
+
uniffi_ddk_ffi_fn_func_validate_offer(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[2]),
|
|
3805
|
+
&status
|
|
3806
|
+
);
|
|
3807
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3808
|
+
|
|
3809
|
+
|
|
3810
|
+
return jsi::Value::undefined();
|
|
3811
|
+
}
|
|
3812
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_fn_func_validate_sign(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3813
|
+
RustCallStatus status = uniffi::ddk_ffi::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
3814
|
+
uniffi_ddk_ffi_fn_func_validate_sign(uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::ddk_ffi::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]),
|
|
3815
|
+
&status
|
|
3816
|
+
);
|
|
3817
|
+
uniffi::ddk_ffi::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status, args[count - 1]);
|
|
3818
|
+
|
|
3819
|
+
|
|
3820
|
+
return jsi::Value::undefined();
|
|
3821
|
+
}
|
|
2910
3822
|
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
2911
3823
|
auto value = uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed(
|
|
2912
3824
|
);
|
|
@@ -3038,6 +3950,181 @@ jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_version(jsi::Runtime&
|
|
|
3038
3950
|
);
|
|
3039
3951
|
|
|
3040
3952
|
|
|
3953
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3954
|
+
}
|
|
3955
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_accept_offer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3956
|
+
auto value = uniffi_ddk_ffi_checksum_func_accept_offer(
|
|
3957
|
+
);
|
|
3958
|
+
|
|
3959
|
+
|
|
3960
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3961
|
+
}
|
|
3962
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_chain_hash_from_network(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3963
|
+
auto value = uniffi_ddk_ffi_checksum_func_chain_hash_from_network(
|
|
3964
|
+
);
|
|
3965
|
+
|
|
3966
|
+
|
|
3967
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3968
|
+
}
|
|
3969
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_compute_contract_id(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3970
|
+
auto value = uniffi_ddk_ffi_checksum_func_compute_contract_id(
|
|
3971
|
+
);
|
|
3972
|
+
|
|
3973
|
+
|
|
3974
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3975
|
+
}
|
|
3976
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_contract_info_payouts(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3977
|
+
auto value = uniffi_ddk_ffi_checksum_func_contract_info_payouts(
|
|
3978
|
+
);
|
|
3979
|
+
|
|
3980
|
+
|
|
3981
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3982
|
+
}
|
|
3983
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_create_dlc_splice_input(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3984
|
+
auto value = uniffi_ddk_ffi_checksum_func_create_dlc_splice_input(
|
|
3985
|
+
);
|
|
3986
|
+
|
|
3987
|
+
|
|
3988
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3989
|
+
}
|
|
3990
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_create_funding_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3991
|
+
auto value = uniffi_ddk_ffi_checksum_func_create_funding_psbt(
|
|
3992
|
+
);
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3996
|
+
}
|
|
3997
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_create_offer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
3998
|
+
auto value = uniffi_ddk_ffi_checksum_func_create_offer(
|
|
3999
|
+
);
|
|
4000
|
+
|
|
4001
|
+
|
|
4002
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4003
|
+
}
|
|
4004
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_dlc_input_max_witness_len(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4005
|
+
auto value = uniffi_ddk_ffi_checksum_func_dlc_input_max_witness_len(
|
|
4006
|
+
);
|
|
4007
|
+
|
|
4008
|
+
|
|
4009
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4010
|
+
}
|
|
4011
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_dlc_transactions_from_messages(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4012
|
+
auto value = uniffi_ddk_ffi_checksum_func_dlc_transactions_from_messages(
|
|
4013
|
+
);
|
|
4014
|
+
|
|
4015
|
+
|
|
4016
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4017
|
+
}
|
|
4018
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_finalize_sign(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4019
|
+
auto value = uniffi_ddk_ffi_checksum_func_finalize_sign(
|
|
4020
|
+
);
|
|
4021
|
+
|
|
4022
|
+
|
|
4023
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4024
|
+
}
|
|
4025
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_finalize_sign_spliced(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4026
|
+
auto value = uniffi_ddk_ffi_checksum_func_finalize_sign_spliced(
|
|
4027
|
+
);
|
|
4028
|
+
|
|
4029
|
+
|
|
4030
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4031
|
+
}
|
|
4032
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_funding_input(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4033
|
+
auto value = uniffi_ddk_ffi_checksum_func_funding_input(
|
|
4034
|
+
);
|
|
4035
|
+
|
|
4036
|
+
|
|
4037
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4038
|
+
}
|
|
4039
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_sign_accept(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4040
|
+
auto value = uniffi_ddk_ffi_checksum_func_sign_accept(
|
|
4041
|
+
);
|
|
4042
|
+
|
|
4043
|
+
|
|
4044
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4045
|
+
}
|
|
4046
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_sign_accept_spliced(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4047
|
+
auto value = uniffi_ddk_ffi_checksum_func_sign_accept_spliced(
|
|
4048
|
+
);
|
|
4049
|
+
|
|
4050
|
+
|
|
4051
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4052
|
+
}
|
|
4053
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_sign_contract_cet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4054
|
+
auto value = uniffi_ddk_ffi_checksum_func_sign_contract_cet(
|
|
4055
|
+
);
|
|
4056
|
+
|
|
4057
|
+
|
|
4058
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4059
|
+
}
|
|
4060
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_sign_contract_refund(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4061
|
+
auto value = uniffi_ddk_ffi_checksum_func_sign_contract_refund(
|
|
4062
|
+
);
|
|
4063
|
+
|
|
4064
|
+
|
|
4065
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4066
|
+
}
|
|
4067
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_sign_funding_psbt_with_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4068
|
+
auto value = uniffi_ddk_ffi_checksum_func_sign_funding_psbt_with_descriptor(
|
|
4069
|
+
);
|
|
4070
|
+
|
|
4071
|
+
|
|
4072
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4073
|
+
}
|
|
4074
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_validate_accept(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4075
|
+
auto value = uniffi_ddk_ffi_checksum_func_validate_accept(
|
|
4076
|
+
);
|
|
4077
|
+
|
|
4078
|
+
|
|
4079
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4080
|
+
}
|
|
4081
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_validate_offer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4082
|
+
auto value = uniffi_ddk_ffi_checksum_func_validate_offer(
|
|
4083
|
+
);
|
|
4084
|
+
|
|
4085
|
+
|
|
4086
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4087
|
+
}
|
|
4088
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_func_validate_sign(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4089
|
+
auto value = uniffi_ddk_ffi_checksum_func_validate_sign(
|
|
4090
|
+
);
|
|
4091
|
+
|
|
4092
|
+
|
|
4093
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4094
|
+
}
|
|
4095
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_method_contractkeyprovider_funding_pubkey(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4096
|
+
auto value = uniffi_ddk_ffi_checksum_method_contractkeyprovider_funding_pubkey(
|
|
4097
|
+
);
|
|
4098
|
+
|
|
4099
|
+
|
|
4100
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4101
|
+
}
|
|
4102
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_descriptor(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4103
|
+
auto value = uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_descriptor(
|
|
4104
|
+
);
|
|
4105
|
+
|
|
4106
|
+
|
|
4107
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4108
|
+
}
|
|
4109
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4110
|
+
auto value = uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_mnemonic(
|
|
4111
|
+
);
|
|
4112
|
+
|
|
4113
|
+
|
|
4114
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4115
|
+
}
|
|
4116
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_seed(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4117
|
+
auto value = uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_seed(
|
|
4118
|
+
);
|
|
4119
|
+
|
|
4120
|
+
|
|
4121
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
4122
|
+
}
|
|
4123
|
+
jsi::Value NativeDdkFfi::cpp_uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_xprv(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
4124
|
+
auto value = uniffi_ddk_ffi_checksum_constructor_contractkeyprovider_from_xprv(
|
|
4125
|
+
);
|
|
4126
|
+
|
|
4127
|
+
|
|
3041
4128
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3042
4129
|
}
|
|
3043
4130
|
jsi::Value NativeDdkFfi::cpp_ffi_ddk_ffi_uniffi_contract_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|