@breeztech/breez-sdk-spark-react-native 0.4.1 → 0.4.2-dev1
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/breeztech-breez-sdk-spark-react-native.podspec +1 -1
- package/cpp/generated/breez_sdk_spark.cpp +478 -0
- package/cpp/generated/breez_sdk_spark.hpp +70 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +155 -3
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +154 -2
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +19 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +439 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +19 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +439 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/breez_sdk_spark-ffi.ts +50 -0
- package/src/generated/breez_sdk_spark.ts +1103 -38
|
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
|
|
|
15
15
|
s.platforms = { :ios => min_ios_version_supported }
|
|
16
16
|
s.source = { :git => "https://github.com/breez/spark-sdk.git", :tag => "#{s.version}" }
|
|
17
17
|
|
|
18
|
-
s.source_files = "ios
|
|
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/RnBreezSdkSpark.xcframework"
|
|
20
20
|
s.dependency "uniffi-bindgen-react-native", "0.28.3-5"
|
|
21
21
|
|
|
@@ -340,6 +340,8 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address(void *ptr);
|
|
|
340
340
|
/*handle*/ uint64_t
|
|
341
341
|
uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(void *ptr,
|
|
342
342
|
RustBuffer request);
|
|
343
|
+
void *uniffi_breez_sdk_spark_fn_method_breezsdk_get_token_issuer(
|
|
344
|
+
void *ptr, RustCallStatus *uniffi_out_err);
|
|
343
345
|
/*handle*/ uint64_t
|
|
344
346
|
uniffi_breez_sdk_spark_fn_method_breezsdk_get_tokens_metadata(
|
|
345
347
|
void *ptr, RustBuffer request);
|
|
@@ -539,6 +541,32 @@ uniffi_breez_sdk_spark_fn_method_syncstorage_get_latest_outgoing_change(
|
|
|
539
541
|
/*handle*/ uint64_t
|
|
540
542
|
uniffi_breez_sdk_spark_fn_method_syncstorage_update_record_from_incoming(
|
|
541
543
|
void *ptr, RustBuffer record);
|
|
544
|
+
void *
|
|
545
|
+
uniffi_breez_sdk_spark_fn_clone_tokenissuer(void *ptr,
|
|
546
|
+
RustCallStatus *uniffi_out_err);
|
|
547
|
+
void uniffi_breez_sdk_spark_fn_free_tokenissuer(void *ptr,
|
|
548
|
+
RustCallStatus *uniffi_out_err);
|
|
549
|
+
/*handle*/ uint64_t
|
|
550
|
+
uniffi_breez_sdk_spark_fn_method_tokenissuer_burn_issuer_token(
|
|
551
|
+
void *ptr, RustBuffer request);
|
|
552
|
+
/*handle*/ uint64_t
|
|
553
|
+
uniffi_breez_sdk_spark_fn_method_tokenissuer_create_issuer_token(
|
|
554
|
+
void *ptr, RustBuffer request);
|
|
555
|
+
/*handle*/ uint64_t
|
|
556
|
+
uniffi_breez_sdk_spark_fn_method_tokenissuer_freeze_issuer_token(
|
|
557
|
+
void *ptr, RustBuffer request);
|
|
558
|
+
/*handle*/ uint64_t
|
|
559
|
+
uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_balance(
|
|
560
|
+
void *ptr);
|
|
561
|
+
/*handle*/ uint64_t
|
|
562
|
+
uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_metadata(
|
|
563
|
+
void *ptr);
|
|
564
|
+
/*handle*/ uint64_t
|
|
565
|
+
uniffi_breez_sdk_spark_fn_method_tokenissuer_mint_issuer_token(
|
|
566
|
+
void *ptr, RustBuffer request);
|
|
567
|
+
/*handle*/ uint64_t
|
|
568
|
+
uniffi_breez_sdk_spark_fn_method_tokenissuer_unfreeze_issuer_token(
|
|
569
|
+
void *ptr, RustBuffer request);
|
|
542
570
|
void uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
|
|
543
571
|
UniffiVTableCallbackInterfaceEventListener *vtable);
|
|
544
572
|
void uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
|
|
@@ -700,6 +728,7 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info();
|
|
|
700
728
|
uint16_t
|
|
701
729
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address();
|
|
702
730
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment();
|
|
731
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer();
|
|
703
732
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata();
|
|
704
733
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings();
|
|
705
734
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies();
|
|
@@ -776,6 +805,18 @@ uint16_t
|
|
|
776
805
|
uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change();
|
|
777
806
|
uint16_t
|
|
778
807
|
uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming();
|
|
808
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token();
|
|
809
|
+
uint16_t
|
|
810
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token();
|
|
811
|
+
uint16_t
|
|
812
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token();
|
|
813
|
+
uint16_t
|
|
814
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance();
|
|
815
|
+
uint16_t
|
|
816
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata();
|
|
817
|
+
uint16_t uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token();
|
|
818
|
+
uint16_t
|
|
819
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token();
|
|
779
820
|
uint16_t uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new();
|
|
780
821
|
uint16_t uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event();
|
|
781
822
|
uint16_t uniffi_breez_sdk_spark_checksum_method_logger_log();
|
|
@@ -8505,6 +8546,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
8505
8546
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(
|
|
8506
8547
|
rt, thisVal, args, count);
|
|
8507
8548
|
});
|
|
8549
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_token_issuer"] =
|
|
8550
|
+
jsi::Function::createFromHostFunction(
|
|
8551
|
+
rt,
|
|
8552
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
8553
|
+
"breezsdk_get_token_issuer"),
|
|
8554
|
+
1,
|
|
8555
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
8556
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
8557
|
+
return this
|
|
8558
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_token_issuer(
|
|
8559
|
+
rt, thisVal, args, count);
|
|
8560
|
+
});
|
|
8508
8561
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_tokens_metadata"] =
|
|
8509
8562
|
jsi::Function::createFromHostFunction(
|
|
8510
8563
|
rt,
|
|
@@ -9362,6 +9415,112 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
9362
9415
|
->cpp_uniffi_breez_sdk_spark_fn_method_syncstorage_update_record_from_incoming(
|
|
9363
9416
|
rt, thisVal, args, count);
|
|
9364
9417
|
});
|
|
9418
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_clone_tokenissuer"] =
|
|
9419
|
+
jsi::Function::createFromHostFunction(
|
|
9420
|
+
rt,
|
|
9421
|
+
jsi::PropNameID::forAscii(
|
|
9422
|
+
rt, "ubrn_uniffi_breez_sdk_spark_fn_clone_tokenissuer"),
|
|
9423
|
+
1,
|
|
9424
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
9425
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
9426
|
+
return this->cpp_uniffi_breez_sdk_spark_fn_clone_tokenissuer(
|
|
9427
|
+
rt, thisVal, args, count);
|
|
9428
|
+
});
|
|
9429
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_free_tokenissuer"] =
|
|
9430
|
+
jsi::Function::createFromHostFunction(
|
|
9431
|
+
rt,
|
|
9432
|
+
jsi::PropNameID::forAscii(
|
|
9433
|
+
rt, "ubrn_uniffi_breez_sdk_spark_fn_free_tokenissuer"),
|
|
9434
|
+
1,
|
|
9435
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
9436
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
9437
|
+
return this->cpp_uniffi_breez_sdk_spark_fn_free_tokenissuer(
|
|
9438
|
+
rt, thisVal, args, count);
|
|
9439
|
+
});
|
|
9440
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_burn_issuer_token"] =
|
|
9441
|
+
jsi::Function::createFromHostFunction(
|
|
9442
|
+
rt,
|
|
9443
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
9444
|
+
"tokenissuer_burn_issuer_token"),
|
|
9445
|
+
2,
|
|
9446
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
9447
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
9448
|
+
return this
|
|
9449
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_burn_issuer_token(
|
|
9450
|
+
rt, thisVal, args, count);
|
|
9451
|
+
});
|
|
9452
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_create_issuer_"
|
|
9453
|
+
"token"] = jsi::Function::createFromHostFunction(
|
|
9454
|
+
rt,
|
|
9455
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
9456
|
+
"tokenissuer_create_issuer_token"),
|
|
9457
|
+
2,
|
|
9458
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
9459
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
9460
|
+
return this
|
|
9461
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_create_issuer_token(
|
|
9462
|
+
rt, thisVal, args, count);
|
|
9463
|
+
});
|
|
9464
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_freeze_issuer_"
|
|
9465
|
+
"token"] = jsi::Function::createFromHostFunction(
|
|
9466
|
+
rt,
|
|
9467
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
9468
|
+
"tokenissuer_freeze_issuer_token"),
|
|
9469
|
+
2,
|
|
9470
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
9471
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
9472
|
+
return this
|
|
9473
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_freeze_issuer_token(
|
|
9474
|
+
rt, thisVal, args, count);
|
|
9475
|
+
});
|
|
9476
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_"
|
|
9477
|
+
"balance"] = jsi::Function::createFromHostFunction(
|
|
9478
|
+
rt,
|
|
9479
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
9480
|
+
"tokenissuer_get_issuer_token_balance"),
|
|
9481
|
+
1,
|
|
9482
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
9483
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
9484
|
+
return this
|
|
9485
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_balance(
|
|
9486
|
+
rt, thisVal, args, count);
|
|
9487
|
+
});
|
|
9488
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_"
|
|
9489
|
+
"metadata"] = jsi::Function::createFromHostFunction(
|
|
9490
|
+
rt,
|
|
9491
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
9492
|
+
"tokenissuer_get_issuer_token_metadata"),
|
|
9493
|
+
1,
|
|
9494
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
9495
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
9496
|
+
return this
|
|
9497
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_metadata(
|
|
9498
|
+
rt, thisVal, args, count);
|
|
9499
|
+
});
|
|
9500
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_mint_issuer_token"] =
|
|
9501
|
+
jsi::Function::createFromHostFunction(
|
|
9502
|
+
rt,
|
|
9503
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
9504
|
+
"tokenissuer_mint_issuer_token"),
|
|
9505
|
+
2,
|
|
9506
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
9507
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
9508
|
+
return this
|
|
9509
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_mint_issuer_token(
|
|
9510
|
+
rt, thisVal, args, count);
|
|
9511
|
+
});
|
|
9512
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_unfreeze_issuer_"
|
|
9513
|
+
"token"] = jsi::Function::createFromHostFunction(
|
|
9514
|
+
rt,
|
|
9515
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
9516
|
+
"tokenissuer_unfreeze_issuer_token"),
|
|
9517
|
+
2,
|
|
9518
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
9519
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
9520
|
+
return this
|
|
9521
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_unfreeze_issuer_token(
|
|
9522
|
+
rt, thisVal, args, count);
|
|
9523
|
+
});
|
|
9365
9524
|
props["ubrn_uniffi_breez_sdk_spark_fn_func_connect"] =
|
|
9366
9525
|
jsi::Function::createFromHostFunction(
|
|
9367
9526
|
rt,
|
|
@@ -10164,6 +10323,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
10164
10323
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment(
|
|
10165
10324
|
rt, thisVal, args, count);
|
|
10166
10325
|
});
|
|
10326
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_"
|
|
10327
|
+
"issuer"] = jsi::Function::createFromHostFunction(
|
|
10328
|
+
rt,
|
|
10329
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
10330
|
+
"method_breezsdk_get_token_issuer"),
|
|
10331
|
+
0,
|
|
10332
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
10333
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
10334
|
+
return this
|
|
10335
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer(
|
|
10336
|
+
rt, thisVal, args, count);
|
|
10337
|
+
});
|
|
10167
10338
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_"
|
|
10168
10339
|
"metadata"] = jsi::Function::createFromHostFunction(
|
|
10169
10340
|
rt,
|
|
@@ -10872,6 +11043,92 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
10872
11043
|
->cpp_uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming(
|
|
10873
11044
|
rt, thisVal, args, count);
|
|
10874
11045
|
});
|
|
11046
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_"
|
|
11047
|
+
"token"] = jsi::Function::createFromHostFunction(
|
|
11048
|
+
rt,
|
|
11049
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
11050
|
+
"method_tokenissuer_burn_issuer_token"),
|
|
11051
|
+
0,
|
|
11052
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
11053
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
11054
|
+
return this
|
|
11055
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token(
|
|
11056
|
+
rt, thisVal, args, count);
|
|
11057
|
+
});
|
|
11058
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_"
|
|
11059
|
+
"token"] = jsi::Function::createFromHostFunction(
|
|
11060
|
+
rt,
|
|
11061
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
11062
|
+
"method_tokenissuer_create_issuer_token"),
|
|
11063
|
+
0,
|
|
11064
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
11065
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
11066
|
+
return this
|
|
11067
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token(
|
|
11068
|
+
rt, thisVal, args, count);
|
|
11069
|
+
});
|
|
11070
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_"
|
|
11071
|
+
"token"] = jsi::Function::createFromHostFunction(
|
|
11072
|
+
rt,
|
|
11073
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
11074
|
+
"method_tokenissuer_freeze_issuer_token"),
|
|
11075
|
+
0,
|
|
11076
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
11077
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
11078
|
+
return this
|
|
11079
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token(
|
|
11080
|
+
rt, thisVal, args, count);
|
|
11081
|
+
});
|
|
11082
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_"
|
|
11083
|
+
"token_balance"] = jsi::Function::createFromHostFunction(
|
|
11084
|
+
rt,
|
|
11085
|
+
jsi::PropNameID::forAscii(rt,
|
|
11086
|
+
"ubrn_uniffi_breez_sdk_spark_checksum_method_"
|
|
11087
|
+
"tokenissuer_get_issuer_token_balance"),
|
|
11088
|
+
0,
|
|
11089
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
11090
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
11091
|
+
return this
|
|
11092
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance(
|
|
11093
|
+
rt, thisVal, args, count);
|
|
11094
|
+
});
|
|
11095
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_"
|
|
11096
|
+
"token_metadata"] = jsi::Function::createFromHostFunction(
|
|
11097
|
+
rt,
|
|
11098
|
+
jsi::PropNameID::forAscii(rt,
|
|
11099
|
+
"ubrn_uniffi_breez_sdk_spark_checksum_method_"
|
|
11100
|
+
"tokenissuer_get_issuer_token_metadata"),
|
|
11101
|
+
0,
|
|
11102
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
11103
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
11104
|
+
return this
|
|
11105
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata(
|
|
11106
|
+
rt, thisVal, args, count);
|
|
11107
|
+
});
|
|
11108
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_"
|
|
11109
|
+
"token"] = jsi::Function::createFromHostFunction(
|
|
11110
|
+
rt,
|
|
11111
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
11112
|
+
"method_tokenissuer_mint_issuer_token"),
|
|
11113
|
+
0,
|
|
11114
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
11115
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
11116
|
+
return this
|
|
11117
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token(
|
|
11118
|
+
rt, thisVal, args, count);
|
|
11119
|
+
});
|
|
11120
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_"
|
|
11121
|
+
"issuer_token"] = jsi::Function::createFromHostFunction(
|
|
11122
|
+
rt,
|
|
11123
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
11124
|
+
"method_tokenissuer_unfreeze_issuer_token"),
|
|
11125
|
+
0,
|
|
11126
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
11127
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
11128
|
+
return this
|
|
11129
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token(
|
|
11130
|
+
rt, thisVal, args, count);
|
|
11131
|
+
});
|
|
10875
11132
|
props["ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new"] =
|
|
10876
11133
|
jsi::Function::createFromHostFunction(
|
|
10877
11134
|
rt,
|
|
@@ -11116,6 +11373,19 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
11116
11373
|
->cpp_uniffi_internal_fn_method_syncstorage_ffi__bless_pointer(
|
|
11117
11374
|
rt, thisVal, args, count);
|
|
11118
11375
|
});
|
|
11376
|
+
props["ubrn_uniffi_internal_fn_method_tokenissuer_ffi__bless_pointer"] =
|
|
11377
|
+
jsi::Function::createFromHostFunction(
|
|
11378
|
+
rt,
|
|
11379
|
+
jsi::PropNameID::forAscii(
|
|
11380
|
+
rt,
|
|
11381
|
+
"ubrn_uniffi_internal_fn_method_tokenissuer_ffi__bless_pointer"),
|
|
11382
|
+
1,
|
|
11383
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
11384
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
11385
|
+
return this
|
|
11386
|
+
->cpp_uniffi_internal_fn_method_tokenissuer_ffi__bless_pointer(
|
|
11387
|
+
rt, thisVal, args, count);
|
|
11388
|
+
});
|
|
11119
11389
|
}
|
|
11120
11390
|
|
|
11121
11391
|
void NativeBreezSdkSpark::registerModule(
|
|
@@ -11399,6 +11669,22 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
11399
11669
|
auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
|
|
11400
11670
|
return jsi::Value(rt, obj);
|
|
11401
11671
|
}
|
|
11672
|
+
jsi::Value NativeBreezSdkSpark::
|
|
11673
|
+
cpp_uniffi_internal_fn_method_tokenissuer_ffi__bless_pointer(
|
|
11674
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
11675
|
+
size_t count) {
|
|
11676
|
+
auto pointer =
|
|
11677
|
+
uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
11678
|
+
auto static destructor = [](uint64_t p) {
|
|
11679
|
+
auto pointer = reinterpret_cast<void *>(static_cast<uintptr_t>(p));
|
|
11680
|
+
RustCallStatus status = {0};
|
|
11681
|
+
uniffi_breez_sdk_spark_fn_free_tokenissuer(pointer, &status);
|
|
11682
|
+
};
|
|
11683
|
+
auto ptrObj =
|
|
11684
|
+
std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
|
|
11685
|
+
auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
|
|
11686
|
+
return jsi::Value(rt, obj);
|
|
11687
|
+
}
|
|
11402
11688
|
|
|
11403
11689
|
// Methods calling directly into the uniffi generated C API of the Rust crate.
|
|
11404
11690
|
jsi::Value
|
|
@@ -11606,6 +11892,19 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(
|
|
|
11606
11892
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
11607
11893
|
value);
|
|
11608
11894
|
}
|
|
11895
|
+
jsi::Value NativeBreezSdkSpark::
|
|
11896
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_token_issuer(
|
|
11897
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
11898
|
+
size_t count) {
|
|
11899
|
+
RustCallStatus status =
|
|
11900
|
+
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
11901
|
+
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_get_token_issuer(
|
|
11902
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), &status);
|
|
11903
|
+
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::copyIntoJs(
|
|
11904
|
+
rt, callInvoker, status, args[count - 1]);
|
|
11905
|
+
|
|
11906
|
+
return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
|
|
11907
|
+
}
|
|
11609
11908
|
jsi::Value NativeBreezSdkSpark::
|
|
11610
11909
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_tokens_metadata(
|
|
11611
11910
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -12477,6 +12776,113 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
12477
12776
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
12478
12777
|
value);
|
|
12479
12778
|
}
|
|
12779
|
+
jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_clone_tokenissuer(
|
|
12780
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
12781
|
+
size_t count) {
|
|
12782
|
+
RustCallStatus status =
|
|
12783
|
+
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
12784
|
+
auto value = uniffi_breez_sdk_spark_fn_clone_tokenissuer(
|
|
12785
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), &status);
|
|
12786
|
+
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::copyIntoJs(
|
|
12787
|
+
rt, callInvoker, status, args[count - 1]);
|
|
12788
|
+
|
|
12789
|
+
return uniffi_jsi::Bridging<void *>::toJs(rt, callInvoker, value);
|
|
12790
|
+
}
|
|
12791
|
+
jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_free_tokenissuer(
|
|
12792
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
12793
|
+
size_t count) {
|
|
12794
|
+
RustCallStatus status =
|
|
12795
|
+
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
12796
|
+
uniffi_breez_sdk_spark_fn_free_tokenissuer(
|
|
12797
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]), &status);
|
|
12798
|
+
uniffi::breez_sdk_spark::Bridging<RustCallStatus>::copyIntoJs(
|
|
12799
|
+
rt, callInvoker, status, args[count - 1]);
|
|
12800
|
+
|
|
12801
|
+
return jsi::Value::undefined();
|
|
12802
|
+
}
|
|
12803
|
+
jsi::Value NativeBreezSdkSpark::
|
|
12804
|
+
cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_burn_issuer_token(
|
|
12805
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
12806
|
+
size_t count) {
|
|
12807
|
+
auto value = uniffi_breez_sdk_spark_fn_method_tokenissuer_burn_issuer_token(
|
|
12808
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
12809
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
12810
|
+
args[1]));
|
|
12811
|
+
|
|
12812
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
12813
|
+
value);
|
|
12814
|
+
}
|
|
12815
|
+
jsi::Value NativeBreezSdkSpark::
|
|
12816
|
+
cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_create_issuer_token(
|
|
12817
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
12818
|
+
size_t count) {
|
|
12819
|
+
auto value = uniffi_breez_sdk_spark_fn_method_tokenissuer_create_issuer_token(
|
|
12820
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
12821
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
12822
|
+
args[1]));
|
|
12823
|
+
|
|
12824
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
12825
|
+
value);
|
|
12826
|
+
}
|
|
12827
|
+
jsi::Value NativeBreezSdkSpark::
|
|
12828
|
+
cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_freeze_issuer_token(
|
|
12829
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
12830
|
+
size_t count) {
|
|
12831
|
+
auto value = uniffi_breez_sdk_spark_fn_method_tokenissuer_freeze_issuer_token(
|
|
12832
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
12833
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
12834
|
+
args[1]));
|
|
12835
|
+
|
|
12836
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
12837
|
+
value);
|
|
12838
|
+
}
|
|
12839
|
+
jsi::Value NativeBreezSdkSpark::
|
|
12840
|
+
cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_balance(
|
|
12841
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
12842
|
+
size_t count) {
|
|
12843
|
+
auto value =
|
|
12844
|
+
uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_balance(
|
|
12845
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]));
|
|
12846
|
+
|
|
12847
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
12848
|
+
value);
|
|
12849
|
+
}
|
|
12850
|
+
jsi::Value NativeBreezSdkSpark::
|
|
12851
|
+
cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_metadata(
|
|
12852
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
12853
|
+
size_t count) {
|
|
12854
|
+
auto value =
|
|
12855
|
+
uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_metadata(
|
|
12856
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]));
|
|
12857
|
+
|
|
12858
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
12859
|
+
value);
|
|
12860
|
+
}
|
|
12861
|
+
jsi::Value NativeBreezSdkSpark::
|
|
12862
|
+
cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_mint_issuer_token(
|
|
12863
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
12864
|
+
size_t count) {
|
|
12865
|
+
auto value = uniffi_breez_sdk_spark_fn_method_tokenissuer_mint_issuer_token(
|
|
12866
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
12867
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
12868
|
+
args[1]));
|
|
12869
|
+
|
|
12870
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
12871
|
+
value);
|
|
12872
|
+
}
|
|
12873
|
+
jsi::Value NativeBreezSdkSpark::
|
|
12874
|
+
cpp_uniffi_breez_sdk_spark_fn_method_tokenissuer_unfreeze_issuer_token(
|
|
12875
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
12876
|
+
size_t count) {
|
|
12877
|
+
auto value =
|
|
12878
|
+
uniffi_breez_sdk_spark_fn_method_tokenissuer_unfreeze_issuer_token(
|
|
12879
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
12880
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
12881
|
+
args[1]));
|
|
12882
|
+
|
|
12883
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
12884
|
+
value);
|
|
12885
|
+
}
|
|
12480
12886
|
jsi::Value NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_func_connect(
|
|
12481
12887
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
12482
12888
|
size_t count) {
|
|
@@ -13273,6 +13679,15 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
13273
13679
|
|
|
13274
13680
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
13275
13681
|
}
|
|
13682
|
+
jsi::Value NativeBreezSdkSpark::
|
|
13683
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer(
|
|
13684
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
13685
|
+
size_t count) {
|
|
13686
|
+
auto value =
|
|
13687
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer();
|
|
13688
|
+
|
|
13689
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
13690
|
+
}
|
|
13276
13691
|
jsi::Value NativeBreezSdkSpark::
|
|
13277
13692
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata(
|
|
13278
13693
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -13774,6 +14189,69 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
13774
14189
|
|
|
13775
14190
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
13776
14191
|
}
|
|
14192
|
+
jsi::Value NativeBreezSdkSpark::
|
|
14193
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token(
|
|
14194
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
14195
|
+
size_t count) {
|
|
14196
|
+
auto value =
|
|
14197
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token();
|
|
14198
|
+
|
|
14199
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
14200
|
+
}
|
|
14201
|
+
jsi::Value NativeBreezSdkSpark::
|
|
14202
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token(
|
|
14203
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
14204
|
+
size_t count) {
|
|
14205
|
+
auto value =
|
|
14206
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token();
|
|
14207
|
+
|
|
14208
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
14209
|
+
}
|
|
14210
|
+
jsi::Value NativeBreezSdkSpark::
|
|
14211
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token(
|
|
14212
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
14213
|
+
size_t count) {
|
|
14214
|
+
auto value =
|
|
14215
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token();
|
|
14216
|
+
|
|
14217
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
14218
|
+
}
|
|
14219
|
+
jsi::Value NativeBreezSdkSpark::
|
|
14220
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance(
|
|
14221
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
14222
|
+
size_t count) {
|
|
14223
|
+
auto value =
|
|
14224
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance();
|
|
14225
|
+
|
|
14226
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
14227
|
+
}
|
|
14228
|
+
jsi::Value NativeBreezSdkSpark::
|
|
14229
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata(
|
|
14230
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
14231
|
+
size_t count) {
|
|
14232
|
+
auto value =
|
|
14233
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata();
|
|
14234
|
+
|
|
14235
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
14236
|
+
}
|
|
14237
|
+
jsi::Value NativeBreezSdkSpark::
|
|
14238
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token(
|
|
14239
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
14240
|
+
size_t count) {
|
|
14241
|
+
auto value =
|
|
14242
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token();
|
|
14243
|
+
|
|
14244
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
14245
|
+
}
|
|
14246
|
+
jsi::Value NativeBreezSdkSpark::
|
|
14247
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token(
|
|
14248
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
14249
|
+
size_t count) {
|
|
14250
|
+
auto value =
|
|
14251
|
+
uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token();
|
|
14252
|
+
|
|
14253
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
14254
|
+
}
|
|
13777
14255
|
jsi::Value NativeBreezSdkSpark::
|
|
13778
14256
|
cpp_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new(
|
|
13779
14257
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|