Skip to content

proxies

Proxy operations: ERC-1167 clones and ERC-1967 proxy/beacon upgrades.

load proxies
CommandDescription
proxies:cloneDeploy an ERC-1167 minimal proxy (clone) of an implementation contract. Binds the predicted clone address to . Pass --salt for a deterministic CREATE2 deployment.
proxies:upgradeUpgrade 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-beaconUpgrade an UpgradeableBeacon to a new implementation, upgrading every beacon proxy that points to it at once.
HelperReturnsDescription
@proxies:adminaddressAdmin of a transparent ERC-1967 proxy (the ProxyAdmin contract on OpenZeppelin v5 proxies).
@proxies:beaconaddressBeacon address of an ERC-1967 beacon proxy.
@proxies:implementationaddressImplementation address of an ERC-1967 proxy, following the beacon when the proxy is a beacon proxy.
@proxies:predictCloneaddressPredicted address of a deterministic ERC-1167 clone deployed with proxies:clone --salt. Pure computation, no chain read.