Skip to content

Commit 26b77b3

Browse files
Merge pull request #285 from dojoengine/feat/sdk-example
feat: example
2 parents 06a2372 + 5c8a05d commit 26b77b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3067
-2749
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": ["next/core-web-vitals", "next/typescript"]
2+
"extends": ["next/core-web-vitals", "next/typescript"]
33
}

examples/example-vite-kitchen-sink/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ In one terminal window, start katana (the sequencer). If you want to use sepolia
1414

1515
```bash
1616
katana --disable-fee --allowed-origins "*"
17-
```
17+
```
1818

1919
In another terminal window, start torii server
2020

2121
```bash
2222
# with katana
2323
torii --world 0x6dd367f5e11f11e0502cb2c4db7ae9bb6d8b5a4a431750bed7bec88b218e12 --allowed-origins "*"
2424
# with mainnet|sepolia
25-
torii --world 0x6dd367f5e11f11e0502cb2c4db7ae9bb6d8b5a4a431750bed7bec88b218e12 --allowed-origins "*" --rpc "https://rpc.nethermind.io/(mainnet|sepolia)-juno?apikey={apikey}" -s 204922
26-
```
25+
torii --world 0x6dd367f5e11f11e0502cb2c4db7ae9bb6d8b5a4a431750bed7bec88b218e12 --allowed-origins "*" --rpc "https://rpc.nethermind.io/(mainnet|sepolia)-juno?apikey={apikey}" -s 204922
26+
```
2727

2828
Then, start the development server:
2929

@@ -45,5 +45,5 @@ sozo migrate apply
4545

4646
### Notes
4747

