Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the Mekong testnet settings as another supported testnet #231

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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