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
6f69904a
Unverified
Commit
6f69904a
authored
Sep 09, 2022
by
Mark Tyneway
Committed by
GitHub
Sep 09, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into m/upgrade-foundry
parents
c6fab69f
f311f984
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
253 additions
and
98 deletions
+253
-98
go.work
go.work
+1
-1
go.mod
op-batcher/go.mod
+5
-5
go.sum
op-batcher/go.sum
+10
-10
go.mod
op-bindings/go.mod
+2
-2
go.sum
op-bindings/go.sum
+2
-2
config.go
op-chain-ops/genesis/config.go
+5
-0
genesis.go
op-chain-ops/genesis/genesis.go
+14
-3
layer_two.go
op-chain-ops/genesis/layer_two.go
+3
-1
layer_two_test.go
op-chain-ops/genesis/layer_two_test.go
+21
-0
test-deploy-config-devnet-l1.json
...in-ops/genesis/testdata/test-deploy-config-devnet-l1.json
+2
-1
test-deploy-config-full.json
op-chain-ops/genesis/testdata/test-deploy-config-full.json
+4
-1
go.mod
op-chain-ops/go.mod
+1
-1
go.sum
op-chain-ops/go.sum
+2
-2
go.mod
op-e2e/go.mod
+6
-6
go.sum
op-e2e/go.sum
+12
-12
setup.go
op-e2e/setup.go
+4
-2
cmd.go
op-node/cmd/genesis/cmd.go
+133
-24
go.mod
op-node/go.mod
+3
-3
go.sum
op-node/go.sum
+6
-6
go.mod
op-proposer/go.mod
+4
-4
go.sum
op-proposer/go.sum
+8
-8
go.mod
op-service/go.mod
+1
-1
go.sum
op-service/go.sum
+2
-2
devnetL1.json
packages/contracts-bedrock/deploy-config/devnetL1.json
+2
-1
No files found.
go.work
View file @
6f69904a
...
@@ -19,7 +19,7 @@ use (
...
@@ -19,7 +19,7 @@ use (
./teleportr
./teleportr
)
)
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
// For local debugging:
// For local debugging:
//replace github.com/ethereum/go-ethereum v1.10.23 => ../go-ethereum
//replace github.com/ethereum/go-ethereum v1.10.23 => ../go-ethereum
op-batcher/go.mod
View file @
6f69904a
...
@@ -3,9 +3,9 @@ module github.com/ethereum-optimism/optimism/op-batcher
...
@@ -3,9 +3,9 @@ module github.com/ethereum-optimism/optimism/op-batcher
go 1.18
go 1.18
require (
require (
github.com/ethereum-optimism/optimism/op-node v0.8.
3
github.com/ethereum-optimism/optimism/op-node v0.8.
6
github.com/ethereum-optimism/optimism/op-proposer v0.8.
3
github.com/ethereum-optimism/optimism/op-proposer v0.8.
6
github.com/ethereum-optimism/optimism/op-service v0.8.
3
github.com/ethereum-optimism/optimism/op-service v0.8.
6
github.com/ethereum/go-ethereum v1.10.23
github.com/ethereum/go-ethereum v1.10.23
github.com/miguelmota/go-ethereum-hdwallet v0.1.1
github.com/miguelmota/go-ethereum-hdwallet v0.1.1
github.com/urfave/cli v1.22.9
github.com/urfave/cli v1.22.9
...
@@ -22,7 +22,7 @@ require (
...
@@ -22,7 +22,7 @@ require (
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/deckarep/golang-set v1.8.0 // indirect
github.com/deckarep/golang-set v1.8.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3
// indirect
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6
// indirect
github.com/fjl/memsize v0.0.1 // indirect
github.com/fjl/memsize v0.0.1 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/go-stack/stack v1.8.1 // indirect
...
@@ -70,4 +70,4 @@ require (
...
@@ -70,4 +70,4 @@ require (
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
)
)
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
op-batcher/go.sum
View file @
6f69904a
...
@@ -147,16 +147,16 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
...
@@ -147,16 +147,16 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638 h1:LcvgHjeooGBobfEIEYikMzx1MoIAjRqa/ZDdkrhV3Hw
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1 h1:W/ZU6BZH7ilTrpdoJOF9N4OReqXbpeRtUB6klIpEdMA
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3 h1:6v3n0fZhxcqVF9mu8l2Axqi4/XcMqpthtl3mEkqhi04
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6 h1:jJYhmygt7hqGzYa+8sme9SdnKt1c3Y6EbWgIrRONoxw
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3/go.mod h1:XZRKu/LTd03m50duwMFEqCWe6qkjgLBZUoZG3CR2Kg0
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6/go.mod h1:gUX5317IAvRMjB4GftayM87JVln3DTqukfirwJpEWnE
=
github.com/ethereum-optimism/optimism/op-node v0.8.
3 h1:Snuick9EtalM6Cbs8rVUcoCDPFpu6Xxr7kre+RbLbY0
=
github.com/ethereum-optimism/optimism/op-node v0.8.
6 h1:xNwN+Q/Rt17vSKawhBeG9qTcqcyh8JU8PGjK1iuGkF4
=
github.com/ethereum-optimism/optimism/op-node v0.8.
3/go.mod h1:CPa18cq3E41eqwpsohX/QkupY11D3CYsNqbKZD6H860
=
github.com/ethereum-optimism/optimism/op-node v0.8.
6/go.mod h1:gkyzgVHV3+tIhLZ8GhT+bL9GrrmouQCW4mKYukS0SHg
=
github.com/ethereum-optimism/optimism/op-proposer v0.8.
3 h1:e0Dv4/lGXWW2hMLYmL7nQNIv7Um0SlnMicz5VAJwMKc
=
github.com/ethereum-optimism/optimism/op-proposer v0.8.
6 h1:iy8XAtkvrURBy3TT2Lf540cbWztxit7K4+BghZ4IsMI
=
github.com/ethereum-optimism/optimism/op-proposer v0.8.
3/go.mod h1:JIC833mF7Fl8pNe5yNbbPsUKx6o3793OC7dxWhY6Mbs
=
github.com/ethereum-optimism/optimism/op-proposer v0.8.
6/go.mod h1:tuCLnXcO4MrtVyis1Yfo7wtL8EQta1u6zFdzHHj+RAc
=
github.com/ethereum-optimism/optimism/op-service v0.8.
3 h1:eNiNir1/a5nVzs08tuq6+A3d0doB15qPO17YozKZhzQ
=
github.com/ethereum-optimism/optimism/op-service v0.8.
6 h1:ruZp/BxL8TGn1y9EJmygypPTeVAFlAA0A/h8LsCoV+M
=
github.com/ethereum-optimism/optimism/op-service v0.8.
3/go.mod h1:TGUsHYIx5jwCZgvj1taNtTEhJsJNIwRvZ0noDXTdb4c
=
github.com/ethereum-optimism/optimism/op-service v0.8.
6/go.mod h1:gm8YNzERrL/CHBPWx3+01mR/NOVpLLw4GEUSnnTdyFU
=
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
...
...
op-bindings/go.mod
View file @
6f69904a
...
@@ -40,6 +40,6 @@ require (
...
@@ -40,6 +40,6 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
)
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
// github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
// github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
op-bindings/go.sum
View file @
6f69904a
...
@@ -28,8 +28,8 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 h1:YLtO71vCjJRCBcrPMtQ9nqBsqpA1
...
@@ -28,8 +28,8 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 h1:YLtO71vCjJRCBcrPMtQ9nqBsqpA1
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs=
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs=
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
github.com/edsrzf/mmap-go v1.0.0 h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw=
github.com/edsrzf/mmap-go v1.0.0 h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638 h1:LcvgHjeooGBobfEIEYikMzx1MoIAjRqa/ZDdkrhV3Hw
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1 h1:W/ZU6BZH7ilTrpdoJOF9N4OReqXbpeRtUB6klIpEdMA
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI=
github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI=
...
...
op-chain-ops/genesis/config.go
View file @
6f69904a
...
@@ -69,6 +69,11 @@ type DeployConfig struct {
...
@@ -69,6 +69,11 @@ type DeployConfig struct {
GasPriceOracleDecimals
uint
`json:"gasPriceOracleDecimals"`
GasPriceOracleDecimals
uint
`json:"gasPriceOracleDecimals"`
DeploymentWaitConfirmations
int
`json:"deploymentWaitConfirmations"`
DeploymentWaitConfirmations
int
`json:"deploymentWaitConfirmations"`
EIP1559Elasticity
uint64
`json:"eip1559Elasticity"`
EIP1559Denominator
uint64
`json:"eip1559Denominator"`
FundDevAccounts
bool
`json:"fundDevAccounts"`
}
}
// NewDeployConfig reads a config file given a path on the filesystem.
// NewDeployConfig reads a config file given a path on the filesystem.
...
...
op-chain-ops/genesis/genesis.go
View file @
6f69904a
...
@@ -20,6 +20,15 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
...
@@ -20,6 +20,15 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
return
nil
,
errors
.
New
(
"must define L2 ChainID"
)
return
nil
,
errors
.
New
(
"must define L2 ChainID"
)
}
}
eip1559Denom
:=
config
.
EIP1559Denominator
if
eip1559Denom
==
0
{
eip1559Denom
=
50
}
eip1559Elasticity
:=
config
.
EIP1559Elasticity
if
eip1559Elasticity
==
0
{
eip1559Elasticity
=
10
}
optimismChainConfig
:=
params
.
ChainConfig
{
optimismChainConfig
:=
params
.
ChainConfig
{
ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
config
.
L2ChainID
),
ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
config
.
L2ChainID
),
HomesteadBlock
:
big
.
NewInt
(
0
),
HomesteadBlock
:
big
.
NewInt
(
0
),
...
@@ -44,8 +53,10 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
...
@@ -44,8 +53,10 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
TerminalTotalDifficulty
:
big
.
NewInt
(
0
),
TerminalTotalDifficulty
:
big
.
NewInt
(
0
),
TerminalTotalDifficultyPassed
:
true
,
TerminalTotalDifficultyPassed
:
true
,
Optimism
:
&
params
.
OptimismConfig
{
Optimism
:
&
params
.
OptimismConfig
{
BaseFeeRecipient
:
config
.
OptimismBaseFeeRecipient
,
BaseFeeRecipient
:
config
.
OptimismBaseFeeRecipient
,
L1FeeRecipient
:
config
.
OptimismL2FeeRecipient
,
L1FeeRecipient
:
config
.
OptimismL2FeeRecipient
,
EIP1559Denominator
:
eip1559Denom
,
EIP1559Elasticity
:
eip1559Elasticity
,
},
},
}
}
...
@@ -63,7 +74,7 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
...
@@ -63,7 +74,7 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
}
}
difficulty
:=
config
.
L2GenesisBlockDifficulty
difficulty
:=
config
.
L2GenesisBlockDifficulty
if
difficulty
==
nil
{
if
difficulty
==
nil
{
difficulty
=
newHexBig
(
1
)
difficulty
=
newHexBig
(
0
)
}
}
return
&
core
.
Genesis
{
return
&
core
.
Genesis
{
...
...
op-chain-ops/genesis/layer_two.go
View file @
6f69904a
...
@@ -24,7 +24,9 @@ func BuildL2DeveloperGenesis(config *DeployConfig, l1StartBlock *types.Block, l2
...
@@ -24,7 +24,9 @@ func BuildL2DeveloperGenesis(config *DeployConfig, l1StartBlock *types.Block, l2
db
:=
state
.
NewMemoryStateDB
(
genspec
)
db
:=
state
.
NewMemoryStateDB
(
genspec
)
FundDevAccounts
(
db
)
if
config
.
FundDevAccounts
{
FundDevAccounts
(
db
)
}
SetPrecompileBalances
(
db
)
SetPrecompileBalances
(
db
)
return
BuildL2Genesis
(
db
,
config
,
l1StartBlock
,
l2Addrs
)
return
BuildL2Genesis
(
db
,
config
,
l1StartBlock
,
l2Addrs
)
...
...
op-chain-ops/genesis/layer_two_test.go
View file @
6f69904a
...
@@ -77,9 +77,30 @@ func TestBuildL2DeveloperGenesis(t *testing.T) {
...
@@ -77,9 +77,30 @@ func TestBuildL2DeveloperGenesis(t *testing.T) {
require
.
Equal
(
t
,
adminSlot
,
proxyAdmin
.
Address
.
Hash
())
require
.
Equal
(
t
,
adminSlot
,
proxyAdmin
.
Address
.
Hash
())
require
.
Equal
(
t
,
account
.
Code
,
depB
)
require
.
Equal
(
t
,
account
.
Code
,
depB
)
}
}
require
.
Equal
(
t
,
2337
,
len
(
gen
.
Alloc
))
if
writeFile
{
if
writeFile
{
file
,
_
:=
json
.
MarshalIndent
(
gen
,
""
,
" "
)
file
,
_
:=
json
.
MarshalIndent
(
gen
,
""
,
" "
)
_
=
os
.
WriteFile
(
"genesis.json"
,
file
,
0644
)
_
=
os
.
WriteFile
(
"genesis.json"
,
file
,
0644
)
}
}
}
}
func
TestBuildL2DeveloperGenesisDevAccountsFunding
(
t
*
testing
.
T
)
{
config
,
err
:=
genesis
.
NewDeployConfig
(
"./testdata/test-deploy-config-devnet-l1.json"
)
require
.
Nil
(
t
,
err
)
config
.
FundDevAccounts
=
false
backend
:=
backends
.
NewSimulatedBackend
(
core
.
GenesisAlloc
{
crypto
.
PubkeyToAddress
(
testKey
.
PublicKey
)
:
{
Balance
:
big
.
NewInt
(
10000000000000000
)},
},
15000000
,
)
block
,
err
:=
backend
.
BlockByNumber
(
context
.
Background
(),
common
.
Big0
)
require
.
NoError
(
t
,
err
)
gen
,
err
:=
genesis
.
BuildL2DeveloperGenesis
(
config
,
block
,
&
genesis
.
L2Addresses
{
ProxyAdmin
:
common
.
Address
{},
})
require
.
NoError
(
t
,
err
)
require
.
Equal
(
t
,
2316
,
len
(
gen
.
Alloc
))
}
op-chain-ops/genesis/testdata/test-deploy-config-devnet-l1.json
View file @
6f69904a
...
@@ -23,5 +23,6 @@
...
@@ -23,5 +23,6 @@
"optimismBaseFeeRecipient"
:
"0xBcd4042DE499D14e55001CcbB24a551F3b954096"
,
"optimismBaseFeeRecipient"
:
"0xBcd4042DE499D14e55001CcbB24a551F3b954096"
,
"optimismL1FeeRecipient"
:
"0x71bE63f3384f5fb98995898A86B02Fb2426c5788"
,
"optimismL1FeeRecipient"
:
"0x71bE63f3384f5fb98995898A86B02Fb2426c5788"
,
"deploymentWaitConfirmations"
:
1
"deploymentWaitConfirmations"
:
1
,
"fundDevAccounts"
:
true
}
}
op-chain-ops/genesis/testdata/test-deploy-config-full.json
View file @
6f69904a
...
@@ -45,5 +45,8 @@
...
@@ -45,5 +45,8 @@
"gasPriceOracleOverhead"
:
2100
,
"gasPriceOracleOverhead"
:
2100
,
"gasPriceOracleScalar"
:
1000000
,
"gasPriceOracleScalar"
:
1000000
,
"gasPriceOracleDecimals"
:
6
,
"gasPriceOracleDecimals"
:
6
,
"deploymentWaitConfirmations"
:
1
"deploymentWaitConfirmations"
:
1
,
"eip1559Denominator"
:
8
,
"eip1559Elasticity"
:
2
,
"fundDevAccounts"
:
true
}
}
\ No newline at end of file
op-chain-ops/go.mod
View file @
6f69904a
...
@@ -4,7 +4,7 @@ go 1.18
...
@@ -4,7 +4,7 @@ go 1.18
require (
require (
github.com/ethereum-optimism/optimism/l2geth v0.0.0-20220820030939-de38b6f6f77e
github.com/ethereum-optimism/optimism/l2geth v0.0.0-20220820030939-de38b6f6f77e
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6
github.com/ethereum/go-ethereum v1.10.23
github.com/ethereum/go-ethereum v1.10.23
github.com/mattn/go-isatty v0.0.14
github.com/mattn/go-isatty v0.0.14
github.com/stretchr/testify v1.8.0
github.com/stretchr/testify v1.8.0
...
...
op-chain-ops/go.sum
View file @
6f69904a
...
@@ -174,8 +174,8 @@ github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.m
...
@@ -174,8 +174,8 @@ github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.m
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/ethereum-optimism/optimism/l2geth v0.0.0-20220820030939-de38b6f6f77e h1:LUfy9ofKcen9Cm1T9JyGNnrPLR2AmyelFbohS6bs4X8=
github.com/ethereum-optimism/optimism/l2geth v0.0.0-20220820030939-de38b6f6f77e h1:LUfy9ofKcen9Cm1T9JyGNnrPLR2AmyelFbohS6bs4X8=
github.com/ethereum-optimism/optimism/l2geth v0.0.0-20220820030939-de38b6f6f77e/go.mod h1:Oj5A6Qs/Ao1SP17i3uKroyhz49q/ehagSXRAlvwaI5Y=
github.com/ethereum-optimism/optimism/l2geth v0.0.0-20220820030939-de38b6f6f77e/go.mod h1:Oj5A6Qs/Ao1SP17i3uKroyhz49q/ehagSXRAlvwaI5Y=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3 h1:6v3n0fZhxcqVF9mu8l2Axqi4/XcMqpthtl3mEkqhi04
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6 h1:jJYhmygt7hqGzYa+8sme9SdnKt1c3Y6EbWgIrRONoxw
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3/go.mod h1:XZRKu/LTd03m50duwMFEqCWe6qkjgLBZUoZG3CR2Kg0
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6/go.mod h1:gUX5317IAvRMjB4GftayM87JVln3DTqukfirwJpEWnE
=
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
github.com/ethereum/go-ethereum v1.10.16/go.mod h1:Anj6cxczl+AHy63o4X9O8yWNHuN5wMpfb8MAnHkWn7Y=
github.com/ethereum/go-ethereum v1.10.16/go.mod h1:Anj6cxczl+AHy63o4X9O8yWNHuN5wMpfb8MAnHkWn7Y=
github.com/ethereum/go-ethereum v1.10.23 h1:Xk8XAT4/UuqcjMLIMF+7imjkg32kfVFKoeyQDaO2yWM=
github.com/ethereum/go-ethereum v1.10.23 h1:Xk8XAT4/UuqcjMLIMF+7imjkg32kfVFKoeyQDaO2yWM=
...
...
op-e2e/go.mod
View file @
6f69904a
...
@@ -3,11 +3,11 @@ module github.com/ethereum-optimism/optimism/op-e2e
...
@@ -3,11 +3,11 @@ module github.com/ethereum-optimism/optimism/op-e2e
go 1.18
go 1.18
require (
require (
github.com/ethereum-optimism/optimism/op-batcher v0.8.
3
github.com/ethereum-optimism/optimism/op-batcher v0.8.
6
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6
github.com/ethereum-optimism/optimism/op-node v0.8.
3
github.com/ethereum-optimism/optimism/op-node v0.8.
6
github.com/ethereum-optimism/optimism/op-proposer v0.8.
3
github.com/ethereum-optimism/optimism/op-proposer v0.8.
6
github.com/ethereum-optimism/optimism/op-service v0.8.
3
github.com/ethereum-optimism/optimism/op-service v0.8.
6
github.com/ethereum/go-ethereum v1.10.23
github.com/ethereum/go-ethereum v1.10.23
github.com/libp2p/go-libp2p v0.21.0
github.com/libp2p/go-libp2p v0.21.0
github.com/libp2p/go-libp2p-core v0.19.1
github.com/libp2p/go-libp2p-core v0.19.1
...
@@ -155,4 +155,4 @@ require (
...
@@ -155,4 +155,4 @@ require (
lukechampine.com/blake3 v1.1.7 // indirect
lukechampine.com/blake3 v1.1.7 // indirect
)
)
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
op-e2e/go.sum
View file @
6f69904a
...
@@ -239,18 +239,18 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
...
@@ -239,18 +239,18 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638 h1:LcvgHjeooGBobfEIEYikMzx1MoIAjRqa/ZDdkrhV3Hw
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1 h1:W/ZU6BZH7ilTrpdoJOF9N4OReqXbpeRtUB6klIpEdMA
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/ethereum-optimism/optimism/op-batcher v0.8.
3 h1:lvfftznzMtFpemnq1p+qpciAPhYDHhUqmGbIjmgHToA
=
github.com/ethereum-optimism/optimism/op-batcher v0.8.
6 h1:phRqDO8qUIzJzRYt4+ZivSQx4gENeVcTiHY7wj4TnN4
=
github.com/ethereum-optimism/optimism/op-batcher v0.8.
3/go.mod h1:Pu/fg1usqSGim0lA+/QbZdL21dAH0ng1YQoFEw8DTY0
=
github.com/ethereum-optimism/optimism/op-batcher v0.8.
6/go.mod h1:Ghz9Ilox6Ca5TjJAroZVheCleE5a/Ek4qjlW1yULb+A
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3 h1:6v3n0fZhxcqVF9mu8l2Axqi4/XcMqpthtl3mEkqhi04
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6 h1:jJYhmygt7hqGzYa+8sme9SdnKt1c3Y6EbWgIrRONoxw
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3/go.mod h1:XZRKu/LTd03m50duwMFEqCWe6qkjgLBZUoZG3CR2Kg0
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6/go.mod h1:gUX5317IAvRMjB4GftayM87JVln3DTqukfirwJpEWnE
=
github.com/ethereum-optimism/optimism/op-node v0.8.
3 h1:Snuick9EtalM6Cbs8rVUcoCDPFpu6Xxr7kre+RbLbY0
=
github.com/ethereum-optimism/optimism/op-node v0.8.
6 h1:xNwN+Q/Rt17vSKawhBeG9qTcqcyh8JU8PGjK1iuGkF4
=
github.com/ethereum-optimism/optimism/op-node v0.8.
3/go.mod h1:CPa18cq3E41eqwpsohX/QkupY11D3CYsNqbKZD6H860
=
github.com/ethereum-optimism/optimism/op-node v0.8.
6/go.mod h1:gkyzgVHV3+tIhLZ8GhT+bL9GrrmouQCW4mKYukS0SHg
=
github.com/ethereum-optimism/optimism/op-proposer v0.8.
3 h1:e0Dv4/lGXWW2hMLYmL7nQNIv7Um0SlnMicz5VAJwMKc
=
github.com/ethereum-optimism/optimism/op-proposer v0.8.
6 h1:iy8XAtkvrURBy3TT2Lf540cbWztxit7K4+BghZ4IsMI
=
github.com/ethereum-optimism/optimism/op-proposer v0.8.
3/go.mod h1:JIC833mF7Fl8pNe5yNbbPsUKx6o3793OC7dxWhY6Mbs
=
github.com/ethereum-optimism/optimism/op-proposer v0.8.
6/go.mod h1:tuCLnXcO4MrtVyis1Yfo7wtL8EQta1u6zFdzHHj+RAc
=
github.com/ethereum-optimism/optimism/op-service v0.8.
3 h1:eNiNir1/a5nVzs08tuq6+A3d0doB15qPO17YozKZhzQ
=
github.com/ethereum-optimism/optimism/op-service v0.8.
6 h1:ruZp/BxL8TGn1y9EJmygypPTeVAFlAA0A/h8LsCoV+M
=
github.com/ethereum-optimism/optimism/op-service v0.8.
3/go.mod h1:TGUsHYIx5jwCZgvj1taNtTEhJsJNIwRvZ0noDXTdb4c
=
github.com/ethereum-optimism/optimism/op-service v0.8.
6/go.mod h1:gm8YNzERrL/CHBPWx3+01mR/NOVpLLw4GEUSnnTdyFU
=
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
...
...
op-e2e/setup.go
View file @
6f69904a
...
@@ -281,8 +281,10 @@ func (cfg SystemConfig) start() (*System, error) {
...
@@ -281,8 +281,10 @@ func (cfg SystemConfig) start() (*System, error) {
MergeNetsplitBlock
:
common
.
Big0
,
MergeNetsplitBlock
:
common
.
Big0
,
TerminalTotalDifficulty
:
common
.
Big0
,
TerminalTotalDifficulty
:
common
.
Big0
,
Optimism
:
&
params
.
OptimismConfig
{
Optimism
:
&
params
.
OptimismConfig
{
BaseFeeRecipient
:
cfg
.
BaseFeeRecipient
,
BaseFeeRecipient
:
cfg
.
BaseFeeRecipient
,
L1FeeRecipient
:
cfg
.
L1FeeRecipient
,
L1FeeRecipient
:
cfg
.
L1FeeRecipient
,
EIP1559Elasticity
:
2
,
EIP1559Denominator
:
8
,
},
},
},
},
Alloc
:
l2Alloc
,
Alloc
:
l2Alloc
,
...
...
op-node/cmd/genesis/cmd.go
View file @
6f69904a
package
genesis
package
genesis
import
(
import
(
"context"
"encoding/json"
"encoding/json"
"errors"
"math/big"
"math/big"
"os"
"os"
"path/filepath"
"github.com/ethereum-optimism/optimism/op-bindings/hardhat"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/eth"
...
@@ -59,30 +68,7 @@ var Subcommands = cli.Commands{
...
@@ -59,30 +68,7 @@ var Subcommands = cli.Commands{
return
err
return
err
}
}
rollupConfig
:=
&
rollup
.
Config
{
rollupConfig
:=
makeRollupConfig
(
config
,
l1StartBlock
,
l2Genesis
,
predeploys
.
DevOptimismPortalAddr
)
Genesis
:
rollup
.
Genesis
{
L1
:
eth
.
BlockID
{
Hash
:
l1StartBlock
.
Hash
(),
Number
:
0
,
},
L2
:
eth
.
BlockID
{
Hash
:
l2Genesis
.
ToBlock
()
.
Hash
(),
Number
:
0
,
},
L2Time
:
uint64
(
config
.
L1GenesisBlockTimestamp
),
},
BlockTime
:
config
.
L2BlockTime
,
MaxSequencerDrift
:
config
.
MaxSequencerDrift
,
SeqWindowSize
:
config
.
SequencerWindowSize
,
ChannelTimeout
:
config
.
ChannelTimeout
,
L1ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
config
.
L1ChainID
),
L2ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
config
.
L2ChainID
),
P2PSequencerAddress
:
config
.
P2PSequencerAddress
,
FeeRecipientAddress
:
config
.
OptimismL2FeeRecipient
,
BatchInboxAddress
:
config
.
BatchInboxAddress
,
BatchSenderAddress
:
config
.
BatchSenderAddress
,
DepositContractAddress
:
predeploys
.
DevOptimismPortalAddr
,
}
if
err
:=
writeGenesisFile
(
ctx
.
String
(
"outfile.l1"
),
l1Genesis
);
err
!=
nil
{
if
err
:=
writeGenesisFile
(
ctx
.
String
(
"outfile.l1"
),
l1Genesis
);
err
!=
nil
{
return
err
return
err
...
@@ -93,6 +79,129 @@ var Subcommands = cli.Commands{
...
@@ -93,6 +79,129 @@ var Subcommands = cli.Commands{
return
writeGenesisFile
(
ctx
.
String
(
"outfile.rollup"
),
rollupConfig
)
return
writeGenesisFile
(
ctx
.
String
(
"outfile.rollup"
),
rollupConfig
)
},
},
},
},
{
Name
:
"l2"
,
Usage
:
"Generates an L2 genesis file and rollup config suitable for a deployed network"
,
Flags
:
[]
cli
.
Flag
{
cli
.
StringFlag
{
Name
:
"l1-rpc"
,
Usage
:
"L1 RPC URL"
,
},
cli
.
StringFlag
{
Name
:
"deploy-config"
,
Usage
:
"Path to hardhat deploy config file"
,
},
cli
.
StringFlag
{
Name
:
"deployment-dir"
,
Usage
:
"Path to deployment directory"
,
},
cli
.
StringFlag
{
Name
:
"outfile.l2"
,
Usage
:
"Path to L2 genesis output file"
,
},
cli
.
StringFlag
{
Name
:
"outfile.rollup"
,
Usage
:
"Path to rollup output file"
,
},
},
Action
:
func
(
ctx
*
cli
.
Context
)
error
{
deployConfig
:=
ctx
.
String
(
"deploy-config"
)
config
,
err
:=
genesis
.
NewDeployConfig
(
deployConfig
)
if
err
!=
nil
{
return
err
}
if
config
.
L1StartingBlockTag
==
nil
{
return
errors
.
New
(
"must specify a starting block tag in genesis"
)
}
client
,
err
:=
ethclient
.
Dial
(
ctx
.
String
(
"l1-rpc"
))
if
err
!=
nil
{
return
err
}
var
l1StartBlock
*
types
.
Block
if
config
.
L1StartingBlockTag
.
BlockHash
!=
nil
{
l1StartBlock
,
err
=
client
.
BlockByHash
(
context
.
Background
(),
*
config
.
L1StartingBlockTag
.
BlockHash
)
}
else
if
config
.
L1StartingBlockTag
.
BlockNumber
!=
nil
{
l1StartBlock
,
err
=
client
.
BlockByNumber
(
context
.
Background
(),
big
.
NewInt
(
config
.
L1StartingBlockTag
.
BlockNumber
.
Int64
()))
}
if
err
!=
nil
{
return
err
}
depPath
,
network
:=
filepath
.
Split
(
ctx
.
String
(
"deployment-dir"
))
hh
,
err
:=
hardhat
.
New
(
network
,
nil
,
[]
string
{
depPath
})
if
err
!=
nil
{
return
err
}
proxyAdmin
,
err
:=
hh
.
GetDeployment
(
"ProxyAdmin"
)
if
err
!=
nil
{
return
err
}
l1SBP
,
err
:=
hh
.
GetDeployment
(
"L1StandardBridgeProxy"
)
if
err
!=
nil
{
return
err
}
l1XDMP
,
err
:=
hh
.
GetDeployment
(
"L1CrossDomainMessengerProxy"
)
if
err
!=
nil
{
return
err
}
portalProxy
,
err
:=
hh
.
GetDeployment
(
"OptimismPortalProxy"
)
if
err
!=
nil
{
return
err
}
l2Addrs
:=
&
genesis
.
L2Addresses
{
ProxyAdmin
:
proxyAdmin
.
Address
,
L1StandardBridgeProxy
:
l1SBP
.
Address
,
L1CrossDomainMessengerProxy
:
l1XDMP
.
Address
,
}
l2Genesis
,
err
:=
genesis
.
BuildL2DeveloperGenesis
(
config
,
l1StartBlock
,
l2Addrs
)
if
err
!=
nil
{
return
err
}
rollupConfig
:=
makeRollupConfig
(
config
,
l1StartBlock
,
l2Genesis
,
portalProxy
.
Address
)
if
err
:=
writeGenesisFile
(
ctx
.
String
(
"outfile.l2"
),
l2Genesis
);
err
!=
nil
{
return
err
}
return
writeGenesisFile
(
ctx
.
String
(
"outfile.rollup"
),
rollupConfig
)
},
},
}
func
makeRollupConfig
(
config
*
genesis
.
DeployConfig
,
l1StartBlock
*
types
.
Block
,
l2Genesis
*
core
.
Genesis
,
portalAddr
common
.
Address
,
)
*
rollup
.
Config
{
return
&
rollup
.
Config
{
Genesis
:
rollup
.
Genesis
{
L1
:
eth
.
BlockID
{
Hash
:
l1StartBlock
.
Hash
(),
Number
:
0
,
},
L2
:
eth
.
BlockID
{
Hash
:
l2Genesis
.
ToBlock
()
.
Hash
(),
Number
:
0
,
},
L2Time
:
l1StartBlock
.
Time
(),
},
BlockTime
:
config
.
L2BlockTime
,
MaxSequencerDrift
:
config
.
MaxSequencerDrift
,
SeqWindowSize
:
config
.
SequencerWindowSize
,
ChannelTimeout
:
config
.
ChannelTimeout
,
L1ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
config
.
L1ChainID
),
L2ChainID
:
new
(
big
.
Int
)
.
SetUint64
(
config
.
L2ChainID
),
P2PSequencerAddress
:
config
.
P2PSequencerAddress
,
FeeRecipientAddress
:
config
.
OptimismL2FeeRecipient
,
BatchInboxAddress
:
config
.
BatchInboxAddress
,
BatchSenderAddress
:
config
.
BatchSenderAddress
,
DepositContractAddress
:
portalAddr
,
}
}
}
func
writeGenesisFile
(
outfile
string
,
input
interface
{})
error
{
func
writeGenesisFile
(
outfile
string
,
input
interface
{})
error
{
...
...
op-node/go.mod
View file @
6f69904a
...
@@ -5,8 +5,8 @@ go 1.18
...
@@ -5,8 +5,8 @@ go 1.18
require (
require (
github.com/btcsuite/btcd/btcec/v2 v2.2.0
github.com/btcsuite/btcd/btcec/v2 v2.2.0
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6
github.com/ethereum-optimism/optimism/op-chain-ops v0.8.
3
github.com/ethereum-optimism/optimism/op-chain-ops v0.8.
6
github.com/ethereum/go-ethereum v1.10.23
github.com/ethereum/go-ethereum v1.10.23
github.com/golang/snappy v0.0.4
github.com/golang/snappy v0.0.4
github.com/google/go-cmp v0.5.8
github.com/google/go-cmp v0.5.8
...
@@ -159,4 +159,4 @@ require (
...
@@ -159,4 +159,4 @@ require (
lukechampine.com/blake3 v1.1.7 // indirect
lukechampine.com/blake3 v1.1.7 // indirect
)
)
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
op-node/go.sum
View file @
6f69904a
...
@@ -188,12 +188,12 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
...
@@ -188,12 +188,12 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638 h1:LcvgHjeooGBobfEIEYikMzx1MoIAjRqa/ZDdkrhV3Hw
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1 h1:W/ZU6BZH7ilTrpdoJOF9N4OReqXbpeRtUB6klIpEdMA
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3 h1:6v3n0fZhxcqVF9mu8l2Axqi4/XcMqpthtl3mEkqhi04
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6 h1:jJYhmygt7hqGzYa+8sme9SdnKt1c3Y6EbWgIrRONoxw
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3/go.mod h1:XZRKu/LTd03m50duwMFEqCWe6qkjgLBZUoZG3CR2Kg0
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6/go.mod h1:gUX5317IAvRMjB4GftayM87JVln3DTqukfirwJpEWnE
=
github.com/ethereum-optimism/optimism/op-chain-ops v0.8.
3 h1:X36b6y9fPGiJx2ugs+1RR8OKA9mYljsNTReTLNPa+Tg
=
github.com/ethereum-optimism/optimism/op-chain-ops v0.8.
6 h1:tNGW3gztoIx2t+z64wAkDIvsUpvc468Y8IG9K4/hAKk
=
github.com/ethereum-optimism/optimism/op-chain-ops v0.8.
3/go.mod h1:ik59PuWUSXYfrb/cLJ3pRxZijVoy/QabRN5TgGIMEkQ
=
github.com/ethereum-optimism/optimism/op-chain-ops v0.8.
6/go.mod h1:RZ0R4dy/F/bMbKlDef7k1oSiD4BEx9GmwXYtnmx7mEk
=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fjl/memsize v0.0.1 h1:+zhkb+dhUgx0/e+M8sF0QqiouvMQUiKR+QYvdxIOKcQ=
github.com/fjl/memsize v0.0.1 h1:+zhkb+dhUgx0/e+M8sF0QqiouvMQUiKR+QYvdxIOKcQ=
github.com/fjl/memsize v0.0.1/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
github.com/fjl/memsize v0.0.1/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
...
...
op-proposer/go.mod
View file @
6f69904a
...
@@ -3,9 +3,9 @@ module github.com/ethereum-optimism/optimism/op-proposer
...
@@ -3,9 +3,9 @@ module github.com/ethereum-optimism/optimism/op-proposer
go 1.18
go 1.18
require (
require (
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6
github.com/ethereum-optimism/optimism/op-node v0.8.
3
github.com/ethereum-optimism/optimism/op-node v0.8.
6
github.com/ethereum-optimism/optimism/op-service v0.8.
3
github.com/ethereum-optimism/optimism/op-service v0.8.
6
github.com/ethereum/go-ethereum v1.10.23
github.com/ethereum/go-ethereum v1.10.23
github.com/miguelmota/go-ethereum-hdwallet v0.1.1
github.com/miguelmota/go-ethereum-hdwallet v0.1.1
github.com/stretchr/testify v1.8.0
github.com/stretchr/testify v1.8.0
...
@@ -76,4 +76,4 @@ require (
...
@@ -76,4 +76,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
)
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
op-proposer/go.sum
View file @
6f69904a
...
@@ -148,14 +148,14 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
...
@@ -148,14 +148,14 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638 h1:LcvgHjeooGBobfEIEYikMzx1MoIAjRqa/ZDdkrhV3Hw
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1 h1:W/ZU6BZH7ilTrpdoJOF9N4OReqXbpeRtUB6klIpEdMA
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3 h1:6v3n0fZhxcqVF9mu8l2Axqi4/XcMqpthtl3mEkqhi04
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6 h1:jJYhmygt7hqGzYa+8sme9SdnKt1c3Y6EbWgIrRONoxw
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
3/go.mod h1:XZRKu/LTd03m50duwMFEqCWe6qkjgLBZUoZG3CR2Kg0
=
github.com/ethereum-optimism/optimism/op-bindings v0.8.
6/go.mod h1:gUX5317IAvRMjB4GftayM87JVln3DTqukfirwJpEWnE
=
github.com/ethereum-optimism/optimism/op-node v0.8.
3 h1:Snuick9EtalM6Cbs8rVUcoCDPFpu6Xxr7kre+RbLbY0
=
github.com/ethereum-optimism/optimism/op-node v0.8.
6 h1:xNwN+Q/Rt17vSKawhBeG9qTcqcyh8JU8PGjK1iuGkF4
=
github.com/ethereum-optimism/optimism/op-node v0.8.
3/go.mod h1:CPa18cq3E41eqwpsohX/QkupY11D3CYsNqbKZD6H860
=
github.com/ethereum-optimism/optimism/op-node v0.8.
6/go.mod h1:gkyzgVHV3+tIhLZ8GhT+bL9GrrmouQCW4mKYukS0SHg
=
github.com/ethereum-optimism/optimism/op-service v0.8.
3 h1:eNiNir1/a5nVzs08tuq6+A3d0doB15qPO17YozKZhzQ
=
github.com/ethereum-optimism/optimism/op-service v0.8.
6 h1:ruZp/BxL8TGn1y9EJmygypPTeVAFlAA0A/h8LsCoV+M
=
github.com/ethereum-optimism/optimism/op-service v0.8.
3/go.mod h1:TGUsHYIx5jwCZgvj1taNtTEhJsJNIwRvZ0noDXTdb4c
=
github.com/ethereum-optimism/optimism/op-service v0.8.
6/go.mod h1:gm8YNzERrL/CHBPWx3+01mR/NOVpLLw4GEUSnnTdyFU
=
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
github.com/ethereum/go-ethereum v1.10.4/go.mod h1:nEE0TP5MtxGzOMd7egIrbPJMQBnhVU3ELNxhBglIzhg=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
...
...
op-service/go.mod
View file @
6f69904a
...
@@ -65,4 +65,4 @@ require (
...
@@ -65,4 +65,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
)
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
op-service/go.sum
View file @
6f69904a
...
@@ -108,8 +108,8 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
...
@@ -108,8 +108,8 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638 h1:LcvgHjeooGBobfEIEYikMzx1MoIAjRqa/ZDdkrhV3Hw
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1 h1:W/ZU6BZH7ilTrpdoJOF9N4OReqXbpeRtUB6klIpEdMA
=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
7143004-2aacc679d638
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/ethereum-optimism/op-geth v0.0.0-2022090
9213840-e6575c0168f1
/go.mod h1:/6CsT5Ceen2WPLI/oCA3xMcZ5sWMF/D46SjM/ayY0Oo=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fjl/memsize v0.0.1 h1:+zhkb+dhUgx0/e+M8sF0QqiouvMQUiKR+QYvdxIOKcQ=
github.com/fjl/memsize v0.0.1 h1:+zhkb+dhUgx0/e+M8sF0QqiouvMQUiKR+QYvdxIOKcQ=
github.com/fjl/memsize v0.0.1/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
github.com/fjl/memsize v0.0.1/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
...
...
packages/contracts-bedrock/deploy-config/devnetL1.json
View file @
6f69904a
...
@@ -23,5 +23,6 @@
...
@@ -23,5 +23,6 @@
"optimismBaseFeeRecipient"
:
"0xBcd4042DE499D14e55001CcbB24a551F3b954096"
,
"optimismBaseFeeRecipient"
:
"0xBcd4042DE499D14e55001CcbB24a551F3b954096"
,
"optimismL1FeeRecipient"
:
"0x71bE63f3384f5fb98995898A86B02Fb2426c5788"
,
"optimismL1FeeRecipient"
:
"0x71bE63f3384f5fb98995898A86B02Fb2426c5788"
,
"deploymentWaitConfirmations"
:
1
"deploymentWaitConfirmations"
:
1
,
"fundDevAccounts"
:
true
}
}
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