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

Make DockRegistry UUPS upgradeable #20

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

gabrielstoica
Copy link
Collaborator

@gabrielstoica gabrielstoica commented Aug 8, 2024

As per DockRegistry implementation PR #18, we need to consider the ability to enhance the registry capabilities in the future.

Right now, DockRegistry is responsible for creating multiple docks and orchestrating Containers deployment. In addition, it is also in charge of allowing either the dock or Container owner to transfer their ownership to another address (be it EOA or multisig).

Apart from this, since all Containers must do an external call to the DockRegistry to get the current owner (due to the onlyOwner modifier - see this, we've decided to also store the address of the ModuleKeeper inside it. This allows the DockRegistry to truly act as the single source of truth in the MetaDock ecosystem.

With this in mind, we should prepare for any other management contract that might be implemented in the future and must be orchestrated through the DockRegistry. Therefore, we've decided to make the registry upgradeable through the UUPS proxy pattern. By using this approach, we have the ability to renounce the upgradeability at any point in time due to the UUPS nature (when the protocol is stable and no more extra core features might be added).

task: 28994cdf30964c90b34f17d7869ed085

@gabrielstoica gabrielstoica requested a review from V1d0r August 8, 2024 14:49
V1d0r

This comment was marked as duplicate.

Copy link
Contributor

@V1d0r V1d0r left a comment

Choose a reason for hiding this comment

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

Great shout to make the DockRegistry upgradable. I also like the idea to reserve some storage for variables!

@gabrielstoica gabrielstoica merged commit 4a13637 into main Aug 12, 2024
1 check passed
@gabrielstoica gabrielstoica deleted the feat/upgradeable-dock-registry branch August 12, 2024 11:45
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.

2 participants