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

Refactor Governance into AccessManager #43

Merged
merged 5 commits into from
Apr 10, 2024

Conversation

Ramarti
Copy link

@Ramarti Ramarti commented Apr 8, 2024

This PR:

  • Refactors Governance to OZ AccessManager to leverage timelocked protocol admin functions.
  • Removes pausing functionality from Governance to decouple it from protocol level access control. This way, if we pause the protocol and for some reason the protocol admin contract needs to change, the protocol stays paused without extra logic checks in setGovernance()
  • This, plus setGovernance being substituted with AccessManager.setAuthority() causes Governance and Governable to be redundant. We remove them in favor of using the OZ contracts as they come.
  • Configuration of role UPGRADER, with a configurable delay

Next PR:

  • PAUSER role and ProtocolPause contract.

Copy link
Member

@LeoHChen LeoHChen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG in general, but needs two more clarifications.

@LeoHChen LeoHChen merged commit 5d2eb00 into storyprotocol:main Apr 10, 2024
2 checks passed
AndyBoWu pushed a commit that referenced this pull request Apr 11, 2024
* refactor Governance into AccessManager
* remove view method in script
AndyBoWu pushed a commit that referenced this pull request Apr 11, 2024
* refactor Governance into AccessManager
* remove view method in script
AndyBoWu pushed a commit that referenced this pull request Apr 11, 2024
* refactor Governance into AccessManager
* remove view method in script
LeoHChen pushed a commit that referenced this pull request Apr 12, 2024
* Refactor Governance into AccessManager (#43)

* refactor Governance into AccessManager
* remove view method in script

* [feat] add reusable forge code coverage workflow

---------

Co-authored-by: Ramarti <raul.mf86@gmail.com>
Spablob pushed a commit to Spablob/protocol-core-v1 that referenced this pull request Apr 12, 2024
* Refactor Governance into AccessManager (storyprotocol#43)

* refactor Governance into AccessManager
* remove view method in script

* [feat] add reusable forge code coverage workflow

---------

Co-authored-by: Ramarti <raul.mf86@gmail.com>
jdubpark pushed a commit to jdubpark/sp-protocol-core that referenced this pull request Apr 14, 2024
* Refactor Governance into AccessManager (storyprotocol#43)

* refactor Governance into AccessManager
* remove view method in script

* [feat] add reusable forge code coverage workflow

---------

Co-authored-by: Ramarti <raul.mf86@gmail.com>
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.

5 participants