ethereum / web3.py

A python interface for interacting with the Ethereum blockchain and ecosystem.
http://web3py.readthedocs.io
MIT License
4.97k stars 1.69k forks source link

Event ABI Utilities #3401

Closed reedsa closed 2 months ago

reedsa commented 4 months ago

What was wrong?

Related to Issue #1596, #3036

Dependent on https://github.com/ethereum/eth-utils/pull/271

Before exposing get_event_data, refactoring and cleanup is needed. A couple of utilities can be created to get log topics (as bytes) for a given event ABI.

How was it fixed?

Utilities added to handle contract event ABIs, get_event_log_topics and log_topic_to_bytes.

Todo:

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

reedsa commented 2 months ago

Merged these changes manually into #3408