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

(groups): upgradeableRenounceableProxy for group policies #78

Merged
merged 16 commits into from
Nov 18, 2024

Conversation

benjaminbollen
Copy link
Member

@benjaminbollen benjaminbollen commented Oct 14, 2024

  • built on open zeppelin ERC1967
  • the deployer of the proxy is set as the admin
  • only admin can call upgradeToAndCall(address newImplementation, bytes data) -- for our use, leave this data empty @vanshika-srivastava
  • because we want policies to be reliable, the proxy can be "renounced", meaning that the implementation can no longer be upgraded (admin is set to address(0x01) )

@cducrest
Copy link

Looks good to me

Copy link
Contributor

@roleengineer roleengineer left a comment

Choose a reason for hiding this comment

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

Upgradeable renounceable proxy implementation in general LGTM. I suggest to reduce external functions inside the proxy to avoid selector clashes.

src/groups/UpgradeableRenounceableProxy.sol Show resolved Hide resolved
src/groups/UpgradeableRenounceableProxy.sol Outdated Show resolved Hide resolved
roleengineer
roleengineer previously approved these changes Nov 8, 2024
Copy link
Contributor

@roleengineer roleengineer left a comment

Choose a reason for hiding this comment

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

Approved in advance. LGTM.

benjaminbollen and others added 2 commits November 8, 2024 16:24
Co-authored-by: Yevgeniy <35062472+roleengineer@users.noreply.github.com>
Co-authored-by: Yevgeniy <35062472+roleengineer@users.noreply.github.com>
@benjaminbollen
Copy link
Member Author

committed suggestions to branch; will continue with unit tests on this branch to test

@benjaminbollen benjaminbollen changed the base branch from develop to beta November 14, 2024 18:12
Copy link
Contributor

@roleengineer roleengineer left a comment

Choose a reason for hiding this comment

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

In general LGTM, can be merged.
As a next step, I would recommend testing the accessibility of the implementation functions by the admin. A simple mock policy implementation with an admin whitelist function should work.

benjaminbollen and others added 2 commits November 18, 2024 17:00
…eableProxy.t.sol

Co-authored-by: Yevgeniy <35062472+roleengineer@users.noreply.github.com>
@benjaminbollen benjaminbollen merged commit 91cb016 into beta Nov 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants