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
e943ef82
Commit
e943ef82
authored
Mar 22, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: update deployment
parent
304884d7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
013-OptimismPortalImpl.ts
packages/contracts-bedrock/deploy/013-OptimismPortalImpl.ts
+8
-0
019-SystemDictatorInit.ts
packages/contracts-bedrock/deploy/019-SystemDictatorInit.ts
+11
-1
No files found.
packages/contracts-bedrock/deploy/013-OptimismPortalImpl.ts
View file @
e943ef82
...
@@ -17,6 +17,8 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -17,6 +17,8 @@ const deployFn: DeployFunction = async (hre) => {
'
L2OutputOracleProxy
'
'
L2OutputOracleProxy
'
)
)
const
Artifact__SystemConfigProxy
=
await
hre
.
deployments
.
get
(
'
SystemConfigProxy
'
)
const
portalGuardian
=
hre
.
deployConfig
.
portalGuardian
const
portalGuardian
=
hre
.
deployConfig
.
portalGuardian
const
portalGuardianCode
=
await
hre
.
ethers
.
provider
.
getCode
(
portalGuardian
)
const
portalGuardianCode
=
await
hre
.
ethers
.
provider
.
getCode
(
portalGuardian
)
if
(
portalGuardianCode
===
'
0x
'
)
{
if
(
portalGuardianCode
===
'
0x
'
)
{
...
@@ -41,6 +43,7 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -41,6 +43,7 @@ const deployFn: DeployFunction = async (hre) => {
L2OutputOracleProxy
.
address
,
L2OutputOracleProxy
.
address
,
portalGuardian
,
portalGuardian
,
true
,
// paused
true
,
// paused
Artifact__SystemConfigProxy
.
address
,
],
],
postDeployAction
:
async
(
contract
)
=>
{
postDeployAction
:
async
(
contract
)
=>
{
await
assertContractVariable
(
await
assertContractVariable
(
...
@@ -53,6 +56,11 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -53,6 +56,11 @@ const deployFn: DeployFunction = async (hre) => {
'
GUARDIAN
'
,
'
GUARDIAN
'
,
hre
.
deployConfig
.
portalGuardian
hre
.
deployConfig
.
portalGuardian
)
)
await
assertContractVariable
(
contract
,
'
SYSTEM_CONFIG
'
,
Artifact__SystemConfigProxy
.
address
)
},
},
})
})
}
}
...
...
packages/contracts-bedrock/deploy/019-SystemDictatorInit.ts
View file @
e943ef82
import
assert
from
'
assert
'
import
assert
from
'
assert
'
import
{
ethers
}
from
'
ethers
'
import
{
ethers
,
BigNumber
}
from
'
ethers
'
import
{
DeployFunction
}
from
'
hardhat-deploy/dist/types
'
import
{
DeployFunction
}
from
'
hardhat-deploy/dist/types
'
import
{
awaitCondition
}
from
'
@eth-optimism/core-utils
'
import
{
awaitCondition
}
from
'
@eth-optimism/core-utils
'
import
'
@eth-optimism/hardhat-deploy-config
'
import
'
@eth-optimism/hardhat-deploy-config
'
...
@@ -100,6 +100,16 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -100,6 +100,16 @@ const deployFn: DeployFunction = async (hre) => {
),
),
gasLimit
:
hre
.
deployConfig
.
l2GenesisBlockGasLimit
,
gasLimit
:
hre
.
deployConfig
.
l2GenesisBlockGasLimit
,
unsafeBlockSigner
:
hre
.
deployConfig
.
p2pSequencerAddress
,
unsafeBlockSigner
:
hre
.
deployConfig
.
p2pSequencerAddress
,
resourceConfig
:
{
maxResourceLimit
:
20
_000_000
,
elasticityMultiplier
:
10
,
baseFeeMaxChangeDenominator
:
8
,
minimumBaseFee
:
1000000000
,
systemTxMaxGas
:
1
_000_000
,
maximumBaseFee
:
BigNumber
.
from
(
'
0xffffffffffffffffffffffffffffffff
'
).
toString
(),
},
},
},
}
}
...
...
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