-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sequencer-utils): generate example genesis state (#1224)
## Summary Provides a `generate-genesis-state` subcommand to sequencer-utils. ## Background We had a `test-genesis.json` file committed to the repo that was not checked to be in-sync with the most recent version of sequencer's actual `GenesisState`. The subcommand `generate-genesis-state` removes the need to keep the file in sync because one can always generate one that matches the current format. ## Changes - remove `astria-sequencer/test-genesis-app-state.json` - move sequencer's `GenesisState` to the new `astria-core::sequencer` submodule. Because this config is effectively a public API, it is justified to be outside of the `astria-sequencer` binary crate. ## Testing It is a very thin binary which can be run by hand. The specific format of `GenesisState` not changing is ensured by a snapshot test that was moved from `astria-sequencer` to `astria-core`. ## Related Issues Closes #1212 --------- Co-authored-by: noot <[email protected]>
- Loading branch information
1 parent
a8db883
commit e3e7548
Showing
23 changed files
with
370 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...is__test__genesis_state_is_unchanged.snap → ...r__tests__genesis_state_is_unchanged.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.