My Web3 full stack Solicity smart contract & blockchain development journey along with
» this course from Patrick Collins
- Clone the repo
git clone https://github.com/levblanc/solidity-hardhat.git-
Install dependencies with
yarn installornpm install -
Create a
.envfile under project's root directory
PRIVATE_KEY=private_key_of_your_wallet
GOERLI_RPC_URL=rpc_url_from_provider
PRIVATE_KEY_PASSWORD=your_password
ETHERSCAN_API_KEY=your_etherscan_api_keySpin up a local node with hardhat
yarn hardhat nodeRun tests
yarn hardhat testCheck tests coverage
yarn hardhat coverage[Optional] Generate converage report
// hardhat.config.js
module.exports = {
// ... other configs
gasReporter: {
enabled: true, // set to true when needs a report
},
};Deploy contract to local network
yarn hardhat run scripts/deploy.jsDeploy contract to Goerli testnet
yarn hardhat run scripts/deploy.js --network goerli- Hardhat Setup
- Deploying SimpleStorage from Hardhat
- Networks in Hardhat
- Programmatic Verification
- Interacting with Contracts in Hardhat
- Custom Hardhat Tasks
- Hardhat Localhost Node
- The Hardhat Console
- Running Tests
- Hardhat Gas Reporter
- Solidity Coverage