From fc466d3b3231f9e4f6f8651f25afb948babe3ea0 Mon Sep 17 00:00:00 2001 From: Carl Beekhuizen Date: Fri, 19 Mar 2021 13:08:59 +0100 Subject: [PATCH] Adds Prater testnet support --- eth2deposit/settings.py | 6 +++++- setup.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/eth2deposit/settings.py b/eth2deposit/settings.py index 35bde8aa..adc36d95 100644 --- a/eth2deposit/settings.py +++ b/eth2deposit/settings.py @@ -1,7 +1,7 @@ from typing import Dict, NamedTuple -DEPOSIT_CLI_VERSION = '1.1.0' +DEPOSIT_CLI_VERSION = '1.1.1' class BaseChainSetting(NamedTuple): @@ -16,6 +16,7 @@ class BaseChainSetting(NamedTuple): SPADINA = 'spadina' ZINKEN = 'zinken' PYRMONT = 'pyrmont' +PRATER = 'prater' # Eth2 Mainnet setting @@ -32,6 +33,8 @@ class BaseChainSetting(NamedTuple): ZinkenSetting = BaseChainSetting(ETH2_NETWORK_NAME=ZINKEN, GENESIS_FORK_VERSION=bytes.fromhex('00000003')) # Eth2 pre-launch testnet (spec v1.0.0) PyrmontSetting = BaseChainSetting(ETH2_NETWORK_NAME=PYRMONT, GENESIS_FORK_VERSION=bytes.fromhex('00002009')) +# Eth2 testnet (spec v1.0.1) +PraterSetting = BaseChainSetting(ETH2_NETWORK_NAME=PRATER, GENESIS_FORK_VERSION=bytes.fromhex('00001020')) ALL_CHAINS: Dict[str, BaseChainSetting] = { @@ -42,6 +45,7 @@ class BaseChainSetting(NamedTuple): SPADINA: SpadinaSetting, ZINKEN: ZinkenSetting, PYRMONT: PyrmontSetting, + PRATER: PraterSetting, } diff --git a/setup.py b/setup.py index efe66cc1..e148d351 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="eth2deposit", - version='1.1.0', + version='1.1.1', py_modules=["eth2deposit"], packages=find_packages(exclude=('tests', 'docs')), python_requires=">=3.7,<4",