Skip to content

Conversation

@noot
Copy link
Contributor

@noot noot commented Nov 29, 2025

consumers of flashblocks types should not be forced to import and build the entire rollup-boost binary to use some types.

iI ran into depedency hell when trying to modify simulator; I needed to update the reth dep, but simulator was also importing the entire rollup-boost library when it was only using the FlashblocksPayloadV1 type, which would have required me to also fork and update rollup-boost. with this change, that will no longer be necessary.

op-rbuilder also imports the entire rollup-boost binary for only these types.

Copilot AI review requested due to automatic review settings November 29, 2025 00:28
@vercel
Copy link

vercel bot commented Nov 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
rollup-boost Ignored Ignored Preview Dec 4, 2025 10:07pm

@noot noot changed the title move flashblock primitive types to rollup-boost-core crate refactor: move flashblock primitive types to rollup-boost-core crate Nov 29, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extracts flashblock primitive types from the rollup-boost crate into a new rollup-boost-core crate to reduce dependency requirements for consumers. This allows downstream crates to import only the core types without building the entire rollup-boost binary.

Key changes:

  • Created a new rollup-boost-core crate containing ExecutionPayloadBaseV1, ExecutionPayloadFlashblockDeltaV1, and FlashblocksPayloadV1 types
  • Updated all references throughout the codebase to import these types from the new core crate
  • Added a temporary re-export in rollup-boost for backward compatibility

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
crates/rollup-boost-core/Cargo.toml New crate definition with minimal alloy and serde dependencies
crates/rollup-boost-core/src/lib.rs New module containing moved flashblock primitive types
crates/rollup-boost/src/flashblocks/primitives.rs Removed file - types moved to core crate
crates/rollup-boost/src/lib.rs Added re-export of core flashblocks types for backward compatibility
crates/rollup-boost/Cargo.toml Added dependency on rollup-boost-core
crates/rollup-boost/src/flashblocks/*.rs Updated imports to use rollup-boost-core
crates/flashblocks-rpc/*.rs Updated imports to use rollup-boost-core directly
crates/flashblocks-rpc/Cargo.toml Added rollup-boost-core dependency
Cargo.toml Added rollup-boost-core to workspace members and dependencies
crates/rollup-boost/src/client/rpc.rs Removed unused imports
Comments suppressed due to low confidence (1)

crates/rollup-boost/Cargo.toml:4

  • The Rust edition '2024' does not exist. The latest stable Rust edition as of November 2025 is '2021'. This should be changed to '2021'.
edition = "2024"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@akundaz
Copy link
Contributor

akundaz commented Dec 1, 2025

How about calling it flashblocks-types?

@noot
Copy link
Contributor Author

noot commented Dec 1, 2025

@akundaz i think i want to add other types in here (https://github.com/flashbots/rollup-boost/blob/main/crates/rollup-boost/src/payload.rs) that aren't flashblocks related, so would prefer non-flashblock naming

Copy link

@julio4 julio4 left a comment

Choose a reason for hiding this comment

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

Ideally we might want to move it somewhere else later because flashblocks types could be used outside of rollup-boost context

Copilot AI review requested due to automatic review settings December 1, 2025 20:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 23 out of 26 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings December 4, 2025 22:07
@noot noot changed the title refactor: move flashblock primitive types to rollup-boost-core crate refactor: move flashblock types to rollup-boost-types crate Dec 4, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 23 out of 26 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@noot noot merged commit b282527 into main Dec 4, 2025
8 checks passed
@noot noot deleted the noot/rollup-boost-core branch December 4, 2025 22:14
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.

3 participants