2019-09-27 17:58:08 +00:00
|
|
|
# `embark-solc`
|
2019-06-28 18:02:27 +00:00
|
|
|
|
2019-09-27 17:58:08 +00:00
|
|
|
> Solc plugin for Embark
|
2019-06-28 18:02:27 +00:00
|
|
|
|
2019-09-27 17:58:08 +00:00
|
|
|
Compiles contracts using solc in an Embark DApp.
|
2019-06-28 18:02:27 +00:00
|
|
|
|
2019-09-27 17:58:08 +00:00
|
|
|
## Installation
|
2019-06-28 18:02:27 +00:00
|
|
|
|
|
|
|
In your embark dapp directory:
|
|
|
|
|
2019-09-27 17:58:08 +00:00
|
|
|
```
|
|
|
|
npm install embark-solc --save
|
|
|
|
```
|
2019-06-28 18:02:27 +00:00
|
|
|
|
2019-09-27 17:58:08 +00:00
|
|
|
Then add embark-solc to the plugins section in `embark.json`:
|
2019-06-28 18:02:27 +00:00
|
|
|
|
2019-09-27 17:58:08 +00:00
|
|
|
```json
|
|
|
|
"plugins": {
|
|
|
|
"embark-solc": {
|
|
|
|
"outputBinary": false
|
2019-06-28 18:02:27 +00:00
|
|
|
}
|
2019-09-27 17:58:08 +00:00
|
|
|
}
|
2019-06-28 18:02:27 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
- `outputBinary` can be specified to generate a .bin file that contains the binary of the contracts in hex. Default value is `false`.
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
- [Embark](https://www.npmjs.com/package/embark) 4.0.0 or higher
|
|
|
|
- [Solc](https://github.com/ethereum/solidity/releases) installed and available globally on your machine (h)
|
|
|
|
|
2019-09-27 17:58:08 +00:00
|
|
|
Visit [embark.status.im](https://embark.status.im/) to get started with
|
2020-01-16 19:37:59 +00:00
|
|
|
[Embark](https://github.com/embarklabs/embark).
|