Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapplion/beacon-devnet-genesis
https://github.com/dapplion/beacon-devnet-genesis
Last synced: about 19 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/dapplion/beacon-devnet-genesis
- Owner: dapplion
- Created: 2023-04-20T08:15:15.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-30T06:19:17.000Z (11 months ago)
- Last Synced: 2024-12-28T06:48:05.633Z (10 days ago)
- Language: Rust
- Size: 210 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# beacon-devnet-genesis
Generate beacon chain devnet genesis states from mnemonics
```
Generate beacon chain devnet genesis states from mnemonicsUsage: beacon-devnet-genesis [OPTIONS] --testnet-dir --mnemonics
Options:
--testnet-dir Path to directory containing eth2_testnet specs
--output Output dir for genesis.ssz and tranches dir
--eth1-block Block hash of the execution genesis, or block hash of deposit contract deploy tx
--mnemonics YAML file listing the mnemonic of genesis keys, in format
\`\`\`yaml
- mnemonic: "reward base tuna ..." # a 24 word BIP 39 mnemonic
count: 100 # amount of validators
\`\`\`
-h, --help Print help
-V, --version Print version
```If some fork happens at genesis (`ALTAIR_FORK_EPOCH = 0`) it will upgrade the state to the latest fork with epoch 0.
You can set withdrawal credentials for a set of validators in the mnemonics file:
```yaml
- mnemonic: "reward base tuna ..." # a 24 word BIP 39 mnemonic
count: 100 # amount of validators
- mnemonic: "hint dizzy fog ..."
count: 9000
withdrawal_execution_address: 0xabababababababababababababababababababab
# ... more
```## From dockerhub
```
docker run dapplion/beacon-devnet-genesis --help
```## bin usage
```
cargo install beacon-devnet-genesis
```
```
beacon-devnet-genesis --help
```## Example
```
cargo run -- --testnet-dir tests/testnet_dir_minimal/ --mnemonics tests/mnemonics.yml
```