From e29b1afeffecc44c9bf2f5af598bffceb79238e5 Mon Sep 17 00:00:00 2001 From: poma Date: Sat, 13 Jul 2019 18:00:41 +0300 Subject: [PATCH] readme --- README.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c8ed24c..db463b8 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,22 @@ +## Requirements +1. `node v11.15.0` +2. `npm install -g npx` + +## Usage +- `npm i` +- `cp .env.example .env` +- `npm run build:circuit` +- `npm run build:contract` +- `npx run truffle-cli` +- `npm run migrate:dev` +- `./cli.js deposit` +- `./cli.js withdraw ` + ## Testing truffle 1. `npm i` 2. `npm run build:circuit` -2. `npx truffle compile` -3. `npx truffle test` - it may fail for the first time, just run one more time. +2. `npm run build:contract` +3. `npm run test` - it may fail for the first time, just run one more time. ## Testing js 1. `npm i` @@ -13,10 +27,6 @@ ## Deploy 1. `npx truffle migrate --network kovan --reset` -## Requirements -1. `node v11.15.0` -2. `npm install -g npx` - # Specs: - Deposit gas cost: deposit 903472 - Withdraw gas cost: 727821