Template for solidity smart contracts
MIT License
Template for building testing and deploying solidity smart contracts
npm install
To deploy to testnet/mainnet, you need an account with some ETH for gas.
Create a file called .secret
with the private key of you account.
No 0x
prefix required
If you have truffle globally installed, compile the contracts with
truffle compile
Truffle is also available at
./node_modules/.bin/truffle
npm run ganache
npm run ganache
truffle test
truffle test --show-events
truffle migrate -f 2 --to 2 --network ropsten
Before testing, make sure to update the address of the contract in the test file
Test command:
npm run test:ropsten
Run a coverage test with:
npm run test:coverage
This will create a .coverage directory, where you can explore coverage