Web3-ethereum-defi

Latest version: v0.26.1

Safety actively analyzes 682449 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 18

0.24.4

- Figure out how to tackle Anvil unreliability issues
- Mark `evm_mine` JSON-RPC method not retryable
- Fix `anvil.mine()` without parameters do not attempt to guess next block timestamp, as this
was wrong under a load, probably due to Anvil's internal race conditions
- Add `is_retryable_http_exception(method, params)` to allow decide the retry of a JSON-RPC request based
on its inputs, not just the output exception
- Add `eth_defi.timestamp.get_latest_block_timestamp()`
- Add `eth_defi.timestamp.get_block_timestamp()`

0.24.3

- Change 1delta `close_short_position()` API to be able to
be able to specify the amount of collateral to withdraw

0.24.2

- Add `is_anvil(web3)` method
- Add `fetch_erc20_balances_by_token_list(decimalise=True)` to
get multiple token balances with decimal conversaion
as a batch operation
- Fix: `set_block_tip_latency()` defauts to 0 when
connected to `create_multi_provider_web3` to simplify testing
- Remove LlamaNodes from Github CI configuration as was causing too much maintenance
work and random failures

0.24.1

- Unpin some dependencies to make package installation easier

0.24

- Debian Bullseye and pyenv was picking up old web3-ethereum-defi version
- Create a Docker script to check installation on Debian Bullseye
- This did not then use the correct version of [safe-pysha3](https://github.com/5afe/pysha3), but picked up the old pysha3 package
- Make `pyproject.toml` to say we are compatible all they way to Python 3.12
- [pkgutil compatibility fixes](https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean).
- [Upgrade to Pandas 2.x](https://github.com/pandas-dev/pandas/issues/53665), needed for Python 3.12 compatibility
- Upgrade to the latest Web3.py 6.x version
- Python 3.12 changes `ast` module and this has breaking changes with `eth_trace` library. Workaround them.
- Disable `test_fallback_double_fault` because new Web3.py does not like `MagicMock` results
- Bump to `zope.dottedname` 6.0 needed [for Python 3.11 compatibility](https://pypi.org/project/zope.dottedname/)

0.23.2

- Fix installation error on Debian Bullseye and Python 3.11: `fatal error: pystrhex.h: No such file or directory`
- Bump compatibility all the way up to Python 3.12

Page 3 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.