This commit is contained in:
poma 2019-07-13 18:00:41 +03:00
parent f90e298b6c
commit e29b1afeff

View File

@ -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 <note from previous step> <destination eth address>`
## Testing truffle ## Testing truffle
1. `npm i` 1. `npm i`
2. `npm run build:circuit` 2. `npm run build:circuit`
2. `npx truffle compile` 2. `npm run build:contract`
3. `npx truffle test` - it may fail for the first time, just run one more time. 3. `npm run test` - it may fail for the first time, just run one more time.
## Testing js ## Testing js
1. `npm i` 1. `npm i`
@ -13,10 +27,6 @@
## Deploy ## Deploy
1. `npx truffle migrate --network kovan --reset` 1. `npx truffle migrate --network kovan --reset`
## Requirements
1. `node v11.15.0`
2. `npm install -g npx`
# Specs: # Specs:
- Deposit gas cost: deposit 903472 - Deposit gas cost: deposit 903472
- Withdraw gas cost: 727821 - Withdraw gas cost: 727821