-
Notifications
You must be signed in to change notification settings - Fork 33
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: superchain #84
feat: superchain #84
Conversation
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.
Looks great if these are all the changes we need to make!!! Love it!
My only concern is the factory registry. I think we need one even though it's for Sugar needs.
I think the registry, which we can deploy just once, is a much better way to avoid human errors. We've had enough issues where we'd forget to update the env vars here and end up with a bad release. So just trying to limit such an outcome!
contracts/LpSugar.vy
Outdated
@@ -259,21 +259,23 @@ interface IAlmLpWrapper: | |||
|
|||
# Vars | |||
registry: public(IFactoryRegistry) | |||
voter: public(IVoter) | |||
voter: public(IVoter) # Voter on root , LeafVoter on leaf chain | |||
factories: public(DynArray[address, MAX_FACTORIES]) |
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.
Would like to reconsider this direction.
scripts/deploy.py
Outdated
@@ -6,6 +6,7 @@ | |||
|
|||
def main(): | |||
contract_name = str(os.getenv('CONTRACT')).lower() | |||
chain_name = str(os.getenv('CHAIN')).upper() |
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.
Would like to switch to chain IDs instead. We do the same for web app.
Chane names are inconsistent and error prone.
Consider the format VOTER_${chain_id}=0x...0001
etc..
1784b81
to
3ce3cc2
Compare
3ce3cc2
to
a4e9691
Compare
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.
🔴
No description provided.