-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: proxies #19
base: master
Are you sure you want to change the base?
feat: proxies #19
Conversation
Are you looking at storage for OZ 5.x? I believe 4.9 would have the storage slot issues that you're mentioning. |
@tom2o17 ready for review. Notable change that the admin is no longer two-step. This should be fine for the time being unless you have a strong opinion in favor of 2-step. |
What was wrong with the original proxy from OP? |
Nothing was necessarily wrong: I simply removed the constructor arguments so now we can use pre-deterministic addresses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM: Do we want to enforce strict package imports ?
Probably a good idea, although there are currently no strict package versions. I can make a separate PR specifically for version control. |
SG, do we want to enforce a But this is solvable, we for example would not be able to have pretty NIT, but also not an issue if we enforce that that the |
Are you talking specifically about this modifier?
Are you saying there could be a conflict if the owner is, say, a msig who can call |
if the implementation were to implement a function called This is because of:
There for, if the admin were to call
It cannot call
No (might be a little confused as to the question), changing the state of the implementation does not impact the state of the proxy. Changing the implementation contract changes the state of the proxy, but this is fine because it is changing the state of the eip1967 assigned slot. |
I've added OP's Proxy.sol with a slight modification so that the proxy is Ownable. We will be using this Proxy for Fraxtal's Vested FXS, L1VeFXS, etc.
@tom2o17 @denett