Skip to content

Commit

Permalink
move to sol 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Mar 23, 2021
1 parent ca1ef32 commit eda79ae
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
}
],
"code-complexity": ["error", 7],
"compiler-version": ["error", "^0.7.0"],
"compiler-version": ["error", "^0.8.0"],
"const-name-snakecase": "off",
"func-name-mixedcase": "off",
"constructor-syntax": "error",
"func-visibility": ["error", { "ignoreConstructors": true }],
"func-visibility": ["error", {"ignoreConstructors": true}],
"not-rely-on-time": "off",
"reason-string": ["warn", { "maxLength": 64 }]
"reason-string": ["warn", {"maxLength": 64}]
}
}
2 changes: 1 addition & 1 deletion .vscode/settings.json.default
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"solidity.linter": "solhint",
"solidity.enableLocalNodeCompiler": false,
"solidity.compileUsingRemoteVersion": "v0.7.1+commit.f4a555be",
"solidity.compileUsingRemoteVersion": "v0.8.2+commit.661d1103",
"solidity.packageDefaultDependenciesContractsDirectory": "",
"solidity.enabledAsYouTypeCompilationErrorCheck": true,
"solidity.validationDelay": 1500,
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {node_url, accounts} from './utils/network';

const config: HardhatUserConfig = {
solidity: {
version: '0.7.1',
version: '0.8.2',
},
namedAccounts: {
deployer: 0,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"@ethersproject/wallet": "^5.0.5",
"@openzeppelin/contracts": "^3.2.1-solc-0.7",
"@openzeppelin/contracts": "4.0.0-rc.0",
"@typechain/ethers-v5": "^6.0.0",
"@typechain/hardhat": "^1.0.1",
"@types/chai": "^4.2.11",
Expand All @@ -35,7 +35,7 @@
"ethers": "^5.0.17",
"fs-extra": "^9.0.1",
"hardhat": "^2.0.10",
"hardhat-deploy": "^0.7.0-beta.47",
"hardhat-deploy": "^0.7.0-beta.50",
"hardhat-deploy-ethers": "^0.3.0-beta.7",
"hardhat-gas-reporter": "^1.0.4",
"mocha": "^8.1.1",
Expand Down
2 changes: 1 addition & 1 deletion src/ERC20/ERC20Base.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-1.0
pragma solidity 0.7.1;
pragma solidity 0.8.2;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/ERC20/ERC20Internal.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-1.0
pragma solidity 0.7.1;
pragma solidity 0.8.2;

abstract contract ERC20Internal {
function _approveFor(
Expand Down
2 changes: 1 addition & 1 deletion src/ERC20/SimpleERC20.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-1.0
pragma solidity 0.7.1;
pragma solidity 0.8.2;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./ERC20Base.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/ERC20/WithPermit.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-1.0
pragma solidity 0.7.1;
pragma solidity 0.8.2;

import "./ERC20Internal.sol";
import "../Interfaces/IERC2612Standalone.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/ERC20/WithPermitAndFixedDomain.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-1.0
pragma solidity 0.7.1;
pragma solidity 0.8.2;

import "./ERC20Internal.sol";
import "../Interfaces/IERC2612Standalone.sol";
Expand Down
4 changes: 2 additions & 2 deletions src/GreetingsRegistry/GreetingsRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.7.1;
pragma solidity 0.8.2;

import "hardhat-deploy/solc_0.7/proxy/Proxied.sol";
import "hardhat-deploy/solc_0.8/proxy/Proxied.sol";
import "hardhat/console.sol";

contract GreetingsRegistry is Proxied {
Expand Down
2 changes: 1 addition & 1 deletion src/Interfaces/IERC2612.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-1.0

pragma solidity 0.7.1;
pragma solidity 0.8.2;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IERC2612Standalone.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/Interfaces/IERC2612Standalone.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-1.0

pragma solidity 0.7.1;
pragma solidity 0.8.2;

interface IERC2612Standalone {
function permit(
Expand Down
2 changes: 1 addition & 1 deletion src/Libraries/Constants.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-1.0

pragma solidity 0.7.1;
pragma solidity 0.8.2;

library Constants {
uint256 internal constant UINT256_MAX = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -769,10 +769,10 @@
safe-buffer "^5.1.1"
util.promisify "^1.0.0"

"@openzeppelin/contracts@^3.2.1-solc-0.7":
version "3.2.1-solc-0.7"
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-3.2.1-solc-0.7.tgz#067a60918b935d4733208edb3d7e35cd1d51026b"
integrity sha512-VfKZE9L2HNaZVBR7l5yHbRmap3EiVw9F5iVXRRDdgfnA9vQ1yFanrs0VYmdo2VIXC+EsI9wPPYZY9Ic7/qDBdw==
"@openzeppelin/contracts@4.0.0-rc.0":
version "4.0.0-rc.0"
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.0.0-rc.0.tgz#daa9bb22dadf1d1434a96b7fa820c67357a1ac6f"
integrity sha512-206BCKet16fUrgYE2zP6L+wtMTbPjN3GmyqSJdRXeF0qw5MdUS0TIy/p3VHVX2+btSwslDyNrB70SN70RUDJQg==

"@sentry/[email protected]":
version "5.27.1"
Expand Down Expand Up @@ -3665,10 +3665,10 @@ hardhat-deploy-ethers@^0.3.0-beta.7:
resolved "https://registry.yarnpkg.com/hardhat-deploy-ethers/-/hardhat-deploy-ethers-0.3.0-beta.7.tgz#860d86b84ed3c4fdef64283ccf1e8d5623454d02"
integrity sha512-JKMNte6vudu9LSNqgmBtNxc1gfxp3NUcPKVAf/FANHfl9pa/mBGg6hpQO7tD8CLkAbe6f4K5BjyYIPWX3p7MKw==

hardhat-deploy@^0.7.0-beta.47:
version "0.7.0-beta.47"
resolved "https://registry.yarnpkg.com/hardhat-deploy/-/hardhat-deploy-0.7.0-beta.47.tgz#974afd2c070e95437842b05bb24ade84962b4057"
integrity sha512-7YknSJ2o+ZsYMUtgNg1CW4pj++2cwOpDi4omyCXyktY9Plgudo9vNJwGHxgYU6bLQ6uhCGqICP4WL23beZGsZw==
hardhat-deploy@^0.7.0-beta.50:
version "0.7.0-beta.50"
resolved "https://registry.yarnpkg.com/hardhat-deploy/-/hardhat-deploy-0.7.0-beta.50.tgz#e9e8ae0a6b566303f784aa74311d945cc109b857"
integrity sha512-WSt/wQYy4TLgwXZrvC4PNM+zpngX8nldhE8/pZ6B7JxovU9LwLhgqa9pvPST+sOhr7fTuBGrO7XyTVq2TgK6YQ==
dependencies:
"@ethersproject/abi" "^5.0.2"
"@ethersproject/abstract-signer" "^5.0.2"
Expand Down

0 comments on commit eda79ae

Please sign in to comment.