You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove GovernorCountingFractional (Bump OZ to v5.1) (#79)
OpenZeppelin included an implementation of `GovernorCountingFractional` in release [v5.1.0](https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v5.1.0). This PR bumps our OZ dependency to that version and accordingly removes the implementation of `GovernorCountingFractional` which originated in this repo. This PR additionally bumps foundry to v1.9.5.
Copy file name to clipboardExpand all lines: README.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ To add Flexible Voting to your own Foundry project, use [forge install](https://
31
31
$ forge install scopelift/flexible-voting
32
32
```
33
33
34
-
If you're using a developer framework other than Foundry, we recommend vendoring the code by adding `src/GovernorCountingFractional.sol` and/or`src/FlexVotingClient.sol` to your repo directly. In the future, we may offer an npm package for use with other frameworks.
34
+
If you're using a developer framework other than Foundry, we recommend vendoring the code by adding files like`src/FlexVotingClient.sol` to your repo directly. In the future, we may offer an npm package for use with other frameworks.
35
35
36
36
### Constructing a Governor
37
37
@@ -41,13 +41,11 @@ If you're constructing a new Governor with Flexible Voting—either to upgrade a
41
41
// SPDX-License-Identifier: MIT
42
42
pragma solidity ^0.8.20;
43
43
44
+
import {Governor} from "@openzeppelin/contracts/governance/Governor.sol";
44
45
import {GovernorVotes} from "@openzeppelin/contracts/governance/extensions/GovernorVotes.sol";
45
46
import {GovernorSettings} from "@openzeppelin/contracts/governance/extensions/GovernorSettings.sol";
} from "flexible-voting/src/GovernorCountingFractional.sol";
47
+
import {GovernorTimelockControl} from "@openzeppelin/contracts/governance/extensions/GovernorTimelockControl.sol";
48
+
import {GovernorCountingFractional} from "@openzeppelin/contracts/governance/extensions/GovernorCountingFractional.sol";
51
49
52
50
contract FlexibleVotingGovernor is
53
51
GovernorCountingFractional,
@@ -98,11 +96,19 @@ To read more about Flexible Voting adoption, read the documentation pages on [co
98
96
99
97
## Repo Contents
100
98
101
-
*[`src/GovernorCountingFractional.sol`](https://github.com/ScopeLift/flexible-voting/blob/master/src/GovernorCountingFractional.sol) - The Governor extension which enables Flexible Voting. A DAO adopting Flexible Voting would deploy a new Governor which used this extension.
102
99
*[`src/FlexVotingClient.sol`](https://github.com/ScopeLift/flexible-voting/blob/master/src/FlexVotingClient.sol) - An abstract contract designed to make it easy to build clients for Flexible Voting governors. Inherit from this contract if you're building an integration or voting scheme for DAO(s) that use Flexible Voting.
103
100
*[`src/FractionalPool.sol`](https://github.com/ScopeLift/flexible-voting/blob/master/src/FractionalPool.sol) - A proof-of-concept contract demonstrating how Flexible Voting can be used. It implements a simple token pool that allows holders to express their votes on proposals even when their tokens are deposited in the pool.
104
101
*[`test/`](https://github.com/ScopeLift/flexible-voting/tree/master/test) - A full suite of unit and fuzz tests exercising the contracts.
105
102
103
+
Note that `GovernorCountingFractional` has been removed from this repo.
104
+
[It has since been
105
+
incorporated](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/7b74442c5e87ea51dde41c7f18a209fa5154f1a4/contracts/governance/extensions/GovernorCountingFractional.sol) into [OpenZeppelin's
0 commit comments