-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(sdk): integrate generic receipt into execution #12397
base: main
Are you sure you want to change the base?
Conversation
2c4f8f3
to
05d2941
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this required additional work on the trait level, I'd prefer to submit trait changes separately
crates/primitives/src/lib.rs
Outdated
|
||
/// Temp helper struct for integrating [`NodePrimitives`](reth_primitives_traits::NodePrimitives). | ||
#[derive(Debug, Clone, Default)] | ||
pub struct AnyPrimitives; | ||
|
||
impl reth_primitives_traits::NodePrimitives for AnyPrimitives { | ||
type Block = crate::Block; | ||
type BlockHeader = alloy_consensus::Header; | ||
type BlockBody = crate::BlockBody; | ||
type SignedTx = crate::TransactionSigned; | ||
type TxType = crate::TxType; | ||
type Receipt = crate::Receipt; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we needed to access them in the code already generalised by arseni
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i.e. merge conflicts
adff3ef
to
53c8a2f
Compare
…om:paradigmxyz/reth into emhane/integrate-generic-receipt-execution
#[derive(Debug, Clone, Default, PartialEq, Eq)] | ||
pub struct AnyPrimitives; | ||
|
||
impl reth_primitives_traits::NodePrimitives for AnyPrimitives { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to just use EthPrimitives
for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the reason I made AnyPrimitives
, is so that we can replace type by type inside EthPrimitives
and OpPrimitives
, component by component, and don't have to wait till we can replace a type on EthPrimitives
and OpPrimitives
across all components at the same time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can replace type by type inside
EthPrimitives
wdym? I'd expect EthPrimitives to be the same as right now (besides transaction type being changed eventually). so given that AnyPrimitives are same as EthPrimitives right now this would probably hold?
Ref #12358