BaseUpgradeabilityProxy
contract BaseUpgradeabilityProxy
is Proxy
This contract implements a proxy that allows to change the implementation address to which it will delegate. Such a change is called an implementation upgrade.
Reference
Events
Upgraded
event Upgraded(address implementation)Emitted when the implementation is upgraded.
- Parameters:
implementation- Address of the new implementation.
Functions
_implementation
function _implementation() internal view returns (address)Returns the current implementation.
- Returns:
- Address of the current implementation
_setImplementation
function _setImplementation(address newImplementation) internalSets the implementation address of the proxy.
- Parameters:
newImplementation- Address of the new implementation.
_upgradeTo
function _upgradeTo(address newImplementation) internalUpgrades the proxy to a new implementation.
- Parameters:
newImplementation- Address of the new implementation.