breez-sdk-spark 0.2.4__cp38-cp38-macosx_11_0_universal2.whl → 0.2.6__cp38-cp38-macosx_11_0_universal2.whl
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.
Potentially problematic release.
This version of breez-sdk-spark might be problematic. Click here for more details.
- {breez_sdk_spark-0.2.4.data → breez_sdk_spark-0.2.6.data}/purelib/breez_sdk_spark/breez_sdk_spark.py +567 -64
- {breez_sdk_spark-0.2.4.data → breez_sdk_spark-0.2.6.data}/purelib/breez_sdk_spark/libbreez_sdk_spark_bindings.dylib +0 -0
- {breez_sdk_spark-0.2.4.dist-info → breez_sdk_spark-0.2.6.dist-info}/METADATA +1 -1
- breez_sdk_spark-0.2.6.dist-info/RECORD +9 -0
- breez_sdk_spark-0.2.4.dist-info/RECORD +0 -9
- {breez_sdk_spark-0.2.4.data → breez_sdk_spark-0.2.6.data}/purelib/breez_sdk_spark/__init__.py +0 -0
- {breez_sdk_spark-0.2.4.data → breez_sdk_spark-0.2.6.data}/purelib/breez_sdk_spark/breez_sdk_common.py +0 -0
- {breez_sdk_spark-0.2.4.data → breez_sdk_spark-0.2.6.data}/purelib/breez_sdk_spark/breez_sdk_spark_bindings.py +0 -0
- {breez_sdk_spark-0.2.4.dist-info → breez_sdk_spark-0.2.6.dist-info}/WHEEL +0 -0
- {breez_sdk_spark-0.2.4.dist-info → breez_sdk_spark-0.2.6.dist-info}/top_level.txt +0 -0
{breez_sdk_spark-0.2.4.data → breez_sdk_spark-0.2.6.data}/purelib/breez_sdk_spark/breez_sdk_spark.py
RENAMED
|
@@ -509,7 +509,7 @@ def _uniffi_check_api_checksums(lib):
|
|
|
509
509
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
510
510
|
if lib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction() != 65179:
|
|
511
511
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
512
|
-
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener() !=
|
|
512
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener() != 37737:
|
|
513
513
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
514
514
|
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available() != 31624:
|
|
515
515
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
@@ -517,7 +517,7 @@ def _uniffi_check_api_checksums(lib):
|
|
|
517
517
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
518
518
|
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address() != 44132:
|
|
519
519
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
520
|
-
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect() !=
|
|
520
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect() != 330:
|
|
521
521
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
522
522
|
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info() != 6771:
|
|
523
523
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
@@ -549,13 +549,21 @@ def _uniffi_check_api_checksums(lib):
|
|
|
549
549
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
550
550
|
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address() != 530:
|
|
551
551
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
552
|
-
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener() !=
|
|
552
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener() != 41066:
|
|
553
|
+
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
554
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bitcoin_address() != 5926:
|
|
555
|
+
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
556
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bolt11_invoice() != 21785:
|
|
553
557
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
554
558
|
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment() != 54349:
|
|
555
559
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
556
560
|
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment_internal() != 37855:
|
|
557
561
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
558
|
-
if lib.
|
|
562
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_spark_address() != 63147:
|
|
563
|
+
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
564
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet() != 30368:
|
|
565
|
+
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
566
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment() != 64922:
|
|
559
567
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
560
568
|
if lib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build() != 8126:
|
|
561
569
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
@@ -563,7 +571,7 @@ def _uniffi_check_api_checksums(lib):
|
|
|
563
571
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
564
572
|
if lib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_fiat_service() != 41113:
|
|
565
573
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
566
|
-
if lib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set() !=
|
|
574
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_key_set() != 42926:
|
|
567
575
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
568
576
|
if lib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_lnurl_client() != 61720:
|
|
569
577
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
@@ -583,17 +591,19 @@ def _uniffi_check_api_checksums(lib):
|
|
|
583
591
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
584
592
|
if lib.uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id() != 35394:
|
|
585
593
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
586
|
-
if lib.
|
|
594
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice() != 57075:
|
|
587
595
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
588
|
-
if lib.
|
|
596
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_storage_add_deposit() != 60240:
|
|
589
597
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
590
|
-
if lib.
|
|
598
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_storage_delete_deposit() != 60586:
|
|
591
599
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
592
|
-
if lib.
|
|
600
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_storage_list_deposits() != 54118:
|
|
601
|
+
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
602
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_storage_update_deposit() != 39803:
|
|
593
603
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
594
604
|
if lib.uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new() != 53882:
|
|
595
605
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
596
|
-
if lib.uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event() !=
|
|
606
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event() != 24807:
|
|
597
607
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
598
608
|
if lib.uniffi_breez_sdk_spark_checksum_method_logger_log() != 11839:
|
|
599
609
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
@@ -703,8 +713,7 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure):
|
|
|
703
713
|
]
|
|
704
714
|
_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiForeignFutureStructVoid,
|
|
705
715
|
)
|
|
706
|
-
_UNIFFI_CALLBACK_INTERFACE_EVENT_LISTENER_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.
|
|
707
|
-
ctypes.POINTER(_UniffiRustCallStatus),
|
|
716
|
+
_UNIFFI_CALLBACK_INTERFACE_EVENT_LISTENER_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
|
|
708
717
|
)
|
|
709
718
|
_UNIFFI_CALLBACK_INTERFACE_LOGGER_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_void_p,
|
|
710
719
|
ctypes.POINTER(_UniffiRustCallStatus),
|
|
@@ -731,13 +740,15 @@ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD5 = ctypes.CFUNCTYPE(None,ctypes.c_uint
|
|
|
731
740
|
)
|
|
732
741
|
_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD6 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
|
|
733
742
|
)
|
|
734
|
-
_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,
|
|
743
|
+
_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
|
|
744
|
+
)
|
|
745
|
+
_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
|
|
735
746
|
)
|
|
736
|
-
|
|
747
|
+
_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
|
|
737
748
|
)
|
|
738
|
-
|
|
749
|
+
_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD10 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
|
|
739
750
|
)
|
|
740
|
-
|
|
751
|
+
_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD11 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
|
|
741
752
|
)
|
|
742
753
|
class _UniffiVTableCallbackInterfaceEventListener(ctypes.Structure):
|
|
743
754
|
_fields_ = [
|
|
@@ -766,10 +777,11 @@ class _UniffiVTableCallbackInterfaceStorage(ctypes.Structure):
|
|
|
766
777
|
("insert_payment", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD4),
|
|
767
778
|
("set_payment_metadata", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD5),
|
|
768
779
|
("get_payment_by_id", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD6),
|
|
769
|
-
("
|
|
770
|
-
("
|
|
771
|
-
("
|
|
772
|
-
("
|
|
780
|
+
("get_payment_by_invoice", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7),
|
|
781
|
+
("add_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8),
|
|
782
|
+
("delete_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9),
|
|
783
|
+
("list_deposits", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD10),
|
|
784
|
+
("update_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD11),
|
|
773
785
|
("uniffi_free", _UNIFFI_CALLBACK_INTERFACE_FREE),
|
|
774
786
|
]
|
|
775
787
|
_UniffiLib.uniffi_breez_sdk_spark_fn_clone_bitcoinchainservice.argtypes = (
|
|
@@ -819,9 +831,8 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_free_breezsdk.restype = None
|
|
|
819
831
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener.argtypes = (
|
|
820
832
|
ctypes.c_void_p,
|
|
821
833
|
ctypes.c_uint64,
|
|
822
|
-
ctypes.POINTER(_UniffiRustCallStatus),
|
|
823
834
|
)
|
|
824
|
-
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener.restype =
|
|
835
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener.restype = ctypes.c_uint64
|
|
825
836
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available.argtypes = (
|
|
826
837
|
ctypes.c_void_p,
|
|
827
838
|
_UniffiRustBuffer,
|
|
@@ -838,9 +849,8 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address.ar
|
|
|
838
849
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address.restype = ctypes.c_uint64
|
|
839
850
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect.argtypes = (
|
|
840
851
|
ctypes.c_void_p,
|
|
841
|
-
ctypes.POINTER(_UniffiRustCallStatus),
|
|
842
852
|
)
|
|
843
|
-
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect.restype =
|
|
853
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect.restype = ctypes.c_uint64
|
|
844
854
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_info.argtypes = (
|
|
845
855
|
ctypes.c_void_p,
|
|
846
856
|
_UniffiRustBuffer,
|
|
@@ -917,9 +927,23 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_register_lightning_address.
|
|
|
917
927
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener.argtypes = (
|
|
918
928
|
ctypes.c_void_p,
|
|
919
929
|
_UniffiRustBuffer,
|
|
920
|
-
ctypes.POINTER(_UniffiRustCallStatus),
|
|
921
930
|
)
|
|
922
|
-
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener.restype = ctypes.
|
|
931
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener.restype = ctypes.c_uint64
|
|
932
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_bitcoin_address.argtypes = (
|
|
933
|
+
ctypes.c_void_p,
|
|
934
|
+
_UniffiRustBufferBitcoinAddressDetails,
|
|
935
|
+
_UniffiRustBuffer,
|
|
936
|
+
_UniffiRustBuffer,
|
|
937
|
+
)
|
|
938
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_bitcoin_address.restype = ctypes.c_uint64
|
|
939
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_bolt11_invoice.argtypes = (
|
|
940
|
+
ctypes.c_void_p,
|
|
941
|
+
_UniffiRustBufferBolt11InvoiceDetails,
|
|
942
|
+
_UniffiRustBuffer,
|
|
943
|
+
ctypes.c_uint64,
|
|
944
|
+
_UniffiRustBuffer,
|
|
945
|
+
)
|
|
946
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_bolt11_invoice.restype = ctypes.c_uint64
|
|
923
947
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment.argtypes = (
|
|
924
948
|
ctypes.c_void_p,
|
|
925
949
|
_UniffiRustBuffer,
|
|
@@ -931,12 +955,22 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment_internal.argty
|
|
|
931
955
|
ctypes.c_int8,
|
|
932
956
|
)
|
|
933
957
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment_internal.restype = ctypes.c_uint64
|
|
958
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_spark_address.argtypes = (
|
|
959
|
+
ctypes.c_void_p,
|
|
960
|
+
_UniffiRustBuffer,
|
|
961
|
+
_UniffiRustBuffer,
|
|
962
|
+
)
|
|
963
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_spark_address.restype = ctypes.c_uint64
|
|
934
964
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet.argtypes = (
|
|
935
965
|
ctypes.c_void_p,
|
|
936
966
|
_UniffiRustBuffer,
|
|
937
|
-
ctypes.POINTER(_UniffiRustCallStatus),
|
|
938
967
|
)
|
|
939
|
-
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet.restype =
|
|
968
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet.restype = ctypes.c_uint64
|
|
969
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_wait_for_payment.argtypes = (
|
|
970
|
+
ctypes.c_void_p,
|
|
971
|
+
_UniffiRustBuffer,
|
|
972
|
+
)
|
|
973
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_wait_for_payment.restype = ctypes.c_uint64
|
|
940
974
|
_UniffiLib.uniffi_breez_sdk_spark_fn_clone_sdkbuilder.argtypes = (
|
|
941
975
|
ctypes.c_void_p,
|
|
942
976
|
ctypes.POINTER(_UniffiRustCallStatus),
|
|
@@ -972,6 +1006,7 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_key_set.argtypes = (
|
|
|
972
1006
|
ctypes.c_void_p,
|
|
973
1007
|
_UniffiRustBuffer,
|
|
974
1008
|
ctypes.c_int8,
|
|
1009
|
+
_UniffiRustBuffer,
|
|
975
1010
|
)
|
|
976
1011
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_key_set.restype = ctypes.c_uint64
|
|
977
1012
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_lnurl_client.argtypes = (
|
|
@@ -1037,6 +1072,11 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_get_payment_by_id.argtypes =
|
|
|
1037
1072
|
_UniffiRustBuffer,
|
|
1038
1073
|
)
|
|
1039
1074
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_get_payment_by_id.restype = ctypes.c_uint64
|
|
1075
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_get_payment_by_invoice.argtypes = (
|
|
1076
|
+
ctypes.c_void_p,
|
|
1077
|
+
_UniffiRustBuffer,
|
|
1078
|
+
)
|
|
1079
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_get_payment_by_invoice.restype = ctypes.c_uint64
|
|
1040
1080
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_add_deposit.argtypes = (
|
|
1041
1081
|
ctypes.c_void_p,
|
|
1042
1082
|
_UniffiRustBuffer,
|
|
@@ -1452,15 +1492,27 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_ad
|
|
|
1452
1492
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener.argtypes = (
|
|
1453
1493
|
)
|
|
1454
1494
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener.restype = ctypes.c_uint16
|
|
1495
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bitcoin_address.argtypes = (
|
|
1496
|
+
)
|
|
1497
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bitcoin_address.restype = ctypes.c_uint16
|
|
1498
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bolt11_invoice.argtypes = (
|
|
1499
|
+
)
|
|
1500
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bolt11_invoice.restype = ctypes.c_uint16
|
|
1455
1501
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment.argtypes = (
|
|
1456
1502
|
)
|
|
1457
1503
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment.restype = ctypes.c_uint16
|
|
1458
1504
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment_internal.argtypes = (
|
|
1459
1505
|
)
|
|
1460
1506
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment_internal.restype = ctypes.c_uint16
|
|
1507
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_spark_address.argtypes = (
|
|
1508
|
+
)
|
|
1509
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_spark_address.restype = ctypes.c_uint16
|
|
1461
1510
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet.argtypes = (
|
|
1462
1511
|
)
|
|
1463
1512
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet.restype = ctypes.c_uint16
|
|
1513
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment.argtypes = (
|
|
1514
|
+
)
|
|
1515
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment.restype = ctypes.c_uint16
|
|
1464
1516
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build.argtypes = (
|
|
1465
1517
|
)
|
|
1466
1518
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_build.restype = ctypes.c_uint16
|
|
@@ -1500,6 +1552,9 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_set_payment_metadata.r
|
|
|
1500
1552
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id.argtypes = (
|
|
1501
1553
|
)
|
|
1502
1554
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_id.restype = ctypes.c_uint16
|
|
1555
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice.argtypes = (
|
|
1556
|
+
)
|
|
1557
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_get_payment_by_invoice.restype = ctypes.c_uint16
|
|
1503
1558
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_add_deposit.argtypes = (
|
|
1504
1559
|
)
|
|
1505
1560
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_add_deposit.restype = ctypes.c_uint16
|
|
@@ -2085,17 +2140,25 @@ class BreezSdkProtocol(typing.Protocol):
|
|
|
2085
2140
|
`true` if the listener was found and removed, `false` otherwise
|
|
2086
2141
|
"""
|
|
2087
2142
|
|
|
2143
|
+
raise NotImplementedError
|
|
2144
|
+
def send_bitcoin_address(self, address: "BitcoinAddressDetails",fee_quote: "SendOnchainFeeQuote",request: "SendPaymentRequest"):
|
|
2145
|
+
raise NotImplementedError
|
|
2146
|
+
def send_bolt11_invoice(self, invoice_details: "Bolt11InvoiceDetails",spark_transfer_fee_sats: "typing.Optional[int]",lightning_fee_sats: "int",request: "SendPaymentRequest"):
|
|
2088
2147
|
raise NotImplementedError
|
|
2089
2148
|
def send_payment(self, request: "SendPaymentRequest"):
|
|
2090
2149
|
raise NotImplementedError
|
|
2091
2150
|
def send_payment_internal(self, request: "SendPaymentRequest",suppress_payment_event: "bool"):
|
|
2092
2151
|
raise NotImplementedError
|
|
2152
|
+
def send_spark_address(self, address: "str",request: "SendPaymentRequest"):
|
|
2153
|
+
raise NotImplementedError
|
|
2093
2154
|
def sync_wallet(self, request: "SyncWalletRequest"):
|
|
2094
2155
|
"""
|
|
2095
2156
|
Synchronizes the wallet with the Spark network
|
|
2096
2157
|
"""
|
|
2097
2158
|
|
|
2098
2159
|
raise NotImplementedError
|
|
2160
|
+
def wait_for_payment(self, request: "WaitForPaymentRequest"):
|
|
2161
|
+
raise NotImplementedError
|
|
2099
2162
|
|
|
2100
2163
|
|
|
2101
2164
|
class BreezSdk:
|
|
@@ -2127,8 +2190,7 @@ class BreezSdk:
|
|
|
2127
2190
|
inst._pointer = pointer
|
|
2128
2191
|
return inst
|
|
2129
2192
|
|
|
2130
|
-
|
|
2131
|
-
def add_event_listener(self, listener: "EventListener") -> "str":
|
|
2193
|
+
async def add_event_listener(self, listener: "EventListener") -> "str":
|
|
2132
2194
|
"""
|
|
2133
2195
|
Registers a listener to receive SDK events
|
|
2134
2196
|
|
|
@@ -2143,11 +2205,22 @@ class BreezSdk:
|
|
|
2143
2205
|
|
|
2144
2206
|
_UniffiConverterTypeEventListener.check_lower(listener)
|
|
2145
2207
|
|
|
2146
|
-
return
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
)
|
|
2208
|
+
return await _uniffi_rust_call_async(
|
|
2209
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(
|
|
2210
|
+
self._uniffi_clone_pointer(),
|
|
2211
|
+
_UniffiConverterTypeEventListener.lower(listener)
|
|
2212
|
+
),
|
|
2213
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
|
|
2214
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
2215
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
2216
|
+
# lift function
|
|
2217
|
+
_UniffiConverterString.lift,
|
|
2218
|
+
|
|
2219
|
+
# Error FFI converter
|
|
2150
2220
|
|
|
2221
|
+
None,
|
|
2222
|
+
|
|
2223
|
+
)
|
|
2151
2224
|
|
|
2152
2225
|
|
|
2153
2226
|
|
|
@@ -2213,8 +2286,8 @@ _UniffiConverterTypeSdkError,
|
|
|
2213
2286
|
|
|
2214
2287
|
|
|
2215
2288
|
|
|
2289
|
+
async def disconnect(self, ) -> None:
|
|
2216
2290
|
|
|
2217
|
-
def disconnect(self, ) -> None:
|
|
2218
2291
|
"""
|
|
2219
2292
|
Stops the SDK's background tasks
|
|
2220
2293
|
|
|
@@ -2226,9 +2299,21 @@ _UniffiConverterTypeSdkError,
|
|
|
2226
2299
|
Result containing either success or an `SdkError` if the background task couldn't be stopped
|
|
2227
2300
|
"""
|
|
2228
2301
|
|
|
2229
|
-
|
|
2230
|
-
|
|
2302
|
+
return await _uniffi_rust_call_async(
|
|
2303
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect(
|
|
2304
|
+
self._uniffi_clone_pointer(),
|
|
2305
|
+
),
|
|
2306
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_void,
|
|
2307
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_void,
|
|
2308
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_free_void,
|
|
2309
|
+
# lift function
|
|
2310
|
+
lambda val: None,
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
# Error FFI converter
|
|
2314
|
+
_UniffiConverterTypeSdkError,
|
|
2231
2315
|
|
|
2316
|
+
)
|
|
2232
2317
|
|
|
2233
2318
|
|
|
2234
2319
|
|
|
@@ -2562,8 +2647,7 @@ _UniffiConverterTypeSdkError,
|
|
|
2562
2647
|
|
|
2563
2648
|
|
|
2564
2649
|
|
|
2565
|
-
|
|
2566
|
-
def remove_event_listener(self, id: "str") -> "bool":
|
|
2650
|
+
async def remove_event_listener(self, id: "str") -> "bool":
|
|
2567
2651
|
"""
|
|
2568
2652
|
Removes a previously registered event listener
|
|
2569
2653
|
|
|
@@ -2578,13 +2662,81 @@ _UniffiConverterTypeSdkError,
|
|
|
2578
2662
|
|
|
2579
2663
|
_UniffiConverterString.check_lower(id)
|
|
2580
2664
|
|
|
2581
|
-
return
|
|
2582
|
-
|
|
2583
|
-
|
|
2665
|
+
return await _uniffi_rust_call_async(
|
|
2666
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(
|
|
2667
|
+
self._uniffi_clone_pointer(),
|
|
2668
|
+
_UniffiConverterString.lower(id)
|
|
2669
|
+
),
|
|
2670
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_i8,
|
|
2671
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_i8,
|
|
2672
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_free_i8,
|
|
2673
|
+
# lift function
|
|
2674
|
+
_UniffiConverterBool.lift,
|
|
2675
|
+
|
|
2676
|
+
# Error FFI converter
|
|
2677
|
+
|
|
2678
|
+
None,
|
|
2679
|
+
|
|
2680
|
+
)
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
|
|
2684
|
+
async def send_bitcoin_address(self, address: "BitcoinAddressDetails",fee_quote: "SendOnchainFeeQuote",request: "SendPaymentRequest") -> "SendPaymentResponse":
|
|
2685
|
+
_UniffiConverterTypeBitcoinAddressDetails.check_lower(address)
|
|
2686
|
+
|
|
2687
|
+
_UniffiConverterTypeSendOnchainFeeQuote.check_lower(fee_quote)
|
|
2688
|
+
|
|
2689
|
+
_UniffiConverterTypeSendPaymentRequest.check_lower(request)
|
|
2690
|
+
|
|
2691
|
+
return await _uniffi_rust_call_async(
|
|
2692
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_bitcoin_address(
|
|
2693
|
+
self._uniffi_clone_pointer(),
|
|
2694
|
+
_UniffiConverterTypeBitcoinAddressDetails.lower(address),
|
|
2695
|
+
_UniffiConverterTypeSendOnchainFeeQuote.lower(fee_quote),
|
|
2696
|
+
_UniffiConverterTypeSendPaymentRequest.lower(request)
|
|
2697
|
+
),
|
|
2698
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
|
|
2699
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
2700
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
2701
|
+
# lift function
|
|
2702
|
+
_UniffiConverterTypeSendPaymentResponse.lift,
|
|
2703
|
+
|
|
2704
|
+
# Error FFI converter
|
|
2705
|
+
_UniffiConverterTypeSdkError,
|
|
2706
|
+
|
|
2584
2707
|
)
|
|
2585
2708
|
|
|
2586
2709
|
|
|
2587
2710
|
|
|
2711
|
+
async def send_bolt11_invoice(self, invoice_details: "Bolt11InvoiceDetails",spark_transfer_fee_sats: "typing.Optional[int]",lightning_fee_sats: "int",request: "SendPaymentRequest") -> "SendPaymentResponse":
|
|
2712
|
+
_UniffiConverterTypeBolt11InvoiceDetails.check_lower(invoice_details)
|
|
2713
|
+
|
|
2714
|
+
_UniffiConverterOptionalUInt64.check_lower(spark_transfer_fee_sats)
|
|
2715
|
+
|
|
2716
|
+
_UniffiConverterUInt64.check_lower(lightning_fee_sats)
|
|
2717
|
+
|
|
2718
|
+
_UniffiConverterTypeSendPaymentRequest.check_lower(request)
|
|
2719
|
+
|
|
2720
|
+
return await _uniffi_rust_call_async(
|
|
2721
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_bolt11_invoice(
|
|
2722
|
+
self._uniffi_clone_pointer(),
|
|
2723
|
+
_UniffiConverterTypeBolt11InvoiceDetails.lower(invoice_details),
|
|
2724
|
+
_UniffiConverterOptionalUInt64.lower(spark_transfer_fee_sats),
|
|
2725
|
+
_UniffiConverterUInt64.lower(lightning_fee_sats),
|
|
2726
|
+
_UniffiConverterTypeSendPaymentRequest.lower(request)
|
|
2727
|
+
),
|
|
2728
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
|
|
2729
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
2730
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
2731
|
+
# lift function
|
|
2732
|
+
_UniffiConverterTypeSendPaymentResponse.lift,
|
|
2733
|
+
|
|
2734
|
+
# Error FFI converter
|
|
2735
|
+
_UniffiConverterTypeSdkError,
|
|
2736
|
+
|
|
2737
|
+
)
|
|
2738
|
+
|
|
2739
|
+
|
|
2588
2740
|
|
|
2589
2741
|
async def send_payment(self, request: "SendPaymentRequest") -> "SendPaymentResponse":
|
|
2590
2742
|
_UniffiConverterTypeSendPaymentRequest.check_lower(request)
|
|
@@ -2631,21 +2783,75 @@ _UniffiConverterTypeSdkError,
|
|
|
2631
2783
|
|
|
2632
2784
|
|
|
2633
2785
|
|
|
2786
|
+
async def send_spark_address(self, address: "str",request: "SendPaymentRequest") -> "SendPaymentResponse":
|
|
2787
|
+
_UniffiConverterString.check_lower(address)
|
|
2788
|
+
|
|
2789
|
+
_UniffiConverterTypeSendPaymentRequest.check_lower(request)
|
|
2790
|
+
|
|
2791
|
+
return await _uniffi_rust_call_async(
|
|
2792
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_send_spark_address(
|
|
2793
|
+
self._uniffi_clone_pointer(),
|
|
2794
|
+
_UniffiConverterString.lower(address),
|
|
2795
|
+
_UniffiConverterTypeSendPaymentRequest.lower(request)
|
|
2796
|
+
),
|
|
2797
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
|
|
2798
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
2799
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
2800
|
+
# lift function
|
|
2801
|
+
_UniffiConverterTypeSendPaymentResponse.lift,
|
|
2802
|
+
|
|
2803
|
+
# Error FFI converter
|
|
2804
|
+
_UniffiConverterTypeSdkError,
|
|
2805
|
+
|
|
2806
|
+
)
|
|
2807
|
+
|
|
2808
|
+
|
|
2634
2809
|
|
|
2635
|
-
def sync_wallet(self, request: "SyncWalletRequest") -> "SyncWalletResponse":
|
|
2810
|
+
async def sync_wallet(self, request: "SyncWalletRequest") -> "SyncWalletResponse":
|
|
2636
2811
|
"""
|
|
2637
2812
|
Synchronizes the wallet with the Spark network
|
|
2638
2813
|
"""
|
|
2639
2814
|
|
|
2640
2815
|
_UniffiConverterTypeSyncWalletRequest.check_lower(request)
|
|
2641
2816
|
|
|
2642
|
-
return
|
|
2643
|
-
|
|
2644
|
-
|
|
2817
|
+
return await _uniffi_rust_call_async(
|
|
2818
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
|
|
2819
|
+
self._uniffi_clone_pointer(),
|
|
2820
|
+
_UniffiConverterTypeSyncWalletRequest.lower(request)
|
|
2821
|
+
),
|
|
2822
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
|
|
2823
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
2824
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
2825
|
+
# lift function
|
|
2826
|
+
_UniffiConverterTypeSyncWalletResponse.lift,
|
|
2827
|
+
|
|
2828
|
+
# Error FFI converter
|
|
2829
|
+
_UniffiConverterTypeSdkError,
|
|
2830
|
+
|
|
2645
2831
|
)
|
|
2646
2832
|
|
|
2647
2833
|
|
|
2648
2834
|
|
|
2835
|
+
async def wait_for_payment(self, request: "WaitForPaymentRequest") -> "WaitForPaymentResponse":
|
|
2836
|
+
_UniffiConverterTypeWaitForPaymentRequest.check_lower(request)
|
|
2837
|
+
|
|
2838
|
+
return await _uniffi_rust_call_async(
|
|
2839
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_wait_for_payment(
|
|
2840
|
+
self._uniffi_clone_pointer(),
|
|
2841
|
+
_UniffiConverterTypeWaitForPaymentRequest.lower(request)
|
|
2842
|
+
),
|
|
2843
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
|
|
2844
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
2845
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
2846
|
+
# lift function
|
|
2847
|
+
_UniffiConverterTypeWaitForPaymentResponse.lift,
|
|
2848
|
+
|
|
2849
|
+
# Error FFI converter
|
|
2850
|
+
_UniffiConverterTypeSdkError,
|
|
2851
|
+
|
|
2852
|
+
)
|
|
2853
|
+
|
|
2854
|
+
|
|
2649
2855
|
|
|
2650
2856
|
|
|
2651
2857
|
|
|
@@ -2706,7 +2912,7 @@ class SdkBuilderProtocol(typing.Protocol):
|
|
|
2706
2912
|
"""
|
|
2707
2913
|
|
|
2708
2914
|
raise NotImplementedError
|
|
2709
|
-
def with_key_set(self, key_set_type: "KeySetType",use_address_index: "bool"):
|
|
2915
|
+
def with_key_set(self, key_set_type: "KeySetType",use_address_index: "bool",account_number: "typing.Optional[int]"):
|
|
2710
2916
|
"""
|
|
2711
2917
|
Sets the key set type to be used by the SDK.
|
|
2712
2918
|
Arguments:
|
|
@@ -2854,7 +3060,7 @@ _UniffiConverterTypeSdkError,
|
|
|
2854
3060
|
|
|
2855
3061
|
|
|
2856
3062
|
|
|
2857
|
-
async def with_key_set(self, key_set_type: "KeySetType",use_address_index: "bool") -> None:
|
|
3063
|
+
async def with_key_set(self, key_set_type: "KeySetType",use_address_index: "bool",account_number: "typing.Optional[int]") -> None:
|
|
2858
3064
|
|
|
2859
3065
|
"""
|
|
2860
3066
|
Sets the key set type to be used by the SDK.
|
|
@@ -2867,11 +3073,14 @@ _UniffiConverterTypeSdkError,
|
|
|
2867
3073
|
|
|
2868
3074
|
_UniffiConverterBool.check_lower(use_address_index)
|
|
2869
3075
|
|
|
3076
|
+
_UniffiConverterOptionalUInt32.check_lower(account_number)
|
|
3077
|
+
|
|
2870
3078
|
return await _uniffi_rust_call_async(
|
|
2871
3079
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_key_set(
|
|
2872
3080
|
self._uniffi_clone_pointer(),
|
|
2873
3081
|
_UniffiConverterTypeKeySetType.lower(key_set_type),
|
|
2874
|
-
_UniffiConverterBool.lower(use_address_index)
|
|
3082
|
+
_UniffiConverterBool.lower(use_address_index),
|
|
3083
|
+
_UniffiConverterOptionalUInt32.lower(account_number)
|
|
2875
3084
|
),
|
|
2876
3085
|
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_void,
|
|
2877
3086
|
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_void,
|
|
@@ -3045,6 +3254,18 @@ class Storage(typing.Protocol):
|
|
|
3045
3254
|
The payment if found or None if not found
|
|
3046
3255
|
"""
|
|
3047
3256
|
|
|
3257
|
+
raise NotImplementedError
|
|
3258
|
+
def get_payment_by_invoice(self, invoice: "str"):
|
|
3259
|
+
"""
|
|
3260
|
+
Gets a payment by its invoice
|
|
3261
|
+
# Arguments
|
|
3262
|
+
|
|
3263
|
+
* `invoice` - The invoice of the payment to retrieve
|
|
3264
|
+
# Returns
|
|
3265
|
+
|
|
3266
|
+
The payment if found or None if not found
|
|
3267
|
+
"""
|
|
3268
|
+
|
|
3048
3269
|
raise NotImplementedError
|
|
3049
3270
|
def add_deposit(self, txid: "str",vout: "int",amount_sats: "int"):
|
|
3050
3271
|
"""
|
|
@@ -3342,6 +3563,37 @@ _UniffiConverterTypeStorageError,
|
|
|
3342
3563
|
|
|
3343
3564
|
|
|
3344
3565
|
|
|
3566
|
+
async def get_payment_by_invoice(self, invoice: "str") -> "typing.Optional[Payment]":
|
|
3567
|
+
"""
|
|
3568
|
+
Gets a payment by its invoice
|
|
3569
|
+
# Arguments
|
|
3570
|
+
|
|
3571
|
+
* `invoice` - The invoice of the payment to retrieve
|
|
3572
|
+
# Returns
|
|
3573
|
+
|
|
3574
|
+
The payment if found or None if not found
|
|
3575
|
+
"""
|
|
3576
|
+
|
|
3577
|
+
_UniffiConverterString.check_lower(invoice)
|
|
3578
|
+
|
|
3579
|
+
return await _uniffi_rust_call_async(
|
|
3580
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_get_payment_by_invoice(
|
|
3581
|
+
self._uniffi_clone_pointer(),
|
|
3582
|
+
_UniffiConverterString.lower(invoice)
|
|
3583
|
+
),
|
|
3584
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
|
|
3585
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
3586
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
3587
|
+
# lift function
|
|
3588
|
+
_UniffiConverterOptionalTypePayment.lift,
|
|
3589
|
+
|
|
3590
|
+
# Error FFI converter
|
|
3591
|
+
_UniffiConverterTypeStorageError,
|
|
3592
|
+
|
|
3593
|
+
)
|
|
3594
|
+
|
|
3595
|
+
|
|
3596
|
+
|
|
3345
3597
|
async def add_deposit(self, txid: "str",vout: "int",amount_sats: "int") -> None:
|
|
3346
3598
|
|
|
3347
3599
|
"""
|
|
@@ -3728,6 +3980,40 @@ class _UniffiTraitImplStorage:
|
|
|
3728
3980
|
uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
|
|
3729
3981
|
|
|
3730
3982
|
@_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD7
|
|
3983
|
+
def get_payment_by_invoice(
|
|
3984
|
+
uniffi_handle,
|
|
3985
|
+
invoice,
|
|
3986
|
+
uniffi_future_callback,
|
|
3987
|
+
uniffi_callback_data,
|
|
3988
|
+
uniffi_out_return,
|
|
3989
|
+
):
|
|
3990
|
+
uniffi_obj = _UniffiConverterTypeStorage._handle_map.get(uniffi_handle)
|
|
3991
|
+
def make_call():
|
|
3992
|
+
args = (_UniffiConverterString.lift(invoice), )
|
|
3993
|
+
method = uniffi_obj.get_payment_by_invoice
|
|
3994
|
+
return method(*args)
|
|
3995
|
+
|
|
3996
|
+
|
|
3997
|
+
def handle_success(return_value):
|
|
3998
|
+
uniffi_future_callback(
|
|
3999
|
+
uniffi_callback_data,
|
|
4000
|
+
_UniffiForeignFutureStructRustBuffer(
|
|
4001
|
+
_UniffiConverterOptionalTypePayment.lower(return_value),
|
|
4002
|
+
_UniffiRustCallStatus.default()
|
|
4003
|
+
)
|
|
4004
|
+
)
|
|
4005
|
+
|
|
4006
|
+
def handle_error(status_code, rust_buffer):
|
|
4007
|
+
uniffi_future_callback(
|
|
4008
|
+
uniffi_callback_data,
|
|
4009
|
+
_UniffiForeignFutureStructRustBuffer(
|
|
4010
|
+
_UniffiRustBuffer.default(),
|
|
4011
|
+
_UniffiRustCallStatus(status_code, rust_buffer),
|
|
4012
|
+
)
|
|
4013
|
+
)
|
|
4014
|
+
uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
|
|
4015
|
+
|
|
4016
|
+
@_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD8
|
|
3731
4017
|
def add_deposit(
|
|
3732
4018
|
uniffi_handle,
|
|
3733
4019
|
txid,
|
|
@@ -3761,7 +4047,7 @@ class _UniffiTraitImplStorage:
|
|
|
3761
4047
|
)
|
|
3762
4048
|
uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
|
|
3763
4049
|
|
|
3764
|
-
@
|
|
4050
|
+
@_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9
|
|
3765
4051
|
def delete_deposit(
|
|
3766
4052
|
uniffi_handle,
|
|
3767
4053
|
txid,
|
|
@@ -3794,7 +4080,7 @@ class _UniffiTraitImplStorage:
|
|
|
3794
4080
|
)
|
|
3795
4081
|
uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
|
|
3796
4082
|
|
|
3797
|
-
@
|
|
4083
|
+
@_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD10
|
|
3798
4084
|
def list_deposits(
|
|
3799
4085
|
uniffi_handle,
|
|
3800
4086
|
uniffi_future_callback,
|
|
@@ -3827,7 +4113,7 @@ class _UniffiTraitImplStorage:
|
|
|
3827
4113
|
)
|
|
3828
4114
|
uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
|
|
3829
4115
|
|
|
3830
|
-
@
|
|
4116
|
+
@_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD11
|
|
3831
4117
|
def update_deposit(
|
|
3832
4118
|
uniffi_handle,
|
|
3833
4119
|
txid,
|
|
@@ -3874,6 +4160,7 @@ class _UniffiTraitImplStorage:
|
|
|
3874
4160
|
insert_payment,
|
|
3875
4161
|
set_payment_metadata,
|
|
3876
4162
|
get_payment_by_id,
|
|
4163
|
+
get_payment_by_invoice,
|
|
3877
4164
|
add_deposit,
|
|
3878
4165
|
delete_deposit,
|
|
3879
4166
|
list_deposits,
|
|
@@ -4239,26 +4526,32 @@ class GetInfoRequest:
|
|
|
4239
4526
|
Request to get the balance of the wallet
|
|
4240
4527
|
"""
|
|
4241
4528
|
|
|
4529
|
+
ensure_synced: "typing.Optional[bool]"
|
|
4530
|
+
def __init__(self, *, ensure_synced: "typing.Optional[bool]"):
|
|
4531
|
+
self.ensure_synced = ensure_synced
|
|
4242
4532
|
|
|
4243
4533
|
def __str__(self):
|
|
4244
|
-
return "GetInfoRequest()".format()
|
|
4534
|
+
return "GetInfoRequest(ensure_synced={})".format(self.ensure_synced)
|
|
4245
4535
|
|
|
4246
4536
|
def __eq__(self, other):
|
|
4537
|
+
if self.ensure_synced != other.ensure_synced:
|
|
4538
|
+
return False
|
|
4247
4539
|
return True
|
|
4248
4540
|
|
|
4249
4541
|
class _UniffiConverterTypeGetInfoRequest(_UniffiConverterRustBuffer):
|
|
4250
4542
|
@staticmethod
|
|
4251
4543
|
def read(buf):
|
|
4252
4544
|
return GetInfoRequest(
|
|
4545
|
+
ensure_synced=_UniffiConverterOptionalBool.read(buf),
|
|
4253
4546
|
)
|
|
4254
4547
|
|
|
4255
4548
|
@staticmethod
|
|
4256
4549
|
def check_lower(value):
|
|
4257
|
-
|
|
4550
|
+
_UniffiConverterOptionalBool.check_lower(value.ensure_synced)
|
|
4258
4551
|
|
|
4259
4552
|
@staticmethod
|
|
4260
4553
|
def write(value, buf):
|
|
4261
|
-
|
|
4554
|
+
_UniffiConverterOptionalBool.write(value.ensure_synced, buf)
|
|
4262
4555
|
|
|
4263
4556
|
|
|
4264
4557
|
class GetInfoResponse:
|
|
@@ -5640,6 +5933,64 @@ class _UniffiConverterTypeUtxo(_UniffiConverterRustBuffer):
|
|
|
5640
5933
|
_UniffiConverterTypeTxStatus.write(value.status, buf)
|
|
5641
5934
|
|
|
5642
5935
|
|
|
5936
|
+
class WaitForPaymentRequest:
|
|
5937
|
+
identifier: "WaitForPaymentIdentifier"
|
|
5938
|
+
def __init__(self, *, identifier: "WaitForPaymentIdentifier"):
|
|
5939
|
+
self.identifier = identifier
|
|
5940
|
+
|
|
5941
|
+
def __str__(self):
|
|
5942
|
+
return "WaitForPaymentRequest(identifier={})".format(self.identifier)
|
|
5943
|
+
|
|
5944
|
+
def __eq__(self, other):
|
|
5945
|
+
if self.identifier != other.identifier:
|
|
5946
|
+
return False
|
|
5947
|
+
return True
|
|
5948
|
+
|
|
5949
|
+
class _UniffiConverterTypeWaitForPaymentRequest(_UniffiConverterRustBuffer):
|
|
5950
|
+
@staticmethod
|
|
5951
|
+
def read(buf):
|
|
5952
|
+
return WaitForPaymentRequest(
|
|
5953
|
+
identifier=_UniffiConverterTypeWaitForPaymentIdentifier.read(buf),
|
|
5954
|
+
)
|
|
5955
|
+
|
|
5956
|
+
@staticmethod
|
|
5957
|
+
def check_lower(value):
|
|
5958
|
+
_UniffiConverterTypeWaitForPaymentIdentifier.check_lower(value.identifier)
|
|
5959
|
+
|
|
5960
|
+
@staticmethod
|
|
5961
|
+
def write(value, buf):
|
|
5962
|
+
_UniffiConverterTypeWaitForPaymentIdentifier.write(value.identifier, buf)
|
|
5963
|
+
|
|
5964
|
+
|
|
5965
|
+
class WaitForPaymentResponse:
|
|
5966
|
+
payment: "Payment"
|
|
5967
|
+
def __init__(self, *, payment: "Payment"):
|
|
5968
|
+
self.payment = payment
|
|
5969
|
+
|
|
5970
|
+
def __str__(self):
|
|
5971
|
+
return "WaitForPaymentResponse(payment={})".format(self.payment)
|
|
5972
|
+
|
|
5973
|
+
def __eq__(self, other):
|
|
5974
|
+
if self.payment != other.payment:
|
|
5975
|
+
return False
|
|
5976
|
+
return True
|
|
5977
|
+
|
|
5978
|
+
class _UniffiConverterTypeWaitForPaymentResponse(_UniffiConverterRustBuffer):
|
|
5979
|
+
@staticmethod
|
|
5980
|
+
def read(buf):
|
|
5981
|
+
return WaitForPaymentResponse(
|
|
5982
|
+
payment=_UniffiConverterTypePayment.read(buf),
|
|
5983
|
+
)
|
|
5984
|
+
|
|
5985
|
+
@staticmethod
|
|
5986
|
+
def check_lower(value):
|
|
5987
|
+
_UniffiConverterTypePayment.check_lower(value.payment)
|
|
5988
|
+
|
|
5989
|
+
@staticmethod
|
|
5990
|
+
def write(value, buf):
|
|
5991
|
+
_UniffiConverterTypePayment.write(value.payment, buf)
|
|
5992
|
+
|
|
5993
|
+
|
|
5643
5994
|
# ChainServiceError
|
|
5644
5995
|
# We want to define each variant as a nested class that's also a subclass,
|
|
5645
5996
|
# which is tricky in Python. To accomplish this we're going to create each
|
|
@@ -7440,18 +7791,27 @@ class SendPaymentOptions:
|
|
|
7440
7791
|
|
|
7441
7792
|
class BOLT11_INVOICE:
|
|
7442
7793
|
prefer_spark: "bool"
|
|
7794
|
+
completion_timeout_secs: "typing.Optional[int]"
|
|
7795
|
+
"""
|
|
7796
|
+
If set, the function will return the payment if it is still pending after this
|
|
7797
|
+
number of seconds. If unset, the function will return immediately after initiating the payment.
|
|
7798
|
+
"""
|
|
7443
7799
|
|
|
7444
|
-
|
|
7800
|
+
|
|
7801
|
+
def __init__(self,prefer_spark: "bool", completion_timeout_secs: "typing.Optional[int]"):
|
|
7445
7802
|
self.prefer_spark = prefer_spark
|
|
7803
|
+
self.completion_timeout_secs = completion_timeout_secs
|
|
7446
7804
|
|
|
7447
7805
|
def __str__(self):
|
|
7448
|
-
return "SendPaymentOptions.BOLT11_INVOICE(prefer_spark={})".format(self.prefer_spark)
|
|
7806
|
+
return "SendPaymentOptions.BOLT11_INVOICE(prefer_spark={}, completion_timeout_secs={})".format(self.prefer_spark, self.completion_timeout_secs)
|
|
7449
7807
|
|
|
7450
7808
|
def __eq__(self, other):
|
|
7451
7809
|
if not other.is_bolt11_invoice():
|
|
7452
7810
|
return False
|
|
7453
7811
|
if self.prefer_spark != other.prefer_spark:
|
|
7454
7812
|
return False
|
|
7813
|
+
if self.completion_timeout_secs != other.completion_timeout_secs:
|
|
7814
|
+
return False
|
|
7455
7815
|
return True
|
|
7456
7816
|
|
|
7457
7817
|
|
|
@@ -7484,6 +7844,7 @@ class _UniffiConverterTypeSendPaymentOptions(_UniffiConverterRustBuffer):
|
|
|
7484
7844
|
if variant == 2:
|
|
7485
7845
|
return SendPaymentOptions.BOLT11_INVOICE(
|
|
7486
7846
|
_UniffiConverterBool.read(buf),
|
|
7847
|
+
_UniffiConverterOptionalUInt32.read(buf),
|
|
7487
7848
|
)
|
|
7488
7849
|
raise InternalError("Raw enum value doesn't match any cases")
|
|
7489
7850
|
|
|
@@ -7494,6 +7855,7 @@ class _UniffiConverterTypeSendPaymentOptions(_UniffiConverterRustBuffer):
|
|
|
7494
7855
|
return
|
|
7495
7856
|
if value.is_bolt11_invoice():
|
|
7496
7857
|
_UniffiConverterBool.check_lower(value.prefer_spark)
|
|
7858
|
+
_UniffiConverterOptionalUInt32.check_lower(value.completion_timeout_secs)
|
|
7497
7859
|
return
|
|
7498
7860
|
raise ValueError(value)
|
|
7499
7861
|
|
|
@@ -7505,6 +7867,7 @@ class _UniffiConverterTypeSendPaymentOptions(_UniffiConverterRustBuffer):
|
|
|
7505
7867
|
if value.is_bolt11_invoice():
|
|
7506
7868
|
buf.write_i32(2)
|
|
7507
7869
|
_UniffiConverterBool.write(value.prefer_spark, buf)
|
|
7870
|
+
_UniffiConverterOptionalUInt32.write(value.completion_timeout_secs, buf)
|
|
7508
7871
|
|
|
7509
7872
|
|
|
7510
7873
|
|
|
@@ -7729,6 +8092,105 @@ class _UniffiConverterTypeUpdateDepositPayload(_UniffiConverterRustBuffer):
|
|
|
7729
8092
|
|
|
7730
8093
|
|
|
7731
8094
|
|
|
8095
|
+
|
|
8096
|
+
|
|
8097
|
+
class WaitForPaymentIdentifier:
|
|
8098
|
+
def __init__(self):
|
|
8099
|
+
raise RuntimeError("WaitForPaymentIdentifier cannot be instantiated directly")
|
|
8100
|
+
|
|
8101
|
+
# Each enum variant is a nested class of the enum itself.
|
|
8102
|
+
class PAYMENT_ID:
|
|
8103
|
+
def __init__(self, *values):
|
|
8104
|
+
if len(values) != 1:
|
|
8105
|
+
raise TypeError(f"Expected 1 arguments, found {len(values)}")
|
|
8106
|
+
if not isinstance(values[0], str):
|
|
8107
|
+
raise TypeError(f"unexpected type for tuple element 0 - expected 'str', got '{type(values[0])}'")
|
|
8108
|
+
self._values = values
|
|
8109
|
+
|
|
8110
|
+
def __getitem__(self, index):
|
|
8111
|
+
return self._values[index]
|
|
8112
|
+
|
|
8113
|
+
def __str__(self):
|
|
8114
|
+
return f"WaitForPaymentIdentifier.PAYMENT_ID{self._values!r}"
|
|
8115
|
+
|
|
8116
|
+
def __eq__(self, other):
|
|
8117
|
+
if not other.is_payment_id():
|
|
8118
|
+
return False
|
|
8119
|
+
return self._values == other._values
|
|
8120
|
+
class PAYMENT_REQUEST:
|
|
8121
|
+
def __init__(self, *values):
|
|
8122
|
+
if len(values) != 1:
|
|
8123
|
+
raise TypeError(f"Expected 1 arguments, found {len(values)}")
|
|
8124
|
+
if not isinstance(values[0], str):
|
|
8125
|
+
raise TypeError(f"unexpected type for tuple element 0 - expected 'str', got '{type(values[0])}'")
|
|
8126
|
+
self._values = values
|
|
8127
|
+
|
|
8128
|
+
def __getitem__(self, index):
|
|
8129
|
+
return self._values[index]
|
|
8130
|
+
|
|
8131
|
+
def __str__(self):
|
|
8132
|
+
return f"WaitForPaymentIdentifier.PAYMENT_REQUEST{self._values!r}"
|
|
8133
|
+
|
|
8134
|
+
def __eq__(self, other):
|
|
8135
|
+
if not other.is_payment_request():
|
|
8136
|
+
return False
|
|
8137
|
+
return self._values == other._values
|
|
8138
|
+
|
|
8139
|
+
|
|
8140
|
+
# For each variant, we have an `is_NAME` method for easily checking
|
|
8141
|
+
# whether an instance is that variant.
|
|
8142
|
+
def is_payment_id(self) -> bool:
|
|
8143
|
+
return isinstance(self, WaitForPaymentIdentifier.PAYMENT_ID)
|
|
8144
|
+
def is_payment_request(self) -> bool:
|
|
8145
|
+
return isinstance(self, WaitForPaymentIdentifier.PAYMENT_REQUEST)
|
|
8146
|
+
|
|
8147
|
+
|
|
8148
|
+
# Now, a little trick - we make each nested variant class be a subclass of the main
|
|
8149
|
+
# enum class, so that method calls and instance checks etc will work intuitively.
|
|
8150
|
+
# We might be able to do this a little more neatly with a metaclass, but this'll do.
|
|
8151
|
+
WaitForPaymentIdentifier.PAYMENT_ID = type("WaitForPaymentIdentifier.PAYMENT_ID", (WaitForPaymentIdentifier.PAYMENT_ID, WaitForPaymentIdentifier,), {}) # type: ignore
|
|
8152
|
+
WaitForPaymentIdentifier.PAYMENT_REQUEST = type("WaitForPaymentIdentifier.PAYMENT_REQUEST", (WaitForPaymentIdentifier.PAYMENT_REQUEST, WaitForPaymentIdentifier,), {}) # type: ignore
|
|
8153
|
+
|
|
8154
|
+
|
|
8155
|
+
|
|
8156
|
+
|
|
8157
|
+
class _UniffiConverterTypeWaitForPaymentIdentifier(_UniffiConverterRustBuffer):
|
|
8158
|
+
@staticmethod
|
|
8159
|
+
def read(buf):
|
|
8160
|
+
variant = buf.read_i32()
|
|
8161
|
+
if variant == 1:
|
|
8162
|
+
return WaitForPaymentIdentifier.PAYMENT_ID(
|
|
8163
|
+
_UniffiConverterString.read(buf),
|
|
8164
|
+
)
|
|
8165
|
+
if variant == 2:
|
|
8166
|
+
return WaitForPaymentIdentifier.PAYMENT_REQUEST(
|
|
8167
|
+
_UniffiConverterString.read(buf),
|
|
8168
|
+
)
|
|
8169
|
+
raise InternalError("Raw enum value doesn't match any cases")
|
|
8170
|
+
|
|
8171
|
+
@staticmethod
|
|
8172
|
+
def check_lower(value):
|
|
8173
|
+
if value.is_payment_id():
|
|
8174
|
+
_UniffiConverterString.check_lower(value._values[0])
|
|
8175
|
+
return
|
|
8176
|
+
if value.is_payment_request():
|
|
8177
|
+
_UniffiConverterString.check_lower(value._values[0])
|
|
8178
|
+
return
|
|
8179
|
+
raise ValueError(value)
|
|
8180
|
+
|
|
8181
|
+
@staticmethod
|
|
8182
|
+
def write(value, buf):
|
|
8183
|
+
if value.is_payment_id():
|
|
8184
|
+
buf.write_i32(1)
|
|
8185
|
+
_UniffiConverterString.write(value._values[0], buf)
|
|
8186
|
+
if value.is_payment_request():
|
|
8187
|
+
buf.write_i32(2)
|
|
8188
|
+
_UniffiConverterString.write(value._values[0], buf)
|
|
8189
|
+
|
|
8190
|
+
|
|
8191
|
+
|
|
8192
|
+
|
|
8193
|
+
|
|
7732
8194
|
class EventListener(typing.Protocol):
|
|
7733
8195
|
"""
|
|
7734
8196
|
Trait for event listeners
|
|
@@ -7750,8 +8212,9 @@ class _UniffiTraitImplEventListener:
|
|
|
7750
8212
|
def on_event(
|
|
7751
8213
|
uniffi_handle,
|
|
7752
8214
|
event,
|
|
8215
|
+
uniffi_future_callback,
|
|
8216
|
+
uniffi_callback_data,
|
|
7753
8217
|
uniffi_out_return,
|
|
7754
|
-
uniffi_call_status_ptr,
|
|
7755
8218
|
):
|
|
7756
8219
|
uniffi_obj = _UniffiConverterTypeEventListener._handle_map.get(uniffi_handle)
|
|
7757
8220
|
def make_call():
|
|
@@ -7760,12 +8223,22 @@ class _UniffiTraitImplEventListener:
|
|
|
7760
8223
|
return method(*args)
|
|
7761
8224
|
|
|
7762
8225
|
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
8226
|
+
def handle_success(return_value):
|
|
8227
|
+
uniffi_future_callback(
|
|
8228
|
+
uniffi_callback_data,
|
|
8229
|
+
_UniffiForeignFutureStructVoid(
|
|
8230
|
+
_UniffiRustCallStatus.default()
|
|
8231
|
+
)
|
|
8232
|
+
)
|
|
8233
|
+
|
|
8234
|
+
def handle_error(status_code, rust_buffer):
|
|
8235
|
+
uniffi_future_callback(
|
|
8236
|
+
uniffi_callback_data,
|
|
8237
|
+
_UniffiForeignFutureStructVoid(
|
|
8238
|
+
_UniffiRustCallStatus(status_code, rust_buffer),
|
|
8239
|
+
)
|
|
8240
|
+
)
|
|
8241
|
+
uniffi_out_return[0] = _uniffi_trait_interface_call_async(make_call, handle_success, handle_error)
|
|
7769
8242
|
|
|
7770
8243
|
@_UNIFFI_CALLBACK_INTERFACE_FREE
|
|
7771
8244
|
def _uniffi_free(uniffi_handle):
|
|
@@ -8022,6 +8495,33 @@ class _UniffiConverterOptionalTypeLnurlPayInfo(_UniffiConverterRustBuffer):
|
|
|
8022
8495
|
|
|
8023
8496
|
|
|
8024
8497
|
|
|
8498
|
+
class _UniffiConverterOptionalTypePayment(_UniffiConverterRustBuffer):
|
|
8499
|
+
@classmethod
|
|
8500
|
+
def check_lower(cls, value):
|
|
8501
|
+
if value is not None:
|
|
8502
|
+
_UniffiConverterTypePayment.check_lower(value)
|
|
8503
|
+
|
|
8504
|
+
@classmethod
|
|
8505
|
+
def write(cls, value, buf):
|
|
8506
|
+
if value is None:
|
|
8507
|
+
buf.write_u8(0)
|
|
8508
|
+
return
|
|
8509
|
+
|
|
8510
|
+
buf.write_u8(1)
|
|
8511
|
+
_UniffiConverterTypePayment.write(value, buf)
|
|
8512
|
+
|
|
8513
|
+
@classmethod
|
|
8514
|
+
def read(cls, buf):
|
|
8515
|
+
flag = buf.read_u8()
|
|
8516
|
+
if flag == 0:
|
|
8517
|
+
return None
|
|
8518
|
+
elif flag == 1:
|
|
8519
|
+
return _UniffiConverterTypePayment.read(buf)
|
|
8520
|
+
else:
|
|
8521
|
+
raise InternalError("Unexpected flag byte for optional type")
|
|
8522
|
+
|
|
8523
|
+
|
|
8524
|
+
|
|
8025
8525
|
class _UniffiConverterOptionalTypeDepositClaimError(_UniffiConverterRustBuffer):
|
|
8026
8526
|
@classmethod
|
|
8027
8527
|
def check_lower(cls, value):
|
|
@@ -8589,6 +9089,7 @@ __all__ = [
|
|
|
8589
9089
|
"SendPaymentOptions",
|
|
8590
9090
|
"StorageError",
|
|
8591
9091
|
"UpdateDepositPayload",
|
|
9092
|
+
"WaitForPaymentIdentifier",
|
|
8592
9093
|
"CheckLightningAddressRequest",
|
|
8593
9094
|
"ClaimDepositRequest",
|
|
8594
9095
|
"ClaimDepositResponse",
|
|
@@ -8630,6 +9131,8 @@ __all__ = [
|
|
|
8630
9131
|
"SyncWalletResponse",
|
|
8631
9132
|
"TxStatus",
|
|
8632
9133
|
"Utxo",
|
|
9134
|
+
"WaitForPaymentRequest",
|
|
9135
|
+
"WaitForPaymentResponse",
|
|
8633
9136
|
"connect",
|
|
8634
9137
|
"default_config",
|
|
8635
9138
|
"default_storage",
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
breez_sdk_spark-0.2.6.data/purelib/breez_sdk_spark/__init__.py,sha256=Rmo1pY5ISvxSNwDo_RBCneMCfoYDNbB_4A7VCmQmtEI,148
|
|
2
|
+
breez_sdk_spark-0.2.6.data/purelib/breez_sdk_spark/breez_sdk_common.py,sha256=cdFqiHbDKhnyftMiQRJ30XPHUoGVHDu1gAyeM4EMg_w,202759
|
|
3
|
+
breez_sdk_spark-0.2.6.data/purelib/breez_sdk_spark/breez_sdk_spark.py,sha256=6qn4xZRNOdy1R02gFdyuan5UnPAI9-KFuJMji8ZaB_8,330913
|
|
4
|
+
breez_sdk_spark-0.2.6.data/purelib/breez_sdk_spark/breez_sdk_spark_bindings.py,sha256=ysAJqyrIhXUjJIBj856CADqim5MR38CgNEIdG1Fj4qg,32901
|
|
5
|
+
breez_sdk_spark-0.2.6.data/purelib/breez_sdk_spark/libbreez_sdk_spark_bindings.dylib,sha256=2qOW_jAILlIp1c2mGIROOsHi1Sn2cBvULuXHRAqTiUk,32535360
|
|
6
|
+
breez_sdk_spark-0.2.6.dist-info/METADATA,sha256=X1KxcBVwoKhwxdGThtTcxJD9B05qXy2aUN84R5ja0Kg,441
|
|
7
|
+
breez_sdk_spark-0.2.6.dist-info/WHEEL,sha256=SNjwHq8VFlWTP44X5NCUgUyoHOgUMngYI6ZzBCh0yy0,113
|
|
8
|
+
breez_sdk_spark-0.2.6.dist-info/top_level.txt,sha256=EWjZB7jCSH5bjyOrFhpRFW4Jfo8ykKdxJ7tqAOytwDU,16
|
|
9
|
+
breez_sdk_spark-0.2.6.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
breez_sdk_spark-0.2.4.data/purelib/breez_sdk_spark/__init__.py,sha256=Rmo1pY5ISvxSNwDo_RBCneMCfoYDNbB_4A7VCmQmtEI,148
|
|
2
|
-
breez_sdk_spark-0.2.4.data/purelib/breez_sdk_spark/breez_sdk_common.py,sha256=cdFqiHbDKhnyftMiQRJ30XPHUoGVHDu1gAyeM4EMg_w,202759
|
|
3
|
-
breez_sdk_spark-0.2.4.data/purelib/breez_sdk_spark/breez_sdk_spark.py,sha256=XJLvgZMRBSCXYuq2lraSoTtGf_CjAi17wpb3B-Ix6cM,310319
|
|
4
|
-
breez_sdk_spark-0.2.4.data/purelib/breez_sdk_spark/breez_sdk_spark_bindings.py,sha256=ysAJqyrIhXUjJIBj856CADqim5MR38CgNEIdG1Fj4qg,32901
|
|
5
|
-
breez_sdk_spark-0.2.4.data/purelib/breez_sdk_spark/libbreez_sdk_spark_bindings.dylib,sha256=a86oE_9FKx5MptS3HpFz7Jtg-uYa6pQikUesFVDySrU,32332336
|
|
6
|
-
breez_sdk_spark-0.2.4.dist-info/METADATA,sha256=Uz-AlKgU-GuvTSFbdEqRCiWwc7nnb-tyhlbiTk_OzTA,441
|
|
7
|
-
breez_sdk_spark-0.2.4.dist-info/WHEEL,sha256=SNjwHq8VFlWTP44X5NCUgUyoHOgUMngYI6ZzBCh0yy0,113
|
|
8
|
-
breez_sdk_spark-0.2.4.dist-info/top_level.txt,sha256=EWjZB7jCSH5bjyOrFhpRFW4Jfo8ykKdxJ7tqAOytwDU,16
|
|
9
|
-
breez_sdk_spark-0.2.4.dist-info/RECORD,,
|
{breez_sdk_spark-0.2.4.data → breez_sdk_spark-0.2.6.data}/purelib/breez_sdk_spark/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|