2023-05-21 20:02:21 +03:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
|
|
|
|
import "@openzeppelin/contracts/proxy/TransparentUpgradeableProxy.sol";
|
|
|
|
import "torn-token/contracts/ENS.sol";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @dev TransparentUpgradeableProxy that sets its admin to the implementation itself.
|
|
|
|
* It is also allowed to call implementation methods.
|
|
|
|
*/
|
|
|
|
contract LoopbackProxy is TransparentUpgradeableProxy, EnsResolve {
|
|
|
|
/**
|
|
|
|
* @dev Initializes an upgradeable proxy backed by the implementation at `_logic`.
|
|
|
|
*/
|
2023-05-25 19:31:55 +03:00
|
|
|
constructor(address _logic, bytes memory _data)
|
|
|
|
public
|
|
|
|
payable
|
|
|
|
TransparentUpgradeableProxy(_logic, address(this), _data)
|
|
|
|
{}
|
2023-05-21 20:02:21 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @dev Override to allow admin (itself) access the fallback function.
|
|
|
|
*/
|
|
|
|
function _beforeFallback() internal override {}
|
|
|
|
}
|