Skip to content

levblanc/solidity-hardhat

Repository files navigation


Logo

Web3, Full Stack Solidity, Smart Contract & Blockchain development with JavaScript

My Web3 full stack Solicity smart contract & blockchain development journey along with
» this course from Patrick Collins



Getting Started

  1. Clone the repo
git clone https://github.com/levblanc/solidity-hardhat.git
  1. Install dependencies with yarn install or npm install

  2. Create a .env file 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_key

Usage

Spin up a local node with hardhat

yarn hardhat node

Run tests

yarn hardhat test

Check 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.js

Deploy contract to Goerli testnet

yarn hardhat run scripts/deploy.js --network goerli

Skills

  • Solidity
  • JavaScript
  • TypeScript
  • Hardhat
  • Chai
  • Mocha

Roadmap

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published