Skip to content

Commit 0dc71cd

Browse files
committed
chore: update examples - changed contracts to branch main
1 parent 7048112 commit 0dc71cd

File tree

15 files changed

+5
-26
lines changed

15 files changed

+5
-26
lines changed

examples/example-vanillajs-phaser-recs/src/dojo/setup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export async function setup({ ...config }: Config) {
2323
let toriiClient = null;
2424
try {
2525
toriiClient = await torii.createClient({
26-
rpcUrl: config.rpcUrl,
2726
toriiUrl: config.toriiUrl,
2827
relayUrl: "",
2928
worldAddress: config.manifest.world.address || "",

examples/example-vite-experimental-sdk/src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ async function main() {
1212

1313
const sdk = await init({
1414
client: {
15-
rpcUrl: dojoConfig.rpcUrl,
1615
toriiUrl: dojoConfig.toriiUrl,
1716
relayUrl: dojoConfig.relayUrl,
1817
worldAddress: dojoConfig.manifest.world.address,

examples/example-vite-grpc-playground/src/main.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { dojoConfig } from "../dojoConfig.ts";
88
async function main() {
99
const sdk = await init({
1010
client: {
11-
rpcUrl: dojoConfig.rpcUrl,
1211
toriiUrl: dojoConfig.toriiUrl,
1312
relayUrl: dojoConfig.relayUrl,
1413
worldAddress: dojoConfig.manifest.world.address,

examples/example-vite-kitchen-sink/src/main.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ import { dojoConfig } from "../dojoConfig";
1212
import { setupWorld } from "./typescript/contracts.gen";
1313
import { SchemaType } from "./typescript/models.gen";
1414

15-
import { env, getRpcUrl } from "@/env";
15+
import { env } from "@/env";
1616

1717
async function main() {
1818
const sdk = await init<SchemaType>({
1919
client: {
20-
rpcUrl: getRpcUrl(),
2120
toriiUrl: env.VITE_TORII_URL,
2221
relayUrl: env.VITE_RELAY_URL,
2322
worldAddress: dojoConfig.manifest.world.address,

examples/example-vite-phaser-sdk/src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export const useDojoStore = createDojoStore<SchemaType>();
3737
async function main() {
3838
const sdk = await init<SchemaType>({
3939
client: {
40-
rpcUrl: dojoConfig.rpcUrl,
4140
toriiUrl: dojoConfig.toriiUrl,
4241
relayUrl: dojoConfig.relayUrl,
4342
worldAddress: dojoConfig.manifest.world.address,

examples/example-vite-react-app-recs/src/dojo/setup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
1515
export async function setup({ ...config }: DojoConfig) {
1616
// Initialize Torii client for interacting with the Dojo network
1717
const toriiClient = await torii.createClient({
18-
rpcUrl: config.rpcUrl,
1918
toriiUrl: config.toriiUrl,
2019
relayUrl: "",
2120
worldAddress: config.manifest.world.address || "",

examples/example-vite-react-phaser-recs/src/dojo/generated/setup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
1313
export async function setup({ ...config }: DojoConfig) {
1414
// torii client
1515
const toriiClient = await torii.createClient({
16-
rpcUrl: config.rpcUrl,
1716
toriiUrl: config.toriiUrl,
1817
relayUrl: config.relayUrl,
1918
worldAddress: config.manifest.world.address || "",

examples/example-vite-react-pwa-recs/src/dojo/generated/setup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
1515
export async function setup({ ...config }: DojoConfig) {
1616
// torii client
1717
const toriiClient = await torii.createClient({
18-
rpcUrl: config.rpcUrl,
1918
toriiUrl: config.toriiUrl,
2019
relayUrl: config.relayUrl,
2120
worldAddress: config.manifest.world.address || "",

examples/example-vite-react-sdk/src/main.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import StarknetProvider from "./starknet-provider.tsx";
2222
async function main() {
2323
const sdk = await init<SchemaType>({
2424
client: {
25-
rpcUrl: dojoConfig.rpcUrl,
2625
toriiUrl: dojoConfig.toriiUrl,
2726
relayUrl: dojoConfig.relayUrl,
2827
worldAddress: dojoConfig.manifest.world.address,

examples/example-vite-react-sql/src/main.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ declare module "@tanstack/react-router" {
3333
async function main() {
3434
const sdk = await init<SchemaType>({
3535
client: {
36-
rpcUrl: dojoConfig.rpcUrl,
3736
toriiUrl: dojoConfig.toriiUrl,
3837
relayUrl: dojoConfig.relayUrl,
3938
worldAddress: dojoConfig.manifest.world.address,

examples/example-vite-react-threejs-recs/src/dojo/generated/setup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
1515
export async function setup({ ...config }: DojoConfig) {
1616
// torii client
1717
const toriiClient = await torii.createClient({
18-
rpcUrl: config.rpcUrl,
1918
toriiUrl: config.toriiUrl,
2019
relayUrl: config.relayUrl,
2120
worldAddress: config.manifest.world.address || "",

examples/example-vite-svelte-recs/src/dojo/setup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
1515
export async function setup({ ...config }: DojoConfig) {
1616
// torii client
1717
const toriiClient = await torii.createClient({
18-
rpcUrl: config.rpcUrl,
1918
toriiUrl: config.toriiUrl,
2019
relayUrl: "",
2120
worldAddress: config.manifest.world.address || "",

examples/example-vue-app-recs/src/dojo/generated/setup.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
import {
2-
createModelTypedData,
3-
DojoConfig,
4-
DojoProvider,
5-
} from "@dojoengine/core";
1+
import { DojoConfig, DojoProvider } from "@dojoengine/core";
62
import { getSyncEntities } from "@dojoengine/state";
73
import * as torii from "@dojoengine/torii-client";
8-
import {
9-
ArraySignatureType,
10-
TypedData,
11-
WeierstrassSignatureType,
12-
} from "starknet";
4+
import { ArraySignatureType } from "starknet";
135

146
import { createClientComponents } from "../createClientComponents";
157
import { createSystemCalls } from "../createSystemCalls";
@@ -22,7 +14,6 @@ export type SetupResult = Awaited<ReturnType<typeof setup>>;
2214
export async function setup({ ...config }: DojoConfig) {
2315
// torii client
2416
const toriiClient = await torii.createClient({
25-
rpcUrl: config.rpcUrl,
2617
toriiUrl: config.toriiUrl,
2718
relayUrl: "",
2819
worldAddress: config.manifest.world.address || "",

worlds/dojo-starter

Submodule dojo-starter updated 37 files

worlds/onchain-dash

Submodule onchain-dash updated 40 files

0 commit comments

Comments
 (0)