Closed zerosnacks closed 3 months ago
hmm, I'm sceptical that these aliases are useful
Added some additional context here: https://github.com/alloy-rs/alloy/pull/859
Reduces magic values, reduces chance of error and makes it easier for end-users to see what value they are getting e.g. TxHash instead of FixedBytes<32> when watch()-ing a transaction. Main goal is to limit showing internal types and help with consistency / standardize fields / encourage native types (
u64
vsU64
) and sizes.
Motivation
Closes: https://github.com/alloy-rs/core/issues/653
For context + related PR in
alloy
: https://github.com/alloy-rs/alloy/pull/859Solution
Add generic aliases unrelated to specific EIPs
TxNonce
(with doc alias)BlockTimestamp
PR Checklist