Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contract function and event utilities #3279

Closed
1 task
reedsa opened this issue Mar 12, 2024 · 1 comment
Closed
1 task

Contract function and event utilities #3279

reedsa opened this issue Mar 12, 2024 · 1 comment

Comments

@reedsa
Copy link
Contributor

reedsa commented Mar 12, 2024

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:

  • find_matching_fn_abi
  • extract_argument_types
  • encode_abi
  • prepare_transaction
  • encode_transaction_data / decode_transaction_data
  • get_fallback_function_info
  • get_receive_function_info
  • create_filter
  • build_filter

How can it be fixed?

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

Tasks

@reedsa reedsa changed the title get_function_info utilities Contract function and event utilities Mar 12, 2024
This was referenced Apr 23, 2024
@pacrob
Copy link
Contributor

pacrob commented May 20, 2024

Being tracked elsewhere

@pacrob pacrob closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants