Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions types/beacon_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ const (
// PraterNetwork represents the Prater test network.
PraterNetwork BeaconNetwork = "prater"

// SepoliaNetwork represents the Sepolia test network.
SepoliaNetwork BeaconNetwork = "sepolia"

// BeaconTestNetwork is a simple test network with a custom genesis time
BeaconTestNetwork BeaconNetwork = "now_test_network"
)
Expand All @@ -174,6 +177,8 @@ func NetworkFromString(n string) BeaconNetwork {
return HoleskyNetwork
case string(PraterNetwork):
return PraterNetwork
case string(SepoliaNetwork):
return SepoliaNetwork
case string(BeaconTestNetwork):
return BeaconTestNetwork
default:
Expand All @@ -190,6 +195,8 @@ func (n BeaconNetwork) ForkVersion() [4]byte {
return [4]byte{0x01, 0x01, 0x70, 0x00}
case PraterNetwork:
return [4]byte{0x00, 0x00, 0x10, 0x20}
case SepoliaNetwork:
return [4]byte{0x90, 0x00, 0x00, 0x69}
case BeaconTestNetwork:
return [4]byte{0x99, 0x99, 0x99, 0x99}
default:
Expand All @@ -206,6 +213,8 @@ func (n BeaconNetwork) MinGenesisTime() uint64 {
return 1695902400
case PraterNetwork:
return 1616508000
case SepoliaNetwork:
return 1655733600
case BeaconTestNetwork:
return 1616508000
default:
Expand Down