-
Notifications
You must be signed in to change notification settings - Fork 32
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
[wip] feat: bump alloy #205
Conversation
I've removed |
f8896d1
to
1dc9552
Compare
Cargo.toml
Outdated
[patch.crates-io] | ||
alloy-sol-types = { git = "https://github.com/alloy-rs/core", rev = "17ae00a" } | ||
alloy-primitives = { git = "https://github.com/alloy-rs/core", rev = "17ae00a" } | ||
|
||
revm-primitives = { git = "https://github.com/klkvr/revm", rev = "82b99a0" } | ||
|
||
alloy-consensus = { git = "https://github.com/alloy-rs/alloy", rev = "d99f09c" } | ||
alloy-network = { git = "https://github.com/alloy-rs/alloy", rev = "d99f09c" } | ||
alloy-network-primitives = { git = "https://github.com/alloy-rs/alloy", rev = "d99f09c" } | ||
alloy-rpc-types-eth = { git = "https://github.com/alloy-rs/alloy", rev = "d99f09c" } | ||
alloy-rpc-types-engine = { git = "https://github.com/alloy-rs/alloy", rev = "d99f09c" } | ||
alloy-eips = { git = "https://github.com/alloy-rs/alloy", rev = "d99f09c" } | ||
alloy-serde = { git = "https://github.com/alloy-rs/alloy", rev = "d99f09c" } | ||
alloy-signer = { git = "https://github.com/alloy-rs/alloy", rev = "d99f09c" } | ||
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "d99f09c" } | ||
alloy-transport = { git = "https://github.com/alloy-rs/alloy", rev = "d99f09c" } |
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.
Calling this out in a comment so we don't forget to remove these patches.
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.
This is very nice work @klkvr
dd65caf
to
890c5df
Compare
~~blocked by #205~~ ported from reth
Motivation
Bumps alloy, alloy-core and alloy-eip7702.
Code changes:
fix: make a sensible encoding api alloy#1496 changed transaction encoding API, encoding functions are now prefixed with
rlp
,eip2718
ornetwork
. I've updatedTxDeposit
to have methods following this patternrefactor: use simple boolean for parity in signature core#776 updated signature type to avoid using
Parity
generic and instead just keep a boolean for parity byte. The motivation is to have more correctness in encoding and data structure. Before that it was possible to constructSigned<TxLegacy>
where transaction chain_id isSome
, but the parity would not follow EIP-155.This required a few changes to
SpanBatchTransactions
type:encode_y_parity_bits
andencode_tx_sigs_rs
are merged into singleencode_tx_sigs
which firstly encodes parity bits and thenrs
values. Same was done for decoding methodsrecover_v
method is removed. instead, we now pass theis_protected
flag down toSpanBatchLegacyTransactionData
and only setchain_id
toSome
whenis_protected
is trueBlocked by minor releases for alloy, core and revm
Solution
PR Checklist