Skip to content

Commit

Permalink
change to istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
johannbarbie committed May 20, 2020
1 parent 459672b commit f7a520a
Show file tree
Hide file tree
Showing 47 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion contracts/Adminable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./zos/Initializable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./Adminable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/DepositHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./Vault.sol";
import "./Bridge.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/ERC1948Mint.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
import "./IERC1948.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/ERC1949.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../node_modules/openzeppelin-solidity/contracts/token/ERC721/ERC721Metadata.sol";
import "./ERC1948.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/ERC1949Breed.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./ERC1948Mint.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/ERC20Mint.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/ERC721Mint.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/ExitHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/* solium-disable security/no-block-members */

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../node_modules/openzeppelin-solidity/contracts/math/Math.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/FastExitHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./ExitHandler.sol";
import "./Bridge.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/HeartbeatToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../node_modules/openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol";
import "../node_modules/openzeppelin-solidity/contracts/access/roles/MinterRole.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/IERC1949.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

/**
* @dev Interface of the ERC1949 contract.
Expand Down
2 changes: 1 addition & 1 deletion contracts/IExitHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/* solium-disable security/no-block-members */

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

contract IExitHandler {

Expand Down
2 changes: 1 addition & 1 deletion contracts/Migrations.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;


contract Migrations {
Expand Down
2 changes: 1 addition & 1 deletion contracts/MinGov.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../node_modules/openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/NativeToken.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol";
import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/PoaOperator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./Adminable.sol";
import "./ExitHandler.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/PosOperator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./PoaOperator.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/PriorityQueue.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/RollupBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./Bridge.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/SwapExchange.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

contract SwapExchange {

Expand Down
2 changes: 1 addition & 1 deletion contracts/SwapRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./Bridge.sol";
import "./Vault.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/TokenGovernance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/TransferrableToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../node_modules/openzeppelin-solidity/contracts/introspection/ERC165.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/TxLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the Mozilla Public License, version 2,
* found in the LICENSE file in the root directory of this source tree.
*/
pragma solidity 0.5.2;
pragma solidity ^0.5.12;
library TxLib {
uint constant internal WORD_SIZE = 32;
uint constant internal ONES = ~uint(0);
Expand Down
2 changes: 1 addition & 1 deletion contracts/Vault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./Bridge.sol";
import "./Adminable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/misc/BountyPayout.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the Mozilla Public License, version 2,
* found in the LICENSE file in the root directory of this source tree.
*/
pragma solidity 0.5.2;
pragma solidity ^0.5.12;
pragma experimental ABIEncoderV2; // solium-disable-line no-experimental


Expand Down
2 changes: 1 addition & 1 deletion contracts/misc/ERC20PaymentSplitter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

interface IERC20 {
function transferFrom(address from, address to, uint256 value) external returns (bool);
Expand Down
2 changes: 1 addition & 1 deletion contracts/misc/IColony.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;
pragma experimental ABIEncoderV2; // solium-disable-line no-experimental


Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/BridgeMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../Adminable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/Colony.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the Mozilla Public License, version 2,
* found in the LICENSE file in the root directory of this source tree.
*/
pragma solidity 0.5.2;
pragma solidity ^0.5.12;
pragma experimental ABIEncoderV2; // solium-disable-line no-experimental


Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC1949BreedMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../ERC1949Breed.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/OperatorMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../Adminable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/PoaOperatorMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../PoaOperator.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/SimpleToken.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "../NativeToken.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/SpaceDustNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the Mozilla Public License, version 2,
* found in the LICENSE file in the root directory of this source tree.
*/
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../../node_modules/openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol";
import "../../node_modules/openzeppelin-solidity/contracts/access/roles/MinterRole.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/TxMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;
pragma experimental ABIEncoderV2; // solium-disable-line no-experimental
import "../TxLib.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/VaultMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../Adminable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/proxies/AdminableProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

//import "zos-lib/contracts/upgradeability/AdminUpgradeabilityProxy.sol"; - should be changed back once zos-lib will update import
import "../zos/AdminUpgradeabilityProxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/proxies/BridgeProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./AdminableProxy.sol";
import "../Bridge.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/proxies/ExitHandlerProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./AdminableProxy.sol";
import "../ExitHandler.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/proxies/OperatorProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "./AdminableProxy.sol";
import "../PosOperator.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/BridgeUpgradeTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file in the root directory of this source tree.
*/

pragma solidity 0.5.2;
pragma solidity ^0.5.12;

import "../Bridge.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/zos/AdminUpgradeabilityProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

//Copied from zos-lib due to import fix needed in UpgradeabilityProxy.sol

Expand Down
2 changes: 1 addition & 1 deletion contracts/zos/Proxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

/**
* @title Proxy
Expand Down
2 changes: 1 addition & 1 deletion contracts/zos/UpgradeabilityProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.2;
pragma solidity ^0.5.12;

//copied from zos-lib due to import fix needed:
//import "openzeppelin-solidity/contracts/AddressUtils.sol" -> import "openzeppelin-solidity/contracts/utils/Address.sol"
Expand Down
4 changes: 2 additions & 2 deletions truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ module.exports = {
// Configure your compilers
compilers: {
solc: {
version: '0.5.2',
version: '0.5.12',
settings: {
optimizer: {
enabled: true,
runs: 2,
},
// TODO: the code is supposed to work on constantinople EVM but fails if this is switched on
evmVersion: 'byzantium',
evmVersion: 'istanbul',
},
},
},
Expand Down

0 comments on commit f7a520a

Please sign in to comment.