Open ofux opened 1 month ago
I am applying to this issue via OnlyDust platform.
yoooooo
yooooo
I am applying to this issue via OnlyDust platform.
As an experienced analyst and blockchain developer with 15 years in the industry. i likely encountered a variety of challenges that these technologies can help address. My technical expertise and problem-solving skills will be valuable assets in leveraging Java.
To solve this issue, we can take a two-pronged approach:
Mocking-based Testing: Create unit tests for the processors by mocking events and ensuring the processors correctly extract the necessary information. Mock the Starknet provider or use the Katana test runner to test the logic around event fetching and pagination. This allows testing the processor logic in isolation. Integration Testing: Create integration tests that exercise the full Torii engine functionality, including the interaction between the engine and processors. Use real event data from a test Starknet node or recorded event data to ensure the engine and processors work correctly with real-world data. This helps catch issues arising from the engine-processor interaction and ensures the overall system functions as expected.
I am applying to this issue via OnlyDust platform.
I am a MERN stack developer with a strong focus on React development and experience in building scalable web and mobile applications. My work on various projects, including e-commerce platforms and LMS systems, has honed my skills in both front-end and back-end technologies. I am proficient in Node.js, Express.js, AWS serverless, and Docker CI/CD, with a growing interest in blockchain technology. My ability to deliver comprehensive solutions makes me a strong fit for innovative projects that require a blend of technical expertise and creativity.
My approach to problem-solving begins with thoroughly understanding the problem, clarifying any unclear requirements, and identifying constraints. I then break the problem into smaller, manageable components, prioritizing tasks based on impact. After researching and exploring potential solutions, I choose the best approach, often starting with a prototype. I iterate and refine the solution based on feedback and thorough testing. Finally, I ensure that the process is well-documented for future reference and continuous improvement.
Torii engine is in charge of pulling the events and processing each one of them using the corresponding processor.
More tests have to be added to ensure the modifications made to the engine and processors are correctly done.
The engine is here: https://github.com/dojoengine/dojo/blob/22072dd62792fd3625d5c02c1f10254b6b10f9f5/crates/torii/core/src/engine.rs The processors are here: https://github.com/dojoengine/dojo/blob/22072dd62792fd3625d5c02c1f10254b6b10f9f5/crates/torii/core/src/processors/mod.rs
Two approaches to write those tests:
Mocking: by not using any underlying node, all processors can first be tested with mocked events, constructed by end, to ensure we can extract correctly the information for a well formatted event. To test the logic around the event fetching and pagination, the starknet provider can also be mocked, or Katana test runner may be use. This issue can be tackled in two PR if necessary.