bytecode-verifier
bytecode-verifier copied to clipboard
Programative usage
Awesome work!
I intend to use this as part of a program and was wondering if there is any reason that it is made to only log the result as verbose and not being able to be called/used as a function giving the result in a reusable way to other programs?
Things that could be returned are:
- bytecode_from_compiler
- compilation error if any
- swarm_hash
- ABI
Hi @jdourlens, Thanks for using this tool and giving great feedback, really nice suggestion.
Considering implement this! Thanks!
Thank you! I could do something for me but not confident to do it as a pull request as it completely modify the project.. can try if you want. From using this awesome project, I was thinking of making a smart contract code validation tool with API and simpler experience than current existing tools.
@jdourlens I'd say go for it. The code could probably be refactored, and some testing would be nice too if you're keen.
@maurelian I'm thinking of adding Travis-ci and writing some functional and unit testing scripts to this tool.
@jdourlens Sorry for the super late reply. Please go for your idea, you are more than welcomed to build on top of the existing code base.
One concern is, when I gave it a second thought, I think we could get all those information from solc compiler or through web3 on-chain queries. I'm not 100% sure I get your proposal once I reconsidered it. (I guess those two packages are sufficient for your purpose, what did I miss?)