@breeztech/breez-sdk-spark-react-native 0.19.2 → 0.20.0-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark-react-native",
3
- "version": "0.19.2",
3
+ "version": "0.20.0-dev1",
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": "27fd14ec552994c550ae390786108cb1c25affe9b5c664b714c41140296c1077",
213
- "ios": "5131caa1ab496bf73b2ae8ac95d2321275956afe66a4f665ac5d5ec1dce28f84"
212
+ "android": "32524a94c2f5cf20b1181631d3c344f000c5b93b7a2e639a104905e24859f9f5",
213
+ "ios": "5f41f1e168757ea8f584ef689094921c741f05b9a774f4485ae5a521787758be"
214
214
  }
215
215
  }
@@ -38,6 +38,10 @@ interface NativeModuleInterface {
38
38
  ptr: bigint,
39
39
  address: Uint8Array
40
40
  ): bigint;
41
+ ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_address_txos(
42
+ ptr: bigint,
43
+ address: Uint8Array
44
+ ): bigint;
41
45
  ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_status(
42
46
  ptr: bigint,
43
47
  txid: Uint8Array
@@ -46,6 +50,11 @@ interface NativeModuleInterface {
46
50
  ptr: bigint,
47
51
  txid: Uint8Array
48
52
  ): bigint;
53
+ ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_outspend(
54
+ ptr: bigint,
55
+ txid: Uint8Array,
56
+ vout: number
57
+ ): bigint;
49
58
  ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_broadcast_transaction(
50
59
  ptr: bigint,
51
60
  tx: Uint8Array
@@ -194,6 +203,10 @@ interface NativeModuleInterface {
194
203
  ptr: bigint,
195
204
  request: Uint8Array
196
205
  ): bigint;
206
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_unilateral_exit(
207
+ ptr: bigint,
208
+ request: Uint8Array
209
+ ): bigint;
197
210
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_lnurl_pay_package(
198
211
  ptr: bigint,
199
212
  request: Uint8Array
@@ -240,6 +253,11 @@ interface NativeModuleInterface {
240
253
  ptr: bigint,
241
254
  request: Uint8Array
242
255
  ): bigint;
256
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_unilateral_exit(
257
+ ptr: bigint,
258
+ request: Uint8Array,
259
+ signer: bigint
260
+ ): bigint;
243
261
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook(
244
262
  ptr: bigint,
245
263
  request: Uint8Array
@@ -252,6 +270,21 @@ interface NativeModuleInterface {
252
270
  ptr: bigint,
253
271
  request: Uint8Array
254
272
  ): bigint;
273
+ ubrn_uniffi_breez_sdk_spark_fn_clone_cpfpsigner(
274
+ ptr: bigint,
275
+ uniffi_out_err: UniffiRustCallStatus
276
+ ): bigint;
277
+ ubrn_uniffi_breez_sdk_spark_fn_free_cpfpsigner(
278
+ ptr: bigint,
279
+ uniffi_out_err: UniffiRustCallStatus
280
+ ): void;
281
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_cpfpsigner(
282
+ vtable: UniffiVTableCallbackInterfaceCpfpSigner
283
+ ): void;
284
+ ubrn_uniffi_breez_sdk_spark_fn_method_cpfpsigner_sign_psbt(
285
+ ptr: bigint,
286
+ psbtBytes: Uint8Array
287
+ ): bigint;
255
288
  ubrn_uniffi_breez_sdk_spark_fn_clone_externalbreezsigner(
256
289
  ptr: bigint,
257
290
  uniffi_out_err: UniffiRustCallStatus
@@ -361,6 +394,11 @@ interface NativeModuleInterface {
361
394
  ptr: bigint,
362
395
  message: Uint8Array
363
396
  ): bigint;
397
+ ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_sign_leaf_refund_spend(
398
+ ptr: bigint,
399
+ leafId: Uint8Array,
400
+ sighash: Uint8Array
401
+ ): bigint;
364
402
  ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_sign_frost(
365
403
  ptr: bigint,
366
404
  jobs: Uint8Array
@@ -892,6 +930,10 @@ interface NativeModuleInterface {
892
930
  ubrn_uniffi_breez_sdk_spark_fn_func_new_shared_sdk_context(
893
931
  config: Uint8Array
894
932
  ): bigint;
933
+ ubrn_uniffi_breez_sdk_spark_fn_func_single_key_cpfp_signer(
934
+ secretKeyBytes: Uint8Array,
935
+ uniffi_out_err: UniffiRustCallStatus
936
+ ): bigint;
895
937
  ubrn_ffi_breez_sdk_spark_rust_future_poll_u8(
896
938
  handle: bigint,
897
939
  callback: UniffiRustFutureContinuationCallback,
@@ -1050,9 +1092,12 @@ interface NativeModuleInterface {
1050
1092
  ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging(): number;
1051
1093
  ubrn_uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service(): number;
1052
1094
  ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context(): number;
1095
+ ubrn_uniffi_breez_sdk_spark_checksum_func_single_key_cpfp_signer(): number;
1053
1096
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos(): number;
1097
+ ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_txos(): number;
1054
1098
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status(): number;
1055
1099
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex(): number;
1100
+ ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_outspend(): number;
1056
1101
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction(): number;
1057
1102
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees(): number;
1058
1103
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact(): number;
@@ -1090,6 +1135,7 @@ interface NativeModuleInterface {
1090
1135
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse(): number;
1091
1136
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay(): number;
1092
1137
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment(): number;
1138
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_unilateral_exit(): number;
1093
1139
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package(): number;
1094
1140
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package(): number;
1095
1141
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment(): number;
@@ -1102,9 +1148,11 @@ interface NativeModuleInterface {
1102
1148
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(): number;
1103
1149
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message(): number;
1104
1150
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(): number;
1151
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unilateral_exit(): number;
1105
1152
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook(): number;
1106
1153
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact(): number;
1107
1154
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings(): number;
1155
+ ubrn_uniffi_breez_sdk_spark_checksum_method_cpfpsigner_sign_psbt(): number;
1108
1156
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key(): number;
1109
1157
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa(): number;
1110
1158
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable(): number;
@@ -1122,6 +1170,7 @@ interface NativeModuleInterface {
1122
1170
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key(): number;
1123
1171
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge(): number;
1124
1172
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message(): number;
1173
+ ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_leaf_refund_spend(): number;
1125
1174
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost(): number;
1126
1175
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer(): number;
1127
1176
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim(): number;
@@ -1217,6 +1266,10 @@ interface NativeModuleInterface {
1217
1266
  pointer: bigint,
1218
1267
  uniffi_out_err: UniffiRustCallStatus
1219
1268
  ): UniffiRustArcPtr;
1269
+ ubrn_uniffi_internal_fn_method_cpfpsigner_ffi__bless_pointer(
1270
+ pointer: bigint,
1271
+ uniffi_out_err: UniffiRustCallStatus
1272
+ ): UniffiRustArcPtr;
1220
1273
  ubrn_uniffi_internal_fn_method_externalbreezsigner_ffi__bless_pointer(
1221
1274
  pointer: bigint,
1222
1275
  uniffi_out_err: UniffiRustCallStatus
@@ -1424,7 +1477,7 @@ type UniffiCallbackInterfaceBitcoinChainServiceMethod0 = (
1424
1477
  ) => UniffiForeignFuture;
1425
1478
  type UniffiCallbackInterfaceBitcoinChainServiceMethod1 = (
1426
1479
  uniffiHandle: bigint,
1427
- txid: Uint8Array,
1480
+ address: Uint8Array,
1428
1481
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1429
1482
  uniffiCallbackData: bigint
1430
1483
  ) => UniffiForeignFuture;
@@ -1435,16 +1488,35 @@ type UniffiCallbackInterfaceBitcoinChainServiceMethod2 = (
1435
1488
  uniffiCallbackData: bigint
1436
1489
  ) => UniffiForeignFuture;
1437
1490
  type UniffiCallbackInterfaceBitcoinChainServiceMethod3 = (
1491
+ uniffiHandle: bigint,
1492
+ txid: Uint8Array,
1493
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1494
+ uniffiCallbackData: bigint
1495
+ ) => UniffiForeignFuture;
1496
+ type UniffiCallbackInterfaceBitcoinChainServiceMethod4 = (
1497
+ uniffiHandle: bigint,
1498
+ txid: Uint8Array,
1499
+ vout: number,
1500
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1501
+ uniffiCallbackData: bigint
1502
+ ) => UniffiForeignFuture;
1503
+ type UniffiCallbackInterfaceBitcoinChainServiceMethod5 = (
1438
1504
  uniffiHandle: bigint,
1439
1505
  tx: Uint8Array,
1440
1506
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1441
1507
  uniffiCallbackData: bigint
1442
1508
  ) => UniffiForeignFuture;
1443
- type UniffiCallbackInterfaceBitcoinChainServiceMethod4 = (
1509
+ type UniffiCallbackInterfaceBitcoinChainServiceMethod6 = (
1444
1510
  uniffiHandle: bigint,
1445
1511
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1446
1512
  uniffiCallbackData: bigint
1447
1513
  ) => UniffiForeignFuture;
1514
+ type UniffiCallbackInterfaceCpfpSignerMethod0 = (
1515
+ uniffiHandle: bigint,
1516
+ psbtBytes: Uint8Array,
1517
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1518
+ uniffiCallbackData: bigint
1519
+ ) => UniffiForeignFuture;
1448
1520
  type UniffiCallbackInterfaceExternalBreezSignerMethod0 = (
1449
1521
  uniffiHandle: bigint,
1450
1522
  path: Uint8Array,
@@ -1554,13 +1626,14 @@ type UniffiCallbackInterfaceExternalSparkSignerMethod5 = (
1554
1626
  ) => UniffiForeignFuture;
1555
1627
  type UniffiCallbackInterfaceExternalSparkSignerMethod6 = (
1556
1628
  uniffiHandle: bigint,
1557
- jobs: Uint8Array,
1629
+ leafId: Uint8Array,
1630
+ sighash: Uint8Array,
1558
1631
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1559
1632
  uniffiCallbackData: bigint
1560
1633
  ) => UniffiForeignFuture;
1561
1634
  type UniffiCallbackInterfaceExternalSparkSignerMethod7 = (
1562
1635
  uniffiHandle: bigint,
1563
- request: Uint8Array,
1636
+ jobs: Uint8Array,
1564
1637
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1565
1638
  uniffiCallbackData: bigint
1566
1639
  ) => UniffiForeignFuture;
@@ -1612,6 +1685,12 @@ type UniffiCallbackInterfaceExternalSparkSignerMethod15 = (
1612
1685
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1613
1686
  uniffiCallbackData: bigint
1614
1687
  ) => UniffiForeignFuture;
1688
+ type UniffiCallbackInterfaceExternalSparkSignerMethod16 = (
1689
+ uniffiHandle: bigint,
1690
+ request: Uint8Array,
1691
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1692
+ uniffiCallbackData: bigint
1693
+ ) => UniffiForeignFuture;
1615
1694
  type UniffiCallbackInterfaceFiatServiceMethod0 = (
1616
1695
  uniffiHandle: bigint,
1617
1696
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
@@ -1896,10 +1975,16 @@ export type UniffiVTableCallbackInterfaceLogger = {
1896
1975
  };
1897
1976
  export type UniffiVTableCallbackInterfaceBitcoinChainService = {
1898
1977
  getAddressUtxos: UniffiCallbackInterfaceBitcoinChainServiceMethod0;
1899
- getTransactionStatus: UniffiCallbackInterfaceBitcoinChainServiceMethod1;
1900
- getTransactionHex: UniffiCallbackInterfaceBitcoinChainServiceMethod2;
1901
- broadcastTransaction: UniffiCallbackInterfaceBitcoinChainServiceMethod3;
1902
- recommendedFees: UniffiCallbackInterfaceBitcoinChainServiceMethod4;
1978
+ getAddressTxos: UniffiCallbackInterfaceBitcoinChainServiceMethod1;
1979
+ getTransactionStatus: UniffiCallbackInterfaceBitcoinChainServiceMethod2;
1980
+ getTransactionHex: UniffiCallbackInterfaceBitcoinChainServiceMethod3;
1981
+ getOutspend: UniffiCallbackInterfaceBitcoinChainServiceMethod4;
1982
+ broadcastTransaction: UniffiCallbackInterfaceBitcoinChainServiceMethod5;
1983
+ recommendedFees: UniffiCallbackInterfaceBitcoinChainServiceMethod6;
1984
+ uniffiFree: UniffiCallbackInterfaceFree;
1985
+ };
1986
+ export type UniffiVTableCallbackInterfaceCpfpSigner = {
1987
+ signPsbt: UniffiCallbackInterfaceCpfpSignerMethod0;
1903
1988
  uniffiFree: UniffiCallbackInterfaceFree;
1904
1989
  };
1905
1990
  export type UniffiVTableCallbackInterfaceExternalBreezSigner = {
@@ -1926,16 +2011,17 @@ export type UniffiVTableCallbackInterfaceExternalSparkSigner = {
1926
2011
  getStaticDepositPublicKey: UniffiCallbackInterfaceExternalSparkSignerMethod3;
1927
2012
  signAuthenticationChallenge: UniffiCallbackInterfaceExternalSparkSignerMethod4;
1928
2013
  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;
2014
+ signLeafRefundSpend: UniffiCallbackInterfaceExternalSparkSignerMethod6;
2015
+ signFrost: UniffiCallbackInterfaceExternalSparkSignerMethod7;
2016
+ prepareTransfer: UniffiCallbackInterfaceExternalSparkSignerMethod8;
2017
+ prepareClaim: UniffiCallbackInterfaceExternalSparkSignerMethod9;
2018
+ prepareLightningReceive: UniffiCallbackInterfaceExternalSparkSignerMethod10;
2019
+ prepareStaticDeposit: UniffiCallbackInterfaceExternalSparkSignerMethod11;
2020
+ startStaticDepositRefund: UniffiCallbackInterfaceExternalSparkSignerMethod12;
2021
+ signStaticDepositRefund: UniffiCallbackInterfaceExternalSparkSignerMethod13;
2022
+ signSparkInvoice: UniffiCallbackInterfaceExternalSparkSignerMethod14;
2023
+ prepareTokenTransaction: UniffiCallbackInterfaceExternalSparkSignerMethod15;
2024
+ prepareStaticDepositClaim: UniffiCallbackInterfaceExternalSparkSignerMethod16;
1939
2025
  uniffiFree: UniffiCallbackInterfaceFree;
1940
2026
  };
1941
2027
  export type UniffiVTableCallbackInterfaceFiatService = {