Skip to content

Commit

Permalink
versioning (#1637)
Browse files Browse the repository at this point in the history
* Replace public header fields with getters

This will make it easier to keep a somewhat consistent Rust API
even as we add or change various fields in the underlying
representation of the header.

* WIP upgradable types

* v2

* merge origin/main

* cargo sort

* block impls

* remove unused imports

* export types

* group imports

* v3 header

* lint

* remove v2 header definition

* move crates to workspace

* remove types from sequencer crate

* group imports

* serialization

* fix test

* fix deserialization

* cargo sort

* lint

* fix payload::empty()

* fix: visit_map deserialization

* use serde_json map

* cargo sort

* fix ResolvableChainConfigOrVersion deserialization

* move out traits and errors

* fix imports

* move errors into impls

* remove ResolvableChainConfig and generic parameters from EitherOrVersion

* remove committable trait implementation for v1 Header

* add comments for VersionedHeader

* remove StructFields enum

* add reference tests for v1, v2, and v3 header

* move reference_tests to types crate

* fix: v2 and v3 reference test

* fix comments

* add comments for Header::genesis()

* add comments for Header::create panic

* add comment for global error issue

* add comment for global error issue

* build genesis header for the current sequencer version

* version sub-directories for data dir

* move messages.json and messages.bin to data dir

* update data readme

* cargo update

* include sub dirs binaries in gitignore

---------

Co-authored-by: Jeb Bearer <[email protected]>
  • Loading branch information
imabdulbasit and jbearer authored Jul 10, 2024
1 parent 857012f commit 3d41c0e
Show file tree
Hide file tree
Showing 130 changed files with 5,510 additions and 3,798 deletions.
2 changes: 1 addition & 1 deletion .cargo/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[net]
git-fetch-with-cli = true
git-fetch-with-cli = true
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ __pycache__/
*.py[cod]
.hypothesis/
wake-coverage.cov
!data/*.bin
!data/**/*.bin

# generated by failing serialization tests
data/*-actual.json
Expand Down
Loading

0 comments on commit 3d41c0e

Please sign in to comment.