48-
- you main want to update `actions` contract address in `src/components/caller-counter.tsx` & `src/components/global-counter.tsx` which is hardcoded in those files.
49-
- if you want to have braavos & argent wallet working, you need to deploy classes and deploy your wallet manually.
48+
- you main want to update `actions` contract address in `src/components/caller-counter.tsx` & `src/components/global-counter.tsx` which is hardcoded in those files.
49+
- if you want to have braavos & argent wallet working, you need to deploy classes and deploy your wallet manually.
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"$schema": "https://ui.shadcn.com/schema.json",
3-
"style": "new-york",
4-
"rsc": true,
5-
"tsx": true,
6-
"tailwind": {
7-
"config": "tailwind.config.ts",
8-
"css": "app/globals.css",
9-
"baseColor": "zinc",
10-
"cssVariables": true,
11-
"prefix": ""
12-
},
13-
"aliases": {
14-
"components": "@/components",
15-
"utils": "@/lib/utils",
16-
"ui": "@/components/ui",
17-
"lib": "@/lib",
18-
"hooks": "@/hooks"
19-
}
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "app/globals.css",
9+
"baseColor": "zinc",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
}
2020
}
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
{
2-
"name": "sink",
3-
"version": "0.1.0",
4-
"private": true,
5-
"scripts": {
6-
"dev": "vite",
7-
"build": "tsc -b && vite build",
8-
"lint": "eslint .",
9-
"preview": "vite preview"
10-
},
11-
"dependencies": {
12-
"@cartridge/connector": "^0.3.46",
13-
"@dojoengine/core": "workspace:*",
14-
"@dojoengine/sdk": "workspace:*",
15-
"@dojoengine/torii-wasm": "workspace:*",
16-
"@dojoengine/torii-client": "workspace:*",
17-
"@radix-ui/react-dialog": "^1.1.1",
18-
"@radix-ui/react-dropdown-menu": "^2.1.1",
19-
"@radix-ui/react-icons": "^1.3.0",
20-
"@radix-ui/react-label": "^2.1.0",
21-
"@radix-ui/react-select": "^2.1.1",
22-
"@radix-ui/react-slot": "^1.1.0",
23-
"@radix-ui/react-switch": "^1.1.0",
24-
"@radix-ui/react-tooltip": "^1.1.2",
25-
"@starknet-react/chains": "^3.0.0",
26-
"@starknet-react/core": "2.9.0",
27-
"@t3-oss/env-core": "^0.11.1",
28-
"@t3-oss/env-nextjs": "^0.11.1",
29-
"class-variance-authority": "^0.7.0",
30-
"clsx": "^2.1.1",
31-
"dotenv": "^16.4.5",
32-
"jiti": "^1.21.6",
33-
"lucide-react": "^0.441.0",
34-
"next": "14.2.12",
35-
"react": "^18.3.1",
36-
"react-dom": "^18.3.1",
37-
"react-hook-form": "^7.53.0",
38-
"starknet": "6.11.0",
39-
"tailwind-merge": "^2.5.2",
40-
"tailwindcss-animate": "^1.0.7",
41-
"vaul": "^0.9.9",
42-
"zod": "^3.23.8"
43-
},
44-
"devDependencies": {
45-
"@types/node": "^20.16.10",
46-
"@types/react": "^18.3.10",
47-
"@types/react-dom": "^18.3.0",
48-
"@vitejs/plugin-react": "^4.3.2",
49-
"eslint": "^8.57.1",
50-
"eslint-config-next": "14.2.12",
51-
"postcss": "^8.4.47",
52-
"tailwindcss": "^3.4.13",
53-
"typescript": "^5.6.2",
54-
"vite": "^5.4.8",
55-
"vite-plugin-top-level-await": "^1.4.4",
56-
"vite-plugin-wasm": "^3.3.0",
57-
"vite-preset-react": "^2.3.0"
58-
}
2+
"name": "sink",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "vite",
7+
"build": "tsc -b && vite build",
8+
"lint": "eslint .",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@cartridge/connector": "^0.3.46",
13+
"@dojoengine/core": "workspace:*",
14+
"@dojoengine/sdk": "workspace:*",
15+
"@dojoengine/torii-wasm": "workspace:*",
16+
"@dojoengine/torii-client": "workspace:*",
17+
"@radix-ui/react-dialog": "^1.1.1",
18+
"@radix-ui/react-dropdown-menu": "^2.1.1",
19+
"@radix-ui/react-icons": "^1.3.0",
20+
"@radix-ui/react-label": "^2.1.0",
21+
"@radix-ui/react-select": "^2.1.1",
22+
"@radix-ui/react-slot": "^1.1.0",
23+
"@radix-ui/react-switch": "^1.1.0",
24+
"@radix-ui/react-tooltip": "^1.1.2",
25+
"@starknet-react/chains": "^3.0.0",
26+
"@starknet-react/core": "2.9.0",
27+
"@t3-oss/env-core": "^0.11.1",
28+
"@t3-oss/env-nextjs": "^0.11.1",
29+
"class-variance-authority": "^0.7.0",
30+
"clsx": "^2.1.1",
31+
"dotenv": "^16.4.5",
32+
"jiti": "^1.21.6",
33+
"lucide-react": "^0.441.0",
34+
"next": "14.2.12",
35+
"react": "^18.3.1",
36+
"react-dom": "^18.3.1",
37+
"react-hook-form": "^7.53.0",
38+
"starknet": "6.11.0",
39+
"tailwind-merge": "^2.5.2",
40+
"tailwindcss-animate": "^1.0.7",
41+
"vaul": "^0.9.9",
42+
"zod": "^3.23.8"
43+
},
44+
"devDependencies": {
45+
"@types/node": "^20.16.10",
46+
"@types/react": "^18.3.10",
47+
"@types/react-dom": "^18.3.0",
48+
"@vitejs/plugin-react": "^4.3.2",
49+
"eslint": "^8.57.1",
50+
"eslint-config-next": "14.2.12",
51+
"postcss": "^8.4.47",
52+
"tailwindcss": "^3.4.13",
53+
"typescript": "^5.6.2",
54+
"vite": "^5.4.8",
55+
"vite-plugin-top-level-await": "^1.4.4",
56+
"vite-plugin-wasm": "^3.3.0",
57+
"vite-preset-react": "^2.3.0"
58+
}
5959
}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @type {import('postcss-load-config').Config} */
22
const config = {
3-
plugins: {
4-
tailwindcss: {},
5-
},
3+
plugins: {
4+
tailwindcss: {},
5+
},
66
};
77

88
export default config;

0 commit comments

Comments
 (0)