Commit b17c4077 authored by Adrian Sutton's avatar Adrian Sutton

op-program: Add chain config for Sepolia to op-program.

parent f30fdd3f
......@@ -81,7 +81,7 @@ func TestNetwork(t *testing.T) {
expected := cfg
t.Run("Network_"+name, func(t *testing.T) {
// TODO(CLI-3936) Re-enable test for other networks once bedrock migration is complete
if name != "goerli" {
if name == "mainnet" {
t.Skipf("Not requiring chain config for network %s", name)
return
}
......
......@@ -6,6 +6,8 @@ import (
"github.com/ethereum/go-ethereum/params"
)
var enabledFromBedrockBlock = uint64(0)
var OPGoerliChainConfig = &params.ChainConfig{
ChainID: big.NewInt(420),
HomesteadBlock: big.NewInt(0),
......@@ -34,6 +36,35 @@ var OPGoerliChainConfig = &params.ChainConfig{
},
}
var OPSepoliaChainConfig = &params.ChainConfig{
ChainID: big.NewInt(11155420),
HomesteadBlock: big.NewInt(0),
DAOForkBlock: nil,
DAOForkSupport: false,
EIP150Block: big.NewInt(0),
EIP155Block: big.NewInt(0),
EIP158Block: big.NewInt(0),
ByzantiumBlock: big.NewInt(0),
ConstantinopleBlock: big.NewInt(0),
PetersburgBlock: big.NewInt(0),
IstanbulBlock: big.NewInt(0),
MuirGlacierBlock: big.NewInt(0),
BerlinBlock: big.NewInt(0),
LondonBlock: big.NewInt(0),
ArrowGlacierBlock: big.NewInt(0),
GrayGlacierBlock: big.NewInt(0),
MergeNetsplitBlock: big.NewInt(0),
BedrockBlock: big.NewInt(0),
RegolithTime: &enabledFromBedrockBlock,
TerminalTotalDifficulty: big.NewInt(0),
TerminalTotalDifficultyPassed: true,
Optimism: &params.OptimismConfig{
EIP1559Elasticity: 6,
EIP1559Denominator: 50,
},
}
var L2ChainConfigsByName = map[string]*params.ChainConfig{
"goerli": OPGoerliChainConfig,
"goerli": OPGoerliChainConfig,
"sepolia": OPSepoliaChainConfig,
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment