-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,37 @@ | ||
# React + TypeScript + Vite | ||
# Sequence WaaS Integration Demo | ||
|
||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. | ||
## Overview | ||
This project demonstrates the integration of Sequence Wallet as a Service (WaaS) using the `@0xsequence/waas` typescript SDK. | ||
|
||
Currently, two official plugins are available: | ||
Sequence WaaS simplifies wallet functionalities for users and devs, eliminating the need for extensions or popups, whili efficiently managing user authentication, transaction processing, and message signing. | ||
|
||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh | ||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh | ||
## Getting Started | ||
|
||
## Expanding the ESLint configuration | ||
### Installation | ||
Install the project dependencies with: | ||
``` | ||
pnpm install | ||
``` | ||
|
||
### Launching the Demo | ||
Start the development server using: | ||
``` | ||
pnpm dev | ||
``` | ||
|
||
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: | ||
## Configuration | ||
### Environment Setup | ||
Customize the application by setting `GOOGLE_CLIENT_ID` and `SEQUENCE_API_KEY` in the `.env` file. The project includes sample API keys for initial local testing. | ||
|
||
- Configure the top-level `parserOptions` property like this: | ||
### Fallback to Sample Configuration | ||
If configurations in the `.env` file are missing, the project automatically uses the sample configuration. | ||
|
||
```js | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: ['./tsconfig.json', './tsconfig.node.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
``` | ||
## Documentation | ||
Access detailed information about Sequence WaaS in the [Sequence WaaS Documentation](https://docs.sequence.xyz/waas/waas-auth/getting-started). Note that this documentation is subject to change and currently available only through this link. | ||
|
||
## Current Limitations | ||
- The demo currently supports only social logins for transaction activities. The email login is present but does not support transaction functionalities at this stage. | ||
|
||
--- | ||
|
||
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` | ||
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` | ||
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list | ||
This demo is intended for development and demonstration purposes. Replace the API keys with your own for any production use. |