bitcoinwatcher 2.2__tar.gz → 2.3__tar.gz
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.
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/PKG-INFO +1 -1
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tx_listener/zmq_listener.py +5 -2
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoinwatcher.egg-info/PKG-INFO +1 -1
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/pyproject.toml +1 -1
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/LICENSE +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/README.md +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/__init__.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/address_listener/__init__.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/address_listener/address_listener.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/address_listener/simple_address_listener.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/models/__init__.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/models/address_tx_data.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tests/__init__.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tests/data/__init__.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tests/data/transactions.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tests/test_address_listener.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tests/test_bitcoin_rpc.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tests/test_bitcoin_utils.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tx_extractors/__init__.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tx_extractors/abstract_extractor.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tx_extractors/bitcoin_rpc.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tx_extractors/default.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tx_extractors/mempool.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tx_listener/__init__.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/tx_listener/abstract_tx_listener.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/utils/__init__.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/utils/benchmark.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/utils/bitcoin_rpc.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/utils/bitcoin_utils.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/utils/constants.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/utils/inscription_utils.py +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoinwatcher.egg-info/SOURCES.txt +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoinwatcher.egg-info/dependency_links.txt +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoinwatcher.egg-info/requires.txt +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoinwatcher.egg-info/top_level.txt +0 -0
- {bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bitcoinwatcher
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.3
|
4
4
|
Summary: bitcoinwatcher is a Python library that implements a ZMQ subscriber and provides abstractions to build custom address watchers. This library is designed to make it easy for developers to monitor Bitcoin addresses and react to changes in their state.
|
5
5
|
Author: twosatsmaxi
|
6
6
|
License: Apache License
|
@@ -24,8 +24,11 @@ class ZMQTXListener:
|
|
24
24
|
self.socket.setsockopt_string(zmq.SUBSCRIBE, "rawtx")
|
25
25
|
while True:
|
26
26
|
topic, body, seq = self.socket.recv_multipart()
|
27
|
-
|
28
|
-
|
27
|
+
try:
|
28
|
+
tx = Transaction.parse(body, strict=False)
|
29
|
+
self.tx_listener.on_tx(tx)
|
30
|
+
except Exception as e:
|
31
|
+
print(f"Error in parsing tx: {e}")
|
29
32
|
|
30
33
|
def stop(self):
|
31
34
|
self.socket.close()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bitcoinwatcher
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.3
|
4
4
|
Summary: bitcoinwatcher is a Python library that implements a ZMQ subscriber and provides abstractions to build custom address watchers. This library is designed to make it easy for developers to monitor Bitcoin addresses and react to changes in their state.
|
5
5
|
Author: twosatsmaxi
|
6
6
|
License: Apache License
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
5
5
|
|
6
6
|
[project]
|
7
7
|
name = "bitcoinwatcher"
|
8
|
-
version = "2.
|
8
|
+
version = "2.3"
|
9
9
|
description = "bitcoinwatcher is a Python library that implements a ZMQ subscriber and provides abstractions to build custom address watchers. This library is designed to make it easy for developers to monitor Bitcoin addresses and react to changes in their state."
|
10
10
|
readme = "README.md"
|
11
11
|
authors = [{name = "twosatsmaxi"}]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitcoinwatcher-2.2 → bitcoinwatcher-2.3}/bitcoin/address_listener/simple_address_listener.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|