Crytic-compile
Library to help smart contract compilation. It includes support for:
See the Configuration documentation for advanced usages.
The plugin is used in Crytic tools, including:
Installation
pip3 install crytic-compileUsage
Standalone
crytic-compile .Crytic-compile will generate crytic-export/contracts.json containing the AST/ABI and bytecodes of the contracts.
Run crytic-compile --help for more options.
As a library
See the library documentation.
For users of Buidler
As explained in this thread, Buidler has a bug activated when the "paths.root" field is set in buidler.config.ts. The "root" of a Buidler project is implicit to where the configuration file is found, so you usually don't need to set this field. For troubleshooting, you should ask the Buidler team directly.