embark-nim-compiler/README.md

48 lines
1.6 KiB
Markdown
Raw Normal View History

2019-09-24 14:13:48 +00:00
embark-nim-compiler
======
Plugin for [Embark](https://github.com/embark-framework/embark) to compile [Nim contracts](https://github.com/status-im/nimplay)
## Installation
In your embark dapp directory:
```npm install embark-nim-compiler --save```
or
```yarn add embark-nim-compiler```
then add embark-nim-compiler to the plugins section in `embark.json`:
```Json
{
"plugins": {
2019-09-25 13:31:48 +00:00
"embark-nim-compiler": {
"setupBlockchainOptions": true,
"libHeraPath": "path/to/libHera.so"
}
2019-09-24 14:13:48 +00:00
}
}
```
2019-09-25 13:31:48 +00:00
- `setupBlockchainOptions`: boolean that when set to `true`, will change the blockchain config for you. If you set this to `false`, you need to set the blockchain config yourself so that it supports eWasm
- `libHeraPath`: string path to the file `libHera.so` that is used to have Geth use Hera as a VM. Not needed if `setupBlockchainOptions` is `false`
2019-10-02 19:14:41 +00:00
Since you need to have Geth+Hera installed, make sure that the built Geth is in your Path or change `ethereumClientBin` in you blockchain config to point to the Geth executable (absolute path).
### Temporary endpoint
You can use our temporary endpoint available at `http://159.65.52.177:8545/`.
This endpoint connects to an eWasm testnet node, but we'll probably shut down at some point, so don't rely on it for production.
2019-09-24 14:13:48 +00:00
## Requirements
- [Embark](https://www.npmjs.com/package/embark) 5.0.0 or higher
- A valid eWasm ready node. See https://github.com/ewasm/testnet for more details
2019-10-01 18:06:24 +00:00
- Docker
2019-09-24 14:13:48 +00:00
2019-10-01 18:06:24 +00:00
### Troubleshooting
If you get an error related to docker or the image `jacqueswww/nimclang`, you might need to pull it first manually using:
```docker pull jacqueswww/nimclang```