ethereum / web3.py

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

Contract function and event utilities #3279

Closed reedsa closed 5 months ago

reedsa commented 7 months ago

What was wrong?

Utilities made public in #3268 focused on get_event_data and get_function_info.

There are a handful of utility functions that would be helpful for users who do not want to instantiate a Contract instance.

In order to fully make these methods public, refactoring will be necessary to eliminate any circular dependencies.

Private web3._utils.contracts and Contract class methods that may be useful:

How can it be fixed?

Make public utilities for contract functions and events. Call the utilities from the Contract class methods.

### Tasks
- [ ] https://github.com/ethereum/web3.py/pull/3355
pacrob commented 5 months ago

Being tracked elsewhere