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

[Feature] Typings and/or contract method autogeneration using web3py #3287

Open
gabrielfior opened this issue Mar 14, 2024 · 0 comments
Open

Comments

@gabrielfior
Copy link

  • Version: 6.15.1
  • Python: 3.5
  • OS: linux
  • pip freeze output
pycryptodome==3.20.0
pydantic==2.6.3
pydantic-settings==2.2.1
pydantic_core==2.16.3
pytest==8.0.2
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
streamlit==1.32.0
types-pytz==2024.1.0.20240203
types-requests==2.31.0.20240218
typing-inspect==0.9.0
typing_extensions==4.10.0
urllib3==2.2.1
web3==6.15.1
websockets==12.0
Werkzeug==3.0.1

What was wrong?

I'm using web3py to interact with a deployed contract. Instead of calling the functions by-hand and using error-prone strings, I would like to use auto-generated contract methods (similar to what Typechain (https://github.com/dethcrypto/TypeChain) does in Typescript.

Is there support for typings and/or autogeneration in web3py? If not, is there a package that achieves this?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants