@breeztech/breez-sdk-spark-react-native 0.10.0 → 0.11.0-dev2

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.
Files changed (36) hide show
  1. package/{breeztech-breez-sdk-spark-react-native.podspec → BreezSdkSparkReactNative.podspec} +2 -2
  2. package/android/CMakeLists.txt +3 -4
  3. package/android/proguard-rules.pro +4 -0
  4. package/cpp/generated/breez_sdk_spark.cpp +1567 -514
  5. package/cpp/generated/breez_sdk_spark.hpp +73 -25
  6. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/breez_sdk_spark.js +186 -81
  8. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  9. package/lib/commonjs/generated/breez_sdk_spark_bindings.js +4 -2
  10. package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
  11. package/lib/commonjs/index.js +11 -1
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  14. package/lib/module/generated/breez_sdk_spark.js +185 -80
  15. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  16. package/lib/module/generated/breez_sdk_spark_bindings.js +4 -2
  17. package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
  18. package/lib/module/index.js +7 -0
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +95 -71
  21. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +409 -5
  23. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/src/index.d.ts +1 -0
  25. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  26. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +95 -71
  27. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  28. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +409 -5
  29. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  30. package/lib/typescript/module/src/index.d.ts +1 -0
  31. package/lib/typescript/module/src/index.d.ts.map +1 -1
  32. package/package.json +4 -4
  33. package/src/generated/breez_sdk_spark-ffi.ts +163 -95
  34. package/src/generated/breez_sdk_spark.ts +1919 -771
  35. package/src/generated/breez_sdk_spark_bindings.ts +2 -2
  36. package/src/index.tsx +7 -0
@@ -31,6 +31,9 @@ interface NativeModuleInterface {
31
31
  ptr: bigint,
32
32
  uniffi_out_err: UniffiRustCallStatus
33
33
  ): void;
34
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
35
+ vtable: UniffiVTableCallbackInterfaceBitcoinChainService
36
+ ): void;
34
37
  ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_address_utxos(
35
38
  ptr: bigint,
36
39
  address: Uint8Array
@@ -58,6 +61,10 @@ interface NativeModuleInterface {
58
61
  ptr: bigint,
59
62
  uniffi_out_err: UniffiRustCallStatus
60
63
  ): void;
64
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_add_contact(
65
+ ptr: bigint,
66
+ request: Uint8Array
67
+ ): bigint;
61
68
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(
62
69
  ptr: bigint,
63
70
  listener: bigint
@@ -85,6 +92,10 @@ interface NativeModuleInterface {
85
92
  ptr: bigint,
86
93
  request: Uint8Array
87
94
  ): bigint;
95
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_delete_contact(
96
+ ptr: bigint,
97
+ id: Uint8Array
98
+ ): bigint;
88
99
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address(
89
100
  ptr: bigint
90
101
  ): bigint;
@@ -121,6 +132,10 @@ interface NativeModuleInterface {
121
132
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_user_settings(
122
133
  ptr: bigint
123
134
  ): bigint;
135
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_contacts(
136
+ ptr: bigint,
137
+ request: Uint8Array
138
+ ): bigint;
124
139
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_currencies(
125
140
  ptr: bigint
126
141
  ): bigint;
@@ -194,6 +209,10 @@ interface NativeModuleInterface {
194
209
  ptr: bigint,
195
210
  request: Uint8Array
196
211
  ): bigint;
212
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_update_contact(
213
+ ptr: bigint,
214
+ request: Uint8Array
215
+ ): bigint;
197
216
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_update_user_settings(
198
217
  ptr: bigint,
199
218
  request: Uint8Array
@@ -206,6 +225,9 @@ interface NativeModuleInterface {
206
225
  ptr: bigint,
207
226
  uniffi_out_err: UniffiRustCallStatus
208
227
  ): void;
228
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
229
+ vtable: UniffiVTableCallbackInterfaceExternalSigner
230
+ ): void;
209
231
  ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_identity_public_key(
210
232
  ptr: bigint,
211
233
  uniffi_out_err: UniffiRustCallStatus
@@ -302,6 +324,9 @@ interface NativeModuleInterface {
302
324
  ptr: bigint,
303
325
  uniffi_out_err: UniffiRustCallStatus
304
326
  ): void;
327
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
328
+ vtable: UniffiVTableCallbackInterfaceFiatService
329
+ ): void;
305
330
  ubrn_uniffi_breez_sdk_spark_fn_method_fiatservice_fetch_fiat_currencies(
306
331
  ptr: bigint
307
332
  ): bigint;
@@ -316,6 +341,9 @@ interface NativeModuleInterface {
316
341
  ptr: bigint,
317
342
  uniffi_out_err: UniffiRustCallStatus
318
343
  ): void;
344
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
345
+ vtable: UniffiVTableCallbackInterfacePaymentObserver
346
+ ): void;
319
347
  ubrn_uniffi_breez_sdk_spark_fn_method_paymentobserver_before_send(
320
348
  ptr: bigint,
321
349
  payments: Uint8Array
@@ -328,6 +356,9 @@ interface NativeModuleInterface {
328
356
  ptr: bigint,
329
357
  uniffi_out_err: UniffiRustCallStatus
330
358
  ): void;
359
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
360
+ vtable: UniffiVTableCallbackInterfaceRestClient
361
+ ): void;
331
362
  ubrn_uniffi_breez_sdk_spark_fn_method_restclient_get_request(
332
363
  ptr: bigint,
333
364
  url: Uint8Array,
@@ -401,6 +432,9 @@ interface NativeModuleInterface {
401
432
  ptr: bigint,
402
433
  uniffi_out_err: UniffiRustCallStatus
403
434
  ): void;
435
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
436
+ vtable: UniffiVTableCallbackInterfaceStorage
437
+ ): void;
404
438
  ubrn_uniffi_breez_sdk_spark_fn_method_storage_delete_cached_item(
405
439
  ptr: bigint,
406
440
  key: Uint8Array
@@ -463,6 +497,22 @@ interface NativeModuleInterface {
463
497
  ptr: bigint,
464
498
  metadata: Uint8Array
465
499
  ): bigint;
500
+ ubrn_uniffi_breez_sdk_spark_fn_method_storage_list_contacts(
501
+ ptr: bigint,
502
+ request: Uint8Array
503
+ ): bigint;
504
+ ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_contact(
505
+ ptr: bigint,
506
+ id: Uint8Array
507
+ ): bigint;
508
+ ubrn_uniffi_breez_sdk_spark_fn_method_storage_insert_contact(
509
+ ptr: bigint,
510
+ contact: Uint8Array
511
+ ): bigint;
512
+ ubrn_uniffi_breez_sdk_spark_fn_method_storage_delete_contact(
513
+ ptr: bigint,
514
+ id: Uint8Array
515
+ ): bigint;
466
516
  ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_outgoing_change(
467
517
  ptr: bigint,
468
518
  record: Uint8Array
@@ -532,6 +582,12 @@ interface NativeModuleInterface {
532
582
  ptr: bigint,
533
583
  request: Uint8Array
534
584
  ): bigint;
585
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
586
+ vtable: UniffiVTableCallbackInterfaceEventListener
587
+ ): void;
588
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
589
+ vtable: UniffiVTableCallbackInterfaceLogger
590
+ ): void;
535
591
  ubrn_uniffi_breez_sdk_spark_fn_func_connect(request: Uint8Array): bigint;
536
592
  ubrn_uniffi_breez_sdk_spark_fn_func_connect_with_signer(
537
593
  request: Uint8Array
@@ -708,6 +764,7 @@ interface NativeModuleInterface {
708
764
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex(): number;
709
765
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction(): number;
710
766
  ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees(): number;
767
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact(): number;
711
768
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener(): number;
712
769
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin(): number;
713
770
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization(): number;
@@ -715,6 +772,7 @@ interface NativeModuleInterface {
715
772
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message(): number;
716
773
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit(): number;
717
774
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment(): number;
775
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact(): number;
718
776
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address(): number;
719
777
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect(): number;
720
778
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits(): number;
@@ -725,6 +783,7 @@ interface NativeModuleInterface {
725
783
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer(): number;
726
784
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata(): number;
727
785
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings(): number;
786
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts(): number;
728
787
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies(): number;
729
788
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates(): number;
730
789
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments(): number;
@@ -744,6 +803,7 @@ interface NativeModuleInterface {
744
803
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message(): number;
745
804
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization(): number;
746
805
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(): number;
806
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact(): number;
747
807
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings(): number;
748
808
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key(): number;
749
809
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key(): number;
@@ -794,6 +854,10 @@ interface NativeModuleInterface {
794
854
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits(): number;
795
855
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit(): number;
796
856
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata(): number;
857
+ ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts(): number;
858
+ ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact(): number;
859
+ ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact(): number;
860
+ ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact(): number;
797
861
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change(): number;
798
862
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync(): number;
799
863
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes(): number;
@@ -814,30 +878,6 @@ interface NativeModuleInterface {
814
878
  ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event(): number;
815
879
  ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log(): number;
816
880
  ubrn_ffi_breez_sdk_spark_uniffi_contract_version(): number;
817
- ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_eventlistener(
818
- vtable: UniffiVTableCallbackInterfaceEventListener
819
- ): void;
820
- ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_logger(
821
- vtable: UniffiVTableCallbackInterfaceLogger
822
- ): void;
823
- ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
824
- vtable: UniffiVTableCallbackInterfaceBitcoinChainService
825
- ): void;
826
- ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigner(
827
- vtable: UniffiVTableCallbackInterfaceExternalSigner
828
- ): void;
829
- ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
830
- vtable: UniffiVTableCallbackInterfaceFiatService
831
- ): void;
832
- ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
833
- vtable: UniffiVTableCallbackInterfacePaymentObserver
834
- ): void;
835
- ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
836
- vtable: UniffiVTableCallbackInterfaceRestClient
837
- ): void;
838
- ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
839
- vtable: UniffiVTableCallbackInterfaceStorage
840
- ): void;
841
881
  ubrn_uniffi_internal_fn_method_bitcoinchainservice_ffi__bless_pointer(
842
882
  pointer: bigint,
843
883
  uniffi_out_err: UniffiRustCallStatus
@@ -1004,7 +1044,7 @@ type UniffiCallbackInterfaceEventListenerMethod0 = (
1004
1044
  event: Uint8Array,
1005
1045
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1006
1046
  uniffiCallbackData: bigint
1007
- ) => UniffiResult<UniffiForeignFuture>;
1047
+ ) => UniffiForeignFuture;
1008
1048
  type UniffiCallbackInterfaceLoggerMethod0 = (
1009
1049
  uniffiHandle: bigint,
1010
1050
  l: Uint8Array
@@ -1014,30 +1054,30 @@ type UniffiCallbackInterfaceBitcoinChainServiceMethod0 = (
1014
1054
  address: Uint8Array,
1015
1055
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1016
1056
  uniffiCallbackData: bigint
1017
- ) => UniffiResult<UniffiForeignFuture>;
1057
+ ) => UniffiForeignFuture;
1018
1058
  type UniffiCallbackInterfaceBitcoinChainServiceMethod1 = (
1019
1059
  uniffiHandle: bigint,
1020
1060
  txid: Uint8Array,
1021
1061
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1022
1062
  uniffiCallbackData: bigint
1023
- ) => UniffiResult<UniffiForeignFuture>;
1063
+ ) => UniffiForeignFuture;
1024
1064
  type UniffiCallbackInterfaceBitcoinChainServiceMethod2 = (
1025
1065
  uniffiHandle: bigint,
1026
1066
  txid: Uint8Array,
1027
1067
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1028
1068
  uniffiCallbackData: bigint
1029
- ) => UniffiResult<UniffiForeignFuture>;
1069
+ ) => UniffiForeignFuture;
1030
1070
  type UniffiCallbackInterfaceBitcoinChainServiceMethod3 = (
1031
1071
  uniffiHandle: bigint,
1032
1072
  tx: Uint8Array,
1033
1073
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1034
1074
  uniffiCallbackData: bigint
1035
- ) => UniffiResult<UniffiForeignFuture>;
1075
+ ) => UniffiForeignFuture;
1036
1076
  type UniffiCallbackInterfaceBitcoinChainServiceMethod4 = (
1037
1077
  uniffiHandle: bigint,
1038
1078
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1039
1079
  uniffiCallbackData: bigint
1040
- ) => UniffiResult<UniffiForeignFuture>;
1080
+ ) => UniffiForeignFuture;
1041
1081
  type UniffiCallbackInterfaceExternalSignerMethod0 = (
1042
1082
  uniffiHandle: bigint
1043
1083
  ) => UniffiResult<Uint8Array>;
