View Source: contracts/proxy/OwnedUpgradeabilityProxy.solโ
โ Extends: UpgradeabilityProxy โ Derived Contracts: BlacklistTransferManagerProxy, CappedSTOProxy, CountTransferManagerProxy, DummySTOProxy, ERC20DividendCheckpointProxy, EtherDividendCheckpointProxy, GeneralPermissionManagerProxy, GeneralTransferManagerProxy, LockUpTransferManagerProxy, ManualApprovalTransferManagerProxy, ModuleRegistryProxy, PercentageTransferManagerProxy, PLCRVotingCheckpointProxy, PreSaleSTOProxy, SecurityTokenProxy, SecurityTokenRegistryProxy, USDTieredSTOProxy, VestingEscrowWalletProxy, VolumeRestrictionTMProxy, WeightedVoteCheckpointProxyโ
OwnedUpgradeabilityProxy
This contract combines an upgradeability proxy with basic authorization control functionalities
Constants & Variables
address private __upgradeabilityOwner;
Events
event ProxyOwnershipTransferred(address _previousOwner, address _newOwner);
โifOwnerโ
Throws if called by any account other than the owner.
modifier ifOwner() internal
Arguments
Name | Type | Description |
โ()โ
โ_upgradeabilityOwner()โ
โ_implementation()โ
โproxyOwner()โ
โversion()โ
โimplementation()โ
the constructor sets the original owner of the contract to the sender account.
function () public nonpayable
Arguments
Name | Type | Description |
Tells the address of the owner
function _upgradeabilityOwner() internal viewreturns(address)
Returns
the address of the owner
Arguments
Name | Type | Description |
Sets the address of the owner
function _setUpgradeabilityOwner(address _newUpgradeabilityOwner) internal nonpayable
Arguments
Name | Type | Description |
_newUpgradeabilityOwner | address | โ |
โคพ overrides Proxy._implementationโ
Internal function to provide the address of the implementation contract
function _implementation() internal viewreturns(address)
Arguments
Name | Type | Description |
Tells the address of the proxy owner
function proxyOwner() external nonpayable ifOwnerreturns(address)
Returns
the address of the proxy owner
Arguments
Name | Type | Description |
Tells the version name of the current implementation
function version() external nonpayable ifOwnerreturns(string)
Returns
string representing the name of the current version
Arguments
Name | Type | Description |
Tells the address of the current implementation
function implementation() external nonpayable ifOwnerreturns(address)
Returns
address of the current implementation
Arguments
Name | Type | Description |
Allows the current owner to transfer control of the contract to a newOwner.
function transferProxyOwnership(address _newOwner) external nonpayable ifOwner
Arguments
Name | Type | Description |
_newOwner | address | The address to transfer ownership to. |
Allows the upgradeability owner to upgrade the current version of the proxy.
function upgradeTo(string _newVersion, address _newImplementation) external nonpayable ifOwner
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. |
Allows the upgradeability owner to upgrade the current version of the proxy and call the new implementation to initialize whatever is needed through a low level call.
function upgradeToAndCall(string _newVersion, address _newImplementation, bytes _data) external payable ifOwner
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. |
_data | bytes | represents the msg.data to bet sent in the low level call. This parameter may include the function |
signature of the implementation to be called with the needed payload |
function _upgradeToAndCall(string _newVersion, address _newImplementation, bytes _data) internal nonpayable
Arguments
Name | Type | Description |
_newVersion | string | โ |
_newImplementation | address | โ |
_data | bytes | โ |