Install dependency:
npm install
Generate contracts for testing:
# the first account of ganache
node generate-validatorset.js --mock true
Start ganache:
ganache-cli --mnemonic 'clock radar mass judge dismiss just intact mind resemble fringe diary casino' --gasLimit 13000000 -e 10000
Run truffle test:
truffle compile
truffle migrate
truffle test
Flatten all system contracts:
npm run flatten
- Edit
init-holders.js
file to alloc the initial token holder. - Edit
roles.js
file to alloc the initial validator set and owner. - Edit
generate-validatorset.js
file to changefromChainId
andtoChainId
, - run
node generate-genesis.js
will generate genesis.json
The library is licensed under the Apache License, Version 2.0, also included in our repository in the LICENSE file.