Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
crytic_compile Cli: Return -1 if the compilation failed (close #21) Jun 5, 2019
scripts
tests
.gitignore Update gitignore for *.pyc files, __pycache__ folder, pycharm .idea f… Apr 24, 2019
.travis.yml minor Apr 19, 2019
LICENSE
README.md
setup.py v0.1.2 Jun 5, 2019

README.md

Crytic-compile

Build Status Slack Status PyPI version

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

pip install crytic-compile

Usage

Standalone

$ crytic-compile .

Crytic-compile will generate crytic-export/contracts.json containing the AST/ABI and bytecodes of the contracts. The file structure is:

{
    "asts": [],
    "contracts": {
        "contract_name": {
            "abi": [],
            "bin": "..",
            "bin-runtime": "..",
            "srcmap": "..",
            "srcmap-runtime": "..",
            "filenames": {
                "absolute": "..",
                "relative": "..",
                "short": "..",
                "used": "..",
            }
        }
    },
    "compiler": {
        "compiler": "solc",
        "version": "x.x.x",
        "optimized": false
    },
    "working_dir": ".."
}

Run crytic-compile --help for more options.

As a library

See the library documentation.

You can’t perform that action at this time.