Skip to content

Commit

Permalink
Use solc 0.8.21 + upgrade token-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sunbreak1211 committed Apr 25, 2024
1 parent 5c7c55c commit 05b37bf
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/certora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
- name: Install solc-select
run: pip3 install solc-select

- name: Solc Select 0.8.16
run: solc-select install 0.8.16
- name: Solc Select 0.8.21
run: solc-select install 0.8.21

- name: Install Certora
run: pip3 install certora-cli
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PATH := ~/.solc-select/artifacts/solc-0.8.16:~/.solc-select/artifacts:$(PATH)
PATH := ~/.solc-select/artifacts/solc-0.8.21:~/.solc-select/artifacts:$(PATH)
certora-ngt :; PATH=${PATH} certoraRun certora/Ngt.conf$(if $(rule), --rule $(rule),)
certora-mkr-ngt :; PATH=${PATH} certoraRun certora/MkrNgt.conf$(if $(rule), --rule $(rule),)
2 changes: 1 addition & 1 deletion certora/Auxiliar.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.8.16;
pragma solidity 0.8.21;

interface IERC1271 {
function isValidSignature(
Expand Down
2 changes: 1 addition & 1 deletion certora/MkrMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.8.16;
pragma solidity ^0.8.21;

import "../src/Ngt.sol";

Expand Down
2 changes: 1 addition & 1 deletion certora/MkrNgt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"MkrNgt:mkr=MkrMock"
],
"rule_sanity": "basic",
"solc": "solc-0.8.16",
"solc": "solc-0.8.21",
"solc_optimize_map": {
"MkrNgt": "200",
"Ngt": "200",
Expand Down
2 changes: 1 addition & 1 deletion certora/Ngt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"certora/SignerMock.sol"
],
"rule_sanity": "basic",
"solc": "solc-0.8.16",
"solc": "solc-0.8.21",
"solc_optimize_map": {
"Ngt": "200",
"Auxiliar": "0",
Expand Down
2 changes: 1 addition & 1 deletion certora/SignerMock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity ^0.8.16;
pragma solidity ^0.8.21;

contract SignerMock {
bytes32 sig;
Expand Down
2 changes: 1 addition & 1 deletion deploy/NgtDeploy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

pragma solidity ^0.8.16;
pragma solidity ^0.8.21;

import { ScriptTools } from "dss-test/ScriptTools.sol";

Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
src = "src"
out = "out"
libs = ["lib"]
solc = "0.8.16"
solc = "0.8.21"
optimizer = true
optimizer_runs = 200
verbosity = 3
Expand Down
2 changes: 1 addition & 1 deletion lib/token-tests
2 changes: 1 addition & 1 deletion src/MkrNgt.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

pragma solidity ^0.8.16;
pragma solidity ^0.8.21;

interface GemLike {
function burn(address, uint256) external;
Expand Down
2 changes: 1 addition & 1 deletion src/Ngt.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

pragma solidity ^0.8.16;
pragma solidity ^0.8.21;

interface IERC1271 {
function isValidSignature(
Expand Down
2 changes: 1 addition & 1 deletion test/MkrNgt.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity ^0.8.16;
pragma solidity ^0.8.21;

import "dss-test/DssTest.sol";

Expand Down
4 changes: 2 additions & 2 deletions test/Ngt.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity ^0.8.16;
pragma solidity ^0.8.21;

import "token-tests/TokenFuzzTests.sol";

Expand All @@ -20,7 +20,7 @@ contract NgtTest is TokenFuzzTests {
_symbol_ = "NGT";
}

function invariantMetadata() public {
function invariantMetadata() public view {
assertEq(ngt.name(), "NstDAO Governance Token");
assertEq(ngt.symbol(), "NGT");
assertEq(ngt.version(), "1");
Expand Down
2 changes: 1 addition & 1 deletion test/integration/Deployment.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

pragma solidity ^0.8.16;
pragma solidity ^0.8.21;

import "dss-test/DssTest.sol";

Expand Down

0 comments on commit 05b37bf

Please sign in to comment.