Skip to content

Add Governor module for governance-settable parameters#2904

Merged
frangio merged 26 commits into
OpenZeppelin:masterfrom
Amxx:feature/governance-settings
Oct 19, 2021
Merged

Add Governor module for governance-settable parameters#2904
frangio merged 26 commits into
OpenZeppelin:masterfrom
Amxx:feature/governance-settings

Conversation

@Amxx

@Amxx Amxx commented Oct 6, 2021

Copy link
Copy Markdown
Collaborator

Fixes #2903
Fixes #2866

PR Checklist

  • Tests
  • Documentation
  • Changelog entry

@frangio frangio mentioned this pull request Oct 6, 2021
1 task
@frangio frangio changed the title GovernorSettings Add Governor module for governance-settable parameters Oct 6, 2021
@Amxx

Amxx commented Oct 6, 2021

Copy link
Copy Markdown
Collaborator Author

Note: this PR does change the governor's interfaceId

@frangio

frangio commented Oct 13, 2021

Copy link
Copy Markdown
Contributor

Note: this PR does change the governor's interfaceId

This doesn't sound good... The interface id is already being depended on, I don't think we can change it.

@Amxx

Amxx commented Oct 13, 2021

Copy link
Copy Markdown
Collaborator Author

Whould that be good ?

    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
        // In addition to the current interfaceId, also support previous version of the interfaceId that did not
        // include the proposalThreshold() function as standard
        return interfaceId == (type(IGovernor).interfaceId ^ this.proposalThreshold.selector)
            || interfaceId == type(IGovernor).interfaceId
            || super.supportsInterface(interfaceId);
    }

@apbendi

apbendi commented Oct 13, 2021

Copy link
Copy Markdown
Contributor

hey @Amxx, just curious about the state of this PR and when we might expect it to land. Thanks!

@Amxx

Amxx commented Oct 13, 2021

Copy link
Copy Markdown
Collaborator Author

Soon :)

@Amxx Amxx requested a review from frangio October 13, 2021 21:09
@frangio

frangio commented Oct 14, 2021

Copy link
Copy Markdown
Contributor

@apbendi To be a little more specific this will land in 4.4, which will have a release candidate out in the next several days. The final release will come a few weeks later than that.

Comment thread contracts/governance/extensions/GovernorProposalThreshold.sol
Comment thread contracts/governance/README.adoc
Comment thread contracts/governance/extensions/GovernorSettings.sol Outdated
Comment thread contracts/governance/extensions/GovernorSettings.sol Outdated
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
@frangio frangio merged commit b12af48 into OpenZeppelin:master Oct 19, 2021
@Amxx Amxx deleted the feature/governance-settings branch October 20, 2021 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Governance Updatable Governance Params Governor module for governance-settable parameters

3 participants