Test the Transparent Proxy pattern for upgrading smart contracts.
- Deploy a
Box
implementation contract - Deploy a
ProxyAdmin
contract to be the admin of the proxy - Deploy a
TransparentUpgradeableProxy
to be the proxy for the implementations
Then, the upgrade script will:
- Deploy a new Box implementation
BoxV2
- Upgrade the proxy to point to the new implementation contract, essentially upgrading your infrastructure.
- Then it will call a function only
BoxV2
can call