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


challenge-12

View Code · Check My Full Journey


Getting Started

  1. Clone the repo
git clone https://github.com/levblanc/hardhat-upgrade-smart-contracts.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
ETHERSCAN_API_KEY=your_etherscan_api_key

Usage

For local development:

# compile contracts
yarn compile

# deploy contract
yarn deploy

Try Upgrade:

# In terminal 1: spin up hardhat local node
yarn localhost

# In terminal 2: run upgrade script
yarn upgrade:local

Lint Solidity files

# Lint only
yarn lint

# Lint & fix
yarn lint:fix

Code formatting

yarn format

Skills

  • Solidity
  • JavaScript
  • Hardhat
  • Chai
  • Mocha
  • Chainlink

Roadmap

Worth to Reads

  1. The State of Smart Contract Upgrades
  2. OpenZeppelin - Upgrades Plugins