breez-sdk-spark 0.2.1__cp313-cp313-manylinux_2_31_aarch64.whl → 0.2.2.dev2__cp313-cp313-manylinux_2_31_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of breez-sdk-spark might be problematic. Click here for more details.
- breez_sdk_spark/breez_sdk_spark.py +77 -6
- breez_sdk_spark/libbreez_sdk_spark_bindings.so +0 -0
- {breez_sdk_spark-0.2.1.dist-info → breez_sdk_spark-0.2.2.dev2.dist-info}/METADATA +1 -1
- breez_sdk_spark-0.2.2.dev2.dist-info/RECORD +9 -0
- breez_sdk_spark-0.2.1.dist-info/RECORD +0 -9
- {breez_sdk_spark-0.2.1.dist-info → breez_sdk_spark-0.2.2.dev2.dist-info}/WHEEL +0 -0
- {breez_sdk_spark-0.2.1.dist-info → breez_sdk_spark-0.2.2.dev2.dist-info}/top_level.txt +0 -0
|
@@ -503,9 +503,11 @@ def _uniffi_check_api_checksums(lib):
|
|
|
503
503
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
504
504
|
if lib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos() != 20959:
|
|
505
505
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
506
|
-
if lib.
|
|
506
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status() != 23018:
|
|
507
507
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
508
|
-
if lib.
|
|
508
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex() != 59376:
|
|
509
|
+
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
510
|
+
if lib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction() != 65179:
|
|
509
511
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
510
512
|
if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener() != 61844:
|
|
511
513
|
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
@@ -711,7 +713,9 @@ _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD0 = ctypes.CFUNCTYPE(None
|
|
|
711
713
|
)
|
|
712
714
|
_UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD1 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
|
|
713
715
|
)
|
|
714
|
-
_UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD2 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,
|
|
716
|
+
_UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD2 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
|
|
717
|
+
)
|
|
718
|
+
_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),
|
|
715
719
|
)
|
|
716
720
|
_UNIFFI_CALLBACK_INTERFACE_STORAGE_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
|
|
717
721
|
)
|
|
@@ -748,8 +752,9 @@ class _UniffiVTableCallbackInterfaceLogger(ctypes.Structure):
|
|
|
748
752
|
class _UniffiVTableCallbackInterfaceBitcoinChainService(ctypes.Structure):
|
|
749
753
|
_fields_ = [
|
|
750
754
|
("get_address_utxos", _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD0),
|
|
751
|
-
("
|
|
752
|
-
("
|
|
755
|
+
("get_transaction_status", _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD1),
|
|
756
|
+
("get_transaction_hex", _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD2),
|
|
757
|
+
("broadcast_transaction", _UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD3),
|
|
753
758
|
("uniffi_free", _UNIFFI_CALLBACK_INTERFACE_FREE),
|
|
754
759
|
]
|
|
755
760
|
class _UniffiVTableCallbackInterfaceStorage(ctypes.Structure):
|
|
@@ -786,6 +791,11 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_address_utxo
|
|
|
786
791
|
_UniffiRustBuffer,
|
|
787
792
|
)
|
|
788
793
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_address_utxos.restype = ctypes.c_uint64
|
|
794
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_status.argtypes = (
|
|
795
|
+
ctypes.c_void_p,
|
|
796
|
+
_UniffiRustBuffer,
|
|
797
|
+
)
|
|
798
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_status.restype = ctypes.c_uint64
|
|
789
799
|
_UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_hex.argtypes = (
|
|
790
800
|
ctypes.c_void_p,
|
|
791
801
|
_UniffiRustBuffer,
|
|
@@ -1370,6 +1380,9 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_func_parse.restype = ctypes.c_uint16
|
|
|
1370
1380
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos.argtypes = (
|
|
1371
1381
|
)
|
|
1372
1382
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos.restype = ctypes.c_uint16
|
|
1383
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status.argtypes = (
|
|
1384
|
+
)
|
|
1385
|
+
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status.restype = ctypes.c_uint16
|
|
1373
1386
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex.argtypes = (
|
|
1374
1387
|
)
|
|
1375
1388
|
_UniffiLib.uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex.restype = ctypes.c_uint16
|
|
@@ -1622,6 +1635,8 @@ class _UniffiConverterBytes(_UniffiConverterRustBuffer):
|
|
|
1622
1635
|
class BitcoinChainService(typing.Protocol):
|
|
1623
1636
|
def get_address_utxos(self, address: "str"):
|
|
1624
1637
|
raise NotImplementedError
|
|
1638
|
+
def get_transaction_status(self, txid: "str"):
|
|
1639
|
+
raise NotImplementedError
|
|
1625
1640
|
def get_transaction_hex(self, txid: "str"):
|
|
1626
1641
|
raise NotImplementedError
|
|
1627
1642
|
def broadcast_transaction(self, tx: "str"):
|
|
@@ -1673,6 +1688,27 @@ _UniffiConverterTypeChainServiceError,
|
|
|
1673
1688
|
|
|
1674
1689
|
|
|
1675
1690
|
|
|
1691
|
+
async def get_transaction_status(self, txid: "str") -> "TxStatus":
|
|
1692
|
+
_UniffiConverterString.check_lower(txid)
|
|
1693
|
+
|
|
1694
|
+
return await _uniffi_rust_call_async(
|
|
1695
|
+
_UniffiLib.uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_status(
|
|
1696
|
+
self._uniffi_clone_pointer(),
|
|
1697
|
+
_UniffiConverterString.lower(txid)
|
|
1698
|
+
),
|
|
1699
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
|
|
1700
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
1701
|
+
_UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
1702
|
+
# lift function
|
|
1703
|
+
_UniffiConverterTypeTxStatus.lift,
|
|
1704
|
+
|
|
1705
|
+
# Error FFI converter
|
|
1706
|
+
_UniffiConverterTypeChainServiceError,
|
|
1707
|
+
|
|
1708
|
+
)
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
|
|
1676
1712
|
async def get_transaction_hex(self, txid: "str") -> "str":
|
|
1677
1713
|
_UniffiConverterString.check_lower(txid)
|
|
1678
1714
|
|
|
@@ -1788,6 +1824,40 @@ class _UniffiTraitImplBitcoinChainService:
|
|
|
1788
1824
|
uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ChainServiceError, _UniffiConverterTypeChainServiceError.lower)
|
|
1789
1825
|
|
|
1790
1826
|
@_UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD1
|
|
1827
|
+
def get_transaction_status(
|
|
1828
|
+
uniffi_handle,
|
|
1829
|
+
txid,
|
|
1830
|
+
uniffi_future_callback,
|
|
1831
|
+
uniffi_callback_data,
|
|
1832
|
+
uniffi_out_return,
|
|
1833
|
+
):
|
|
1834
|
+
uniffi_obj = _UniffiConverterTypeBitcoinChainService._handle_map.get(uniffi_handle)
|
|
1835
|
+
def make_call():
|
|
1836
|
+
args = (_UniffiConverterString.lift(txid), )
|
|
1837
|
+
method = uniffi_obj.get_transaction_status
|
|
1838
|
+
return method(*args)
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
def handle_success(return_value):
|
|
1842
|
+
uniffi_future_callback(
|
|
1843
|
+
uniffi_callback_data,
|
|
1844
|
+
_UniffiForeignFutureStructRustBuffer(
|
|
1845
|
+
_UniffiConverterTypeTxStatus.lower(return_value),
|
|
1846
|
+
_UniffiRustCallStatus.default()
|
|
1847
|
+
)
|
|
1848
|
+
)
|
|
1849
|
+
|
|
1850
|
+
def handle_error(status_code, rust_buffer):
|
|
1851
|
+
uniffi_future_callback(
|
|
1852
|
+
uniffi_callback_data,
|
|
1853
|
+
_UniffiForeignFutureStructRustBuffer(
|
|
1854
|
+
_UniffiRustBuffer.default(),
|
|
1855
|
+
_UniffiRustCallStatus(status_code, rust_buffer),
|
|
1856
|
+
)
|
|
1857
|
+
)
|
|
1858
|
+
uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ChainServiceError, _UniffiConverterTypeChainServiceError.lower)
|
|
1859
|
+
|
|
1860
|
+
@_UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD2
|
|
1791
1861
|
def get_transaction_hex(
|
|
1792
1862
|
uniffi_handle,
|
|
1793
1863
|
txid,
|
|
@@ -1821,7 +1891,7 @@ class _UniffiTraitImplBitcoinChainService:
|
|
|
1821
1891
|
)
|
|
1822
1892
|
uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, ChainServiceError, _UniffiConverterTypeChainServiceError.lower)
|
|
1823
1893
|
|
|
1824
|
-
@
|
|
1894
|
+
@_UNIFFI_CALLBACK_INTERFACE_BITCOIN_CHAIN_SERVICE_METHOD3
|
|
1825
1895
|
def broadcast_transaction(
|
|
1826
1896
|
uniffi_handle,
|
|
1827
1897
|
tx,
|
|
@@ -1860,6 +1930,7 @@ class _UniffiTraitImplBitcoinChainService:
|
|
|
1860
1930
|
# Generate the FFI VTable. This has a field for each callback interface method.
|
|
1861
1931
|
_uniffi_vtable = _UniffiVTableCallbackInterfaceBitcoinChainService(
|
|
1862
1932
|
get_address_utxos,
|
|
1933
|
+
get_transaction_status,
|
|
1863
1934
|
get_transaction_hex,
|
|
1864
1935
|
broadcast_transaction,
|
|
1865
1936
|
_uniffi_free
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
breez_sdk_spark/__init__.py,sha256=Rmo1pY5ISvxSNwDo_RBCneMCfoYDNbB_4A7VCmQmtEI,148
|
|
2
|
+
breez_sdk_spark/breez_sdk_common.py,sha256=cdFqiHbDKhnyftMiQRJ30XPHUoGVHDu1gAyeM4EMg_w,202759
|
|
3
|
+
breez_sdk_spark/breez_sdk_spark.py,sha256=XJLvgZMRBSCXYuq2lraSoTtGf_CjAi17wpb3B-Ix6cM,310319
|
|
4
|
+
breez_sdk_spark/breez_sdk_spark_bindings.py,sha256=ysAJqyrIhXUjJIBj856CADqim5MR38CgNEIdG1Fj4qg,32901
|
|
5
|
+
breez_sdk_spark/libbreez_sdk_spark_bindings.so,sha256=thxb4tYW1NwHbuDVvh5g2NcDkPCwM5Be7e41YxI4mvU,25915288
|
|
6
|
+
breez_sdk_spark-0.2.2.dev2.dist-info/METADATA,sha256=hI54s-grM40WRVXwG0xWtzuaFqbIt5zotpBwRB28Qpg,550
|
|
7
|
+
breez_sdk_spark-0.2.2.dev2.dist-info/WHEEL,sha256=W7N61VHkY9NMED8iqoIxank_OAMtaauNbxkaCwY4u08,114
|
|
8
|
+
breez_sdk_spark-0.2.2.dev2.dist-info/top_level.txt,sha256=EWjZB7jCSH5bjyOrFhpRFW4Jfo8ykKdxJ7tqAOytwDU,16
|
|
9
|
+
breez_sdk_spark-0.2.2.dev2.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
breez_sdk_spark/__init__.py,sha256=Rmo1pY5ISvxSNwDo_RBCneMCfoYDNbB_4A7VCmQmtEI,148
|
|
2
|
-
breez_sdk_spark/breez_sdk_common.py,sha256=cdFqiHbDKhnyftMiQRJ30XPHUoGVHDu1gAyeM4EMg_w,202759
|
|
3
|
-
breez_sdk_spark/breez_sdk_spark.py,sha256=MsVDafnqF5FKS-fs5tHwFuACtTHkG6_lisSBqj-NR4E,307069
|
|
4
|
-
breez_sdk_spark/breez_sdk_spark_bindings.py,sha256=ysAJqyrIhXUjJIBj856CADqim5MR38CgNEIdG1Fj4qg,32901
|
|
5
|
-
breez_sdk_spark/libbreez_sdk_spark_bindings.so,sha256=BbiUpM1-8yZciVUJ7XdHY5PUSqWHoaupXshOwKMbSe8,25884584
|
|
6
|
-
breez_sdk_spark-0.2.1.dist-info/METADATA,sha256=FFbUc66pXz8XLwBqUTKoXArSOPq3cCtNlHIzBHfh5Gw,545
|
|
7
|
-
breez_sdk_spark-0.2.1.dist-info/WHEEL,sha256=W7N61VHkY9NMED8iqoIxank_OAMtaauNbxkaCwY4u08,114
|
|
8
|
-
breez_sdk_spark-0.2.1.dist-info/top_level.txt,sha256=EWjZB7jCSH5bjyOrFhpRFW4Jfo8ykKdxJ7tqAOytwDU,16
|
|
9
|
-
breez_sdk_spark-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|