-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
831 additions
and
16 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
"""eth_defi package root. | ||
See :ref:`api documentation` for more details. | ||
""" | ||
|
||
import sys | ||
|
||
|
||
# Minimum required Python version | ||
_MIN_VERSION = (3, 9) | ||
#: Minimum required Python version to run this package | ||
MIN_PYTHON_VERSION = (3, 9) | ||
|
||
|
||
def _check_python_version(): | ||
"""Try early abort if the Python version is too old.""" | ||
|
||
# Use Python tuple comparison for version numbers | ||
# https://stackoverflow.com/a/1093331/315168 | ||
if sys.version_info < _MIN_VERSION: | ||
raise RuntimeError(f"web3-ethereum-defi needs Python {_MIN_VERSION[0]}.{_MIN_VERSION[1]} or later") | ||
if sys.version_info < MIN_PYTHON_VERSION: | ||
raise RuntimeError(f"web3-ethereum-defi needs Python {MIN_PYTHON_VERSION[0]}.{MIN_PYTHON_VERSION[1]} or later") | ||
|
||
|
||
_check_python_version() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
|
||
from eth_defi.tx import decode_signed_transaction | ||
|
||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
|