Proxy operations: ERC-1167 clones and ERC-1967 proxy/beacon upgrades.
| Command | Description |
|---|
| proxies:clone | Deploy an ERC-1167 minimal proxy (clone) of an implementation contract. Binds the predicted clone address to . Pass --salt for a deterministic CREATE2 deployment. |
| proxies:upgrade | Upgrade an ERC-1967 proxy to a new implementation, detecting whether it is a transparent proxy (upgraded through its ProxyAdmin) or a UUPS proxy (upgraded through itself). Optionally calls an initializer on the new implementation. |
| proxies:upgrade-beacon | Upgrade an UpgradeableBeacon to a new implementation, upgrading every beacon proxy that points to it at once. |
| Helper | Returns | Description |
|---|
| @proxies:admin | address | Admin of a transparent ERC-1967 proxy (the ProxyAdmin contract on OpenZeppelin v5 proxies). |
| @proxies:beacon | address | Beacon address of an ERC-1967 beacon proxy. |
| @proxies:implementation | address | Implementation address of an ERC-1967 proxy, following the beacon when the proxy is a beacon proxy. |
| @proxies:predictClone | address | Predicted address of a deterministic ERC-1167 clone deployed with proxies:clone --salt. Pure computation, no chain read. |