https://github.com/crytic/embark-contract-info
embark-contract-info
https://github.com/crytic/embark-contract-info
Last synced: about 1 year ago
JSON representation
embark-contract-info
- Host: GitHub
- URL: https://github.com/crytic/embark-contract-info
- Owner: crytic
- License: agpl-3.0
- Archived: true
- Created: 2019-04-03T09:52:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-24T18:38:55.000Z (about 7 years ago)
- Last Synced: 2025-03-30T05:32:16.418Z (over 1 year ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Embark-Contract-Information
==============================
Plugin for [Embark](https://github.com/embark-framework/embark) to generate AST|ABI|Bytecode.
`embark-contract-information` allows the use of Crytic tools, such as:
- [Slither](https://github.com/crytic/slither)
- [Echidna](https://github.com/crytic/echidna)
- [Manticore](https://github.com/trailofbits/manticore/)
- [evm-cfg-builder](https://github.com/crytic/evm_cfg_builder)
See [`crytic-compile`](https://github.com/crytic/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```:
```Json
"plugins": {
"@trailofbits/embark-contract-info": {
"flags": ""
}
}
```
Embark will now generate `crytic-export/contracts.json` after each compilation.
The file structure is:
```json
{
"asts": [],
"contracts": {
"/path:contract_name": {
"abi": [],
"bin": "..",
"bin-runtime": "..",
"srcmap": "..",
"srcmap-runtime": ".."
}
}
}
```
Requirements
============
- Embark 4.0.0 or higher