UpgradeabilityProxy (UpgradeabilityProxy.sol)

View Source: contracts/proxy/UpgradeabilityProxy.sol

↗ Extends: Proxy ↘ Derived Contracts: OwnedUpgradeabilityProxy

UpgradeabilityProxy

This contract represents a proxy where the implementation address to which it will delegate can be upgraded

Contract Members

Constants & Variables

string internal __version;
address internal __implementation;

Events

event Upgraded(string  _newVersion, address indexed _newImplementation);

Functions

_upgradeTo

Upgrades the implementation address

function _upgradeTo(string _newVersion, address _newImplementation) internal nonpayable

Arguments

Name

Type

Description

_newVersion

string

representing the version name of the new implementation to be set

_newImplementation

address

representing the address of the new implementation to be set

Last updated