Skip to content

Commit

Permalink
chore: enable canyon upgrade for kroma sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
Pangssu committed Feb 6, 2024
1 parent 3d3df94 commit 62a39e6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
8 changes: 8 additions & 0 deletions op-node/chaincfg/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ var Mainnet = &rollup.Config{
BatchInboxAddress: common.HexToAddress("0xff00000000000000000000000000000000000255"),
DepositContractAddress: common.HexToAddress("0x31f648572b67e60ec6eb8e197e1848cc5f5558de"),
L1SystemConfigAddress: common.HexToAddress("0x3971eb866aa9b2b8afea8a7c816f3b7e8b195a35"),
RegolithTime: u64Ptr(0),
CanyonTime: nil,
}

var Sepolia = &rollup.Config{
Expand Down Expand Up @@ -68,6 +70,8 @@ var Sepolia = &rollup.Config{
BatchInboxAddress: common.HexToAddress("0xfa79000000000000000000000000000000000001"),
DepositContractAddress: common.HexToAddress("0x31ab8ed993a3be9aa2757c7d368dc87101a868a4"),
L1SystemConfigAddress: common.HexToAddress("0x398c8ea789968893095d86cba168378a4f452e33"),
RegolithTime: u64Ptr(0),
CanyonTime: u64Ptr(1707897600),
}

var NetworksByName = map[string]*rollup.Config{
Expand Down Expand Up @@ -99,3 +103,7 @@ func GetRollupConfig(name string) (*rollup.Config, error) {

return network, nil
}

func u64Ptr(v uint64) *uint64 {
return &v
}
13 changes: 7 additions & 6 deletions op-node/chaincfg/chains_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"math/big"
"testing"

"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"

"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)

// TestGetRollupConfig tests that the configs sourced from the superchain-registry match
Expand Down Expand Up @@ -61,6 +62,8 @@ var mainnetCfg = rollup.Config{
BatchInboxAddress: common.HexToAddress("0xff00000000000000000000000000000000000255"),
DepositContractAddress: common.HexToAddress("0x31f648572b67e60ec6eb8e197e1848cc5f5558de"),
L1SystemConfigAddress: common.HexToAddress("0x3971eb866aa9b2b8afea8a7c816f3b7e8b195a35"),
RegolithTime: u64Ptr(0),
CanyonTime: nil,
}

var sepoliaCfg = rollup.Config{
Expand Down Expand Up @@ -91,8 +94,6 @@ var sepoliaCfg = rollup.Config{
BatchInboxAddress: common.HexToAddress("0xfa79000000000000000000000000000000000001"),
DepositContractAddress: common.HexToAddress("0x31ab8ed993a3be9aa2757c7d368dc87101a868a4"),
L1SystemConfigAddress: common.HexToAddress("0x398c8ea789968893095d86cba168378a4f452e33"),
}

func u64Ptr(v uint64) *uint64 {
return &v
RegolithTime: u64Ptr(0),
CanyonTime: u64Ptr(1707897600),
}

0 comments on commit 62a39e6

Please sign in to comment.