Skip to content

Commit

Permalink
feat: batch entities (#2633)
Browse files Browse the repository at this point in the history
* feat: add batch operations and remove historical events

* fix: ensure Array is returned and not span for multiples

* fix: fix historical and add batch entities

* chore: bump scarb

* tests: fix tests for not copiable type
  • Loading branch information
glihm authored Nov 5, 2024
1 parent 92cfad0 commit cf1d99f
Show file tree
Hide file tree
Showing 28 changed files with 864 additions and 313 deletions.
61 changes: 26 additions & 35 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ rpassword = "7.2.0"
rstest = "0.18.2"
rstest_reuse = "0.6.0"
salsa = "0.16.1"
#scarb = { git = "https://github.com/software-mansion/scarb", tag = "v2.8.4" }
#scarb-ui = { git = "https://github.com/software-mansion/scarb", tag = "v2.8.4" }
scarb = { git = "https://github.com/dojoengine/scarb", branch = "dojo-284" }
scarb-ui = { git = "https://github.com/dojoengine/scarb", branch = "dojo-284" }
#scarb = { path = "/Users/glihm/swm/scarb/scarb" }
Expand Down
4 changes: 1 addition & 3 deletions bin/sozo/src/commands/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,9 @@ async fn match_event<P: Provider + Send + Sync>(
(
format!("Event emitted ({})", tag),
format!(
"Selector: {:#066x}\nContract: {}\nHistorical: {}\nKeys: {}\nValues: \
{}\nData:\n{}",
"Selector: {:#066x}\nContract: {}\nKeys: {}\nValues: {}\nData:\n{}",
e.selector,
contract_tag,
e.historical,
e.keys
.iter()
.map(|k| format!("{:#066x}", k))
Expand Down
Loading

0 comments on commit cf1d99f

Please sign in to comment.