update new contracts for solidity 0.7
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.7.0;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.7.0;
|
||||||
|
|
||||||
abstract contract Impl {
|
abstract contract Impl {
|
||||||
function version() public pure virtual returns (string memory);
|
function version() public pure virtual returns (string memory);
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.7.0;
|
||||||
|
|
||||||
import "../proxy/Initializable.sol";
|
import "../proxy/Initializable.sol";
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.7.0;
|
||||||
|
|
||||||
import "../proxy/Initializable.sol";
|
import "../proxy/Initializable.sol";
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.7.0;
|
||||||
|
|
||||||
import "../proxy/Initializable.sol";
|
import "../proxy/Initializable.sol";
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.7.0;
|
||||||
|
|
||||||
import "../proxy/Initializable.sol";
|
import "../proxy/Initializable.sol";
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity >=0.4.24 <0.7.0;
|
pragma solidity >=0.4.24 <0.8.0;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.7.0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
|
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.7.0;
|
||||||
|
|
||||||
import "../access/Ownable.sol";
|
import "../access/Ownable.sol";
|
||||||
import "./TransparentUpgradeableProxy.sol";
|
import "./TransparentUpgradeableProxy.sol";
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.7.0;
|
||||||
|
|
||||||
import "./UpgradeableProxy.sol";
|
import "./UpgradeableProxy.sol";
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ contract TransparentUpgradeableProxy is UpgradeableProxy {
|
|||||||
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
|
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
|
||||||
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
|
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
|
||||||
*/
|
*/
|
||||||
constructor(address _logic, address _admin, bytes memory _data) public payable UpgradeableProxy(_logic, _data) {
|
constructor(address _logic, address _admin, bytes memory _data) payable UpgradeableProxy(_logic, _data) {
|
||||||
assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
|
assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
|
||||||
_setAdmin(_admin);
|
_setAdmin(_admin);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.7.0;
|
||||||
|
|
||||||
import "./Proxy.sol";
|
import "./Proxy.sol";
|
||||||
import "../utils/Address.sol";
|
import "../utils/Address.sol";
|
||||||
@ -21,7 +21,7 @@ contract UpgradeableProxy is Proxy {
|
|||||||
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
|
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
|
||||||
* function call, and allows initializating the storage of the proxy like a Solidity constructor.
|
* function call, and allows initializating the storage of the proxy like a Solidity constructor.
|
||||||
*/
|
*/
|
||||||
constructor(address _logic, bytes memory _data) public payable {
|
constructor(address _logic, bytes memory _data) payable {
|
||||||
assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
|
assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
|
||||||
_setImplementation(_logic);
|
_setImplementation(_logic);
|
||||||
if(_data.length > 0) {
|
if(_data.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user