Simple boilerplate for smart-contracts development with using Truffle framework.
- Linux
- Node v10.14.1, NPM v6.9.0
npm i
npm run compile
npm run test
For deploy contracts to Ropsten or Mainnet fill out the .env
file as in .env.example
: configure Infura API key, mnenonic phrase for deployer wallet, limit and price of gas.
npx truffle migrate --network <netName>
netNames:
[
"development",
"ropsten",
"mainnet"
]
Flattened contracts are needed for example for verification on Etherscan.
Configure contracts for flatten in script scripts/flatten.sh
.
npm run flatten