@@ -1046,90 +1086,90 @@ type UniffiCallbackInterfaceExternalSignerMethod1 = (
1046
1086
  path: Uint8Array,
1047
1087
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1048
1088
  uniffiCallbackData: bigint
1049
- ) => UniffiResult<UniffiForeignFuture>;
1089
+ ) => UniffiForeignFuture;
1050
1090
  type UniffiCallbackInterfaceExternalSignerMethod2 = (
1051
1091
  uniffiHandle: bigint,
1052
1092
  message: Uint8Array,
1053
1093
  path: Uint8Array,
1054
1094
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1055
1095
  uniffiCallbackData: bigint
1056
- ) => UniffiResult<UniffiForeignFuture>;
1096
+ ) => UniffiForeignFuture;
1057
1097
  type UniffiCallbackInterfaceExternalSignerMethod3 = (
1058
1098
  uniffiHandle: bigint,
1059
1099
  message: Uint8Array,
1060
1100
  path: Uint8Array,
1061
1101
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1062
1102
  uniffiCallbackData: bigint
1063
- ) => UniffiResult<UniffiForeignFuture>;
1103
+ ) => UniffiForeignFuture;
1064
1104
  type UniffiCallbackInterfaceExternalSignerMethod4 = (
1065
1105
  uniffiHandle: bigint,
1066
1106
  message: Uint8Array,
1067
1107
  path: Uint8Array,
1068
1108
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1069
1109
  uniffiCallbackData: bigint
1070
- ) => UniffiResult<UniffiForeignFuture>;
1110
+ ) => UniffiForeignFuture;
1071
1111
  type UniffiCallbackInterfaceExternalSignerMethod5 = (
1072
1112
  uniffiHandle: bigint,
1073
1113
  message: Uint8Array,
1074
1114
  path: Uint8Array,
1075
1115
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1076
1116
  uniffiCallbackData: bigint
1077
- ) => UniffiResult<UniffiForeignFuture>;
1117
+ ) => UniffiForeignFuture;
1078
1118
  type UniffiCallbackInterfaceExternalSignerMethod6 = (
1079
1119
  uniffiHandle: bigint,
1080
1120
  hash: Uint8Array,
1081
1121
  path: Uint8Array,
1082
1122
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1083
1123
  uniffiCallbackData: bigint
1084
- ) => UniffiResult<UniffiForeignFuture>;
1124
+ ) => UniffiForeignFuture;
1085
1125
  type UniffiCallbackInterfaceExternalSignerMethod7 = (
1086
1126
  uniffiHandle: bigint,
1087
1127
  message: Uint8Array,
1088
1128
  path: Uint8Array,
1089
1129
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1090
1130
  uniffiCallbackData: bigint
1091
- ) => UniffiResult<UniffiForeignFuture>;
1131
+ ) => UniffiForeignFuture;
1092
1132
  type UniffiCallbackInterfaceExternalSignerMethod8 = (
1093
1133
  uniffiHandle: bigint,
1094
1134
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1095
1135
  uniffiCallbackData: bigint
1096
- ) => UniffiResult<UniffiForeignFuture>;
1136
+ ) => UniffiForeignFuture;
1097
1137
  type UniffiCallbackInterfaceExternalSignerMethod9 = (
1098
1138
  uniffiHandle: bigint,
1099
1139
  id: Uint8Array,
1100
1140
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1101
1141
  uniffiCallbackData: bigint
1102
- ) => UniffiResult<UniffiForeignFuture>;
1142
+ ) => UniffiForeignFuture;
1103
1143
  type UniffiCallbackInterfaceExternalSignerMethod10 = (
1104
1144
  uniffiHandle: bigint,
1105
1145
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1106
1146
  uniffiCallbackData: bigint
1107
- ) => UniffiResult<UniffiForeignFuture>;
1147
+ ) => UniffiForeignFuture;
1108
1148
  type UniffiCallbackInterfaceExternalSignerMethod11 = (
1109
1149
  uniffiHandle: bigint,
1110
1150
  index: number,
1111
1151
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1112
1152
  uniffiCallbackData: bigint
1113
- ) => UniffiResult<UniffiForeignFuture>;
1153
+ ) => UniffiForeignFuture;
1114
1154
  type UniffiCallbackInterfaceExternalSignerMethod12 = (
1115
1155
  uniffiHandle: bigint,
1116
1156
  index: number,
1117
1157
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1118
1158
  uniffiCallbackData: bigint
1119
- ) => UniffiResult<UniffiForeignFuture>;
1159
+ ) => UniffiForeignFuture;
1120
1160
  type UniffiCallbackInterfaceExternalSignerMethod13 = (
1121
1161
  uniffiHandle: bigint,
1122
1162
  index: number,
1123
1163
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1124
1164
  uniffiCallbackData: bigint
1125
- ) => UniffiResult<UniffiForeignFuture>;
1165
+ ) => UniffiForeignFuture;
1126
1166
  type UniffiCallbackInterfaceExternalSignerMethod14 = (
1127
1167
  uniffiHandle: bigint,
1128
1168
  signingKey: Uint8Array,
1129
1169
  newSigningKey: Uint8Array,
1130
1170
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1131
1171
  uniffiCallbackData: bigint
1132
- ) => UniffiResult<UniffiForeignFuture>;
1172
+ ) => UniffiForeignFuture;
1133
1173
  type UniffiCallbackInterfaceExternalSignerMethod15 = (
1134
1174
  uniffiHandle: bigint,
1135
1175
  secret: Uint8Array,
@@ -1137,55 +1177,55 @@ type UniffiCallbackInterfaceExternalSignerMethod15 = (
1137
1177
  numShares: number,
1138
1178
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1139
1179
  uniffiCallbackData: bigint
1140
- ) => UniffiResult<UniffiForeignFuture>;
1180
+ ) => UniffiForeignFuture;
1141
1181
  type UniffiCallbackInterfaceExternalSignerMethod16 = (
1142
1182
  uniffiHandle: bigint,
1143
1183
  encryptedSecret: Uint8Array,
1144
1184
  receiverPublicKey: Uint8Array,
1145
1185
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1146
1186
  uniffiCallbackData: bigint
1147
- ) => UniffiResult<UniffiForeignFuture>;
1187
+ ) => UniffiForeignFuture;
1148
1188
  type UniffiCallbackInterfaceExternalSignerMethod17 = (
1149
1189
  uniffiHandle: bigint,
1150
1190
  secret: Uint8Array,
1151
1191
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1152
1192
  uniffiCallbackData: bigint
1153
- ) => UniffiResult<UniffiForeignFuture>;
1193
+ ) => UniffiForeignFuture;
1154
1194
  type UniffiCallbackInterfaceExternalSignerMethod18 = (
1155
1195
  uniffiHandle: bigint,
1156
1196
  request: Uint8Array,
1157
1197
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1158
1198
  uniffiCallbackData: bigint
1159
- ) => UniffiResult<UniffiForeignFuture>;
1199
+ ) => UniffiForeignFuture;
1160
1200
  type UniffiCallbackInterfaceExternalSignerMethod19 = (
1161
1201
  uniffiHandle: bigint,
1162
1202
  request: Uint8Array,
1163
1203
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1164
1204
  uniffiCallbackData: bigint
1165
- ) => UniffiResult<UniffiForeignFuture>;
1205
+ ) => UniffiForeignFuture;
1166
1206
  type UniffiCallbackInterfaceFiatServiceMethod0 = (
1167
1207
  uniffiHandle: bigint,
1168
1208
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1169
1209
  uniffiCallbackData: bigint
1170
- ) => UniffiResult<UniffiForeignFuture>;
1210
+ ) => UniffiForeignFuture;
1171
1211
  type UniffiCallbackInterfaceFiatServiceMethod1 = (
1172
1212
  uniffiHandle: bigint,
1173
1213
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1174
1214
  uniffiCallbackData: bigint
1175
- ) => UniffiResult<UniffiForeignFuture>;
1215
+ ) => UniffiForeignFuture;
1176
1216
  type UniffiCallbackInterfacePaymentObserverMethod0 = (
1177
1217
  uniffiHandle: bigint,
1178
1218
  payments: Uint8Array,
1179
1219
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1180
1220
  uniffiCallbackData: bigint
1181
- ) => UniffiResult<UniffiForeignFuture>;
1221
+ ) => UniffiForeignFuture;
1182
1222
  type UniffiCallbackInterfaceRestClientMethod0 = (
1183
1223
  uniffiHandle: bigint,
1184
1224
  url: Uint8Array,
1185
1225
  headers: Uint8Array,
1186
1226
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1187
1227
  uniffiCallbackData: bigint
1188
- ) => UniffiResult<UniffiForeignFuture>;
1228
+ ) => UniffiForeignFuture;
1189
1229
  type UniffiCallbackInterfaceRestClientMethod1 = (
1190
1230
  uniffiHandle: bigint,
1191
1231
  url: Uint8Array,
@@ -1193,7 +1233,7 @@ type UniffiCallbackInterfaceRestClientMethod1 = (
1193
1233
  body: Uint8Array,
1194
1234
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1195
1235
  uniffiCallbackData: bigint
1196
- ) => UniffiResult<UniffiForeignFuture>;
1236
+ ) => UniffiForeignFuture;
1197
1237
  type UniffiCallbackInterfaceRestClientMethod2 = (
1198
1238
  uniffiHandle: bigint,
1199
1239
  url: Uint8Array,
@@ -1201,63 +1241,63 @@ type UniffiCallbackInterfaceRestClientMethod2 = (
1201
1241
  body: Uint8Array,
1202
1242
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1203
1243
  uniffiCallbackData: bigint
1204
- ) => UniffiResult<UniffiForeignFuture>;
1244
+ ) => UniffiForeignFuture;
1205
1245
  type UniffiCallbackInterfaceStorageMethod0 = (
1206
1246
  uniffiHandle: bigint,
1207
1247
  key: Uint8Array,
1208
1248
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1209
1249
  uniffiCallbackData: bigint
1210
- ) => UniffiResult<UniffiForeignFuture>;
1250
+ ) => UniffiForeignFuture;
1211
1251
  type UniffiCallbackInterfaceStorageMethod1 = (
1212
1252
  uniffiHandle: bigint,
1213
1253
  key: Uint8Array,
1214
1254
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1215
1255
  uniffiCallbackData: bigint
1216
- ) => UniffiResult<UniffiForeignFuture>;
1256
+ ) => UniffiForeignFuture;
1217
1257
  type UniffiCallbackInterfaceStorageMethod2 = (
1218
1258
  uniffiHandle: bigint,
1219
1259
  key: Uint8Array,
1220
1260
  value: Uint8Array,
1221
1261
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1222
1262
  uniffiCallbackData: bigint
1223
- ) => UniffiResult<UniffiForeignFuture>;
1263
+ ) => UniffiForeignFuture;
1224
1264
  type UniffiCallbackInterfaceStorageMethod3 = (
1225
1265
  uniffiHandle: bigint,
1226
1266
  request: Uint8Array,
1227
1267
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1228
1268
  uniffiCallbackData: bigint
1229
- ) => UniffiResult<UniffiForeignFuture>;
1269
+ ) => UniffiForeignFuture;
1230
1270
  type UniffiCallbackInterfaceStorageMethod4 = (
1231
1271
  uniffiHandle: bigint,
1232
1272
  payment: Uint8Array,
1233
1273
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1234
1274
  uniffiCallbackData: bigint
1235
- ) => UniffiResult<UniffiForeignFuture>;
1275
+ ) => UniffiForeignFuture;
1236
1276
  type UniffiCallbackInterfaceStorageMethod5 = (
1237
1277
  uniffiHandle: bigint,
1238
1278
  paymentId: Uint8Array,
1239
1279
  metadata: Uint8Array,
1240
1280
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1241
1281
  uniffiCallbackData: bigint
1242
- ) => UniffiResult<UniffiForeignFuture>;
1282
+ ) => UniffiForeignFuture;
1243
1283
  type UniffiCallbackInterfaceStorageMethod6 = (
1244
1284
  uniffiHandle: bigint,
1245
1285
  id: Uint8Array,
1246
1286
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1247
1287
  uniffiCallbackData: bigint
1248
- ) => UniffiResult<UniffiForeignFuture>;
1288
+ ) => UniffiForeignFuture;
1249
1289
  type UniffiCallbackInterfaceStorageMethod7 = (
1250
1290
  uniffiHandle: bigint,
1251
1291
  invoice: Uint8Array,
1252
1292
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1253
1293
  uniffiCallbackData: bigint
1254
- ) => UniffiResult<UniffiForeignFuture>;
1294
+ ) => UniffiForeignFuture;
1255
1295
  type UniffiCallbackInterfaceStorageMethod8 = (
1256
1296
  uniffiHandle: bigint,
1257
1297
  parentPaymentIds: Uint8Array,
1258
1298
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1259
1299
  uniffiCallbackData: bigint
1260
- ) => UniffiResult<UniffiForeignFuture>;
1300
+ ) => UniffiForeignFuture;
1261
1301
  type UniffiCallbackInterfaceStorageMethod9 = (
1262
1302
  uniffiHandle: bigint,
1263
1303
  txid: Uint8Array,
@@ -1265,19 +1305,19 @@ type UniffiCallbackInterfaceStorageMethod9 = (
1265
1305
  amountSats: bigint,
1266
1306
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1267
1307
  uniffiCallbackData: bigint
1268
- ) => UniffiResult<UniffiForeignFuture>;
1308
+ ) => UniffiForeignFuture;
1269
1309
  type UniffiCallbackInterfaceStorageMethod10 = (
1270
1310
  uniffiHandle: bigint,
1271
1311
  txid: Uint8Array,
1272
1312
  vout: number,
1273
1313
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1274
1314
  uniffiCallbackData: bigint
1275
- ) => UniffiResult<UniffiForeignFuture>;
1315
+ ) => UniffiForeignFuture;
1276
1316
  type UniffiCallbackInterfaceStorageMethod11 = (
1277
1317
  uniffiHandle: bigint,
1278
1318
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1279
1319
  uniffiCallbackData: bigint
1280
- ) => UniffiResult<UniffiForeignFuture>;
1320
+ ) => UniffiForeignFuture;
1281
1321
  type UniffiCallbackInterfaceStorageMethod12 = (
1282
1322
  uniffiHandle: bigint,
1283
1323
  txid: Uint8Array,
@@ -1285,66 +1325,90 @@ type UniffiCallbackInterfaceStorageMethod12 = (
1285
1325
  payload: Uint8Array,
1286
1326
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1287
1327
  uniffiCallbackData: bigint
1288
- ) => UniffiResult<UniffiForeignFuture>;
1328
+ ) => UniffiForeignFuture;
1289
1329
  type UniffiCallbackInterfaceStorageMethod13 = (
1290
1330
  uniffiHandle: bigint,
1291
1331
  metadata: Uint8Array,
1292
1332
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1293
1333
  uniffiCallbackData: bigint
1294
- ) => UniffiResult<UniffiForeignFuture>;
1334
+ ) => UniffiForeignFuture;
1295
1335
  type UniffiCallbackInterfaceStorageMethod14 = (
1336
+ uniffiHandle: bigint,
1337
+ request: Uint8Array,
1338
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1339
+ uniffiCallbackData: bigint
1340
+ ) => UniffiForeignFuture;
1341
+ type UniffiCallbackInterfaceStorageMethod15 = (
1342
+ uniffiHandle: bigint,
1343
+ id: Uint8Array,
1344
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1345
+ uniffiCallbackData: bigint
1346
+ ) => UniffiForeignFuture;
1347
+ type UniffiCallbackInterfaceStorageMethod16 = (
1348
+ uniffiHandle: bigint,
1349
+ contact: Uint8Array,
1350
+ uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1351
+ uniffiCallbackData: bigint
1352
+ ) => UniffiForeignFuture;
1353
+ type UniffiCallbackInterfaceStorageMethod17 = (
1354
+ uniffiHandle: bigint,
1355
+ id: Uint8Array,
1356
+ uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1357
+ uniffiCallbackData: bigint
1358
+ ) => UniffiForeignFuture;
1359
+ type UniffiCallbackInterfaceStorageMethod18 = (
1296
1360
  uniffiHandle: bigint,
1297
1361
  record: Uint8Array,
1298
1362
  uniffiFutureCallback: UniffiForeignFutureCompleteU64,
1299
1363
  uniffiCallbackData: bigint
1300
- ) => UniffiResult<UniffiForeignFuture>;
1301
- type UniffiCallbackInterfaceStorageMethod15 = (
1364
+ ) => UniffiForeignFuture;
1365
+ type UniffiCallbackInterfaceStorageMethod19 = (
1302
1366
  uniffiHandle: bigint,
1303
1367
  record: Uint8Array,
1304
1368
  localRevision: bigint,
1305
1369
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1306
1370
  uniffiCallbackData: bigint
1307
- ) => UniffiResult<UniffiForeignFuture>;
1308
- type UniffiCallbackInterfaceStorageMethod16 = (
1371
+ ) => UniffiForeignFuture;
1372
+ type UniffiCallbackInterfaceStorageMethod20 = (
1309
1373
  uniffiHandle: bigint,
1310
1374
  limit: number,
1311
1375
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1312
1376
  uniffiCallbackData: bigint
1313
- ) => UniffiResult<UniffiForeignFuture>;
1314
- type UniffiCallbackInterfaceStorageMethod17 = (
1377
+ ) => UniffiForeignFuture;
1378
+ type UniffiCallbackInterfaceStorageMethod21 = (
1315
1379
  uniffiHandle: bigint,
1316
1380
  uniffiFutureCallback: UniffiForeignFutureCompleteU64,
1317
1381
  uniffiCallbackData: bigint
1318
- ) => UniffiResult<UniffiForeignFuture>;
1319
- type UniffiCallbackInterfaceStorageMethod18 = (
1382
+ ) => UniffiForeignFuture;
1383
+ type UniffiCallbackInterfaceStorageMethod22 = (
1320
1384
  uniffiHandle: bigint,
1321
1385
  records: Uint8Array,
1322
1386
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1323
1387
  uniffiCallbackData: bigint
1324
- ) => UniffiResult<UniffiForeignFuture>;
1325
- type UniffiCallbackInterfaceStorageMethod19 = (
1388
+ ) => UniffiForeignFuture;
1389
+ type UniffiCallbackInterfaceStorageMethod23 = (
1326
1390
  uniffiHandle: bigint,
1327
1391
  record: Uint8Array,
1328
1392
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1329
1393
  uniffiCallbackData: bigint
1330
- ) => UniffiResult<UniffiForeignFuture>;
1331
- type UniffiCallbackInterfaceStorageMethod20 = (
1394
+ ) => UniffiForeignFuture;
1395
+ type UniffiCallbackInterfaceStorageMethod24 = (
1332
1396
  uniffiHandle: bigint,
1333
1397
  limit: number,
1334
1398
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1335
1399
  uniffiCallbackData: bigint
1336
- ) => UniffiResult<UniffiForeignFuture>;
1337
- type UniffiCallbackInterfaceStorageMethod21 = (
1400
+ ) => UniffiForeignFuture;
1401
+ type UniffiCallbackInterfaceStorageMethod25 = (
1338
1402
  uniffiHandle: bigint,
1339
1403
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1340
1404
  uniffiCallbackData: bigint
1341
- ) => UniffiResult<UniffiForeignFuture>;
1342
- type UniffiCallbackInterfaceStorageMethod22 = (
1405
+ ) => UniffiForeignFuture;
1406
+ type UniffiCallbackInterfaceStorageMethod26 = (
1343
1407
  uniffiHandle: bigint,
1344
1408
  record: Uint8Array,
1345
1409
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1346
1410
  uniffiCallbackData: bigint
1347
- ) => UniffiResult<UniffiForeignFuture>;
1411
+ ) => UniffiForeignFuture;
1348
1412
  export type UniffiVTableCallbackInterfaceEventListener = {
1349
1413
  onEvent: UniffiCallbackInterfaceEventListenerMethod0;
1350
1414
  uniffiFree: UniffiCallbackInterfaceFree;
@@ -1414,15 +1478,19 @@ export type UniffiVTableCallbackInterfaceStorage = {
1414
1478
  listDeposits: UniffiCallbackInterfaceStorageMethod11;
1415
1479
  updateDeposit: UniffiCallbackInterfaceStorageMethod12;
1416
1480
  setLnurlMetadata: UniffiCallbackInterfaceStorageMethod13;
1417
- addOutgoingChange: UniffiCallbackInterfaceStorageMethod14;
1418
- completeOutgoingSync: UniffiCallbackInterfaceStorageMethod15;
1419
- getPendingOutgoingChanges: UniffiCallbackInterfaceStorageMethod16;
1420
- getLastRevision: UniffiCallbackInterfaceStorageMethod17;
1421
- insertIncomingRecords: UniffiCallbackInterfaceStorageMethod18;
1422
- deleteIncomingRecord: UniffiCallbackInterfaceStorageMethod19;
1423
- getIncomingRecords: UniffiCallbackInterfaceStorageMethod20;
1424
- getLatestOutgoingChange: UniffiCallbackInterfaceStorageMethod21;
1425
- updateRecordFromIncoming: UniffiCallbackInterfaceStorageMethod22;
1481
+ listContacts: UniffiCallbackInterfaceStorageMethod14;
1482
+ getContact: UniffiCallbackInterfaceStorageMethod15;
1483
+ insertContact: UniffiCallbackInterfaceStorageMethod16;
1484
+ deleteContact: UniffiCallbackInterfaceStorageMethod17;
1485
+ addOutgoingChange: UniffiCallbackInterfaceStorageMethod18;
1486
+ completeOutgoingSync: UniffiCallbackInterfaceStorageMethod19;
1487
+ getPendingOutgoingChanges: UniffiCallbackInterfaceStorageMethod20;
1488
+ getLastRevision: UniffiCallbackInterfaceStorageMethod21;
1489
+ insertIncomingRecords: UniffiCallbackInterfaceStorageMethod22;
1490
+ deleteIncomingRecord: UniffiCallbackInterfaceStorageMethod23;
1491
+ getIncomingRecords: UniffiCallbackInterfaceStorageMethod24;
1492
+ getLatestOutgoingChange: UniffiCallbackInterfaceStorageMethod25;
1493
+ updateRecordFromIncoming: UniffiCallbackInterfaceStorageMethod26;
1426
1494
  uniffiFree: UniffiCallbackInterfaceFree;
1427
1495
  };
1428
1496