UpgradeGatekeeper
This contract is an implementation of the IUpgradeGatekeeper interface.
The UpgradeGatekeeper contract allows an owner to set and reset upgrade targets for contract proxies.
setUpgradeTarget
This method can only be called by the contract owner.
Set the upgrade target for a given proxy address.
Parameters
_proxy
address
The address of the proxy.
_target
address
The address of the upgrade target.
getUpgradeTarget
Retrieve the upgrade target for a given proxy address.
Parameters
_proxy
address
The address of the proxy.
Return Values
[0]
address
The address of the upgrade target.
resetUpgradeTarget
The address calling this method must have a set upgrade target, else it will throw an error.
Reset the upgrade target for a proxy. Only the proxy itself can reset its upgrade target.
supportsInterface
Checks if the contract implements an interface.
Parameters
_interfaceId
bytes4
The ID of the interface.
Return Values
[0]
bool
True if the contract implements the interface, false otherwise.
Last updated