breez-sdk-spark 0.1.6__cp311-cp311-win_amd64.whl → 0.1.7__cp311-cp311-win_amd64.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.
@@ -2319,7 +2319,7 @@ class LnurlPayRequestDetails:
2319
2319
  Optional lightning address if that was used to resolve the lnurl.
2320
2320
  """
2321
2321
 
2322
- allows_nostr: "bool"
2322
+ allows_nostr: "typing.Optional[bool]"
2323
2323
  """
2324
2324
  Value indicating whether the recipient supports Nostr Zaps through NIP-57.
2325
2325
 
@@ -2335,7 +2335,7 @@ class LnurlPayRequestDetails:
2335
2335
  See <https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki>
2336
2336
  """
2337
2337
 
2338
- def __init__(self, *, callback: "str", min_sendable: "int", max_sendable: "int", metadata_str: "str", comment_allowed: "int", domain: "str", url: "str", address: "typing.Optional[str]", allows_nostr: "bool", nostr_pubkey: "typing.Optional[str]"):
2338
+ def __init__(self, *, callback: "str", min_sendable: "int", max_sendable: "int", metadata_str: "str", comment_allowed: "int", domain: "str", url: "str", address: "typing.Optional[str]", allows_nostr: "typing.Optional[bool]", nostr_pubkey: "typing.Optional[str]"):
2339
2339
  self.callback = callback
2340
2340
  self.min_sendable = min_sendable
2341
2341
  self.max_sendable = max_sendable
@@ -2385,7 +2385,7 @@ class _UniffiConverterTypeLnurlPayRequestDetails(_UniffiConverterRustBuffer):
2385
2385
  domain=_UniffiConverterString.read(buf),
2386
2386
  url=_UniffiConverterString.read(buf),
2387
2387
  address=_UniffiConverterOptionalString.read(buf),
2388
- allows_nostr=_UniffiConverterBool.read(buf),
2388
+ allows_nostr=_UniffiConverterOptionalBool.read(buf),
2389
2389
  nostr_pubkey=_UniffiConverterOptionalString.read(buf),
2390
2390
  )
2391
2391
 
@@ -2399,7 +2399,7 @@ class _UniffiConverterTypeLnurlPayRequestDetails(_UniffiConverterRustBuffer):
2399
2399
  _UniffiConverterString.check_lower(value.domain)
2400
2400
  _UniffiConverterString.check_lower(value.url)
2401
2401
  _UniffiConverterOptionalString.check_lower(value.address)
2402
- _UniffiConverterBool.check_lower(value.allows_nostr)
2402
+ _UniffiConverterOptionalBool.check_lower(value.allows_nostr)
2403
2403
  _UniffiConverterOptionalString.check_lower(value.nostr_pubkey)
2404
2404
 
2405
2405
  @staticmethod
@@ -2412,7 +2412,7 @@ class _UniffiConverterTypeLnurlPayRequestDetails(_UniffiConverterRustBuffer):
2412
2412
  _UniffiConverterString.write(value.domain, buf)
2413
2413
  _UniffiConverterString.write(value.url, buf)
2414
2414
  _UniffiConverterOptionalString.write(value.address, buf)
2415
- _UniffiConverterBool.write(value.allows_nostr, buf)
2415
+ _UniffiConverterOptionalBool.write(value.allows_nostr, buf)
2416
2416
  _UniffiConverterOptionalString.write(value.nostr_pubkey, buf)
2417
2417
 
2418
2418
 
@@ -486,7 +486,7 @@ def _uniffi_check_api_checksums(lib):
486
486
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
487
487
  if lib.uniffi_breez_sdk_spark_checksum_func_default_config() != 62194:
488
488
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
489
- if lib.uniffi_breez_sdk_spark_checksum_func_default_storage() != 46285:
489
+ if lib.uniffi_breez_sdk_spark_checksum_func_default_storage() != 30804:
490
490
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
491
491
  if lib.uniffi_breez_sdk_spark_checksum_func_init_logging() != 8518:
492
492
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
@@ -991,9 +991,8 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_config.argtypes = (
991
991
  _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_config.restype = _UniffiRustBuffer
992
992
  _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_storage.argtypes = (
993
993
  _UniffiRustBuffer,
994
- ctypes.POINTER(_UniffiRustCallStatus),
995
994
  )
996
- _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_storage.restype = ctypes.c_void_p
995
+ _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_storage.restype = ctypes.c_uint64
997
996
  _UniffiLib.uniffi_breez_sdk_spark_fn_func_init_logging.argtypes = (
998
997
  _UniffiRustBuffer,
999
998
  _UniffiRustBuffer,
@@ -7484,13 +7483,23 @@ def default_config(network: "Network") -> "Config":
7484
7483
  return _UniffiConverterTypeConfig.lift(_uniffi_rust_call(_UniffiLib.uniffi_breez_sdk_spark_fn_func_default_config,
7485
7484
  _UniffiConverterTypeNetwork.lower(network)))
7486
7485
 
7486
+ async def default_storage(data_dir: "str") -> "Storage":
7487
7487
 
7488
- def default_storage(data_dir: "str") -> "Storage":
7489
7488
  _UniffiConverterString.check_lower(data_dir)
7490
7489
 
7491
- return _UniffiConverterTypeStorage.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeSdkError,_UniffiLib.uniffi_breez_sdk_spark_fn_func_default_storage,
7492
- _UniffiConverterString.lower(data_dir)))
7490
+ return await _uniffi_rust_call_async(
7491
+ _UniffiLib.uniffi_breez_sdk_spark_fn_func_default_storage(
7492
+ _UniffiConverterString.lower(data_dir)),
7493
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_pointer,
7494
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_pointer,
7495
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_pointer,
7496
+ # lift function
7497
+ _UniffiConverterTypeStorage.lift,
7498
+
7499
+ # Error FFI converter
7500
+ _UniffiConverterTypeSdkError,
7493
7501
 
7502
+ )
7494
7503
 
7495
7504
  def init_logging(log_dir: "typing.Optional[str]",app_logger: "typing.Optional[Logger]",log_filter: "typing.Optional[str]") -> None:
7496
7505
  _UniffiConverterOptionalString.check_lower(log_dir)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: breez_sdk_spark
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Python language bindings for the Breez Spark SDK
5
5
  Home-page: https://github.com/breez/spark-sdk
6
6
  Author: Breez <contact@breez.technology>
@@ -0,0 +1,12 @@
1
+ breez_sdk_spark/__init__.py,sha256=YcEpqfQeZ0Yc8lRjKv0b5M19vH3VyMiZjV5hHWdz6wE,151
2
+ breez_sdk_spark/breez_sdk_common.py,sha256=u-heuhIaouzAFwtC6BdCMheihQ3WS1u7YkIL4bng-Tk,187341
3
+ breez_sdk_spark/breez_sdk_spark.py,sha256=URzB4ZePDypFc0DuJ_1X0pl6eJJg9v-zK3CY2b6xzO4,271895
4
+ breez_sdk_spark/breez_sdk_spark_bindings.dll,sha256=IjlFhrY4H1c0QSvtN0Qw9YPoqoeEOLfXgPL3cxkP724,12480000
5
+ breez_sdk_spark/breez_sdk_spark_bindings.py,sha256=ysAJqyrIhXUjJIBj856CADqim5MR38CgNEIdG1Fj4qg,32901
6
+ breez_sdk_spark/msvcp140.dll,sha256=D4hbUJpoXSu_plL-0mtfsx2I-9qwqXjGQdHHuKpGCqk,557728
7
+ breez_sdk_spark/vcruntime140.dll,sha256=1eTZo-g1-meUUBRdan2U42VzpQkxcRGQTZs3EsMNkGY,124544
8
+ breez_sdk_spark/vcruntime140_1.dll,sha256=Hy1BxKpdsLwz6_e2bXKUOoF9fObL6IBQKpQDgjYzCT8,49792
9
+ breez_sdk_spark-0.1.7.dist-info/METADATA,sha256=bAAkB0Vaytc-xnRirMa6Z7NVnOSfwttns4yfZS99fek,568
10
+ breez_sdk_spark-0.1.7.dist-info/WHEEL,sha256=JLOMsP7F5qtkAkINx5UnzbFguf8CqZeraV8o04b0I8I,101
11
+ breez_sdk_spark-0.1.7.dist-info/top_level.txt,sha256=EWjZB7jCSH5bjyOrFhpRFW4Jfo8ykKdxJ7tqAOytwDU,16
12
+ breez_sdk_spark-0.1.7.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- breez_sdk_spark/__init__.py,sha256=YcEpqfQeZ0Yc8lRjKv0b5M19vH3VyMiZjV5hHWdz6wE,151
2
- breez_sdk_spark/breez_sdk_common.py,sha256=JZtaNWUOSEVfKwSGOK61lZOWxn4jkY-ChImP6GFqX_U,187283
3
- breez_sdk_spark/breez_sdk_spark.py,sha256=eFYqtynFU4DBFHQEnCfkHbQGRpgq9Ot6-M7N8hrPWRc,271648
4
- breez_sdk_spark/breez_sdk_spark_bindings.dll,sha256=oL3DLr03Jx-iNAjsfHt8JJ3Tb-8VWRvXkWRNny1lV64,11579904
5
- breez_sdk_spark/breez_sdk_spark_bindings.py,sha256=ysAJqyrIhXUjJIBj856CADqim5MR38CgNEIdG1Fj4qg,32901
6
- breez_sdk_spark/msvcp140.dll,sha256=D4hbUJpoXSu_plL-0mtfsx2I-9qwqXjGQdHHuKpGCqk,557728
7
- breez_sdk_spark/vcruntime140.dll,sha256=1eTZo-g1-meUUBRdan2U42VzpQkxcRGQTZs3EsMNkGY,124544
8
- breez_sdk_spark/vcruntime140_1.dll,sha256=Hy1BxKpdsLwz6_e2bXKUOoF9fObL6IBQKpQDgjYzCT8,49792
9
- breez_sdk_spark-0.1.6.dist-info/METADATA,sha256=q6kCOWCNtdOz7UR_FOTAqxJu30uODfS4S12KkVX1Ls0,568
10
- breez_sdk_spark-0.1.6.dist-info/WHEEL,sha256=JLOMsP7F5qtkAkINx5UnzbFguf8CqZeraV8o04b0I8I,101
11
- breez_sdk_spark-0.1.6.dist-info/top_level.txt,sha256=EWjZB7jCSH5bjyOrFhpRFW4Jfo8ykKdxJ7tqAOytwDU,16
12
- breez_sdk_spark-0.1.6.dist-info/RECORD,,