Skip to content

Commit f0725f0

Browse files
committed
Compile release notes for v7.0.0-beta.9
1 parent 590623e commit f0725f0

11 files changed

+48
-21
lines changed

docs/release_notes.rst

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,54 @@ v7 Breaking Changes Summary
66

77
.. towncrier release notes start
88
9+
web3.py v7.0.0-beta.9 (2024-08-01)
10+
----------------------------------
11+
12+
Breaking Changes
13+
~~~~~~~~~~~~~~~~
14+
15+
- Upgrades to use latest ``ABI`` utilities and typings from ``eth-utils`` and ``eth-typing``.
16+
* Typings for ``ABI`` components are now available in the ``eth-typing`` package. ``ABI`` types previously in ``web3.types`` have been removed.
17+
* New versions of existing ABI functions were added to ``eth-utils`` and are now exposed in `web3.py` via ``web3.utils.abi``.
18+
* ABI exceptions have been renamed in ``web3.exceptions``. The ``ABIEventFunctionNotFound`` and ``FallbackNotFound`` exceptions have been removed. Use ``ABIEventNotFound`` and ``ABIFallbackNotFound`` instead.
19+
* ``MismatchedABI`` exceptions are raised instead of a ``Web3ValidationError`` for ABI related errors.
20+
* ``encode_abi`` arguments have been updated to use ``abi_element_name`` instead of ``fn_name``. (`#3408 <https://github.com/ethereum/web3.py/issues/3408>`__)
21+
- Remove ``Web3ValidationError`` dependence / inheritance from `eth-utils` ``ValidationError``. (`#3443 <https://github.com/ethereum/web3.py/issues/3443>`__)
22+
23+
24+
Improved Documentation
25+
~~~~~~~~~~~~~~~~~~~~~~
26+
27+
- Use autodoc and update ABI functions with docstrings and doctests. (`#3408 <https://github.com/ethereum/web3.py/issues/3408>`__)
28+
29+
30+
Features
31+
~~~~~~~~
32+
33+
- Utilities to extract function and event ``ABI`` attributes from a contract. Utilities in the ``web3.utils.abi`` module parse ABI elements and check encodability of provided arguments. ABI functions in ``eth-utils`` are exposed by the ``web3.utils.abi`` module.
34+
* ``get_abi_element_info`` returns an ``ABIElementInfo`` TypedDict with the ``abi``, ``selector``, and ``arguments``.
35+
* ``get_abi_element`` returns the ``ABI`` of a function, event, or error given the name and arguments.
36+
* ``check_if_arguments_can_be_encoded`` returns true if the arguments can be encoded with the given ABI.
37+
* ``get_event_abi`` returns the ``ABI`` of an event given the name.
38+
* ``get_event_log_topics`` returns the log topics of an event given the name.
39+
* ``log_topics_to_bytes`` returns the log topics as bytes. (`#3408 <https://github.com/ethereum/web3.py/issues/3408>`__)
40+
- Add explicit stream kwarg to HTTPProvider so that timeout can be more finely tuned. (`#3428 <https://github.com/ethereum/web3.py/issues/3428>`__)
41+
- Implement a ``RequestTimedOut`` exception, extending from ``Web3RPCError``, for when requests to the node time out. (`#3440 <https://github.com/ethereum/web3.py/issues/3440>`__)
42+
43+
44+
Internal Changes - for web3.py Contributors
45+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46+
47+
- Run ``mypy`` locally using ``pre-commit`` hook, instead of within ``pre-commit`` container (`#3414 <https://github.com/ethereum/web3.py/issues/3414>`__)
48+
- Mitigate inconsistently failing tests for CI runs with appropriate ``flaky`` or ``pytest.mark.xfail()`` decorators. (`#3440 <https://github.com/ethereum/web3.py/issues/3440>`__)
49+
50+
51+
Miscellaneous Changes
52+
~~~~~~~~~~~~~~~~~~~~~
53+
54+
- `#3408 <https://github.com/ethereum/web3.py/issues/3408>`__, `#3445 <https://github.com/ethereum/web3.py/issues/3445>`__
55+
56+
957
web3.py v7.0.0-beta.8 (2024-07-24)
1058
----------------------------------
1159

newsfragments/3408.breaking.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

newsfragments/3408.docs.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3408.feature.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

newsfragments/3408.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3414.internal.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3428.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3440.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3440.internal.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3443.breaking.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)