breez-sdk-spark 0.4.2__cp314-cp314-win32.whl → 0.6.5__cp314-cp314-win32.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.
@@ -475,20 +475,28 @@ def _uniffi_check_api_checksums(lib):
475
475
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
476
476
  if lib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction() != 65179:
477
477
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
478
+ if lib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees() != 43230:
479
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
478
480
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener() != 37737:
479
481
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
482
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization() != 56996:
483
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
480
484
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available() != 31624:
481
485
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
482
486
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message() != 4385:
483
487
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
484
488
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit() != 43529:
485
489
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
490
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment() != 57587:
491
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
486
492
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address() != 44132:
487
493
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
488
494
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect() != 330:
489
495
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
490
496
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info() != 6771:
491
497
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
498
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress() != 38008:
499
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
492
500
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address() != 36552:
493
501
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
494
502
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment() != 11540:
@@ -519,6 +527,8 @@ def _uniffi_check_api_checksums(lib):
519
527
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
520
528
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment() != 36984:
521
529
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
530
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees() != 16947:
531
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
522
532
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit() != 33646:
523
533
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
524
534
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address() != 530:
@@ -529,12 +539,12 @@ def _uniffi_check_api_checksums(lib):
529
539
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
530
540
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message() != 57563:
531
541
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
542
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization() != 22827:
543
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
532
544
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet() != 30368:
533
545
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
534
546
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings() != 1721:
535
547
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
536
- if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment() != 64922:
537
- raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
538
548
  if lib.uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies() != 19092:
539
549
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
540
550
  if lib.uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates() != 11512:
@@ -563,7 +573,7 @@ def _uniffi_check_api_checksums(lib):
563
573
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
564
574
  if lib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_real_time_sync_storage() != 20579:
565
575
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
566
- if lib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service() != 56288:
576
+ if lib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_rest_chain_service() != 63155:
567
577
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
568
578
  if lib.uniffi_breez_sdk_spark_checksum_method_sdkbuilder_with_storage() != 59400:
569
579
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
@@ -591,6 +601,8 @@ def _uniffi_check_api_checksums(lib):
591
601
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
592
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")
604
+ if lib.uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata() != 7460:
605
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
594
606
  if lib.uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change() != 19087:
595
607
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
596
608
  if lib.uniffi_breez_sdk_spark_checksum_method_syncstorage_complete_outgoing_sync() != 20071:
@@ -750,6 +762,8 @@ _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD2 = ctypes.CFUNCTYPE(None
750
762
  )
751
763
  _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD3 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
752
764
  )
765
+ _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD4 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
766
+ )
753
767
  _UNIFFI_CALLBACK_INTERFACE_FIAT_SERVICE_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
754
768
  )
755
769
  _UNIFFI_CALLBACK_INTERFACE_FIAT_SERVICE_METHOD1 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
@@ -786,6 +800,8 @@ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD10 = ctypes.CFUNCTYPE(None,ctypes.c_uin
786
800
  )
787
801
  _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),
788
802
  )
803
+ _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD12 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
804
+ )
789
805
  _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_U64,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
790
806
  )
791
807
  _UNIFFI_CALLBACK_INTERFACE_SYNC_STORAGE_METHOD1 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
@@ -822,6 +838,7 @@ class _UniffiVTableCallbackInterfaceBitcoinChainService(ctypes.Structure):
822
838
  ("get_transaction_status", _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD1),
823
839
  ("get_transaction_hex", _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD2),
824
840
  ("broadcast_transaction", _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD3),
841
+ ("recommended_fees", _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD4),
825
842
  ("uniffi_free", _UNIFFI_CALLBACK_INTERFACE_FREE),
826
843
  ]
827
844
  class _UniffiVTableCallbackInterfaceFiatService(ctypes.Structure):
@@ -856,6 +873,7 @@ class _UniffiVTableCallbackInterfaceStorage(ctypes.Structure):
856
873
  ("delete_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD9),
857
874
  ("list_deposits", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD10),
858
875
  ("update_deposit", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD11),
876
+ ("set_lnurl_metadata", _UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD12),
859
877
  ("uniffi_free", _UNIFFI_CALLBACK_INTERFACE_FREE),
860
878
  ]
861
879
  class _UniffiVTableCallbackInterfaceSyncStorage(ctypes.Structure):
@@ -906,6 +924,10 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_broadcast_transa
906
924
  _UniffiRustBuffer,
907
925
  )
908
926
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_broadcast_transaction.restype = ctypes.c_uint64
927
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_recommended_fees.argtypes = (
928
+ ctypes.c_void_p,
929
+ )
930
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_recommended_fees.restype = ctypes.c_uint64
909
931
  _UniffiLib.uniffi_breez_sdk_spark_fn_clone_breezsdk.argtypes = (
910
932
  ctypes.c_void_p,
911
933
  ctypes.POINTER(_UniffiRustCallStatus),
@@ -921,6 +943,10 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener.argtypes
921
943
  ctypes.c_uint64,
922
944
  )
923
945
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener.restype = ctypes.c_uint64
946
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_cancel_leaf_optimization.argtypes = (
947
+ ctypes.c_void_p,
948
+ )
949
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_cancel_leaf_optimization.restype = ctypes.c_uint64
924
950
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available.argtypes = (
925
951
  ctypes.c_void_p,
926
952
  _UniffiRustBuffer,
@@ -936,6 +962,11 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit.argtypes = (
936
962
  _UniffiRustBuffer,
937
963
  )
938
964
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit.restype = ctypes.c_uint64
965
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_claim_htlc_payment.argtypes = (
966
+ ctypes.c_void_p,
967
+ _UniffiRustBuffer,
968
+ )
969
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_claim_htlc_payment.restype = ctypes.c_uint64
939
970
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address.argtypes = (
940
971
  ctypes.c_void_p,
941
972
  )
@@ -949,6 +980,11 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_info.argtypes = (
949
980
  _UniffiRustBuffer,
950
981
  )
951
982
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_info.restype = ctypes.c_uint64
983
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_leaf_optimization_progress.argtypes = (
984
+ ctypes.c_void_p,
985
+ ctypes.POINTER(_UniffiRustCallStatus),
986
+ )
987
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_leaf_optimization_progress.restype = _UniffiRustBuffer
952
988
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address.argtypes = (
953
989
  ctypes.c_void_p,
954
990
  )
@@ -1020,6 +1056,10 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment.argtypes =
1020
1056
  _UniffiRustBuffer,
1021
1057
  )
1022
1058
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment.restype = ctypes.c_uint64
1059
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_recommended_fees.argtypes = (
1060
+ ctypes.c_void_p,
1061
+ )
1062
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_recommended_fees.restype = ctypes.c_uint64
1023
1063
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_refund_deposit.argtypes = (
1024
1064
  ctypes.c_void_p,
1025
1065
  _UniffiRustBuffer,
@@ -1045,6 +1085,11 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message.argtypes = (
1045
1085
  _UniffiRustBuffer,
1046
1086
  )
1047
1087
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_sign_message.restype = ctypes.c_uint64
1088
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization.argtypes = (
1089
+ ctypes.c_void_p,
1090
+ ctypes.POINTER(_UniffiRustCallStatus),
1091
+ )
1092
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization.restype = None
1048
1093
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet.argtypes = (
1049
1094
  ctypes.c_void_p,
1050
1095
  _UniffiRustBuffer,
@@ -1055,11 +1100,6 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_update_user_settings.argtyp
1055
1100
  _UniffiRustBuffer,
1056
1101
  )
1057
1102
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_update_user_settings.restype = ctypes.c_uint64
1058
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_wait_for_payment.argtypes = (
1059
- ctypes.c_void_p,
1060
- _UniffiRustBuffer,
1061
- )
1062
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_wait_for_payment.restype = ctypes.c_uint64
1063
1103
  _UniffiLib.uniffi_breez_sdk_spark_fn_clone_fiatservice.argtypes = (
1064
1104
  ctypes.c_void_p,
1065
1105
  ctypes.POINTER(_UniffiRustCallStatus),
@@ -1196,6 +1236,7 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_rest_chain_service.a
1196
1236
  ctypes.c_void_p,
1197
1237
  _UniffiRustBuffer,
1198
1238
  _UniffiRustBuffer,
1239
+ _UniffiRustBuffer,
1199
1240
  )
1200
1241
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_rest_chain_service.restype = ctypes.c_uint64
1201
1242
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_storage.argtypes = (
@@ -1283,6 +1324,11 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_update_deposit.argtypes = (
1283
1324
  _UniffiRustBuffer,
1284
1325
  )
1285
1326
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_update_deposit.restype = ctypes.c_uint64
1327
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_set_lnurl_metadata.argtypes = (
1328
+ ctypes.c_void_p,
1329
+ _UniffiRustBuffer,
1330
+ )
1331
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_set_lnurl_metadata.restype = ctypes.c_uint64
1286
1332
  _UniffiLib.uniffi_breez_sdk_spark_fn_clone_syncstorage.argtypes = (
1287
1333
  ctypes.c_void_p,
1288
1334
  ctypes.POINTER(_UniffiRustCallStatus),
@@ -1701,9 +1747,15 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transa
1701
1747
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction.argtypes = (
1702
1748
  )
1703
1749
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction.restype = ctypes.c_uint16
1750
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees.argtypes = (
1751
+ )
1752
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees.restype = ctypes.c_uint16
1704
1753
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener.argtypes = (
1705
1754
  )
1706
1755
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener.restype = ctypes.c_uint16
1756
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization.argtypes = (
1757
+ )
1758
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization.restype = ctypes.c_uint16
1707
1759
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available.argtypes = (
1708
1760
  )
1709
1761
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available.restype = ctypes.c_uint16
@@ -1713,6 +1765,9 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message.restype
1713
1765
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit.argtypes = (
1714
1766
  )
1715
1767
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit.restype = ctypes.c_uint16
1768
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment.argtypes = (
1769
+ )
1770
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment.restype = ctypes.c_uint16
1716
1771
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address.argtypes = (
1717
1772
  )
1718
1773
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address.restype = ctypes.c_uint16
@@ -1722,6 +1777,9 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect.restype =
1722
1777
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info.argtypes = (
1723
1778
  )
1724
1779
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info.restype = ctypes.c_uint16
1780
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress.argtypes = (
1781
+ )
1782
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_leaf_optimization_progress.restype = ctypes.c_uint16
1725
1783
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address.argtypes = (
1726
1784
  )
1727
1785
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address.restype = ctypes.c_uint16
@@ -1767,6 +1825,9 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment.
1767
1825
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment.argtypes = (
1768
1826
  )
1769
1827
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment.restype = ctypes.c_uint16
1828
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees.argtypes = (
1829
+ )
1830
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_recommended_fees.restype = ctypes.c_uint16
1770
1831
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit.argtypes = (
1771
1832
  )
1772
1833
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit.restype = ctypes.c_uint16
@@ -1782,15 +1843,15 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment.restype
1782
1843
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message.argtypes = (
1783
1844
  )
1784
1845
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message.restype = ctypes.c_uint16
1846
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization.argtypes = (
1847
+ )
1848
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization.restype = ctypes.c_uint16
1785
1849
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet.argtypes = (
1786
1850
  )
1787
1851
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet.restype = ctypes.c_uint16
1788
1852
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings.argtypes = (
1789
1853
  )
1790
1854
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings.restype = ctypes.c_uint16
1791
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment.argtypes = (
1792
- )
1793
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_wait_for_payment.restype = ctypes.c_uint16
1794
1855
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies.argtypes = (
1795
1856
  )
1796
1857
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies.restype = ctypes.c_uint16
@@ -1875,6 +1936,9 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_list_deposits.restype
1875
1936
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_update_deposit.argtypes = (
1876
1937
  )
1877
1938
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_update_deposit.restype = ctypes.c_uint16
1939
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata.argtypes = (
1940
+ )
1941
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata.restype = ctypes.c_uint16
1878
1942
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change.argtypes = (
1879
1943
  )
1880
1944
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_syncstorage_add_outgoing_change.restype = ctypes.c_uint16
@@ -1945,6 +2009,19 @@ _uniffi_check_contract_api_version(_UniffiLib)
1945
2009
  # Public interface members begin here.
1946
2010
 
1947
2011
 
2012
+ class _UniffiConverterUInt8(_UniffiConverterPrimitiveInt):
2013
+ CLASS_NAME = "u8"
2014
+ VALUE_MIN = 0
2015
+ VALUE_MAX = 2**8
2016
+
2017
+ @staticmethod
2018
+ def read(buf):
2019
+ return buf.read_u8()
2020
+
2021
+ @staticmethod
2022
+ def write(value, buf):
2023
+ buf.write_u8(value)
2024
+
1948
2025
  class _UniffiConverterUInt16(_UniffiConverterPrimitiveInt):
1949
2026
  CLASS_NAME = "u16"
1950
2027
  VALUE_MIN = 0
@@ -2077,6 +2154,8 @@ class BitcoinChainService(typing.Protocol):
2077
2154
  raise NotImplementedError
2078
2155
  def broadcast_transaction(self, tx: "str"):
2079
2156
  raise NotImplementedError
2157
+ def recommended_fees(self, ):
2158
+ raise NotImplementedError
2080
2159
 
2081
2160
 
2082
2161
  class BitcoinChainServiceImpl:
@@ -2188,6 +2267,24 @@ _UniffiConverterTypeChainServiceError,
2188
2267
  )
2189
2268
 
2190
2269
 
2270
+
2271
+ async def recommended_fees(self, ) -> "RecommendedFees":
2272
+ return await _uniffi_rust_call_async(
2273
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_recommended_fees(
2274
+ self._uniffi_clone_pointer(),
2275
+ ),
2276
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
2277
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
2278
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
2279
+ # lift function
2280
+ _UniffiConverterTypeRecommendedFees.lift,
2281
+
2282
+ # Error FFI converter
2283
+ _UniffiConverterTypeChainServiceError,
2284
+
2285
+ )
2286
+
2287
+
2191
2288
  # Magic number for the Rust proxy to call using the same mechanism as every other method,
2192
2289
  # to free the callback once it's dropped by Rust.
2193
2290
  _UNIFFI_IDX_CALLBACK_FREE = 0
@@ -2359,6 +2456,39 @@ class _UniffiTraitImplBitcoinChainService:
2359
2456
  )
2360
2457
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ChainServiceError, _UniffiConverterTypeChainServiceError.lower)
2361
2458
 
2459
+ @_UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD4
2460
+ def recommended_fees(
2461
+ uniffi_handle,
2462
+ uniffi_future_callback,
2463
+ uniffi_callback_data,
2464
+ uniffi_out_return,
2465
+ ):
2466
+ uniffi_obj = _UniffiConverterTypeBitcoinChainService._handle_map.get(uniffi_handle)
2467
+ def make_call():
2468
+ args = ()
2469
+ method = uniffi_obj.recommended_fees
2470
+ return method(*args)
2471
+
2472
+
2473
+ def handle_success(return_value):
2474
+ uniffi_future_callback(
2475
+ uniffi_callback_data,
2476
+ _UniffiForeignFutureStructRustBuffer(
2477
+ _UniffiConverterTypeRecommendedFees.lower(return_value),
2478
+ _UniffiRustCallStatus.default()
2479
+ )
2480
+ )
2481
+
2482
+ def handle_error(status_code, rust_buffer):
2483
+ uniffi_future_callback(
2484
+ uniffi_callback_data,
2485
+ _UniffiForeignFutureStructRustBuffer(
2486
+ _UniffiRustBuffer.default(),
2487
+ _UniffiRustCallStatus(status_code, rust_buffer),
2488
+ )
2489
+ )
2490
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ChainServiceError, _UniffiConverterTypeChainServiceError.lower)
2491
+
2362
2492
  @_UNIFFI_CALLBACK_INTERFACE_FREE
2363
2493
  def _uniffi_free(uniffi_handle):
2364
2494
  _UniffiConverterTypeBitcoinChainService._handle_map.remove(uniffi_handle)
@@ -2369,6 +2499,7 @@ class _UniffiTraitImplBitcoinChainService:
2369
2499
  get_transaction_status,
2370
2500
  get_transaction_hex,
2371
2501
  broadcast_transaction,
2502
+ recommended_fees,
2372
2503
  _uniffi_free
2373
2504
  )
2374
2505
  # Send Rust a pointer to the VTable. Note: this means we need to keep the struct alive forever,
@@ -2424,6 +2555,19 @@ class BreezSdkProtocol(typing.Protocol):
2424
2555
  A unique identifier for the listener, which can be used to remove it later
2425
2556
  """
2426
2557
 
2558
+ raise NotImplementedError
2559
+ def cancel_leaf_optimization(self, ):
2560
+ """
2561
+ Cancels the ongoing leaf optimization.
2562
+
2563
+ This method cancels the ongoing optimization and waits for it to fully stop.
2564
+ The current round will complete before stopping. This method blocks
2565
+ until the optimization has fully stopped and leaves reserved for optimization
2566
+ are available again.
2567
+
2568
+ If no optimization is running, this method returns immediately.
2569
+ """
2570
+
2427
2571
  raise NotImplementedError
2428
2572
  def check_lightning_address_available(self, req: "CheckLightningAddressRequest"):
2429
2573
  raise NotImplementedError
@@ -2437,6 +2581,8 @@ class BreezSdkProtocol(typing.Protocol):
2437
2581
  raise NotImplementedError
2438
2582
  def claim_deposit(self, request: "ClaimDepositRequest"):
2439
2583
  raise NotImplementedError
2584
+ def claim_htlc_payment(self, request: "ClaimHtlcPaymentRequest"):
2585
+ raise NotImplementedError
2440
2586
  def delete_lightning_address(self, ):
2441
2587
  raise NotImplementedError
2442
2588
  def disconnect(self, ):
@@ -2457,6 +2603,12 @@ class BreezSdkProtocol(typing.Protocol):
2457
2603
  Returns the balance of the wallet in satoshis
2458
2604
  """
2459
2605
 
2606
+ raise NotImplementedError
2607
+ def get_leaf_optimization_progress(self, ):
2608
+ """
2609
+ Returns the current optimization progress snapshot.
2610
+ """
2611
+
2460
2612
  raise NotImplementedError
2461
2613
  def get_lightning_address(self, ):
2462
2614
  raise NotImplementedError
@@ -2560,6 +2712,12 @@ class BreezSdkProtocol(typing.Protocol):
2560
2712
  def prepare_send_payment(self, request: "PrepareSendPaymentRequest"):
2561
2713
  raise NotImplementedError
2562
2714
  def receive_payment(self, request: "ReceivePaymentRequest"):
2715
+ raise NotImplementedError
2716
+ def recommended_fees(self, ):
2717
+ """
2718
+ Get the recommended BTC fees based on the configured chain service.
2719
+ """
2720
+
2563
2721
  raise NotImplementedError
2564
2722
  def refund_deposit(self, request: "RefundDepositRequest"):
2565
2723
  raise NotImplementedError
@@ -2588,6 +2746,16 @@ class BreezSdkProtocol(typing.Protocol):
2588
2746
  DER format by default, or compact format if specified.
