diff --git a/foundry.toml b/foundry.toml index 7ded8f8..eab6fa4 100644 --- a/foundry.toml +++ b/foundry.toml @@ -2,7 +2,11 @@ evm_version = "paris" optimizer = true optimizer_runs = 10_000_000 - solc_version = "0.8.20" + remappings = [ + "@openzeppelin/contracts/=lib/flexible-voting/lib/openzeppelin-contracts/contracts", + "flexible-voting/=lib/flexible-voting/src", + ] + solc_version = "0.8.22" verbosity = 3 [profile.ci] diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index 140fc68..d9f629c 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -1,16 +1,10 @@ -// SPDX-License-Identifier: UNLICENSED +// SPDX-License-Identifier: MIT // slither-disable-start reentrancy-benign - -pragma solidity 0.8.20; +pragma solidity 0.8.22; import {Script} from "forge-std/Script.sol"; -import {Counter} from "src/Counter.sol"; contract Deploy is Script { - Counter counter; - function run() public { - vm.broadcast(); - counter = new Counter(); - } + function run() public { } } diff --git a/src/Counter.sol b/src/Counter.sol deleted file mode 100644 index 0124e7c..0000000 --- a/src/Counter.sol +++ /dev/null @@ -1,14 +0,0 @@ -// SPDX-License-Identifier: UNLICENSED -pragma solidity 0.8.20; - -contract Counter { - uint256 public number; - - function setNumber(uint256 newNumber) public { - number = newNumber; - } - - function increment() public { - number++; - } -} diff --git a/src/GuineaPigGovernor.sol b/src/GuineaPigGovernor.sol new file mode 100644 index 0000000..43c76ed --- /dev/null +++ b/src/GuineaPigGovernor.sol @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: MIT +pragma solidity 0.8.22; + +contract GuineaPigGovernor { + +} diff --git a/test/Counter.t.sol b/test/Counter.t.sol deleted file mode 100644 index d168bbd..0000000 --- a/test/Counter.t.sol +++ /dev/null @@ -1,26 +0,0 @@ -// SPDX-License-Identifier: UNLICENSED -pragma solidity 0.8.20; - -import {Test, console2} from "forge-std/Test.sol"; -import {Deploy} from "script/Deploy.s.sol"; -import {Counter} from "src/Counter.sol"; - -contract CounterTest is Test, Deploy { - function setUp() public { - Deploy.run(); - } -} - -contract Increment is CounterTest { - function test_NumberIsIncremented() public { - counter.increment(); - assertEq(counter.number(), 1); - } -} - -contract SetNumber is CounterTest { - function testFuzz_NumberIsSet(uint256 x) public { - counter.setNumber(x); - assertEq(counter.number(), x); - } -} diff --git a/test/GuineaPigGovernor.t.sol b/test/GuineaPigGovernor.t.sol new file mode 100644 index 0000000..618cbc8 --- /dev/null +++ b/test/GuineaPigGovernor.t.sol @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: MIT +pragma solidity 0.8.22; + +import {Test, console2} from "forge-std/Test.sol"; + +contract GuineaPigGovernorTest is Test { + function setUp() public { + } +} + +contract Deployment is GuineaPigGovernorTest { + +}