Skip to content

Commit b3339ce

Browse files
Merge pull request #303 from dojoengine/torii-upgrade
feat: Torii upgrade
2 parents e7d6f1f + 8ef3c84 commit b3339ce

File tree

6 files changed

+2636
-3281
lines changed

6 files changed

+2636
-3281
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: git submodule update --init --recursive
2121

2222
- run: curl -L https://install.dojoengine.org | bash
23-
- run: /home/runner/.config/.dojo/bin/dojoup -v v1.0.0-alpha.12
23+
- run: /home/runner/.config/.dojo/bin/dojoup -v v1.0.0-alpha.16
2424
- run: |
2525
cd worlds/dojo-starter
2626
/home/runner/.config/.dojo/bin/sozo build

packages/state/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"dependencies": {
2727
"@dojoengine/recs": "2.0.13",
28-
"@dojoengine/torii-client": "1.0.0-alpha.20",
28+
"@dojoengine/torii-client": "workspace:*",
2929
"vitest": "^1.6.0"
3030
}
3131
}

packages/state/src/recs/index.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,12 @@ export const getEntities = async <S extends Schema>(
122122
let continueFetching = true;
123123

124124
while (continueFetching) {
125-
const entities = await client.getEntities({ limit, offset, clause });
125+
const entities = await client.getEntities({
126+
limit,
127+
offset,
128+
clause,
129+
dont_include_hashed_keys: true,
130+
});
126131

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

@@ -160,6 +165,7 @@ export const getEvents = async <S extends Schema>(
160165
limit,
161166
offset,
162167
clause,
168+
dont_include_hashed_keys: true,
163169
});
164170

165171
if (logging) console.log("entities", entities);
@@ -226,6 +232,7 @@ export const getEntitiesQuery = async <S extends Schema>(
226232
limit,
227233
offset: cursor,
228234
clause: clause || undefined,
235+
dont_include_hashed_keys: true,
229236
});
230237

231238
while (continueFetching) {

packages/torii-wasm/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -ex
55

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

1010
# Build for web (browser)

0 commit comments

Comments
 (0)