2589
2747
  """
2590
2748
 
2749
+ raise NotImplementedError
2750
+ def start_leaf_optimization(self, ):
2751
+ """
2752
+ Starts leaf optimization in the background.
2753
+
2754
+ This method spawns the optimization work in a background task and returns
2755
+ immediately. Progress is reported via events.
2756
+ If optimization is already running, no new task will be started.
2757
+ """
2758
+
2591
2759
  raise NotImplementedError
2592
2760
  def sync_wallet(self, request: "SyncWalletRequest"):
2593
2761
  """
@@ -2603,8 +2771,6 @@ class BreezSdkProtocol(typing.Protocol):
2603
2771
  """
2604
2772
 
2605
2773
  raise NotImplementedError
2606
- def wait_for_payment(self, request: "WaitForPaymentRequest"):
2607
- raise NotImplementedError
2608
2774
 
2609
2775
 
2610
2776
  class BreezSdk:
@@ -2670,6 +2836,37 @@ class BreezSdk:
2670
2836
 
2671
2837
 
2672
2838
 
2839
+ async def cancel_leaf_optimization(self, ) -> None:
2840
+
2841
+ """
2842
+ Cancels the ongoing leaf optimization.
2843
+
2844
+ This method cancels the ongoing optimization and waits for it to fully stop.
2845
+ The current round will complete before stopping. This method blocks
2846
+ until the optimization has fully stopped and leaves reserved for optimization
2847
+ are available again.
2848
+
2849
+ If no optimization is running, this method returns immediately.
2850
+ """
2851
+
2852
+ return await _uniffi_rust_call_async(
2853
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_cancel_leaf_optimization(
2854
+ self._uniffi_clone_pointer(),
2855
+ ),
2856
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_void,
2857
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_void,
2858
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_void,
2859
+ # lift function
2860
+ lambda val: None,
2861
+
2862
+
2863
+ # Error FFI converter
2864
+ _UniffiConverterTypeSdkError,
2865
+
2866
+ )
2867
+
2868
+
2869
+
2673
2870
  async def check_lightning_address_available(self, req: "CheckLightningAddressRequest") -> "bool":
2674
2871
  _UniffiConverterTypeCheckLightningAddressRequest.check_lower(req)
2675
2872
 
@@ -2739,6 +2936,27 @@ _UniffiConverterTypeSdkError,
2739
2936
 
2740
2937
 
2741
2938
 
2939
+ async def claim_htlc_payment(self, request: "ClaimHtlcPaymentRequest") -> "ClaimHtlcPaymentResponse":
2940
+ _UniffiConverterTypeClaimHtlcPaymentRequest.check_lower(request)
2941
+
2942
+ return await _uniffi_rust_call_async(
2943
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_claim_htlc_payment(
2944
+ self._uniffi_clone_pointer(),
2945
+ _UniffiConverterTypeClaimHtlcPaymentRequest.lower(request)
2946
+ ),
2947
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
2948
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
2949
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
2950
+ # lift function
2951
+ _UniffiConverterTypeClaimHtlcPaymentResponse.lift,
2952
+
2953
+ # Error FFI converter
2954
+ _UniffiConverterTypeSdkError,
2955
+
2956
+ )
2957
+
2958
+
2959
+
2742
2960
  async def delete_lightning_address(self, ) -> None:
2743
2961
 
2744
2962
  return await _uniffi_rust_call_async(
@@ -2815,6 +3033,19 @@ _UniffiConverterTypeSdkError,
2815
3033
 
2816
3034
 
2817
3035
 
3036
+
3037
+ def get_leaf_optimization_progress(self, ) -> "OptimizationProgress":
3038
+ """
3039
+ Returns the current optimization progress snapshot.
3040
+ """
3041
+
3042
+ return _UniffiConverterTypeOptimizationProgress.lift(
3043
+ _uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_leaf_optimization_progress,self._uniffi_clone_pointer(),)
3044
+ )
3045
+
3046
+
3047
+
3048
+
2818
3049
  async def get_lightning_address(self, ) -> "typing.Optional[LightningAddressInfo]":
2819
3050
  return await _uniffi_rust_call_async(
2820
3051
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_get_lightning_address(
@@ -3179,6 +3410,28 @@ _UniffiConverterTypeSdkError,
3179
3410
 
3180
3411
 
3181
3412
 
3413
+ async def recommended_fees(self, ) -> "RecommendedFees":
3414
+ """
3415
+ Get the recommended BTC fees based on the configured chain service.
3416
+ """
3417
+
3418
+ return await _uniffi_rust_call_async(
3419
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_recommended_fees(
3420
+ self._uniffi_clone_pointer(),
3421
+ ),
3422
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
3423
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
3424
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
3425
+ # lift function
3426
+ _UniffiConverterTypeRecommendedFees.lift,
3427
+
3428
+ # Error FFI converter
3429
+ _UniffiConverterTypeSdkError,
3430
+
3431
+ )
3432
+
3433
+
3434
+
3182
3435
  async def refund_deposit(self, request: "RefundDepositRequest") -> "RefundDepositResponse":
3183
3436
  _UniffiConverterTypeRefundDepositRequest.check_lower(request)
3184
3437
 
@@ -3303,6 +3556,22 @@ _UniffiConverterTypeSdkError,
3303
3556
 
3304
3557
 
3305
3558
 
3559
+
3560
+ def start_leaf_optimization(self, ) -> None:
3561
+ """
3562
+ Starts leaf optimization in the background.
3563
+
3564
+ This method spawns the optimization work in a background task and returns
3565
+ immediately. Progress is reported via events.
3566
+ If optimization is already running, no new task will be started.
3567
+ """
3568
+
3569
+ _uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_start_leaf_optimization,self._uniffi_clone_pointer(),)
3570
+
3571
+
3572
+
3573
+
3574
+
3306
3575
  async def sync_wallet(self, request: "SyncWalletRequest") -> "SyncWalletResponse":
3307
3576
  """
3308
3577
  Synchronizes the wallet with the Spark network
@@ -3357,27 +3626,6 @@ _UniffiConverterTypeSdkError,
3357
3626
 
3358
3627
 
3359
3628
 
3360
- async def wait_for_payment(self, request: "WaitForPaymentRequest") -> "WaitForPaymentResponse":
3361
- _UniffiConverterTypeWaitForPaymentRequest.check_lower(request)
3362
-
3363
- return await _uniffi_rust_call_async(
3364
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_wait_for_payment(
3365
- self._uniffi_clone_pointer(),
3366
- _UniffiConverterTypeWaitForPaymentRequest.lower(request)
3367
- ),
3368
- _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
3369
- _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
3370
- _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
3371
- # lift function
3372
- _UniffiConverterTypeWaitForPaymentResponse.lift,
3373
-
3374
- # Error FFI converter
3375
- _UniffiConverterTypeSdkError,
3376
-
3377
- )
3378
-
3379
-
3380
-
3381
3629
 
3382
3630
 
3383
3631
  class _UniffiConverterTypeBreezSdk:
@@ -4144,11 +4392,12 @@ class SdkBuilderProtocol(typing.Protocol):
4144
4392
  """
4145
4393
 
4146
4394
  raise NotImplementedError
4147
- def with_rest_chain_service(self, url: "str",credentials: "typing.Optional[Credentials]"):
4395
+ def with_rest_chain_service(self, url: "str",api_type: "ChainApiType",credentials: "typing.Optional[Credentials]"):
4148
4396
  """
4149
4397
  Sets the REST chain service to be used by the SDK.
4150
4398
  Arguments:
4151
4399
  - `url`: The base URL of the REST API.
4400
+ - `api_type`: The API type to be used.
4152
4401
  - `credentials`: Optional credentials for basic authentication.
4153
4402
  """
4154
4403
 
@@ -4438,23 +4687,27 @@ _UniffiConverterTypeSdkError,
4438
4687
 
4439
4688
 
4440
4689
 
4441
- async def with_rest_chain_service(self, url: "str",credentials: "typing.Optional[Credentials]") -> None:
4690
+ async def with_rest_chain_service(self, url: "str",api_type: "ChainApiType",credentials: "typing.Optional[Credentials]") -> None:
4442
4691
 
4443
4692
  """
4444
4693
  Sets the REST chain service to be used by the SDK.
4445
4694
  Arguments:
4446
4695
  - `url`: The base URL of the REST API.
4696
+ - `api_type`: The API type to be used.
4447
4697
  - `credentials`: Optional credentials for basic authentication.
4448
4698
  """
4449
4699
 
4450
4700
  _UniffiConverterString.check_lower(url)
4451
4701
 
4702
+ _UniffiConverterTypeChainApiType.check_lower(api_type)
4703
+
4452
4704
  _UniffiConverterOptionalTypeCredentials.check_lower(credentials)
4453
4705
 
4454
4706
  return await _uniffi_rust_call_async(
4455
4707
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_rest_chain_service(
4456
4708
  self._uniffi_clone_pointer(),
4457
4709
  _UniffiConverterString.lower(url),
4710
+ _UniffiConverterTypeChainApiType.lower(api_type),
4458
4711
  _UniffiConverterOptionalTypeCredentials.lower(credentials)
4459
4712
  ),
4460
4713
  _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_void,
@@ -4666,6 +4919,8 @@ class Storage(typing.Protocol):
4666
4919
  """
4667
4920
 
4668
4921
  raise NotImplementedError
4922
+ def set_lnurl_metadata(self, metadata: "typing.List[SetLnurlMetadataItem]"):
4923
+ raise NotImplementedError
4669
4924
 
4670
4925
 
4671
4926
  class StorageImpl:
@@ -5083,6 +5338,29 @@ _UniffiConverterTypeStorageError,
5083
5338
 
5084
5339
 
5085
5340
 
5341
+ async def set_lnurl_metadata(self, metadata: "typing.List[SetLnurlMetadataItem]") -> None:
5342
+
5343
+ _UniffiConverterSequenceTypeSetLnurlMetadataItem.check_lower(metadata)
5344
+
5345
+ return await _uniffi_rust_call_async(
5346
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_storage_set_lnurl_metadata(
5347
+ self._uniffi_clone_pointer(),
5348
+ _UniffiConverterSequenceTypeSetLnurlMetadataItem.lower(metadata)
5349
+ ),
5350
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_void,
5351
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_void,
5352
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_void,
5353
+ # lift function
5354
+ lambda val: None,
5355
+
5356
+
5357
+ # Error FFI converter
5358
+ _UniffiConverterTypeStorageError,
5359
+
5360
+ )
5361
+
5362
+
5363
+
5086
5364
 
5087
5365
  # Put all the bits inside a class to keep the top-level namespace clean
5088
5366
  class _UniffiTraitImplStorage:
@@ -5488,6 +5766,38 @@ class _UniffiTraitImplStorage:
5488
5766
  )
5489
5767
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
5490
5768
 
5769
+ @_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD12
5770
+ def set_lnurl_metadata(
5771
+ uniffi_handle,
5772
+ metadata,
5773
+ uniffi_future_callback,
5774
+ uniffi_callback_data,
5775
+ uniffi_out_return,
5776
+ ):
5777
+ uniffi_obj = _UniffiConverterTypeStorage._handle_map.get(uniffi_handle)
5778
+ def make_call():
5779
+ args = (_UniffiConverterSequenceTypeSetLnurlMetadataItem.lift(metadata), )
5780
+ method = uniffi_obj.set_lnurl_metadata
5781
+ return method(*args)
5782
+
5783
+
5784
+ def handle_success(return_value):
5785
+ uniffi_future_callback(
5786
+ uniffi_callback_data,
5787
+ _UniffiForeignFutureStructVoid(
5788
+ _UniffiRustCallStatus.default()
5789
+ )
5790
+ )
5791
+
5792
+ def handle_error(status_code, rust_buffer):
5793
+ uniffi_future_callback(
5794
+ uniffi_callback_data,
5795
+ _UniffiForeignFutureStructVoid(
5796
+ _UniffiRustCallStatus(status_code, rust_buffer),
5797
+ )
5798
+ )
5799
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, StorageError, _UniffiConverterTypeStorageError.lower)
5800
+
5491
5801
  @_UNIFFI_CALLBACK_INTERFACE_FREE
5492
5802
  def _uniffi_free(uniffi_handle):
5493
5803
  _UniffiConverterTypeStorage._handle_map.remove(uniffi_handle)
@@ -5506,6 +5816,7 @@ class _UniffiTraitImplStorage:
5506
5816
  delete_deposit,
5507
5817
  list_deposits,
5508
5818
  update_deposit,
5819
+ set_lnurl_metadata,
5509
5820
  _uniffi_free
5510
5821
  )
5511
5822
  # Send Rust a pointer to the VTable. Note: this means we need to keep the struct alive forever,
@@ -7545,8 +7856,8 @@ class _UniffiConverterTypeCheckMessageResponse(_UniffiConverterRustBuffer):
7545
7856
  class ClaimDepositRequest:
7546
7857
  txid: "str"
7547
7858
  vout: "int"
7548
- max_fee: "typing.Optional[Fee]"
7549
- def __init__(self, *, txid: "str", vout: "int", max_fee: "typing.Optional[Fee]" = _DEFAULT):
7859
+ max_fee: "typing.Optional[MaxFee]"
7860
+ def __init__(self, *, txid: "str", vout: "int", max_fee: "typing.Optional[MaxFee]" = _DEFAULT):
7550
7861
  self.txid = txid
7551
7862
  self.vout = vout
7552
7863
  if max_fee is _DEFAULT:
@@ -7572,20 +7883,20 @@ class _UniffiConverterTypeClaimDepositRequest(_UniffiConverterRustBuffer):
7572
7883
  return ClaimDepositRequest(
7573
7884
  txid=_UniffiConverterString.read(buf),
7574
7885
  vout=_UniffiConverterUInt32.read(buf),
7575
- max_fee=_UniffiConverterOptionalTypeFee.read(buf),
7886
+ max_fee=_UniffiConverterOptionalTypeMaxFee.read(buf),
7576
7887
  )
7577
7888
 
7578
7889
  @staticmethod
7579
7890
  def check_lower(value):
7580
7891
  _UniffiConverterString.check_lower(value.txid)
7581
7892
  _UniffiConverterUInt32.check_lower(value.vout)
7582
- _UniffiConverterOptionalTypeFee.check_lower(value.max_fee)
7893
+ _UniffiConverterOptionalTypeMaxFee.check_lower(value.max_fee)
7583
7894
 
7584
7895
  @staticmethod
7585
7896
  def write(value, buf):
7586
7897
  _UniffiConverterString.write(value.txid, buf)
7587
7898
  _UniffiConverterUInt32.write(value.vout, buf)
7588
- _UniffiConverterOptionalTypeFee.write(value.max_fee, buf)
7899
+ _UniffiConverterOptionalTypeMaxFee.write(value.max_fee, buf)
7589
7900
 
7590
7901
 
7591
7902
  class ClaimDepositResponse:
@@ -7617,11 +7928,69 @@ class _UniffiConverterTypeClaimDepositResponse(_UniffiConverterRustBuffer):
7617
7928
  _UniffiConverterTypePayment.write(value.payment, buf)
7618
7929
 
7619
7930
 
7931
+ class ClaimHtlcPaymentRequest:
7932
+ preimage: "str"
7933
+ def __init__(self, *, preimage: "str"):
7934
+ self.preimage = preimage
7935
+
7936
+ def __str__(self):
7937
+ return "ClaimHtlcPaymentRequest(preimage={})".format(self.preimage)
7938
+
7939
+ def __eq__(self, other):
7940
+ if self.preimage != other.preimage:
7941
+ return False
7942
+ return True
7943
+
7944
+ class _UniffiConverterTypeClaimHtlcPaymentRequest(_UniffiConverterRustBuffer):
7945
+ @staticmethod
7946
+ def read(buf):
7947
+ return ClaimHtlcPaymentRequest(
7948
+ preimage=_UniffiConverterString.read(buf),
7949
+ )
7950
+
7951
+ @staticmethod
7952
+ def check_lower(value):
7953
+ _UniffiConverterString.check_lower(value.preimage)
7954
+
7955
+ @staticmethod
7956
+ def write(value, buf):
7957
+ _UniffiConverterString.write(value.preimage, buf)
7958
+
7959
+
7960
+ class ClaimHtlcPaymentResponse:
7961
+ payment: "Payment"
7962
+ def __init__(self, *, payment: "Payment"):
7963
+ self.payment = payment
7964
+
7965
+ def __str__(self):
7966
+ return "ClaimHtlcPaymentResponse(payment={})".format(self.payment)
7967
+
7968
+ def __eq__(self, other):
7969
+ if self.payment != other.payment:
7970
+ return False
7971
+ return True
7972
+
7973
+ class _UniffiConverterTypeClaimHtlcPaymentResponse(_UniffiConverterRustBuffer):
7974
+ @staticmethod
7975
+ def read(buf):
7976
+ return ClaimHtlcPaymentResponse(
7977
+ payment=_UniffiConverterTypePayment.read(buf),
7978
+ )
7979
+
7980
+ @staticmethod
7981
+ def check_lower(value):
7982
+ _UniffiConverterTypePayment.check_lower(value.payment)
7983
+
7984
+ @staticmethod
7985
+ def write(value, buf):
7986
+ _UniffiConverterTypePayment.write(value.payment, buf)
7987
+
7988
+
7620
7989
  class Config:
7621
7990
  api_key: "typing.Optional[str]"
7622
7991
  network: "Network"
7623
7992
  sync_interval_secs: "int"
7624
- max_deposit_claim_fee: "typing.Optional[Fee]"
7993
+ max_deposit_claim_fee: "typing.Optional[MaxFee]"
7625
7994
  lnurl_domain: "typing.Optional[str]"
7626
7995
  """
7627
7996
  The domain used for receiving through lnurl-pay and lightning address.
@@ -7661,7 +8030,16 @@ class Config:
7661
8030
  If set to false, no changes will be made to the Spark private mode.
7662
8031
  """
7663
8032
 
7664
- def __init__(self, *, api_key: "typing.Optional[str]", network: "Network", sync_interval_secs: "int", max_deposit_claim_fee: "typing.Optional[Fee]", lnurl_domain: "typing.Optional[str]", prefer_spark_over_lightning: "bool", external_input_parsers: "typing.Optional[typing.List[ExternalInputParser]]", use_default_external_input_parsers: "bool", real_time_sync_server_url: "typing.Optional[str]", private_enabled_default: "bool"):
8033
+ optimization_config: "OptimizationConfig"
8034
+ """
8035
+ Configuration for leaf optimization.
8036
+
8037
+ Leaf optimization controls the denominations of leaves that are held in the wallet.
8038
+ Fewer, bigger leaves allow for more funds to be exited unilaterally.
8039
+ More leaves allow payments to be made without needing a swap, reducing payment latency.
8040
+ """
8041
+
8042
+ def __init__(self, *, api_key: "typing.Optional[str]", network: "Network", sync_interval_secs: "int", max_deposit_claim_fee: "typing.Optional[MaxFee]", lnurl_domain: "typing.Optional[str]", prefer_spark_over_lightning: "bool", external_input_parsers: "typing.Optional[typing.List[ExternalInputParser]]", use_default_external_input_parsers: "bool", real_time_sync_server_url: "typing.Optional[str]", private_enabled_default: "bool", optimization_config: "OptimizationConfig"):
7665
8043
  self.api_key = api_key
7666
8044
  self.network = network
7667
8045
  self.sync_interval_secs = sync_interval_secs
