@breeztech/breez-sdk-spark-react-native 0.18.0 → 0.19.0
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/cpp/generated/breez_sdk_spark.cpp +609 -108
- package/cpp/generated/breez_sdk_spark.hpp +52 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +161 -14
- 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 +160 -13
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +34 -18
- 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 +1089 -86
- 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 +34 -18
- 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 +1089 -86
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/generated/breez_sdk_spark-ffi.ts +62 -22
- package/src/generated/breez_sdk_spark.ts +1971 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breeztech/breez-sdk-spark-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "React Native bindings for the Breez SDK - Nodeless (Spark Implementation)",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"version": "0.49.0"
|
|
210
210
|
},
|
|
211
211
|
"checksums": {
|
|
212
|
-
"android": "
|
|
213
|
-
"ios": "
|
|
212
|
+
"android": "8f4cc1d7ca3efd0c7bf737f02654dd5ce7f92d9af116cea77dc5be70ab08b4b9",
|
|
213
|
+
"ios": "0a1c59f6bc32ce9e4f0f7c38f3d5ba96b92d3fe7627914f5c0be6bbe56b9c2b2"
|
|
214
214
|
}
|
|
215
215
|
}
|
|
@@ -73,6 +73,14 @@ interface NativeModuleInterface {
|
|
|
73
73
|
ptr: bigint,
|
|
74
74
|
request: Uint8Array
|
|
75
75
|
): bigint;
|
|
76
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
77
|
+
ptr: bigint,
|
|
78
|
+
request: Uint8Array
|
|
79
|
+
): bigint;
|
|
80
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_transfer_package(
|
|
81
|
+
ptr: bigint,
|
|
82
|
+
request: Uint8Array
|
|
83
|
+
): bigint;
|
|
76
84
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_buy_bitcoin(
|
|
77
85
|
ptr: bigint,
|
|
78
86
|
request: Uint8Array
|
|
@@ -186,6 +194,14 @@ interface NativeModuleInterface {
|
|
|
186
194
|
ptr: bigint,
|
|
187
195
|
request: Uint8Array
|
|
188
196
|
): bigint;
|
|
197
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_lnurl_pay_package(
|
|
198
|
+
ptr: bigint,
|
|
199
|
+
request: Uint8Array
|
|
200
|
+
): bigint;
|
|
201
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_transfer_package(
|
|
202
|
+
ptr: bigint,
|
|
203
|
+
request: Uint8Array
|
|
204
|
+
): bigint;
|
|
189
205
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment(
|
|
190
206
|
ptr: bigint,
|
|
191
207
|
request: Uint8Array
|
|
@@ -329,6 +345,10 @@ interface NativeModuleInterface {
|
|
|
329
345
|
ptr: bigint,
|
|
330
346
|
leafId: Uint8Array
|
|
331
347
|
): bigint;
|
|
348
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_is_remote(
|
|
349
|
+
ptr: bigint,
|
|
350
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
351
|
+
): number;
|
|
332
352
|
ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_get_static_deposit_public_key(
|
|
333
353
|
ptr: bigint,
|
|
334
354
|
index: number
|
|
@@ -580,6 +600,10 @@ interface NativeModuleInterface {
|
|
|
580
600
|
apiType: Uint8Array,
|
|
581
601
|
credentials: Uint8Array
|
|
582
602
|
): bigint;
|
|
603
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_session_store(
|
|
604
|
+
ptr: bigint,
|
|
605
|
+
sessionStore: bigint
|
|
606
|
+
): bigint;
|
|
583
607
|
ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_shared_context(
|
|
584
608
|
ptr: bigint,
|
|
585
609
|
context: bigint
|
|
@@ -843,6 +867,11 @@ interface NativeModuleInterface {
|
|
|
843
867
|
network: Uint8Array,
|
|
844
868
|
uniffi_out_err: UniffiRustCallStatus
|
|
845
869
|
): Uint8Array;
|
|
870
|
+
ubrn_uniffi_breez_sdk_spark_fn_func_default_session_store(
|
|
871
|
+
backend: bigint,
|
|
872
|
+
network: Uint8Array,
|
|
873
|
+
identity: Uint8Array
|
|
874
|
+
): bigint;
|
|
846
875
|
ubrn_uniffi_breez_sdk_spark_fn_func_default_storage(
|
|
847
876
|
storageDir: Uint8Array,
|
|
848
877
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -1015,6 +1044,7 @@ interface NativeModuleInterface {
|
|
|
1015
1044
|
ubrn_uniffi_breez_sdk_spark_checksum_func_default_config(): number;
|
|
1016
1045
|
ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signers(): number;
|
|
1017
1046
|
ubrn_uniffi_breez_sdk_spark_checksum_func_default_server_config(): number;
|
|
1047
|
+
ubrn_uniffi_breez_sdk_spark_checksum_func_default_session_store(): number;
|
|
1018
1048
|
ubrn_uniffi_breez_sdk_spark_checksum_func_default_storage(): number;
|
|
1019
1049
|
ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status(): number;
|
|
1020
1050
|
ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging(): number;
|
|
@@ -1028,6 +1058,8 @@ interface NativeModuleInterface {
|
|
|
1028
1058
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact(): number;
|
|
1029
1059
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener(): number;
|
|
1030
1060
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer(): number;
|
|
1061
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package(): number;
|
|
1062
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package(): number;
|
|
1031
1063
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin(): number;
|
|
1032
1064
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available(): number;
|
|
1033
1065
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message(): number;
|
|
@@ -1058,6 +1090,8 @@ interface NativeModuleInterface {
|
|
|
1058
1090
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse(): number;
|
|
1059
1091
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay(): number;
|
|
1060
1092
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment(): number;
|
|
1093
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package(): number;
|
|
1094
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package(): number;
|
|
1061
1095
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment(): number;
|
|
1062
1096
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees(): number;
|
|
1063
1097
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit(): number;
|
|
@@ -1084,6 +1118,7 @@ interface NativeModuleInterface {
|
|
|
1084
1118
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_hash_schnorr(): number;
|
|
1085
1119
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key(): number;
|
|
1086
1120
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf(): number;
|
|
1121
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_is_remote(): number;
|
|
1087
1122
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key(): number;
|
|
1088
1123
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge(): number;
|
|
1089
1124
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message(): number;
|
|
@@ -1123,6 +1158,7 @@ interface NativeModuleInterface {
|
|
|
1123
1158
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client(): number;
|
|
1124
1159
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer(): number;
|
|
1125
1160
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service(): number;
|
|
1161
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_store(): number;
|
|
1126
1162
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context(): number;
|
|
1127
1163
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage(): number;
|
|
1128
1164
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage_backend(): number;
|
|
@@ -1496,32 +1532,29 @@ type UniffiCallbackInterfaceExternalSparkSignerMethod1 = (
|
|
|
1496
1532
|
uniffiCallbackData: bigint
|
|
1497
1533
|
) => UniffiForeignFuture;
|
|
1498
1534
|
type UniffiCallbackInterfaceExternalSparkSignerMethod2 = (
|
|
1499
|
-
uniffiHandle: bigint
|
|
1500
|
-
|
|
1501
|
-
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1502
|
-
uniffiCallbackData: bigint
|
|
1503
|
-
) => UniffiForeignFuture;
|
|
1535
|
+
uniffiHandle: bigint
|
|
1536
|
+
) => UniffiResult<number>;
|
|
1504
1537
|
type UniffiCallbackInterfaceExternalSparkSignerMethod3 = (
|
|
1505
1538
|
uniffiHandle: bigint,
|
|
1506
|
-
|
|
1539
|
+
index: number,
|
|
1507
1540
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1508
1541
|
uniffiCallbackData: bigint
|
|
1509
1542
|
) => UniffiForeignFuture;
|
|
1510
1543
|
type UniffiCallbackInterfaceExternalSparkSignerMethod4 = (
|
|
1511
1544
|
uniffiHandle: bigint,
|
|
1512
|
-
|
|
1545
|
+
challenge: Uint8Array,
|
|
1513
1546
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1514
1547
|
uniffiCallbackData: bigint
|
|
1515
1548
|
) => UniffiForeignFuture;
|
|
1516
1549
|
type UniffiCallbackInterfaceExternalSparkSignerMethod5 = (
|
|
1517
1550
|
uniffiHandle: bigint,
|
|
1518
|
-
|
|
1551
|
+
message: Uint8Array,
|
|
1519
1552
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1520
1553
|
uniffiCallbackData: bigint
|
|
1521
1554
|
) => UniffiForeignFuture;
|
|
1522
1555
|
type UniffiCallbackInterfaceExternalSparkSignerMethod6 = (
|
|
1523
1556
|
uniffiHandle: bigint,
|
|
1524
|
-
|
|
1557
|
+
jobs: Uint8Array,
|
|
1525
1558
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1526
1559
|
uniffiCallbackData: bigint
|
|
1527
1560
|
) => UniffiForeignFuture;
|
|
@@ -1573,6 +1606,12 @@ type UniffiCallbackInterfaceExternalSparkSignerMethod14 = (
|
|
|
1573
1606
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1574
1607
|
uniffiCallbackData: bigint
|
|
1575
1608
|
) => UniffiForeignFuture;
|
|
1609
|
+
type UniffiCallbackInterfaceExternalSparkSignerMethod15 = (
|
|
1610
|
+
uniffiHandle: bigint,
|
|
1611
|
+
request: Uint8Array,
|
|
1612
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1613
|
+
uniffiCallbackData: bigint
|
|
1614
|
+
) => UniffiForeignFuture;
|
|
1576
1615
|
type UniffiCallbackInterfaceFiatServiceMethod0 = (
|
|
1577
1616
|
uniffiHandle: bigint,
|
|
1578
1617
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
@@ -1883,19 +1922,20 @@ export type UniffiVTableCallbackInterfaceExternalSigningSigner = {
|
|
|
1883
1922
|
export type UniffiVTableCallbackInterfaceExternalSparkSigner = {
|
|
1884
1923
|
getIdentityPublicKey: UniffiCallbackInterfaceExternalSparkSignerMethod0;
|
|
1885
1924
|
getPublicKeyForLeaf: UniffiCallbackInterfaceExternalSparkSignerMethod1;
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1925
|
+
isRemote: UniffiCallbackInterfaceExternalSparkSignerMethod2;
|
|
1926
|
+
getStaticDepositPublicKey: UniffiCallbackInterfaceExternalSparkSignerMethod3;
|
|
1927
|
+
signAuthenticationChallenge: UniffiCallbackInterfaceExternalSparkSignerMethod4;
|
|
1928
|
+
signMessage: UniffiCallbackInterfaceExternalSparkSignerMethod5;
|
|
1929
|
+
signFrost: UniffiCallbackInterfaceExternalSparkSignerMethod6;
|
|
1930
|
+
prepareTransfer: UniffiCallbackInterfaceExternalSparkSignerMethod7;
|
|
1931
|
+
prepareClaim: UniffiCallbackInterfaceExternalSparkSignerMethod8;
|
|
1932
|
+
prepareLightningReceive: UniffiCallbackInterfaceExternalSparkSignerMethod9;
|
|
1933
|
+
prepareStaticDeposit: UniffiCallbackInterfaceExternalSparkSignerMethod10;
|
|
1934
|
+
startStaticDepositRefund: UniffiCallbackInterfaceExternalSparkSignerMethod11;
|
|
1935
|
+
signStaticDepositRefund: UniffiCallbackInterfaceExternalSparkSignerMethod12;
|
|
1936
|
+
signSparkInvoice: UniffiCallbackInterfaceExternalSparkSignerMethod13;
|
|
1937
|
+
prepareTokenTransaction: UniffiCallbackInterfaceExternalSparkSignerMethod14;
|
|
1938
|
+
prepareStaticDepositClaim: UniffiCallbackInterfaceExternalSparkSignerMethod15;
|
|
1899
1939
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1900
1940
|
};
|
|
1901
1941
|
export type UniffiVTableCallbackInterfaceFiatService = {
|