Is it possible to use openzeppelin-upgradable contracts ? #673
-
I'm working on a project with various smart contract and different proxies(like uups, beacon and so on). I was thinking to remove hardhat-deploy and The ui can interact with uups contracts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Actually this is not baked in into SE-2 out of the box, but you could do it easily...checkout this demo video where I tried linking Here is the repo : https://github.com/technophile-04/uups-proxy/tree/main/packages/hardhat Mainly checkout deploy script : https://github.com/technophile-04/uups-proxy/blob/main/packages/hardhat/deploy/00_deploy_yourContract.ts and upgrade script : https://github.com/technophile-04/uups-proxy/blob/main/packages/hardhat/scripts/upgrateToV2.ts I think the demo video should give you the idea how it works but please let me know if you need any help 🙌 |
Beta Was this translation helpful? Give feedback.
Actually this is not baked in into SE-2 out of the box, but you could do it easily...checkout this demo video where I tried linking
hardhat-deploy
openzepllin upgrades and SE-2 : https://youtu.be/cdNyMOrw3uc?si=MTS7xmnWewiNbIG0&t=1267 (watch it on 1.5x)Here is the repo : https://github.com/technophile-04/uups-proxy/tree/main/packages/hardhat
Mainly checkout deploy script : https://github.com/technophile-04/uups-proxy/blob/main/packages/hardhat/deploy/00_deploy_yourContract.ts
and upgrade script : https://github.com/technophile-04/uups-proxy/blob/main/packages/hardhat/scripts/upgrateToV2.ts
I think the demo video should give you the idea how it works but please let me know if you need any…