-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsettings.go
46 lines (37 loc) · 1.07 KB
/
settings.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package eth2deposit
import "encoding/binary"
type BaseChainSetting struct {
ETH2_NETWORK_NAME string
GENESIS_FORK_VERSION [4]byte
}
const DEPOSIT_CLI_VERSION = "2.7.0"
const (
purpose = "12381"
coin_type = "3600"
)
const (
MAINNET = "mainnet"
PYRMONT = "pyrmont"
PRATER = "prater"
HOLESKY = "holesky"
)
var (
MainnetSetting BaseChainSetting
PyrmontSetting BaseChainSetting
PraterSetting BaseChainSetting
HoleskySetting BaseChainSetting
)
func init() {
// Eth2 Mainnet setting
MainnetSetting.ETH2_NETWORK_NAME = MAINNET
binary.BigEndian.PutUint32(MainnetSetting.GENESIS_FORK_VERSION[:], 0x00000000)
// Eth2 pre-launch testnet (spec v1.0.0)
PyrmontSetting.ETH2_NETWORK_NAME = PYRMONT
binary.BigEndian.PutUint32(PyrmontSetting.GENESIS_FORK_VERSION[:], 0x00002009)
// Eth2 testnet (spec v1.0.1)
PraterSetting.ETH2_NETWORK_NAME = PRATER
binary.BigEndian.PutUint32(PraterSetting.GENESIS_FORK_VERSION[:], 0x00001020)
// Holesky setting
HoleskySetting.ETH2_NETWORK_NAME = HOLESKY
binary.BigEndian.PutUint32(HoleskySetting.GENESIS_FORK_VERSION[:], 0x01017000)
}