feat(pathfinder): add pathfinding utilities and SQLite integration#52
Merged
MartianGreed merged 7 commits intomainfrom Apr 3, 2026
Merged
feat(pathfinder): add pathfinding utilities and SQLite integration#52MartianGreed merged 7 commits intomainfrom
MartianGreed merged 7 commits intomainfrom
Conversation
- Introduced a new crate `pathfinder` for pathfinding utilities in the Torii project. - Updated `Cargo.toml` to include the new `pathfinder` crate and its dependencies. - Implemented event decoding and compression in `decoding.rs`. - Added error handling with custom error types in `error.rs`. - Created an extractor for fetching events from the database in `extractor.rs`. - Developed a fetcher for retrieving emitted events and block contexts in `fetcher.rs`. - Defined SQLite data structures and extension methods for database interactions in `sqlite.rs`. - Added utility functions for database connection in `utils.rs`. - Implemented tests for emitted events retrieval in `test.rs`. - Included binary dictionaries for event compression in `assets`.
📊 Synthetic Benchmark ResultsComparing against baseline: 20260403T073044Z Performance Summary
Comparison with Baseline
Legend:
Stage Latency Breakdown
Generated by Synthetic Benchmark CI |
- Introduced a new `Felt` type to represent StarkNet field elements. - Implemented serialization and deserialization for `Felt` using Serde. - Added conversion implementations between `Felt` and StarkNet's native types. - Created `EmittedEvent` and `Event` structs for handling StarkNet events. - Added tests for serialization and deserialization of `Felt` to ensure correctness. - Updated the `test.rs` file to include tests for fetching emitted events with context.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pathfinderfor pathfinding utilities in the Torii project.Cargo.tomlto include the newpathfindercrate and its dependencies.decoding.rs.error.rs.extractor.rs.fetcher.rs.sqlite.rs.utils.rs.test.rs.assets.