This repo is a quick bootstrap for a Solidity project with Hardhat and TypeScript. It also contains test scripts and deployment automation scripts.
npm install
npx hardhat compile
Mythril is a symbolic execution engine. Setup instructions can be found HERE
Slither is a static code analyzer. Setup instructions can be found HERE
npx hardhat test
npm run slither
npm run mythril
In order to automatically deploy smart contracts to EVM node you have to create specific files for each environment:
- .env.dev - used for local development. Deploys contract to local ganache node.
- .env.test - test node config
- .env.prod - mainnet node config
After creating proper config files, you can deploy the contract by using proper command for each environment:
npm run deploy-dev
npm run deploy-test
npm run deploy-prod