1.1.0 • Published 5 years ago

@trailofbits/embark-contract-info v1.1.0

Weekly downloads
41
License
AGPL v3
Repository
-
Last release
5 years ago

Embark-Contract-Information

Plugin for Embark to generate AST|ABI|Bytecode. embark-contract-information allows the use of Crytic tools, such as:

See crytic-compile for more details.

Installation

Globally:

npm -g install @trailofbits/embark-contract-info

Or locally, from your embark dapp directory:

npm install @trailofbits/embark-contract-info --save

Usage

Add @trailofbits/embark-contract-info to the plugins section in embark.json:

  "plugins": {
    "@trailofbits/embark-contract-info": {
      "flags": ""
    }
  }

Embark will now generate crytic-export/contracts.json after each compilation. The file structure is:

{
    "asts": [],
    "contracts": {
        "/path:contract_name": {
            "abi": [],
            "bin": "..",
            "bin-runtime": "..",
            "srcmap": "..",
            "srcmap-runtime": ".."
        }
    }
}

Requirements

  • Embark 4.0.0 or higher