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

Support copied abis from etherscan #153

Open
slundqui opened this issue Dec 7, 2024 · 2 comments
Open

Support copied abis from etherscan #153

slundqui opened this issue Dec 7, 2024 · 2 comments

Comments

@slundqui
Copy link
Contributor

slundqui commented Dec 7, 2024

Currently, pypechain only recognizes compiled abis from known compilers. Ideally, we would be able to copy an abi from e.g., etherscan and run pypechain on this.

@slundqui
Copy link
Contributor Author

slundqui commented Dec 7, 2024

This may not be possible: copied ABIs from etherscan only contain the contract itself and not any imported files, which is required by pypechain. Hence, the only way to run pypechain on third party contracts is to compile from source, or get all corresponding abis from etherscan.

@slundqui
Copy link
Contributor Author

slundqui commented Dec 7, 2024

If the contract is self contained without any dependencies, the abi must be named identically to the sol file.

slundqui added a commit that referenced this issue Dec 9, 2024
#153

## Minor fixes
- Bug fix for missing whitespace when there is no raw bytecode.
- Adding support for uint224.
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

1 participant