Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.30 Remove OwnedProxy #701

Merged
merged 3 commits into from
Jun 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions contracts/datastore/DataStoreProxy.sol
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
pragma solidity ^0.5.0;

import "../proxy/OwnedProxy.sol";
import "../proxy/Proxy.sol";
import "./DataStoreStorage.sol";

/**
* @title DataStoreProxy Proxy
*/
contract DataStoreProxy is DataStoreStorage, OwnedProxy {
contract DataStoreProxy is DataStoreStorage, Proxy {

/**
* @notice Constructor
* @param _securityToken Address of the security token
* @param _implementation representing the address of the new implementation to be set
*/
constructor(
address _securityToken,
address _securityToken,
address _implementation
)
public
Expand All @@ -26,4 +26,11 @@ contract DataStoreProxy is DataStoreStorage, OwnedProxy {
__implementation = _implementation;
}

/**
* @notice Internal function to provide the address of the implementation contract
*/
function _implementation() internal view returns(address) {
return __implementation;
}

}
3 changes: 3 additions & 0 deletions contracts/datastore/DataStoreStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ pragma solidity ^0.5.0;
import "../interfaces/ISecurityToken.sol";

contract DataStoreStorage {
// Address of the current implementation
address internal __implementation;

ISecurityToken public securityToken;

mapping (bytes32 => uint256) internal uintData;
Expand Down
90 changes: 0 additions & 90 deletions contracts/proxy/OwnedProxy.sol

This file was deleted.