-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Comments
Hello @gabrielfior I also felt the need for an auto-generation tool, so I created one. |
https://github.com/empyrealapp/eth-packages I built an implementation that I feel addresses this requirement. I think this could serve as an alternative to web3.py for typed bindings, or if there is interest it could be integrated into the web3.py toolchain. https://eth-packages.empyrealsdk.com/getting-started/contracts/func/#struct-definitions might be a cool place to reference in the documentation |
We also needed auto-generated contract methods, and have written a package on top of web3py for this. Feel free to check it out! |
pip freeze
outputWhat 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!
The text was updated successfully, but these errors were encountered: