@relocke/neos v0.1.0
Neos
NB - Work in progress experimental project
This is a work in progress, experimental Node js CLI tool designed for Node js API + Dapp developers who want to automate the compiling & deployment of their smart contracts.
Prerequisite
- Node js >= 8
- cleos & eosio-cpp version 1.5.0 part of eosio.cdt
- npm
Setup
Install neos
$ npm i --save-dev @relocke/neos
.neos.json
Add .neos.json file to the root directory and consider adding it to your .gitignore list.
"neos": {
"url": "https://jungle2.cryptolions.io:443",
"wallet": {
"default": "PW5HqGiqMQ3sq5upJn1R9VagmBf46m5F8AGCATso2vLGrHmUmUouF"
}
}
Directory Structure
Inside the contracts
directory will house all the smart contracts you wish to compile and deploy.
The rc
folder will comtain all your ricardian contract md files.
once you finishe developing your c++ contracts.
Compiling
$ npm run neos file_name
Compiling & Deploying
$ npm run neos file_name
Info
neos will create a .neos folder in the root directory with your compiled smart contracts, .wasm
and .abi
.
giving neos a second cli argument account_name
will cause the compiled contract to be deployed to that eosio account name.