2020-10-13 08:35:06 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
2020-11-20 10:45:20 +00:00
|
|
|
pragma solidity 0.6.12;
|
2020-10-13 08:35:06 +00:00
|
|
|
|
|
|
|
import './BaseImmutableAdminUpgradeabilityProxy.sol';
|
2020-11-23 10:28:57 +00:00
|
|
|
import '../../../dependencies/openzeppelin/upgradeability/InitializableUpgradeabilityProxy.sol';
|
2020-10-13 08:35:06 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @title InitializableAdminUpgradeabilityProxy
|
2020-11-25 17:33:49 +00:00
|
|
|
* @dev Extends BaseAdminUpgradeabilityProxy with an initializer function
|
2020-10-13 08:35:06 +00:00
|
|
|
*/
|
|
|
|
contract InitializableImmutableAdminUpgradeabilityProxy is
|
|
|
|
BaseImmutableAdminUpgradeabilityProxy,
|
|
|
|
InitializableUpgradeabilityProxy
|
|
|
|
{
|
2020-10-15 13:16:05 +00:00
|
|
|
constructor(address admin) public BaseImmutableAdminUpgradeabilityProxy(admin) {}
|
2020-10-13 08:35:06 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @dev Only fall back when the sender is not the admin.
|
|
|
|
*/
|
|
|
|
function _willFallback() internal override(BaseImmutableAdminUpgradeabilityProxy, Proxy) {
|
|
|
|
BaseImmutableAdminUpgradeabilityProxy._willFallback();
|
|
|
|
}
|
|
|
|
}
|