File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed
react-phaser-example/src/dojo/generated
react-pwa-app/src/dojo/generated
react-threejs/src/dojo/generated
starknet-react-app/src/dojo/generated
vue/vue-app/src/dojo/generated Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
16
16
17
17
export async function setup ( { ...config } : DojoConfig ) {
18
18
// torii client
19
- const toriiClient = await torii . createClient ( [ ] , {
19
+ const toriiClient = await torii . createClient ( {
20
20
rpcUrl : config . rpcUrl ,
21
21
toriiUrl : config . toriiUrl ,
22
22
relayUrl : config . relayUrl ,
@@ -33,7 +33,7 @@ export async function setup({ ...config }: DojoConfig) {
33
33
const sync = await getSyncEntities (
34
34
toriiClient ,
35
35
contractComponents as any ,
36
- [ ]
36
+ undefined // syncs all entities
37
37
) ;
38
38
39
39
const client = await setupWorld (
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
17
17
18
18
export async function setup ( { ...config } : DojoConfig ) {
19
19
// torii client
20
- const toriiClient = await torii . createClient ( [ ] , {
20
+ const toriiClient = await torii . createClient ( {
21
21
rpcUrl : config . rpcUrl ,
22
22
toriiUrl : config . toriiUrl ,
23
23
relayUrl : config . relayUrl ,
@@ -30,11 +30,12 @@ export async function setup({ ...config }: DojoConfig) {
30
30
// create client components
31
31
const clientComponents = createClientComponents ( { contractComponents } ) ;
32
32
33
+ // fetch all existing entities from torii
33
34
// fetch all existing entities from torii
34
35
const sync = await getSyncEntities (
35
36
toriiClient ,
36
37
contractComponents as any ,
37
- [ ]
38
+ undefined // syncs all entities
38
39
) ;
39
40
40
41
// create dojo provider
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
23
23
24
24
export async function setup ( { ...config } : DojoConfig ) {
25
25
// torii client
26
- const toriiClient = await torii . createClient ( [ ] , {
26
+ const toriiClient = await torii . createClient ( {
27
27
rpcUrl : config . rpcUrl ,
28
28
toriiUrl : config . toriiUrl ,
29
29
relayUrl : config . relayUrl ,
@@ -40,7 +40,7 @@ export async function setup({ ...config }: DojoConfig) {
40
40
const sync = await getSyncEntities (
41
41
toriiClient ,
42
42
contractComponents as any ,
43
- [ ]
43
+ undefined // syncs all entities
44
44
) ;
45
45
46
46
const dojoProvider = new DojoProvider ( config . manifest , config . rpcUrl ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
16
16
17
17
export async function setup ( { ...config } : DojoConfig ) {
18
18
// torii client
19
- const toriiClient = await torii . createClient ( [ ] , {
19
+ const toriiClient = await torii . createClient ( {
20
20
rpcUrl : config . rpcUrl ,
21
21
toriiUrl : config . toriiUrl ,
22
22
relayUrl : "" ,
@@ -33,7 +33,7 @@ export async function setup({ ...config }: DojoConfig) {
33
33
const sync = await getSyncEntities (
34
34
toriiClient ,
35
35
contractComponents as any ,
36
- [ ]
36
+ undefined
37
37
) ;
38
38
39
39
// create dojo provider
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
16
16
17
17
export async function setup ( { ...config } : DojoConfig ) {
18
18
// torii client
19
- const toriiClient = await torii . createClient ( [ ] , {
19
+ const toriiClient = await torii . createClient ( {
20
20
rpcUrl : config . rpcUrl ,
21
21
toriiUrl : config . toriiUrl ,
22
22
relayUrl : "" ,
@@ -33,7 +33,7 @@ export async function setup({ ...config }: DojoConfig) {
33
33
const sync = await getSyncEntities (
34
34
toriiClient ,
35
35
contractComponents as any ,
36
- [ ]
36
+ undefined
37
37
) ;
38
38
39
39
// create dojo provider
You can’t perform that action at this time.
0 commit comments