@secondts/bark-react-native 0.1.2-beta.29 → 0.1.2-beta.31
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/BarkReactNative.podspec +1 -1
- package/android/CMakeLists.txt +3 -0
- package/android/cpp-adapter.cpp +5 -4
- package/cpp/generated/bark.cpp +809 -530
- package/cpp/generated/bark.hpp +14 -0
- package/lib/commonjs/generated/bark-ffi.js +4 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +266 -87
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js +4 -0
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +266 -87
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +59 -48
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +242 -9
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +59 -48
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +242 -9
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/generated/bark-ffi.ts +90 -51
- package/src/generated/bark.ts +592 -215
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
|
|
2
2
|
// Trust me, you don't want to mess with it!
|
|
3
3
|
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// @ts-nocheck
|
|
7
|
+
|
|
4
8
|
import {
|
|
5
9
|
type StructuralEquality as UniffiStructuralEquality,
|
|
6
10
|
type UniffiForeignFuture as RuntimeUniffiForeignFuture,
|
|
7
11
|
type UniffiRustCallStatus,
|
|
8
|
-
type
|
|
12
|
+
type UniffiGcObject,
|
|
9
13
|
type UniffiRustFutureContinuationCallback as RuntimeUniffiRustFutureContinuationCallback,
|
|
10
14
|
type UniffiResult,
|
|
11
15
|
} from "uniffi-bindgen-react-native";
|
|
@@ -24,11 +28,11 @@ interface NativeModuleInterface {
|
|
|
24
28
|
uniffi_out_err: UniffiRustCallStatus
|
|
25
29
|
): string;
|
|
26
30
|
ubrn_uniffi_bark_ffi_fn_clone_onchainwallet(
|
|
27
|
-
|
|
31
|
+
handle: bigint,
|
|
28
32
|
uniffi_out_err: UniffiRustCallStatus
|
|
29
33
|
): bigint;
|
|
30
34
|
ubrn_uniffi_bark_ffi_fn_free_onchainwallet(
|
|
31
|
-
|
|
35
|
+
handle: bigint,
|
|
32
36
|
uniffi_out_err: UniffiRustCallStatus
|
|
33
37
|
): void;
|
|
34
38
|
ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(
|
|
@@ -61,11 +65,11 @@ interface NativeModuleInterface {
|
|
|
61
65
|
uniffi_out_err: UniffiRustCallStatus
|
|
62
66
|
): bigint;
|
|
63
67
|
ubrn_uniffi_bark_ffi_fn_clone_wallet(
|
|
64
|
-
|
|
68
|
+
handle: bigint,
|
|
65
69
|
uniffi_out_err: UniffiRustCallStatus
|
|
66
70
|
): bigint;
|
|
67
71
|
ubrn_uniffi_bark_ffi_fn_free_wallet(
|
|
68
|
-
|
|
72
|
+
handle: bigint,
|
|
69
73
|
uniffi_out_err: UniffiRustCallStatus
|
|
70
74
|
): void;
|
|
71
75
|
ubrn_uniffi_bark_ffi_fn_constructor_wallet_create(
|
|
@@ -163,6 +167,31 @@ interface NativeModuleInterface {
|
|
|
163
167
|
feeRateSatPerVb: Uint8Array,
|
|
164
168
|
uniffi_out_err: UniffiRustCallStatus
|
|
165
169
|
): Uint8Array;
|
|
170
|
+
ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee(
|
|
171
|
+
ptr: bigint,
|
|
172
|
+
amountSats: bigint,
|
|
173
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
174
|
+
): bigint;
|
|
175
|
+
ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee(
|
|
176
|
+
ptr: bigint,
|
|
177
|
+
amountSats: bigint,
|
|
178
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
179
|
+
): bigint;
|
|
180
|
+
ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee(
|
|
181
|
+
ptr: bigint,
|
|
182
|
+
amountSats: bigint,
|
|
183
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
184
|
+
): bigint;
|
|
185
|
+
ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee(
|
|
186
|
+
ptr: bigint,
|
|
187
|
+
amountSats: bigint,
|
|
188
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
189
|
+
): bigint;
|
|
190
|
+
ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee(
|
|
191
|
+
ptr: bigint,
|
|
192
|
+
vtxoIds: Uint8Array,
|
|
193
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
194
|
+
): bigint;
|
|
166
195
|
ubrn_uniffi_bark_ffi_fn_method_wallet_fingerprint(
|
|
167
196
|
ptr: bigint,
|
|
168
197
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -208,6 +237,11 @@ interface NativeModuleInterface {
|
|
|
208
237
|
ptr: bigint,
|
|
209
238
|
uniffi_out_err: UniffiRustCallStatus
|
|
210
239
|
): Uint8Array;
|
|
240
|
+
ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo(
|
|
241
|
+
ptr: bigint,
|
|
242
|
+
vtxoBase64: Uint8Array,
|
|
243
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
244
|
+
): void;
|
|
211
245
|
ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status(
|
|
212
246
|
ptr: bigint,
|
|
213
247
|
paymentHash: Uint8Array,
|
|
@@ -217,6 +251,10 @@ interface NativeModuleInterface {
|
|
|
217
251
|
ptr: bigint,
|
|
218
252
|
uniffi_out_err: UniffiRustCallStatus
|
|
219
253
|
): Uint8Array;
|
|
254
|
+
ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization(
|
|
255
|
+
ptr: bigint,
|
|
256
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
257
|
+
): Uint8Array;
|
|
220
258
|
ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier(
|
|
221
259
|
ptr: bigint,
|
|
222
260
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -461,6 +499,11 @@ interface NativeModuleInterface {
|
|
|
461
499
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats(): number;
|
|
462
500
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_config(): number;
|
|
463
501
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits(): number;
|
|
502
|
+
ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(): number;
|
|
503
|
+
ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee(): number;
|
|
504
|
+
ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee(): number;
|
|
505
|
+
ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee(): number;
|
|
506
|
+
ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee(): number;
|
|
464
507
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint(): number;
|
|
465
508
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status(): number;
|
|
466
509
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos(): number;
|
|
@@ -471,8 +514,10 @@ interface NativeModuleInterface {
|
|
|
471
514
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh(): number;
|
|
472
515
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits(): number;
|
|
473
516
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_history(): number;
|
|
517
|
+
ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(): number;
|
|
474
518
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status(): number;
|
|
475
519
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits(): number;
|
|
520
|
+
ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization(): number;
|
|
476
521
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier(): number;
|
|
477
522
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance(): number;
|
|
478
523
|
ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated(): number;
|
|
@@ -536,11 +581,11 @@ interface NativeModuleInterface {
|
|
|
536
581
|
ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(
|
|
537
582
|
pointer: bigint,
|
|
538
583
|
uniffi_out_err: UniffiRustCallStatus
|
|
539
|
-
):
|
|
584
|
+
): UniffiGcObject;
|
|
540
585
|
ubrn_uniffi_internal_fn_method_wallet_ffi__bless_pointer(
|
|
541
586
|
pointer: bigint,
|
|
542
587
|
uniffi_out_err: UniffiRustCallStatus
|
|
543
|
-
):
|
|
588
|
+
): UniffiGcObject;
|
|
544
589
|
}
|
|
545
590
|
|
|
546
591
|
// Casting globalThis to any allows us to look for `NativeBark`
|
|
@@ -557,153 +602,148 @@ export type UniffiRustFutureContinuationCallback = (
|
|
|
557
602
|
data: bigint,
|
|
558
603
|
pollResult: number
|
|
559
604
|
) => void;
|
|
560
|
-
type
|
|
605
|
+
export type UniffiForeignFutureDroppedCallback = (handle: bigint) => void;
|
|
561
606
|
type UniffiCallbackInterfaceFree = (handle: bigint) => void;
|
|
562
|
-
|
|
607
|
+
type UniffiCallbackInterfaceClone = (handle: bigint) => UniffiResult<void>;
|
|
608
|
+
export type UniffiForeignFutureDroppedCallbackStruct = {
|
|
563
609
|
handle: bigint;
|
|
564
|
-
free:
|
|
610
|
+
free: UniffiForeignFutureDroppedCallback;
|
|
565
611
|
};
|
|
566
|
-
export type
|
|
612
|
+
export type UniffiForeignFutureResultU8 = {
|
|
567
613
|
returnValue: number;
|
|
568
614
|
callStatus: UniffiRustCallStatus;
|
|
569
615
|
};
|
|
570
616
|
export type UniffiForeignFutureCompleteU8 = (
|
|
571
617
|
callbackData: bigint,
|
|
572
|
-
result:
|
|
618
|
+
result: UniffiForeignFutureResultU8
|
|
573
619
|
) => void;
|
|
574
|
-
export type
|
|
620
|
+
export type UniffiForeignFutureResultI8 = {
|
|
575
621
|
returnValue: number;
|
|
576
622
|
callStatus: UniffiRustCallStatus;
|
|
577
623
|
};
|
|
578
624
|
export type UniffiForeignFutureCompleteI8 = (
|
|
579
625
|
callbackData: bigint,
|
|
580
|
-
result:
|
|
626
|
+
result: UniffiForeignFutureResultI8
|
|
581
627
|
) => void;
|
|
582
|
-
export type
|
|
628
|
+
export type UniffiForeignFutureResultU16 = {
|
|
583
629
|
returnValue: number;
|
|
584
630
|
callStatus: UniffiRustCallStatus;
|
|
585
631
|
};
|
|
586
632
|
export type UniffiForeignFutureCompleteU16 = (
|
|
587
633
|
callbackData: bigint,
|
|
588
|
-
result:
|
|
634
|
+
result: UniffiForeignFutureResultU16
|
|
589
635
|
) => void;
|
|
590
|
-
export type
|
|
636
|
+
export type UniffiForeignFutureResultI16 = {
|
|
591
637
|
returnValue: number;
|
|
592
638
|
callStatus: UniffiRustCallStatus;
|
|
593
639
|
};
|
|
594
640
|
export type UniffiForeignFutureCompleteI16 = (
|
|
595
641
|
callbackData: bigint,
|
|
596
|
-
result:
|
|
642
|
+
result: UniffiForeignFutureResultI16
|
|
597
643
|
) => void;
|
|
598
|
-
export type
|
|
644
|
+
export type UniffiForeignFutureResultU32 = {
|
|
599
645
|
returnValue: number;
|
|
600
646
|
callStatus: UniffiRustCallStatus;
|
|
601
647
|
};
|
|
602
648
|
export type UniffiForeignFutureCompleteU32 = (
|
|
603
649
|
callbackData: bigint,
|
|
604
|
-
result:
|
|
650
|
+
result: UniffiForeignFutureResultU32
|
|
605
651
|
) => void;
|
|
606
|
-
export type
|
|
652
|
+
export type UniffiForeignFutureResultI32 = {
|
|
607
653
|
returnValue: number;
|
|
608
654
|
callStatus: UniffiRustCallStatus;
|
|
609
655
|
};
|
|
610
656
|
export type UniffiForeignFutureCompleteI32 = (
|
|
611
657
|
callbackData: bigint,
|
|
612
|
-
result:
|
|
658
|
+
result: UniffiForeignFutureResultI32
|
|
613
659
|
) => void;
|
|
614
|
-
export type
|
|
660
|
+
export type UniffiForeignFutureResultU64 = {
|
|
615
661
|
returnValue: bigint;
|
|
616
662
|
callStatus: UniffiRustCallStatus;
|
|
617
663
|
};
|
|
618
664
|
export type UniffiForeignFutureCompleteU64 = (
|
|
619
665
|
callbackData: bigint,
|
|
620
|
-
result:
|
|
666
|
+
result: UniffiForeignFutureResultU64
|
|
621
667
|
) => void;
|
|
622
|
-
export type
|
|
668
|
+
export type UniffiForeignFutureResultI64 = {
|
|
623
669
|
returnValue: bigint;
|
|
624
670
|
callStatus: UniffiRustCallStatus;
|
|
625
671
|
};
|
|
626
672
|
export type UniffiForeignFutureCompleteI64 = (
|
|
627
673
|
callbackData: bigint,
|
|
628
|
-
result:
|
|
674
|
+
result: UniffiForeignFutureResultI64
|
|
629
675
|
) => void;
|
|
630
|
-
export type
|
|
676
|
+
export type UniffiForeignFutureResultF32 = {
|
|
631
677
|
returnValue: number;
|
|
632
678
|
callStatus: UniffiRustCallStatus;
|
|
633
679
|
};
|
|
634
680
|
export type UniffiForeignFutureCompleteF32 = (
|
|
635
681
|
callbackData: bigint,
|
|
636
|
-
result:
|
|
682
|
+
result: UniffiForeignFutureResultF32
|
|
637
683
|
) => void;
|
|
638
|
-
export type
|
|
684
|
+
export type UniffiForeignFutureResultF64 = {
|
|
639
685
|
returnValue: number;
|
|
640
686
|
callStatus: UniffiRustCallStatus;
|
|
641
687
|
};
|
|
642
688
|
export type UniffiForeignFutureCompleteF64 = (
|
|
643
689
|
callbackData: bigint,
|
|
644
|
-
result:
|
|
690
|
+
result: UniffiForeignFutureResultF64
|
|
645
691
|
) => void;
|
|
646
|
-
export type
|
|
647
|
-
returnValue: bigint;
|
|
648
|
-
callStatus: UniffiRustCallStatus;
|
|
649
|
-
};
|
|
650
|
-
export type UniffiForeignFutureCompletePointer = (
|
|
651
|
-
callbackData: bigint,
|
|
652
|
-
result: UniffiForeignFutureStructPointer
|
|
653
|
-
) => void;
|
|
654
|
-
export type UniffiForeignFutureStructRustBuffer = {
|
|
692
|
+
export type UniffiForeignFutureResultRustBuffer = {
|
|
655
693
|
returnValue: Uint8Array;
|
|
656
694
|
callStatus: UniffiRustCallStatus;
|
|
657
695
|
};
|
|
658
696
|
export type UniffiForeignFutureCompleteRustBuffer = (
|
|
659
697
|
callbackData: bigint,
|
|
660
|
-
result:
|
|
698
|
+
result: UniffiForeignFutureResultRustBuffer
|
|
661
699
|
) => void;
|
|
662
|
-
export type
|
|
700
|
+
export type UniffiForeignFutureResultVoid = {
|
|
663
701
|
callStatus: UniffiRustCallStatus;
|
|
664
702
|
};
|
|
665
703
|
export type UniffiForeignFutureCompleteVoid = (
|
|
666
704
|
callbackData: bigint,
|
|
667
|
-
result:
|
|
705
|
+
result: UniffiForeignFutureResultVoid
|
|
668
706
|
) => void;
|
|
669
707
|
type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0 = (
|
|
670
708
|
uniffiHandle: bigint
|
|
671
|
-
) =>
|
|
709
|
+
) => bigint;
|
|
672
710
|
type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1 = (
|
|
673
711
|
uniffiHandle: bigint,
|
|
674
712
|
destinations: Uint8Array,
|
|
675
713
|
feeRateSatPerVb: bigint
|
|
676
|
-
) =>
|
|
714
|
+
) => Uint8Array;
|
|
677
715
|
type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2 = (
|
|
678
716
|
uniffiHandle: bigint,
|
|
679
717
|
address: Uint8Array,
|
|
680
718
|
feeRateSatPerVb: bigint
|
|
681
|
-
) =>
|
|
719
|
+
) => Uint8Array;
|
|
682
720
|
type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3 = (
|
|
683
721
|
uniffiHandle: bigint,
|
|
684
722
|
psbtBase64: Uint8Array
|
|
685
|
-
) =>
|
|
723
|
+
) => Uint8Array;
|
|
686
724
|
type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4 = (
|
|
687
725
|
uniffiHandle: bigint,
|
|
688
726
|
txid: Uint8Array
|
|
689
|
-
) =>
|
|
727
|
+
) => Uint8Array;
|
|
690
728
|
type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5 = (
|
|
691
729
|
uniffiHandle: bigint,
|
|
692
730
|
txid: Uint8Array
|
|
693
|
-
) =>
|
|
731
|
+
) => Uint8Array;
|
|
694
732
|
type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6 = (
|
|
695
733
|
uniffiHandle: bigint,
|
|
696
734
|
outpoint: Uint8Array
|
|
697
|
-
) =>
|
|
735
|
+
) => Uint8Array;
|
|
698
736
|
type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7 = (
|
|
699
737
|
uniffiHandle: bigint,
|
|
700
738
|
params: Uint8Array
|
|
701
|
-
) =>
|
|
739
|
+
) => Uint8Array;
|
|
702
740
|
type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8 = (
|
|
703
741
|
uniffiHandle: bigint,
|
|
704
742
|
txHex: Uint8Array
|
|
705
743
|
) => UniffiResult<void>;
|
|
706
744
|
export type UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
745
|
+
uniffiFree: UniffiCallbackInterfaceFree;
|
|
746
|
+
uniffiClone: UniffiCallbackInterfaceClone;
|
|
707
747
|
getBalance: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0;
|
|
708
748
|
prepareTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1;
|
|
709
749
|
prepareDrainTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2;
|
|
@@ -713,7 +753,6 @@ export type UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
713
753
|
getSpendingTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6;
|
|
714
754
|
makeSignedP2aCpfp: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7;
|
|
715
755
|
storeSignedP2aCpfp: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8;
|
|
716
|
-
uniffiFree: UniffiCallbackInterfaceFree;
|
|
717
756
|
};
|
|
718
757
|
|
|
719
758
|
// UniffiRustFutureContinuationCallback is generated as part of the component interface's
|