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

feat: reth-scroll crates #33

Merged
merged 10 commits into from
Nov 25, 2024
Merged

Conversation

greged93
Copy link
Collaborator

@greged93 greged93 commented Nov 18, 2024

Overview

Introduces the scroll feature flag and Scroll Account changes. The following changes are implemented:

  • reth-scroll-* crates: introduces 4 Scroll related crates, which will accumulate as much changes as possible, in order to limit diff with upstream.
  • Account extending fields: code_size and poseidon_code_hash are added on the Ethereum account. These fields are needed for the computation of the state root.
  • ScrollStateProviderDatabase: a storage provider that implements the revm::Database trait and will thus be used during execution when the scroll feature flag is used. It caches all Scroll added fields for touched accounts during execution and can be used to build the ScrollBundleState from a revm::BundleState.

Notes

  • Some changes are marked as // TODO (scroll): .... These were added in order to make the current changes satisfy all clippy checks and will be updated in subsequent PR's related to the Account changes.
  • PR was rebased on 7f00db6 and only required some small fixes to the Cargo.lock file.

Builds towards #7

Signed-off-by: Gregory Edison <[email protected]>
Signed-off-by: Gregory Edison <[email protected]>
Signed-off-by: Gregory Edison <[email protected]>
@greged93 greged93 force-pushed the feat/reth-scroll branch 2 times, most recently from cdd8185 to 6c120a1 Compare November 19, 2024 10:16
Signed-off-by: Gregory Edison <[email protected]>
@greged93 greged93 mentioned this pull request Nov 20, 2024
frisitano
frisitano previously approved these changes Nov 21, 2024
Copy link
Collaborator

@frisitano frisitano left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! Left some minor comments inline. Once comments are answered / addressed we can merge.

crates/optimism/payload/Cargo.toml Outdated Show resolved Hide resolved
crates/primitives-traits/Cargo.toml Show resolved Hide resolved
crates/primitives/Cargo.toml Show resolved Hide resolved
crates/primitives/Cargo.toml Show resolved Hide resolved
crates/scroll/execution/src/context.rs Outdated Show resolved Hide resolved
crates/scroll/execution/src/context.rs Show resolved Hide resolved
crates/scroll/primitives/src/poseidon.rs Outdated Show resolved Hide resolved
crates/scroll/primitives/Cargo.toml Outdated Show resolved Hide resolved
@greged93 greged93 changed the title feat: Reth Scroll feat: reth-scroll crates Nov 22, 2024
Cargo.toml Outdated Show resolved Hide resolved
crates/scroll/revm/src/lib.rs Show resolved Hide resolved
Signed-off-by: Gregory Edison <[email protected]>
@frisitano frisitano self-requested a review November 25, 2024 08:23
Copy link
Collaborator

@frisitano frisitano left a comment

Choose a reason for hiding this comment

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

LGTM

@frisitano frisitano merged commit 5f1c8e3 into scroll-tech:scroll Nov 25, 2024
40 checks passed
@frisitano frisitano mentioned this pull request Dec 6, 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.

3 participants