Skip to content

Commit

Permalink
Adding the Mekong testnet settings as another supported testnet (#231)
Browse files Browse the repository at this point in the history
* Adding the Mekong testnet settings as another supported testnet

* Update documentation with correct list of named networks
  • Loading branch information
remyroy authored Nov 5, 2024
1 parent e8fc729 commit cc61fdc
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/src/existing_mnemonic.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Uses an existing BIP-39 mnemonic phrase for key generation.

## Optional Arguments

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/src/exit_transaction_keystore.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Creates an exit transaction using a keystore file.

## Optional Arguments

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/src/exit_transaction_mnemonic.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Creates an exit transaction using a mnemonic phrase.

## Optional Arguments

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/src/generate_bls_to_execution_change.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Generates a BLS to execution address change message. This is used to add a withd

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/src/generate_bls_to_execution_change_keystore.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Signs a withdrawal credential update message using the provided keystore. This s

## Optional Arguments

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/src/new_mnemonic.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Generates a new BIP-39 mnemonic along with validator keystore and deposit files

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/src/partial_deposit.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ If you wish to create a validator with 0x00 credentials, you must use the **[new

## Optional Arguments

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

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

Expand Down
8 changes: 8 additions & 0 deletions ethstaker_deposit/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def __str__(self) -> str:
MAINNET = 'mainnet'
SEPOLIA = 'sepolia'
HOLESKY = 'holesky'
MEKONG = 'mekong'
EPHEMERY = 'ephemery'

# Mainnet setting
Expand All @@ -49,6 +50,12 @@ def __str__(self) -> str:
GENESIS_FORK_VERSION=bytes.fromhex('01017000'),
EXIT_FORK_VERSION=bytes.fromhex('04017000'),
GENESIS_VALIDATORS_ROOT=bytes.fromhex('9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1'))
# Mekong setting
MekongSetting = BaseChainSetting(
NETWORK_NAME=MEKONG,
GENESIS_FORK_VERSION=bytes.fromhex('10637624'),
EXIT_FORK_VERSION=bytes.fromhex('40637624'),
GENESIS_VALIDATORS_ROOT=bytes.fromhex('9838240bca889c52818d7502179b393a828f61f15119d9027827c36caeb67db7'))
# Ephemery setting
# From https://github.com/ephemery-testnet/ephemery-genesis/blob/master/values.env
EphemerySetting = BaseChainSetting(
Expand All @@ -65,6 +72,7 @@ def __str__(self) -> str:
MAINNET: MainnetSetting,
SEPOLIA: SepoliaSetting,
HOLESKY: HoleskySetting,
MEKONG: MekongSetting,
EPHEMERY: EphemerySetting,
}

Expand Down

0 comments on commit cc61fdc

Please sign in to comment.