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
11135c6c
Commit
11135c6c
authored
Apr 06, 2023
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ctb): Move updateDynamicConfig before phase2 steps
parent
43424746
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
56 deletions
+56
-56
021-SystemDictatorSteps-2.ts
...ges/contracts-bedrock/deploy/021-SystemDictatorSteps-2.ts
+56
-56
No files found.
packages/contracts-bedrock/deploy/021-SystemDictatorSteps-2.ts
View file @
11135c6c
...
@@ -90,62 +90,6 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -90,62 +90,6 @@ const deployFn: DeployFunction = async (hre) => {
disabled
:
process
.
env
.
DISABLE_LIVE_DEPLOYER
,
disabled
:
process
.
env
.
DISABLE_LIVE_DEPLOYER
,
})
})
// Step 3 clears out some state from the AddressManager.
await
doStep
({
isLiveDeployer
,
SystemDictator
,
step
:
3
,
message
:
`
Step 3 will clear out some legacy state from the AddressManager. Once you execute this step,
you WILL NOT BE ABLE TO RESTART THE SYSTEM using exit1(). You should confirm that the L2
system is entirely operational before executing this step.
`
,
checks
:
async
()
=>
{
const
deads
=
[
'
OVM_CanonicalTransactionChain
'
,
'
OVM_L2CrossDomainMessenger
'
,
'
OVM_DecompressionPrecompileAddress
'
,
'
OVM_Sequencer
'
,
'
OVM_Proposer
'
,
'
OVM_ChainStorageContainer-CTC-batches
'
,
'
OVM_ChainStorageContainer-CTC-queue
'
,
'
OVM_CanonicalTransactionChain
'
,
'
OVM_StateCommitmentChain
'
,
'
OVM_BondManager
'
,
'
OVM_ExecutionManager
'
,
'
OVM_FraudVerifier
'
,
'
OVM_StateManagerFactory
'
,
'
OVM_StateTransitionerFactory
'
,
'
OVM_SafetyChecker
'
,
'
OVM_L1MultiMessageRelayer
'
,
'
BondManager
'
,
]
for
(
const
dead
of
deads
)
{
const
addr
=
await
AddressManager
.
getAddress
(
dead
)
assert
(
addr
===
ethers
.
constants
.
AddressZero
)
}
},
})
// Step 4 transfers ownership of the AddressManager and L1StandardBridge to the ProxyAdmin.
await
doStep
({
isLiveDeployer
,
SystemDictator
,
step
:
4
,
message
:
`
Step 4 will transfer ownership of the AddressManager and L1StandardBridge to the ProxyAdmin.
`
,
checks
:
async
()
=>
{
await
assertContractVariable
(
AddressManager
,
'
owner
'
,
ProxyAdmin
.
address
)
assert
(
(
await
L1StandardBridgeProxy
.
callStatic
.
getOwner
({
from
:
ethers
.
constants
.
AddressZero
,
}))
===
ProxyAdmin
.
address
)
},
})
// Make sure the dynamic system configuration has been set.
// Make sure the dynamic system configuration has been set.
if
(
if
(
(
await
isStep
(
SystemDictator
,
5
))
&&
(
await
isStep
(
SystemDictator
,
5
))
&&
...
@@ -225,6 +169,62 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -225,6 +169,62 @@ const deployFn: DeployFunction = async (hre) => {
)
)
}
}
// Step 3 clears out some state from the AddressManager.
await
doStep
({
isLiveDeployer
,
SystemDictator
,
step
:
3
,
message
:
`
Step 3 will clear out some legacy state from the AddressManager. Once you execute this step,
you WILL NOT BE ABLE TO RESTART THE SYSTEM using exit1(). You should confirm that the L2
system is entirely operational before executing this step.
`
,
checks
:
async
()
=>
{
const
deads
=
[
'
OVM_CanonicalTransactionChain
'
,
'
OVM_L2CrossDomainMessenger
'
,
'
OVM_DecompressionPrecompileAddress
'
,
'
OVM_Sequencer
'
,
'
OVM_Proposer
'
,
'
OVM_ChainStorageContainer-CTC-batches
'
,
'
OVM_ChainStorageContainer-CTC-queue
'
,
'
OVM_CanonicalTransactionChain
'
,
'
OVM_StateCommitmentChain
'
,
'
OVM_BondManager
'
,
'
OVM_ExecutionManager
'
,
'
OVM_FraudVerifier
'
,
'
OVM_StateManagerFactory
'
,
'
OVM_StateTransitionerFactory
'
,
'
OVM_SafetyChecker
'
,
'
OVM_L1MultiMessageRelayer
'
,
'
BondManager
'
,
]
for
(
const
dead
of
deads
)
{
const
addr
=
await
AddressManager
.
getAddress
(
dead
)
assert
(
addr
===
ethers
.
constants
.
AddressZero
)
}
},
})
// Step 4 transfers ownership of the AddressManager and L1StandardBridge to the ProxyAdmin.
await
doStep
({
isLiveDeployer
,
SystemDictator
,
step
:
4
,
message
:
`
Step 4 will transfer ownership of the AddressManager and L1StandardBridge to the ProxyAdmin.
`
,
checks
:
async
()
=>
{
await
assertContractVariable
(
AddressManager
,
'
owner
'
,
ProxyAdmin
.
address
)
assert
(
(
await
L1StandardBridgeProxy
.
callStatic
.
getOwner
({
from
:
ethers
.
constants
.
AddressZero
,
}))
===
ProxyAdmin
.
address
)
},
})
// Step 5 initializes all contracts.
// Step 5 initializes all contracts.
await
doStep
({
await
doStep
({
isLiveDeployer
,
isLiveDeployer
,
...
...
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