Skip to content

Commit 75c6d89

Browse files
authored
Merge pull request #71 from cometh-hq/develop
Develop
2 parents 3ac6370 + d9be522 commit 75c6d89

File tree

112 files changed

+3516
-310
lines changed

Some content is hidden

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

112 files changed

+3516
-310
lines changed

bun.lockb

76 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
NEXT_PUBLIC_COMETH_API_KEY=""
2+
NEXT_PUBLIC_4337_BUNDLER_URL="https://bundler.cometh.io/CHAIN_ID?apikey="
3+
NEXT_PUBLIC_4337_PAYMASTER_URL="https://paymaster.cometh.io/CHAIN_ID?apikey="
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.next
3+
.env
4+
5+
# misc
6+
.DS_Store
7+
.vscode
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Cometh getting started example
2+
3+
Discover all the cometh tools here: [our documentation](https://docs.cometh.io/).
4+
5+
## Installation
6+
7+
> Don't forget to add `cometh-demo.eu.auth0.com` to your project's authorized domains on https://app.cometh.io/.
8+
9+
Clone the repo and run `yarn install`
10+
11+
Setup your .env file from the .env.example file.
12+
13+
## Start
14+
15+
Set you Cometh API KEY in the following env var:
16+
17+
```
18+
export NEXT_PUBLIC_COMETH_API_KEY=YOUR_API_KEY
19+
```
20+
21+
After the successfull installation of the packages: `yarn dev`
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import axios from "axios";
2+
3+
export const API_URL = process.env.NEXT_PUBLIC_BASE_URL!;
4+
5+
export const api = axios.create({
6+
baseURL: API_URL,
7+
});
8+
9+
api.defaults.headers.common.apisecret =
10+
process.env.NEXT_PUBLIC_COMETH_API_SECRET!;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
output: "standalone",
4+
experimental: {
5+
esmExternals: "loose",
6+
},
7+
};
8+
9+
module.exports = nextConfig;
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "connect-example-viem-capabilities",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev --port 3006",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
10+
},
11+
"dependencies": {
12+
"@cometh/connect-sdk": "^1.2.31",
13+
"@cometh/connect-sdk-4337": "workspace:*",
14+
"@magic-ext/auth": "^4.3.2",
15+
"@magic-ext/oauth": "^22.20.0",
16+
"@radix-ui/react-icons": "^1.3.0",
17+
"@radix-ui/react-slot": "^1.0.2",
18+
"@rhinestone/module-sdk": "^0.2.3",
19+
"@types/node": "20.3.2",
20+
"@types/react": "18.2.14",
21+
"@types/react-dom": "18.2.6",
22+
"@web3auth/account-abstraction-provider": "^9.5.4",
23+
"@web3auth/base": "^9.5.4",
24+
"@web3auth/ethereum-provider": "^9.5.4",
25+
"@web3auth/modal": "^9.5.4",
26+
"@zerodev/ecdsa-validator": "^5.4.4",
27+
"autoprefixer": "10.4.14",
28+
"class-variance-authority": "^0.6.1",
29+
"clsx": "^1.2.1",
30+
"eslint": "8.43.0",
31+
"eslint-config-next": "13.4.7",
32+
"magic-sdk": "21.0.0",
33+
"next": "13.4.7",
34+
"next-auth": "^4.23.1",
35+
"nextjs-cors": "^2.1.2",
36+
"permissionless": "^0.1.10",
37+
"postcss": "8.4.24",
38+
"react": "18.2.0",
39+
"react-confetti": "^6.1.0",
40+
"react-dom": "18.2.0",
41+
"react-feather": "^2.0.10",
42+
"tailwind-merge": "^1.13.2",
43+
"tailwindcss": "3.3.2",
44+
"tailwindcss-animate": "^1.0.6",
45+
"typescript": "^5",
46+
"viem": "^2.22.2",
47+
"web3": "^4.16.0"
48+
}
49+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)