@@ -7672,9 +8050,10 @@ class Config:
7672
8050
  self.use_default_external_input_parsers = use_default_external_input_parsers
7673
8051
  self.real_time_sync_server_url = real_time_sync_server_url
7674
8052
  self.private_enabled_default = private_enabled_default
8053
+ self.optimization_config = optimization_config
7675
8054
 
7676
8055
  def __str__(self):
7677
- return "Config(api_key={}, network={}, sync_interval_secs={}, max_deposit_claim_fee={}, lnurl_domain={}, prefer_spark_over_lightning={}, external_input_parsers={}, use_default_external_input_parsers={}, real_time_sync_server_url={}, private_enabled_default={})".format(self.api_key, self.network, self.sync_interval_secs, self.max_deposit_claim_fee, self.lnurl_domain, self.prefer_spark_over_lightning, self.external_input_parsers, self.use_default_external_input_parsers, self.real_time_sync_server_url, self.private_enabled_default)
8056
+ return "Config(api_key={}, network={}, sync_interval_secs={}, max_deposit_claim_fee={}, lnurl_domain={}, prefer_spark_over_lightning={}, external_input_parsers={}, use_default_external_input_parsers={}, real_time_sync_server_url={}, private_enabled_default={}, optimization_config={})".format(self.api_key, self.network, self.sync_interval_secs, self.max_deposit_claim_fee, self.lnurl_domain, self.prefer_spark_over_lightning, self.external_input_parsers, self.use_default_external_input_parsers, self.real_time_sync_server_url, self.private_enabled_default, self.optimization_config)
7678
8057
 
7679
8058
  def __eq__(self, other):
7680
8059
  if self.api_key != other.api_key:
@@ -7697,6 +8076,8 @@ class Config:
7697
8076
  return False
7698
8077
  if self.private_enabled_default != other.private_enabled_default:
7699
8078
  return False
8079
+ if self.optimization_config != other.optimization_config:
8080
+ return False
7700
8081
  return True
7701
8082
 
7702
8083
  class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
@@ -7706,13 +8087,14 @@ class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
7706
8087
  api_key=_UniffiConverterOptionalString.read(buf),
7707
8088
  network=_UniffiConverterTypeNetwork.read(buf),
7708
8089
  sync_interval_secs=_UniffiConverterUInt32.read(buf),
7709
- max_deposit_claim_fee=_UniffiConverterOptionalTypeFee.read(buf),
8090
+ max_deposit_claim_fee=_UniffiConverterOptionalTypeMaxFee.read(buf),
7710
8091
  lnurl_domain=_UniffiConverterOptionalString.read(buf),
7711
8092
  prefer_spark_over_lightning=_UniffiConverterBool.read(buf),
7712
8093
  external_input_parsers=_UniffiConverterOptionalSequenceTypeExternalInputParser.read(buf),
7713
8094
  use_default_external_input_parsers=_UniffiConverterBool.read(buf),
7714
8095
  real_time_sync_server_url=_UniffiConverterOptionalString.read(buf),
7715
8096
  private_enabled_default=_UniffiConverterBool.read(buf),
8097
+ optimization_config=_UniffiConverterTypeOptimizationConfig.read(buf),
7716
8098
  )
7717
8099
 
7718
8100
  @staticmethod
@@ -7720,26 +8102,28 @@ class _UniffiConverterTypeConfig(_UniffiConverterRustBuffer):
7720
8102
  _UniffiConverterOptionalString.check_lower(value.api_key)
7721
8103
  _UniffiConverterTypeNetwork.check_lower(value.network)
7722
8104
  _UniffiConverterUInt32.check_lower(value.sync_interval_secs)
7723
- _UniffiConverterOptionalTypeFee.check_lower(value.max_deposit_claim_fee)
8105
+ _UniffiConverterOptionalTypeMaxFee.check_lower(value.max_deposit_claim_fee)
7724
8106
  _UniffiConverterOptionalString.check_lower(value.lnurl_domain)
7725
8107
  _UniffiConverterBool.check_lower(value.prefer_spark_over_lightning)
7726
8108
  _UniffiConverterOptionalSequenceTypeExternalInputParser.check_lower(value.external_input_parsers)
7727
8109
  _UniffiConverterBool.check_lower(value.use_default_external_input_parsers)
7728
8110
  _UniffiConverterOptionalString.check_lower(value.real_time_sync_server_url)
7729
8111
  _UniffiConverterBool.check_lower(value.private_enabled_default)
8112
+ _UniffiConverterTypeOptimizationConfig.check_lower(value.optimization_config)
7730
8113
 
7731
8114
  @staticmethod
7732
8115
  def write(value, buf):
7733
8116
  _UniffiConverterOptionalString.write(value.api_key, buf)
7734
8117
  _UniffiConverterTypeNetwork.write(value.network, buf)
7735
8118
  _UniffiConverterUInt32.write(value.sync_interval_secs, buf)
7736
- _UniffiConverterOptionalTypeFee.write(value.max_deposit_claim_fee, buf)
8119
+ _UniffiConverterOptionalTypeMaxFee.write(value.max_deposit_claim_fee, buf)
7737
8120
  _UniffiConverterOptionalString.write(value.lnurl_domain, buf)
7738
8121
  _UniffiConverterBool.write(value.prefer_spark_over_lightning, buf)
7739
8122
  _UniffiConverterOptionalSequenceTypeExternalInputParser.write(value.external_input_parsers, buf)
7740
8123
  _UniffiConverterBool.write(value.use_default_external_input_parsers, buf)
7741
8124
  _UniffiConverterOptionalString.write(value.real_time_sync_server_url, buf)
7742
8125
  _UniffiConverterBool.write(value.private_enabled_default, buf)
8126
+ _UniffiConverterTypeOptimizationConfig.write(value.optimization_config, buf)
7743
8127
 
7744
8128
 
7745
8129
  class ConnectRequest:
@@ -8583,6 +8967,11 @@ class ListPaymentsRequest:
8583
8967
  type_filter: "typing.Optional[typing.List[PaymentType]]"
8584
8968
  status_filter: "typing.Optional[typing.List[PaymentStatus]]"
8585
8969
  asset_filter: "typing.Optional[AssetFilter]"
8970
+ spark_htlc_status_filter: "typing.Optional[typing.List[SparkHtlcStatus]]"
8971
+ """
8972
+ Only include payments with specific Spark HTLC statuses
8973
+ """
8974
+
8586
8975
  from_timestamp: "typing.Optional[int]"
8587
8976
  """
8588
8977
  Only include payments created after this timestamp (inclusive)
@@ -8604,7 +8993,7 @@ class ListPaymentsRequest:
8604
8993
  """
8605
8994
 
8606
8995
  sort_ascending: "typing.Optional[bool]"
8607
- def __init__(self, *, type_filter: "typing.Optional[typing.List[PaymentType]]" = _DEFAULT, status_filter: "typing.Optional[typing.List[PaymentStatus]]" = _DEFAULT, asset_filter: "typing.Optional[AssetFilter]" = _DEFAULT, from_timestamp: "typing.Optional[int]" = _DEFAULT, to_timestamp: "typing.Optional[int]" = _DEFAULT, offset: "typing.Optional[int]" = _DEFAULT, limit: "typing.Optional[int]" = _DEFAULT, sort_ascending: "typing.Optional[bool]" = _DEFAULT):
8996
+ def __init__(self, *, type_filter: "typing.Optional[typing.List[PaymentType]]" = _DEFAULT, status_filter: "typing.Optional[typing.List[PaymentStatus]]" = _DEFAULT, asset_filter: "typing.Optional[AssetFilter]" = _DEFAULT, spark_htlc_status_filter: "typing.Optional[typing.List[SparkHtlcStatus]]" = _DEFAULT, from_timestamp: "typing.Optional[int]" = _DEFAULT, to_timestamp: "typing.Optional[int]" = _DEFAULT, offset: "typing.Optional[int]" = _DEFAULT, limit: "typing.Optional[int]" = _DEFAULT, sort_ascending: "typing.Optional[bool]" = _DEFAULT):
8608
8997
  if type_filter is _DEFAULT:
8609
8998
  self.type_filter = None
8610
8999
  else:
@@ -8617,6 +9006,10 @@ class ListPaymentsRequest:
8617
9006
  self.asset_filter = None
8618
9007
  else:
8619
9008
  self.asset_filter = asset_filter
9009
+ if spark_htlc_status_filter is _DEFAULT:
9010
+ self.spark_htlc_status_filter = None
9011
+ else:
9012
+ self.spark_htlc_status_filter = spark_htlc_status_filter
8620
9013
  if from_timestamp is _DEFAULT:
8621
9014
  self.from_timestamp = None
8622
9015
  else:
@@ -8639,7 +9032,7 @@ class ListPaymentsRequest:
8639
9032
  self.sort_ascending = sort_ascending
8640
9033
 
8641
9034
  def __str__(self):
8642
- return "ListPaymentsRequest(type_filter={}, status_filter={}, asset_filter={}, from_timestamp={}, to_timestamp={}, offset={}, limit={}, sort_ascending={})".format(self.type_filter, self.status_filter, self.asset_filter, self.from_timestamp, self.to_timestamp, self.offset, self.limit, self.sort_ascending)
9035
+ return "ListPaymentsRequest(type_filter={}, status_filter={}, asset_filter={}, spark_htlc_status_filter={}, from_timestamp={}, to_timestamp={}, offset={}, limit={}, sort_ascending={})".format(self.type_filter, self.status_filter, self.asset_filter, self.spark_htlc_status_filter, self.from_timestamp, self.to_timestamp, self.offset, self.limit, self.sort_ascending)
8643
9036
 
8644
9037
  def __eq__(self, other):
8645
9038
  if self.type_filter != other.type_filter:
@@ -8648,6 +9041,8 @@ class ListPaymentsRequest:
8648
9041
  return False
8649
9042
  if self.asset_filter != other.asset_filter:
8650
9043
  return False
9044
+ if self.spark_htlc_status_filter != other.spark_htlc_status_filter:
9045
+ return False
8651
9046
  if self.from_timestamp != other.from_timestamp:
8652
9047
  return False
8653
9048
  if self.to_timestamp != other.to_timestamp:
@@ -8667,6 +9062,7 @@ class _UniffiConverterTypeListPaymentsRequest(_UniffiConverterRustBuffer):
8667
9062
  type_filter=_UniffiConverterOptionalSequenceTypePaymentType.read(buf),
8668
9063
  status_filter=_UniffiConverterOptionalSequenceTypePaymentStatus.read(buf),
8669
9064
  asset_filter=_UniffiConverterOptionalTypeAssetFilter.read(buf),
9065
+ spark_htlc_status_filter=_UniffiConverterOptionalSequenceTypeSparkHtlcStatus.read(buf),
8670
9066
  from_timestamp=_UniffiConverterOptionalUInt64.read(buf),
8671
9067
  to_timestamp=_UniffiConverterOptionalUInt64.read(buf),
8672
9068
  offset=_UniffiConverterOptionalUInt32.read(buf),
@@ -8679,6 +9075,7 @@ class _UniffiConverterTypeListPaymentsRequest(_UniffiConverterRustBuffer):
8679
9075
  _UniffiConverterOptionalSequenceTypePaymentType.check_lower(value.type_filter)
8680
9076
  _UniffiConverterOptionalSequenceTypePaymentStatus.check_lower(value.status_filter)
8681
9077
  _UniffiConverterOptionalTypeAssetFilter.check_lower(value.asset_filter)
9078
+ _UniffiConverterOptionalSequenceTypeSparkHtlcStatus.check_lower(value.spark_htlc_status_filter)
8682
9079
  _UniffiConverterOptionalUInt64.check_lower(value.from_timestamp)
8683
9080
  _UniffiConverterOptionalUInt64.check_lower(value.to_timestamp)
8684
9081
  _UniffiConverterOptionalUInt32.check_lower(value.offset)
@@ -8690,6 +9087,7 @@ class _UniffiConverterTypeListPaymentsRequest(_UniffiConverterRustBuffer):
8690
9087
  _UniffiConverterOptionalSequenceTypePaymentType.write(value.type_filter, buf)
8691
9088
  _UniffiConverterOptionalSequenceTypePaymentStatus.write(value.status_filter, buf)
8692
9089
  _UniffiConverterOptionalTypeAssetFilter.write(value.asset_filter, buf)
9090
+ _UniffiConverterOptionalSequenceTypeSparkHtlcStatus.write(value.spark_htlc_status_filter, buf)
8693
9091
  _UniffiConverterOptionalUInt64.write(value.from_timestamp, buf)
8694
9092
  _UniffiConverterOptionalUInt64.write(value.to_timestamp, buf)
8695
9093
  _UniffiConverterOptionalUInt32.write(value.offset, buf)
