InverterProxyAdmin_v1.sol
Inherits: Ownable2Step, IInverterProxyAdmin_v1
Author: Inverter Network
Acts as the admin of the {InverterTransparentUpgradeableProxy_v1}s and is responsible for upgrading the proxies to the newest version.
Functions
constructor
Constructs the InverterProxyAdmin_v1.
constructor(address initialOwner) Ownable(initialOwner);
Parameters
initialOwner
address
The initial owner of the contract.
upgradeToNewestVersion
Upgrades the corresponding {InverterTransparentUpgradeableProxy_v1} to the newest version of the implementation.
This contract must be the admin/owner of the proxy.
function upgradeToNewestVersion(IInverterTransparentUpgradeableProxy_v1 proxy)
external
onlyOwner;
Parameters
proxy
IInverterTransparentUpgradeableProxy_v1
The proxy to upgrade.
upgradeToNewestVersionBatched
Upgrades multiple {InverterTransparentUpgradeableProxy_v1}s to the newest version of the implementation.
This contract must be the admin/owner of the proxies.
function upgradeToNewestVersionBatched(
IInverterTransparentUpgradeableProxy_v1[] calldata proxies
) external onlyOwner;
Parameters
proxies
IInverterTransparentUpgradeableProxy_v1[]
The proxies to upgrade.
Last updated