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
7f7f35c3
Commit
7f7f35c3
authored
Sep 12, 2021
by
Neel Iyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts: remove l1 contracts from l2 state dump process
parent
e563f956
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
119 deletions
+6
-119
real-tips-own.md
.changeset/real-tips-own.md
+5
-0
config.ts
packages/contracts/src/contract-deployment/config.ts
+1
-119
No files found.
.changeset/real-tips-own.md
0 → 100644
View file @
7f7f35c3
---
'
@eth-optimism/contracts'
:
major
---
contracts: remove l1 contracts from l2 state dump process
packages/contracts/src/contract-deployment/config.ts
View file @
7f7f35c3
...
...
@@ -74,52 +74,6 @@ export const makeContractDeployConfig = async (
factory
:
getContractFactory
(
'
OVM_L2CrossDomainMessenger
'
),
params
:
[
AddressManager
.
address
],
},
OVM_L1CrossDomainMessenger
:
{
factory
:
getContractFactory
(
'
OVM_L1CrossDomainMessenger
'
),
params
:
[],
afterDeploy
:
async
(
contracts
):
Promise
<
void
>
=>
{
if
(
config
.
l1CrossDomainMessengerConfig
.
relayerAddress
)
{
const
relayer
=
config
.
l1CrossDomainMessengerConfig
.
relayerAddress
const
address
=
typeof
relayer
===
'
string
'
?
relayer
:
await
relayer
.
getAddress
()
await
_sendTx
(
AddressManager
.
setAddress
(
'
OVM_L2MessageRelayer
'
,
address
)
)
}
},
},
Proxy__OVM_L1CrossDomainMessenger
:
{
factory
:
getContractFactory
(
'
Lib_ResolvedDelegateProxy
'
),
params
:
[
AddressManager
.
address
,
'
OVM_L1CrossDomainMessenger
'
],
afterDeploy
:
async
(
contracts
):
Promise
<
void
>
=>
{
const
xDomainMessenger
=
getContractFactory
(
'
OVM_L1CrossDomainMessenger
'
)
.
connect
(
config
.
deploymentSigner
)
.
attach
(
contracts
.
Proxy__OVM_L1CrossDomainMessenger
.
address
)
await
_sendTx
(
xDomainMessenger
.
initialize
(
AddressManager
.
address
,
config
.
deployOverrides
)
)
await
_sendTx
(
AddressManager
.
setAddress
(
'
OVM_L2CrossDomainMessenger
'
,
config
.
ovmGlobalContext
.
L2CrossDomainMessengerAddress
,
config
.
deployOverrides
)
)
},
},
OVM_L1StandardBridge
:
{
factory
:
getContractFactory
(
'
OVM_L1StandardBridge
'
),
params
:
[],
},
Proxy__OVM_L1StandardBridge
:
{
factory
:
getContractFactory
(
'
Lib_ResolvedDelegateProxy
'
),
params
:
[
AddressManager
.
address
,
'
OVM_L1StandardBridge
'
],
},
OVM_L2StandardBridge
:
{
factory
:
getContractFactory
(
'
OVM_L2StandardBridge
'
),
params
:
[
...
...
@@ -127,47 +81,6 @@ export const makeContractDeployConfig = async (
constants
.
AddressZero
,
// we'll set this to the L1 Bridge address in genesis.go
],
},
OVM_L1MultiMessageRelayer
:
{
factory
:
getContractFactory
(
'
OVM_L1MultiMessageRelayer
'
),
params
:
[
AddressManager
.
address
],
},
OVM_CanonicalTransactionChain
:
{
factory
:
getContractFactory
(
'
OVM_CanonicalTransactionChain
'
),
params
:
[
AddressManager
.
address
,
config
.
transactionChainConfig
.
forceInclusionPeriodSeconds
,
config
.
transactionChainConfig
.
forceInclusionPeriodBlocks
,
config
.
ovmGasMeteringConfig
.
maxTransactionGasLimit
,
],
afterDeploy
:
async
():
Promise
<
void
>
=>
{
const
sequencer
=
config
.
transactionChainConfig
.
sequencer
const
sequencerAddress
=
typeof
sequencer
===
'
string
'
?
sequencer
:
await
sequencer
.
getAddress
()
await
_sendTx
(
AddressManager
.
setAddress
(
'
OVM_DecompressionPrecompileAddress
'
,
predeploys
.
OVM_SequencerEntrypoint
)
)
await
_sendTx
(
AddressManager
.
setAddress
(
'
OVM_Sequencer
'
,
sequencerAddress
)
)
await
_sendTx
(
AddressManager
.
setAddress
(
'
OVM_Proposer
'
,
sequencerAddress
)
)
await
_sendTx
(
AddressManager
.
setAddress
(
'
Sequencer
'
,
sequencerAddress
))
},
},
OVM_StateCommitmentChain
:
{
factory
:
getContractFactory
(
'
OVM_StateCommitmentChain
'
),
params
:
[
AddressManager
.
address
,
config
.
stateChainConfig
.
fraudProofWindowSeconds
,
config
.
stateChainConfig
.
sequencerPublishWindowSeconds
,
],
},
OVM_DeployerWhitelist
:
{
factory
:
getContractFactory
(
'
OVM_DeployerWhitelist
'
,
undefined
,
true
),
params
:
[],
...
...
@@ -204,47 +117,16 @@ export const makeContractDeployConfig = async (
)
},
},
OVM_StateManagerFactory
:
{
factory
:
getContractFactory
(
'
OVM_StateManagerFactory
'
),
params
:
[],
},
OVM_FraudVerifier
:
{
factory
:
getContractFactory
(
'
OVM_FraudVerifier
'
),
params
:
[
AddressManager
.
address
],
},
OVM_StateTransitionerFactory
:
{
factory
:
getContractFactory
(
'
OVM_StateTransitionerFactory
'
),
params
:
[
AddressManager
.
address
],
},
OVM_ECDSAContractAccount
:
{
factory
:
getContractFactory
(
'
OVM_ECDSAContractAccount
'
,
undefined
,
true
),
},
OVM_SequencerEntrypoint
:
{
factory
:
getContractFactory
(
'
OVM_SequencerEntrypoint
'
,
undefined
,
true
),
},
OVM_BondManager
:
{
factory
:
getContractFactory
(
'
mockOVM_BondManager
'
),
params
:
[
AddressManager
.
address
],
},
OVM_ETH
:
{
factory
:
getContractFactory
(
'
OVM_ETH
'
),
params
:
[],
},
'
OVM_ChainStorageContainer-CTC-batches
'
:
{
factory
:
getContractFactory
(
'
OVM_ChainStorageContainer
'
),
params
:
[
AddressManager
.
address
,
'
OVM_CanonicalTransactionChain
'
],
},
'
OVM_ChainStorageContainer-CTC-queue
'
:
{
factory
:
getContractFactory
(
'
OVM_ChainStorageContainer
'
),
params
:
[
AddressManager
.
address
,
'
OVM_CanonicalTransactionChain
'
],
},
'
OVM_ChainStorageContainer-SCC-batches
'
:
{
factory
:
getContractFactory
(
'
OVM_ChainStorageContainer
'
),
params
:
[
AddressManager
.
address
,
'
OVM_StateCommitmentChain
'
],
},
ERC1820Registry
:
{
factory
:
getContractFactory
(
'
ERC1820Registry
'
),
},
OVM_ProxyEOA
:
{
factory
:
getContractFactory
(
'
OVM_ProxyEOA
'
,
undefined
,
true
),
},
...
...
@@ -272,4 +154,4 @@ export const makeContractDeployConfig = async (
params
:
[
`0x
${
'
11
'
.
repeat
(
20
)}
`
],
},
}
}
}
\ No newline at end of file
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