Skip to content

Commit cc61fdc

Browse files
authored
Adding the Mekong testnet settings as another supported testnet (#231)
* Adding the Mekong testnet settings as another supported testnet * Update documentation with correct list of named networks
1 parent e8fc729 commit cc61fdc

8 files changed

Lines changed: 15 additions & 7 deletions

docs/src/existing_mnemonic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Uses an existing BIP-39 mnemonic phrase for key generation.
77

88
## Optional Arguments
99

10-
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'holesky', etc...
10+
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'sepolia', 'holesky', 'mekong', or 'ephemery'.
1111

1212
- **`--mnemonic`**: The mnemonic you used to create withdrawal credentials. <span class="warning"></span>
1313

docs/src/exit_transaction_keystore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Creates an exit transaction using a keystore file.
77

88
## Optional Arguments
99

10-
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'holesky', etc.
10+
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'sepolia', 'holesky', 'mekong', or 'ephemery'.
1111

1212
- **`--keystore`**: The keystore file associating with the validator you wish to exit.
1313

docs/src/exit_transaction_mnemonic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Creates an exit transaction using a mnemonic phrase.
77

88
## Optional Arguments
99

10-
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'holesky', etc.
10+
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'sepolia', 'holesky', 'mekong', or 'ephemery'.
1111

1212
- **`--mnemonic`**: The mnemonic you used during key generation. <span class="warning"></span>
1313

docs/src/generate_bls_to_execution_change.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Generates a BLS to execution address change message. This is used to add a withd
99

1010
- **`--bls_to_execution_changes_folder`**: The path to store the change JSON file.
1111

12-
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'holesky', etc.
12+
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'sepolia', 'holesky', 'mekong', or 'ephemery'.
1313

1414
- **`--mnemonic`**: The mnemonic you used to create withdrawal credentials. <span class="warning"></span>
1515

docs/src/generate_bls_to_execution_change_keystore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Signs a withdrawal credential update message using the provided keystore. This s
1111

1212
## Optional Arguments
1313

14-
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'holesky', etc.
14+
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'sepolia', 'holesky', 'mekong', or 'ephemery'.
1515

1616
- **`--keystore`**: The keystore file associating with the validator you wish to sign with. This keystore file should match the provided validator index.
1717

docs/src/new_mnemonic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Generates a new BIP-39 mnemonic along with validator keystore and deposit files
99

1010
- **`--mnemonic_language`**: The language of the BIP-39 mnemonic. Options are: 'chinese_simplified', 'chinese_traditional', 'czech', 'english', 'french', 'italian', 'japanese', 'korean', 'portuguese', 'spanish'.
1111

12-
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'holesky', etc...
12+
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'sepolia', 'holesky', 'mekong', or 'ephemery'.
1313

1414
- **`--num_validators`**: Number of validators to create.
1515

docs/src/partial_deposit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you wish to create a validator with 0x00 credentials, you must use the **[new
88

99
## Optional Arguments
1010

11-
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'holesky', etc.
11+
- **`--chain`**: The chain to use for generating the deposit data. Options are: 'mainnet', 'sepolia', 'holesky', 'mekong', or 'ephemery'.
1212

1313
- **`--keystore`**: The keystore file associating with the validator you wish to deposit to.
1414

ethstaker_deposit/settings.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def __str__(self) -> str:
2929
MAINNET = 'mainnet'
3030
SEPOLIA = 'sepolia'
3131
HOLESKY = 'holesky'
32+
MEKONG = 'mekong'
3233
EPHEMERY = 'ephemery'
3334

3435
# Mainnet setting
@@ -49,6 +50,12 @@ def __str__(self) -> str:
4950
GENESIS_FORK_VERSION=bytes.fromhex('01017000'),
5051
EXIT_FORK_VERSION=bytes.fromhex('04017000'),
5152
GENESIS_VALIDATORS_ROOT=bytes.fromhex('9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1'))
53+
# Mekong setting
54+
MekongSetting = BaseChainSetting(
55+
NETWORK_NAME=MEKONG,
56+
GENESIS_FORK_VERSION=bytes.fromhex('10637624'),
57+
EXIT_FORK_VERSION=bytes.fromhex('40637624'),
58+
GENESIS_VALIDATORS_ROOT=bytes.fromhex('9838240bca889c52818d7502179b393a828f61f15119d9027827c36caeb67db7'))
5259
# Ephemery setting
5360
# From https://github.com/ephemery-testnet/ephemery-genesis/blob/master/values.env
5461
EphemerySetting = BaseChainSetting(
@@ -65,6 +72,7 @@ def __str__(self) -> str:
6572
MAINNET: MainnetSetting,
6673
SEPOLIA: SepoliaSetting,
6774
HOLESKY: HoleskySetting,
75+
MEKONG: MekongSetting,
6876
EPHEMERY: EphemerySetting,
6977
}
7078

0 commit comments

Comments
 (0)