Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
a6db381a
Unverified
Commit
a6db381a
authored
Nov 23, 2022
by
Maurelian
Committed by
GitHub
Nov 23, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4068 from ethereum-optimism/sc/ctb-fix-deploy-bug
parents
0ac339ea
ae37ff0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
3 deletions
+38
-3
MigrationSystemDictator.sol
...-bedrock/contracts/deployment/MigrationSystemDictator.sol
+2
-2
018-MigrationSystemDictatorSteps.ts
...tracts-bedrock/deploy/018-MigrationSystemDictatorSteps.ts
+36
-1
No files found.
packages/contracts-bedrock/contracts/deployment/MigrationSystemDictator.sol
View file @
a6db381a
...
@@ -20,12 +20,12 @@ contract MigrationSystemDictator is BaseSystemDictator {
...
@@ -20,12 +20,12 @@ contract MigrationSystemDictator is BaseSystemDictator {
/**
/**
* @notice Step after which exit 1 can no longer be used.
* @notice Step after which exit 1 can no longer be used.
*/
*/
uint8 constant EXIT_1_NO_RETURN_STEP = 3;
uint8
public
constant EXIT_1_NO_RETURN_STEP = 3;
/**
/**
* @notice Step where proxy ownership is transferred.
* @notice Step where proxy ownership is transferred.
*/
*/
uint8 constant PROXY_TRANSFER_STEP = 4;
uint8
public
constant PROXY_TRANSFER_STEP = 4;
/**
/**
* @notice Whether or not the deployment is finalized.
* @notice Whether or not the deployment is finalized.
...
...
packages/contracts-bedrock/deploy/018-MigrationSystemDictatorSteps.ts
View file @
a6db381a
...
@@ -362,7 +362,42 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -362,7 +362,42 @@ const deployFn: DeployFunction = async (hre) => {
}
}
for
(
let
i
=
1
;
i
<=
6
;
i
++
)
{
for
(
let
i
=
1
;
i
<=
6
;
i
++
)
{
if
((
await
MigrationSystemDictator
.
currentStep
())
===
i
)
{
const
currentStep
=
await
MigrationSystemDictator
.
currentStep
()
if
(
currentStep
===
i
)
{
if
(
currentStep
>
(
await
MigrationSystemDictator
.
PROXY_TRANSFER_STEP
())
&&
!
(
await
MigrationSystemDictator
.
dynamicConfigSet
())
)
{
if
(
isLiveDeployer
)
{
console
.
log
(
`Updating dynamic oracle config...`
)
// Use default starting time if not provided
let
deployL2StartingTimestamp
=
hre
.
deployConfig
.
l2OutputOracleStartingTimestamp
if
(
deployL2StartingTimestamp
<
0
)
{
const
l1StartingBlock
=
await
hre
.
ethers
.
provider
.
getBlock
(
hre
.
deployConfig
.
l1StartingBlockTag
)
if
(
l1StartingBlock
===
null
)
{
throw
new
Error
(
`Cannot fetch block tag
${
hre
.
deployConfig
.
l1StartingBlockTag
}
`
)
}
deployL2StartingTimestamp
=
l1StartingBlock
.
timestamp
}
await
MigrationSystemDictator
.
updateL2OutputOracleDynamicConfig
({
l2OutputOracleStartingL2Output
:
hre
.
deployConfig
.
l2OutputOracleGenesisL2Output
,
l2OutputOracleStartingBlockNumber
:
hre
.
deployConfig
.
l2OutputOracleStartingBlockNumber
,
l2OutputOracleStartingTimestamp
:
deployL2StartingTimestamp
,
})
}
else
{
console
.
log
(
`Please update dynamic oracle config...`
)
}
}
if
(
isLiveDeployer
)
{
if
(
isLiveDeployer
)
{
console
.
log
(
`Executing step
${
i
}
...`
)
console
.
log
(
`Executing step
${
i
}
...`
)
await
MigrationSystemDictator
[
`step
${
i
}
`
]()
await
MigrationSystemDictator
[
`step
${
i
}
`
]()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment