@breeztech/breez-sdk-spark-react-native 0.2.5-dev1 → 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 +500 -94
- 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 +405 -40
- 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 +405 -40
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +25 -13
- 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 +220 -10
- 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 +25 -13
- 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 +220 -10
- 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 +57 -21
- package/src/generated/breez_sdk_spark.ts +806 -74
|
@@ -57,9 +57,8 @@ interface NativeModuleInterface {
|
|
|
57
57
|
): void;
|
|
58
58
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(
|
|
59
59
|
ptr: bigint,
|
|
60
|
-
listener: bigint
|
|
61
|
-
|
|
62
|
-
): Uint8Array;
|
|
60
|
+
listener: bigint
|
|
61
|
+
): bigint;
|
|
63
62
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available(
|
|
64
63
|
ptr: bigint,
|
|
65
64
|
req: Uint8Array
|
|
@@ -72,9 +71,8 @@ interface NativeModuleInterface {
|
|
|
72
71
|
ptr: bigint
|
|
73
72
|
): bigint;
|
|
74
73
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect(
|
|
75
|
-
ptr: bigint
|
|
76
|
-
|
|
77
|
-
): void;
|
|
74
|
+
ptr: bigint
|
|
75
|
+
): bigint;
|
|
78
76
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_info(
|
|
79
77
|
ptr: bigint,
|
|
80
78
|
request: Uint8Array
|
|
@@ -135,9 +133,21 @@ interface NativeModuleInterface {
|
|
|
135
133
|
): bigint;
|
|
136
134
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(
|
|
137
135
|
ptr: bigint,
|
|
138
|
-
id: Uint8Array
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
id: Uint8Array
|
|
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;
|
|
141
151
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
142
152
|
ptr: bigint,
|
|
143
153
|
request: Uint8Array
|
|
@@ -147,11 +157,19 @@ interface NativeModuleInterface {
|
|
|
147
157
|
request: Uint8Array,
|
|
148
158
|
suppressPaymentEvent: number
|
|
149
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;
|
|
150
165
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
|
|
151
166
|
ptr: bigint,
|
|
152
|
-
request: Uint8Array
|
|
153
|
-
|
|
154
|
-
|
|
167
|
+
request: Uint8Array
|
|
168
|
+
): bigint;
|
|
169
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_wait_for_payment(
|
|
170
|
+
ptr: bigint,
|
|
171
|
+
request: Uint8Array
|
|
172
|
+
): bigint;
|
|
155
173
|
ubrn_uniffi_breez_sdk_spark_fn_clone_sdkbuilder(
|
|
156
174
|
ptr: bigint,
|
|
157
175
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -229,6 +247,10 @@ interface NativeModuleInterface {
|
|
|
229
247
|
ptr: bigint,
|
|
230
248
|
id: Uint8Array
|
|
231
249
|
): bigint;
|
|
250
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_payment_by_invoice(
|
|
251
|
+
ptr: bigint,
|
|
252
|
+
invoice: Uint8Array
|
|
253
|
+
): bigint;
|
|
232
254
|
ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_deposit(
|
|
233
255
|
ptr: bigint,
|
|
234
256
|
txid: Uint8Array,
|
|
@@ -438,9 +460,13 @@ interface NativeModuleInterface {
|
|
|
438
460
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit(): number;
|
|
439
461
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address(): number;
|
|
440
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;
|
|
441
465
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(): number;
|
|
442
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;
|
|
443
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;
|
|
444
470
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build(): number;
|
|
445
471
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service(): number;
|
|
446
472
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service(): number;
|
|
@@ -454,6 +480,7 @@ interface NativeModuleInterface {
|
|
|
454
480
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_payment(): number;
|
|
455
481
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata(): number;
|
|
456
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;
|
|
457
484
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_deposit(): number;
|
|
458
485
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit(): number;
|
|
459
486
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits(): number;
|
|
@@ -617,8 +644,10 @@ export type UniffiForeignFutureCompleteVoid = (
|
|
|
617
644
|
) => void;
|
|
618
645
|
type UniffiCallbackInterfaceEventListenerMethod0 = (
|
|
619
646
|
uniffiHandle: bigint,
|
|
620
|
-
event: Uint8Array
|
|
621
|
-
|
|
647
|
+
event: Uint8Array,
|
|
648
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
649
|
+
uniffiCallbackData: bigint
|
|
650
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
622
651
|
type UniffiCallbackInterfaceLoggerMethod0 = (
|
|
623
652
|
uniffiHandle: bigint,
|
|
624
653
|
l: Uint8Array
|
|
@@ -693,6 +722,12 @@ type UniffiCallbackInterfaceStorageMethod6 = (
|
|
|
693
722
|
uniffiCallbackData: bigint
|
|
694
723
|
) => UniffiResult<UniffiForeignFuture>;
|
|
695
724
|
type UniffiCallbackInterfaceStorageMethod7 = (
|
|
725
|
+
uniffiHandle: bigint,
|
|
726
|
+
invoice: Uint8Array,
|
|
727
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
728
|
+
uniffiCallbackData: bigint
|
|
729
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
730
|
+
type UniffiCallbackInterfaceStorageMethod8 = (
|
|
696
731
|
uniffiHandle: bigint,
|
|
697
732
|
txid: Uint8Array,
|
|
698
733
|
vout: number,
|
|
@@ -700,19 +735,19 @@ type UniffiCallbackInterfaceStorageMethod7 = (
|
|
|
700
735
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
701
736
|
uniffiCallbackData: bigint
|
|
702
737
|
) => UniffiResult<UniffiForeignFuture>;
|
|
703
|
-
type
|
|
738
|
+
type UniffiCallbackInterfaceStorageMethod9 = (
|
|
704
739
|
uniffiHandle: bigint,
|
|
705
740
|
txid: Uint8Array,
|
|
706
741
|
vout: number,
|
|
707
742
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
708
743
|
uniffiCallbackData: bigint
|
|
709
744
|
) => UniffiResult<UniffiForeignFuture>;
|
|
710
|
-
type
|
|
745
|
+
type UniffiCallbackInterfaceStorageMethod10 = (
|
|
711
746
|
uniffiHandle: bigint,
|
|
712
747
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
713
748
|
uniffiCallbackData: bigint
|
|
714
749
|
) => UniffiResult<UniffiForeignFuture>;
|
|
715
|
-
type
|
|
750
|
+
type UniffiCallbackInterfaceStorageMethod11 = (
|
|
716
751
|
uniffiHandle: bigint,
|
|
717
752
|
txid: Uint8Array,
|
|
718
753
|
vout: number,
|
|
@@ -743,10 +778,11 @@ export type UniffiVTableCallbackInterfaceStorage = {
|
|
|
743
778
|
insertPayment: UniffiCallbackInterfaceStorageMethod4;
|
|
744
779
|
setPaymentMetadata: UniffiCallbackInterfaceStorageMethod5;
|
|
745
780
|
getPaymentById: UniffiCallbackInterfaceStorageMethod6;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
781
|
+
getPaymentByInvoice: UniffiCallbackInterfaceStorageMethod7;
|
|
782
|
+
addDeposit: UniffiCallbackInterfaceStorageMethod8;
|
|
783
|
+
deleteDeposit: UniffiCallbackInterfaceStorageMethod9;
|
|
784
|
+
listDeposits: UniffiCallbackInterfaceStorageMethod10;
|
|
785
|
+
updateDeposit: UniffiCallbackInterfaceStorageMethod11;
|
|
750
786
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
751
787
|
};
|
|
752
788
|
|