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
5a80dc91
Unverified
Commit
5a80dc91
authored
Oct 26, 2023
by
Joshua Gutow
Committed by
GitHub
Oct 26, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7830 from ethereum-optimism/jg/enable_canyon_in_devnet
Enable Canyon in the devnet
parents
bbde7b0d
0fc2b1dc
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
7 deletions
+23
-7
go.mod
go.mod
+1
-1
go.sum
go.sum
+2
-2
config.go
op-chain-ops/genesis/config.go
+5
-0
genesis.go
op-chain-ops/genesis/genesis.go
+7
-2
test-deploy-config-full.json
op-chain-ops/genesis/testdata/test-deploy-config-full.json
+1
-0
l1_miner.go
op-e2e/actions/l1_miner.go
+1
-1
block_processor.go
op-program/client/l2/engineapi/block_processor.go
+1
-1
devnetL1-template.json
...es/contracts-bedrock/deploy-config/devnetL1-template.json
+2
-0
getting-started.json
...ages/contracts-bedrock/deploy-config/getting-started.json
+1
-0
goerli.json
packages/contracts-bedrock/deploy-config/goerli.json
+1
-0
hardhat.json
packages/contracts-bedrock/deploy-config/hardhat.json
+1
-0
No files found.
go.mod
View file @
5a80dc91
...
@@ -209,7 +209,7 @@ require (
...
@@ -209,7 +209,7 @@ require (
rsc.io/tmplfunc v0.0.3 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
)
)
replace github.com/ethereum/go-ethereum v1.13.1 => github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.202310241
50425-5023660bf92d
replace github.com/ethereum/go-ethereum v1.13.1 => github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.202310241
75019-29cd9a353f83
//replace github.com/ethereum-optimism/superchain-registry/superchain => ../superchain-registry/superchain
//replace github.com/ethereum-optimism/superchain-registry/superchain => ../superchain-registry/superchain
//replace github.com/ethereum/go-ethereum v1.13.1 => ../go-ethereum
//replace github.com/ethereum/go-ethereum v1.13.1 => ../go-ethereum
go.sum
View file @
5a80dc91
...
@@ -151,8 +151,8 @@ github.com/elastic/gosigar v0.14.2 h1:Dg80n8cr90OZ7x+bAax/QjoW/XqTI11RmA79ZwIm9/
...
@@ -151,8 +151,8 @@ github.com/elastic/gosigar v0.14.2 h1:Dg80n8cr90OZ7x+bAax/QjoW/XqTI11RmA79ZwIm9/
github.com/elastic/gosigar v0.14.2/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs=
github.com/elastic/gosigar v0.14.2/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3 h1:RWHKLhCrQThMfch+QJ1Z8veEq5ZO3DfIhZ7xgRP9WTc=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3 h1:RWHKLhCrQThMfch+QJ1Z8veEq5ZO3DfIhZ7xgRP9WTc=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3/go.mod h1:QziizLAiF0KqyLdNJYD7O5cpDlaFMNZzlxYNcWsJUxs=
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3/go.mod h1:QziizLAiF0KqyLdNJYD7O5cpDlaFMNZzlxYNcWsJUxs=
github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.202310241
50425-5023660bf92d h1:5dptu9FNKPcZ3o5h2incAbQWH411Mw4HKlsZ4sF4llY
=
github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.202310241
75019-29cd9a353f83 h1:RFKnTUJqbYM8+dueFcGPdOY0ycrOhxp0HQJyy2OYzvc
=
github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.202310241
50425-5023660bf92d
/go.mod h1:hl28ffXoV4maInP7dvhvNgDO79Q5M3MEYrPZZO6u3W8=
github.com/ethereum-optimism/op-geth v1.101303.0-rc.2.0.202310241
75019-29cd9a353f83
/go.mod h1:hl28ffXoV4maInP7dvhvNgDO79Q5M3MEYrPZZO6u3W8=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20231018202221-fdba3d104171 h1:MjCUj16JSLZRDnQQ6OOUy6Chfb4dKo7ahFceNi0RKZ8=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20231018202221-fdba3d104171 h1:MjCUj16JSLZRDnQQ6OOUy6Chfb4dKo7ahFceNi0RKZ8=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20231018202221-fdba3d104171/go.mod h1:/70H/KqrtKcvWvNGVj6S3rAcLC+kUPr3t2aDmYIS+Xk=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20231018202221-fdba3d104171/go.mod h1:/70H/KqrtKcvWvNGVj6S3rAcLC+kUPr3t2aDmYIS+Xk=
github.com/ethereum/c-kzg-4844 v0.3.1 h1:sR65+68+WdnMKxseNWxSJuAv2tsUrihTpVBTfM/U5Zg=
github.com/ethereum/c-kzg-4844 v0.3.1 h1:sR65+68+WdnMKxseNWxSJuAv2tsUrihTpVBTfM/U5Zg=
...
...
op-chain-ops/genesis/config.go
View file @
5a80dc91
...
@@ -185,6 +185,8 @@ type DeployConfig struct {
...
@@ -185,6 +185,8 @@ type DeployConfig struct {
EIP1559Elasticity
uint64
`json:"eip1559Elasticity"`
EIP1559Elasticity
uint64
`json:"eip1559Elasticity"`
// EIP1559Denominator is the denominator of EIP1559 base fee market.
// EIP1559Denominator is the denominator of EIP1559 base fee market.
EIP1559Denominator
uint64
`json:"eip1559Denominator"`
EIP1559Denominator
uint64
`json:"eip1559Denominator"`
// EIP1559DenominatorCanyon is the denominator of EIP1559 base fee market when Canyon is active.
EIP1559DenominatorCanyon
uint64
`json:"eip1559DenominatorCanyon"`
// SystemConfigStartBlock represents the block at which the op-node should start syncing
// SystemConfigStartBlock represents the block at which the op-node should start syncing
// from. It is an override to set this value on legacy networks where it is not set by
// from. It is an override to set this value on legacy networks where it is not set by
// default. It can be removed once all networks have this value set in their storage.
// default. It can be removed once all networks have this value set in their storage.
...
@@ -318,6 +320,9 @@ func (d *DeployConfig) Check() error {
...
@@ -318,6 +320,9 @@ func (d *DeployConfig) Check() error {
if
d
.
EIP1559Denominator
==
0
{
if
d
.
EIP1559Denominator
==
0
{
return
fmt
.
Errorf
(
"%w: EIP1559Denominator cannot be 0"
,
ErrInvalidDeployConfig
)
return
fmt
.
Errorf
(
"%w: EIP1559Denominator cannot be 0"
,
ErrInvalidDeployConfig
)
}
}
if
d
.
L2GenesisCanyonTimeOffset
!=
nil
&&
d
.
EIP1559DenominatorCanyon
==
0
{
return
fmt
.
Errorf
(
"%w: EIP1559DenominatorCanyon cannot be 0 if Canyon is activated"
,
ErrInvalidDeployConfig
)
}
if
d
.
EIP1559Elasticity
==
0
{
if
d
.
EIP1559Elasticity
==
0
{
return
fmt
.
Errorf
(
"%w: EIP1559Elasticity cannot be 0"
,
ErrInvalidDeployConfig
)
return
fmt
.
Errorf
(
"%w: EIP1559Elasticity cannot be 0"
,
ErrInvalidDeployConfig
)
}
}
...
...
op-chain-ops/genesis/genesis.go
View file @
5a80dc91
...
@@ -31,6 +31,10 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
...
@@ -31,6 +31,10 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
if
eip1559Denom
==
0
{
if
eip1559Denom
==
0
{
eip1559Denom
=
50
eip1559Denom
=
50
}
}
eip1559DenomCanyon
:=
config
.
EIP1559DenominatorCanyon
if
eip1559DenomCanyon
==
0
{
eip1559DenomCanyon
=
250
}
eip1559Elasticity
:=
config
.
EIP1559Elasticity
eip1559Elasticity
:=
config
.
EIP1559Elasticity
if
eip1559Elasticity
==
0
{
if
eip1559Elasticity
==
0
{
eip1559Elasticity
=
10
eip1559Elasticity
=
10
...
@@ -63,6 +67,7 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
...
@@ -63,6 +67,7 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
Optimism
:
&
params
.
OptimismConfig
{
Optimism
:
&
params
.
OptimismConfig
{
EIP1559Denominator
:
eip1559Denom
,
EIP1559Denominator
:
eip1559Denom
,
EIP1559Elasticity
:
eip1559Elasticity
,
EIP1559Elasticity
:
eip1559Elasticity
,
EIP1559DenominatorPostCanyon
:
eip1559DenomCanyon
,
},
},
}
}
...
...
op-chain-ops/genesis/testdata/test-deploy-config-full.json
View file @
5a80dc91
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
"governanceTokenOwner"
:
"0x0000000000000000000000000000000000000333"
,
"governanceTokenOwner"
:
"0x0000000000000000000000000000000000000333"
,
"deploymentWaitConfirmations"
:
1
,
"deploymentWaitConfirmations"
:
1
,
"eip1559Denominator"
:
8
,
"eip1559Denominator"
:
8
,
"eip1559DenominatorCanyon"
:
12
,
"eip1559Elasticity"
:
2
,
"eip1559Elasticity"
:
2
,
"fundDevAccounts"
:
true
,
"fundDevAccounts"
:
true
,
"faultGameAbsolutePrestate"
:
"0x0000000000000000000000000000000000000000000000000000000000000000"
,
"faultGameAbsolutePrestate"
:
"0x0000000000000000000000000000000000000000000000000000000000000000"
,
...
...
op-e2e/actions/l1_miner.go
View file @
5a80dc91
...
@@ -70,7 +70,7 @@ func (s *L1Miner) ActL1StartBlock(timeDelta uint64) Action {
...
@@ -70,7 +70,7 @@ func (s *L1Miner) ActL1StartBlock(timeDelta uint64) Action {
MixDigest
:
common
.
Hash
{},
// TODO: maybe randomize this (prev-randao value)
MixDigest
:
common
.
Hash
{},
// TODO: maybe randomize this (prev-randao value)
}
}
if
s
.
l1Cfg
.
Config
.
IsLondon
(
header
.
Number
)
{
if
s
.
l1Cfg
.
Config
.
IsLondon
(
header
.
Number
)
{
header
.
BaseFee
=
eip1559
.
CalcBaseFee
(
s
.
l1Cfg
.
Config
,
parent
)
header
.
BaseFee
=
eip1559
.
CalcBaseFee
(
s
.
l1Cfg
.
Config
,
parent
,
header
.
Time
)
// At the transition, double the gas limit so the gas target is equal to the old gas limit.
// At the transition, double the gas limit so the gas target is equal to the old gas limit.
if
!
s
.
l1Cfg
.
Config
.
IsLondon
(
parent
.
Number
)
{
if
!
s
.
l1Cfg
.
Config
.
IsLondon
(
parent
.
Number
)
{
header
.
GasLimit
=
parent
.
GasLimit
*
s
.
l1Cfg
.
Config
.
ElasticityMultiplier
()
header
.
GasLimit
=
parent
.
GasLimit
*
s
.
l1Cfg
.
Config
.
ElasticityMultiplier
()
...
...
op-program/client/l2/engineapi/block_processor.go
View file @
5a80dc91
...
@@ -68,7 +68,7 @@ func NewBlockProcessorFromHeader(provider BlockDataProvider, h *types.Header) (*
...
@@ -68,7 +68,7 @@ func NewBlockProcessorFromHeader(provider BlockDataProvider, h *types.Header) (*
return
nil
,
fmt
.
Errorf
(
"get parent state: %w"
,
err
)
return
nil
,
fmt
.
Errorf
(
"get parent state: %w"
,
err
)
}
}
header
.
Number
=
new
(
big
.
Int
)
.
Add
(
parentHeader
.
Number
,
common
.
Big1
)
header
.
Number
=
new
(
big
.
Int
)
.
Add
(
parentHeader
.
Number
,
common
.
Big1
)
header
.
BaseFee
=
eip1559
.
CalcBaseFee
(
provider
.
Config
(),
parentHeader
)
header
.
BaseFee
=
eip1559
.
CalcBaseFee
(
provider
.
Config
(),
parentHeader
,
header
.
Time
)
header
.
GasUsed
=
0
header
.
GasUsed
=
0
gasPool
:=
new
(
core
.
GasPool
)
.
AddGas
(
header
.
GasLimit
)
gasPool
:=
new
(
core
.
GasPool
)
.
AddGas
(
header
.
GasLimit
)
return
&
BlockProcessor
{
return
&
BlockProcessor
{
...
...
packages/contracts-bedrock/deploy-config/devnetL1-template.json
View file @
5a80dc91
...
@@ -40,10 +40,12 @@
...
@@ -40,10 +40,12 @@
"governanceTokenName"
:
"Optimism"
,
"governanceTokenName"
:
"Optimism"
,
"governanceTokenOwner"
:
"0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
,
"governanceTokenOwner"
:
"0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
,
"eip1559Denominator"
:
50
,
"eip1559Denominator"
:
50
,
"eip1559DenominatorCanyon"
:
250
,
"eip1559Elasticity"
:
6
,
"eip1559Elasticity"
:
6
,
"l1GenesisBlockTimestamp"
:
"0x64c811bf"
,
"l1GenesisBlockTimestamp"
:
"0x64c811bf"
,
"l2GenesisRegolithTimeOffset"
:
"0x0"
,
"l2GenesisRegolithTimeOffset"
:
"0x0"
,
"l2GenesisSpanBatchTimeOffset"
:
"0x0"
,
"l2GenesisSpanBatchTimeOffset"
:
"0x0"
,
"l2GenesisCanyonTimeOffset"
:
"0x40"
,
"faultGameAbsolutePrestate"
:
"0x03c7ae758795765c6664a5d39bf63841c71ff191e9189522bad8ebff5d4eca98"
,
"faultGameAbsolutePrestate"
:
"0x03c7ae758795765c6664a5d39bf63841c71ff191e9189522bad8ebff5d4eca98"
,
"faultGameMaxDepth"
:
30
,
"faultGameMaxDepth"
:
30
,
"faultGameMaxDuration"
:
1200
,
"faultGameMaxDuration"
:
1200
,
...
...
packages/contracts-bedrock/deploy-config/getting-started.json
View file @
5a80dc91
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
"l2GenesisRegolithTimeOffset"
:
"0x0"
,
"l2GenesisRegolithTimeOffset"
:
"0x0"
,
"eip1559Denominator"
:
50
,
"eip1559Denominator"
:
50
,
"eip1559DenominatorCanyon"
:
250
,
"eip1559Elasticity"
:
10
,
"eip1559Elasticity"
:
10
,
"systemConfigStartBlock"
:
0
,
"systemConfigStartBlock"
:
0
,
...
...
packages/contracts-bedrock/deploy-config/goerli.json
View file @
5a80dc91
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
"l2GenesisBlockGasLimit"
:
"0x2faf080"
,
"l2GenesisBlockGasLimit"
:
"0x2faf080"
,
"l2GenesisBlockBaseFeePerGas"
:
"0x3b9aca00"
,
"l2GenesisBlockBaseFeePerGas"
:
"0x3b9aca00"
,
"eip1559Denominator"
:
50
,
"eip1559Denominator"
:
50
,
"eip1559DenominatorCanyon"
:
250
,
"eip1559Elasticity"
:
10
,
"eip1559Elasticity"
:
10
,
"systemConfigStartBlock"
:
8300214
,
"systemConfigStartBlock"
:
8300214
,
"requiredProtocolVersion"
:
"0x0000000000000000000000000000000000000000000000000000000000000000"
,
"requiredProtocolVersion"
:
"0x0000000000000000000000000000000000000000000000000000000000000000"
,
...
...
packages/contracts-bedrock/deploy-config/hardhat.json
View file @
5a80dc91
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
"governanceTokenOwner"
:
"0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc"
,
"governanceTokenOwner"
:
"0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc"
,
"finalizationPeriodSeconds"
:
2
,
"finalizationPeriodSeconds"
:
2
,
"eip1559Denominator"
:
50
,
"eip1559Denominator"
:
50
,
"eip1559DenominatorCanyon"
:
250
,
"eip1559Elasticity"
:
10
,
"eip1559Elasticity"
:
10
,
"l2GenesisRegolithTimeOffset"
:
"0x0"
,
"l2GenesisRegolithTimeOffset"
:
"0x0"
,
"systemConfigStartBlock"
:
0
,
"systemConfigStartBlock"
:
0
,
...
...
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