2021-02-26 14:01:34 +03:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
|
|
|
|
import "@openzeppelin/contracts/proxy/TransparentUpgradeableProxy.sol";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @dev TransparentUpgradeableProxy where admin is allowed to call implementation methods.
|
|
|
|
*/
|
|
|
|
contract AdminUpgradeableProxy is TransparentUpgradeableProxy {
|
|
|
|
/**
|
|
|
|
* @dev Initializes an upgradeable proxy backed by the implementation at `_logic`.
|
|
|
|
*/
|
2021-03-20 14:38:28 +03:00
|
|
|
constructor(
|
|
|
|
address _logic,
|
|
|
|
address _admin,
|
|
|
|
bytes memory _data
|
|
|
|
) public payable TransparentUpgradeableProxy(_logic, _admin, _data) {}
|
2021-02-26 14:01:34 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @dev Override to allow admin access the fallback function.
|
|
|
|
*/
|
|
|
|
function _beforeFallback() internal override {}
|
|
|
|
}
|