-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core, proto)!: define app genesis state in proto (#1346)
## Summary Defines `astria.protocol.genesis.v1alpha1.GenesisAppState`, replacing the Rust-as-JSON definition. ## Background All protocol relevant Astria types are supposed to be defined in Astria's protobuf spec. With #1285 having redefined the memos as protobuf message, this patch migrates the last type to protobuf spec. ## Changes - Define `astria.protocol.genesis.v1alpha1.GenesisAppState` and related protobuf messages - Remove the `astria-core::sequencer::GenesisState` module - Update Sequencer in terms of the protobuf type - Update all charts and snapshots (especially the genesis template) ## Testing All tests have been updated to use the new types, including snapshot tests. The genesis state is only read at `init-chain` and does not affect the evaluation of the state machine. Hence no tests should change as long as the same data is passed in (which is reflected by `tests-breaking-changes` leading to the same hash). ## Breaking Changelist This is a breaking change because an old sequencer would not understand a new (json-formatted) genesis app state and vise versa. ## Related issues Closes #1347
- Loading branch information
1 parent
10b196a
commit acff940
Showing
29 changed files
with
2,077 additions
and
657 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
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
126 changes: 126 additions & 0 deletions
126
crates/astria-core/src/generated/astria.protocol.genesis.v1alpha1.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.