Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bindings): Split out Primitive Types #262

Merged
merged 13 commits into from
Jun 13, 2024
Merged

Conversation

refcell
Copy link
Contributor

@refcell refcell commented Jun 6, 2024

Description

This PR splits primitive types from the rust bindings so they can be used without serde enabled in kona. This makes primitive types here portable for downstream non-serde applications.

This pr also

  • Ports the RollupConfig definition from kona to the superchain registry.
  • Ports the SystemConfig definition from kona to the superchain registry.
  • Makes ChainGenesis generic and removes kona's Genesis type.
  • De-duplicates GenesisSytemConfig and SystemConfig, making fields optional where needed.
  • Defines static instances for the OP Mainnet + Sepolia and Base Mainnet + Sepolia Rollup Configs.

Metadata

Fixes op-rs/kona#219

@refcell refcell requested a review from clabby June 6, 2024 21:12
@refcell refcell self-assigned this Jun 6, 2024
@refcell refcell requested a review from a team as a code owner June 6, 2024 21:12
@refcell refcell requested a review from axelKingsley June 6, 2024 21:12
@refcell refcell requested a review from a team as a code owner June 12, 2024 22:51
Copy link
Member

@clabby clabby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

.github/workflows/rust-checks.yml Outdated Show resolved Hide resolved
bindings/rust-primitives/src/rollup_config.rs Show resolved Hide resolved
bindings/rust-primitives/src/rollup_config.rs Outdated Show resolved Hide resolved
Copy link
Member

@sebastianst sebastianst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only reviewed the very few non-rust changes. Deferring to @clabby's rust review otherwise.

@refcell refcell merged commit bdcd37e into main Jun 13, 2024
9 checks passed
@refcell refcell deleted the refcell/rust-primitives branch June 13, 2024 16:08
This was referenced Jun 25, 2024
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.

feat(primitives): Migrate to superchain-registry primitives
3 participants