InverterProxyAdmin_v1.sol

Git Sourcearrow-up-right

Inherits: Ownable2Steparrow-up-right, IInverterProxyAdmin_v1

Author: Inverter Network

Acts as the admin of the {InverterTransparentUpgradeableProxy_v1}arrow-up-rights and is responsible for upgrading the proxies to the newest version.

Functions

constructor

Constructs the InverterProxyAdmin_v1.

constructor(address initialOwner) Ownable(initialOwner);

Parameters

Name
Type
Description

initialOwner

address

The initial owner of the contract.

upgradeToNewestVersion

Upgrades the corresponding {InverterTransparentUpgradeableProxy_v1}arrow-up-right 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

Name
Type
Description

proxy

IInverterTransparentUpgradeableProxy_v1

The proxy to upgrade.

upgradeToNewestVersionBatched

Upgrades multiple {InverterTransparentUpgradeableProxy_v1}arrow-up-rights to the newest version of the implementation.

This contract must be the admin/owner of the proxies.

Parameters

Name
Type
Description

proxies

IInverterTransparentUpgradeableProxy_v1[]

The proxies to upgrade.

Last updated