Skip to content

Commit

Permalink
Merge pull request #190 from LedgerHQ/feat/LIVE-13640-LIVE-13641
Browse files Browse the repository at this point in the history
feat: redirect on connect and request to the dApp [LIVE-13641]
  • Loading branch information
Justkant authored Sep 30, 2024
2 parents 4f64398 + 734b228 commit f5be18b
Show file tree
Hide file tree
Showing 20 changed files with 8,421 additions and 6,357 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ Behavior of the live app can be influenced by navigating to it with the followin
- Shared 🖖 (All the useful functions shared throughout the app)
- tests-tools 🧪 (All the tools needed to carry out the tests)

## Store Management

Use of [Zustand](https://github.com/pmndrs/zustand) and `persist` middleware to have a persistent store via the `localStorage`

## Support new Chain/Network

1 - Update `localManifest.json` by adding new entry in currencies:
Expand Down
11 changes: 6 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import eslint from "@eslint/js";
import tsEslint from "typescript-eslint";
import prettierConfig from "eslint-config-prettier";
import react from "eslint-plugin-react";
// import reactHooks from "eslint-plugin-react-hooks";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import testingLibrary from "eslint-plugin-testing-library";

Expand Down Expand Up @@ -39,12 +39,13 @@ export default tsEslint.config(
{
files: ["**/*.{ts,tsx}"],
plugins: {
// ["react-hooks"]: reactHooks,
["react-refresh"]: reactRefresh,
// @ts-expect-error: react hooks not ready
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
// @ts-expect-error: react hooks not ready
rules: {
// "react-hooks/rules-of-hooks": "error",
// "react-hooks/exhaustive-deps": "warn",
...reactHooks.configs.recommended.rules,
"@typescript-eslint/no-unused-vars": [
"warn",
{
Expand Down
66 changes: 33 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,76 +15,76 @@
"test:e2e-ui": "playwright test --ui"
},
"dependencies": {
"@ledgerhq/hw-transport": "^6.31.2",
"@ledgerhq/react-ui": "^0.15.4",
"@ledgerhq/hw-transport": "^6.31.3",
"@ledgerhq/react-ui": "^0.16.0",
"@ledgerhq/wallet-api-client": "^1.5.10",
"@ledgerhq/wallet-api-simulator": "^1.1.16",
"@segment/analytics-next": "^1.72.2",
"@segment/analytics-next": "^1.73.0",
"@segment/snippet": "^5.2.1",
"@sentry/react": "^8.28.0",
"@tanstack/react-query": "^5.54.1",
"@tanstack/react-query-devtools": "^5.54.1",
"@tanstack/react-router": "^1.53.1",
"@tanstack/router-devtools": "^1.53.1",
"@walletconnect/core": "^2.15.2",
"@walletconnect/utils": "^2.15.2",
"@walletconnect/web3wallet": "^1.14.2",
"@sentry/react": "^8.31.0",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-query-devtools": "^5.56.2",
"@tanstack/react-router": "^1.58.7",
"@tanstack/router-devtools": "^1.58.7",
"@walletconnect/core": "^2.16.2",
"@walletconnect/utils": "^2.16.2",
"@walletconnect/web3wallet": "^1.15.2",
"bignumber.js": "^9.0.2",
"buffer": "^6.0.3",
"eip55": "^2.1.0",
"i18next": "^23.14.0",
"i18next": "^23.15.1",
"i18next-http-backend": "^2.6.1",
"jotai": "^2.9.3",
"jotai": "^2.10.0",
"notistack": "^3.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^15.0.1",
"react-i18next": "^15.0.2",
"react-qr-reader": "2.2.1",
"react-transition-group": "^4.4.2",
"styled-components": "^5.3.11",
"zustand": "^4.5.5"
"styled-components": "^5.3.11"
},
"devDependencies": {
"@eslint/js": "^9.9.1",
"@playwright/test": "^1.46.1",
"@eslint/js": "^9.11.1",
"@playwright/test": "^1.47.2",
"@rollup/plugin-inject": "^5.0.5",
"@sentry/vite-plugin": "^2.22.4",
"@tanstack/eslint-plugin-query": "^5.53.0",
"@tanstack/eslint-plugin-query": "^5.57.1",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.2.0",
"@types/eslint-config-prettier": "^6.11.3",
"@types/jest": "^29.5.12",
"@types/node": "22.5.4",
"@types/react": "18.3.5",
"@types/jest": "^29.5.13",
"@types/node": "22.6.1",
"@types/react": "18.3.9",
"@types/react-dom": "18.3.0",
"@types/react-qr-reader": "^2.1.4",
"@types/react-transition-group": "^4.4.11",
"@types/segment-analytics": "^0.0.38",
"@types/styled-components": "^5.1.34",
"@types/styled-system": "^5.1.22",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/coverage-v8": "^2.0.5",
"@walletconnect/types": "^2.15.2",
"@vitest/coverage-v8": "^2.1.1",
"@walletconnect/types": "^2.16.2",
"babel-plugin-styled-components": "^2.1.4",
"esbuild-plugin-polyfill-node": "^0.3.0",
"eslint": "^9.9.1",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.35.2",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-react-hooks": "5.1.0-rc-04bd67a4-20240924",
"eslint-plugin-react-refresh": "^0.4.12",
"eslint-plugin-testing-library": "^6.3.0",
"globals": "^15.9.0",
"happy-dom": "^15.7.3",
"happy-dom": "^15.7.4",
"jest-environment-jsdom": "^29.7.0",
"jest-styled-components": "^7.2.0",
"playwright-test-coverage": "^1.2.12",
"prettier": "^3.3.3",
"typescript": "5.5.4",
"typescript-eslint": "^8.4.0",
"vite": "^5.4.3",
"typescript": "5.6.2",
"typescript-eslint": "^8.7.0",
"vite": "^5.4.7",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.0.5",
"vitest": "^2.1.1",
"vitest-dom": "^0.1.1"
},
"packageManager": "pnpm@8.14.1+sha512.856c4ecd97c5d3f30354ebc373cd32fb37274295c489db2d0f613a1e60f010cadfbb15036d525f3a06dec1897e4219b3c4f6d3be8f2f62fb0a366bee6aaa7533"
"packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b"
}
Loading

0 comments on commit f5be18b

Please sign in to comment.