-
Notifications
You must be signed in to change notification settings - Fork 151
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(primitives): add additional common aliases #654
Conversation
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.
lgtm otherwise, no strong feeling either way, just dont want us to end up not using the new alias:)
@@ -65,6 +65,9 @@ pub type BlockHash = B256; | |||
/// A block number. | |||
pub type BlockNumber = u64; | |||
|
|||
/// A block timestamp. | |||
pub type BlockTimestamp = u64; |
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.
unsure if we should add this w/o also using it, so maybe a separate pr?
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 would update alloy-rs/alloy#859 to include it so it would be used there
Same for TxNonce
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.
hmm, I'm sceptical that these aliases are useful
Added some additional context here: alloy-rs/alloy#859
|
Motivation
Closes: #653
For context + related PR in
alloy
: alloy-rs/alloy#859Solution
Add generic aliases unrelated to specific EIPs
TxNonce
(with doc alias)BlockTimestamp
PR Checklist