@breeztech/breez-sdk-spark-react-native 0.13.12-dev1 → 0.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark-react-native",
3
- "version": "0.13.12-dev1",
3
+ "version": "0.15.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",
@@ -197,7 +197,7 @@
197
197
  "version": "0.49.0"
198
198
  },
199
199
  "checksums": {
200
- "android": "18c12019fc6906a3412ce32ed8f4cfbc396de819f11818d64dd1a33018e40555",
201
- "ios": "fb887f430e4a8ed8352d450746fe4a4d16fd72f7dc214b2939c77561ef83d1c4"
200
+ "android": "8575e29841c19347cc3d490914f155f9bc8db704144f6c6e1d5cb43cd33af39c",
201
+ "ios": "44b0cccd549afb6f6955148b0f701e9648617af0eadd8e107245d726dfc6a3b5"
202
202
  }
203
203
  }
@@ -188,6 +188,9 @@ interface NativeModuleInterface {
188
188
  ptr: bigint,
189
189
  request: Uint8Array
190
190
  ): bigint;
191
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_refund_pending_conversions(
192
+ ptr: bigint
193
+ ): bigint;
191
194
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_register_lightning_address(
192
195
  ptr: bigint,
193
196
  request: Uint8Array
@@ -227,14 +230,6 @@ interface NativeModuleInterface {
227
230
  ptr: bigint,
228
231
  request: Uint8Array
229
232
  ): bigint;
230
- ubrn_uniffi_breez_sdk_spark_fn_clone_connectionmanager(
231
- ptr: bigint,
232
- uniffi_out_err: UniffiRustCallStatus
233
- ): bigint;
234
- ubrn_uniffi_breez_sdk_spark_fn_free_connectionmanager(
235
- ptr: bigint,
236
- uniffi_out_err: UniffiRustCallStatus
237
- ): void;
238
233
  ubrn_uniffi_breez_sdk_spark_fn_clone_externalsigner(
239
234
  ptr: bigint,
240
235
  uniffi_out_err: UniffiRustCallStatus
@@ -457,10 +452,6 @@ interface NativeModuleInterface {
457
452
  ptr: bigint,
458
453
  chainService: bigint
459
454
  ): bigint;
460
- ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_connection_manager(
461
- ptr: bigint,
462
- connectionManager: bigint
463
- ): bigint;
464
455
  ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_default_storage(
465
456
  ptr: bigint,
466
457
  storageDir: Uint8Array
@@ -487,18 +478,22 @@ interface NativeModuleInterface {
487
478
  apiType: Uint8Array,
488
479
  credentials: Uint8Array
489
480
  ): bigint;
490
- ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_session_manager(
481
+ ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_shared_context(
491
482
  ptr: bigint,
492
- sessionManager: bigint
493
- ): bigint;
494
- ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_ssp_connection_manager(
495
- ptr: bigint,
496
- manager: bigint
483
+ context: bigint
497
484
  ): bigint;
498
485
  ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_storage(
499
486
  ptr: bigint,
500
487
  storage: bigint
501
488
  ): bigint;
489
+ ubrn_uniffi_breez_sdk_spark_fn_clone_sdkcontext(
490
+ ptr: bigint,
491
+ uniffi_out_err: UniffiRustCallStatus
492
+ ): bigint;
493
+ ubrn_uniffi_breez_sdk_spark_fn_free_sdkcontext(
494
+ ptr: bigint,
495
+ uniffi_out_err: UniffiRustCallStatus
496
+ ): void;
502
497
  ubrn_uniffi_breez_sdk_spark_fn_clone_sessionmanager(
503
498
  ptr: bigint,
504
499
  uniffi_out_err: UniffiRustCallStatus
@@ -519,14 +514,6 @@ interface NativeModuleInterface {
519
514
  serviceIdentityKey: Uint8Array,
520
515
  session: Uint8Array
521
516
  ): bigint;
522
- ubrn_uniffi_breez_sdk_spark_fn_clone_sspconnectionmanager(
523
- ptr: bigint,
524
- uniffi_out_err: UniffiRustCallStatus
525
- ): bigint;
526
- ubrn_uniffi_breez_sdk_spark_fn_free_sspconnectionmanager(
527
- ptr: bigint,
528
- uniffi_out_err: UniffiRustCallStatus
529
- ): void;
530
517
  ubrn_uniffi_breez_sdk_spark_fn_clone_storage(
531
518
  ptr: bigint,
532
519
  uniffi_out_err: UniffiRustCallStatus
@@ -707,6 +694,10 @@ interface NativeModuleInterface {
707
694
  keySetConfig: Uint8Array,
708
695
  uniffi_out_err: UniffiRustCallStatus
709
696
  ): bigint;
697
+ ubrn_uniffi_breez_sdk_spark_fn_func_default_server_config(
698
+ network: Uint8Array,
699
+ uniffi_out_err: UniffiRustCallStatus
700
+ ): Uint8Array;
710
701
  ubrn_uniffi_breez_sdk_spark_fn_func_get_spark_status(): bigint;
711
702
  ubrn_uniffi_breez_sdk_spark_fn_func_init_logging(
712
703
  logDir: Uint8Array,
@@ -714,20 +705,14 @@ interface NativeModuleInterface {
714
705
  logFilter: Uint8Array,
715
706
  uniffi_out_err: UniffiRustCallStatus
716
707
  ): void;
717
- ubrn_uniffi_breez_sdk_spark_fn_func_new_connection_manager(
718
- connectionsPerOperator: Uint8Array,
719
- uniffi_out_err: UniffiRustCallStatus
720
- ): bigint;
721
708
  ubrn_uniffi_breez_sdk_spark_fn_func_new_rest_chain_service(
722
709
  url: Uint8Array,
723
710
  network: Uint8Array,
724
711
  apiType: Uint8Array,
725
- credentials: Uint8Array,
726
- uniffi_out_err: UniffiRustCallStatus
712
+ credentials: Uint8Array
727
713
  ): bigint;
728
- ubrn_uniffi_breez_sdk_spark_fn_func_new_ssp_connection_manager(
729
- userAgent: Uint8Array,
730
- uniffi_out_err: UniffiRustCallStatus
714
+ ubrn_uniffi_breez_sdk_spark_fn_func_new_shared_sdk_context(
715
+ config: Uint8Array
731
716
  ): bigint;
732
717
  ubrn_ffi_breez_sdk_spark_rust_future_poll_u8(
733
718
  handle: bigint,
@@ -876,11 +861,11 @@ interface NativeModuleInterface {
876
861
  ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signer(): number;
877
862
  ubrn_uniffi_breez_sdk_spark_checksum_func_default_config(): number;
878
863
  ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signer(): number;
864
+ ubrn_uniffi_breez_sdk_spark_checksum_func_default_server_config(): number;
879
865
  ubrn_uniffi_breez_sdk_spark_checksum_func_get_spark_status(): number;
880
866
  ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging(): number;
881
- ubrn_uniffi_breez_sdk_spark_checksum_func_new_connection_manager(): number;
882
867
  ubrn_uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service(): number;
883
- ubrn_uniffi_breez_sdk_spark_checksum_func_new_ssp_connection_manager(): number;
868
+ ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context(): number;
884
869
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos(): number;
885
870
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status(): number;
886
871
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex(): number;
@@ -920,6 +905,7 @@ interface NativeModuleInterface {
920
905
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment(): number;
921
906
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees(): number;
922
907
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit(): number;
908
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_pending_conversions(): number;
923
909
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address(): number;
924
910
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook(): number;
925
911
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener(): number;
@@ -964,15 +950,13 @@ interface NativeModuleInterface {
964
950
  ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request(): number;
965
951
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build(): number;
966
952
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service(): number;
967
- ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_connection_manager(): number;
968
953
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage(): number;
969
954
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service(): number;
970
955
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set(): number;
971
956
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client(): number;
972
957
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_payment_observer(): number;
973
958
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service(): number;
974
- ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_session_manager(): number;
975
- ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_ssp_connection_manager(): number;
959
+ ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_shared_context(): number;
976
960
  ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage(): number;
977
961
  ubrn_uniffi_breez_sdk_spark_checksum_method_sessionmanager_get_session(): number;
978
962
  ubrn_uniffi_breez_sdk_spark_checksum_method_sessionmanager_set_session(): number;
@@ -1023,10 +1007,6 @@ interface NativeModuleInterface {
1023
1007
  pointer: bigint,
1024
1008
  uniffi_out_err: UniffiRustCallStatus
1025
1009
  ): UniffiRustArcPtr;
1026
- ubrn_uniffi_internal_fn_method_connectionmanager_ffi__bless_pointer(
1027
- pointer: bigint,
1028
- uniffi_out_err: UniffiRustCallStatus
1029
- ): UniffiRustArcPtr;
1030
1010
  ubrn_uniffi_internal_fn_method_externalsigner_ffi__bless_pointer(
1031
1011
  pointer: bigint,
1032
1012
  uniffi_out_err: UniffiRustCallStatus
@@ -1055,11 +1035,11 @@ interface NativeModuleInterface {
1055
1035
  pointer: bigint,
1056
1036
  uniffi_out_err: UniffiRustCallStatus
1057
1037
  ): UniffiRustArcPtr;
1058
- ubrn_uniffi_internal_fn_method_sessionmanager_ffi__bless_pointer(
1038
+ ubrn_uniffi_internal_fn_method_sdkcontext_ffi__bless_pointer(
1059
1039
  pointer: bigint,
1060
1040
  uniffi_out_err: UniffiRustCallStatus
1061
1041
  ): UniffiRustArcPtr;
1062
- ubrn_uniffi_internal_fn_method_sspconnectionmanager_ffi__bless_pointer(
1042
+ ubrn_uniffi_internal_fn_method_sessionmanager_ffi__bless_pointer(
1063
1043
  pointer: bigint,
1064
1044
  uniffi_out_err: UniffiRustCallStatus
1065
1045
  ): UniffiRustArcPtr;