Deployment
Hardhat Deployment
(For more details, please refer to the Openzeppelin Upgrades library)
deployProxy
does the following:
Validate that the implementation is upgrade safe
Deploy a proxy admin for your project (if needed)
Check if there is an implementation contract deployed with the same bytecode, and deploy one if not
Create and initialize the proxy contract
And when you call upgradeProxy
:
Validate that the new implementation is upgrade safe and is compatible with the previous one
Check if there is an implementation contract deployed with the same bytecode, and deploy one if not
Upgrade the proxy to use the new implementation contract
Foundry Deployment
Last updated