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

Member self rotation #315

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open

Member self rotation #315

wants to merge 37 commits into from

Conversation

yahgwai
Copy link
Collaborator

@yahgwai yahgwai commented Sep 27, 2024

Still need to add on a separate PR:

  1. Upgrade action
  2. Action to allow atomic removal of a member and cancel of a proposal, to be used by sec council if needed

@yahgwai yahgwai marked this pull request as ready for review October 2, 2024 11:20
Copy link
Collaborator

@gzeoneth gzeoneth left a comment

Choose a reason for hiding this comment

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

LGTM, small suggestions

Comment on lines +167 to +168
NAME_HASH = keccak256(bytes("SecurityCouncilManager"));
VERSION_HASH = keccak256(bytes("1"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

these can simply be constants

Copy link
Collaborator

Choose a reason for hiding this comment

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

not critical, but if we change these to constant we should remember to update __gap too

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have them as storage so that we do the same as OZ's library. Dunno if we'll ever need to change the name or version, but I guess that's why OZ do that. What dyou guys think, should I make constant?

Copy link
Collaborator

Choose a reason for hiding this comment

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

OZ did that because it is an upgradable contract that need to be initialized. In our case we already know what to be initialized into.

src/security-council-mgmt/SecurityCouncilManager.sol Outdated Show resolved Hide resolved
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.

3 participants