This repository contains the basic implementation of Transparent & UUPS proxy patterns using Openzeppelin Upgrades Plugin.
npm install --force
- Create a
.env
file at the root level of this project. - Add these variables inside it;
SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/your-api-key
PRIVATE_KEY=your-wallet-private-key
COINMARKETCAP_API_KEY=https://eth-mainnet.g.alchemy.com/v2/your-api-key
ETHERSCAN_API_KEY=your-api-key
npx hardhat compile
npx hardhat run scripts/deployAndUpgrade.ts
use the same command for others.
npx hardhat test
npx hardhat coverage