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

Reexport geth pre_state AccountState, DiffMode and PreStateMode #3922

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

pistomat
Copy link
Contributor

@pistomat pistomat commented Jul 26, 2023

These three pub structs are the the only not reexported from the whole geth tracing module. Because of this you cannot instatiate your own PreStateFrame.

I intend to use this for ethers-reth tracing module.

@pistomat pistomat changed the title Reexport geth pre_state accountState and diffMode Reexport geth pre_state AccountState, DiffMode and PreStateMode Jul 26, 2023
@@ -11,7 +11,7 @@ pub use self::{
call::{CallConfig, CallFrame, CallLogFrame},
four_byte::FourByteFrame,
noop::NoopFrame,
pre_state::{PreStateConfig, PreStateFrame},
pre_state::{AccountState, DiffMode, PreStateConfig, PreStateFrame, PreStateMode},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe just reexport everything to make it futureproof?

// re-exports
pub use self::{
    call::*,
    four_byte::*,
    noop::*,
    pre_state::*,
};

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #3922 (f17df1a) into main (736de20) will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

Files Changed Coverage Δ
crates/rpc/rpc-types/src/eth/trace/geth/mod.rs 73.43% <ø> (ø)

... and 9 files with indirect coverage changes

Flag Coverage Δ
integration-tests 15.48% <ø> (-0.01%) ⬇️
unit-tests 64.49% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
reth binary 27.24% <ø> (ø)
blockchain tree 83.01% <ø> (ø)
pipeline 89.68% <ø> (ø)
storage (db) 74.19% <ø> (ø)
trie 94.70% <ø> (ø)
txpool 46.00% <ø> (ø)
networking 77.61% <ø> (-0.09%) ⬇️
rpc 58.39% <ø> (+<0.01%) ⬆️
consensus 64.46% <ø> (ø)
revm 33.68% <ø> (ø)
payload builder 6.61% <ø> (ø)
primitives 88.03% <ø> (-0.03%) ⬇️

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

@mattsse mattsse enabled auto-merge July 26, 2023 11:52
@mattsse mattsse added this pull request to the merge queue Jul 26, 2023
@mattsse mattsse added C-debt Refactor of code section that is hard to understand or maintain A-rpc Related to the RPC implementation labels Jul 26, 2023
Merged via the queue into paradigmxyz:main with commit d5ea168 Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants