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

chore: deduplicate AccessList and Withdrawals types #324

Merged
merged 16 commits into from
Mar 22, 2024

Conversation

JackG-eth
Copy link
Contributor

@JackG-eth JackG-eth commented Mar 15, 2024

closes #255

deduplicates AccessList+Withdrawals by moving them into eips crate and reusing them in rpc and consensus

Copy link
Member

@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.

great start,

a few more todos!

crates/eips/Cargo.toml Outdated Show resolved Hide resolved
crates/eips/src/withdrawal.rs Outdated Show resolved Hide resolved
crates/eips/src/eip4895.rs Show resolved Hide resolved
@mattsse
Copy link
Member

mattsse commented Mar 21, 2024

fyi @klkvr with this AccessList types are deduplicated

@DaniPopes
Copy link
Member

Can we get a more descriptive PR name and "closes #..." tags?

@mattsse mattsse changed the title Feature duplicates chore: deduplicate AccessList and Withdrawals types Mar 21, 2024
@mattsse mattsse mentioned this pull request Mar 22, 2024
3 tasks
@onbjerg
Copy link
Member

onbjerg commented Mar 22, 2024

can you also remove

fn convert_access_list(list: alloy_rpc_types::AccessList) -> alloy_eips::eip2930::AccessList {
which was part of the motivation for this PR?

Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

(see above)

@mattsse
Copy link
Member

mattsse commented Mar 22, 2024

done

Copy link
Member

@onbjerg onbjerg 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 merged commit 3224c25 into alloy-rs:main Mar 22, 2024
16 checks passed
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.

[Feature] Deduplicate consensus and rpc types AccessList
4 participants