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(sdk): Add adapter type for NodePrimitives::Receipt #12674

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

emhane
Copy link
Member

@emhane emhane commented Nov 19, 2024

Ref #12454

@emhane emhane added the A-sdk Related to reth's use as a library label Nov 19, 2024
@@ -73,3 +73,6 @@ where
type TxType = T::TxType;
type Receipt = T::Receipt;
}

/// Helper adapter type for accessing [`NodePrimitives`] receipt type.
pub type Rcpt<N> = <N as NodePrimitives>::Receipt;
Copy link
Collaborator

Choose a reason for hiding this comment

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

not a fan of abbreviations for aliases.

we will likely need a few more, so I think we should come up with a common prefix for these, perhaps just NodeReceipt?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought we rename it when we don't use reth_primitives::Receipt in the code base anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

ah no the trait is the problem nvm...wanted smthg short...

Copy link
Member Author

Choose a reason for hiding this comment

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

ReceiptTy? common suffix?

@emhane emhane requested a review from mattsse November 19, 2024 17:25
@emhane emhane enabled auto-merge November 19, 2024 17:27
@@ -73,3 +73,6 @@ where
type TxType = T::TxType;
type Receipt = T::Receipt;
}

/// Helper adapter type for accessing [`NodePrimitives`] receipt type.
pub type ReceiptTy<N> = <N as NodePrimitives>::Receipt;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I can live with a common suffix

@emhane emhane added this pull request to the merge queue Nov 19, 2024
Merged via the queue into main with commit 2b21bcf Nov 19, 2024
40 checks passed
@emhane emhane deleted the emhane/rcpt-adapter branch November 19, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sdk Related to reth's use as a library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants