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