Skip to content

feat: Torii upgrade #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading