-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
use alloy transaction types #9484
Comments
I can take this on. |
cool, this will likely be a bit painful, see #9485 for ref |
@mattsse Looking into this, it seems I will have to convert from reth For instance in the code below, I would like to call reth/crates/primitives/src/transaction/pooled.rs Lines 303 to 306 in cbe9a7c
|
is the end goal to replace |
|
This issue is stale because it has been open for 21 days with no activity. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHello! I am a software engineer with approx 8 years experience in Python, Java and Typescript. I have recently been learning rust and studying the core program with the Privacy and Scaling Explorations team to learn more about applied ZK. Whilst new to rust, I have a lot of experience in writing maintainable, tested and clean code and know I can contribute positively to your code base! How I plan on tackling this issueSince it seems like a fairly straightforward migration, I would check the examples that have been given and ensure that I replicate the methodology. |
@tcoratger thank you for working on all PRs from here! would you like to work on |
Mhh not sure we have all the required methods in alloy |
deposit transactions can't be signed, so we won't need those |
And we need to merge this right? alloy-rs/op-alloy#68 |
yep |
@klkvr Also previously we had a method like: pub(crate) fn payload_len_without_header(&self) -> usize {
let payload_length = self.fields_len();
// 'transaction type byte length' + 'header length' + 'payload length'
1 + length_of_length(payload_length) + payload_length
} which calculates basically fn length(&self) -> usize {
let payload_length = self.fields_len();
Header { list: true, payload_length }.length() + payload_length
} but we lack the 'transaction type byte length' so this is also a method to add in op alloy right? |
yeah, I think we can add |
Thank you for the awesome work! I wonder if we have the same plan for
|
yes, will track |
@mattsse If you open an issue please tag me. If I've time, will have a look |
the core tx types are quivalent to alloy's:
reth/crates/primitives/src/transaction/eip1559.rs
Line 13 in 67f6176
the only difference is the codec impl
reth/crates/primitives/src/transaction/eip1559.rs
Line 11 in 67f6176
we can implement codec by doing the same as for
reth/crates/storage/codecs/src/alloy/withdrawal.rs
Lines 6 to 11 in 67f6176
TODO
TxEip2930
#10623TxEip4844
#10624TxEip7702
#10617This should be done in separate prs and involves
there are likely missing/renamed functions in alloy, so we need to surface those and add to alloy if appropriate
The text was updated successfully, but these errors were encountered: