IUpgradeGatekeeper

Interface for the Upgrade Gatekeeper, which manages upgrade targets for contract proxies.

UpgradeTargetSet

event UpgradeTargetSet(address _proxy, address _target)

Emitted when an upgrade target is set for a specific proxy.

Parameters

Name
Type
Description

_proxy

address

The address of the proxy.

_target

address

The address of the upgrade target.

setUpgradeTarget

function setUpgradeTarget(address _proxy, address _target) external

Sets an upgrade target for a specific proxy.

Parameters

Name
Type
Description

_proxy

address

The address of the proxy.

_target

address

The address of the upgrade target.

getUpgradeTarget

Retrieves the current upgrade target for a specific proxy.

Parameters

Name
Type
Description

_proxy

address

The address of the proxy.

Return Values

Name
Type
Description

[0]

address

The address of the upgrade target.

resetUpgradeTarget

Resets the upgrade target.

Last updated