Skip to content

feat: deserialize genesis file#57

Merged
juanbono merged 17 commits intomainfrom
deserialize-genesis-file
Jun 25, 2024
Merged

feat: deserialize genesis file#57
juanbono merged 17 commits intomainfrom
deserialize-genesis-file

Conversation

@fmoletta
Copy link
Contributor

@fmoletta fmoletta commented Jun 24, 2024

Motivation

Description

Define structs Genesis, ChainConfig & Account, and implement custom deserialization in order to parse the genesis file.

Closes #14
Also closes #46

@fmoletta fmoletta changed the title [WIP] Deserialize genesis file feat: Deserialize genesis file Jun 25, 2024
@fmoletta fmoletta changed the title feat: Deserialize genesis file feat: deserialize genesis file Jun 25, 2024
@fmoletta fmoletta marked this pull request as ready for review June 25, 2024 13:44
@fmoletta fmoletta requested a review from a team as a code owner June 25, 2024 13:44
@juanbono juanbono merged commit 1b7e82d into main Jun 25, 2024
@juanbono juanbono deleted the deserialize-genesis-file branch June 25, 2024 21:28
MegaRedHand pushed a commit that referenced this pull request Jun 26, 2024
Based on #57 
**Motivation**

Read genesis file from kurtosis.
In order to do this, uncomment the following lines in the
[ethereum-package
fork](https://github.com/lambdaclass/ethereum-package/blob/7c8cb1b89d098bb81308c44107cc9a7d032d6536/src/el/ethrex/ethrex_launcher.star#L200):
```
        "--network={0}".format(
            network
            if network in constants.PUBLIC_NETWORKS
            else constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER + "/genesis.json"
        ),
```

**Description**

Add `network` arg to CLI.
Deserialize genesis file from the path provided by the `network` arg
<!-- Link to issues: Resolves #111, Resolves #222 -->

Closes #62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parse account info of initial accounts from genesis.json file Populate ChainSpec based on information stored in genesis.json file

2 participants