Skip to content

Commit

Permalink
Merge pull request #303 from dojoengine/torii-upgrade
Browse files Browse the repository at this point in the history
feat: Torii upgrade
  • Loading branch information
ponderingdemocritus authored Oct 17, 2024
2 parents e7d6f1f + 8ef3c84 commit b3339ce
Show file tree
Hide file tree
Showing 6 changed files with 2,636 additions and 3,281 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: git submodule update --init --recursive

- run: curl -L https://install.dojoengine.org | bash
- run: /home/runner/.config/.dojo/bin/dojoup -v v1.0.0-alpha.12
- run: /home/runner/.config/.dojo/bin/dojoup -v v1.0.0-alpha.16
- run: |
cd worlds/dojo-starter
/home/runner/.config/.dojo/bin/sozo build
Expand Down
2 changes: 1 addition & 1 deletion packages/state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"dependencies": {
"@dojoengine/recs": "2.0.13",
"@dojoengine/torii-client": "1.0.0-alpha.20",
"@dojoengine/torii-client": "workspace:*",
"vitest": "^1.6.0"
}
}
9 changes: 8 additions & 1 deletion packages/state/src/recs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ export const getEntities = async <S extends Schema>(
let continueFetching = true;

while (continueFetching) {
const entities = await client.getEntities({ limit, offset, clause });
const entities = await client.getEntities({
limit,
offset,
clause,
dont_include_hashed_keys: true,
});

if (logging) console.log(`Fetched ${entities} entities`);

Expand Down Expand Up @@ -160,6 +165,7 @@ export const getEvents = async <S extends Schema>(
limit,
offset,
clause,
dont_include_hashed_keys: true,
});

if (logging) console.log("entities", entities);
Expand Down Expand Up @@ -226,6 +232,7 @@ export const getEntitiesQuery = async <S extends Schema>(
limit,
offset: cursor,
clause: clause || undefined,
dont_include_hashed_keys: true,
});

while (continueFetching) {
Expand Down
2 changes: 1 addition & 1 deletion packages/torii-wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -ex

# Clone the repository
git clone --depth 1 https://github.com/dojoengine/dojo.c dojo.c
git clone --depth 1 --branch grpc-update https://github.com/dojoengine/dojo.c dojo.c
cd dojo.c

# Build for web (browser)
Expand Down
Loading

0 comments on commit b3339ce

Please sign in to comment.