-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: Replace deployImplementations with call to DeployImplementations.run() #12260
base: develop
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @maurelian and the rest of your teammates on Graphite |
Merge activity
|
5b4da04
to
2426d15
Compare
Semgrep found 2 require() must include a reason string Ignore this finding from sol-style-require-reason. |
Semgrep found 138
require() must include a reason string Ignore this finding from sol-style-require-reason. |
434e651
to
1430998
Compare
1430998
to
8f88513
Compare
8f88513
to
2d47ce4
Compare
@@ -215,6 +243,15 @@ library ChainAssertions { | |||
require(factory.owner() == _expectedOwner, "CHECK-DG-20"); | |||
} | |||
|
|||
/// @notice Asserts that the PreimageOracle is setup correctly | |||
function checkPreimageOracle(IPreimageOracle _oracle, DeployConfig _cfg) internal view { |
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.
This is a singleton, and is not currently exposed in the _proxiesUnstrict()
getter, so unlike other functions in this file I'm just passing in the contract rather than a struct with all of the contracts.
I may add a PR on top of this to clean up those getters a bit.
@@ -640,61 +649,6 @@ contract Deploy is Deployer { | |||
ChainAssertions.checkOptimismPortal({ _contracts: contracts, _cfg: cfg, _isProxy: false }); | |||
} |
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.
We still need this for the legacy system tests which OPCM does not support.
} else { | ||
deployImplementations(); | ||
} | ||
deployImplementations({ _isInterop: cfg.useInterop() }); |
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.
Passing in this arg is somewhat overkill, as cfg
is already available in the deployImplementations
function, but my goal is to have all of the cfg.use_()
flags visible here rather than buried in function calls.
@@ -311,7 +333,7 @@ contract Deploy is Deployer { | |||
dsi.set(dsi.recommendedProtocolVersion.selector, ProtocolVersion.wrap(cfg.recommendedProtocolVersion())); | |||
|
|||
// Run the deployment script. | |||
deploySuperchain.run(dsi, dso); | |||
ds.run(dsi, dso); |
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.
When I renamed setupSuperchain
to deploySuperchain
for consistency, I had a shadowed declaration warning.
ChainAssertions.checkSystemConfigInterop({ _contracts: contracts, _cfg: cfg, _isProxy: false }); | ||
} else { | ||
ChainAssertions.checkSystemConfig({ _contracts: contracts, _cfg: cfg, _isProxy: false }); | ||
} |
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.
For every deploy_()
function which was deleted below, I add (and if necessary created) a corresponding ChainAssertions
check here.
fab7669
to
7f126ff
Compare
Preimage Oracle DelayedWeth DGF A ChainAssertion was also added for the PreimageOracle
7f126ff
to
37dd9b3
Compare
feat: Rename setupSuperchain to deploySuperchain
feat: Replace deployImplementations with call to DeployImplementations.run()