@breeztech/breez-sdk-spark-react-native 0.2.5-dev2 → 0.2.6
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 +452 -45
- package/cpp/generated/breez_sdk_spark.hpp +36 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +338 -12
- 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 +337 -11
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +21 -9
- 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 +196 -2
- 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 +21 -9
- 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 +196 -2
- 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 +47 -10
- package/src/generated/breez_sdk_spark.ts +661 -23
|
@@ -71,9 +71,8 @@ interface NativeModuleInterface {
|
|
|
71
71
|
ptr: bigint
|
|
72
72
|
): bigint;
|
|
73
73
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect(
|
|
74
|
-
ptr: bigint
|
|
75
|
-
|
|
76
|
-
): void;
|
|
74
|
+
ptr: bigint
|
|
75
|
+
): bigint;
|
|
77
76
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_info(
|
|
78
77
|
ptr: bigint,
|
|
79
78
|
request: Uint8Array
|
|
@@ -136,6 +135,19 @@ interface NativeModuleInterface {
|
|
|
136
135
|
ptr: bigint,
|
|
137
136
|
id: Uint8Array
|
|
138
137
|
): bigint;
|
|
138
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_bitcoin_address(
|
|
139
|
+
ptr: bigint,
|
|
140
|
+
address: Uint8Array,
|
|
141
|
+
feeQuote: Uint8Array,
|
|
142
|
+
request: Uint8Array
|
|
143
|
+
): bigint;
|
|
144
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_bolt11_invoice(
|
|
145
|
+
ptr: bigint,
|
|
146
|
+
invoiceDetails: Uint8Array,
|
|
147
|
+
sparkTransferFeeSats: Uint8Array,
|
|
148
|
+
lightningFeeSats: bigint,
|
|
149
|
+
request: Uint8Array
|
|
150
|
+
): bigint;
|
|
139
151
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
140
152
|
ptr: bigint,
|
|
141
153
|
request: Uint8Array
|
|
@@ -145,10 +157,19 @@ interface NativeModuleInterface {
|
|
|
145
157
|
request: Uint8Array,
|
|
146
158
|
suppressPaymentEvent: number
|
|
147
159
|
): bigint;
|
|
160
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_spark_address(
|
|
161
|
+
ptr: bigint,
|
|
162
|
+
address: Uint8Array,
|
|
163
|
+
request: Uint8Array
|
|
164
|
+
): bigint;
|
|
148
165
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
|
|
149
166
|
ptr: bigint,
|
|
150
167
|
request: Uint8Array
|
|
151
168
|
): bigint;
|
|
169
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_wait_for_payment(
|
|
170
|
+
ptr: bigint,
|
|
171
|
+
request: Uint8Array
|
|
172
|
+
): bigint;
|
|
152
173
|
ubrn_uniffi_breez_sdk_spark_fn_clone_sdkbuilder(
|
|
153
174
|
ptr: bigint,
|
|
154
175
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -226,6 +247,10 @@ interface NativeModuleInterface {
|
|
|
226
247
|
ptr: bigint,
|
|
227
248
|
id: Uint8Array
|
|
228
249
|
): bigint;
|
|
250
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_payment_by_invoice(
|
|
251
|
+
ptr: bigint,
|
|
252
|
+
invoice: Uint8Array
|
|
253
|
+
): bigint;
|
|
229
254
|
ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_deposit(
|
|
230
255
|
ptr: bigint,
|
|
231
256
|
txid: Uint8Array,
|
|
@@ -435,9 +460,13 @@ interface NativeModuleInterface {
|
|
|
435
460
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit(): number;
|
|
436
461
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address(): number;
|
|
437
462
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener(): number;
|
|
463
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bitcoin_address(): number;
|
|
464
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bolt11_invoice(): number;
|
|
438
465
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(): number;
|
|
439
466
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment_internal(): number;
|
|
467
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_spark_address(): number;
|
|
440
468
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(): number;
|
|
469
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment(): number;
|
|
441
470
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build(): number;
|
|
442
471
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service(): number;
|
|
443
472
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service(): number;
|
|
@@ -451,6 +480,7 @@ interface NativeModuleInterface {
|
|
|
451
480
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment(): number;
|
|
452
481
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata(): number;
|
|
453
482
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id(): number;
|
|
483
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice(): number;
|
|
454
484
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit(): number;
|
|
455
485
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit(): number;
|
|
456
486
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits(): number;
|
|
@@ -692,6 +722,12 @@ type UniffiCallbackInterfaceStorageMethod6 = (
|
|
|
692
722
|
uniffiCallbackData: bigint
|
|
693
723
|
) => UniffiResult<UniffiForeignFuture>;
|
|
694
724
|
type UniffiCallbackInterfaceStorageMethod7 = (
|
|
725
|
+
uniffiHandle: bigint,
|
|
726
|
+
invoice: Uint8Array,
|
|
727
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
728
|
+
uniffiCallbackData: bigint
|
|
729
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
730
|
+
type UniffiCallbackInterfaceStorageMethod8 = (
|
|
695
731
|
uniffiHandle: bigint,
|
|
696
732
|
txid: Uint8Array,
|
|
697
733
|
vout: number,
|
|
@@ -699,19 +735,19 @@ type UniffiCallbackInterfaceStorageMethod7 = (
|
|
|
699
735
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
700
736
|
uniffiCallbackData: bigint
|
|
701
737
|
) => UniffiResult<UniffiForeignFuture>;
|
|
702
|
-
type
|
|
738
|
+
type UniffiCallbackInterfaceStorageMethod9 = (
|
|
703
739
|
uniffiHandle: bigint,
|
|
704
740
|
txid: Uint8Array,
|
|
705
741
|
vout: number,
|
|
706
742
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
707
743
|
uniffiCallbackData: bigint
|
|
708
744
|
) => UniffiResult<UniffiForeignFuture>;
|
|
709
|
-
type
|
|
745
|
+
type UniffiCallbackInterfaceStorageMethod10 = (
|
|
710
746
|
uniffiHandle: bigint,
|
|
711
747
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
712
748
|
uniffiCallbackData: bigint
|
|
713
749
|
) => UniffiResult<UniffiForeignFuture>;
|
|
714
|
-
type
|
|
750
|
+
type UniffiCallbackInterfaceStorageMethod11 = (
|
|
715
751
|
uniffiHandle: bigint,
|
|
716
752
|
txid: Uint8Array,
|
|
717
753
|
vout: number,
|
|
@@ -742,10 +778,11 @@ export type UniffiVTableCallbackInterfaceStorage = {
|
|
|
742
778
|
insertPayment: UniffiCallbackInterfaceStorageMethod4;
|
|
743
779
|
setPaymentMetadata: UniffiCallbackInterfaceStorageMethod5;
|
|
744
780
|
getPaymentById: UniffiCallbackInterfaceStorageMethod6;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
781
|
+
getPaymentByInvoice: UniffiCallbackInterfaceStorageMethod7;
|
|
782
|
+
addDeposit: UniffiCallbackInterfaceStorageMethod8;
|
|
783
|
+
deleteDeposit: UniffiCallbackInterfaceStorageMethod9;
|
|
784
|
+
listDeposits: UniffiCallbackInterfaceStorageMethod10;
|
|
785
|
+
updateDeposit: UniffiCallbackInterfaceStorageMethod11;
|
|
749
786
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
750
787
|
};
|
|
751
788
|
|