commit aaff8e93fc0336516c631d7e35efb9256110e287
parent 8a078d169590f3be7cf191d2b81eacd19d171663
Author: lash <dev@holbrook.no>
Date: Sun, 6 Aug 2023 14:07:48 +0100
Upgrade dependencies
Diffstat:
6 files changed, 69 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
@@ -1,3 +1,5 @@
+- 0.3.0
+ * Upgrade dependencies
- 0.2.1
* Change license to AGPL3, waive copyright
- 0.2.0
diff --git a/WAIVER b/WAIVER
@@ -0,0 +1,17 @@
+# Copyright waiver for the python package "eth-cache"
+
+I dedicate any and all copyright interest in this software to the
+public domain. I make this dedication for the benefit of the public at
+large and to the detriment of my heirs and successors. I intend this
+dedication to be an overt act of relinquishment in perpetuity of all
+present and future rights to this software under copyright law.
+
+To the best of my knowledge and belief, my contributions are either
+originally authored by me or are derived from prior works which I have
+verified are also in the public domain and are not subject to claims
+of copyright by other parties.
+
+To the best of my knowledge and belief, no individual, business,
+organization, government, or other entity has any copyright interest
+in my contributions, and I affirm that I will not make contributions
+that are otherwise encumbered.
diff --git a/WAIVER.asc b/WAIVER.asc
@@ -0,0 +1,29 @@
+-----BEGIN PGP MESSAGE-----
+
+owGVU2tQVFUc3+WxLdcsJtfHOIscUUmnXTI2xQwocFiGMRrdCF9Yc/buubuH3b13
+uY9d10ksCkVqFAeRFSymGROMeNgorYlNEwyvIRlgrIGRUDHAnAILLLXJzt0FtfrU
+h53Ze8///3ueWzI3VKFWLu0bO1/0TbVRWReaZ1ZtScnITjPReVPDy8AGzuXlsdUm
+Ag/EbsQDhuOBaEPA5RVtHAtckLZDKwIxSLTpaUjbUAxFZQALsmAaighA1kt+FgAd
+DkA/wMKsiHgkyH8IGBaAwDGiB/IIiJyMTrkkswPTwMI5IWbjQAZwQjsKjs5AY0I+
+q8WMWMRgEXBMUFpwGYqUA/JWFOAP4pJlkcdOxAZmnV5gQ5gXAgOCRNNIEDhekOlk
+gfIWIaQeISQoZhkPcCQKEUA6gMMjB2bzJCzYAsj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VyZ3
+lwra2z3K/gsTRmXh+bBnyj/sHxpIm/eFv7L+QE0j2/16tS5+R2w0+kETYtXO3xgx
+J+Jv
+=S6/q
+-----END PGP MESSAGE-----
diff --git a/eth_cache/tx.py b/eth_cache/tx.py
@@ -0,0 +1,17 @@
+# external imports
+from chainlib.eth.tx import (
+ unpack,
+ Tx,
+ )
+from hexathon import strip_0x
+
+
+def apply(c, context, result, chain_spec, signed_tx, conn=None, block=None):
+ signed_tx_bytes = bytes.fromhex(strip_0x(signed_tx))
+ tx_src = unpack(signed_tx_bytes, chain_spec)
+ tx = Tx(tx_src)
+ if conn != None:
+ raise NotImplementedError('retrieval of receipt from RPC connection not yet implemented')
+ if block != None:
+ raise NotImplementedError('application of block for tx not yet implemented')
+ return tx
diff --git a/requirements.txt b/requirements.txt
@@ -1,4 +1,4 @@
hexathon~=0.1.7
jsonrpc-std~=0.1.0
leveldir~=0.3.0
-chainlib-eth~=0.4.1
+chainlib-eth~=0.5.0
diff --git a/setup.cfg b/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = eth-cache
-version = 0.2.1
+version = 0.3.0
description = Ethereum chain data caching tools
author = Louis Holbrook
author_email = dev@holbrook.no
@@ -20,13 +20,13 @@ classifiers =
License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Topic :: Internet
# Topic :: Blockchain :: EVM
-license = OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
+license = AGPLv3+
licence_files =
LICENSE
[options]
include_package_data = True
-python_requires = >= 3.7
+python_requires = >= 3.8
packages =
eth_cache
eth_cache.store