@@ -8788,7 +9186,7 @@ class _UniffiConverterTypeListUnclaimedDepositsResponse(_UniffiConverterRustBuff
8788
9186
 
8789
9187
  class LnurlAuthRequestDetails:
8790
9188
  """
8791
- Wrapped in a [`LnurlAuth`], this is the result of [`parse`] when given a LNURL-auth endpoint.
9189
+ Wrapped in a [`InputType::LnurlAuth`], this is the result of [`parse`](breez_sdk_common::input::parse) when given a LNURL-auth endpoint.
8792
9190
 
8793
9191
  It represents the endpoint's parameters for the LNURL workflow.
8794
9192
 
@@ -8932,15 +9330,28 @@ class _UniffiConverterTypeLnurlPayInfo(_UniffiConverterRustBuffer):
8932
9330
 
8933
9331
  class LnurlPayRequest:
8934
9332
  prepare_response: "PrepareLnurlPayResponse"
8935
- def __init__(self, *, prepare_response: "PrepareLnurlPayResponse"):
9333
+ idempotency_key: "typing.Optional[str]"
9334
+ """
9335
+ If set, providing the same idempotency key for multiple requests will ensure that only one
9336
+ payment is made. If an idempotency key is re-used, the same payment will be returned.
9337
+ The idempotency key must be a valid UUID.
9338
+ """
9339
+
9340
+ def __init__(self, *, prepare_response: "PrepareLnurlPayResponse", idempotency_key: "typing.Optional[str]" = _DEFAULT):
8936
9341
  self.prepare_response = prepare_response
9342
+ if idempotency_key is _DEFAULT:
9343
+ self.idempotency_key = None
9344
+ else:
9345
+ self.idempotency_key = idempotency_key
8937
9346
 
8938
9347
  def __str__(self):
8939
- return "LnurlPayRequest(prepare_response={})".format(self.prepare_response)
9348
+ return "LnurlPayRequest(prepare_response={}, idempotency_key={})".format(self.prepare_response, self.idempotency_key)
8940
9349
 
8941
9350
  def __eq__(self, other):
8942
9351
  if self.prepare_response != other.prepare_response:
8943
9352
  return False
9353
+ if self.idempotency_key != other.idempotency_key:
9354
+ return False
8944
9355
  return True
8945
9356
 
8946
9357
  class _UniffiConverterTypeLnurlPayRequest(_UniffiConverterRustBuffer):
@@ -8948,15 +9359,18 @@ class _UniffiConverterTypeLnurlPayRequest(_UniffiConverterRustBuffer):
8948
9359
  def read(buf):
8949
9360
  return LnurlPayRequest(
8950
9361
  prepare_response=_UniffiConverterTypePrepareLnurlPayResponse.read(buf),
9362
+ idempotency_key=_UniffiConverterOptionalString.read(buf),
8951
9363
  )
8952
9364
 
8953
9365
  @staticmethod
8954
9366
  def check_lower(value):
8955
9367
  _UniffiConverterTypePrepareLnurlPayResponse.check_lower(value.prepare_response)
9368
+ _UniffiConverterOptionalString.check_lower(value.idempotency_key)
8956
9369
 
8957
9370
  @staticmethod
8958
9371
  def write(value, buf):
8959
9372
  _UniffiConverterTypePrepareLnurlPayResponse.write(value.prepare_response, buf)
9373
+ _UniffiConverterOptionalString.write(value.idempotency_key, buf)
8960
9374
 
8961
9375
 
8962
9376
  class LnurlPayRequestDetails:
@@ -9131,6 +9545,49 @@ class _UniffiConverterTypeLnurlPayResponse(_UniffiConverterRustBuffer):
9131
9545
  _UniffiConverterOptionalTypeSuccessActionProcessed.write(value.success_action, buf)
9132
9546
 
9133
9547
 
9548
+ class LnurlReceiveMetadata:
9549
+ nostr_zap_request: "typing.Optional[str]"
9550
+ nostr_zap_receipt: "typing.Optional[str]"
9551
+ sender_comment: "typing.Optional[str]"
9552
+ def __init__(self, *, nostr_zap_request: "typing.Optional[str]", nostr_zap_receipt: "typing.Optional[str]", sender_comment: "typing.Optional[str]"):
9553
+ self.nostr_zap_request = nostr_zap_request
9554
+ self.nostr_zap_receipt = nostr_zap_receipt
9555
+ self.sender_comment = sender_comment
9556
+
9557
+ def __str__(self):
9558
+ return "LnurlReceiveMetadata(nostr_zap_request={}, nostr_zap_receipt={}, sender_comment={})".format(self.nostr_zap_request, self.nostr_zap_receipt, self.sender_comment)
9559
+
9560
+ def __eq__(self, other):
9561
+ if self.nostr_zap_request != other.nostr_zap_request:
9562
+ return False
9563
+ if self.nostr_zap_receipt != other.nostr_zap_receipt:
9564
+ return False
9565
+ if self.sender_comment != other.sender_comment:
9566
+ return False
9567
+ return True
9568
+
9569
+ class _UniffiConverterTypeLnurlReceiveMetadata(_UniffiConverterRustBuffer):
9570
+ @staticmethod
9571
+ def read(buf):
9572
+ return LnurlReceiveMetadata(
9573
+ nostr_zap_request=_UniffiConverterOptionalString.read(buf),
9574
+ nostr_zap_receipt=_UniffiConverterOptionalString.read(buf),
9575
+ sender_comment=_UniffiConverterOptionalString.read(buf),
9576
+ )
9577
+
9578
+ @staticmethod
9579
+ def check_lower(value):
9580
+ _UniffiConverterOptionalString.check_lower(value.nostr_zap_request)
9581
+ _UniffiConverterOptionalString.check_lower(value.nostr_zap_receipt)
9582
+ _UniffiConverterOptionalString.check_lower(value.sender_comment)
9583
+
9584
+ @staticmethod
9585
+ def write(value, buf):
9586
+ _UniffiConverterOptionalString.write(value.nostr_zap_request, buf)
9587
+ _UniffiConverterOptionalString.write(value.nostr_zap_receipt, buf)
9588
+ _UniffiConverterOptionalString.write(value.sender_comment, buf)
9589
+
9590
+
9134
9591
  class LnurlWithdrawInfo:
9135
9592
  """
9136
9593
  Represents the withdraw LNURL info
@@ -9507,6 +9964,104 @@ class _UniffiConverterTypeMintIssuerTokenRequest(_UniffiConverterRustBuffer):
9507
9964
  _UniffiConverterTypeU128.write(value.amount, buf)
9508
9965
 
9509
9966
 
9967
+ class OptimizationConfig:
9968
+ auto_enabled: "bool"
9969
+ """
9970
+ Whether automatic leaf optimization is enabled.
9971
+
9972
+ If set to true, the SDK will automatically optimize the leaf set when it changes.
9973
+ Otherwise, the manual optimization API must be used to optimize the leaf set.
9974
+
9975
+ Default value is true.
9976
+ """
9977
+
9978
+ multiplicity: "int"
9979
+ """
9980
+ The desired multiplicity for the leaf set. Acceptable values are 0-5.
9981
+
9982
+ Setting this to 0 will optimize for maximizing unilateral exit.
9983
+ Higher values will optimize for minimizing transfer swaps, with higher values
9984
+ being more aggressive.
9985
+
9986
+ Default value is 1.
9987
+ """
9988
+
9989
+ def __init__(self, *, auto_enabled: "bool", multiplicity: "int"):
9990
+ self.auto_enabled = auto_enabled
9991
+ self.multiplicity = multiplicity
9992
+
9993
+ def __str__(self):
9994
+ return "OptimizationConfig(auto_enabled={}, multiplicity={})".format(self.auto_enabled, self.multiplicity)
9995
+
9996
+ def __eq__(self, other):
9997
+ if self.auto_enabled != other.auto_enabled:
9998
+ return False
9999
+ if self.multiplicity != other.multiplicity:
10000
+ return False
10001
+ return True
10002
+
10003
+ class _UniffiConverterTypeOptimizationConfig(_UniffiConverterRustBuffer):
10004
+ @staticmethod
10005
+ def read(buf):
10006
+ return OptimizationConfig(
10007
+ auto_enabled=_UniffiConverterBool.read(buf),
10008
+ multiplicity=_UniffiConverterUInt8.read(buf),
10009
+ )
10010
+
10011
+ @staticmethod
10012
+ def check_lower(value):
10013
+ _UniffiConverterBool.check_lower(value.auto_enabled)
10014
+ _UniffiConverterUInt8.check_lower(value.multiplicity)
10015
+
10016
+ @staticmethod
10017
+ def write(value, buf):
10018
+ _UniffiConverterBool.write(value.auto_enabled, buf)
10019
+ _UniffiConverterUInt8.write(value.multiplicity, buf)
10020
+
10021
+
10022
+ class OptimizationProgress:
10023
+ is_running: "bool"
10024
+ current_round: "int"
10025
+ total_rounds: "int"
10026
+ def __init__(self, *, is_running: "bool", current_round: "int", total_rounds: "int"):
10027
+ self.is_running = is_running
10028
+ self.current_round = current_round
10029
+ self.total_rounds = total_rounds
10030
+
10031
+ def __str__(self):
10032
+ return "OptimizationProgress(is_running={}, current_round={}, total_rounds={})".format(self.is_running, self.current_round, self.total_rounds)
10033
+
10034
+ def __eq__(self, other):
10035
+ if self.is_running != other.is_running:
10036
+ return False
10037
+ if self.current_round != other.current_round:
10038
+ return False
10039
+ if self.total_rounds != other.total_rounds:
10040
+ return False
10041
+ return True
10042
+
10043
+ class _UniffiConverterTypeOptimizationProgress(_UniffiConverterRustBuffer):
10044
+ @staticmethod
10045
+ def read(buf):
10046
+ return OptimizationProgress(
10047
+ is_running=_UniffiConverterBool.read(buf),
10048
+ current_round=_UniffiConverterUInt32.read(buf),
10049
+ total_rounds=_UniffiConverterUInt32.read(buf),
10050
+ )
10051
+
10052
+ @staticmethod
10053
+ def check_lower(value):
10054
+ _UniffiConverterBool.check_lower(value.is_running)
10055
+ _UniffiConverterUInt32.check_lower(value.current_round)
10056
+ _UniffiConverterUInt32.check_lower(value.total_rounds)
10057
+
10058
+ @staticmethod
10059
+ def write(value, buf):
10060
+ _UniffiConverterBool.write(value.is_running, buf)
10061
+ _UniffiConverterUInt32.write(value.current_round, buf)
10062
+ _UniffiConverterUInt32.write(value.total_rounds, buf)
10063
+
10064
+
9510
10065
  class OutgoingChange:
9511
10066
  change: "RecordChange"
9512
10067
  parent: "typing.Optional[Record]"
@@ -10138,6 +10693,63 @@ class _UniffiConverterTypeReceivePaymentResponse(_UniffiConverterRustBuffer):
10138
10693
  _UniffiConverterTypeU128.write(value.fee, buf)
10139
10694
 
10140
10695
 
10696
+ class RecommendedFees:
10697
+ fastest_fee: "int"
10698
+ half_hour_fee: "int"
10699
+ hour_fee: "int"
10700
+ economy_fee: "int"
10701
+ minimum_fee: "int"
10702
+ def __init__(self, *, fastest_fee: "int", half_hour_fee: "int", hour_fee: "int", economy_fee: "int", minimum_fee: "int"):
10703
+ self.fastest_fee = fastest_fee
10704
+ self.half_hour_fee = half_hour_fee
10705
+ self.hour_fee = hour_fee
10706
+ self.economy_fee = economy_fee
10707
+ self.minimum_fee = minimum_fee
10708
+
10709
+ def __str__(self):
10710
+ return "RecommendedFees(fastest_fee={}, half_hour_fee={}, hour_fee={}, economy_fee={}, minimum_fee={})".format(self.fastest_fee, self.half_hour_fee, self.hour_fee, self.economy_fee, self.minimum_fee)
10711
+
10712
+ def __eq__(self, other):
10713
+ if self.fastest_fee != other.fastest_fee:
10714
+ return False
10715
+ if self.half_hour_fee != other.half_hour_fee:
10716
+ return False
10717
+ if self.hour_fee != other.hour_fee:
10718
+ return False
10719
+ if self.economy_fee != other.economy_fee:
10720
+ return False
10721
+ if self.minimum_fee != other.minimum_fee:
10722
+ return False
10723
+ return True
10724
+
10725
+ class _UniffiConverterTypeRecommendedFees(_UniffiConverterRustBuffer):
10726
+ @staticmethod
10727
+ def read(buf):
10728
+ return RecommendedFees(
10729
+ fastest_fee=_UniffiConverterUInt64.read(buf),
10730
+ half_hour_fee=_UniffiConverterUInt64.read(buf),
10731
+ hour_fee=_UniffiConverterUInt64.read(buf),
10732
+ economy_fee=_UniffiConverterUInt64.read(buf),
10733
+ minimum_fee=_UniffiConverterUInt64.read(buf),
10734
+ )
10735
+
10736
+ @staticmethod
10737
+ def check_lower(value):
10738
+ _UniffiConverterUInt64.check_lower(value.fastest_fee)
10739
+ _UniffiConverterUInt64.check_lower(value.half_hour_fee)
10740
+ _UniffiConverterUInt64.check_lower(value.hour_fee)
10741
+ _UniffiConverterUInt64.check_lower(value.economy_fee)
10742
+ _UniffiConverterUInt64.check_lower(value.minimum_fee)
10743
+
10744
+ @staticmethod
10745
+ def write(value, buf):
10746
+ _UniffiConverterUInt64.write(value.fastest_fee, buf)
10747
+ _UniffiConverterUInt64.write(value.half_hour_fee, buf)
10748
+ _UniffiConverterUInt64.write(value.hour_fee, buf)
10749
+ _UniffiConverterUInt64.write(value.economy_fee, buf)
10750
+ _UniffiConverterUInt64.write(value.minimum_fee, buf)
10751
+
10752
+
10141
10753
  class Record:
10142
10754
  id: "RecordId"
10143
10755
  revision: "int"
@@ -10531,21 +11143,35 @@ class _UniffiConverterTypeSendOnchainSpeedFeeQuote(_UniffiConverterRustBuffer):
10531
11143
  class SendPaymentRequest:
10532
11144
  prepare_response: "PrepareSendPaymentResponse"
10533
11145
  options: "typing.Optional[SendPaymentOptions]"
10534
- def __init__(self, *, prepare_response: "PrepareSendPaymentResponse", options: "typing.Optional[SendPaymentOptions]" = _DEFAULT):
11146
+ idempotency_key: "typing.Optional[str]"
11147
+ """
11148
+ The optional idempotency key for all Spark based transfers (excludes token payments).
11149
+ If set, providing the same idempotency key for multiple requests will ensure that only one
11150
+ payment is made. If an idempotency key is re-used, the same payment will be returned.
11151
+ The idempotency key must be a valid UUID.
11152
+ """
11153
+
11154
+ def __init__(self, *, prepare_response: "PrepareSendPaymentResponse", options: "typing.Optional[SendPaymentOptions]" = _DEFAULT, idempotency_key: "typing.Optional[str]" = _DEFAULT):
10535
11155
  self.prepare_response = prepare_response
10536
11156
  if options is _DEFAULT:
10537
11157
  self.options = None
10538
11158
  else:
10539
11159
  self.options = options
11160
+ if idempotency_key is _DEFAULT:
11161
+ self.idempotency_key = None
11162
+ else:
11163
+ self.idempotency_key = idempotency_key
10540
11164
 
10541
11165
  def __str__(self):
10542
- return "SendPaymentRequest(prepare_response={}, options={})".format(self.prepare_response, self.options)
11166
+ return "SendPaymentRequest(prepare_response={}, options={}, idempotency_key={})".format(self.prepare_response, self.options, self.idempotency_key)
10543
11167
 
10544
11168
  def __eq__(self, other):
10545
11169
  if self.prepare_response != other.prepare_response:
10546
11170
  return False
10547
11171
  if self.options != other.options:
10548
11172
  return False
11173
+ if self.idempotency_key != other.idempotency_key:
11174
+ return False
10549
11175
  return True
10550
11176
 
10551
11177
  class _UniffiConverterTypeSendPaymentRequest(_UniffiConverterRustBuffer):
@@ -10554,17 +11180,20 @@ class _UniffiConverterTypeSendPaymentRequest(_UniffiConverterRustBuffer):
10554
11180
  return SendPaymentRequest(
10555
11181
  prepare_response=_UniffiConverterTypePrepareSendPaymentResponse.read(buf),
10556
11182
  options=_UniffiConverterOptionalTypeSendPaymentOptions.read(buf),
11183
+ idempotency_key=_UniffiConverterOptionalString.read(buf),
10557
11184
  )
10558
11185
 
10559
11186
  @staticmethod
10560
11187
  def check_lower(value):
10561
11188
  _UniffiConverterTypePrepareSendPaymentResponse.check_lower(value.prepare_response)
10562
11189
  _UniffiConverterOptionalTypeSendPaymentOptions.check_lower(value.options)
11190
+ _UniffiConverterOptionalString.check_lower(value.idempotency_key)
10563
11191
 
10564
11192
  @staticmethod
10565
11193
  def write(value, buf):
10566
11194
  _UniffiConverterTypePrepareSendPaymentResponse.write(value.prepare_response, buf)
10567
11195
  _UniffiConverterOptionalTypeSendPaymentOptions.write(value.options, buf)
11196
+ _UniffiConverterOptionalString.write(value.idempotency_key, buf)
10568
11197
 
10569
11198
 
10570
11199
  class SendPaymentResponse:
@@ -10596,6 +11225,56 @@ class _UniffiConverterTypeSendPaymentResponse(_UniffiConverterRustBuffer):
10596
11225
  _UniffiConverterTypePayment.write(value.payment, buf)
10597
11226
 
10598
11227
 
11228
+ class SetLnurlMetadataItem:
11229
+ payment_hash: "str"
11230
+ sender_comment: "typing.Optional[str]"
11231
+ nostr_zap_request: "typing.Optional[str]"
11232
+ nostr_zap_receipt: "typing.Optional[str]"
11233
+ def __init__(self, *, payment_hash: "str", sender_comment: "typing.Optional[str]", nostr_zap_request: "typing.Optional[str]", nostr_zap_receipt: "typing.Optional[str]"):
11234
+ self.payment_hash = payment_hash
11235
+ self.sender_comment = sender_comment
11236
+ self.nostr_zap_request = nostr_zap_request
11237
+ self.nostr_zap_receipt = nostr_zap_receipt
11238
+
11239
+ def __str__(self):
11240
+ return "SetLnurlMetadataItem(payment_hash={}, sender_comment={}, nostr_zap_request={}, nostr_zap_receipt={})".format(self.payment_hash, self.sender_comment, self.nostr_zap_request, self.nostr_zap_receipt)
11241
+
11242
+ def __eq__(self, other):
11243
+ if self.payment_hash != other.payment_hash:
11244
+ return False
11245
+ if self.sender_comment != other.sender_comment:
11246
+ return False
11247
+ if self.nostr_zap_request != other.nostr_zap_request:
11248
+ return False
11249
+ if self.nostr_zap_receipt != other.nostr_zap_receipt:
11250
+ return False
11251
+ return True
11252
+
11253
+ class _UniffiConverterTypeSetLnurlMetadataItem(_UniffiConverterRustBuffer):
11254
+ @staticmethod
11255
+ def read(buf):
11256
+ return SetLnurlMetadataItem(
11257
+ payment_hash=_UniffiConverterString.read(buf),
11258
+ sender_comment=_UniffiConverterOptionalString.read(buf),
11259
+ nostr_zap_request=_UniffiConverterOptionalString.read(buf),
11260
+ nostr_zap_receipt=_UniffiConverterOptionalString.read(buf),
11261
+ )
11262
+
11263
+ @staticmethod
11264
+ def check_lower(value):
11265
+ _UniffiConverterString.check_lower(value.payment_hash)
11266
+ _UniffiConverterOptionalString.check_lower(value.sender_comment)
11267
+ _UniffiConverterOptionalString.check_lower(value.nostr_zap_request)
11268
+ _UniffiConverterOptionalString.check_lower(value.nostr_zap_receipt)
11269
+
11270
+ @staticmethod
11271
+ def write(value, buf):
11272
+ _UniffiConverterString.write(value.payment_hash, buf)
11273
+ _UniffiConverterOptionalString.write(value.sender_comment, buf)
11274
+ _UniffiConverterOptionalString.write(value.nostr_zap_request, buf)
11275
+ _UniffiConverterOptionalString.write(value.nostr_zap_receipt, buf)
11276
+
11277
+
10599
11278
  class SignMessageRequest:
10600
11279
  message: "str"
10601
11280
  compact: "bool"
@@ -10777,6 +11456,117 @@ class _UniffiConverterTypeSparkAddressDetails(_UniffiConverterRustBuffer):
10777
11456
  _UniffiConverterTypePaymentRequestSource.write(value.source, buf)
10778
11457
 
10779
11458
 
11459
+ class SparkHtlcDetails:
11460
+ payment_hash: "str"
11461
+ """
11462
+ The payment hash of the HTLC
11463
+ """
11464
+
11465
+ preimage: "typing.Optional[str]"
11466
+ """
11467
+ The preimage of the HTLC. Empty until receiver has released it.
11468
+ """
11469
+
11470
+ expiry_time: "int"
11471
+ """
11472
+ The expiry time of the HTLC in seconds since the Unix epoch
11473
+ """
11474
+
11475
+ status: "SparkHtlcStatus"
11476
+ """
11477
+ The HTLC status
11478
+ """
11479
+
11480
+ def __init__(self, *, payment_hash: "str", preimage: "typing.Optional[str]", expiry_time: "int", status: "SparkHtlcStatus"):
11481
+ self.payment_hash = payment_hash
11482
+ self.preimage = preimage
11483
+ self.expiry_time = expiry_time
11484
+ self.status = status
11485
+
11486
+ def __str__(self):
11487
+ return "SparkHtlcDetails(payment_hash={}, preimage={}, expiry_time={}, status={})".format(self.payment_hash, self.preimage, self.expiry_time, self.status)
11488
+
11489
+ def __eq__(self, other):
11490
+ if self.payment_hash != other.payment_hash:
11491
+ return False
11492
+ if self.preimage != other.preimage:
11493
+ return False
11494
+ if self.expiry_time != other.expiry_time:
11495
+ return False
11496
+ if self.status != other.status:
11497
+ return False
11498
+ return True
11499
+
11500
+ class _UniffiConverterTypeSparkHtlcDetails(_UniffiConverterRustBuffer):
11501
+ @staticmethod
11502
+ def read(buf):
11503
+ return SparkHtlcDetails(
11504
+ payment_hash=_UniffiConverterString.read(buf),
11505
+ preimage=_UniffiConverterOptionalString.read(buf),
11506
+ expiry_time=_UniffiConverterUInt64.read(buf),
11507
+ status=_UniffiConverterTypeSparkHtlcStatus.read(buf),
11508
+ )
11509
+
11510
+ @staticmethod
11511
+ def check_lower(value):
11512
+ _UniffiConverterString.check_lower(value.payment_hash)
11513
+ _UniffiConverterOptionalString.check_lower(value.preimage)
11514
+ _UniffiConverterUInt64.check_lower(value.expiry_time)
11515
+ _UniffiConverterTypeSparkHtlcStatus.check_lower(value.status)
11516
+
11517
+ @staticmethod
11518
+ def write(value, buf):
11519
+ _UniffiConverterString.write(value.payment_hash, buf)
11520
+ _UniffiConverterOptionalString.write(value.preimage, buf)
11521
+ _UniffiConverterUInt64.write(value.expiry_time, buf)
11522
+ _UniffiConverterTypeSparkHtlcStatus.write(value.status, buf)
11523
+
11524
+
11525
+ class SparkHtlcOptions:
11526
+ payment_hash: "str"
11527
+ """
11528
+ The payment hash of the HTLC. The receiver will need to provide the associated preimage to claim it.
11529
+ """
11530
+
11531
+ expiry_duration_secs: "int"
11532
+ """
11533
+ The duration of the HTLC in seconds.
11534
+ After this time, the HTLC will be returned.
11535
+ """
11536
+
11537
+ def __init__(self, *, payment_hash: "str", expiry_duration_secs: "int"):
11538
+ self.payment_hash = payment_hash
11539
+ self.expiry_duration_secs = expiry_duration_secs
11540
+
11541
+ def __str__(self):
11542
+ return "SparkHtlcOptions(payment_hash={}, expiry_duration_secs={})".format(self.payment_hash, self.expiry_duration_secs)
11543
+
11544
+ def __eq__(self, other):
11545
+ if self.payment_hash != other.payment_hash:
11546
+ return False
11547
+ if self.expiry_duration_secs != other.expiry_duration_secs:
11548
+ return False
11549
+ return True
11550
+
11551
+ class _UniffiConverterTypeSparkHtlcOptions(_UniffiConverterRustBuffer):
11552
+ @staticmethod
11553
+ def read(buf):
11554
+ return SparkHtlcOptions(
11555
+ payment_hash=_UniffiConverterString.read(buf),
11556
+ expiry_duration_secs=_UniffiConverterUInt64.read(buf),
11557
+ )
11558
+
11559
+ @staticmethod
11560
+ def check_lower(value):
11561
+ _UniffiConverterString.check_lower(value.payment_hash)
11562
+ _UniffiConverterUInt64.check_lower(value.expiry_duration_secs)
11563
+
11564
+ @staticmethod
11565
+ def write(value, buf):
11566
+ _UniffiConverterString.write(value.payment_hash, buf)
11567
+ _UniffiConverterUInt64.write(value.expiry_duration_secs, buf)
11568
+
11569
+
10780
11570
  class SparkInvoiceDetails:
10781
11571
  invoice: "str"
10782
11572
  """
@@ -11466,64 +12256,6 @@ class _UniffiConverterTypeUtxo(_UniffiConverterRustBuffer):
11466
12256
  _UniffiConverterTypeTxStatus.write(value.status, buf)
11467
12257
 
11468
12258
 
11469
- class WaitForPaymentRequest:
11470
- identifier: "WaitForPaymentIdentifier"
11471
- def __init__(self, *, identifier: "WaitForPaymentIdentifier"):
11472
- self.identifier = identifier
11473
-
11474
- def __str__(self):
11475
- return "WaitForPaymentRequest(identifier={})".format(self.identifier)
11476
-
11477
- def __eq__(self, other):
11478
- if self.identifier != other.identifier:
11479
- return False
11480
- return True
11481
-
11482
- class _UniffiConverterTypeWaitForPaymentRequest(_UniffiConverterRustBuffer):
11483
- @staticmethod
11484
- def read(buf):
11485
- return WaitForPaymentRequest(
11486
- identifier=_UniffiConverterTypeWaitForPaymentIdentifier.read(buf),
11487
- )
11488
-
11489
- @staticmethod
11490
- def check_lower(value):
11491
- _UniffiConverterTypeWaitForPaymentIdentifier.check_lower(value.identifier)
11492
-
11493
- @staticmethod
11494
- def write(value, buf):
11495
- _UniffiConverterTypeWaitForPaymentIdentifier.write(value.identifier, buf)
11496
-
11497
-
11498
- class WaitForPaymentResponse:
11499
- payment: "Payment"
11500
- def __init__(self, *, payment: "Payment"):
11501
- self.payment = payment
11502
-
11503
- def __str__(self):
11504
- return "WaitForPaymentResponse(payment={})".format(self.payment)
11505
-
11506
- def __eq__(self, other):
11507
- if self.payment != other.payment:
11508
- return False
11509
- return True
11510
-
11511
- class _UniffiConverterTypeWaitForPaymentResponse(_UniffiConverterRustBuffer):
11512
- @staticmethod
11513
- def read(buf):
11514
- return WaitForPaymentResponse(
11515
- payment=_UniffiConverterTypePayment.read(buf),
11516
- )
11517
-
11518
- @staticmethod
11519
- def check_lower(value):
11520
- _UniffiConverterTypePayment.check_lower(value.payment)
11521
-
11522
- @staticmethod
11523
- def write(value, buf):
11524
- _UniffiConverterTypePayment.write(value.payment, buf)
11525
-
11526
-
11527
12259
 
11528
12260
 
11529
12261
 
@@ -11900,6 +12632,44 @@ class _UniffiConverterTypeBitcoinNetwork(_UniffiConverterRustBuffer):
11900
12632
 
11901
12633
 
11902
12634
 
12635
+
12636
+
12637
+
12638
+ class ChainApiType(enum.Enum):
12639
+ ESPLORA = 0
12640
+
12641
+ MEMPOOL_SPACE = 1
12642
+
12643
+
12644
+
12645
+ class _UniffiConverterTypeChainApiType(_UniffiConverterRustBuffer):
12646
+ @staticmethod
12647
+ def read(buf):
12648
+ variant = buf.read_i32()
12649
+ if variant == 1:
12650
+ return ChainApiType.ESPLORA
12651
+ if variant == 2:
12652
+ return ChainApiType.MEMPOOL_SPACE
12653
+ raise InternalError("Raw enum value doesn't match any cases")
12654
+
12655
+ @staticmethod
12656
+ def check_lower(value):
12657
+ if value == ChainApiType.ESPLORA:
12658
+ return
12659
+ if value == ChainApiType.MEMPOOL_SPACE:
12660
+ return
12661
+ raise ValueError(value)
12662
+
12663
+ @staticmethod
12664
+ def write(value, buf):
12665
+ if value == ChainApiType.ESPLORA:
12666
+ buf.write_i32(1)
12667
+ if value == ChainApiType.MEMPOOL_SPACE:
12668
+ buf.write_i32(2)
12669
+
12670
+
12671
+
12672
+
11903
12673
  # ChainServiceError
11904
12674
  # We want to define each variant as a nested class that's also a subclass,
11905
12675
  # which is tricky in Python. To accomplish this we're going to create each
@@ -12013,23 +12783,25 @@ class DepositClaimError:
12013
12783
  raise RuntimeError("DepositClaimError cannot be instantiated directly")
12014
12784
 
12015
12785
  # Each enum variant is a nested class of the enum itself.
12016
- class DEPOSIT_CLAIM_FEE_EXCEEDED:
12786
+ class MAX_DEPOSIT_CLAIM_FEE_EXCEEDED:
12017
12787
  tx: "str"
12018
12788
  vout: "int"
12019
12789
  max_fee: "typing.Optional[Fee]"
12020
- actual_fee: "int"
12790
+ required_fee_sats: "int"
12791
+ required_fee_rate_sat_per_vbyte: "int"
12021
12792
 
12022
- def __init__(self,tx: "str", vout: "int", max_fee: "typing.Optional[Fee]", actual_fee: "int"):
12793
+ def __init__(self,tx: "str", vout: "int", max_fee: "typing.Optional[Fee]", required_fee_sats: "int", required_fee_rate_sat_per_vbyte: "int"):
12023
12794
  self.tx = tx
12024
12795
  self.vout = vout
12025
12796
  self.max_fee = max_fee
12026
- self.actual_fee = actual_fee
12797
+ self.required_fee_sats = required_fee_sats
12798
+ self.required_fee_rate_sat_per_vbyte = required_fee_rate_sat_per_vbyte
12027
12799
 
12028
12800
  def __str__(self):
12029
- return "DepositClaimError.DEPOSIT_CLAIM_FEE_EXCEEDED(tx={}, vout={}, max_fee={}, actual_fee={})".format(self.tx, self.vout, self.max_fee, self.actual_fee)
12801
+ return "DepositClaimError.MAX_DEPOSIT_CLAIM_FEE_EXCEEDED(tx={}, vout={}, max_fee={}, required_fee_sats={}, required_fee_rate_sat_per_vbyte={})".format(self.tx, self.vout, self.max_fee, self.required_fee_sats, self.required_fee_rate_sat_per_vbyte)
12030
12802
 
12031
12803
  def __eq__(self, other):
12032
- if not other.is_deposit_claim_fee_exceeded():
12804
+ if not other.is_max_deposit_claim_fee_exceeded():
12033
12805
  return False
12034
12806
  if self.tx != other.tx:
12035
12807
  return False
@@ -12037,7 +12809,9 @@ class DepositClaimError:
12037
12809
  return False
12038
12810
  if self.max_fee != other.max_fee:
12039
12811
  return False
12040
- if self.actual_fee != other.actual_fee:
12812
+ if self.required_fee_sats != other.required_fee_sats:
12813
+ return False
12814
+ if self.required_fee_rate_sat_per_vbyte != other.required_fee_rate_sat_per_vbyte:
12041
12815
  return False
12042
12816
  return True
12043
12817
 
@@ -12081,8 +12855,8 @@ class DepositClaimError:
12081
12855
 
12082
12856
  # For each variant, we have an `is_NAME` method for easily checking
12083
12857
  # whether an instance is that variant.
12084
- def is_deposit_claim_fee_exceeded(self) -> bool:
12085
- return isinstance(self, DepositClaimError.DEPOSIT_CLAIM_FEE_EXCEEDED)
12858
+ def is_max_deposit_claim_fee_exceeded(self) -> bool:
12859
+ return isinstance(self, DepositClaimError.MAX_DEPOSIT_CLAIM_FEE_EXCEEDED)
12086
12860
  def is_missing_utxo(self) -> bool:
12087
12861
  return isinstance(self, DepositClaimError.MISSING_UTXO)
12088
12862
  def is_generic(self) -> bool:
@@ -12092,7 +12866,7 @@ class DepositClaimError:
12092
12866
  # Now, a little trick - we make each nested variant class be a subclass of the main
12093
12867
  # enum class, so that method calls and instance checks etc will work intuitively.
12094
12868
  # We might be able to do this a little more neatly with a metaclass, but this'll do.
12095
- DepositClaimError.DEPOSIT_CLAIM_FEE_EXCEEDED = type("DepositClaimError.DEPOSIT_CLAIM_FEE_EXCEEDED", (DepositClaimError.DEPOSIT_CLAIM_FEE_EXCEEDED, DepositClaimError,), {}) # type: ignore
12869
+ DepositClaimError.MAX_DEPOSIT_CLAIM_FEE_EXCEEDED = type("DepositClaimError.MAX_DEPOSIT_CLAIM_FEE_EXCEEDED", (DepositClaimError.MAX_DEPOSIT_CLAIM_FEE_EXCEEDED, DepositClaimError,), {}) # type: ignore
12096
12870
  DepositClaimError.MISSING_UTXO = type("DepositClaimError.MISSING_UTXO", (DepositClaimError.MISSING_UTXO, DepositClaimError,), {}) # type: ignore
12097
12871
  DepositClaimError.GENERIC = type("DepositClaimError.GENERIC", (DepositClaimError.GENERIC, DepositClaimError,), {}) # type: ignore
12098
12872
 
@@ -12104,11 +12878,12 @@ class _UniffiConverterTypeDepositClaimError(_UniffiConverterRustBuffer):
12104
12878
  def read(buf):
12105
12879
  variant = buf.read_i32()
12106
12880
  if variant == 1:
12107
- return DepositClaimError.DEPOSIT_CLAIM_FEE_EXCEEDED(
12881
+ return DepositClaimError.MAX_DEPOSIT_CLAIM_FEE_EXCEEDED(
12108
12882
  _UniffiConverterString.read(buf),
12109
12883
  _UniffiConverterUInt32.read(buf),
12110
12884
  _UniffiConverterOptionalTypeFee.read(buf),
12111
12885
  _UniffiConverterUInt64.read(buf),
12886
+ _UniffiConverterUInt64.read(buf),
12112
12887
  )
12113
12888
  if variant == 2:
12114
12889
  return DepositClaimError.MISSING_UTXO(
@@ -12123,11 +12898,12 @@ class _UniffiConverterTypeDepositClaimError(_UniffiConverterRustBuffer):
12123
12898
 
12124
12899
  @staticmethod
12125
12900
  def check_lower(value):
12126
- if value.is_deposit_claim_fee_exceeded():
12901
+ if value.is_max_deposit_claim_fee_exceeded():
12127
12902
  _UniffiConverterString.check_lower(value.tx)
12128
12903
  _UniffiConverterUInt32.check_lower(value.vout)
12129
12904
  _UniffiConverterOptionalTypeFee.check_lower(value.max_fee)
12130
- _UniffiConverterUInt64.check_lower(value.actual_fee)
12905
+ _UniffiConverterUInt64.check_lower(value.required_fee_sats)
12906
+ _UniffiConverterUInt64.check_lower(value.required_fee_rate_sat_per_vbyte)
12131
12907
  return
12132
12908
  if value.is_missing_utxo():
12133
12909
  _UniffiConverterString.check_lower(value.tx)
@@ -12140,12 +12916,13 @@ class _UniffiConverterTypeDepositClaimError(_UniffiConverterRustBuffer):
12140
12916
 
12141
12917
  @staticmethod
12142
12918
  def write(value, buf):
12143
- if value.is_deposit_claim_fee_exceeded():
12919
+ if value.is_max_deposit_claim_fee_exceeded():
12144
12920
  buf.write_i32(1)
12145
12921
  _UniffiConverterString.write(value.tx, buf)
12146
12922
  _UniffiConverterUInt32.write(value.vout, buf)
12147
12923
  _UniffiConverterOptionalTypeFee.write(value.max_fee, buf)
12148
- _UniffiConverterUInt64.write(value.actual_fee, buf)
12924
+ _UniffiConverterUInt64.write(value.required_fee_sats, buf)
12925
+ _UniffiConverterUInt64.write(value.required_fee_rate_sat_per_vbyte, buf)
12149
12926
  if value.is_missing_utxo():
12150
12927
  buf.write_i32(2)
12151
12928
  _UniffiConverterString.write(value.tx, buf)
@@ -12788,6 +13565,130 @@ class _UniffiConverterTypeKeySetType(_UniffiConverterRustBuffer):
12788
13565
 
12789
13566
 
12790
13567
 
13568
+ class MaxFee:
13569
+ def __init__(self):
13570
+ raise RuntimeError("MaxFee cannot be instantiated directly")
13571
+
13572
+ # Each enum variant is a nested class of the enum itself.
13573
+ class FIXED:
13574
+ amount: "int"
13575
+
13576
+ def __init__(self,amount: "int"):
13577
+ self.amount = amount
13578
+
13579
+ def __str__(self):
13580
+ return "MaxFee.FIXED(amount={})".format(self.amount)
13581
+
13582
+ def __eq__(self, other):
13583
+ if not other.is_fixed():
13584
+ return False
13585
+ if self.amount != other.amount:
13586
+ return False
13587
+ return True
13588
+
13589
+ class RATE:
13590
+ sat_per_vbyte: "int"
13591
+
13592
+ def __init__(self,sat_per_vbyte: "int"):
13593
+ self.sat_per_vbyte = sat_per_vbyte
13594
+
13595
+ def __str__(self):
13596
+ return "MaxFee.RATE(sat_per_vbyte={})".format(self.sat_per_vbyte)
13597
+
13598
+ def __eq__(self, other):
13599
+ if not other.is_rate():
13600
+ return False
13601
+ if self.sat_per_vbyte != other.sat_per_vbyte:
13602
+ return False
13603
+ return True
13604
+
13605
+ class NETWORK_RECOMMENDED:
13606
+ leeway_sat_per_vbyte: "int"
13607
+
13608
+ def __init__(self,leeway_sat_per_vbyte: "int"):
13609
+ self.leeway_sat_per_vbyte = leeway_sat_per_vbyte
13610
+
13611
+ def __str__(self):
13612
+ return "MaxFee.NETWORK_RECOMMENDED(leeway_sat_per_vbyte={})".format(self.leeway_sat_per_vbyte)
13613
+
13614
+ def __eq__(self, other):
13615
+ if not other.is_network_recommended():
13616
+ return False
13617
+ if self.leeway_sat_per_vbyte != other.leeway_sat_per_vbyte:
13618
+ return False
13619
+ return True
13620
+
13621
+
13622
+
13623
+ # For each variant, we have an `is_NAME` method for easily checking
13624
+ # whether an instance is that variant.
13625
+ def is_fixed(self) -> bool:
13626
+ return isinstance(self, MaxFee.FIXED)
13627
+ def is_rate(self) -> bool:
13628
+ return isinstance(self, MaxFee.RATE)
13629
+ def is_network_recommended(self) -> bool:
13630
+ return isinstance(self, MaxFee.NETWORK_RECOMMENDED)
13631
+
13632
+
13633
+ # Now, a little trick - we make each nested variant class be a subclass of the main
13634
+ # enum class, so that method calls and instance checks etc will work intuitively.
13635
+ # We might be able to do this a little more neatly with a metaclass, but this'll do.
13636
+ MaxFee.FIXED = type("MaxFee.FIXED", (MaxFee.FIXED, MaxFee,), {}) # type: ignore
13637
+ MaxFee.RATE = type("MaxFee.RATE", (MaxFee.RATE, MaxFee,), {}) # type: ignore
13638
+ MaxFee.NETWORK_RECOMMENDED = type("MaxFee.NETWORK_RECOMMENDED", (MaxFee.NETWORK_RECOMMENDED, MaxFee,), {}) # type: ignore
13639
+
13640
+
13641
+
13642
+
13643
+ class _UniffiConverterTypeMaxFee(_UniffiConverterRustBuffer):
13644
+ @staticmethod
13645
+ def read(buf):
13646
+ variant = buf.read_i32()
13647
+ if variant == 1:
13648
+ return MaxFee.FIXED(
13649
+ _UniffiConverterUInt64.read(buf),
13650
+ )
13651
+ if variant == 2:
13652
+ return MaxFee.RATE(
13653
+ _UniffiConverterUInt64.read(buf),
13654
+ )
13655
+ if variant == 3:
13656
+ return MaxFee.NETWORK_RECOMMENDED(
13657
+ _UniffiConverterUInt64.read(buf),
13658
+ )
13659
+ raise InternalError("Raw enum value doesn't match any cases")
13660
+
13661
+ @staticmethod
13662
+ def check_lower(value):
13663
+ if value.is_fixed():
13664
+ _UniffiConverterUInt64.check_lower(value.amount)
13665
+ return
13666
+ if value.is_rate():
13667
+ _UniffiConverterUInt64.check_lower(value.sat_per_vbyte)
13668
+ return
13669
+ if value.is_network_recommended():
13670
+ _UniffiConverterUInt64.check_lower(value.leeway_sat_per_vbyte)
13671
+ return
13672
+ raise ValueError(value)
13673
+
13674
+ @staticmethod
13675
+ def write(value, buf):
13676
+ if value.is_fixed():
13677
+ buf.write_i32(1)
13678
+ _UniffiConverterUInt64.write(value.amount, buf)
13679
+ if value.is_rate():
13680
+ buf.write_i32(2)
13681
+ _UniffiConverterUInt64.write(value.sat_per_vbyte, buf)
13682
+ if value.is_network_recommended():
13683
+ buf.write_i32(3)
13684
+ _UniffiConverterUInt64.write(value.leeway_sat_per_vbyte, buf)
13685
+
13686
+
13687
+
13688
+
13689
+
13690
+
13691
+
12791
13692
  class Network(enum.Enum):
12792
13693
  MAINNET = 0
12793
13694
 
@@ -12872,6 +13773,230 @@ class _UniffiConverterTypeOnchainConfirmationSpeed(_UniffiConverterRustBuffer):
12872
13773
 
12873
13774
 
12874
13775
 
13776
+ class OptimizationEvent:
13777
+ def __init__(self):
13778
+ raise RuntimeError("OptimizationEvent cannot be instantiated directly")
13779
+
13780
+ # Each enum variant is a nested class of the enum itself.
13781
+ class STARTED:
13782
+ """
13783
+ Optimization has started with the given number of rounds.
13784
+ """
13785
+
13786
+ total_rounds: "int"
13787
+
13788
+ def __init__(self,total_rounds: "int"):
13789
+ self.total_rounds = total_rounds
13790
+
13791
+ def __str__(self):
13792
+ return "OptimizationEvent.STARTED(total_rounds={})".format(self.total_rounds)
13793
+
13794
+ def __eq__(self, other):
13795
+ if not other.is_started():
13796
+ return False
13797
+ if self.total_rounds != other.total_rounds:
13798
+ return False
13799
+ return True
13800
+
13801
+ class ROUND_COMPLETED:
13802
+ """
13803
+ A round has completed.
13804
+ """
13805
+
13806
+ current_round: "int"
13807
+ total_rounds: "int"
13808
+
13809
+ def __init__(self,current_round: "int", total_rounds: "int"):
13810
+ self.current_round = current_round
13811
+ self.total_rounds = total_rounds
13812
+
13813
+ def __str__(self):
13814
+ return "OptimizationEvent.ROUND_COMPLETED(current_round={}, total_rounds={})".format(self.current_round, self.total_rounds)
13815
+
13816
+ def __eq__(self, other):
13817
+ if not other.is_round_completed():
13818
+ return False
13819
+ if self.current_round != other.current_round:
13820
+ return False
13821
+ if self.total_rounds != other.total_rounds:
13822
+ return False
13823
+ return True
13824
+
13825
+ class COMPLETED:
13826
+ """
13827
+ Optimization completed successfully.
13828
+ """
13829
+
13830
+
13831
+ def __init__(self,):
13832
+ pass
13833
+
13834
+ def __str__(self):
13835
+ return "OptimizationEvent.COMPLETED()".format()
13836
+
13837
+ def __eq__(self, other):
13838
+ if not other.is_completed():
13839
+ return False
13840
+ return True
13841
+
13842
+ class CANCELLED:
13843
+ """
13844
+ Optimization was cancelled.
13845
+ """
13846
+
13847
+
13848
+ def __init__(self,):
13849
+ pass
13850
+
13851
+ def __str__(self):
13852
+ return "OptimizationEvent.CANCELLED()".format()
13853
+
13854
+ def __eq__(self, other):
13855
+ if not other.is_cancelled():
13856
+ return False
13857
+ return True
13858
+
13859
+ class FAILED:
13860
+ """
13861
+ Optimization failed with an error.
13862
+ """
13863
+
13864
+ error: "str"
13865
+
13866
+ def __init__(self,error: "str"):
13867
+ self.error = error
13868
+
13869
+ def __str__(self):
13870
+ return "OptimizationEvent.FAILED(error={})".format(self.error)
13871
+
13872
+ def __eq__(self, other):
13873
+ if not other.is_failed():
13874
+ return False
13875
+ if self.error != other.error:
13876
+ return False
13877
+ return True
13878
+
13879
+ class SKIPPED:
13880
+ """
13881
+ Optimization was skipped because leaves are already optimal.
13882
+ """
13883
+
13884
+
13885
+ def __init__(self,):
13886
+ pass
13887
+
13888
+ def __str__(self):
13889
+ return "OptimizationEvent.SKIPPED()".format()
13890
+
13891
+ def __eq__(self, other):
13892
+ if not other.is_skipped():
13893
+ return False
13894
+ return True
13895
+
13896
+
13897
+
13898
+ # For each variant, we have an `is_NAME` method for easily checking
13899
+ # whether an instance is that variant.
13900
+ def is_started(self) -> bool:
13901
+ return isinstance(self, OptimizationEvent.STARTED)
13902
+ def is_round_completed(self) -> bool:
13903
+ return isinstance(self, OptimizationEvent.ROUND_COMPLETED)
13904
+ def is_completed(self) -> bool:
13905
+ return isinstance(self, OptimizationEvent.COMPLETED)
13906
+ def is_cancelled(self) -> bool:
13907
+ return isinstance(self, OptimizationEvent.CANCELLED)
13908
+ def is_failed(self) -> bool:
13909
+ return isinstance(self, OptimizationEvent.FAILED)
13910
+ def is_skipped(self) -> bool:
13911
+ return isinstance(self, OptimizationEvent.SKIPPED)
13912
+
13913
+
13914
+ # Now, a little trick - we make each nested variant class be a subclass of the main
13915
+ # enum class, so that method calls and instance checks etc will work intuitively.
13916
+ # We might be able to do this a little more neatly with a metaclass, but this'll do.
13917
+ OptimizationEvent.STARTED = type("OptimizationEvent.STARTED", (OptimizationEvent.STARTED, OptimizationEvent,), {}) # type: ignore
13918
+ OptimizationEvent.ROUND_COMPLETED = type("OptimizationEvent.ROUND_COMPLETED", (OptimizationEvent.ROUND_COMPLETED, OptimizationEvent,), {}) # type: ignore
13919
+ OptimizationEvent.COMPLETED = type("OptimizationEvent.COMPLETED", (OptimizationEvent.COMPLETED, OptimizationEvent,), {}) # type: ignore
13920
+ OptimizationEvent.CANCELLED = type("OptimizationEvent.CANCELLED", (OptimizationEvent.CANCELLED, OptimizationEvent,), {}) # type: ignore
13921
+ OptimizationEvent.FAILED = type("OptimizationEvent.FAILED", (OptimizationEvent.FAILED, OptimizationEvent,), {}) # type: ignore
13922
+ OptimizationEvent.SKIPPED = type("OptimizationEvent.SKIPPED", (OptimizationEvent.SKIPPED, OptimizationEvent,), {}) # type: ignore
13923
+
13924
+
13925
+
13926
+
13927
+ class _UniffiConverterTypeOptimizationEvent(_UniffiConverterRustBuffer):
13928
+ @staticmethod
13929
+ def read(buf):
13930
+ variant = buf.read_i32()
13931
+ if variant == 1:
13932
+ return OptimizationEvent.STARTED(
13933
+ _UniffiConverterUInt32.read(buf),
13934
+ )
13935
+ if variant == 2:
13936
+ return OptimizationEvent.ROUND_COMPLETED(
13937
+ _UniffiConverterUInt32.read(buf),
13938
+ _UniffiConverterUInt32.read(buf),
13939
+ )
13940
+ if variant == 3:
13941
+ return OptimizationEvent.COMPLETED(
13942
+ )
13943
+ if variant == 4:
13944
+ return OptimizationEvent.CANCELLED(
13945
+ )
13946
+ if variant == 5:
13947
+ return OptimizationEvent.FAILED(
13948
+ _UniffiConverterString.read(buf),
13949
+ )
13950
+ if variant == 6:
13951
+ return OptimizationEvent.SKIPPED(
13952
+ )
13953
+ raise InternalError("Raw enum value doesn't match any cases")
13954
+
13955
+ @staticmethod
13956
+ def check_lower(value):
13957
+ if value.is_started():
13958
+ _UniffiConverterUInt32.check_lower(value.total_rounds)
13959
+ return
13960
+ if value.is_round_completed():
13961
+ _UniffiConverterUInt32.check_lower(value.current_round)
13962
+ _UniffiConverterUInt32.check_lower(value.total_rounds)
13963
+ return
13964
+ if value.is_completed():
13965
+ return
13966
+ if value.is_cancelled():
13967
+ return
13968
+ if value.is_failed():
13969
+ _UniffiConverterString.check_lower(value.error)
13970
+ return
13971
+ if value.is_skipped():
13972
+ return
13973
+ raise ValueError(value)
13974
+
13975
+ @staticmethod
13976
+ def write(value, buf):
13977
+ if value.is_started():
13978
+ buf.write_i32(1)
13979
+ _UniffiConverterUInt32.write(value.total_rounds, buf)
13980
+ if value.is_round_completed():
13981
+ buf.write_i32(2)
13982
+ _UniffiConverterUInt32.write(value.current_round, buf)
13983
+ _UniffiConverterUInt32.write(value.total_rounds, buf)
13984
+ if value.is_completed():
13985
+ buf.write_i32(3)
13986
+ if value.is_cancelled():
13987
+ buf.write_i32(4)
13988
+ if value.is_failed():
13989
+ buf.write_i32(5)
13990
+ _UniffiConverterString.write(value.error, buf)
13991
+ if value.is_skipped():
13992
+ buf.write_i32(6)
13993
+
13994
+
13995
+
13996
+
13997
+
13998
+
13999
+
12875
14000
  class PaymentDetails:
12876
14001
  def __init__(self):
12877
14002
  raise RuntimeError("PaymentDetails cannot be instantiated directly")
@@ -12883,18 +14008,26 @@ class PaymentDetails:
12883
14008
  The invoice details if the payment fulfilled a spark invoice
12884
14009
  """
12885
14010
 
14011
+ htlc_details: "typing.Optional[SparkHtlcDetails]"
14012
+ """
14013
+ The HTLC transfer details if the payment fulfilled an HTLC transfer
14014
+ """
12886
14015
 
12887
- def __init__(self,invoice_details: "typing.Optional[SparkInvoicePaymentDetails]"):
14016
+
14017
+ def __init__(self,invoice_details: "typing.Optional[SparkInvoicePaymentDetails]", htlc_details: "typing.Optional[SparkHtlcDetails]"):
12888
14018
  self.invoice_details = invoice_details
14019
+ self.htlc_details = htlc_details
12889
14020
 
12890
14021
  def __str__(self):
12891
- return "PaymentDetails.SPARK(invoice_details={})".format(self.invoice_details)
14022
+ return "PaymentDetails.SPARK(invoice_details={}, htlc_details={})".format(self.invoice_details, self.htlc_details)
12892
14023
 
12893
14024
  def __eq__(self, other):
12894
14025
  if not other.is_spark():
12895
14026
  return False
12896
14027
  if self.invoice_details != other.invoice_details:
12897
14028
  return False
14029
+ if self.htlc_details != other.htlc_details:
14030
+ return False
12898
14031
  return True
12899
14032
 
12900
14033
  class TOKEN:
@@ -12963,8 +14096,13 @@ class PaymentDetails:
12963
14096
  Lnurl withdrawal information if this was an lnurl payment.
12964
14097
  """
12965
14098
 
14099
+ lnurl_receive_metadata: "typing.Optional[LnurlReceiveMetadata]"
14100
+ """
14101
+ Lnurl receive information if this was a received lnurl payment.
14102
+ """
12966
14103
 
12967
- def __init__(self,description: "typing.Optional[str]", preimage: "typing.Optional[str]", invoice: "str", payment_hash: "str", destination_pubkey: "str", lnurl_pay_info: "typing.Optional[LnurlPayInfo]", lnurl_withdraw_info: "typing.Optional[LnurlWithdrawInfo]"):
14104
+
14105
+ def __init__(self,description: "typing.Optional[str]", preimage: "typing.Optional[str]", invoice: "str", payment_hash: "str", destination_pubkey: "str", lnurl_pay_info: "typing.Optional[LnurlPayInfo]", lnurl_withdraw_info: "typing.Optional[LnurlWithdrawInfo]", lnurl_receive_metadata: "typing.Optional[LnurlReceiveMetadata]"):
12968
14106
  self.description = description
12969
14107
  self.preimage = preimage
12970
14108
  self.invoice = invoice
@@ -12972,9 +14110,10 @@ class PaymentDetails:
12972
14110
  self.destination_pubkey = destination_pubkey
12973
14111
  self.lnurl_pay_info = lnurl_pay_info
12974
14112
  self.lnurl_withdraw_info = lnurl_withdraw_info
14113
+ self.lnurl_receive_metadata = lnurl_receive_metadata
12975
14114
 
12976
14115
  def __str__(self):
12977
- return "PaymentDetails.LIGHTNING(description={}, preimage={}, invoice={}, payment_hash={}, destination_pubkey={}, lnurl_pay_info={}, lnurl_withdraw_info={})".format(self.description, self.preimage, self.invoice, self.payment_hash, self.destination_pubkey, self.lnurl_pay_info, self.lnurl_withdraw_info)
14116
+ return "PaymentDetails.LIGHTNING(description={}, preimage={}, invoice={}, payment_hash={}, destination_pubkey={}, lnurl_pay_info={}, lnurl_withdraw_info={}, lnurl_receive_metadata={})".format(self.description, self.preimage, self.invoice, self.payment_hash, self.destination_pubkey, self.lnurl_pay_info, self.lnurl_withdraw_info, self.lnurl_receive_metadata)
12978
14117
 
12979
14118
  def __eq__(self, other):
12980
14119
  if not other.is_lightning():
@@ -12993,6 +14132,8 @@ class PaymentDetails:
12993
14132
  return False
12994
14133
  if self.lnurl_withdraw_info != other.lnurl_withdraw_info:
12995
14134
  return False
14135
+ if self.lnurl_receive_metadata != other.lnurl_receive_metadata:
14136
+ return False
12996
14137
  return True
12997
14138
 
12998
14139
  class WITHDRAW:
@@ -13062,6 +14203,7 @@ class _UniffiConverterTypePaymentDetails(_UniffiConverterRustBuffer):
13062
14203
  if variant == 1:
13063
14204
  return PaymentDetails.SPARK(
13064
14205
  _UniffiConverterOptionalTypeSparkInvoicePaymentDetails.read(buf),
14206
+ _UniffiConverterOptionalTypeSparkHtlcDetails.read(buf),
13065
14207
  )
13066
14208
  if variant == 2:
13067
14209
  return PaymentDetails.TOKEN(
@@ -13078,6 +14220,7 @@ class _UniffiConverterTypePaymentDetails(_UniffiConverterRustBuffer):
13078
14220
  _UniffiConverterString.read(buf),
13079
14221
  _UniffiConverterOptionalTypeLnurlPayInfo.read(buf),
13080
14222
  _UniffiConverterOptionalTypeLnurlWithdrawInfo.read(buf),
14223
+ _UniffiConverterOptionalTypeLnurlReceiveMetadata.read(buf),
13081
14224
  )
13082
14225
  if variant == 4:
13083
14226
  return PaymentDetails.WITHDRAW(
@@ -13093,6 +14236,7 @@ class _UniffiConverterTypePaymentDetails(_UniffiConverterRustBuffer):
13093
14236
  def check_lower(value):
13094
14237
  if value.is_spark():
13095
14238
  _UniffiConverterOptionalTypeSparkInvoicePaymentDetails.check_lower(value.invoice_details)
14239
+ _UniffiConverterOptionalTypeSparkHtlcDetails.check_lower(value.htlc_details)
13096
14240
  return
13097
14241
  if value.is_token():
13098
14242
  _UniffiConverterTypeTokenMetadata.check_lower(value.metadata)
@@ -13107,6 +14251,7 @@ class _UniffiConverterTypePaymentDetails(_UniffiConverterRustBuffer):
13107
14251
  _UniffiConverterString.check_lower(value.destination_pubkey)
13108
14252
  _UniffiConverterOptionalTypeLnurlPayInfo.check_lower(value.lnurl_pay_info)
13109
14253
  _UniffiConverterOptionalTypeLnurlWithdrawInfo.check_lower(value.lnurl_withdraw_info)
14254
+ _UniffiConverterOptionalTypeLnurlReceiveMetadata.check_lower(value.lnurl_receive_metadata)
13110
14255
  return
13111
14256
  if value.is_withdraw():
13112
14257
  _UniffiConverterString.check_lower(value.tx_id)
@@ -13121,6 +14266,7 @@ class _UniffiConverterTypePaymentDetails(_UniffiConverterRustBuffer):
13121
14266
  if value.is_spark():
13122
14267
  buf.write_i32(1)
13123
14268
  _UniffiConverterOptionalTypeSparkInvoicePaymentDetails.write(value.invoice_details, buf)
14269
+ _UniffiConverterOptionalTypeSparkHtlcDetails.write(value.htlc_details, buf)
13124
14270
  if value.is_token():
13125
14271
  buf.write_i32(2)
13126
14272
  _UniffiConverterTypeTokenMetadata.write(value.metadata, buf)
@@ -13135,6 +14281,7 @@ class _UniffiConverterTypePaymentDetails(_UniffiConverterRustBuffer):
13135
14281
  _UniffiConverterString.write(value.destination_pubkey, buf)
13136
14282
  _UniffiConverterOptionalTypeLnurlPayInfo.write(value.lnurl_pay_info, buf)
13137
14283
  _UniffiConverterOptionalTypeLnurlWithdrawInfo.write(value.lnurl_withdraw_info, buf)
14284
+ _UniffiConverterOptionalTypeLnurlReceiveMetadata.write(value.lnurl_receive_metadata, buf)
13138
14285
  if value.is_withdraw():
13139
14286
  buf.write_i32(4)
13140
14287
  _UniffiConverterString.write(value.tx_id, buf)
@@ -13677,13 +14824,19 @@ class ReceivePaymentMethod:
13677
14824
  class BOLT11_INVOICE:
13678
14825
  description: "str"
13679
14826
  amount_sats: "typing.Optional[int]"
14827
+ expiry_secs: "typing.Optional[int]"
14828
+ """
14829
+ The expiry time of the invoice in seconds
14830
+ """
14831
+
13680
14832
 
13681
- def __init__(self,description: "str", amount_sats: "typing.Optional[int]"):
14833
+ def __init__(self,description: "str", amount_sats: "typing.Optional[int]", expiry_secs: "typing.Optional[int]"):
13682
14834
  self.description = description
13683
14835
  self.amount_sats = amount_sats
14836
+ self.expiry_secs = expiry_secs
13684
14837
 
13685
14838
  def __str__(self):
13686
- return "ReceivePaymentMethod.BOLT11_INVOICE(description={}, amount_sats={})".format(self.description, self.amount_sats)
14839
+ return "ReceivePaymentMethod.BOLT11_INVOICE(description={}, amount_sats={}, expiry_secs={})".format(self.description, self.amount_sats, self.expiry_secs)
13687
14840
 
13688
14841
  def __eq__(self, other):
13689
14842
  if not other.is_bolt11_invoice():
@@ -13692,6 +14845,8 @@ class ReceivePaymentMethod:
13692
14845
  return False
13693
14846
  if self.amount_sats != other.amount_sats:
13694
14847
  return False
14848
+ if self.expiry_secs != other.expiry_secs:
14849
+ return False
13695
14850
  return True
13696
14851
 
13697
14852
 
@@ -13741,6 +14896,7 @@ class _UniffiConverterTypeReceivePaymentMethod(_UniffiConverterRustBuffer):
13741
14896
  return ReceivePaymentMethod.BOLT11_INVOICE(
13742
14897
  _UniffiConverterString.read(buf),
13743
14898
  _UniffiConverterOptionalUInt64.read(buf),
14899
+ _UniffiConverterOptionalUInt32.read(buf),
13744
14900
  )
13745
14901
  raise InternalError("Raw enum value doesn't match any cases")
13746
14902
 
@@ -13760,6 +14916,7 @@ class _UniffiConverterTypeReceivePaymentMethod(_UniffiConverterRustBuffer):
13760
14916
  if value.is_bolt11_invoice():
13761
14917
  _UniffiConverterString.check_lower(value.description)
13762
14918
  _UniffiConverterOptionalUInt64.check_lower(value.amount_sats)
14919
+ _UniffiConverterOptionalUInt32.check_lower(value.expiry_secs)
13763
14920
  return
13764
14921
  raise ValueError(value)
13765
14922
 
@@ -13780,6 +14937,7 @@ class _UniffiConverterTypeReceivePaymentMethod(_UniffiConverterRustBuffer):
13780
14937
  buf.write_i32(4)
13781
14938
  _UniffiConverterString.write(value.description, buf)
13782
14939
  _UniffiConverterOptionalUInt64.write(value.amount_sats, buf)
14940
+ _UniffiConverterOptionalUInt32.write(value.expiry_secs, buf)
13783
14941
 
13784
14942
 
13785
14943
 
@@ -13906,22 +15064,24 @@ class SdkError: # type: ignore
13906
15064
  def __repr__(self):
13907
15065
  return "SdkError.ChainServiceError({})".format(str(self))
13908
15066
  _UniffiTempSdkError.ChainServiceError = ChainServiceError # type: ignore
13909
- class DepositClaimFeeExceeded(_UniffiTempSdkError):
13910
- def __init__(self, tx, vout, max_fee, actual_fee):
15067
+ class MaxDepositClaimFeeExceeded(_UniffiTempSdkError):
15068
+ def __init__(self, tx, vout, max_fee, required_fee_sats, required_fee_rate_sat_per_vbyte):
13911
15069
  super().__init__(", ".join([
13912
15070
  "tx={!r}".format(tx),
13913
15071
  "vout={!r}".format(vout),
13914
15072
  "max_fee={!r}".format(max_fee),
13915
- "actual_fee={!r}".format(actual_fee),
15073
+ "required_fee_sats={!r}".format(required_fee_sats),
15074
+ "required_fee_rate_sat_per_vbyte={!r}".format(required_fee_rate_sat_per_vbyte),
13916
15075
  ]))
13917
15076
  self.tx = tx
13918
15077
  self.vout = vout
13919
15078
  self.max_fee = max_fee
13920
- self.actual_fee = actual_fee
15079
+ self.required_fee_sats = required_fee_sats
15080
+ self.required_fee_rate_sat_per_vbyte = required_fee_rate_sat_per_vbyte
13921
15081
 
13922
15082
  def __repr__(self):
13923
- return "SdkError.DepositClaimFeeExceeded({})".format(str(self))
13924
- _UniffiTempSdkError.DepositClaimFeeExceeded = DepositClaimFeeExceeded # type: ignore
15083
+ return "SdkError.MaxDepositClaimFeeExceeded({})".format(str(self))
15084
+ _UniffiTempSdkError.MaxDepositClaimFeeExceeded = MaxDepositClaimFeeExceeded # type: ignore
13925
15085
  class MissingUtxo(_UniffiTempSdkError):
13926
15086
  def __init__(self, tx, vout):
13927
15087
  super().__init__(", ".join([
@@ -13998,11 +15158,12 @@ class _UniffiConverterTypeSdkError(_UniffiConverterRustBuffer):
13998
15158
  _UniffiConverterString.read(buf),
13999
15159
  )
14000
15160
  if variant == 7:
14001
- return SdkError.DepositClaimFeeExceeded(
15161
+ return SdkError.MaxDepositClaimFeeExceeded(
14002
15162
  _UniffiConverterString.read(buf),
14003
15163
  _UniffiConverterUInt32.read(buf),
14004
15164
  _UniffiConverterOptionalTypeFee.read(buf),
14005
15165
  _UniffiConverterUInt64.read(buf),
15166
+ _UniffiConverterUInt64.read(buf),
14006
15167
  )
14007
15168
  if variant == 8:
14008
15169
  return SdkError.MissingUtxo(
@@ -14039,11 +15200,12 @@ class _UniffiConverterTypeSdkError(_UniffiConverterRustBuffer):
14039
15200
  if isinstance(value, SdkError.ChainServiceError):
14040
15201
  _UniffiConverterString.check_lower(value._values[0])
14041
15202
  return
14042
- if isinstance(value, SdkError.DepositClaimFeeExceeded):
15203
+ if isinstance(value, SdkError.MaxDepositClaimFeeExceeded):
14043
15204
  _UniffiConverterString.check_lower(value.tx)
14044
15205
  _UniffiConverterUInt32.check_lower(value.vout)
14045
15206
  _UniffiConverterOptionalTypeFee.check_lower(value.max_fee)
14046
- _UniffiConverterUInt64.check_lower(value.actual_fee)
15207
+ _UniffiConverterUInt64.check_lower(value.required_fee_sats)
15208
+ _UniffiConverterUInt64.check_lower(value.required_fee_rate_sat_per_vbyte)
14047
15209
  return
14048
15210
  if isinstance(value, SdkError.MissingUtxo):
14049
15211
  _UniffiConverterString.check_lower(value.tx)
@@ -14076,12 +15238,13 @@ class _UniffiConverterTypeSdkError(_UniffiConverterRustBuffer):
14076
15238
  if isinstance(value, SdkError.ChainServiceError):
14077
15239
  buf.write_i32(6)
14078
15240
  _UniffiConverterString.write(value._values[0], buf)
14079
- if isinstance(value, SdkError.DepositClaimFeeExceeded):
15241
+ if isinstance(value, SdkError.MaxDepositClaimFeeExceeded):
14080
15242
  buf.write_i32(7)
14081
15243
  _UniffiConverterString.write(value.tx, buf)
14082
15244
  _UniffiConverterUInt32.write(value.vout, buf)
14083
15245
  _UniffiConverterOptionalTypeFee.write(value.max_fee, buf)
14084
- _UniffiConverterUInt64.write(value.actual_fee, buf)
15246
+ _UniffiConverterUInt64.write(value.required_fee_sats, buf)
15247
+ _UniffiConverterUInt64.write(value.required_fee_rate_sat_per_vbyte, buf)
14085
15248
  if isinstance(value, SdkError.MissingUtxo):
14086
15249
  buf.write_i32(8)
14087
15250
  _UniffiConverterString.write(value.tx, buf)
@@ -14123,30 +15286,6 @@ class SdkEvent:
14123
15286
  return False
14124
15287
  return True
14125
15288
 
14126
- class DATA_SYNCED:
14127
- """
14128
- Emitted when data was pushed and/or pulled to/from real-time sync storage.
14129
- """
14130
-
14131
- did_pull_new_records: "bool"
14132
- """
14133
- Value indicating whether new data was pulled through real-time sync.
14134
- """
14135
-
14136
-
14137
- def __init__(self,did_pull_new_records: "bool"):
14138
- self.did_pull_new_records = did_pull_new_records
14139
-
14140
- def __str__(self):
14141
- return "SdkEvent.DATA_SYNCED(did_pull_new_records={})".format(self.did_pull_new_records)
14142
-
14143
- def __eq__(self, other):
14144
- if not other.is_data_synced():
14145
- return False
14146
- if self.did_pull_new_records != other.did_pull_new_records:
14147
- return False
14148
- return True
14149
-
14150
15289
  class UNCLAIMED_DEPOSITS:
14151
15290
  """
14152
15291
  Emitted when the SDK was unable to claim deposits
@@ -14231,14 +15370,28 @@ class SdkEvent:
14231
15370
  return False
14232
15371
  return True
14233
15372
 
15373
+ class OPTIMIZATION:
15374
+ optimization_event: "OptimizationEvent"
15375
+
15376
+ def __init__(self,optimization_event: "OptimizationEvent"):
15377
+ self.optimization_event = optimization_event
15378
+
15379
+ def __str__(self):
15380
+ return "SdkEvent.OPTIMIZATION(optimization_event={})".format(self.optimization_event)
15381
+
15382
+ def __eq__(self, other):
15383
+ if not other.is_optimization():
15384
+ return False
15385
+ if self.optimization_event != other.optimization_event:
15386
+ return False
15387
+ return True
15388
+
14234
15389
 
14235
15390
 
14236
15391
  # For each variant, we have an `is_NAME` method for easily checking
14237
15392
  # whether an instance is that variant.
14238
15393
  def is_synced(self) -> bool:
14239
15394
  return isinstance(self, SdkEvent.SYNCED)
14240
- def is_data_synced(self) -> bool:
14241
- return isinstance(self, SdkEvent.DATA_SYNCED)
14242
15395
  def is_unclaimed_deposits(self) -> bool:
14243
15396
  return isinstance(self, SdkEvent.UNCLAIMED_DEPOSITS)
14244
15397
  def is_claimed_deposits(self) -> bool:
@@ -14249,18 +15402,20 @@ class SdkEvent:
14249
15402
  return isinstance(self, SdkEvent.PAYMENT_PENDING)
14250
15403
  def is_payment_failed(self) -> bool:
14251
15404
  return isinstance(self, SdkEvent.PAYMENT_FAILED)
15405
+ def is_optimization(self) -> bool:
15406
+ return isinstance(self, SdkEvent.OPTIMIZATION)
14252
15407
 
14253
15408
 
14254
15409
  # Now, a little trick - we make each nested variant class be a subclass of the main
14255
15410
  # enum class, so that method calls and instance checks etc will work intuitively.
14256
15411
  # We might be able to do this a little more neatly with a metaclass, but this'll do.
14257
15412
  SdkEvent.SYNCED = type("SdkEvent.SYNCED", (SdkEvent.SYNCED, SdkEvent,), {}) # type: ignore
14258
- SdkEvent.DATA_SYNCED = type("SdkEvent.DATA_SYNCED", (SdkEvent.DATA_SYNCED, SdkEvent,), {}) # type: ignore
14259
15413
  SdkEvent.UNCLAIMED_DEPOSITS = type("SdkEvent.UNCLAIMED_DEPOSITS", (SdkEvent.UNCLAIMED_DEPOSITS, SdkEvent,), {}) # type: ignore
14260
15414
  SdkEvent.CLAIMED_DEPOSITS = type("SdkEvent.CLAIMED_DEPOSITS", (SdkEvent.CLAIMED_DEPOSITS, SdkEvent,), {}) # type: ignore
14261
15415
  SdkEvent.PAYMENT_SUCCEEDED = type("SdkEvent.PAYMENT_SUCCEEDED", (SdkEvent.PAYMENT_SUCCEEDED, SdkEvent,), {}) # type: ignore
14262
15416
  SdkEvent.PAYMENT_PENDING = type("SdkEvent.PAYMENT_PENDING", (SdkEvent.PAYMENT_PENDING, SdkEvent,), {}) # type: ignore
14263
15417
  SdkEvent.PAYMENT_FAILED = type("SdkEvent.PAYMENT_FAILED", (SdkEvent.PAYMENT_FAILED, SdkEvent,), {}) # type: ignore
15418
+ SdkEvent.OPTIMIZATION = type("SdkEvent.OPTIMIZATION", (SdkEvent.OPTIMIZATION, SdkEvent,), {}) # type: ignore
14264
15419
 
14265
15420
 
14266
15421
 
@@ -14273,38 +15428,35 @@ class _UniffiConverterTypeSdkEvent(_UniffiConverterRustBuffer):
14273
15428
  return SdkEvent.SYNCED(
14274
15429
  )
14275
15430
  if variant == 2:
14276
- return SdkEvent.DATA_SYNCED(
14277
- _UniffiConverterBool.read(buf),
14278
- )
14279
- if variant == 3:
14280
15431
  return SdkEvent.UNCLAIMED_DEPOSITS(
14281
15432
  _UniffiConverterSequenceTypeDepositInfo.read(buf),
14282
15433
  )
14283
- if variant == 4:
15434
+ if variant == 3:
14284
15435
  return SdkEvent.CLAIMED_DEPOSITS(
14285
15436
  _UniffiConverterSequenceTypeDepositInfo.read(buf),
14286
15437
  )
14287
- if variant == 5:
15438
+ if variant == 4:
14288
15439
  return SdkEvent.PAYMENT_SUCCEEDED(
14289
15440
  _UniffiConverterTypePayment.read(buf),
14290
15441
  )
14291
- if variant == 6:
15442
+ if variant == 5:
14292
15443
  return SdkEvent.PAYMENT_PENDING(
14293
15444
  _UniffiConverterTypePayment.read(buf),
14294
15445
  )
14295
- if variant == 7:
15446
+ if variant == 6:
14296
15447
  return SdkEvent.PAYMENT_FAILED(
14297
15448
  _UniffiConverterTypePayment.read(buf),
14298
15449
  )
15450
+ if variant == 7:
15451
+ return SdkEvent.OPTIMIZATION(
15452
+ _UniffiConverterTypeOptimizationEvent.read(buf),
15453
+ )
14299
15454
  raise InternalError("Raw enum value doesn't match any cases")
14300
15455
 
14301
15456
  @staticmethod
14302
15457
  def check_lower(value):
14303
15458
  if value.is_synced():
14304
15459
  return
14305
- if value.is_data_synced():
14306
- _UniffiConverterBool.check_lower(value.did_pull_new_records)
14307
- return
14308
15460
  if value.is_unclaimed_deposits():
14309
15461
  _UniffiConverterSequenceTypeDepositInfo.check_lower(value.unclaimed_deposits)
14310
15462
  return
@@ -14320,30 +15472,33 @@ class _UniffiConverterTypeSdkEvent(_UniffiConverterRustBuffer):
14320
15472
  if value.is_payment_failed():
14321
15473
  _UniffiConverterTypePayment.check_lower(value.payment)
14322
15474
  return
15475
+ if value.is_optimization():
15476
+ _UniffiConverterTypeOptimizationEvent.check_lower(value.optimization_event)
15477
+ return
14323
15478
  raise ValueError(value)
14324
15479
 
14325
15480
  @staticmethod
14326
15481
  def write(value, buf):
14327
15482
  if value.is_synced():
14328
15483
  buf.write_i32(1)
14329
- if value.is_data_synced():
14330
- buf.write_i32(2)
14331
- _UniffiConverterBool.write(value.did_pull_new_records, buf)
14332
15484
  if value.is_unclaimed_deposits():
14333
- buf.write_i32(3)
15485
+ buf.write_i32(2)
14334
15486
  _UniffiConverterSequenceTypeDepositInfo.write(value.unclaimed_deposits, buf)
14335
15487
  if value.is_claimed_deposits():
14336
- buf.write_i32(4)
15488
+ buf.write_i32(3)
14337
15489
  _UniffiConverterSequenceTypeDepositInfo.write(value.claimed_deposits, buf)
14338
15490
  if value.is_payment_succeeded():
14339
- buf.write_i32(5)
15491
+ buf.write_i32(4)
14340
15492
  _UniffiConverterTypePayment.write(value.payment, buf)
14341
15493
  if value.is_payment_pending():
14342
- buf.write_i32(6)
15494
+ buf.write_i32(5)
14343
15495
  _UniffiConverterTypePayment.write(value.payment, buf)
14344
15496
  if value.is_payment_failed():
14345
- buf.write_i32(7)
15497
+ buf.write_i32(6)
14346
15498
  _UniffiConverterTypePayment.write(value.payment, buf)
15499
+ if value.is_optimization():
15500
+ buf.write_i32(7)
15501
+ _UniffiConverterTypeOptimizationEvent.write(value.optimization_event, buf)
14347
15502
 
14348
15503
 
14349
15504
 
@@ -14744,6 +15899,27 @@ class SendPaymentOptions:
14744
15899
  return False
14745
15900
  return True
14746
15901
 
15902
+ class SPARK_ADDRESS:
15903
+ htlc_options: "typing.Optional[SparkHtlcOptions]"
15904
+ """
15905
+ Can only be provided for Bitcoin payments. If set, a Spark HTLC transfer will be created.
15906
+ The receiver will need to provide the preimage to claim it.
15907
+ """
15908
+
15909
+
15910
+ def __init__(self,htlc_options: "typing.Optional[SparkHtlcOptions]"):
15911
+ self.htlc_options = htlc_options
15912
+
15913
+ def __str__(self):
15914
+ return "SendPaymentOptions.SPARK_ADDRESS(htlc_options={})".format(self.htlc_options)
15915
+
15916
+ def __eq__(self, other):
15917
+ if not other.is_spark_address():
15918
+ return False
15919
+ if self.htlc_options != other.htlc_options:
15920
+ return False
15921
+ return True
15922
+
14747
15923
 
14748
15924
 
14749
15925
  # For each variant, we have an `is_NAME` method for easily checking
@@ -14752,6 +15928,8 @@ class SendPaymentOptions:
14752
15928
  return isinstance(self, SendPaymentOptions.BITCOIN_ADDRESS)
14753
15929
  def is_bolt11_invoice(self) -> bool:
14754
15930
  return isinstance(self, SendPaymentOptions.BOLT11_INVOICE)
15931
+ def is_spark_address(self) -> bool:
15932
+ return isinstance(self, SendPaymentOptions.SPARK_ADDRESS)
14755
15933
 
14756
15934
 
14757
15935
  # Now, a little trick - we make each nested variant class be a subclass of the main
@@ -14759,6 +15937,7 @@ class SendPaymentOptions:
14759
15937
  # We might be able to do this a little more neatly with a metaclass, but this'll do.
14760
15938
  SendPaymentOptions.BITCOIN_ADDRESS = type("SendPaymentOptions.BITCOIN_ADDRESS", (SendPaymentOptions.BITCOIN_ADDRESS, SendPaymentOptions,), {}) # type: ignore
14761
15939
  SendPaymentOptions.BOLT11_INVOICE = type("SendPaymentOptions.BOLT11_INVOICE", (SendPaymentOptions.BOLT11_INVOICE, SendPaymentOptions,), {}) # type: ignore
15940
+ SendPaymentOptions.SPARK_ADDRESS = type("SendPaymentOptions.SPARK_ADDRESS", (SendPaymentOptions.SPARK_ADDRESS, SendPaymentOptions,), {}) # type: ignore
14762
15941
 
14763
15942
 
14764
15943
 
@@ -14776,6 +15955,10 @@ class _UniffiConverterTypeSendPaymentOptions(_UniffiConverterRustBuffer):
14776
15955
  _UniffiConverterBool.read(buf),
14777
15956
  _UniffiConverterOptionalUInt32.read(buf),
14778
15957
  )
