- Install Ganache-CLI:
npm install -g ganache-cli@7.0.0-beta.0
- Install
truffle
:npm install -g truffle
- Install dependences:
npm install
- Copy
configs/config.example.json
toconfigs/config.json
and fill private keys - Run private node:
./start_node.sh
- Compile contract:
truffle compile
- Deploy contract:
- Localhost:
truffle migrate
- Testnet:
truffle migrate --network testnet
- Run
npm run build-contracts
to merge all contract sol files to a single file inout/
directory. - Copy code in
out/ContractiumToken.sol
file. - Paste code verify contract page.
- Choose solidity compiler version:
v0.4.21+commit.dfe3193c
. - Enable optimizer.
- Submit.
- Run local Ethereum client:
ganache-cli --a 4
- Run test:
truffle test