@breeztech/breez-sdk-spark-react-native 0.4.0-rc2 → 0.4.2
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/android/CMakeLists.txt +0 -1
- package/cpp/breeztech-breez-sdk-spark-react-native.cpp +0 -2
- package/cpp/generated/breez_sdk_spark.cpp +5150 -868
- package/cpp/generated/breez_sdk_spark.hpp +219 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +1365 -7540
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/commonjs/index.js +0 -14
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +1366 -7525
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/index.js +0 -4
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +100 -0
- 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 +6235 -2202
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +0 -3
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +100 -0
- 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 +6235 -2202
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +0 -3
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/breez_sdk_spark-ffi.ts +286 -0
- package/src/generated/breez_sdk_spark.ts +15577 -7501
- package/src/index.tsx +0 -4
- package/cpp/generated/breez_sdk_common.cpp +0 -6758
- package/cpp/generated/breez_sdk_common.hpp +0 -372
- package/lib/commonjs/generated/breez_sdk_common-ffi.js +0 -44
- package/lib/commonjs/generated/breez_sdk_common-ffi.js.map +0 -1
- package/lib/commonjs/generated/breez_sdk_common.js +0 -4993
- package/lib/commonjs/generated/breez_sdk_common.js.map +0 -1
- package/lib/module/generated/breez_sdk_common-ffi.js +0 -43
- package/lib/module/generated/breez_sdk_common-ffi.js.map +0 -1
- package/lib/module/generated/breez_sdk_common.js +0 -4985
- package/lib/module/generated/breez_sdk_common.js.map +0 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts +0 -214
- package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +0 -3720
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +0 -1
- package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts +0 -214
- package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts.map +0 -1
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +0 -3720
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +0 -1
- package/src/generated/breez_sdk_common-ffi.ts +0 -566
- package/src/generated/breez_sdk_common.ts +0 -7412
|
@@ -88,6 +88,10 @@ interface NativeModuleInterface {
|
|
|
88
88
|
ptr: bigint,
|
|
89
89
|
request: Uint8Array
|
|
90
90
|
): bigint;
|
|
91
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_token_issuer(
|
|
92
|
+
ptr: bigint,
|
|
93
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
94
|
+
): bigint;
|
|
91
95
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_tokens_metadata(
|
|
92
96
|
ptr: bigint,
|
|
93
97
|
request: Uint8Array
|
|
@@ -165,6 +169,20 @@ interface NativeModuleInterface {
|
|
|
165
169
|
ptr: bigint,
|
|
166
170
|
request: Uint8Array
|
|
167
171
|
): bigint;
|
|
172
|
+
ubrn_uniffi_breez_sdk_spark_fn_clone_fiatservice(
|
|
173
|
+
ptr: bigint,
|
|
174
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
175
|
+
): bigint;
|
|
176
|
+
ubrn_uniffi_breez_sdk_spark_fn_free_fiatservice(
|
|
177
|
+
ptr: bigint,
|
|
178
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
179
|
+
): void;
|
|
180
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_fiatservice_fetch_fiat_currencies(
|
|
181
|
+
ptr: bigint
|
|
182
|
+
): bigint;
|
|
183
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_fiatservice_fetch_fiat_rates(
|
|
184
|
+
ptr: bigint
|
|
185
|
+
): bigint;
|
|
168
186
|
ubrn_uniffi_breez_sdk_spark_fn_clone_paymentobserver(
|
|
169
187
|
ptr: bigint,
|
|
170
188
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -177,6 +195,31 @@ interface NativeModuleInterface {
|
|
|
177
195
|
ptr: bigint,
|
|
178
196
|
payments: Uint8Array
|
|
179
197
|
): bigint;
|
|
198
|
+
ubrn_uniffi_breez_sdk_spark_fn_clone_restclient(
|
|
199
|
+
ptr: bigint,
|
|
200
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
201
|
+
): bigint;
|
|
202
|
+
ubrn_uniffi_breez_sdk_spark_fn_free_restclient(
|
|
203
|
+
ptr: bigint,
|
|
204
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
205
|
+
): void;
|
|
206
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_restclient_get_request(
|
|
207
|
+
ptr: bigint,
|
|
208
|
+
url: Uint8Array,
|
|
209
|
+
headers: Uint8Array
|
|
210
|
+
): bigint;
|
|
211
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_restclient_post_request(
|
|
212
|
+
ptr: bigint,
|
|
213
|
+
url: Uint8Array,
|
|
214
|
+
headers: Uint8Array,
|
|
215
|
+
body: Uint8Array
|
|
216
|
+
): bigint;
|
|
217
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_restclient_delete_request(
|
|
218
|
+
ptr: bigint,
|
|
219
|
+
url: Uint8Array,
|
|
220
|
+
headers: Uint8Array,
|
|
221
|
+
body: Uint8Array
|
|
222
|
+
): bigint;
|
|
180
223
|
ubrn_uniffi_breez_sdk_spark_fn_clone_sdkbuilder(
|
|
181
224
|
ptr: bigint,
|
|
182
225
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -292,6 +335,86 @@ interface NativeModuleInterface {
|
|
|
292
335
|
vout: number,
|
|
293
336
|
payload: Uint8Array
|
|
294
337
|
): bigint;
|
|
338
|
+
ubrn_uniffi_breez_sdk_spark_fn_clone_syncstorage(
|
|
339
|
+
ptr: bigint,
|
|
340
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
341
|
+
): bigint;
|
|
342
|
+
ubrn_uniffi_breez_sdk_spark_fn_free_syncstorage(
|
|
343
|
+
ptr: bigint,
|
|
344
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
345
|
+
): void;
|
|
346
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_add_outgoing_change(
|
|
347
|
+
ptr: bigint,
|
|
348
|
+
record: Uint8Array
|
|
349
|
+
): bigint;
|
|
350
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_complete_outgoing_sync(
|
|
351
|
+
ptr: bigint,
|
|
352
|
+
record: Uint8Array
|
|
353
|
+
): bigint;
|
|
354
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_get_pending_outgoing_changes(
|
|
355
|
+
ptr: bigint,
|
|
356
|
+
limit: number
|
|
357
|
+
): bigint;
|
|
358
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_get_last_revision(
|
|
359
|
+
ptr: bigint
|
|
360
|
+
): bigint;
|
|
361
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_insert_incoming_records(
|
|
362
|
+
ptr: bigint,
|
|
363
|
+
records: Uint8Array
|
|
364
|
+
): bigint;
|
|
365
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_delete_incoming_record(
|
|
366
|
+
ptr: bigint,
|
|
367
|
+
record: Uint8Array
|
|
368
|
+
): bigint;
|
|
369
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_rebase_pending_outgoing_records(
|
|
370
|
+
ptr: bigint,
|
|
371
|
+
revision: bigint
|
|
372
|
+
): bigint;
|
|
373
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_get_incoming_records(
|
|
374
|
+
ptr: bigint,
|
|
375
|
+
limit: number
|
|
376
|
+
): bigint;
|
|
377
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_get_latest_outgoing_change(
|
|
378
|
+
ptr: bigint
|
|
379
|
+
): bigint;
|
|
380
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_syncstorage_update_record_from_incoming(
|
|
381
|
+
ptr: bigint,
|
|
382
|
+
record: Uint8Array
|
|
383
|
+
): bigint;
|
|
384
|
+
ubrn_uniffi_breez_sdk_spark_fn_clone_tokenissuer(
|
|
385
|
+
ptr: bigint,
|
|
386
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
387
|
+
): bigint;
|
|
388
|
+
ubrn_uniffi_breez_sdk_spark_fn_free_tokenissuer(
|
|
389
|
+
ptr: bigint,
|
|
390
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
391
|
+
): void;
|
|
392
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_burn_issuer_token(
|
|
393
|
+
ptr: bigint,
|
|
394
|
+
request: Uint8Array
|
|
395
|
+
): bigint;
|
|
396
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_create_issuer_token(
|
|
397
|
+
ptr: bigint,
|
|
398
|
+
request: Uint8Array
|
|
399
|
+
): bigint;
|
|
400
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_freeze_issuer_token(
|
|
401
|
+
ptr: bigint,
|
|
402
|
+
request: Uint8Array
|
|
403
|
+
): bigint;
|
|
404
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_balance(
|
|
405
|
+
ptr: bigint
|
|
406
|
+
): bigint;
|
|
407
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_get_issuer_token_metadata(
|
|
408
|
+
ptr: bigint
|
|
409
|
+
): bigint;
|
|
410
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_mint_issuer_token(
|
|
411
|
+
ptr: bigint,
|
|
412
|
+
request: Uint8Array
|
|
413
|
+
): bigint;
|
|
414
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_tokenissuer_unfreeze_issuer_token(
|
|
415
|
+
ptr: bigint,
|
|
416
|
+
request: Uint8Array
|
|
417
|
+
): bigint;
|
|
295
418
|
ubrn_uniffi_breez_sdk_spark_fn_func_connect(request: Uint8Array): bigint;
|
|
296
419
|
ubrn_uniffi_breez_sdk_spark_fn_func_default_config(
|
|
297
420
|
network: Uint8Array,
|
|
@@ -462,6 +585,7 @@ interface NativeModuleInterface {
|
|
|
462
585
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info(): number;
|
|
463
586
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address(): number;
|
|
464
587
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment(): number;
|
|
588
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer(): number;
|
|
465
589
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata(): number;
|
|
466
590
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings(): number;
|
|
467
591
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies(): number;
|
|
@@ -482,7 +606,12 @@ interface NativeModuleInterface {
|
|
|
482
606
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(): number;
|
|
483
607
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings(): number;
|
|
484
608
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment(): number;
|
|
609
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies(): number;
|
|
610
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates(): number;
|
|
485
611
|
ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send(): number;
|
|
612
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request(): number;
|
|
613
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request(): number;
|
|
614
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_delete_request(): number;
|
|
486
615
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build(): number;
|
|
487
616
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_chain_service(): number;
|
|
488
617
|
ubrn_uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_default_storage(): number;
|
|
@@ -505,6 +634,23 @@ interface NativeModuleInterface {
|
|
|
505
634
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit(): number;
|
|
506
635
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits(): number;
|
|
507
636
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit(): number;
|
|
637
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change(): number;
|
|
638
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync(): number;
|
|
639
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_pending_outgoing_changes(): number;
|
|
640
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_last_revision(): number;
|
|
641
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_insert_incoming_records(): number;
|
|
642
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_delete_incoming_record(): number;
|
|
643
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_rebase_pending_outgoing_records(): number;
|
|
644
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_incoming_records(): number;
|
|
645
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_get_latest_outgoing_change(): number;
|
|
646
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_syncstorage_update_record_from_incoming(): number;
|
|
647
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_burn_issuer_token(): number;
|
|
648
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_create_issuer_token(): number;
|
|
649
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_freeze_issuer_token(): number;
|
|
650
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_balance(): number;
|
|
651
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata(): number;
|
|
652
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token(): number;
|
|
653
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token(): number;
|
|
508
654
|
ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new(): number;
|
|
509
655
|
ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event(): number;
|
|
510
656
|
ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log(): number;
|
|
@@ -518,12 +664,21 @@ interface NativeModuleInterface {
|
|
|
518
664
|
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_bitcoinchainservice(
|
|
519
665
|
vtable: UniffiVTableCallbackInterfaceBitcoinChainService
|
|
520
666
|
): void;
|
|
667
|
+
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
|
|
668
|
+
vtable: UniffiVTableCallbackInterfaceFiatService
|
|
669
|
+
): void;
|
|
521
670
|
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
|
|
522
671
|
vtable: UniffiVTableCallbackInterfacePaymentObserver
|
|
523
672
|
): void;
|
|
673
|
+
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_restclient(
|
|
674
|
+
vtable: UniffiVTableCallbackInterfaceRestClient
|
|
675
|
+
): void;
|
|
524
676
|
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_storage(
|
|
525
677
|
vtable: UniffiVTableCallbackInterfaceStorage
|
|
526
678
|
): void;
|
|
679
|
+
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_syncstorage(
|
|
680
|
+
vtable: UniffiVTableCallbackInterfaceSyncStorage
|
|
681
|
+
): void;
|
|
527
682
|
ubrn_uniffi_internal_fn_method_bitcoinchainservice_ffi__bless_pointer(
|
|
528
683
|
pointer: bigint,
|
|
529
684
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -532,10 +687,18 @@ interface NativeModuleInterface {
|
|
|
532
687
|
pointer: bigint,
|
|
533
688
|
uniffi_out_err: UniffiRustCallStatus
|
|
534
689
|
): UniffiRustArcPtr;
|
|
690
|
+
ubrn_uniffi_internal_fn_method_fiatservice_ffi__bless_pointer(
|
|
691
|
+
pointer: bigint,
|
|
692
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
693
|
+
): UniffiRustArcPtr;
|
|
535
694
|
ubrn_uniffi_internal_fn_method_paymentobserver_ffi__bless_pointer(
|
|
536
695
|
pointer: bigint,
|
|
537
696
|
uniffi_out_err: UniffiRustCallStatus
|
|
538
697
|
): UniffiRustArcPtr;
|
|
698
|
+
ubrn_uniffi_internal_fn_method_restclient_ffi__bless_pointer(
|
|
699
|
+
pointer: bigint,
|
|
700
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
701
|
+
): UniffiRustArcPtr;
|
|
539
702
|
ubrn_uniffi_internal_fn_method_sdkbuilder_ffi__bless_pointer(
|
|
540
703
|
pointer: bigint,
|
|
541
704
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -544,6 +707,14 @@ interface NativeModuleInterface {
|
|
|
544
707
|
pointer: bigint,
|
|
545
708
|
uniffi_out_err: UniffiRustCallStatus
|
|
546
709
|
): UniffiRustArcPtr;
|
|
710
|
+
ubrn_uniffi_internal_fn_method_syncstorage_ffi__bless_pointer(
|
|
711
|
+
pointer: bigint,
|
|
712
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
713
|
+
): UniffiRustArcPtr;
|
|
714
|
+
ubrn_uniffi_internal_fn_method_tokenissuer_ffi__bless_pointer(
|
|
715
|
+
pointer: bigint,
|
|
716
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
717
|
+
): UniffiRustArcPtr;
|
|
547
718
|
}
|
|
548
719
|
|
|
549
720
|
// Casting globalThis to any allows us to look for `NativeBreezSdkSpark`
|
|
@@ -703,12 +874,45 @@ type UniffiCallbackInterfaceBitcoinChainServiceMethod3 = (
|
|
|
703
874
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
704
875
|
uniffiCallbackData: bigint
|
|
705
876
|
) => UniffiResult<UniffiForeignFuture>;
|
|
877
|
+
type UniffiCallbackInterfaceFiatServiceMethod0 = (
|
|
878
|
+
uniffiHandle: bigint,
|
|
879
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
880
|
+
uniffiCallbackData: bigint
|
|
881
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
882
|
+
type UniffiCallbackInterfaceFiatServiceMethod1 = (
|
|
883
|
+
uniffiHandle: bigint,
|
|
884
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
885
|
+
uniffiCallbackData: bigint
|
|
886
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
706
887
|
type UniffiCallbackInterfacePaymentObserverMethod0 = (
|
|
707
888
|
uniffiHandle: bigint,
|
|
708
889
|
payments: Uint8Array,
|
|
709
890
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
710
891
|
uniffiCallbackData: bigint
|
|
711
892
|
) => UniffiResult<UniffiForeignFuture>;
|
|
893
|
+
type UniffiCallbackInterfaceRestClientMethod0 = (
|
|
894
|
+
uniffiHandle: bigint,
|
|
895
|
+
url: Uint8Array,
|
|
896
|
+
headers: Uint8Array,
|
|
897
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
898
|
+
uniffiCallbackData: bigint
|
|
899
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
900
|
+
type UniffiCallbackInterfaceRestClientMethod1 = (
|
|
901
|
+
uniffiHandle: bigint,
|
|
902
|
+
url: Uint8Array,
|
|
903
|
+
headers: Uint8Array,
|
|
904
|
+
body: Uint8Array,
|
|
905
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
906
|
+
uniffiCallbackData: bigint
|
|
907
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
908
|
+
type UniffiCallbackInterfaceRestClientMethod2 = (
|
|
909
|
+
uniffiHandle: bigint,
|
|
910
|
+
url: Uint8Array,
|
|
911
|
+
headers: Uint8Array,
|
|
912
|
+
body: Uint8Array,
|
|
913
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
914
|
+
uniffiCallbackData: bigint
|
|
915
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
712
916
|
type UniffiCallbackInterfaceStorageMethod0 = (
|
|
713
917
|
uniffiHandle: bigint,
|
|
714
918
|
key: Uint8Array,
|
|
@@ -787,6 +991,64 @@ type UniffiCallbackInterfaceStorageMethod11 = (
|
|
|
787
991
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
788
992
|
uniffiCallbackData: bigint
|
|
789
993
|
) => UniffiResult<UniffiForeignFuture>;
|
|
994
|
+
type UniffiCallbackInterfaceSyncStorageMethod0 = (
|
|
995
|
+
uniffiHandle: bigint,
|
|
996
|
+
record: Uint8Array,
|
|
997
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteU64,
|
|
998
|
+
uniffiCallbackData: bigint
|
|
999
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1000
|
+
type UniffiCallbackInterfaceSyncStorageMethod1 = (
|
|
1001
|
+
uniffiHandle: bigint,
|
|
1002
|
+
record: Uint8Array,
|
|
1003
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1004
|
+
uniffiCallbackData: bigint
|
|
1005
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1006
|
+
type UniffiCallbackInterfaceSyncStorageMethod2 = (
|
|
1007
|
+
uniffiHandle: bigint,
|
|
1008
|
+
limit: number,
|
|
1009
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1010
|
+
uniffiCallbackData: bigint
|
|
1011
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1012
|
+
type UniffiCallbackInterfaceSyncStorageMethod3 = (
|
|
1013
|
+
uniffiHandle: bigint,
|
|
1014
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteU64,
|
|
1015
|
+
uniffiCallbackData: bigint
|
|
1016
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1017
|
+
type UniffiCallbackInterfaceSyncStorageMethod4 = (
|
|
1018
|
+
uniffiHandle: bigint,
|
|
1019
|
+
records: Uint8Array,
|
|
1020
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1021
|
+
uniffiCallbackData: bigint
|
|
1022
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1023
|
+
type UniffiCallbackInterfaceSyncStorageMethod5 = (
|
|
1024
|
+
uniffiHandle: bigint,
|
|
1025
|
+
record: Uint8Array,
|
|
1026
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1027
|
+
uniffiCallbackData: bigint
|
|
1028
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1029
|
+
type UniffiCallbackInterfaceSyncStorageMethod6 = (
|
|
1030
|
+
uniffiHandle: bigint,
|
|
1031
|
+
revision: bigint,
|
|
1032
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1033
|
+
uniffiCallbackData: bigint
|
|
1034
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1035
|
+
type UniffiCallbackInterfaceSyncStorageMethod7 = (
|
|
1036
|
+
uniffiHandle: bigint,
|
|
1037
|
+
limit: number,
|
|
1038
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1039
|
+
uniffiCallbackData: bigint
|
|
1040
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1041
|
+
type UniffiCallbackInterfaceSyncStorageMethod8 = (
|
|
1042
|
+
uniffiHandle: bigint,
|
|
1043
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1044
|
+
uniffiCallbackData: bigint
|
|
1045
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1046
|
+
type UniffiCallbackInterfaceSyncStorageMethod9 = (
|
|
1047
|
+
uniffiHandle: bigint,
|
|
1048
|
+
record: Uint8Array,
|
|
1049
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1050
|
+
uniffiCallbackData: bigint
|
|
1051
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
790
1052
|
export type UniffiVTableCallbackInterfaceEventListener = {
|
|
791
1053
|
onEvent: UniffiCallbackInterfaceEventListenerMethod0;
|
|
792
1054
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
@@ -802,10 +1064,21 @@ export type UniffiVTableCallbackInterfaceBitcoinChainService = {
|
|
|
802
1064
|
broadcastTransaction: UniffiCallbackInterfaceBitcoinChainServiceMethod3;
|
|
803
1065
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
804
1066
|
};
|
|
1067
|
+
export type UniffiVTableCallbackInterfaceFiatService = {
|
|
1068
|
+
fetchFiatCurrencies: UniffiCallbackInterfaceFiatServiceMethod0;
|
|
1069
|
+
fetchFiatRates: UniffiCallbackInterfaceFiatServiceMethod1;
|
|
1070
|
+
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1071
|
+
};
|
|
805
1072
|
export type UniffiVTableCallbackInterfacePaymentObserver = {
|
|
806
1073
|
beforeSend: UniffiCallbackInterfacePaymentObserverMethod0;
|
|
807
1074
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
808
1075
|
};
|
|
1076
|
+
export type UniffiVTableCallbackInterfaceRestClient = {
|
|
1077
|
+
getRequest: UniffiCallbackInterfaceRestClientMethod0;
|
|
1078
|
+
postRequest: UniffiCallbackInterfaceRestClientMethod1;
|
|
1079
|
+
deleteRequest: UniffiCallbackInterfaceRestClientMethod2;
|
|
1080
|
+
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1081
|
+
};
|
|
809
1082
|
export type UniffiVTableCallbackInterfaceStorage = {
|
|
810
1083
|
deleteCachedItem: UniffiCallbackInterfaceStorageMethod0;
|
|
811
1084
|
getCachedItem: UniffiCallbackInterfaceStorageMethod1;
|
|
@@ -821,6 +1094,19 @@ export type UniffiVTableCallbackInterfaceStorage = {
|
|
|
821
1094
|
updateDeposit: UniffiCallbackInterfaceStorageMethod11;
|
|
822
1095
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
823
1096
|
};
|
|
1097
|
+
export type UniffiVTableCallbackInterfaceSyncStorage = {
|
|
1098
|
+
addOutgoingChange: UniffiCallbackInterfaceSyncStorageMethod0;
|
|
1099
|
+
completeOutgoingSync: UniffiCallbackInterfaceSyncStorageMethod1;
|
|
1100
|
+
getPendingOutgoingChanges: UniffiCallbackInterfaceSyncStorageMethod2;
|
|
1101
|
+
getLastRevision: UniffiCallbackInterfaceSyncStorageMethod3;
|
|
1102
|
+
insertIncomingRecords: UniffiCallbackInterfaceSyncStorageMethod4;
|
|
1103
|
+
deleteIncomingRecord: UniffiCallbackInterfaceSyncStorageMethod5;
|
|
1104
|
+
rebasePendingOutgoingRecords: UniffiCallbackInterfaceSyncStorageMethod6;
|
|
1105
|
+
getIncomingRecords: UniffiCallbackInterfaceSyncStorageMethod7;
|
|
1106
|
+
getLatestOutgoingChange: UniffiCallbackInterfaceSyncStorageMethod8;
|
|
1107
|
+
updateRecordFromIncoming: UniffiCallbackInterfaceSyncStorageMethod9;
|
|
1108
|
+
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1109
|
+
};
|
|
824
1110
|
|
|
825
1111
|
// UniffiRustFutureContinuationCallback is generated as part of the component interface's
|
|
826
1112
|
// ffi_definitions. However, we need it in the runtime.
|