15958
+ if variant == 3:
15959
+ return SendPaymentOptions.SPARK_ADDRESS(
15960
+ _UniffiConverterOptionalTypeSparkHtlcOptions.read(buf),
15961
+ )
14779
15962
  raise InternalError("Raw enum value doesn't match any cases")
14780
15963
 
14781
15964
  @staticmethod
@@ -14787,6 +15970,9 @@ class _UniffiConverterTypeSendPaymentOptions(_UniffiConverterRustBuffer):
14787
15970
  _UniffiConverterBool.check_lower(value.prefer_spark)
14788
15971
  _UniffiConverterOptionalUInt32.check_lower(value.completion_timeout_secs)
14789
15972
  return
15973
+ if value.is_spark_address():
15974
+ _UniffiConverterOptionalTypeSparkHtlcOptions.check_lower(value.htlc_options)
15975
+ return
14790
15976
  raise ValueError(value)
14791
15977
 
14792
15978
  @staticmethod
@@ -14798,6 +15984,9 @@ class _UniffiConverterTypeSendPaymentOptions(_UniffiConverterRustBuffer):
14798
15984
  buf.write_i32(2)
14799
15985
  _UniffiConverterBool.write(value.prefer_spark, buf)
14800
15986
  _UniffiConverterOptionalUInt32.write(value.completion_timeout_secs, buf)
