Skip to content

BytomDAO/bmc-genesis-contract

Repository files navigation

bmc-genesis-contracts

Prepare

Install dependency:

npm install

unit test

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

how to generate genesis file.

  1. Edit init-holders.js file to alloc the initial token holder.
  2. Edit roles.js file to alloc the initial validator set and owner.
  3. Edit generate-validatorset.js file to change fromChainId and toChainId,
  4. run node generate-genesis.js will generate genesis.json

License

The library is licensed under the Apache License, Version 2.0, also included in our repository in the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •