Skip to content

This repo contains a simple implmentation of the UUPS proxy pattern

Notifications You must be signed in to change notification settings

PraneshASP/uups-proxy

Repository files navigation

UUPS Proxy Pattern

Setup:

  • Clone the repo

  • Install the dependencies npm install

  • Create a new file .env from .env.example

cp .env .env.example
  • In .env file add INFURA_API_KEY, PRIVATE_KEY and ETHERSCAN_API_KEY

Note: This project uses Hardhat

Compiling:

  • To compile the contracts
npm run compile

Testing:

  • To run the unit tests, use the command.
npm run tests

Deployment and Upgrades:

  • To deploy the v1 contract to kovan run :
npm run deploy_v1 kovan
  • To upgrade to V2, run :
npm run upgrade_v2 kovan

Note: More networks can be configured in the hardhat.config.js file.

Verification:

To verify the contracts on Etherscan

npx hardhat verify --network kovan <DEPLOYED_CONTRACT_ADDRESS>

About

This repo contains a simple implmentation of the UUPS proxy pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published