Skip to content

Commit 64eb85c

Browse files
committed
add mekong config
1 parent 2034a83 commit 64eb85c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

core/networks.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ func NetworkFromString(n string) Network {
2020
return PraterNetwork
2121
case string(HoleskyNetwork):
2222
return HoleskyNetwork
23+
case string(MekongNetwork):
24+
return MekongNetwork
2325
case string(MainNetwork):
2426
return MainNetwork
2527
default:
@@ -36,6 +38,8 @@ func (n Network) GenesisForkVersion() phase0.Version {
3638
return phase0.Version{0x00, 0x00, 0x10, 0x20}
3739
case HoleskyNetwork:
3840
return phase0.Version{0x01, 0x01, 0x70, 0x00}
41+
case MekongNetwork:
42+
return phase0.Version{0x10, 0x63, 0x76, 0x24}
3943
case MainNetwork:
4044
return phase0.Version{0, 0, 0, 0}
4145
default:
@@ -54,6 +58,9 @@ func (n Network) GenesisValidatorsRoot() phase0.Root {
5458
case HoleskyNetwork:
5559
rootBytes, _ := hex.DecodeString("9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1")
5660
copy(genValidatorsRoot[:], rootBytes)
61+
case MekongNetwork:
62+
rootBytes, _ := hex.DecodeString("9838240bca889c52818d7502179b393a828f61f15119d9027827c36caeb67db7")
63+
copy(genValidatorsRoot[:], rootBytes)
5764
case MainNetwork:
5865
rootBytes, _ := hex.DecodeString("4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95")
5966
copy(genValidatorsRoot[:], rootBytes)
@@ -72,6 +79,8 @@ func (n Network) DepositContractAddress() string {
7279
return "0xff50ed3d0ec03ac01d4c79aad74928bff48a7b2b"
7380
case HoleskyNetwork:
7481
return "0x4242424242424242424242424242424242424242"
82+
case MekongNetwork:
83+
return "0x4242424242424242424242424242424242424242"
7584
case MainNetwork:
7685
return "0x00000000219ab540356cBB839Cbe05303d7705Fa"
7786
default:
@@ -94,6 +103,8 @@ func (n Network) MinGenesisTime() uint64 {
94103
return 1616508000
95104
case HoleskyNetwork:
96105
return 1695902400
106+
case MekongNetwork:
107+
return 1730822340 + 60 // genesis delay
97108
case MainNetwork:
98109
return 1606824023
99110
default:
@@ -148,6 +159,9 @@ const (
148159
// HoleskyNetwork represents the Holesky test network.
149160
HoleskyNetwork Network = "holesky"
150161

162+
// MekongNetwork represents the Mekong test network.
163+
MekongNetwork Network = "mekong"
164+
151165
// MainNetwork represents the main network.
152166
MainNetwork Network = "mainnet"
153167
)

0 commit comments

Comments
 (0)