Skip to content

Commit ca252e9

Browse files
committed
Merge branch 'v10-testing' of https://github.com/Web3Auth/web3auth-pnp-examples into v10-testing
2 parents 229c003 + d3652d8 commit ca252e9

Some content is hidden

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

75 files changed

+36099
-5909
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Web3Auth Modal AA Quick Start
2+
![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)
3+
[![Web3Auth](https://img.shields.io/badge/Web3Auth-Community-cyan)](https://community.web3auth.io)
4+
5+
[Join our Community Portal](https://community.web3auth.io/) to get support and stay up to date with the latest news and updates.
6+
7+
This example demonstrates how to use Web3Auth [Account abstraction provider](https://www.npmjs.com/package/@web3auth/account-abstraction-provider) with Web3Auth Modal in React.
8+
9+
## Getting Started
10+
11+
1. Download Manually
12+
13+
```bash
14+
npx degit Web3Auth/web3auth-pnp-examples/web-modal-sdk/account-abstraction/aa-modal-quick-start w3a-aa-example
15+
```
16+
17+
2. Navigate into the project directory
18+
19+
```bash
20+
cd w3a-aa-example
21+
```
22+
23+
3. Install dependencies
24+
```bash
25+
npm install
26+
```
27+
28+
## Setup
29+
Set up the required environment variables by creating a `.env` file in the root of the project. Follow the instructions in the Environment Variables section.
30+
31+
Here is an example `.env` file template
32+
33+
```
34+
VITE_API_KEY = "YOUR_PIMLICO_API_KEY"
35+
```
36+
<!-- markdown-link-check-disable-next-line -->
37+
Get your pimlico API key from the [Pimlico Dashboard](https://dashboard.pimlico.io/)
38+
39+
## Run
40+
To start the development, run the following command
41+
```bash
42+
npm run dev
43+
```
44+
## Important Links
45+
46+
- [Website](https://web3auth.io)
47+
- [Docs](https://web3auth.io/docs)
48+
- [Guides](https://web3auth.io/docs/guides)
49+
- [SDK / API References](https://web3auth.io/docs/sdk)
50+
- [Pricing](https://web3auth.io/pricing.html)
51+
- [Community Portal](https://community.web3auth.io)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
7+
export default tseslint.config(
8+
{ ignores: ['dist'] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ['**/*.{ts,tsx}'],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
'react-hooks': reactHooks,
18+
'react-refresh': reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
'react-refresh/only-export-components': [
23+
'warn',
24+
{ allowConstantExport: true },
25+
],
26+
},
27+
},
28+
)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<script type="module">
6+
import { Buffer } from "buffer";
7+
import process from "process";
8+
window.Buffer = Buffer;
9+
window.process = process;
10+
</script>
11+
<meta charset="UTF-8" />
12+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
13+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
14+
<title>Vite + React + TS</title>
15+
</head>
16+
17+
<body>
18+
<div id="root"></div>
19+
<script type="module" src="/src/main.tsx"></script>
20+
</body>
21+
22+
</html>

0 commit comments

Comments
 (0)