Closed tcoratger closed 3 weeks ago
Hi @tcoratger, I would like to contribute to this issue, kindly assign me.
Hey @Samrath49! Thanks for showing interest. We've created an application for you to contribute to Kakarot zkEVM. Go check it out on OnlyDust!
@Samrath49 Assigned
@Samrath49 any update on this?
@tcoratger can you explain more about the issue with references to simplifying WithOtherFields
I am applying to this issue via OnlyDust platform.
I want to work on this
I am applying to this issue via OnlyDust platform.
As a seasoned Rust developer, I have a proven track record of optimizing complex codebases for both performance and readability. My experience includes refactoring legacy code, implementing type aliases, and working with RPC systems. I'm confident in my ability to improve the clarity and maintainability of our WithOtherFields
The summary you provided is clear and well-structured. Here are a few points to consider for improvement and clarity:
Strengths Clarity: The steps are articulated in a logical order, making it easy to follow your approach. Comprehensive: It covers all essential aspects, from analysis to documentation and communication. Focus on Collaboration: Emphasizing team communication is a great addition, as it highlights a collaborative mindset. Minor Suggestions Conciseness: While the paragraph is clear, you might condense some phrases to enhance readability. Terminology Consistency: Ensure terms like "redundant" and "essential" are clearly defined if the audience may not be familiar with them. Revised Version Here’s a slightly refined version:
To approach the problem, I would start with a thorough code review to identify all instances of WithOtherFields
I am applying to this issue via OnlyDust platform.
Hey there! I'm really excited about this task - it's right up my alley. I've been working with Rust and blockchain tech for a while now, and I love digging into codebases to make them cleaner and more efficient.
For this problem, here's how I'd tackle it:
First off, I'd dive into the code and really get a feel for how we're using WithOtherFields
Hey Thomas @tcoratger Can I take this one? ☝️
I am applying to this issue via OnlyDust platform.
I am a data scientist who is skilled in python, data analysis, machine learning, and problem solving. My skills can be leveraged for problem-solving and code manipulation
1.Remove unnecessary WithOtherFields
I am applying to this issue via OnlyDust platform.
As a Python-proficient data scientist, i excel in cleaning, exploring, and visualizing data, as well as building models to solve real-world business problems. My strengths in data wrangling, exploratory data analysis, and clear communication of insights make me a valuable asset for driving data-driven decision-making.
Fristly, i will conduct a thorough review of your codebase to find instances where WithOtherFields
I am applying to this issue via OnlyDust platform.
I am a core linux dev, i have worked on ci/cd pipelines before, alongside that i have worked on ML models, i am on an outlook to learn more in more fields, i think ill be able to tackle this issue
a) Audit current usage of WithOtherFields
I am applying to this issue via OnlyDust platform.
Member of Dojo Coding. I have contributed before to other Kakarot projects like:
kakarot-rpc
kakarot-ssj
ef-tests
Can I work on this issue?
Check my OnlyDust profile, I've contributed to many projects: Profile
@Gerson2102 assigned
Hey @tcoratger. So where should I look for all the usages of the WithOtherFields<T>
inside of the code? Maybe all those files that u changed on the linked PR of the issue description?
In our codebase, we use the
other
field of transactions to storeisRunOutOfResources
information. This leads to extensive usage ofWithOtherFields<T>
throughout the code after the merge of https://github.com/kkrt-labs/kakarot-rpc/pull/1389, especially when handling conversions between RPC and primitive types, as seen in https://github.com/paradigmxyz/reth/blob/fba837468cac5143b415c9dd4fdc9218d71a926b/crates/primitives/src/alloy_compat.rs#L55-L212.However, this approach is complex and can be optimized for better readability and management.
Proposal
WithOtherFields<T>
, replacing them with justT
where the extra fields aren't needed.ExtendedTransaction = WithOtherFields<Transaction>
(and similar for blocks) to standardize its usage where necessary.