@secondts/bark-react-native 0.2.0-beta.2 → 0.3.0-beta.1

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 (38) hide show
  1. package/README.md +2 -2
  2. package/cpp/generated/bark.cpp +8716 -6407
  3. package/cpp/generated/bark.hpp +912 -235
  4. package/lib/commonjs/WalletNotifications.js +82 -0
  5. package/lib/commonjs/WalletNotifications.js.map +1 -0
  6. package/lib/commonjs/generated/bark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/bark.js +347 -6
  8. package/lib/commonjs/generated/bark.js.map +1 -1
  9. package/lib/commonjs/index.js +13 -1
  10. package/lib/commonjs/index.js.map +1 -1
  11. package/lib/module/WalletNotifications.js +77 -0
  12. package/lib/module/WalletNotifications.js.map +1 -0
  13. package/lib/module/generated/bark-ffi.js.map +1 -1
  14. package/lib/module/generated/bark.js +346 -6
  15. package/lib/module/generated/bark.js.map +1 -1
  16. package/lib/module/index.js +3 -0
  17. package/lib/module/index.js.map +1 -1
  18. package/lib/typescript/commonjs/src/WalletNotifications.d.ts +41 -0
  19. package/lib/typescript/commonjs/src/WalletNotifications.d.ts.map +1 -0
  20. package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +62 -1
  21. package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/src/generated/bark.d.ts +254 -4
  23. package/lib/typescript/commonjs/src/generated/bark.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/WalletNotifications.d.ts +41 -0
  27. package/lib/typescript/module/src/WalletNotifications.d.ts.map +1 -0
  28. package/lib/typescript/module/src/generated/bark-ffi.d.ts +62 -1
  29. package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
  30. package/lib/typescript/module/src/generated/bark.d.ts +254 -4
  31. package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
  32. package/lib/typescript/module/src/index.d.ts +1 -0
  33. package/lib/typescript/module/src/index.d.ts.map +1 -1
  34. package/package.json +4 -4
  35. package/src/WalletNotifications.ts +86 -0
  36. package/src/generated/bark-ffi.ts +172 -1
  37. package/src/generated/bark.ts +584 -17
  38. package/src/index.tsx +3 -0
@@ -27,6 +27,21 @@ interface NativeModuleInterface {
27
27
  buffer: Uint8Array,
28
28
  uniffi_out_err: UniffiRustCallStatus
29
29
  ): string;
30
+ ubrn_uniffi_bark_ffi_fn_clone_notificationholder(
31
+ handle: bigint,
32
+ uniffi_out_err: UniffiRustCallStatus
33
+ ): bigint;
34
+ ubrn_uniffi_bark_ffi_fn_free_notificationholder(
35
+ handle: bigint,
36
+ uniffi_out_err: UniffiRustCallStatus
37
+ ): void;
38
+ ubrn_uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait(
39
+ ptr: bigint,
40
+ uniffi_out_err: UniffiRustCallStatus
41
+ ): void;
42
+ ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(
43
+ ptr: bigint
44
+ ): bigint;
30
45
  ubrn_uniffi_bark_ffi_fn_clone_onchainwallet(
31
46
  handle: bigint,
32
47
  uniffi_out_err: UniffiRustCallStatus
@@ -244,6 +259,12 @@ interface NativeModuleInterface {
244
259
  ptr: bigint,
245
260
  uniffi_out_err: UniffiRustCallStatus
246
261
  ): Uint8Array;
262
+ ubrn_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method(
263
+ ptr: bigint,
264
+ paymentMethodType: Uint8Array,
265
+ paymentMethodValue: Uint8Array,
266
+ uniffi_out_err: UniffiRustCallStatus
267
+ ): Uint8Array;
247
268
  ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo(
248
269
  ptr: bigint,
249
270
  vtxoBase64: Uint8Array,
@@ -308,6 +329,10 @@ interface NativeModuleInterface {
308
329
  ptr: bigint,
309
330
  uniffi_out_err: UniffiRustCallStatus
310
331
  ): bigint;
332
+ ubrn_uniffi_bark_ffi_fn_method_wallet_notifications(
333
+ ptr: bigint,
334
+ uniffi_out_err: UniffiRustCallStatus
335
+ ): bigint;
311
336
  ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_all(
312
337
  ptr: bigint,
313
338
  bitcoinAddress: Uint8Array,
@@ -343,6 +368,11 @@ interface NativeModuleInterface {
343
368
  index: number,
344
369
  uniffi_out_err: UniffiRustCallStatus
345
370
  ): Uint8Array;
371
+ ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address(
372
+ ptr: bigint,
373
+ index: number,
374
+ uniffi_out_err: UniffiRustCallStatus
375
+ ): Uint8Array;
346
376
  ubrn_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos(
347
377
  ptr: bigint,
348
378
  uniffi_out_err: UniffiRustCallStatus
@@ -450,7 +480,7 @@ interface NativeModuleInterface {
450
480
  ptr: bigint,
451
481
  wait: number,
452
482
  uniffi_out_err: UniffiRustCallStatus
453
- ): void;
483
+ ): Uint8Array;
454
484
  ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive(
455
485
  ptr: bigint,
456
486
  paymentHash: Uint8Array,
@@ -484,10 +514,144 @@ interface NativeModuleInterface {
484
514
  mnemonic: Uint8Array,
485
515
  uniffi_out_err: UniffiRustCallStatus
486
516
  ): number;
517
+ ubrn_ffi_bark_ffi_rust_future_poll_u8(
518
+ handle: bigint,
519
+ callback: UniffiRustFutureContinuationCallback,
520
+ callbackData: bigint
521
+ ): void;
522
+ ubrn_ffi_bark_ffi_rust_future_cancel_u8(handle: bigint): void;
523
+ ubrn_ffi_bark_ffi_rust_future_free_u8(handle: bigint): void;
524
+ ubrn_ffi_bark_ffi_rust_future_complete_u8(
525
+ handle: bigint,
526
+ uniffi_out_err: UniffiRustCallStatus
527
+ ): number;
528
+ ubrn_ffi_bark_ffi_rust_future_poll_i8(
529
+ handle: bigint,
530
+ callback: UniffiRustFutureContinuationCallback,
531
+ callbackData: bigint
532
+ ): void;
533
+ ubrn_ffi_bark_ffi_rust_future_cancel_i8(handle: bigint): void;
534
+ ubrn_ffi_bark_ffi_rust_future_free_i8(handle: bigint): void;
535
+ ubrn_ffi_bark_ffi_rust_future_complete_i8(
536
+ handle: bigint,
537
+ uniffi_out_err: UniffiRustCallStatus
538
+ ): number;
539
+ ubrn_ffi_bark_ffi_rust_future_poll_u16(
540
+ handle: bigint,
541
+ callback: UniffiRustFutureContinuationCallback,
542
+ callbackData: bigint
543
+ ): void;
544
+ ubrn_ffi_bark_ffi_rust_future_cancel_u16(handle: bigint): void;
545
+ ubrn_ffi_bark_ffi_rust_future_free_u16(handle: bigint): void;
546
+ ubrn_ffi_bark_ffi_rust_future_complete_u16(
547
+ handle: bigint,
548
+ uniffi_out_err: UniffiRustCallStatus
549
+ ): number;
550
+ ubrn_ffi_bark_ffi_rust_future_poll_i16(
551
+ handle: bigint,
552
+ callback: UniffiRustFutureContinuationCallback,
553
+ callbackData: bigint
554
+ ): void;
555
+ ubrn_ffi_bark_ffi_rust_future_cancel_i16(handle: bigint): void;
556
+ ubrn_ffi_bark_ffi_rust_future_free_i16(handle: bigint): void;
557
+ ubrn_ffi_bark_ffi_rust_future_complete_i16(
558
+ handle: bigint,
559
+ uniffi_out_err: UniffiRustCallStatus
560
+ ): number;
561
+ ubrn_ffi_bark_ffi_rust_future_poll_u32(
562
+ handle: bigint,
563
+ callback: UniffiRustFutureContinuationCallback,
564
+ callbackData: bigint
565
+ ): void;
566
+ ubrn_ffi_bark_ffi_rust_future_cancel_u32(handle: bigint): void;
567
+ ubrn_ffi_bark_ffi_rust_future_free_u32(handle: bigint): void;
568
+ ubrn_ffi_bark_ffi_rust_future_complete_u32(
569
+ handle: bigint,
570
+ uniffi_out_err: UniffiRustCallStatus
571
+ ): number;
572
+ ubrn_ffi_bark_ffi_rust_future_poll_i32(
573
+ handle: bigint,
574
+ callback: UniffiRustFutureContinuationCallback,
575
+ callbackData: bigint
576
+ ): void;
577
+ ubrn_ffi_bark_ffi_rust_future_cancel_i32(handle: bigint): void;
578
+ ubrn_ffi_bark_ffi_rust_future_free_i32(handle: bigint): void;
579
+ ubrn_ffi_bark_ffi_rust_future_complete_i32(
580
+ handle: bigint,
581
+ uniffi_out_err: UniffiRustCallStatus
582
+ ): number;
583
+ ubrn_ffi_bark_ffi_rust_future_poll_u64(
584
+ handle: bigint,
585
+ callback: UniffiRustFutureContinuationCallback,
586
+ callbackData: bigint
587
+ ): void;
588
+ ubrn_ffi_bark_ffi_rust_future_cancel_u64(handle: bigint): void;
589
+ ubrn_ffi_bark_ffi_rust_future_free_u64(handle: bigint): void;
590
+ ubrn_ffi_bark_ffi_rust_future_complete_u64(
591
+ handle: bigint,
592
+ uniffi_out_err: UniffiRustCallStatus
593
+ ): bigint;
594
+ ubrn_ffi_bark_ffi_rust_future_poll_i64(
595
+ handle: bigint,
596
+ callback: UniffiRustFutureContinuationCallback,
597
+ callbackData: bigint
598
+ ): void;
599
+ ubrn_ffi_bark_ffi_rust_future_cancel_i64(handle: bigint): void;
600
+ ubrn_ffi_bark_ffi_rust_future_free_i64(handle: bigint): void;
601
+ ubrn_ffi_bark_ffi_rust_future_complete_i64(
602
+ handle: bigint,
603
+ uniffi_out_err: UniffiRustCallStatus
604
+ ): bigint;
605
+ ubrn_ffi_bark_ffi_rust_future_poll_f32(
606
+ handle: bigint,
607
+ callback: UniffiRustFutureContinuationCallback,
608
+ callbackData: bigint
609
+ ): void;
610
+ ubrn_ffi_bark_ffi_rust_future_cancel_f32(handle: bigint): void;
611
+ ubrn_ffi_bark_ffi_rust_future_free_f32(handle: bigint): void;
612
+ ubrn_ffi_bark_ffi_rust_future_complete_f32(
613
+ handle: bigint,
614
+ uniffi_out_err: UniffiRustCallStatus
615
+ ): number;
616
+ ubrn_ffi_bark_ffi_rust_future_poll_f64(
617
+ handle: bigint,
618
+ callback: UniffiRustFutureContinuationCallback,
619
+ callbackData: bigint
620
+ ): void;
621
+ ubrn_ffi_bark_ffi_rust_future_cancel_f64(handle: bigint): void;
622
+ ubrn_ffi_bark_ffi_rust_future_free_f64(handle: bigint): void;
623
+ ubrn_ffi_bark_ffi_rust_future_complete_f64(
624
+ handle: bigint,
625
+ uniffi_out_err: UniffiRustCallStatus
626
+ ): number;
627
+ ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer(
628
+ handle: bigint,
629
+ callback: UniffiRustFutureContinuationCallback,
630
+ callbackData: bigint
631
+ ): void;
632
+ ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer(handle: bigint): void;
633
+ ubrn_ffi_bark_ffi_rust_future_free_rust_buffer(handle: bigint): void;
634
+ ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer(
635
+ handle: bigint,
636
+ uniffi_out_err: UniffiRustCallStatus
637
+ ): Uint8Array;
638
+ ubrn_ffi_bark_ffi_rust_future_poll_void(
639
+ handle: bigint,
640
+ callback: UniffiRustFutureContinuationCallback,
641
+ callbackData: bigint
642
+ ): void;
643
+ ubrn_ffi_bark_ffi_rust_future_cancel_void(handle: bigint): void;
644
+ ubrn_ffi_bark_ffi_rust_future_free_void(handle: bigint): void;
645
+ ubrn_ffi_bark_ffi_rust_future_complete_void(
646
+ handle: bigint,
647
+ uniffi_out_err: UniffiRustCallStatus
648
+ ): void;
487
649
  ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt(): number;
488
650
  ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic(): number;
489
651
  ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address(): number;
490
652
  ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic(): number;
653
+ ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait(): number;
654
+ ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification(): number;
491
655
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance(): number;
492
656
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address(): number;
493
657
  ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send(): number;
@@ -522,6 +686,7 @@ interface NativeModuleInterface {
522
686
  ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh(): number;
523
687
  ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits(): number;
524
688
  ubrn_uniffi_bark_ffi_checksum_method_wallet_history(): number;
689
+ ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method(): number;
525
690
  ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(): number;
526
691
  ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status(): number;
527
692
  ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits(): number;
@@ -537,12 +702,14 @@ interface NativeModuleInterface {
537
702
  ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address(): number;
538
703
  ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index(): number;
539
704
  ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time(): number;
705
+ ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications(): number;
540
706
  ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all(): number;
541
707
  ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos(): number;
542
708
  ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address(): number;
543
709
  ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice(): number;
544
710
  ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer(): number;
545
711
  ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address(): number;
712
+ ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address(): number;
546
713
  ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos(): number;
547
714
  ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards(): number;
548
715
  ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats(): number;
@@ -586,6 +753,10 @@ interface NativeModuleInterface {
586
753
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(): number;
587
754
  ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(): number;
588
755
  ubrn_ffi_bark_ffi_uniffi_contract_version(): number;
756
+ ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer(
757
+ pointer: bigint,
758
+ uniffi_out_err: UniffiRustCallStatus
759
+ ): UniffiGcObject;
589
760
  ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer(
590
761
  pointer: bigint,
591
762
  uniffi_out_err: UniffiRustCallStatus