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/hardhat-upgrade-smart-contracts.git
-
Install dependencies with
yarn install
ornpm install
-
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
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
- Types of Upgrades
- Parameter
- Social Migrate
- Proxy
- Proxy Gotchas
- Metamorphic Upgrades
- Transparent
- UUPS (Universal Upgradable Proxies)
- Diamond