From 61a94d868528a0cc591887844194bf4e43ddfabb Mon Sep 17 00:00:00 2001 From: Mehdi Date: Tue, 16 Jan 2024 13:28:21 +0100 Subject: [PATCH] feat(ethereum): add holesky constants (#1) Signed-off-by: Mehdi Bechiri --- ethereum/consensus/constants.go | 3 +++ ethereum/execution/constants.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ethereum/consensus/constants.go b/ethereum/consensus/constants.go index e403a9a..55afac9 100644 --- a/ethereum/consensus/constants.go +++ b/ethereum/consensus/constants.go @@ -11,6 +11,7 @@ var ( PraterForkVersion = beaconcommon.Version{0x00, 0x00, 0x10, 0x20} SepoliaForkVersion = beaconcommon.Version{0x90, 0x00, 0x00, 0x69} RopstenForkVersion = beaconcommon.Version{0x80, 0x00, 0x00, 0x69} + HoleskyForkVersion = beaconcommon.Version{0x01, 0x01, 0x70, 0x00} ) var forkVersions = map[string]beaconcommon.Version{ @@ -19,6 +20,7 @@ var forkVersions = map[string]beaconcommon.Version{ "goerli": PraterForkVersion, // we add goerli to facilitate correspondance with exec layer "sepolia": SepoliaForkVersion, "ropsten": RopstenForkVersion, + "holesky": HoleskyForkVersion, } var networks = map[string]string{ @@ -26,6 +28,7 @@ var networks = map[string]string{ PraterForkVersion.String(): "prater", SepoliaForkVersion.String(): "sepolia", RopstenForkVersion.String(): "ropsten", + HoleskyForkVersion.String(): "holesky", } func ForkVersion(network string) (beaconcommon.Version, error) { diff --git a/ethereum/execution/constants.go b/ethereum/execution/constants.go index 90e7550..127ae2e 100644 --- a/ethereum/execution/constants.go +++ b/ethereum/execution/constants.go @@ -7,6 +7,7 @@ var ( RopstenChainID = "3" GoerliChainID = "5" SepoliaChainID = "11155111" + HoleskyChainID = "17000" ) var chainIds = map[string]string{ @@ -15,6 +16,7 @@ var chainIds = map[string]string{ "goerli": GoerliChainID, "sepolia": SepoliaChainID, "ropsten": RopstenChainID, + "holesky": HoleskyChainID, } var networks = map[string]string{ @@ -22,6 +24,7 @@ var networks = map[string]string{ GoerliChainID: "goerli", SepoliaChainID: "sepolia", RopstenChainID: "ropsten", + HoleskyChainID: "holesky", } func ChainID(network string) (string, error) {