Skip to content

Commit

Permalink
refactor(sozo): make event parsing logic modular and reusable (#1556)
Browse files Browse the repository at this point in the history
* refacto: using cainome parser in order to parse events in sozo

* refacto: clean logs + add tests

* fix: clippy error

* refacto: best error handling

* update how felt are displayed + remove  unnecessary expect in tests

* fix tests

* fix: fmt and artifacts parsing for missing events

* fix: adjust event count as now world and base are included

* return error from parse_and_print_events function

* fix: ensure world address is always present to filter events

---------

Co-authored-by: glihm <[email protected]>
  • Loading branch information
Matth26 and glihm authored Mar 14, 2024
1 parent ae8db10 commit 948233c
Show file tree
Hide file tree
Showing 3 changed files with 490 additions and 151 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bin/sozo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ tracing-log = "0.1.3"
tracing.workspace = true
url.workspace = true

cainome = { git = "https://github.com/cartridge-gg/cainome", tag = "v0.2.2" }

[dev-dependencies]
assert_fs = "1.0.10"
dojo-test-utils = { workspace = true, features = [ "build-examples" ] }
Expand Down
Loading

0 comments on commit 948233c

Please sign in to comment.