Skip to content

Commit 04cd161

Browse files
authored
chore: bump dojo.c to get latest publishMessage endpoint (#453)
1 parent d58f2a3 commit 04cd161

File tree

22 files changed

+23
-28
lines changed

22 files changed

+23
-28
lines changed

.changeset/wild-trees-admire.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@dojoengine/torii-wasm": patch
3+
"@dojoengine/core": patch
4+
"@dojoengine/sdk": patch
5+
"@dojoengine/create-burner": patch
6+
"@dojoengine/create-dojo": patch
7+
"@dojoengine/predeployed-connector": patch
8+
"@dojoengine/react": patch
9+
"@dojoengine/state": patch
10+
"@dojoengine/torii-client": patch
11+
"@dojoengine/utils": patch
12+
"@dojoengine/utils-wasm": patch
13+
---
14+
15+
chore: bump dojo.c to get latest publishMessage endpoint

examples/example-node-worker/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ global.WorkerGlobalScope = global;
2727
const sdk = await init({
2828
client: {
2929
toriiUrl: dojoConfig.toriiUrl,
30-
relayUrl: "/ip4/127.0.0.1/tcp/9092/ws",
3130
worldAddress: dojoConfig.manifest.world.address,
3231
},
3332
domain: {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export async function setup({ ...config }: Config) {
2424
try {
2525
toriiClient = await torii.createClient({
2626
toriiUrl: config.toriiUrl,
27-
relayUrl: "",
2827
worldAddress: config.manifest.world.address || "",
2928
});
3029
} catch (e) {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ async function main() {
1313
const sdk = await init({
1414
client: {
1515
toriiUrl: dojoConfig.toriiUrl,
16-
relayUrl: dojoConfig.relayUrl,
1716
worldAddress: dojoConfig.manifest.world.address,
1817
},
1918
domain: {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ async function main() {
99
const sdk = await init({
1010
client: {
1111
toriiUrl: dojoConfig.toriiUrl,
12-
relayUrl: dojoConfig.relayUrl,
1312
worldAddress: dojoConfig.manifest.world.address,
1413
},
1514
domain: {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ async function main() {
1818
const sdk = await init<SchemaType>({
1919
client: {
2020
toriiUrl: env.VITE_TORII_URL,
21-
relayUrl: env.VITE_RELAY_URL,
2221
worldAddress: dojoConfig.manifest.world.address,
2322
},
2423
domain: {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ async function main() {
3838
const sdk = await init<SchemaType>({
3939
client: {
4040
toriiUrl: dojoConfig.toriiUrl,
41-
relayUrl: dojoConfig.relayUrl,
4241
worldAddress: dojoConfig.manifest.world.address,
4342
},
4443
domain: {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export async function setup({ ...config }: DojoConfig) {
1818
// Initialize Torii client for interacting with the Dojo network
1919
const toriiClient = new torii.ToriiClient({
2020
toriiUrl: config.toriiUrl,
21-
relayUrl: "",
2221
worldAddress: config.manifest.world.address || "",
2322
});
2423

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
@@ -15,7 +15,6 @@ export async function setup({ ...config }: DojoConfig) {
1515
// torii client
1616
const toriiClient = new torii.ToriiClient({
1717
toriiUrl: config.toriiUrl,
18-
relayUrl: config.relayUrl,
1918
worldAddress: config.manifest.world.address || "",
2019
});
2120

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
@@ -17,7 +17,6 @@ export async function setup({ ...config }: DojoConfig) {
1717
// torii client
1818
const toriiClient = new torii.ToriiClient({
1919
toriiUrl: config.toriiUrl,
20-
relayUrl: config.relayUrl,
2120
worldAddress: config.manifest.world.address || "",
2221
});
2322

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ async function main() {
3434
const sdk = await init<SchemaType>({
3535
client: {
3636
toriiUrl: dojoConfig.toriiUrl,
37-
relayUrl: dojoConfig.relayUrl,
3837
worldAddress: dojoConfig.manifest.world.address,
3938
},
4039
domain: {

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
@@ -17,7 +17,6 @@ export async function setup({ ...config }: DojoConfig) {
1717
// torii client
1818
const toriiClient = new torii.ToriiClient({
1919
toriiUrl: config.toriiUrl,
20-
relayUrl: config.relayUrl,
2120
worldAddress: config.manifest.world.address || "",
2221
});
2322

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export async function setup({ ...config }: DojoConfig) {
1616
// torii client
1717
const toriiClient = await torii.createClient({
1818
toriiUrl: config.toriiUrl,
19-
relayUrl: "",
2019
worldAddress: config.manifest.world.address || "",
2120
});
2221

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export async function setup({ ...config }: DojoConfig) {
1616
// torii client
1717
const toriiClient = new torii.ToriiClient({
1818
toriiUrl: config.toriiUrl,
19-
relayUrl: "",
2019
worldAddress: config.manifest.world.address || "",
2120
});
2221

packages/core/src/config/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
KATANA_PREFUNDED_ADDRESS,
55
KATANA_PREFUNDED_PRIVATE_KEY,
66
LOCAL_KATANA,
7-
LOCAL_RELAY,
87
LOCAL_TORII,
98
} from "../constants";
109

@@ -13,7 +12,6 @@ export type DojoConfig = ReturnType<typeof createDojoConfig>;
1312
interface DojoConfigParams {
1413
rpcUrl?: string;
1514
toriiUrl?: string;
16-
relayUrl?: string;
1715
masterAddress?: string;
1816
masterPrivateKey?: string;
1917
accountClassHash?: string;
@@ -28,7 +26,6 @@ export function createDojoConfig({ manifest, ...config }: DojoConfigParams) {
2826
return {
2927
rpcUrl: config.rpcUrl ?? LOCAL_KATANA,
3028
toriiUrl: config.toriiUrl ?? LOCAL_TORII,
31-
relayUrl: config.relayUrl ?? LOCAL_RELAY,
3229
masterAddress: config.masterAddress ?? KATANA_PREFUNDED_ADDRESS,
3330
masterPrivateKey:
3431
config.masterPrivateKey ?? KATANA_PREFUNDED_PRIVATE_KEY,

packages/sdk/src/__example__/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ async function exampleUsage() {
7373
const db = await init<MockSchemaType>({
7474
client: {
7575
toriiUrl: "your-torii-url",
76-
relayUrl: "your-relay-url",
7776
worldAddress: "your-world-address",
7877
},
7978
domain: {

packages/sdk/src/__tests__/generateTypedData.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ describe("generateTypedData", () => {
1818
const mockConfig = {
1919
client: {
2020
toriiUrl: "http://localhost:8080",
21-
relayUrl: "/ip4/127.0.0.1/tcp/9090",
2221
worldAddress: "0x123",
2322
},
2423
domain: {

packages/sdk/src/internal/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ export interface SDK<T extends SchemaType> {
378378
sendMessage: (
379379
data: TypedData,
380380
account?: Account
381-
) => Promise<Result<Uint8Array, string>>;
381+
) => Promise<Result<string, string>>;
382382

383383
/**
384384
* @param {string[]} contract_addresses

packages/sdk/src/node/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export * from "../internal/models.ts";
3939

4040
export const defaultClientConfig: Partial<torii.ClientConfig> = {
4141
toriiUrl: "http://localhost:8080",
42-
relayUrl: "/ip4/127.0.0.1/tcp/9090",
4342
};
4443

4544
export async function init<T extends SchemaType>(
@@ -193,7 +192,7 @@ export async function init<T extends SchemaType>(
193192
sendMessage: async (
194193
data: TypedData,
195194
_account?: Account
196-
): Promise<Result<Uint8Array, string>> => {
195+
): Promise<Result<string, string>> => {
197196
if (!options.signer) {
198197
return err(NO_SIGNER);
199198
}

packages/sdk/src/web/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export async function createClient(
5252

5353
export const defaultClientConfig: Partial<torii.ClientConfig> = {
5454
toriiUrl: "http://localhost:8080",
55-
relayUrl: "/ip4/127.0.0.1/tcp/9090",
5655
};
5756

5857
/**
@@ -212,7 +211,7 @@ export async function init<T extends SchemaType>(
212211
sendMessage: async (
213212
data: TypedData,
214213
account?: Account
215-
): Promise<Result<Uint8Array, string>> => {
214+
): Promise<Result<string, string>> => {
216215
if (!account) {
217216
return err(NO_ACCOUNT);
218217
}

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ const db =
8989
// your config
9090
client: {
9191
toriiUrl: dojoConfig.toriiUrl,
92-
relayUrl: dojoConfig.relayUrl,
9392
worldAddress: dojoConfig.manifest.world.address,
9493
},
9594
// allows typed messaging via indexer
@@ -195,18 +194,19 @@ Before running examples, you need to build the packages:
195194
```bash
196195
pnpm run dev
197196
```
198-
- Try out a specific example :
197+
198+
- Try out a specific example :
199199

200200
```bash
201201
pnpm run dev --filter example-vite-react-sdk
202202
```
203-
204203

205204
### Running The Examples
206205

207206
To run the examples, you'll need to set up three terminal windows:
208207
209-
**With docker**:
208+
**With docker**:
209+
210210
1. Navigate to the Dojo starter directory:
211211
212212
```bash

0 commit comments

Comments
 (0)