Skip to content

Commit

Permalink
solc 0.6.12 (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
orenyodfat authored Jul 30, 2020
1 parent e9a0fb3 commit 57ed9a5
Show file tree
Hide file tree
Showing 26 changed files with 46 additions and 1,559 deletions.
2 changes: 1 addition & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"no-simple-event-func-name": "off",
"two-lines-top-level-separator": "off",
"mark-callable-contracts": "off",
"compiler-version": ["error","^0.6.10"],
"compiler-version": ["error","^0.6.12"],
"reason-string": ["error",{"maxLength":64}]
}
}
2 changes: 1 addition & 1 deletion buidler.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module.exports = {
}
},
solc: {
version: "0.6.10", // Fetch exact version from solc-bin (default: truffle's version)
version: "0.6.12", // Fetch exact version from solc-bin (default: truffle's version)
optimizer: {
enabled: true,
runs: 200
Expand Down
2 changes: 1 addition & 1 deletion contracts/Reputation.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.10;
pragma solidity 0.6.12;

import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/libs/RealMath.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.10;
pragma solidity ^0.6.12;

/**
* RealMath: fixed-point math library, based on fractional and integer parts.
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/AbsoluteVoteExecuteMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.10;
pragma solidity ^0.6.12;

import "../votingMachines/ProposalExecuteInterface.sol";
import "../votingMachines/VotingMachineCallbacksInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/Debug.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.10;
pragma solidity ^0.6.12;
/*
A contract you can inherit from that has some useful Events to print statements.
*/
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/ERC827TokenMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.10;
pragma solidity ^0.6.12;

import "../token/ERC827/ERC827Token.sol";// mock class using ERC827 Token

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/GenesisProtocolCallbacksMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.10;
pragma solidity ^0.6.12;

import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "../votingMachines/VotingMachineCallbacksInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/RealMathTester.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.10;
pragma solidity ^0.6.12;

import "../libs/RealMath.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/ReputationTestHelper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.10;
pragma solidity ^0.6.12;

import "../Reputation.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC827/ERC827.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.10;
pragma solidity ^0.6.12;

import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC827/ERC827Token.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.10;
pragma solidity ^0.6.12;

import "./ERC827.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/votingMachines/AbsoluteVote.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.10;
pragma solidity 0.6.12;

import "../Reputation.sol";
import "./IntVoteInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/votingMachines/GenesisProtocol.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.10;
pragma solidity 0.6.12;

import "./IntVoteInterface.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/cryptography/ECDSA.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/votingMachines/GenesisProtocolLogic.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.10;
pragma solidity 0.6.12;

import "./IntVoteInterfaceEvents.sol";
import { RealMath } from "../libs/RealMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/votingMachines/IntVoteInterface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.10;
pragma solidity 0.6.12;

interface IntVoteInterface {
//When implementing this interface please do not only override function and modifier,
Expand Down
2 changes: 1 addition & 1 deletion contracts/votingMachines/IntVoteInterfaceEvents.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.10;
pragma solidity 0.6.12;


interface IntVoteInterfaceEvents {
Expand Down
2 changes: 1 addition & 1 deletion contracts/votingMachines/ProposalExecuteInterface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.10;
pragma solidity 0.6.12;

interface ProposalExecuteInterface {
function executeProposal(bytes32 _proposalId, int _decision) external returns(bool);
Expand Down
2 changes: 1 addition & 1 deletion contracts/votingMachines/QuorumVote.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.10;
pragma solidity 0.6.12;

import "./AbsoluteVote.sol";
import "./ProposalExecuteInterface.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.10;
pragma solidity 0.6.12;

import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";

Expand Down
108 changes: 22 additions & 86 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@daostack/infra-experimental",
"version": "0.1.1-rc.21",
"version": "0.1.1-rc.22",
"description": "Base layer DAO's components",
"files": [
"contracts/",
Expand Down Expand Up @@ -42,7 +42,7 @@
"pug": "^2.0.0-rc.4",
"rimraf": "^2.6.2",
"run-with-ganache": "^0.1.1",
"solidity-coverage": "^0.7.0-beta.3",
"solidity-coverage": "^0.7.9",
"uint32": "^0.2.1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion release-experimental.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ git checkout origin/arc-hive
echo "npm install ..."
npm i
echo "buidler compile ..."
npm buidler clean
npx buidler clean
npx buidler compile
# publish npm
echo "Publishing to npm..."
Expand Down
Loading

0 comments on commit 57ed9a5

Please sign in to comment.