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

Chain exit: add support for upgrades and ownership transfer to the minimal proxy implementation #25

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

mdehoog
Copy link
Collaborator

@mdehoog mdehoog commented Dec 6, 2024

Currently our minimal proxy calls getProxyImplementation on the ProxyAdmin, which is essentially proxying a proxy (which allows us to upgrade multiple chains at once). However, it doesn't allow us to "detach" upgrades for a particular chain.

This PR makes some changes to the minimal proxy, storing the implementation and owner in EIP-1967 state slots, and implementing the same interface as the op-stack's Proxy contract. It still supports proxying a proxy by checking if the address stored in the implementation slot is itself a proxy (by passing it to ProxyAdmin.getProxyImplementation).

@mdehoog mdehoog force-pushed the michael/chain-exit branch from f92054e to 0356efd Compare December 6, 2024 08:20
@mdehoog mdehoog force-pushed the michael/chain-exit branch from 0356efd to 237c839 Compare December 6, 2024 08:22
@mdehoog mdehoog marked this pull request as ready for review December 8, 2024 23:06
@mdehoog mdehoog merged commit 3c20634 into main Dec 9, 2024
3 checks passed
@mdehoog mdehoog deleted the michael/chain-exit branch December 9, 2024 16:01
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