-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade contracts to solc-7 and bump version in package.json
- Loading branch information
Showing
12 changed files
with
44 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
pragma solidity ^0.6.0; | ||
pragma solidity ^0.7.0; | ||
|
||
/// @title Math library - Allows calculation of logarithmic and exponential functions | ||
/// @author Alan Lu - <[email protected]> | ||
|
@@ -87,9 +87,9 @@ library GnosisMath { | |
zpow = zpow * z / ONE; | ||
result += 0x9c7 * zpow / ONE; | ||
if (shift >= 0) { | ||
if (result >> (256 - shift) > 0) return (2 ** 256 - 1); | ||
return result << shift; | ||
} else return result >> (-shift); | ||
if (result >> (uint(256) - uint(shift)) > 0) return (2 ** 256 - 1); | ||
return result << uint(shift); | ||
} else return result >> uint(-shift); | ||
} | ||
|
||
/// @dev Returns natural logarithm value of given x | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
pragma solidity ^0.6.0; | ||
pragma solidity ^0.7.0; | ||
|
||
/// @title Proxied - indicates that a contract will be proxied. Also defines storage requirements for Proxy. | ||
/// @author Alan Lu - <[email protected]> | ||
|
@@ -12,7 +12,7 @@ contract Proxied { | |
contract Proxy is Proxied { | ||
/// @dev Constructor function sets address of master copy contract. | ||
/// @param _masterCopy Master copy address. | ||
constructor(address _masterCopy) public { | ||
constructor(address _masterCopy) { | ||
require(_masterCopy != address(0), "The master copy is required"); | ||
masterCopy = _masterCopy; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters