Skip to content

Commit

Permalink
Add Holesky testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Aug 22, 2023
1 parent 9ef2e23 commit 0dda982
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions staking_deposit/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class BaseChainSetting(NamedTuple):
PRATER = 'prater'
SEPOLIA = 'sepolia'
ZHEJIANG = 'zhejiang'
HOLESKY = 'holesky'

# Mainnet setting
MainnetSetting = BaseChainSetting(
Expand All @@ -32,6 +33,10 @@ class BaseChainSetting(NamedTuple):
ZhejiangSetting = BaseChainSetting(
NETWORK_NAME=ZHEJIANG, GENESIS_FORK_VERSION=bytes.fromhex('00000069'),
GENESIS_VALIDATORS_ROOT=bytes.fromhex('53a92d8f2bb1d85f62d16a156e6ebcd1bcaba652d0900b2c2f387826f3481f6f'))
# Holesky setting
HoleskySetting = BaseChainSetting(
NETWORK_NAME=HOLESKY, GENESIS_FORK_VERSION=bytes.fromhex('00017000'),
GENESIS_VALIDATORS_ROOT=bytes.fromhex('9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1'))


ALL_CHAINS: Dict[str, BaseChainSetting] = {
Expand All @@ -40,6 +45,7 @@ class BaseChainSetting(NamedTuple):
PRATER: GoerliSetting, # Prater is the old name of the Prater/Goerli testnet
SEPOLIA: SepoliaSetting,
ZHEJIANG: ZhejiangSetting,
HOLESKY: HoleskySetting,
}


Expand Down

0 comments on commit 0dda982

Please sign in to comment.