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: Move AnyReceipt and AnyHeader to alloy-consensus-any #1609

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

moricho
Copy link
Contributor

@moricho moricho commented Nov 3, 2024

Motivation

ref #1598

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@moricho moricho marked this pull request as ready for review November 4, 2024 05:40
Comment on lines 138 to 141
#[doc(alias = "AnyTxReceipt")]
#[cfg(feature = "serde")]
pub type AnyTransactionReceipt =
alloy_serde::WithOtherFields<TransactionReceipt<alloy_consensus::AnyReceiptEnvelope<Log>>>;
alloy_serde::WithOtherFields<TransactionReceipt<alloy_consensus_any::AnyReceiptEnvelope<Log>>>;
Copy link
Member

Choose a reason for hiding this comment

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

make sense to move this receipt too right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah you're right. moved it to alloy-rpc-types-any 🙏
5b5d2ac

@moricho moricho requested a review from emhane November 4, 2024 07:07
zerosnacks
zerosnacks previously approved these changes Nov 4, 2024
crates/rpc-types-any/Cargo.toml Outdated Show resolved Hide resolved
crates/network/src/any/mod.rs Outdated Show resolved Hide resolved
use alloy_serde::WithOtherFields;

/// A catch-all header type for handling headers on multiple networks.
pub type AnyRpcHeader = alloy_rpc_types_eth::Header<alloy_consensus::AnyHeader>;

/// A catch-all block type for handling blocks on multiple networks.
pub type AnyRpcBlock =
Copy link
Member

Choose a reason for hiding this comment

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

AnyRpcBlock and AnyRpcTransaction aliases should also be in rpc-types-any

Copy link
Member

@klkvr klkvr left a comment

Choose a reason for hiding this comment

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

lgtm, pending last nit on moving RPC aliases

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.

4 participants