Crytic-compile

Latest version: v0.3.8

Safety actively analyzes 722525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

0.3.8

This release adds support for the v2 Etherscan API and fixes a bug with a recent foundry version.
What's Changed
* platform: etherscan: add support for v2 API by elopez in https://github.com/crytic/crytic-compile/pull/574
* Fix foundry optimizer key by smonicas in https://github.com/crytic/crytic-compile/pull/582
* SolcStandardJson: pass solc_env and solc_working_dir through to compilation by garythung in https://github.com/crytic/crytic-compile/pull/514
* Fix some comments by pullmerge in https://github.com/crytic/crytic-compile/pull/559

New Contributors
* garythung made their first contribution in https://github.com/crytic/crytic-compile/pull/514
* pullmerge made their first contribution in https://github.com/crytic/crytic-compile/pull/559

**Full Changelog**: https://github.com/crytic/crytic-compile/compare/0.3.7...0.3.8

0.3.7

This release adds support for retrieving source code from [Blast's block explorer](https://blastscan.io/) (`crytic-compile blast:0x`). Crytic-compile will also now automatically configure remappings for Etherscan and derivative block explorers such that it can be compiled from disk without intervention.

We'd like to thank our external contributor(s):
- shortdoom

What's Changed
* Improve handling of "version" string from Etherscan by ggrieco-tob in https://github.com/crytic/crytic-compile/pull/545
* Allow library users to use a custom current working directory by frabert in https://github.com/crytic/crytic-compile/pull/551
* feat: automatically handle solc configuration for Etherscan Platform by shortdoom in https://github.com/crytic/crytic-compile/pull/544
* fix: normalize windows path to handle solc >=0.8.8 filename lookup by 0xalpharush in https://github.com/crytic/crytic-compile/pull/554
* Add Blast support by smonicas in https://github.com/crytic/crytic-compile/pull/556

New Contributors
* frabert made their first contribution in https://github.com/crytic/crytic-compile/pull/551
* shortdoom made their first contribution in https://github.com/crytic/crytic-compile/pull/544

**Full Changelog**: https://github.com/crytic/crytic-compile/compare/0.3.6...0.3.7

0.3.6

This release fixes an issue related to detecting Foundry projects when the target directory contains a `foundry.toml` file, adds support for contract from Etherscan that require via-ir, fixes Python >=3.12.1 compatibility, and fixes a regression in the error message when a target is not a file/directory.

What's Changed
* platform: etherscan: add support for viaIR by elopez in https://github.com/crytic/crytic-compile/pull/517
* fix(vyper): only raise InvalidCompilation on hard errors by 0xalpharush in https://github.com/crytic/crytic-compile/pull/532
* Fix Python 3.12 compatibility by elopez in https://github.com/crytic/crytic-compile/pull/516
* fix(ci): guard brownie on Py3.10,3.11 by 0xalpharush in https://github.com/crytic/crytic-compile/pull/533
* fix: use target to get config, drop toml for json by 0xalpharush in https://github.com/crytic/crytic-compile/pull/515
* ci: re-enable testing on Windows with Python 3.12 by elopez in https://github.com/crytic/crytic-compile/pull/535
* fix: raise error when target is not file/directory by 0xalpharush in https://github.com/crytic/crytic-compile/pull/539


**Full Changelog**: https://github.com/crytic/crytic-compile/compare/0.3.5...0.3.6

0.3.5

This release enables building a single file for Foundry projects:
- Running `crytic-compile contracts/file.sol` will automatically resolve the necessary imports and compile only the relevant files. Note, this requires providing the [solc version in the project's foundry.toml](https://book.getfoundry.sh/reference/config/solidity-compiler#solc_version).
- Tests and scripts files are no longer compiled by default. This will impact echidna and medusa users. To include them, use `--foundry-compile-all`, or run the tool on the target file instead of the project directory.

Additionally, this releases improves the support for vyper, and adds three new etherscan-like platform (base, gnosis, and zkevm).

What's Changed
- Improve foundry compilation by smonicas in https://github.com/crytic/crytic-compile/pull/488
- Add support for base, gnosis and zkevm chain by vikramarun in https://github.com/crytic/crytic-compile/pull/487
- Add vyper 0.3.7 standard json support by 0xalpharush in https://github.com/crytic/crytic-compile/pull/492
- Add CompilationUnit.implementation_address for proxy contracts by SheldonHolmgren in https://github.com/crytic/crytic-compile/pull/452
- Tests for file ordering by samalws-tob in https://github.com/crytic/crytic-compile/pull/499
- Deprecate support for kovan and ropsten networks https://github.com/crytic/crytic-compile/pull/502

CI
- Bump sigstore/gh-action-sigstore-python from 2.0.1 to 2.1.0 by dependabot in https://github.com/crytic/crytic-compile/pull/498
- Bump sigstore/gh-action-sigstore-python from 2.0.0 to 2.0.1 by dependabot in https://github.com/crytic/crytic-compile/pull/490
- Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10 by dependabot in https://github.com/crytic/crytic-compile/pull/489
- Bump actions/checkout from 3 to 4 by dependabot in https://github.com/crytic/crytic-compile/pull/497
- Bump cachix/install-nix-action from 20 to 23 by dependabot in https://github.com/crytic/crytic-compile/pull/496
- Add more delay on the etherscan CI test by montyly in https://github.com/crytic/crytic-compile/pull/500

New Contributors
* vikramarun made their first contribution in https://github.com/crytic/crytic-compile/pull/487
* SheldonHolmgren made their first contribution in https://github.com/crytic/crytic-compile/pull/452

**Full Changelog**: https://github.com/crytic/crytic-compile/compare/0.3.4...0.3.5

0.3.4

This release improves support for libraries, specifically for users of Echidna and Medusa. Please see the usage and accompanying tutorial for more information [here](https://github.com/crytic/crytic-compile#library-linking).

Thank you vovikhangcdv for your contribution.

What's Changed
* docs: add useful info like linking and forcing framework to README by 0xalpharush in https://github.com/crytic/crytic-compile/pull/478
* add library names and placeholder to solc export format by 0xalpharush in https://github.com/crytic/crytic-compile/pull/479
* allow 20 byte address for --compile-libraries and raise error if argument is invalid by 0xalpharush in https://github.com/crytic/crytic-compile/pull/477
* fix: unhandled invalid api key by vovikhangcdv in https://github.com/crytic/crytic-compile/pull/475

New Contributors
* vovikhangcdv made their first contribution in https://github.com/crytic/crytic-compile/pull/475

**Full Changelog**: https://github.com/crytic/crytic-compile/compare/0.3.3...0.3.4

0.3.3

This release adds support for detecting the Hardhat framework when CommonJS config files (`hardhat.config.cjs`) are used.

What's Changed
* Add support for Hardhat CommonJS config, clean up platform ordering by elopez in https://github.com/crytic/crytic-compile/pull/468

New Contributors
* dependabot made their first contribution in https://github.com/crytic/crytic-compile/pull/459
* oldsj made their first contribution in https://github.com/crytic/crytic-compile/pull/463

**Full Changelog**: https://github.com/crytic/crytic-compile/compare/0.3.2...0.3.3

Page 1 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.