Setup genesis whenever contracts get changed
$ npm install
$ git submodule init
$ git submodule update
$ cd dojima-contracts
$ npm install
$ node scripts/process-templates.js --dojima-chain-id 1001
$ npm run truffle:compile
$ cd ..
Following command will generate DojimaValidatorSet.sol
file from DojimaValidatorSet.template
file.
# Generate dojima validator set using stake and balance
# Modify validators.json before as per your need
$ node generate-dojimavalidatorset.js --dojima-chain-id 1001 --hermes-chain-id hermeschain
$ git submodule foreach git merge origin master
#installation of npm v12.0.0 is required
$ npm run truffle:compile
Following command will generate genesis.json
file from genesis-template.json
file.
# Generate genesis file
$ node generate-genesis.js --dojima-chain-id 1001 --hermes-chain-id hermeschain
$ npm run testrpc
$ npm test