mirror of
https://gitlab.com/pulsechaincom/staking-deposit-cli.git
synced 2025-01-20 18:31:11 +00:00
commit
79eed933eb
@ -34,6 +34,7 @@ from staking_deposit.utils.intl import (
|
||||
from staking_deposit.settings import (
|
||||
ALL_CHAINS,
|
||||
MAINNET,
|
||||
PRATER,
|
||||
get_chain_setting,
|
||||
)
|
||||
|
||||
@ -87,7 +88,8 @@ def generate_keys_arguments_decorator(function: Callable[..., Any]) -> Callable[
|
||||
param_decls='--chain',
|
||||
prompt=choice_prompt_func(
|
||||
lambda: load_text(['chain', 'prompt'], func='generate_keys_arguments_decorator'),
|
||||
list(ALL_CHAINS.keys())
|
||||
# Since `prater` is alias of `goerli`, do not show `prater` in the prompt message.
|
||||
list(key for key in ALL_CHAINS.keys() if key != PRATER)
|
||||
),
|
||||
),
|
||||
jit_option(
|
||||
|
@ -10,30 +10,28 @@ class BaseChainSetting(NamedTuple):
|
||||
|
||||
|
||||
MAINNET = 'mainnet'
|
||||
PRATER = 'prater'
|
||||
KINTSUGI = 'kintsugi'
|
||||
KILN = 'kiln'
|
||||
ROPSTEN = 'ropsten'
|
||||
GOERLI = 'goerli'
|
||||
PRATER = 'prater'
|
||||
KILN = 'kiln'
|
||||
|
||||
|
||||
# Mainnet setting
|
||||
MainnetSetting = BaseChainSetting(NETWORK_NAME=MAINNET, GENESIS_FORK_VERSION=bytes.fromhex('00000000'))
|
||||
# Ropsten setting
|
||||
RopstenSetting = BaseChainSetting(NETWORK_NAME=ROPSTEN, GENESIS_FORK_VERSION=bytes.fromhex('80000069'))
|
||||
# Testnet (spec v1.0.1)
|
||||
PraterSetting = BaseChainSetting(NETWORK_NAME=PRATER, GENESIS_FORK_VERSION=bytes.fromhex('00001020'))
|
||||
# Merge Testnet (spec v1.1.4)
|
||||
KintsugiSetting = BaseChainSetting(NETWORK_NAME=KINTSUGI, GENESIS_FORK_VERSION=bytes.fromhex('60000069'))
|
||||
# Goreli setting
|
||||
GoerliSetting = BaseChainSetting(NETWORK_NAME=GOERLI, GENESIS_FORK_VERSION=bytes.fromhex('00001020'))
|
||||
# Merge Testnet (spec v1.1.9)
|
||||
KilnSetting = BaseChainSetting(NETWORK_NAME=KILN, GENESIS_FORK_VERSION=bytes.fromhex('70000069'))
|
||||
|
||||
|
||||
ALL_CHAINS: Dict[str, BaseChainSetting] = {
|
||||
MAINNET: MainnetSetting,
|
||||
PRATER: PraterSetting,
|
||||
KINTSUGI: KintsugiSetting,
|
||||
KILN: KilnSetting,
|
||||
ROPSTEN: RopstenSetting,
|
||||
GOERLI: GoerliSetting,
|
||||
PRATER: GoerliSetting, # Prater is the old name of the Prater/Goerli testnet
|
||||
KILN: KilnSetting,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user