Skip to content

Commit edf3745

Browse files
Merge pull request #311 from dojoengine/fix-paths
fix: paths
2 parents d3aa160 + 111d148 commit edf3745

File tree

14 files changed

+23
-18
lines changed

14 files changed

+23
-18
lines changed

examples/example-nodejs-bot/dojoConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import manifest from "../../worlds/dojo-starter/manifests/dev/deployment/manifest.json" assert { type: "json" };
1+
import manifest from "../../worlds/dojo-starter/manifest_dev.json" assert { type: "json" };
22

33
import { createDojoConfig } from "@dojoengine/core";
44

examples/example-vanillajs-phaser-recs/dojoConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createDojoConfig } from "@dojoengine/core";
22

3-
import manifest from "../../worlds/dojo-starter/manifests/dev/deployment/manifest.json";
3+
import manifest from "../../worlds/dojo-starter/manifest_dev.json";
44

55
export const dojoConfig = createDojoConfig({
66
manifest,

examples/example-vite-kitchen-sink/dojoConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createDojoConfig } from "@dojoengine/core";
22

3-
import manifest from "../../worlds/dojo-starter/manifests/dev/deployment/manifest.json";
3+
import manifest from "../../worlds/dojo-starter/manifest_dev.json";
44

55
export const dojoConfig = createDojoConfig({
66
manifest,

examples/example-vite-react-app-recs/dojoConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createDojoConfig } from "@dojoengine/core";
22

3-
import manifest from "../../worlds/dojo-starter/manifests/dev/deployment/manifest.json";
3+
import manifest from "../../worlds/dojo-starter/manifest_dev.json";
44

55
export const dojoConfig = createDojoConfig({
66
manifest,

examples/example-vite-react-phaser-recs/dojoConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import manifest from "../../worlds/dojo-starter/manifests/dev/deployment/manifest.json";
1+
import manifest from "../../worlds/dojo-starter/manifest_dev.json";
22
import { createDojoConfig } from "@dojoengine/core";
33

44
export const dojoConfig = createDojoConfig({

examples/example-vite-react-pwa-recs/dojoConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createDojoConfig } from "@dojoengine/core";
22

3-
import manifest from "../../worlds/dojo-starter/manifests/dev/deployment/manifest.json";
3+
import manifest from "../../worlds/dojo-starter/manifest_dev.json";
44

55
export const dojoConfig = createDojoConfig({
66
manifest,

examples/example-vite-react-sdk/dojoConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createDojoConfig } from "@dojoengine/core";
22

3-
import manifest from "../../worlds/dojo-starter/manifests/dev/deployment/manifest.json";
3+
import manifest from "../../worlds/dojo-starter/manifest_dev.json";
44

55
export const dojoConfig = createDojoConfig({
66
manifest,

examples/example-vite-react-threejs-recs/dojoConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createDojoConfig } from "@dojoengine/core";
22

3-
import manifest from "../../worlds/dojo-starter/manifests/dev/deployment/manifest.json";
3+
import manifest from "../../worlds/dojo-starter/manifest_dev.json";
44

55
export const dojoConfig = createDojoConfig({
66
manifest,

examples/example-vite-svelte-recs/dojoConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import manifest from "../../worlds/dojo-starter/manifests/dev/deployment/manifest.json";
1+
import manifest from "../../worlds/dojo-starter/manifest_dev.json";
22

33
import { createDojoConfig } from "@dojoengine/core";
44

examples/example-vue-app-recs/dojoConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createDojoConfig } from "@dojoengine/core";
22

3-
import manifest from "../../worlds/dojo-starter/manifests/dev/deployment/manifest.json";
3+
import manifest from "../../worlds/dojo-starter/manifest_dev.json";
44

55
export const dojoConfig = createDojoConfig({
66
manifest,

packages/sdk/src/getEventMessages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function getEventMessages<T extends SchemaType>(
5353
};
5454

5555
try {
56-
const entities = await client.getEventMessages(toriiQuery);
56+
const entities = await client.getEventMessages(toriiQuery, true);
5757

5858
if (options?.logging) {
5959
console.log(`Fetched entities at offset ${cursor}:`, entities);

packages/sdk/src/subscribeEventQuery.ts

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export async function subscribeEventQuery<T extends SchemaType>(
4040
): Promise<torii.Subscription> {
4141
return client.onEventMessageUpdated(
4242
convertQueryToEntityKeyClauses(query, schema),
43+
true,
4344
(entityId: string, entityData: any) => {
4445
try {
4546
if (callback) {

packages/state/src/recs/index.ts

+10-6
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,15 @@ export const getEvents = async <S extends Schema>(
163163
let continueFetching = true;
164164

165165
while (continueFetching) {
166-
const entities = await client.getEventMessages({
167-
limit,
168-
offset,
169-
clause,
170-
dont_include_hashed_keys: false,
171-
});
166+
const entities = await client.getEventMessages(
167+
{
168+
limit,
169+
offset,
170+
clause,
171+
dont_include_hashed_keys: false,
172+
},
173+
true
174+
);
172175

173176
if (logging) console.log("entities", entities);
174177

@@ -303,6 +306,7 @@ export const syncEvents = async <S extends Schema>(
303306
if (logging) console.log("Starting syncEvents");
304307
return await client.onEventMessageUpdated(
305308
entityKeyClause,
309+
true,
306310
(fetchedEntities: any, data: any) => {
307311
if (logging) console.log("Event message updated", fetchedEntities);
308312

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ To run the examples, you'll need to set up three terminal windows:
224224
225225
```bash
226226
sozo build
227-
sozo migrate apply
227+
sozo migrate
228228
```
229229
230230
3. Run Torii (indexer) with the world address and allowed origins:

0 commit comments

Comments
 (0)