Skip to main content

AdminableProxyUpgrader

Overview​

License: MIT​

contract AdminableProxyUpgrader is Ownable

The proxies module

This is the lightweight helper contract that may be used as a AdminableProxy admin.

Functions info​

constructor​

constructor(address initialOwner_) Ownable(initialOwner_)

upgrade (0xa745e3df)​

function upgrade(
address what_,
address to_,
bytes calldata data_
) external virtual onlyOwner

The function to upgrade the implementation contract

an attempt to upgrade a non-proxy contract will result in revert

Parameters:

NameTypeDescription
what_addressthe proxy contract to upgrade
to_addressthe new implementation contract
data_bytesarbitrary data the proxy will be called with after the upgrade

getImplementation (0x15ac72ca)​

function getImplementation(address what_) public view virtual returns (address)

The function to get the address of the proxy implementation

an attempt to get implementation from a non-proxy contract will result in revert

Parameters:

NameTypeDescription
what_addressthe proxy contract to observe

Return values:

NameTypeDescription
[0]addressthe implementation address