bytecode-verifier icon indicating copy to clipboard operation
bytecode-verifier copied to clipboard

Programative usage

Open grandsmarquis opened this issue 7 years ago • 4 comments

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

grandsmarquis avatar Mar 31 '18 04:03 grandsmarquis

Hi @jdourlens, Thanks for using this tool and giving great feedback, really nice suggestion.

Considering implement this! Thanks!

alxiong avatar Apr 01 '18 12:04 alxiong

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.

grandsmarquis avatar Apr 01 '18 13:04 grandsmarquis

@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 avatar Apr 12 '18 21:04 maurelian

@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?)

alxiong avatar Apr 17 '18 05:04 alxiong