15987
+ if value.is_spark_address():
15988
+ buf.write_i32(3)
15989
+ _UniffiConverterOptionalTypeSparkHtlcOptions.write(value.htlc_options, buf)
14801
15990
 
14802
15991
 
14803
15992
 
@@ -15082,6 +16271,64 @@ class _UniffiConverterTypeServiceConnectivityError(_UniffiConverterRustBuffer):
15082
16271
  _UniffiConverterString.write(value._values[0], buf)
15083
16272
 
15084
16273
 
16274
+
16275
+
16276
+
16277
+ class SparkHtlcStatus(enum.Enum):
16278
+ WAITING_FOR_PREIMAGE = 0
16279
+ """
16280
+ The HTLC is waiting for the preimage to be shared by the receiver
16281
+ """
16282
+
16283
+
16284
+ PREIMAGE_SHARED = 1
16285
+ """
16286
+ The HTLC preimage has been shared and the transfer can be or has been claimed by the receiver
16287
+ """
16288
+
16289
+
16290
+ RETURNED = 2
16291
+ """
16292
+ The HTLC has been returned to the sender due to expiry
16293
+ """
16294
+
16295
+
16296
+
16297
+
16298
+ class _UniffiConverterTypeSparkHtlcStatus(_UniffiConverterRustBuffer):
16299
+ @staticmethod
16300
+ def read(buf):
16301
+ variant = buf.read_i32()
16302
+ if variant == 1:
16303
+ return SparkHtlcStatus.WAITING_FOR_PREIMAGE
16304
+ if variant == 2:
16305
+ return SparkHtlcStatus.PREIMAGE_SHARED
16306
+ if variant == 3:
16307
+ return SparkHtlcStatus.RETURNED
16308
+ raise InternalError("Raw enum value doesn't match any cases")
16309
+
16310
+ @staticmethod
16311
+ def check_lower(value):
16312
+ if value == SparkHtlcStatus.WAITING_FOR_PREIMAGE:
16313
+ return
16314
+ if value == SparkHtlcStatus.PREIMAGE_SHARED:
16315
+ return
16316
+ if value == SparkHtlcStatus.RETURNED:
16317
+ return
16318
+ raise ValueError(value)
16319
+
16320
+ @staticmethod
16321
+ def write(value, buf):
16322
+ if value == SparkHtlcStatus.WAITING_FOR_PREIMAGE:
16323
+ buf.write_i32(1)
16324
+ if value == SparkHtlcStatus.PREIMAGE_SHARED:
16325
+ buf.write_i32(2)
16326
+ if value == SparkHtlcStatus.RETURNED:
16327
+ buf.write_i32(3)
16328
+
16329
+
16330
+
16331
+
15085
16332
  # StorageError
15086
16333
  # We want to define each variant as a nested class that's also a subclass,
15087
16334
  # which is tricky in Python. To accomplish this we're going to create each
@@ -15706,105 +16953,6 @@ class _UniffiConverterTypeUpdateDepositPayload(_UniffiConverterRustBuffer):
15706
16953
 
15707
16954
 
15708
16955
 
15709
-
15710
-
15711
- class WaitForPaymentIdentifier:
15712
- def __init__(self):
15713
- raise RuntimeError("WaitForPaymentIdentifier cannot be instantiated directly")
15714
-
15715
- # Each enum variant is a nested class of the enum itself.
15716
- class PAYMENT_ID:
15717
- def __init__(self, *values):
15718
- if len(values) != 1:
15719
- raise TypeError(f"Expected 1 arguments, found {len(values)}")
15720
- if not isinstance(values[0], str):
15721
- raise TypeError(f"unexpected type for tuple element 0 - expected 'str', got '{type(values[0])}'")
15722
- self._values = values
15723
-
15724
- def __getitem__(self, index):
15725
- return self._values[index]
15726
-
15727
- def __str__(self):
15728
- return f"WaitForPaymentIdentifier.PAYMENT_ID{self._values!r}"
15729
-
15730
- def __eq__(self, other):
15731
- if not other.is_payment_id():
15732
- return False
15733
- return self._values == other._values
15734
- class PAYMENT_REQUEST:
15735
- def __init__(self, *values):
15736
- if len(values) != 1:
15737
- raise TypeError(f"Expected 1 arguments, found {len(values)}")
15738
- if not isinstance(values[0], str):
15739
- raise TypeError(f"unexpected type for tuple element 0 - expected 'str', got '{type(values[0])}'")
15740
- self._values = values
15741
-
15742
- def __getitem__(self, index):
15743
- return self._values[index]
15744
-
15745
- def __str__(self):
15746
- return f"WaitForPaymentIdentifier.PAYMENT_REQUEST{self._values!r}"
15747
-
15748
- def __eq__(self, other):
15749
- if not other.is_payment_request():
15750
- return False
15751
- return self._values == other._values
15752
-
15753
-
15754
- # For each variant, we have an `is_NAME` method for easily checking
15755
- # whether an instance is that variant.
15756
- def is_payment_id(self) -> bool:
15757
- return isinstance(self, WaitForPaymentIdentifier.PAYMENT_ID)
15758
- def is_payment_request(self) -> bool:
15759
- return isinstance(self, WaitForPaymentIdentifier.PAYMENT_REQUEST)
15760
-
15761
-
15762
- # Now, a little trick - we make each nested variant class be a subclass of the main
15763
- # enum class, so that method calls and instance checks etc will work intuitively.
15764
- # We might be able to do this a little more neatly with a metaclass, but this'll do.
15765
- WaitForPaymentIdentifier.PAYMENT_ID = type("WaitForPaymentIdentifier.PAYMENT_ID", (WaitForPaymentIdentifier.PAYMENT_ID, WaitForPaymentIdentifier,), {}) # type: ignore
15766
- WaitForPaymentIdentifier.PAYMENT_REQUEST = type("WaitForPaymentIdentifier.PAYMENT_REQUEST", (WaitForPaymentIdentifier.PAYMENT_REQUEST, WaitForPaymentIdentifier,), {}) # type: ignore
15767
-
15768
-
15769
-
15770
-
15771
- class _UniffiConverterTypeWaitForPaymentIdentifier(_UniffiConverterRustBuffer):
15772
- @staticmethod
15773
- def read(buf):
15774
- variant = buf.read_i32()
15775
- if variant == 1:
15776
- return WaitForPaymentIdentifier.PAYMENT_ID(
15777
- _UniffiConverterString.read(buf),
15778
- )
15779
- if variant == 2:
15780
- return WaitForPaymentIdentifier.PAYMENT_REQUEST(
15781
- _UniffiConverterString.read(buf),
15782
- )
15783
- raise InternalError("Raw enum value doesn't match any cases")
15784
-
15785
- @staticmethod
15786
- def check_lower(value):
15787
- if value.is_payment_id():
15788
- _UniffiConverterString.check_lower(value._values[0])
15789
- return
15790
- if value.is_payment_request():
15791
- _UniffiConverterString.check_lower(value._values[0])
15792
- return
15793
- raise ValueError(value)
15794
-
15795
- @staticmethod
15796
- def write(value, buf):
15797
- if value.is_payment_id():
15798
- buf.write_i32(1)
15799
- _UniffiConverterString.write(value._values[0], buf)
15800
- if value.is_payment_request():
15801
- buf.write_i32(2)
15802
- _UniffiConverterString.write(value._values[0], buf)
15803
-
15804
-
15805
-
15806
-
15807
-
15808
16956
  class EventListener(typing.Protocol):
15809
16957
  """
15810
16958
  Trait for event listeners
@@ -16109,6 +17257,33 @@ class _UniffiConverterOptionalTypeLnurlPayInfo(_UniffiConverterRustBuffer):
16109
17257
 
16110
17258
 
16111
17259
 
17260
+ class _UniffiConverterOptionalTypeLnurlReceiveMetadata(_UniffiConverterRustBuffer):
17261
+ @classmethod
17262
+ def check_lower(cls, value):
17263
+ if value is not None:
17264
+ _UniffiConverterTypeLnurlReceiveMetadata.check_lower(value)
17265
+
17266
+ @classmethod
17267
+ def write(cls, value, buf):
17268
+ if value is None:
17269
+ buf.write_u8(0)
17270
+ return
17271
+
17272
+ buf.write_u8(1)
17273
+ _UniffiConverterTypeLnurlReceiveMetadata.write(value, buf)
17274
+
17275
+ @classmethod
17276
+ def read(cls, buf):
17277
+ flag = buf.read_u8()
17278
+ if flag == 0:
17279
+ return None
17280
+ elif flag == 1:
17281
+ return _UniffiConverterTypeLnurlReceiveMetadata.read(buf)
17282
+ else:
17283
+ raise InternalError("Unexpected flag byte for optional type")
17284
+
17285
+
17286
+
16112
17287
  class _UniffiConverterOptionalTypeLnurlWithdrawInfo(_UniffiConverterRustBuffer):
16113
17288
  @classmethod
16114
17289
  def check_lower(cls, value):
@@ -16217,6 +17392,60 @@ class _UniffiConverterOptionalTypeRecord(_UniffiConverterRustBuffer):
16217
17392
 
16218
17393
 
16219
17394
 
17395
+ class _UniffiConverterOptionalTypeSparkHtlcDetails(_UniffiConverterRustBuffer):
17396
+ @classmethod
17397
+ def check_lower(cls, value):
17398
+ if value is not None:
17399
+ _UniffiConverterTypeSparkHtlcDetails.check_lower(value)
17400
+
17401
+ @classmethod
17402
+ def write(cls, value, buf):
17403
+ if value is None:
17404
+ buf.write_u8(0)
17405
+ return
17406
+
17407
+ buf.write_u8(1)
17408
+ _UniffiConverterTypeSparkHtlcDetails.write(value, buf)
17409
+
17410
+ @classmethod
17411
+ def read(cls, buf):
17412
+ flag = buf.read_u8()
17413
+ if flag == 0:
17414
+ return None
17415
+ elif flag == 1:
17416
+ return _UniffiConverterTypeSparkHtlcDetails.read(buf)
17417
+ else:
17418
+ raise InternalError("Unexpected flag byte for optional type")
17419
+
17420
+
17421
+
17422
+ class _UniffiConverterOptionalTypeSparkHtlcOptions(_UniffiConverterRustBuffer):
17423
+ @classmethod
17424
+ def check_lower(cls, value):
17425
+ if value is not None:
17426
+ _UniffiConverterTypeSparkHtlcOptions.check_lower(value)
17427
+
17428
+ @classmethod
17429
+ def write(cls, value, buf):
17430
+ if value is None:
17431
+ buf.write_u8(0)
17432
+ return
17433
+
17434
+ buf.write_u8(1)
17435
+ _UniffiConverterTypeSparkHtlcOptions.write(value, buf)
17436
+
17437
+ @classmethod
17438
+ def read(cls, buf):
17439
+ flag = buf.read_u8()
17440
+ if flag == 0:
17441
+ return None
17442
+ elif flag == 1:
17443
+ return _UniffiConverterTypeSparkHtlcOptions.read(buf)
17444
+ else:
17445
+ raise InternalError("Unexpected flag byte for optional type")
17446
+
17447
+
17448
+
16220
17449
  class _UniffiConverterOptionalTypeSparkInvoicePaymentDetails(_UniffiConverterRustBuffer):
16221
17450
  @classmethod
16222
17451
  def check_lower(cls, value):
@@ -16379,6 +17608,33 @@ class _UniffiConverterOptionalTypeFee(_UniffiConverterRustBuffer):
16379
17608
 
16380
17609
 
16381
17610
 
17611
+ class _UniffiConverterOptionalTypeMaxFee(_UniffiConverterRustBuffer):
17612
+ @classmethod
17613
+ def check_lower(cls, value):
17614
+ if value is not None:
17615
+ _UniffiConverterTypeMaxFee.check_lower(value)
17616
+
17617
+ @classmethod
17618
+ def write(cls, value, buf):
17619
+ if value is None:
17620
+ buf.write_u8(0)
17621
+ return
17622
+
17623
+ buf.write_u8(1)
17624
+ _UniffiConverterTypeMaxFee.write(value, buf)
17625
+
17626
+ @classmethod
17627
+ def read(cls, buf):
17628
+ flag = buf.read_u8()
17629
+ if flag == 0:
17630
+ return None
17631
+ elif flag == 1:
17632
+ return _UniffiConverterTypeMaxFee.read(buf)
17633
+ else:
17634
+ raise InternalError("Unexpected flag byte for optional type")
17635
+
17636
+
17637
+
16382
17638
  class _UniffiConverterOptionalTypePaymentDetails(_UniffiConverterRustBuffer):
16383
17639
  @classmethod
16384
17640
  def check_lower(cls, value):
@@ -16595,6 +17851,33 @@ class _UniffiConverterOptionalSequenceTypePaymentType(_UniffiConverterRustBuffer
16595
17851
 
16596
17852
 
16597
17853
 
17854
+ class _UniffiConverterOptionalSequenceTypeSparkHtlcStatus(_UniffiConverterRustBuffer):
17855
+ @classmethod
17856
+ def check_lower(cls, value):
17857
+ if value is not None:
17858
+ _UniffiConverterSequenceTypeSparkHtlcStatus.check_lower(value)
17859
+
17860
+ @classmethod
17861
+ def write(cls, value, buf):
17862
+ if value is None:
17863
+ buf.write_u8(0)
17864
+ return
17865
+
17866
+ buf.write_u8(1)
17867
+ _UniffiConverterSequenceTypeSparkHtlcStatus.write(value, buf)
17868
+
17869
+ @classmethod
17870
+ def read(cls, buf):
17871
+ flag = buf.read_u8()
17872
+ if flag == 0:
17873
+ return None
17874
+ elif flag == 1:
17875
+ return _UniffiConverterSequenceTypeSparkHtlcStatus.read(buf)
17876
+ else:
17877
+ raise InternalError("Unexpected flag byte for optional type")
17878
+
17879
+
17880
+
16598
17881
  class _UniffiConverterOptionalMapStringString(_UniffiConverterRustBuffer):
16599
17882
  @classmethod
16600
17883
  def check_lower(cls, value):
@@ -17049,6 +18332,31 @@ class _UniffiConverterSequenceTypeRecord(_UniffiConverterRustBuffer):
17049
18332
 
17050
18333
 
17051
18334
 
18335
+ class _UniffiConverterSequenceTypeSetLnurlMetadataItem(_UniffiConverterRustBuffer):
18336
+ @classmethod
18337
+ def check_lower(cls, value):
18338
+ for item in value:
18339
+ _UniffiConverterTypeSetLnurlMetadataItem.check_lower(item)
18340
+
18341
+ @classmethod
18342
+ def write(cls, value, buf):
18343
+ items = len(value)
18344
+ buf.write_i32(items)
18345
+ for item in value:
18346
+ _UniffiConverterTypeSetLnurlMetadataItem.write(item, buf)
18347
+
18348
+ @classmethod
18349
+ def read(cls, buf):
18350
+ count = buf.read_i32()
18351
+ if count < 0:
18352
+ raise InternalError("Unexpected negative sequence length")
18353
+
18354
+ return [
18355
+ _UniffiConverterTypeSetLnurlMetadataItem.read(buf) for i in range(count)
18356
+ ]
18357
+
18358
+
18359
+
17052
18360
  class _UniffiConverterSequenceTypeTokenMetadata(_UniffiConverterRustBuffer):
17053
18361
  @classmethod
17054
18362
  def check_lower(cls, value):
@@ -17174,6 +18482,31 @@ class _UniffiConverterSequenceTypePaymentType(_UniffiConverterRustBuffer):
17174
18482
 
17175
18483
 
17176
18484
 
18485
+ class _UniffiConverterSequenceTypeSparkHtlcStatus(_UniffiConverterRustBuffer):
18486
+ @classmethod
18487
+ def check_lower(cls, value):
18488
+ for item in value:
18489
+ _UniffiConverterTypeSparkHtlcStatus.check_lower(item)
18490
+
18491
+ @classmethod
18492
+ def write(cls, value, buf):
18493
+ items = len(value)
18494
+ buf.write_i32(items)
18495
+ for item in value:
18496
+ _UniffiConverterTypeSparkHtlcStatus.write(item, buf)
18497
+
18498
+ @classmethod
18499
+ def read(cls, buf):
18500
+ count = buf.read_i32()
18501
+ if count < 0:
18502
+ raise InternalError("Unexpected negative sequence length")
18503
+
18504
+ return [
18505
+ _UniffiConverterTypeSparkHtlcStatus.read(buf) for i in range(count)
18506
+ ]
18507
+
18508
+
18509
+
17177
18510
  class _UniffiConverterMapStringString(_UniffiConverterRustBuffer):
17178
18511
  @classmethod
17179
18512
  def check_lower(cls, items):
@@ -17433,13 +18766,16 @@ __all__ = [
17433
18766
  "Amount",
17434
18767
  "AssetFilter",
17435
18768
  "BitcoinNetwork",
18769
+ "ChainApiType",
17436
18770
  "ChainServiceError",
17437
18771
  "DepositClaimError",
17438
18772
  "Fee",
17439
18773
  "InputType",
17440
18774
  "KeySetType",
18775
+ "MaxFee",
17441
18776
  "Network",
17442
18777
  "OnchainConfirmationSpeed",
18778
+ "OptimizationEvent",
17443
18779
  "PaymentDetails",
17444
18780
  "PaymentMethod",
17445
18781
  "PaymentObserverError",
@@ -17453,12 +18789,12 @@ __all__ = [
17453
18789
  "SendPaymentMethod",
17454
18790
  "SendPaymentOptions",
17455
18791
  "ServiceConnectivityError",
18792
+ "SparkHtlcStatus",
17456
18793
  "StorageError",
17457
18794
  "SuccessAction",
17458
18795
  "SuccessActionProcessed",
17459
18796
  "SyncStorageError",
17460
18797
  "UpdateDepositPayload",
17461
- "WaitForPaymentIdentifier",
17462
18798
  "AesSuccessActionData",
17463
18799
  "AesSuccessActionDataDecrypted",
17464
18800
  "Bip21Details",
@@ -17480,6 +18816,8 @@ __all__ = [
17480
18816
  "CheckMessageResponse",
17481
18817
  "ClaimDepositRequest",
17482
18818
  "ClaimDepositResponse",
18819
+ "ClaimHtlcPaymentRequest",
18820
+ "ClaimHtlcPaymentResponse",
17483
18821
  "Config",
17484
18822
  "ConnectRequest",
17485
18823
  "CreateIssuerTokenRequest",
@@ -17510,6 +18848,7 @@ __all__ = [
17510
18848
  "LnurlPayRequest",
17511
18849
  "LnurlPayRequestDetails",
17512
18850
  "LnurlPayResponse",
18851
+ "LnurlReceiveMetadata",
17513
18852
  "LnurlWithdrawInfo",
17514
18853
  "LnurlWithdrawRequest",
17515
18854
  "LnurlWithdrawRequestDetails",
@@ -17519,6 +18858,8 @@ __all__ = [
17519
18858
  "LogEntry",
17520
18859
  "MessageSuccessActionData",
17521
18860
  "MintIssuerTokenRequest",
18861
+ "OptimizationConfig",
18862
+ "OptimizationProgress",
17522
18863
  "OutgoingChange",
17523
18864
  "Payment",
17524
18865
  "PaymentMetadata",
@@ -17531,6 +18872,7 @@ __all__ = [
17531
18872
  "Rate",
17532
18873
  "ReceivePaymentRequest",
17533
18874
  "ReceivePaymentResponse",
18875
+ "RecommendedFees",
17534
18876
  "Record",
17535
18877
  "RecordChange",
17536
18878
  "RecordId",
@@ -17542,10 +18884,13 @@ __all__ = [
17542
18884
  "SendOnchainSpeedFeeQuote",
17543
18885
  "SendPaymentRequest",
17544
18886
  "SendPaymentResponse",
18887
+ "SetLnurlMetadataItem",
17545
18888
  "SignMessageRequest",
17546
18889
  "SignMessageResponse",
17547
18890
  "SilentPaymentAddressDetails",
17548
18891
  "SparkAddressDetails",
18892
+ "SparkHtlcDetails",
18893
+ "SparkHtlcOptions",
17549
18894
  "SparkInvoiceDetails",
17550
18895
  "SparkInvoicePaymentDetails",
17551
18896
  "Symbol",
@@ -17561,8 +18906,6 @@ __all__ = [
17561
18906
  "UrlSuccessActionData",
17562
18907
  "UserSettings",
17563
18908
  "Utxo",
17564
- "WaitForPaymentRequest",
17565
- "WaitForPaymentResponse",
17566
18909
  "connect",
17567
18910
  "default_config",
17568
18911
  "init_logging",