Hybrid proxy pattern?

Hi,

I want to try out a federated proxy setup with both UUPS and Beacon, where I want the users to have the freedom to decide if they want to upgrade or not (UUPS) and a community-wide upgrade such as a security or community rule change (Beacon), if there a best practice for this or does this not make any sense?

Thanks!

3 Likes

To be more specific, a use case could be emergency security patch via beacon upgrade, and marketplace feature/version upgrade managed by the user.

Hi, welcome to the community! :wave:

Sorry I do not know such case, but I think it is ok, seems like you need about three steps:

  1. Deploy the implementation contract with UUPS upgrade logic
  2. Deploy the Beacon contract
  3. Deploy proxy and use Beacon contract as the implementation

I do not have a try by myself, so always write test case to test your contract!

1 Like

Thank you for the suggestion, I will try it out! :slight_smile:

1 Like