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.
Globally:
npm -g install @trailofbits/embark-contract-info
Or locally, from your embark dapp directory:
npm install @trailofbits/embark-contract-info --save
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": ".."
}
}
}
- Embark 4.0.0 or higher