npm install
truffle test
dotenv
to keep privateKey on localtruffle-privatekey-provider
to use privateKey deploycontracts/lib
is copy fromopenzeppelin-solidity
solidity_flattener
to consolidates a solidity main file and all imports into one file
cp .env.example .env
andvim .env
truffle migrate --network kovan
deploy to kovan network
Test on MacOS
brew tap ethereum/ethereum && brew install solidity
pip install solidity-flattener
solidity-flattenercd contracts && solidity_flattener --output MyTokenFlat.sol MyToken.sol
- Use
MyTokenFlat.sol
to verify code on etherscan