Make sure these tools are installed with the correct version
solc
0.8.0
Install dependencies
cmd$> npm install
Run local network
cmd$> npx hardhat node
Compile contracts
cmd$> npx hardhat compile
Deploy contracts (default is local network hardhat
)
cmd$> npx hardhat run scripts/deploy.js --network <your-network>
Run all javascript tests
cmd$> npx hardhat test
Run specified javascript test or specified network (default is local network hardhat
)
cmd$> npx hardhat test <test-file-path> --network <your-network>
Run solhint
cmd$> npx solhint --formatter table 'contracts/**/*.sol'