Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flexible-voting to version v1.1.3 #6

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
url = https://github.com/foundry-rs/forge-std
[submodule "lib/flexible-voting"]
path = lib/flexible-voting
url = https://github.com/ScopeLift/flexible-voting
url = https://github.com/scopelift/flexible-voting
2 changes: 1 addition & 1 deletion lib/flexible-voting
23 changes: 19 additions & 4 deletions test/GuineaPigGovernor.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,35 @@ pragma solidity 0.8.22;

import {Test, console2} from "forge-std/Test.sol";
import {GuineaPigGovernor, IVotes, TimelockController} from "src/GuineaPigGovernor.sol";
import {GuineaPigToken} from "src/GuineaPigToken.sol";

contract GuineaPigGovernorTest is Test {
GuineaPigGovernor governor;

IVotes token = IVotes(address(0x01b));
TimelockController timelock = TimelockController(payable(address(0x01c)));
IVotes token;
TimelockController timelock;

uint256 INITIAL_VOTING_DELAY = 50;
uint256 INITIAL_VOTING_PERIOD = 7200;
uint256 INITIAL_PROPOSAL_THRESHOLD = 100_000e18;

function setUp() public {
governor =
new GuineaPigGovernor(token, INITIAL_VOTING_DELAY, INITIAL_VOTING_PERIOD, INITIAL_PROPOSAL_THRESHOLD, timelock);
timelock = new TimelockController(
100,
new address[](0),
new address[](0),
address(this)
);

token = new GuineaPigToken(address(timelock), address(0xcafe), 100e18);

governor = new GuineaPigGovernor(
token,
INITIAL_VOTING_DELAY,
INITIAL_VOTING_PERIOD,
INITIAL_PROPOSAL_THRESHOLD,
timelock
);
}
}

Expand Down
Loading