Skip to content

Commit a027cf0

Browse files
authored
TicTacToe game using ERC7715 permissions (#676)
* initial version * refactor WalletConnectCosignerUtils * updated UserOpBuilderServiceUtils * Update .gitignore * add deps * add provider component * updated configs * refactor code to handle wait for tx on client side * remove api/game/board route * move const to ConstantsUtil * chores:run prettier * handle app privatekey * remove NEXT_PUBLIC_APPLICATION_PRIVATE_KEY * chores: increase timeout duration * chores:run prettier
1 parent efa0ddd commit a027cf0

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

+9987
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

advanced/dapps/tic-tac-toe/.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
.env
31+
32+
# vercel
33+
.vercel
34+
35+
# typescript
36+
*.tsbuildinfo
37+
next-env.d.ts

advanced/dapps/tic-tac-toe/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils"
16+
}
17+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
import pluginReact from "eslint-plugin-react";
5+
6+
7+
export default [
8+
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]},
9+
{languageOptions: { globals: globals.browser }},
10+
pluginJs.configs.recommended,
11+
...tseslint.configs.recommended,
12+
pluginReact.configs.flat.recommended,
13+
];
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {};
3+
4+
export default nextConfig;
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"name": "tic-tac-toe",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint",
10+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\""
11+
},
12+
"dependencies": {
13+
"@radix-ui/colors": "^3.0.0",
14+
"@radix-ui/react-icons": "^1.3.0",
15+
"@radix-ui/react-label": "^2.1.0",
16+
"@radix-ui/react-progress": "^1.1.0",
17+
"@radix-ui/react-select": "^2.1.1",
18+
"@radix-ui/react-slot": "^1.1.0",
19+
"@radix-ui/react-tabs": "^1.1.0",
20+
"@radix-ui/react-toast": "^1.2.1",
21+
"@radix-ui/themes": "^3.1.3",
22+
"@shadcn/ui": "^0.0.4",
23+
"@tanstack/react-query": "5.24.8",
24+
"@wagmi/connectors": "5.1.2",
25+
"@wagmi/core": "2.13.1",
26+
"@walletconnect/ethereum-provider": "2.14.0",
27+
"@walletconnect/utils": "2.14.0",
28+
"@web3modal/wagmi": "5.1.0",
29+
"@web3modal/wallet": "5.1.0",
30+
"autoprefixer": "10.4.18",
31+
"axios": "1.7.2",
32+
"bs58": "^6.0.0",
33+
"class-variance-authority": "^0.7.0",
34+
"clsx": "2.1.0",
35+
"lucide-react": "^0.427.0",
36+
"next": "14.2.5",
37+
"next-themes": "^0.3.0",
38+
"permissionless": "0.1.31",
39+
"pino-pretty": "^11.2.2",
40+
"react": "^18",
41+
"react-dom": "^18",
42+
"react-toastify": "^10.0.5",
43+
"sonner": "1.4.3",
44+
"tailwind-merge": "2.2.1",
45+
"tailwindcss-animate": "^1.0.7",
46+
"vaul": "0.9.0",
47+
"viem": "2.17.8",
48+
"wagmi": "2.12.2"
49+
},
50+
"devDependencies": {
51+
"@eslint/js": "^9.9.0",
52+
"@types/node": "^20",
53+
"@types/react": "^18",
54+
"@types/react-dom": "^18",
55+
"eslint": "^9.9.0",
56+
"eslint-config-next": "14.2.5",
57+
"eslint-config-prettier": "^9.1.0",
58+
"eslint-plugin-prettier": "^5.2.1",
59+
"eslint-plugin-react": "^7.35.0",
60+
"globals": "^15.9.0",
61+
"postcss": "^8",
62+
"prettier": "^3.3.3",
63+
"tailwindcss": "^3.4.1",
64+
"typescript": "^5",
65+
"typescript-eslint": "^8.2.0"
66+
}
67+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('postcss-load-config').Config} */
2+
const config = {
3+
plugins: {
4+
tailwindcss: {},
5+
},
6+
};
7+
8+
export default config;
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)