From e945cd72bc1b063a064084aa512dd3efbe3111ed Mon Sep 17 00:00:00 2001 From: Chukwunonso Ikeji Date: Sun, 5 Nov 2023 01:16:48 +0100 Subject: [PATCH] migrate: particle.network (#110) * fixes/meta/seo * repository page ui fixed * initial commit * feat: add header to notification * feat: add notification avatars * feat: add notification data * feat: update Notification * feat: update notification page add notification component * fix : bug fixed * style: pretty code by ci * settings Ui Done * settings Ui Done * fix/dashboard * style: pretty code by ci * nvmrc: Signed-off-by: Nasfame Took 7 minutes * notification ui error fixed * dashboard ui fixed * style: pretty code by ci * fixed zoom error * style: pretty code by ci * error fixed * style: pretty code by ci * peer dep issue * style: pretty code by ci * particle network inegrated but only google is working * particle netwrok fully integrated * style: pretty code by ci * build error fixed * build error * ethers error fixed * loading sign added to auth flow * fix-ci: check window Signed-off-by: Nasfame Took 9 minutes * style: pretty code by ci * unstable cos of layout is client based * style: pretty code by ci * work around, still maintain server side * style: pretty code by ci --------- Signed-off-by: Nasfame Co-authored-by: Raji Roqeeb Olalekan Co-authored-by: sheriff Oladimeji Co-authored-by: Sheriff-Oladimeji Co-authored-by: Codebox124 Co-authored-by: Nasfame Co-authored-by: techyNonso Co-authored-by: Nasfame --- config/authConfig.ts | 24 - package.json | 12 +- pnpm-lock.yaml | 1907 +++++++---------------- src/app/NetworkProvider.tsx | 52 + src/app/api/prisma/user_exists/route.ts | 12 +- src/app/components/Loading.tsx | 23 + src/app/components/fvm/UploadFile.jsx | 228 +-- src/app/dashboard/dashLayout.tsx | 29 +- src/app/dashboard/page.tsx | 2 +- src/app/demo/page.tsx | 901 +++++------ src/app/explore/page.tsx | 210 +-- src/app/layout.tsx | 11 +- src/app/providers.tsx | 146 +- src/app/test/page.jsx | 13 - src/lib/particle.ts | 20 +- src/lib/prismaUtils.ts | 17 +- tsconfig.json | 3 +- utils/_web3auth.ts | 112 -- 18 files changed, 1398 insertions(+), 2324 deletions(-) delete mode 100644 config/authConfig.ts create mode 100644 src/app/NetworkProvider.tsx create mode 100644 src/app/components/Loading.tsx delete mode 100644 src/app/test/page.jsx delete mode 100644 utils/_web3auth.ts diff --git a/config/authConfig.ts b/config/authConfig.ts deleted file mode 100644 index 7924405..0000000 --- a/config/authConfig.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Web3AuthNoModalOptions } from '@web3auth/no-modal' -import { CHAIN_NAMESPACES } from '@web3auth/base' - -export const Web3AuthConfig: Web3AuthNoModalOptions = { - // @note: TODO: change to mainnet once ready for prod - clientId: process.env.NEXT_PUBLIC_AUTH_CID, - web3AuthNetwork: 'sapphire_devnet', - chainConfig: { - chainNamespace: CHAIN_NAMESPACES.EIP155, - chainId: '0x13881', - rpcTarget: 'https://rpc-mumbai.maticvigil.com', // This is the public RPC we have added, please pass on your own endpoint while creating an app - }, -} -export const WagmiProjectId = 'db1b8a46ffa835bd9a48a89ff540f990' -export const Web3AuthEthPrivateKeyProviderConfig = { - chainConfig: { - chainId: '0x13881', - rpcTarget: 'https://rpc-mumbai.maticvigil.com', - displayName: 'Polygon Mumbai', - blockExplorer: 'https://mumbai.polygonscan.com/', - ticker: 'MATIC', - tickerName: 'Matic', - }, -} diff --git a/package.json b/package.json index 80f866a..0b443cc 100644 --- a/package.json +++ b/package.json @@ -42,17 +42,13 @@ "@nextui-org/react": "^2.1.13", "@particle-network/auth": "^1.2.2", "@particle-network/chains": "^1.3.0", + "@particle-network/connect": "^1.2.1", + "@particle-network/connect-react-ui": "^1.2.1", "@particle-network/provider": "^1.2.1", "@prisma/client": "^5.5.2", - "@rainbow-me/rainbowkit": "^1.1.1", "@types/node": "20.6.2", "@types/react": "18.2.21", "@types/react-dom": "18.2.7", - "@wagmi/core": "^1.4.3", - "@web3auth/base": "^7.0.4", - "@web3auth/ethereum-provider": "^7.0.4", - "@web3auth/no-modal": "^7.0.4", - "@web3auth/openlogin-adapter": "^7.0.4", "argon2": "^0.31.1", "autoprefixer": "10.4.15", "axios": "^1.5.1", @@ -63,7 +59,7 @@ "encoding": "^0.1.13", "eslint": "8.49.0", "eslint-config-next": "13.4.19", - "ethers": "^6.8.0", + "ethers": "5.7", "file-saver": "^2.0.5", "framer-motion": "^10.16.4", "fs": "0.0.1-security", @@ -86,8 +82,6 @@ "tailwindcss": "3.3.3", "typescript": "5.2.2", "unique-username-generator": "^1.2.0", - "viem": "^1.16.0", - "wagmi": "^1.4.3", "web3.storage": "^4.5.5" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d4cf04..d63f01f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,15 +20,18 @@ dependencies: '@particle-network/chains': specifier: ^1.3.0 version: 1.3.0 + '@particle-network/connect': + specifier: ^1.2.1 + version: 1.2.1(@solana/web3.js@1.87.3)(@types/react@18.2.21)(bs58@4.0.1)(encoding@0.1.13)(lokijs@1.5.12)(react@18.2.0) + '@particle-network/connect-react-ui': + specifier: ^1.2.1 + version: 1.2.1(@solana/web3.js@1.87.3)(@types/react@18.2.21)(bs58@4.0.1)(encoding@0.1.13)(lokijs@1.5.12)(react-dom@18.2.0)(react@18.2.0) '@particle-network/provider': specifier: ^1.2.1 version: 1.2.1(@particle-network/auth@1.2.2) '@prisma/client': specifier: ^5.5.2 version: 5.5.2(prisma@5.5.2) - '@rainbow-me/rainbowkit': - specifier: ^1.1.1 - version: 1.1.1(@types/react@18.2.21)(react-dom@18.2.0)(react@18.2.0)(viem@1.16.0)(wagmi@1.4.3) '@types/node': specifier: 20.6.2 version: 20.6.2 @@ -38,21 +41,6 @@ dependencies: '@types/react-dom': specifier: 18.2.7 version: 18.2.7 - '@wagmi/core': - specifier: ^1.4.3 - version: 1.4.3(@types/react@18.2.21)(encoding@0.1.13)(lokijs@1.5.12)(react@18.2.0)(typescript@5.2.2)(viem@1.16.0) - '@web3auth/base': - specifier: ^7.0.4 - version: 7.0.4(@babel/runtime@7.22.15) - '@web3auth/ethereum-provider': - specifier: ^7.0.4 - version: 7.0.4(@babel/runtime@7.22.15)(lokijs@1.5.12) - '@web3auth/no-modal': - specifier: ^7.0.4 - version: 7.0.4(@babel/runtime@7.22.15) - '@web3auth/openlogin-adapter': - specifier: ^7.0.4 - version: 7.0.4(@babel/runtime@7.22.15)(@solana/web3.js@1.78.5) argon2: specifier: ^0.31.1 version: 0.31.1(encoding@0.1.13) @@ -84,8 +72,8 @@ dependencies: specifier: 13.4.19 version: 13.4.19(eslint@8.49.0)(typescript@5.2.2) ethers: - specifier: ^6.8.0 - version: 6.8.0 + specifier: '5.7' + version: 5.7.0 file-saver: specifier: ^2.0.5 version: 2.0.5 @@ -152,12 +140,6 @@ dependencies: unique-username-generator: specifier: ^1.2.0 version: 1.2.0 - viem: - specifier: ^1.16.0 - version: 1.16.0(typescript@5.2.2) - wagmi: - specifier: ^1.4.3 - version: 1.4.3(@types/react@18.2.21)(encoding@0.1.13)(lokijs@1.5.12)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.16.0) web3.storage: specifier: ^4.5.5 version: 4.5.5(encoding@0.1.13)(node-fetch@2.7.0) @@ -246,10 +228,6 @@ packages: resolution: {integrity: sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==} dev: false - /@adraffy/ens-normalize@1.9.4: - resolution: {integrity: sha512-UK0bHA7hh9cR39V+4gl2/NnBBjoXIxkuWAPCaY4X7fbH4L/azIi7ilWOCjMUYfpJgraLUAqkRi2BqrjME8Rynw==} - dev: false - /@alloc/quick-lru@5.2.0: resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} engines: {node: '>=10'} @@ -535,6 +513,12 @@ packages: dependencies: regenerator-runtime: 0.14.0 + /@babel/runtime@7.23.2: + resolution: {integrity: sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==} + engines: {node: '>=6.9.0'} + dependencies: + regenerator-runtime: 0.14.0 + /@babel/template@7.22.15: resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==} engines: {node: '>=6.9.0'} @@ -587,7 +571,7 @@ packages: engines: {node: '>= 10.0.0'} dependencies: '@metamask/safe-event-emitter': 2.0.0 - '@solana/web3.js': 1.78.5(encoding@0.1.13) + '@solana/web3.js': 1.87.3(encoding@0.1.13) bind-decorator: 1.0.11 bn.js: 5.2.1 buffer: 6.0.3 @@ -597,7 +581,7 @@ packages: eth-rpc-errors: 4.0.2 json-rpc-engine: 6.1.0 keccak: 3.0.4 - preact: 10.17.1 + preact: 10.18.2 qs: 6.11.2 rxjs: 6.6.7 sha.js: 2.4.11 @@ -633,10 +617,6 @@ packages: - supports-color dev: true - /@emotion/hash@0.8.0: - resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==} - dev: false - /@emotion/is-prop-valid@0.8.8: resolution: {integrity: sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==} requiresBuild: true @@ -684,82 +664,319 @@ packages: resolution: {integrity: sha512-1S8uAY/MTJqVx0SC4epBq+N2yhuwtNwLbJYNZyhL2pO1ZVKn5HFXav5T41Ryzy9K9V7ZId2JB2oy/W4aCd9/2w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - /@ethereumjs/common@3.2.0: - resolution: {integrity: sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==} + /@ethersproject/abi@5.7.0: + resolution: {integrity: sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA==} dependencies: - '@ethereumjs/util': 8.1.0 - crc-32: 1.2.2 + '@ethersproject/address': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/constants': 5.7.0 + '@ethersproject/hash': 5.7.0 + '@ethersproject/keccak256': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/strings': 5.7.0 dev: false - /@ethereumjs/common@4.0.0: - resolution: {integrity: sha512-eVa0/nC15mpotD8HOq6jB883SCWUkLjibr2jLPmPrx4FfmewXqFeh4drgR2sHjq3qWKxpCLK+5qsSJgtXwIzJQ==} + /@ethersproject/abstract-provider@5.7.0: + resolution: {integrity: sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw==} dependencies: - '@ethereumjs/util': 9.0.0 - crc: 4.3.2 - transitivePeerDependencies: - - buffer - - c-kzg + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/networks': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/transactions': 5.7.0 + '@ethersproject/web': 5.7.0 dev: false - /@ethereumjs/rlp@4.0.1: - resolution: {integrity: sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==} - engines: {node: '>=14'} - hasBin: true + /@ethersproject/abstract-signer@5.7.0: + resolution: {integrity: sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ==} + dependencies: + '@ethersproject/abstract-provider': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/properties': 5.7.0 dev: false - /@ethereumjs/rlp@5.0.0: - resolution: {integrity: sha512-WuS1l7GJmB0n0HsXLozCoEFc9IwYgf3l0gCkKVYgR67puVF1O4OpEaN0hWmm1c+iHUHFCKt1hJrvy5toLg+6ag==} - engines: {node: '>=18'} - hasBin: true + /@ethersproject/address@5.7.0: + resolution: {integrity: sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA==} + dependencies: + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/keccak256': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/rlp': 5.7.0 dev: false - /@ethereumjs/tx@4.2.0: - resolution: {integrity: sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==} - engines: {node: '>=14'} + /@ethersproject/base64@5.7.0: + resolution: {integrity: sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ==} dependencies: - '@ethereumjs/common': 3.2.0 - '@ethereumjs/rlp': 4.0.1 - '@ethereumjs/util': 8.1.0 - ethereum-cryptography: 2.1.2 + '@ethersproject/bytes': 5.7.0 dev: false - /@ethereumjs/tx@5.0.0: - resolution: {integrity: sha512-bJBC/jHVIbwvZBVsK0Ls70NzxJ8Q3UvPwskG1LO6+ryVGKY0y1bhRreo0/gR3vTkuRjD+x5QTYV6fIY16tswJA==} - engines: {node: '>=18'} - peerDependencies: - c-kzg: ^2.1.0 - peerDependenciesMeta: - c-kzg: - optional: true + /@ethersproject/basex@5.7.0: + resolution: {integrity: sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw==} + dependencies: + '@ethersproject/bytes': 5.7.0 + '@ethersproject/properties': 5.7.0 + dev: false + + /@ethersproject/bignumber@5.7.0: + resolution: {integrity: sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==} + dependencies: + '@ethersproject/bytes': 5.7.0 + '@ethersproject/logger': 5.7.0 + bn.js: 5.2.1 + dev: false + + /@ethersproject/bytes@5.7.0: + resolution: {integrity: sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A==} + dependencies: + '@ethersproject/logger': 5.7.0 + dev: false + + /@ethersproject/constants@5.7.0: + resolution: {integrity: sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA==} + dependencies: + '@ethersproject/bignumber': 5.7.0 + dev: false + + /@ethersproject/contracts@5.7.0: + resolution: {integrity: sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg==} + dependencies: + '@ethersproject/abi': 5.7.0 + '@ethersproject/abstract-provider': 5.7.0 + '@ethersproject/abstract-signer': 5.7.0 + '@ethersproject/address': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/constants': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/transactions': 5.7.0 + dev: false + + /@ethersproject/hash@5.7.0: + resolution: {integrity: sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g==} + dependencies: + '@ethersproject/abstract-signer': 5.7.0 + '@ethersproject/address': 5.7.0 + '@ethersproject/base64': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/keccak256': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/strings': 5.7.0 + dev: false + + /@ethersproject/hdnode@5.7.0: + resolution: {integrity: sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg==} + dependencies: + '@ethersproject/abstract-signer': 5.7.0 + '@ethersproject/basex': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/pbkdf2': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/sha2': 5.7.0 + '@ethersproject/signing-key': 5.7.0 + '@ethersproject/strings': 5.7.0 + '@ethersproject/transactions': 5.7.0 + '@ethersproject/wordlists': 5.7.0 + dev: false + + /@ethersproject/json-wallets@5.7.0: + resolution: {integrity: sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g==} + dependencies: + '@ethersproject/abstract-signer': 5.7.0 + '@ethersproject/address': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/hdnode': 5.7.0 + '@ethersproject/keccak256': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/pbkdf2': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/random': 5.7.0 + '@ethersproject/strings': 5.7.0 + '@ethersproject/transactions': 5.7.0 + aes-js: 3.0.0 + scrypt-js: 3.0.1 + dev: false + + /@ethersproject/keccak256@5.7.0: + resolution: {integrity: sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg==} + dependencies: + '@ethersproject/bytes': 5.7.0 + js-sha3: 0.8.0 + dev: false + + /@ethersproject/logger@5.7.0: + resolution: {integrity: sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==} + dev: false + + /@ethersproject/networks@5.7.0: + resolution: {integrity: sha512-MG6oHSQHd4ebvJrleEQQ4HhVu8Ichr0RDYEfHzsVAVjHNM+w36x9wp9r+hf1JstMXtseXDtkiVoARAG6M959AA==} + dependencies: + '@ethersproject/logger': 5.7.0 + dev: false + + /@ethersproject/pbkdf2@5.7.0: + resolution: {integrity: sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw==} + dependencies: + '@ethersproject/bytes': 5.7.0 + '@ethersproject/sha2': 5.7.0 + dev: false + + /@ethersproject/properties@5.7.0: + resolution: {integrity: sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw==} dependencies: - '@ethereumjs/common': 4.0.0 - '@ethereumjs/rlp': 5.0.0 - '@ethereumjs/util': 9.0.0 - ethereum-cryptography: 2.1.2 + '@ethersproject/logger': 5.7.0 + dev: false + + /@ethersproject/providers@5.7.0: + resolution: {integrity: sha512-+TTrrINMzZ0aXtlwO/95uhAggKm4USLm1PbeCBR/3XZ7+Oey+3pMyddzZEyRhizHpy1HXV0FRWRMI1O3EGYibA==} + dependencies: + '@ethersproject/abstract-provider': 5.7.0 + '@ethersproject/abstract-signer': 5.7.0 + '@ethersproject/address': 5.7.0 + '@ethersproject/base64': 5.7.0 + '@ethersproject/basex': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/constants': 5.7.0 + '@ethersproject/hash': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/networks': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/random': 5.7.0 + '@ethersproject/rlp': 5.7.0 + '@ethersproject/sha2': 5.7.0 + '@ethersproject/strings': 5.7.0 + '@ethersproject/transactions': 5.7.0 + '@ethersproject/web': 5.7.0 + bech32: 1.1.4 + ws: 7.4.6 transitivePeerDependencies: - - buffer + - bufferutil + - utf-8-validate dev: false - /@ethereumjs/util@8.1.0: - resolution: {integrity: sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==} - engines: {node: '>=14'} + /@ethersproject/random@5.7.0: + resolution: {integrity: sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ==} dependencies: - '@ethereumjs/rlp': 4.0.1 - ethereum-cryptography: 2.1.2 - micro-ftch: 0.3.1 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/logger': 5.7.0 dev: false - /@ethereumjs/util@9.0.0: - resolution: {integrity: sha512-V8062I+ZXfFxtFLp7xsPeiT1IxDaVOZaM78nGj1gsWUFeZ8SgADMLDKWehp+muTy1JRbVoXFljZ1qoyv9ji/2g==} - engines: {node: '>=18'} - peerDependencies: - c-kzg: ^2.1.0 - peerDependenciesMeta: - c-kzg: - optional: true + /@ethersproject/rlp@5.7.0: + resolution: {integrity: sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w==} + dependencies: + '@ethersproject/bytes': 5.7.0 + '@ethersproject/logger': 5.7.0 + dev: false + + /@ethersproject/sha2@5.7.0: + resolution: {integrity: sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw==} + dependencies: + '@ethersproject/bytes': 5.7.0 + '@ethersproject/logger': 5.7.0 + hash.js: 1.1.7 + dev: false + + /@ethersproject/signing-key@5.7.0: + resolution: {integrity: sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q==} + dependencies: + '@ethersproject/bytes': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/properties': 5.7.0 + bn.js: 5.2.1 + elliptic: 6.5.4 + hash.js: 1.1.7 + dev: false + + /@ethersproject/solidity@5.7.0: + resolution: {integrity: sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA==} + dependencies: + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/keccak256': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/sha2': 5.7.0 + '@ethersproject/strings': 5.7.0 + dev: false + + /@ethersproject/strings@5.7.0: + resolution: {integrity: sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg==} + dependencies: + '@ethersproject/bytes': 5.7.0 + '@ethersproject/constants': 5.7.0 + '@ethersproject/logger': 5.7.0 + dev: false + + /@ethersproject/transactions@5.7.0: + resolution: {integrity: sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ==} + dependencies: + '@ethersproject/address': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/constants': 5.7.0 + '@ethersproject/keccak256': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/rlp': 5.7.0 + '@ethersproject/signing-key': 5.7.0 + dev: false + + /@ethersproject/units@5.7.0: + resolution: {integrity: sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg==} + dependencies: + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/constants': 5.7.0 + '@ethersproject/logger': 5.7.0 + dev: false + + /@ethersproject/wallet@5.7.0: + resolution: {integrity: sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA==} + dependencies: + '@ethersproject/abstract-provider': 5.7.0 + '@ethersproject/abstract-signer': 5.7.0 + '@ethersproject/address': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/hash': 5.7.0 + '@ethersproject/hdnode': 5.7.0 + '@ethersproject/json-wallets': 5.7.0 + '@ethersproject/keccak256': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/random': 5.7.0 + '@ethersproject/signing-key': 5.7.0 + '@ethersproject/transactions': 5.7.0 + '@ethersproject/wordlists': 5.7.0 + dev: false + + /@ethersproject/web@5.7.0: + resolution: {integrity: sha512-ApHcbbj+muRASVDSCl/tgxaH2LBkRMEYfLOLVa0COipx0+nlu0QKet7U2lEg0vdkh8XRSLf2nd1f1Uk9SrVSGA==} + dependencies: + '@ethersproject/base64': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/strings': 5.7.0 + dev: false + + /@ethersproject/wordlists@5.7.0: + resolution: {integrity: sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA==} dependencies: - '@ethereumjs/rlp': 5.0.0 - ethereum-cryptography: 2.1.2 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/hash': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/strings': 5.7.0 dev: false /@fastify/busboy@2.0.0: @@ -1144,10 +1361,6 @@ packages: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 - /@ledgerhq/connect-kit-loader@1.1.2: - resolution: {integrity: sha512-mscwGroSJQrCTjtNGBu+18FQbZYA4+q6Tyx6K7CXHl6AwgZKbWfZYdgP2F+fyZcRUdGRsMX8QtvU61VcGGtO1A==} - dev: false - /@libp2p/interface@0.1.3: resolution: {integrity: sha512-C1O7Xqd2TGVWrIOEDx6kGJSk4YOysWGmYG5Oh3chnsCY0wjUSsLDpl9+wKrdiM/lJbAlHlV65ZOvSkIQ9cWPBQ==} dependencies: @@ -1199,14 +1412,14 @@ packages: - utf-8-validate dev: false - /@lit-labs/ssr-dom-shim@1.1.1: - resolution: {integrity: sha512-kXOeFbfCm4fFf2A3WwVEeQj55tMZa8c8/f9AKHMobQMkzNUfUj+antR3fRPaZJawsa1aZiP/Da3ndpZrwEe4rQ==} + /@lit-labs/ssr-dom-shim@1.1.2: + resolution: {integrity: sha512-jnOD+/+dSrfTWYfSXBXlo5l5f0q1UuJo3tkbMDCYA2lKUYq79jaxqtGEvnRoh049nt1vdo1+45RinipU6FGY2g==} dev: false /@lit/reactive-element@1.6.3: resolution: {integrity: sha512-QuTgnG52Poic7uM1AN5yJ09QMe0O28e10XzSvWDz02TJiiKee4stsiownEIadWm8nYzyDAyT+gKzUoZmiWQtsQ==} dependencies: - '@lit-labs/ssr-dom-shim': 1.1.1 + '@lit-labs/ssr-dom-shim': 1.1.2 dev: false /@mapbox/node-pre-gyp@1.0.11(encoding@0.1.13): @@ -1227,41 +1440,6 @@ packages: - supports-color dev: false - /@metamask/abi-utils@2.0.2: - resolution: {integrity: sha512-B/A1dY/w4F/t6cDHUscklO6ovb/ztFsrsTXFd8QlqSByk/vyy+QbPE3VVpmmyI/7RX+PA1AJcvBdzCIz+r9dVQ==} - engines: {node: '>=16.0.0'} - dependencies: - '@metamask/utils': 8.1.0 - superstruct: 1.0.3 - transitivePeerDependencies: - - supports-color - dev: false - - /@metamask/eth-sig-util@7.0.0: - resolution: {integrity: sha512-8KeXZB4SKx3EfNS5ahbjUMegyGvDQYk6Nk3hmM658sXpfAQR5ZlIXBgj+9RF+ZROqsU6EuNVgKt7Fr10re60PQ==} - engines: {node: ^16.20 || ^18.16 || >=20} - dependencies: - '@ethereumjs/util': 8.1.0 - '@metamask/abi-utils': 2.0.2 - '@metamask/utils': 8.1.0 - ethereum-cryptography: 2.1.2 - ethjs-util: 0.1.6 - tweetnacl: 1.0.3 - tweetnacl-util: 0.15.1 - transitivePeerDependencies: - - supports-color - dev: false - - /@metamask/rpc-errors@6.1.0: - resolution: {integrity: sha512-JQElKxai26FpDyRKO/yH732wI+BV90i1u6pOuDOpdADSbppB2g1pPh3AGST1zkZqEE9eIKIUw8UdBQ4rp3VTSg==} - engines: {node: '>=16.0.0'} - dependencies: - '@metamask/utils': 8.1.0 - fast-safe-stringify: 2.1.1 - transitivePeerDependencies: - - supports-color - dev: false - /@metamask/safe-event-emitter@2.0.0: resolution: {integrity: sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q==} dev: false @@ -1270,21 +1448,7 @@ packages: resolution: {integrity: sha512-9cIRrfkWvHblSiNDVXsjivqa9Ak0RYo/1H6tqTqTbAx+oBK2Sva0lWDHxGchOqA7bySGUJKAWSNJvH6gdHZ0gQ==} engines: {node: '>=14.0.0'} dependencies: - '@types/debug': 4.1.9 - debug: 4.3.4 - semver: 7.5.4 - superstruct: 1.0.3 - transitivePeerDependencies: - - supports-color - dev: false - - /@metamask/utils@8.1.0: - resolution: {integrity: sha512-sFNpzBKRicDgM2ZuU6vrPROlqNGm8/jDsjc5WrU1RzCkAMc4Xr3vUUf8p59uQ6B09etUWNb8d2GTCbISdmH/Ug==} - engines: {node: '>=16.0.0'} - dependencies: - '@ethereumjs/tx': 4.2.0 - '@noble/hashes': 1.3.2 - '@types/debug': 4.1.9 + '@types/debug': 4.1.10 debug: 4.3.4 semver: 7.5.4 superstruct: 1.0.3 @@ -2585,12 +2749,6 @@ packages: - tailwindcss dev: false - /@noble/curves@1.1.0: - resolution: {integrity: sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==} - dependencies: - '@noble/hashes': 1.3.1 - dev: false - /@noble/curves@1.2.0: resolution: {integrity: sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==} dependencies: @@ -2601,11 +2759,6 @@ packages: resolution: {integrity: sha512-iR8GBkDt0Q3GyaVcIu7mSsVIqnFbkbRzGLWlvhwunacoLwt4J3swfKhfaM6rN6WY+TBGoYT1GtT1mIh2/jGbRQ==} dev: false - /@noble/hashes@1.3.1: - resolution: {integrity: sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==} - engines: {node: '>= 16'} - dev: false - /@noble/hashes@1.3.2: resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} engines: {node: '>= 16'} @@ -2654,6 +2807,54 @@ packages: resolution: {integrity: sha512-KId6Ko06yWp0CoVLCoQ2zu1ePHgs3tHm0/t81xflVyWmwd62ChKt+eFADQY+/CyVqK61HBN7Jlq2BQghXKK/iA==} dev: false + /@particle-network/connect-react-ui@1.2.1(@solana/web3.js@1.87.3)(@types/react@18.2.21)(bs58@4.0.1)(encoding@0.1.13)(lokijs@1.5.12)(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-bNBwLAVzcbt0niWF4Itg9/RbL3JW/TCfpshcGb2HtZULv9MrmkFogeUL1VRtWs+8oqPsYzkHbUcArVLRcZo1GQ==} + dependencies: + '@particle-network/connect': 1.2.1(@solana/web3.js@1.87.3)(@types/react@18.2.21)(bs58@4.0.1)(encoding@0.1.13)(lokijs@1.5.12)(react@18.2.0) + i18next: 22.5.1 + qrcode: 1.5.3 + react-i18next: 12.3.1(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0) + react-svg: 16.1.29(react-dom@18.2.0)(react@18.2.0) + transitivePeerDependencies: + - '@react-native-async-storage/async-storage' + - '@solana/web3.js' + - '@types/react' + - bs58 + - bufferutil + - debug + - encoding + - lokijs + - react + - react-dom + - react-native + - supports-color + - utf-8-validate + dev: false + + /@particle-network/connect@1.2.1(@solana/web3.js@1.87.3)(@types/react@18.2.21)(bs58@4.0.1)(encoding@0.1.13)(lokijs@1.5.12)(react@18.2.0): + resolution: {integrity: sha512-4sV94SOotw0PPMnaCBgq+9UgGt7/aEu7wRVnT6ehXpuw/qifxrsjRdO2rBemDfojyHCYRdTgU5fT9tUXNURX8w==} + dependencies: + '@coinbase/wallet-sdk': 3.7.2(encoding@0.1.13) + '@particle-network/auth': 1.2.2 + '@particle-network/provider': 1.2.1(@particle-network/auth@1.2.2) + '@particle-network/solana-wallet': 1.2.1(@particle-network/auth@1.2.2)(@solana/web3.js@1.87.3)(bs58@4.0.1) + '@walletconnect/ethereum-provider': 2.9.2(@walletconnect/modal@2.6.2)(encoding@0.1.13)(lokijs@1.5.12) + '@walletconnect/modal': 2.6.2(@types/react@18.2.21)(react@18.2.0) + eventemitter3: 4.0.7 + transitivePeerDependencies: + - '@react-native-async-storage/async-storage' + - '@solana/web3.js' + - '@types/react' + - bs58 + - bufferutil + - debug + - encoding + - lokijs + - react + - supports-color + - utf-8-validate + dev: false + /@particle-network/crypto@1.0.1: resolution: {integrity: sha512-GgvHmHcFiNkCLZdcJOgctSbgvs251yp+EAdUydOE3gSoIxN6KEr/Snu9DebENhd/nFb7FDk5ap0Hg49P7pj1fg==} dependencies: @@ -2674,6 +2875,18 @@ packages: - debug dev: false + /@particle-network/solana-wallet@1.2.1(@particle-network/auth@1.2.2)(@solana/web3.js@1.87.3)(bs58@4.0.1): + resolution: {integrity: sha512-s7kG1NdC+aB4+pp4KGr+N9DwPUEG6V1rYVh3n3xRDjXBd7QoycY8UZIyKthELeSrBrTQdr2rSq3Dhmh4LAtOCg==} + peerDependencies: + '@particle-network/auth': '*' + '@solana/web3.js': ^1.50.1 + bs58: ^4.0.1 + dependencies: + '@particle-network/auth': 1.2.2 + '@solana/web3.js': 1.87.3(encoding@0.1.13) + bs58: 4.0.1 + dev: false + /@peculiar/asn1-schema@2.3.6: resolution: {integrity: sha512-izNRxPoaeJeg/AyH8hER6s+H7p4itk+03QCa4sbxI3lNdseQYCuxzgsuNK8bTXChtLTjpJz6NmXKA73qLa3rCA==} dependencies: @@ -2777,30 +2990,6 @@ packages: resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} dev: false - /@rainbow-me/rainbowkit@1.1.1(@types/react@18.2.21)(react-dom@18.2.0)(react@18.2.0)(viem@1.16.0)(wagmi@1.4.3): - resolution: {integrity: sha512-6NGeH2SpJYolstt9RXU6XwmvyL29XKc6OYZtctvdM83F/WNkRX+ywwBrfNNES9BAS6QNdOnPa7nIu+ghtFBgnQ==} - engines: {node: '>=12.4'} - peerDependencies: - react: '>=17' - react-dom: '>=17' - viem: ~0.3.19 || ^1.0.0 - wagmi: ~1.0.1 || ~1.1.0 || ~1.2.0 || ~1.3.0 || ~1.4.0 - dependencies: - '@vanilla-extract/css': 1.9.1 - '@vanilla-extract/dynamic': 2.0.2 - '@vanilla-extract/sprinkles': 1.5.0(@vanilla-extract/css@1.9.1) - clsx: 1.1.1 - i18n-js: 4.3.2 - qrcode: 1.5.0 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - react-remove-scroll: 2.5.4(@types/react@18.2.21)(react@18.2.0) - viem: 1.16.0(typescript@5.2.2) - wagmi: 1.4.3(@types/react@18.2.21)(encoding@0.1.13)(lokijs@1.5.12)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.16.0) - transitivePeerDependencies: - - '@types/react' - dev: false - /@react-aria/button@3.8.4(react@18.2.0): resolution: {integrity: sha512-rTGZk5zu+lQNjfij2fwnw2PAgBgzNLi3zbMw1FL5/XwVx+lEH2toeqKLoqULtd7nSxskYuQz56VhmjUok6Qkmg==} peerDependencies: @@ -3569,74 +3758,6 @@ packages: resolution: {integrity: sha512-cEjvTPU32OM9lUFegJagO0mRnIn+rbqrG89vV8/xLnLFX0DoR0r1oy5IlTga71Q7uT3Qus7qm7wgeiMT/+Irlg==} dev: false - /@safe-global/safe-apps-provider@0.17.1(typescript@5.2.2): - resolution: {integrity: sha512-lYfRqrbbK1aKU1/UGkYWc/X7PgySYcumXKc5FB2uuwAs2Ghj8uETuW5BrwPqyjBknRxutFbTv+gth/JzjxAhdQ==} - dependencies: - '@safe-global/safe-apps-sdk': 8.0.0(typescript@5.2.2) - events: 3.3.0 - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - dev: false - - /@safe-global/safe-apps-sdk@8.0.0(typescript@5.2.2): - resolution: {integrity: sha512-gYw0ki/EAuV1oSyMxpqandHjnthZjYYy+YWpTAzf8BqfXM3ItcZLpjxfg+3+mXW8HIO+3jw6T9iiqEXsqHaMMw==} - dependencies: - '@safe-global/safe-gateway-typescript-sdk': 3.12.0 - viem: 1.16.0(typescript@5.2.2) - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - dev: false - - /@safe-global/safe-apps-sdk@8.1.0(typescript@5.2.2): - resolution: {integrity: sha512-XJbEPuaVc7b9n23MqlF6c+ToYIS3f7P2Sel8f3cSBQ9WORE4xrSuvhMpK9fDSFqJ7by/brc+rmJR/5HViRr0/w==} - dependencies: - '@safe-global/safe-gateway-typescript-sdk': 3.12.0 - viem: 1.16.0(typescript@5.2.2) - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - dev: false - - /@safe-global/safe-gateway-typescript-sdk@3.12.0: - resolution: {integrity: sha512-hExCo62lScVC9/ztVqYEYL2pFxcqLTvB8fj0WtdP5FWrvbtEgD0pbVolchzD5bf85pbzvEwdAxSVS7EdCZxTNw==} - engines: {node: '>=16'} - dev: false - - /@scure/base@1.1.3: - resolution: {integrity: sha512-/+SgoRjLq7Xlf0CWuLHq2LUZeL/w65kfzAPG5NH9pcmBhs+nunQTn4gvdwgMTIXnt9b2C/1SeL2XiysZEyIC9Q==} - dev: false - - /@scure/bip32@1.3.1: - resolution: {integrity: sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==} - dependencies: - '@noble/curves': 1.1.0 - '@noble/hashes': 1.3.2 - '@scure/base': 1.1.3 - dev: false - - /@scure/bip32@1.3.2: - resolution: {integrity: sha512-N1ZhksgwD3OBlwTv3R6KFEcPojl/W4ElJOeCZdi+vuI5QmTFwLq3OFf2zd2ROpKvxFdgZ6hUpb0dx9bVNEwYCA==} - dependencies: - '@noble/curves': 1.2.0 - '@noble/hashes': 1.3.2 - '@scure/base': 1.1.3 - dev: false - - /@scure/bip39@1.2.1: - resolution: {integrity: sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==} - dependencies: - '@noble/hashes': 1.3.2 - '@scure/base': 1.1.3 - dev: false - /@sideway/address@4.1.4: resolution: {integrity: sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==} dependencies: @@ -3669,10 +3790,6 @@ packages: dependencies: '@sinonjs/commons': 3.0.0 - /@socket.io/component-emitter@3.1.0: - resolution: {integrity: sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==} - dev: false - /@solana/buffer-layout@4.0.1: resolution: {integrity: sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==} engines: {node: '>=5.10'} @@ -3680,10 +3797,10 @@ packages: buffer: 6.0.3 dev: false - /@solana/web3.js@1.78.5(encoding@0.1.13): - resolution: {integrity: sha512-2ZHsDNqkKdglJQrIvJ3p2DmgS3cGnary3VJyqt9C1SPrpAtLYzcElr3xyXJOznyQTU/8AMw+GoF11lFoKbicKg==} + /@solana/web3.js@1.87.3(encoding@0.1.13): + resolution: {integrity: sha512-WGLzTZpi00vP443qGK3gL+LZXQJwaWkh6bzNXYpMTCAH2Z102y3YbPWOoQzJUeRSZWSXKh7MFkA3vDMFlMvGZQ==} dependencies: - '@babel/runtime': 7.22.15 + '@babel/runtime': 7.23.2 '@noble/curves': 1.2.0 '@noble/hashes': 1.3.2 '@solana/buffer-layout': 4.0.1 @@ -3696,7 +3813,7 @@ packages: fast-stable-stringify: 1.0.0 jayson: 4.1.0 node-fetch: 2.7.0(encoding@0.1.13) - rpc-websockets: 7.6.0 + rpc-websockets: 7.6.2 superstruct: 0.14.2 transitivePeerDependencies: - bufferutil @@ -3846,265 +3963,41 @@ packages: defer-to-connect: 2.0.1 dev: true - /@tanstack/query-core@4.35.3: - resolution: {integrity: sha512-PS+WEjd9wzKTyNjjQymvcOe1yg8f3wYc6mD+vb6CKyZAKvu4sIJwryfqfBULITKCla7P9C4l5e9RXePHvZOZeQ==} - dev: false - - /@tanstack/query-persist-client-core@4.35.3: - resolution: {integrity: sha512-UlUMsvmy12qgPzphIq8iyFtwxuv/vaEyFQEFDVVCvyrqj2G020qMZiCA1vj3+gasmCXh59EraiC2eY4Iqo0/PA==} + /@tanem/svg-injector@10.1.67: + resolution: {integrity: sha512-j7lWXn28n6ClrryTIgXyPgnpHZXAnqu9y/v8Sksyvkm9Bw2M5IIykcsGdGDhIEkBKQvkWbifEWSGE6XtLrfMwg==} dependencies: - '@tanstack/query-core': 4.35.3 + '@babel/runtime': 7.23.2 + content-type: 1.0.5 + tslib: 2.6.2 dev: false - /@tanstack/query-sync-storage-persister@4.35.3: - resolution: {integrity: sha512-q9axt4iJkRnhR9R9qou+Q2+T2S21jwgf/7carYs9DQGLoE9r9YnwxgbmDE72yQd1glcsGF26UqqO6WO8ziNCrQ==} + /@tsconfig/node10@1.0.9: + resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} + + /@tsconfig/node12@1.0.11: + resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} + + /@tsconfig/node14@1.0.3: + resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} + + /@tsconfig/node16@1.0.4: + resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + + /@types/babel__core@7.20.2: + resolution: {integrity: sha512-pNpr1T1xLUc2l3xJKuPtsEky3ybxN3m4fJkknfIpTCTfIZCDW57oAg+EfCgIIp2rvCe0Wn++/FfodDS4YXxBwA==} dependencies: - '@tanstack/query-persist-client-core': 4.35.3 - dev: false + '@babel/parser': 7.23.0 + '@babel/types': 7.23.0 + '@types/babel__generator': 7.6.5 + '@types/babel__template': 7.4.2 + '@types/babel__traverse': 7.20.2 + dev: true - /@tanstack/react-query-persist-client@4.35.5(@tanstack/react-query@4.35.3): - resolution: {integrity: sha512-d8pFzvMD6AD2guGXLP2A4r0mfCRuZ8C4VMBl5+EZvka/e4o9/DRfizZB4S9w0Za+sOQJ4/SdD3OOk2BwYEykkQ==} - peerDependencies: - '@tanstack/react-query': ^4.35.3 + /@types/babel__generator@7.6.5: + resolution: {integrity: sha512-h9yIuWbJKdOPLJTbmSpPzkF67e659PbQDba7ifWm5BJ8xTv+sDmS7rFmywkWOvXedGTivCdeGSIIX8WLcRTz8w==} dependencies: - '@tanstack/query-persist-client-core': 4.35.3 - '@tanstack/react-query': 4.35.3(react-dom@18.2.0)(react@18.2.0) - dev: false - - /@tanstack/react-query@4.35.3(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-UgTPioip/rGG3EQilXfA2j4BJkhEQsR+KAbF+KIuvQ7j4MkgnTCJF01SfRpIRNtQTlEfz/+IL7+jP8WA8bFbsw==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-native: '*' - peerDependenciesMeta: - react-dom: - optional: true - react-native: - optional: true - dependencies: - '@tanstack/query-core': 4.35.3 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - use-sync-external-store: 1.2.0(react@18.2.0) - dev: false - - /@toruslabs/base-controllers@4.5.2(@babel/runtime@7.22.15): - resolution: {integrity: sha512-DEaeKREzY8OJ74k6nuOP1x2a8Z1HeCfV2uQE835QhLKuCDgqRomDwCwRcrCGT3rqxT/AVhWmBj+ykO/XS/4lZw==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': 7.x - dependencies: - '@babel/runtime': 7.22.15 - '@ethereumjs/util': 9.0.0 - '@metamask/rpc-errors': 6.1.0 - '@toruslabs/broadcast-channel': 9.0.0 - '@toruslabs/http-helpers': 5.0.0(@babel/runtime@7.22.15) - '@toruslabs/openlogin-jrpc': 5.3.0(@babel/runtime@7.22.15) - async-mutex: 0.4.0 - bignumber.js: 9.1.2 - bowser: 2.11.0 - lodash: 4.17.21 - loglevel: 1.8.1 - transitivePeerDependencies: - - '@sentry/types' - - bufferutil - - c-kzg - - supports-color - - utf-8-validate - dev: false - - /@toruslabs/base-session-manager@3.0.0(@babel/runtime@7.22.15): - resolution: {integrity: sha512-+EqwizmSFkVEczUtaw+swbAxRIIxC/EaFE040rwfgC5fixaQMNLw2cVYXWN67Ra47wC9A7Om6xwQTuGFR+dy4w==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': 7.x - dependencies: - '@babel/runtime': 7.22.15 - '@toruslabs/http-helpers': 5.0.0(@babel/runtime@7.22.15) - transitivePeerDependencies: - - '@sentry/types' - dev: false - - /@toruslabs/broadcast-channel@8.0.0: - resolution: {integrity: sha512-qCyWsHVL4Xtx1J6k1+acD7TJKCelJWyUy5Q5zyiWMPxMGFxTv1XdRyqpzV+VgwbcslIqgFN0GewOry2l1jlUQQ==} - engines: {node: '>=18.x', npm: '>=9.x'} - dependencies: - '@babel/runtime': 7.22.15 - '@toruslabs/eccrypto': 4.0.0 - '@toruslabs/metadata-helpers': 5.0.0(@babel/runtime@7.22.15) - bowser: 2.11.0 - loglevel: 1.8.1 - oblivious-set: 1.1.1 - socket.io-client: 4.7.2 - unload: 2.4.1 - transitivePeerDependencies: - - '@sentry/types' - - bufferutil - - supports-color - - utf-8-validate - dev: false - - /@toruslabs/broadcast-channel@9.0.0: - resolution: {integrity: sha512-GA0hh32vt0qu0qZ/QepNHDT5bxKzTsDWu2yp5J1a8CQWNwUGPkYkDe1ycRySQVBo/wa7UyZdXvgLYtYne+/cZw==} - engines: {node: '>=18.x', npm: '>=9.x'} - dependencies: - '@babel/runtime': 7.22.15 - '@toruslabs/eccrypto': 4.0.0 - '@toruslabs/metadata-helpers': 5.0.0(@babel/runtime@7.22.15) - bowser: 2.11.0 - loglevel: 1.8.1 - oblivious-set: 1.1.1 - socket.io-client: 4.7.2 - unload: 2.4.1 - transitivePeerDependencies: - - '@sentry/types' - - bufferutil - - supports-color - - utf-8-validate - dev: false - - /@toruslabs/constants@13.0.3(@babel/runtime@7.22.15): - resolution: {integrity: sha512-DiksceNFwzV4XBwcPdKpV6tfrvWIxhmwseTJbNnlzdy6uXgzvtagfapu+98pjrkNrjoRLiM17QBgBi8sNw7oGQ==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': 7.x - dependencies: - '@babel/runtime': 7.22.15 - dev: false - - /@toruslabs/eccrypto@4.0.0: - resolution: {integrity: sha512-Z3EINkbsgJx1t6jCDVIJjLSUEGUtNIeDjhMWmeDGOWcP/+v/yQ1hEvd1wfxEz4q5WqIHhevacmPiVxiJ4DljGQ==} - engines: {node: '>=18.x', npm: '>=9.x'} - dependencies: - elliptic: 6.5.4 - dev: false - - /@toruslabs/http-helpers@5.0.0(@babel/runtime@7.22.15): - resolution: {integrity: sha512-GmezWz9JeF6YyhjLSm+9XDF4YaeICEckY0Jbo43i86SjhfJYgRWqEi63VSiNsaqc/z810Q0FQvEk1TnBRX2tgA==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': ^7.x - '@sentry/types': ^7.x - peerDependenciesMeta: - '@sentry/types': - optional: true - dependencies: - '@babel/runtime': 7.22.15 - lodash.merge: 4.6.2 - loglevel: 1.8.1 - dev: false - - /@toruslabs/metadata-helpers@5.0.0(@babel/runtime@7.22.15): - resolution: {integrity: sha512-ZUFfOHJVJC53c8wJYHjdF3bIgN2ZvfqehbTZ/zJ7oVFfrrd6O66V3gQ1i1zxBjH3yhOvZKQwc0DaMmh3G0NUXQ==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': 7.x - dependencies: - '@babel/runtime': 7.22.15 - '@toruslabs/eccrypto': 4.0.0 - '@toruslabs/http-helpers': 5.0.0(@babel/runtime@7.22.15) - elliptic: 6.5.4 - ethereum-cryptography: 2.1.2 - json-stable-stringify: 1.0.2 - transitivePeerDependencies: - - '@sentry/types' - dev: false - - /@toruslabs/openlogin-jrpc@5.3.0(@babel/runtime@7.22.15): - resolution: {integrity: sha512-tM1XHG5UulvENhZYewo9eVWF5r9SffGru8+09qFED7g/PFupKs/rccaXYwyWRGVenQSMgj6ipgUd72zliuen+A==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': 7.x - dependencies: - '@babel/runtime': 7.22.15 - '@metamask/rpc-errors': 6.1.0 - '@toruslabs/openlogin-utils': 5.3.0(@babel/runtime@7.22.15) - end-of-stream: 1.4.4 - events: 3.3.0 - fast-safe-stringify: 2.1.1 - once: 1.4.0 - pump: 3.0.0 - readable-stream: 4.4.2 - transitivePeerDependencies: - - supports-color - dev: false - - /@toruslabs/openlogin-session-manager@3.0.0(@babel/runtime@7.22.15): - resolution: {integrity: sha512-S+nnZQ+Y+XCHvTYaov3ltiV2hAAPpKpwxvB4TmbMvi7KWOZ8BcUJQykSITlIXV4aE5y5BD96rsmjQ3C3MyVtUQ==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': 7.x - dependencies: - '@babel/runtime': 7.22.15 - '@toruslabs/base-session-manager': 3.0.0(@babel/runtime@7.22.15) - '@toruslabs/eccrypto': 4.0.0 - '@toruslabs/metadata-helpers': 5.0.0(@babel/runtime@7.22.15) - transitivePeerDependencies: - - '@sentry/types' - dev: false - - /@toruslabs/openlogin-utils@5.3.0(@babel/runtime@7.22.15): - resolution: {integrity: sha512-WfwadC7ZqKOTVqfI4rFANu7IzEgI7H4A/0TiIQihxHpFWdFM23yVuCCIm5zCzQ1QtA2mwBbBZYwOJ0YHVrV6HQ==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': 7.x - dependencies: - '@babel/runtime': 7.22.15 - '@toruslabs/constants': 13.0.3(@babel/runtime@7.22.15) - base64url: 3.0.1 - dev: false - - /@toruslabs/openlogin@5.3.0(@babel/runtime@7.22.15): - resolution: {integrity: sha512-I6bVBPDlqcnF/11+disyS0kUClJLavYcLi3dBEx2a1mEv18jOy1kuG+FSenDMzF733MCk1Y3Iikox0evPzhpvQ==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': 7.x - dependencies: - '@babel/runtime': 7.22.15 - '@toruslabs/broadcast-channel': 8.0.0 - '@toruslabs/eccrypto': 4.0.0 - '@toruslabs/metadata-helpers': 5.0.0(@babel/runtime@7.22.15) - '@toruslabs/openlogin-session-manager': 3.0.0(@babel/runtime@7.22.15) - '@toruslabs/openlogin-utils': 5.3.0(@babel/runtime@7.22.15) - bowser: 2.11.0 - events: 3.3.0 - loglevel: 1.8.1 - ts-custom-error: 3.3.1 - transitivePeerDependencies: - - '@sentry/types' - - bufferutil - - supports-color - - utf-8-validate - dev: false - - /@tsconfig/node10@1.0.9: - resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} - - /@tsconfig/node12@1.0.11: - resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} - - /@tsconfig/node14@1.0.3: - resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} - - /@tsconfig/node16@1.0.4: - resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - - /@types/babel__core@7.20.2: - resolution: {integrity: sha512-pNpr1T1xLUc2l3xJKuPtsEky3ybxN3m4fJkknfIpTCTfIZCDW57oAg+EfCgIIp2rvCe0Wn++/FfodDS4YXxBwA==} - dependencies: - '@babel/parser': 7.23.0 - '@babel/types': 7.23.0 - '@types/babel__generator': 7.6.5 - '@types/babel__template': 7.4.2 - '@types/babel__traverse': 7.20.2 - dev: true - - /@types/babel__generator@7.6.5: - resolution: {integrity: sha512-h9yIuWbJKdOPLJTbmSpPzkF67e659PbQDba7ifWm5BJ8xTv+sDmS7rFmywkWOvXedGTivCdeGSIIX8WLcRTz8w==} - dependencies: - '@babel/types': 7.23.0 - dev: true + '@babel/types': 7.23.0 + dev: true /@types/babel__template@7.4.2: resolution: {integrity: sha512-/AVzPICMhMOMYoSx9MoKpGDKdBRsIXMNByh1PXSZoa+v6ZoLa8xxtsT/uLQ/NJm0XVAWl/BvId4MlDeXJaeIZQ==} @@ -4150,16 +4043,16 @@ packages: '@types/color-convert': 2.0.2 dev: false - /@types/connect@3.4.36: - resolution: {integrity: sha512-P63Zd/JUGq+PdrM1lv0Wv5SBYeA2+CORvbrXbngriYY0jzLUWfQMQQxOhjONEz/wlHOAxOdY7CY65rgQdTjq2w==} + /@types/connect@3.4.37: + resolution: {integrity: sha512-zBUSRqkfZ59OcwXon4HVxhx5oWCJmc0OtBTK05M+p0dYjgN6iTwIL2T/WbsQZrEsdnwaF9cWQ+azOnpPvIqY3Q==} dependencies: '@types/node': 20.6.2 dev: false - /@types/debug@4.1.9: - resolution: {integrity: sha512-8Hz50m2eoS56ldRlepxSBa6PWEVCtzUo/92HgLc2qTMnotJNIm7xP+UZhyWoYsyOdd5dxZ+NZLb24rsKyFs2ow==} + /@types/debug@4.1.10: + resolution: {integrity: sha512-tOSCru6s732pofZ+sMv9o4o3Zc+Sa8l3bxd/tweTQudFn06vAzb13ZX46Zi6m6EJ+RUbRTHvgQJ1gBtSgkaUYA==} dependencies: - '@types/ms': 0.7.31 + '@types/ms': 0.7.33 dev: false /@types/file-saver@2.0.5: @@ -4262,8 +4155,8 @@ packages: resolution: {integrity: sha512-NaHL0+0lLNhX6d9rs+NSt97WH/gIlRHmszXbQ/8/MV/eVcFNdeJ/GYhrFuUc8K7WuPhRhTSdMkCp8VMzhUq85w==} dev: true - /@types/ms@0.7.31: - resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==} + /@types/ms@0.7.33: + resolution: {integrity: sha512-AuHIyzR5Hea7ij0P9q7vx7xu4z0C28ucwjAZC0ja7JhINyCnOw8/DnvAPQQ9TfOlCtZAmCERKQX9+o1mgQhuOQ==} dev: false /@types/node@12.20.55: @@ -4289,6 +4182,10 @@ packages: resolution: {integrity: sha512-FbtmBWCcSa2J4zL781Zf1p5YUBXQomPEcep9QZCfRfQgTxz3pJWiDFLebohZ9fFntX5ibzOkSsrJ0TEew8cAog==} dev: false + /@types/prop-types@15.7.9: + resolution: {integrity: sha512-n1yyPsugYNSmHgxDFjicaI2+gCNjsBck8UX9kuofAKlc0h1bL+20oSF72KeNaW2DUlesbEVCFgyV2dPGTiY42g==} + dev: false + /@types/react-dom@18.2.7: resolution: {integrity: sha512-GRaAEriuT4zp9N4p1i8BDBYmEyfo+xQ3yHjJU4eiK5NDa1RmUZG+unZABUTK4/Ox/M+GaHwb6Ow8rUITrtjszA==} dependencies: @@ -4320,8 +4217,8 @@ packages: /@types/stack-utils@2.0.1: resolution: {integrity: sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==} - /@types/trusted-types@2.0.4: - resolution: {integrity: sha512-IDaobHimLQhjwsQ/NMwRVfa/yL7L/wriQPMhw1ZJall0KX6E1oxk29XMDeilW5qTIg5aoiqf5Udy8U/51aNoQQ==} + /@types/trusted-types@2.0.5: + resolution: {integrity: sha512-I3pkr8j/6tmQtKV/ZzHtuaqYSQvyjGRKH4go60Rr0IDLlFxuRT5V32uvB1mecM5G1EVAUyF/4r4QZ1GHgz+mxA==} dev: false /@types/uuid@8.3.4: @@ -4581,103 +4478,8 @@ packages: eslint-visitor-keys: 3.4.3 dev: false - /@vanilla-extract/css@1.9.1: - resolution: {integrity: sha512-pu2SFiff5jRhPwvGoj8cM5l/qIyLvigOmy22ss5DGjwV5pJYezRjDLxWumi2luIwioMWvh9EozCjyfH8nq+7fQ==} - dependencies: - '@emotion/hash': 0.8.0 - '@vanilla-extract/private': 1.0.3 - ahocorasick: 1.0.2 - chalk: 4.1.2 - css-what: 5.1.0 - cssesc: 3.0.0 - csstype: 3.1.2 - deep-object-diff: 1.1.9 - deepmerge: 4.3.1 - media-query-parser: 2.0.2 - outdent: 0.8.0 - dev: false - - /@vanilla-extract/dynamic@2.0.2: - resolution: {integrity: sha512-U4nKaEQ8Kuz+exXEr51DUpyaOuzo24/S/k1YbDPQR06cYcNjQqvwFRnwWtZ+9ImocqM1wTKtzrdUgSTtLGIwAg==} - dependencies: - '@vanilla-extract/private': 1.0.3 - dev: false - - /@vanilla-extract/private@1.0.3: - resolution: {integrity: sha512-17kVyLq3ePTKOkveHxXuIJZtGYs+cSoev7BlP+Lf4916qfDhk/HBjvlYDe8egrea7LNPHKwSZJK/bzZC+Q6AwQ==} - dev: false - - /@vanilla-extract/sprinkles@1.5.0(@vanilla-extract/css@1.9.1): - resolution: {integrity: sha512-W58f2Rzz5lLmk0jbhgStVlZl5wEiPB1Ur3fRvUaBM+MrifZ3qskmFq/CiH//fEYeG5Dh9vF1qRviMMH46cX9Nw==} - peerDependencies: - '@vanilla-extract/css': ^1.0.0 - dependencies: - '@vanilla-extract/css': 1.9.1 - dev: false - - /@wagmi/connectors@3.1.2(@types/react@18.2.21)(encoding@0.1.13)(lokijs@1.5.12)(react@18.2.0)(typescript@5.2.2)(viem@1.16.0): - resolution: {integrity: sha512-IlLKErqCzQRBUcCvXGPowcczbWcvJtEG006gPsAoePNJEXCHEWoKASghgu+L/bqD7006Z6mW6zlTNjcSQJvFAg==} - peerDependencies: - typescript: '>=5.0.4' - viem: '>=0.3.35' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@coinbase/wallet-sdk': 3.7.2(encoding@0.1.13) - '@ledgerhq/connect-kit-loader': 1.1.2 - '@safe-global/safe-apps-provider': 0.17.1(typescript@5.2.2) - '@safe-global/safe-apps-sdk': 8.1.0(typescript@5.2.2) - '@walletconnect/ethereum-provider': 2.10.1(@walletconnect/modal@2.6.2)(encoding@0.1.13)(lokijs@1.5.12) - '@walletconnect/legacy-provider': 2.0.0(encoding@0.1.13) - '@walletconnect/modal': 2.6.2(@types/react@18.2.21)(react@18.2.0) - '@walletconnect/utils': 2.10.1(lokijs@1.5.12) - abitype: 0.8.7(typescript@5.2.2) - eventemitter3: 4.0.7 - typescript: 5.2.2 - viem: 1.16.0(typescript@5.2.2) - transitivePeerDependencies: - - '@react-native-async-storage/async-storage' - - '@types/react' - - bufferutil - - encoding - - lokijs - - react - - supports-color - - utf-8-validate - - zod - dev: false - - /@wagmi/core@1.4.3(@types/react@18.2.21)(encoding@0.1.13)(lokijs@1.5.12)(react@18.2.0)(typescript@5.2.2)(viem@1.16.0): - resolution: {integrity: sha512-CIV9jwv5ue+WpqmA3FvwGa+23cppe7oIaz6TRnlGm0Hm0wDImSaQSWqcsFyOPvleD29oOIJ8e3KnHINEvI64AA==} - peerDependencies: - typescript: '>=5.0.4' - viem: '>=0.3.35' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@wagmi/connectors': 3.1.2(@types/react@18.2.21)(encoding@0.1.13)(lokijs@1.5.12)(react@18.2.0)(typescript@5.2.2)(viem@1.16.0) - abitype: 0.8.7(typescript@5.2.2) - eventemitter3: 4.0.7 - typescript: 5.2.2 - viem: 1.16.0(typescript@5.2.2) - zustand: 4.4.1(@types/react@18.2.21)(react@18.2.0) - transitivePeerDependencies: - - '@react-native-async-storage/async-storage' - - '@types/react' - - bufferutil - - encoding - - immer - - lokijs - - react - - supports-color - - utf-8-validate - - zod - dev: false - - /@walletconnect/core@2.10.1(lokijs@1.5.12): - resolution: {integrity: sha512-WAoXfmj+Zy5q48TnrKUjmHXJCBahzKwbul+noepRZf7JDtUAZ9IOWpUjg+UPRbfK5EiWZ0TF42S6SXidf7EHoQ==} + /@walletconnect/core@2.9.2(lokijs@1.5.12): + resolution: {integrity: sha512-VARMPAx8sIgodeyngDHbealP3B621PQqjqKsByFUTOep8ZI1/R/20zU+cmq6j9RCrL+kLKZcrZqeVzs8Z7OlqQ==} dependencies: '@walletconnect/heartbeat': 1.2.1 '@walletconnect/jsonrpc-provider': 1.0.13 @@ -4690,8 +4492,8 @@ packages: '@walletconnect/relay-auth': 1.0.4 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.10.1(lokijs@1.5.12) - '@walletconnect/utils': 2.10.1(lokijs@1.5.12) + '@walletconnect/types': 2.9.2(lokijs@1.5.12) + '@walletconnect/utils': 2.9.2(lokijs@1.5.12) events: 3.3.0 lodash.isequal: 4.5.0 uint8arrays: 3.1.1 @@ -4702,33 +4504,14 @@ packages: - utf-8-validate dev: false - /@walletconnect/crypto@1.0.3: - resolution: {integrity: sha512-+2jdORD7XQs76I2Odgr3wwrtyuLUXD/kprNVsjWRhhhdO9Mt6WqVzOPu0/t7OHSmgal8k7SoBQzUc5hu/8zL/g==} - dependencies: - '@walletconnect/encoding': 1.0.2 - '@walletconnect/environment': 1.0.1 - '@walletconnect/randombytes': 1.0.3 - aes-js: 3.1.2 - hash.js: 1.1.7 - tslib: 1.14.1 - dev: false - - /@walletconnect/encoding@1.0.2: - resolution: {integrity: sha512-CrwSBrjqJ7rpGQcTL3kU+Ief+Bcuu9PH6JLOb+wM6NITX1GTxR/MfNwnQfhLKK6xpRAyj2/nM04OOH6wS8Imag==} - dependencies: - is-typedarray: 1.0.0 - tslib: 1.14.1 - typedarray-to-buffer: 3.1.5 - dev: false - /@walletconnect/environment@1.0.1: resolution: {integrity: sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg==} dependencies: tslib: 1.14.1 dev: false - /@walletconnect/ethereum-provider@2.10.1(@walletconnect/modal@2.6.2)(encoding@0.1.13)(lokijs@1.5.12): - resolution: {integrity: sha512-Yhoz8EXkKzxOlBT6G+elphqCx/gkH6RxD9/ZAiy9lLc8Ng5p1gvKCVVP5zsGNE9FbkKmHd+J9JJRzn2Bw2yqtQ==} + /@walletconnect/ethereum-provider@2.9.2(@walletconnect/modal@2.6.2)(encoding@0.1.13)(lokijs@1.5.12): + resolution: {integrity: sha512-eO1dkhZffV1g7vpG19XUJTw09M/bwGUwwhy1mJ3AOPbOSbMPvwiCuRz2Kbtm1g9B0Jv15Dl+TvJ9vTgYF8zoZg==} peerDependencies: '@walletconnect/modal': '>=2' peerDependenciesMeta: @@ -4740,10 +4523,10 @@ packages: '@walletconnect/jsonrpc-types': 1.0.3 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/modal': 2.6.2(@types/react@18.2.21)(react@18.2.0) - '@walletconnect/sign-client': 2.10.1(lokijs@1.5.12) - '@walletconnect/types': 2.10.1(lokijs@1.5.12) - '@walletconnect/universal-provider': 2.10.1(encoding@0.1.13)(lokijs@1.5.12) - '@walletconnect/utils': 2.10.1(lokijs@1.5.12) + '@walletconnect/sign-client': 2.9.2(lokijs@1.5.12) + '@walletconnect/types': 2.9.2(lokijs@1.5.12) + '@walletconnect/universal-provider': 2.9.2(encoding@0.1.13)(lokijs@1.5.12) + '@walletconnect/utils': 2.9.2(lokijs@1.5.12) events: 3.3.0 transitivePeerDependencies: - '@react-native-async-storage/async-storage' @@ -4831,63 +4614,6 @@ packages: tslib: 1.14.1 dev: false - /@walletconnect/legacy-client@2.0.0: - resolution: {integrity: sha512-v5L7rYk9loVnfvUf0mF+76bUPFaU5/Vh7mzL6/950CD/yoGdzYZ3Kj+L7mkC6HPMEGeQsBP1+sqBuiVGZ/aODA==} - dependencies: - '@walletconnect/crypto': 1.0.3 - '@walletconnect/encoding': 1.0.2 - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/legacy-types': 2.0.0 - '@walletconnect/legacy-utils': 2.0.0 - '@walletconnect/safe-json': 1.0.2 - '@walletconnect/window-getters': 1.0.1 - '@walletconnect/window-metadata': 1.0.1 - detect-browser: 5.3.0 - query-string: 6.14.1 - dev: false - - /@walletconnect/legacy-modal@2.0.0: - resolution: {integrity: sha512-jckNd8lMhm4X7dX9TDdxM3bXKJnaqkRs6K2Mo5j6GmbIF9Eyx40jZ5+q457RVxvM6ciZEDT5s1wBHWdWoOo+9Q==} - dependencies: - '@walletconnect/legacy-types': 2.0.0 - '@walletconnect/legacy-utils': 2.0.0 - copy-to-clipboard: 3.3.3 - preact: 10.17.1 - qrcode: 1.5.3 - dev: false - - /@walletconnect/legacy-provider@2.0.0(encoding@0.1.13): - resolution: {integrity: sha512-A8xPebMI1A+50HbWwTpFCbwP7G+1NGKdTKyg8BUUg3h3Y9JucpC1W6w/x0v1Xw7qFEqQnz74LoIN/A3ytH9xrQ==} - dependencies: - '@walletconnect/jsonrpc-http-connection': 1.0.7(encoding@0.1.13) - '@walletconnect/jsonrpc-provider': 1.0.13 - '@walletconnect/legacy-client': 2.0.0 - '@walletconnect/legacy-modal': 2.0.0 - '@walletconnect/legacy-types': 2.0.0 - '@walletconnect/legacy-utils': 2.0.0 - transitivePeerDependencies: - - encoding - dev: false - - /@walletconnect/legacy-types@2.0.0: - resolution: {integrity: sha512-sOVrA7HUdbI1OwKyPOQU0/DdvTSVFlsXWpAk2K2WvP2erTkBWPMTJq6cv2BmKdoJ3p6gLApT7sd+jHi3OF71uw==} - dependencies: - '@walletconnect/jsonrpc-types': 1.0.3 - dev: false - - /@walletconnect/legacy-utils@2.0.0: - resolution: {integrity: sha512-CPWxSVVXw0kgNCxvU126g4GiV3mzXmC8IPJ15twE46aJ1FX+RHEIfAzFMFz2F2+fEhBxL63A7dwNQKDXorRPcQ==} - dependencies: - '@walletconnect/encoding': 1.0.2 - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/legacy-types': 2.0.0 - '@walletconnect/safe-json': 1.0.2 - '@walletconnect/window-getters': 1.0.1 - '@walletconnect/window-metadata': 1.0.1 - detect-browser: 5.3.0 - query-string: 6.14.1 - dev: false - /@walletconnect/logger@2.0.1: resolution: {integrity: sha512-SsTKdsgWm+oDTBeNE/zHxxr5eJfZmE9/5yp/Ku+zJtcTAjELb3DXueWkDXmE9h8uHIbJzIb5wj5lPdzyrjT6hQ==} dependencies: @@ -4926,15 +4652,6 @@ packages: - react dev: false - /@walletconnect/randombytes@1.0.3: - resolution: {integrity: sha512-35lpzxcHFbTN3ABefC9W+uBpNZl1GC4Wpx0ed30gibfO/y9oLdy1NznbV96HARQKSBV9J9M/rrtIvf6a23jfYw==} - dependencies: - '@walletconnect/encoding': 1.0.2 - '@walletconnect/environment': 1.0.1 - randombytes: 2.1.0 - tslib: 1.14.1 - dev: false - /@walletconnect/relay-api@1.0.9: resolution: {integrity: sha512-Q3+rylJOqRkO1D9Su0DPE3mmznbAalYapJ9qmzDgK28mYF9alcP3UwG/og5V7l7CFOqzCLi7B8BvcBUrpDj0Rg==} dependencies: @@ -4959,17 +4676,17 @@ packages: tslib: 1.14.1 dev: false - /@walletconnect/sign-client@2.10.1(lokijs@1.5.12): - resolution: {integrity: sha512-iG3eJGi1yXeG3xGeVSSMf8wDFyx239B0prLQfy1uYDtYFb2ynnH/09oqAZyKn96W5nfQzUgM2Mz157PVdloH3Q==} + /@walletconnect/sign-client@2.9.2(lokijs@1.5.12): + resolution: {integrity: sha512-anRwnXKlR08lYllFMEarS01hp1gr6Q9XUgvacr749hoaC/AwGVlxYFdM8+MyYr3ozlA+2i599kjbK/mAebqdXg==} dependencies: - '@walletconnect/core': 2.10.1(lokijs@1.5.12) + '@walletconnect/core': 2.9.2(lokijs@1.5.12) '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.1 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.0.1 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.10.1(lokijs@1.5.12) - '@walletconnect/utils': 2.10.1(lokijs@1.5.12) + '@walletconnect/types': 2.9.2(lokijs@1.5.12) + '@walletconnect/utils': 2.9.2(lokijs@1.5.12) events: 3.3.0 transitivePeerDependencies: - '@react-native-async-storage/async-storage' @@ -4984,8 +4701,8 @@ packages: tslib: 1.14.1 dev: false - /@walletconnect/types@2.10.1(lokijs@1.5.12): - resolution: {integrity: sha512-7pccAhajQdiH2kYywjE1XI64IqRI+4ioyGy0wvz8d0UFQ/DSG3MLKR8jHf5aTOafQQ/HRLz6xvlzN4a7gIVkUQ==} + /@walletconnect/types@2.9.2(lokijs@1.5.12): + resolution: {integrity: sha512-7Rdn30amnJEEal4hk83cdwHUuxI1SWQ+K7fFFHBMqkuHLGi3tpMY6kpyfDxnUScYEZXqgRps4Jo5qQgnRqVM7A==} dependencies: '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.1 @@ -4998,31 +4715,17 @@ packages: - lokijs dev: false - /@walletconnect/types@2.10.2(lokijs@1.5.12): - resolution: {integrity: sha512-luNV+07Wdla4STi9AejseCQY31tzWKQ5a7C3zZZaRK/di+rFaAAb7YW04OP4klE7tw/mJRGPTlekZElmHxO8kQ==} - dependencies: - '@walletconnect/events': 1.0.1 - '@walletconnect/heartbeat': 1.2.1 - '@walletconnect/jsonrpc-types': 1.0.3 - '@walletconnect/keyvaluestorage': 1.0.2(lokijs@1.5.12) - '@walletconnect/logger': 2.0.1 - events: 3.3.0 - transitivePeerDependencies: - - '@react-native-async-storage/async-storage' - - lokijs - dev: false - - /@walletconnect/universal-provider@2.10.1(encoding@0.1.13)(lokijs@1.5.12): - resolution: {integrity: sha512-81QxTH/X4dRoYCz0U9iOrBYOcj7N897ONcB57wsGhEkV7Rc9htmWJq2CzeOuxvVZ+pNZkE+/aw9LrhizO1Ltxg==} + /@walletconnect/universal-provider@2.9.2(encoding@0.1.13)(lokijs@1.5.12): + resolution: {integrity: sha512-JmaolkO8D31UdRaQCHwlr8uIFUI5BYhBzqYFt54Mc6gbIa1tijGOmdyr6YhhFO70LPmS6gHIjljwOuEllmlrxw==} dependencies: '@walletconnect/jsonrpc-http-connection': 1.0.7(encoding@0.1.13) '@walletconnect/jsonrpc-provider': 1.0.13 '@walletconnect/jsonrpc-types': 1.0.3 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.0.1 - '@walletconnect/sign-client': 2.10.1(lokijs@1.5.12) - '@walletconnect/types': 2.10.1(lokijs@1.5.12) - '@walletconnect/utils': 2.10.1(lokijs@1.5.12) + '@walletconnect/sign-client': 2.9.2(lokijs@1.5.12) + '@walletconnect/types': 2.9.2(lokijs@1.5.12) + '@walletconnect/utils': 2.9.2(lokijs@1.5.12) events: 3.3.0 transitivePeerDependencies: - '@react-native-async-storage/async-storage' @@ -5032,30 +4735,8 @@ packages: - utf-8-validate dev: false - /@walletconnect/utils@2.10.1(lokijs@1.5.12): - resolution: {integrity: sha512-DM0dKgm9O58l7VqJEyV2OVv16XRePhDAReI23let6WdW1dSpw/Y/A89Lp99ZJOjLm2FxyblMRF3YRaZtHwBffw==} - dependencies: - '@stablelib/chacha20poly1305': 1.0.1 - '@stablelib/hkdf': 1.0.1 - '@stablelib/random': 1.0.2 - '@stablelib/sha256': 1.0.1 - '@stablelib/x25519': 1.0.3 - '@walletconnect/relay-api': 1.0.9 - '@walletconnect/safe-json': 1.0.2 - '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.10.1(lokijs@1.5.12) - '@walletconnect/window-getters': 1.0.1 - '@walletconnect/window-metadata': 1.0.1 - detect-browser: 5.3.0 - query-string: 7.1.3 - uint8arrays: 3.1.1 - transitivePeerDependencies: - - '@react-native-async-storage/async-storage' - - lokijs - dev: false - - /@walletconnect/utils@2.10.2(lokijs@1.5.12): - resolution: {integrity: sha512-syxXRpc2yhSknMu3IfiBGobxOY7fLfLTJuw+ppKaeO6WUdZpIit3wfuGOcc0Ms3ZPFCrGfyGOoZsCvgdXtptRg==} + /@walletconnect/utils@2.9.2(lokijs@1.5.12): + resolution: {integrity: sha512-D44hwXET/8JhhIjqljY6qxSu7xXnlPrf63UN/Qfl98vDjWlYVcDl2+JIQRxD9GPastw0S8XZXdRq59XDXLuZBg==} dependencies: '@stablelib/chacha20poly1305': 1.0.1 '@stablelib/hkdf': 1.0.1 @@ -5065,7 +4746,7 @@ packages: '@walletconnect/relay-api': 1.0.9 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.10.2(lokijs@1.5.12) + '@walletconnect/types': 2.9.2(lokijs@1.5.12) '@walletconnect/window-getters': 1.0.1 '@walletconnect/window-metadata': 1.0.1 detect-browser: 5.3.0 @@ -5142,137 +4823,6 @@ packages: resolution: {integrity: sha512-K1undnK70vLLauqdE8bq/l98isTF2FDhcP0UPpXVSjkSWe3xhAn5eRXk5jfA1E5ycNm84Ws/rQFUD7ue11nciw==} dev: false - /@web3auth/base-plugin@7.0.4(@babel/runtime@7.22.15): - resolution: {integrity: sha512-JTqf4RYcm1QiFq2EQOgHlPFHMcIJy75BnM5nY1kumEqeTuuViz4xuinbLyYdMK163mSXHrZt2cvE19kMVBSPaA==} - engines: {node: '>=18.x', npm: '>=9.x'} - dependencies: - '@web3auth/base': 7.0.4(@babel/runtime@7.22.15) - transitivePeerDependencies: - - '@babel/runtime' - - '@sentry/types' - - bufferutil - - supports-color - - utf-8-validate - dev: false - - /@web3auth/base-provider@7.0.4(@babel/runtime@7.22.15): - resolution: {integrity: sha512-DDE/K6AP2UBRQqBJUoFggGt7ylQ96pexVnaps9Yw8JOtx573yzVUPs2tYEjhxmAfRGgmDD1J8juokgvCEeKf4g==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': 7.x - dependencies: - '@babel/runtime': 7.22.15 - '@metamask/rpc-errors': 6.1.0 - '@toruslabs/base-controllers': 4.5.2(@babel/runtime@7.22.15) - '@toruslabs/openlogin-jrpc': 5.3.0(@babel/runtime@7.22.15) - '@web3auth/base': 7.0.4(@babel/runtime@7.22.15) - json-rpc-random-id: 1.0.1 - transitivePeerDependencies: - - '@sentry/types' - - bufferutil - - c-kzg - - supports-color - - utf-8-validate - dev: false - - /@web3auth/base@7.0.4(@babel/runtime@7.22.15): - resolution: {integrity: sha512-ufpJ0uqOp7k7uGqDS1DohOeIIrsTLUAdyiExM5D+SQYYIXri3M9wbFgyCeAqHbJbfBO6hI9PDcY82QvOGCMI3w==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': ^7.x - dependencies: - '@babel/runtime': 7.22.15 - '@toruslabs/http-helpers': 5.0.0(@babel/runtime@7.22.15) - '@toruslabs/openlogin': 5.3.0(@babel/runtime@7.22.15) - '@toruslabs/openlogin-jrpc': 5.3.0(@babel/runtime@7.22.15) - '@toruslabs/openlogin-utils': 5.3.0(@babel/runtime@7.22.15) - jwt-decode: 3.1.2 - loglevel: 1.8.1 - ts-custom-error: 3.3.1 - transitivePeerDependencies: - - '@sentry/types' - - bufferutil - - supports-color - - utf-8-validate - dev: false - - /@web3auth/ethereum-provider@7.0.4(@babel/runtime@7.22.15)(lokijs@1.5.12): - resolution: {integrity: sha512-A0r6O+Bwwx6k1qvB2p5zp3pVJtxxpad0Fv/lotGYh5OMFqi6Ggz1lnYnbQAc4PdznUNVV2zwsQGMi71a4c/JsQ==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': 7.x - dependencies: - '@babel/runtime': 7.22.15 - '@ethereumjs/common': 4.0.0 - '@ethereumjs/tx': 5.0.0 - '@ethereumjs/util': 9.0.0 - '@metamask/eth-sig-util': 7.0.0 - '@metamask/rpc-errors': 6.1.0 - '@toruslabs/base-controllers': 4.5.2(@babel/runtime@7.22.15) - '@toruslabs/http-helpers': 5.0.0(@babel/runtime@7.22.15) - '@toruslabs/openlogin-jrpc': 5.3.0(@babel/runtime@7.22.15) - '@walletconnect/legacy-types': 2.0.0 - '@walletconnect/utils': 2.10.2(lokijs@1.5.12) - '@web3auth/base': 7.0.4(@babel/runtime@7.22.15) - '@web3auth/base-provider': 7.0.4(@babel/runtime@7.22.15) - assert: 2.1.0 - bignumber.js: 9.1.2 - bn.js: 5.2.1 - jsonschema: 1.4.1 - transitivePeerDependencies: - - '@react-native-async-storage/async-storage' - - '@sentry/types' - - buffer - - bufferutil - - c-kzg - - lokijs - - supports-color - - utf-8-validate - dev: false - - /@web3auth/no-modal@7.0.4(@babel/runtime@7.22.15): - resolution: {integrity: sha512-STSmN/JtCHx8mRTqVxVaBoWDBBFtykh9cG1Ud06l0qHRItOoWU5oJc0HB2dy9INcBYNe6WUBqgNeZ2jiPFq4Ow==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': ^7.x - dependencies: - '@babel/runtime': 7.22.15 - '@toruslabs/openlogin': 5.3.0(@babel/runtime@7.22.15) - '@toruslabs/openlogin-jrpc': 5.3.0(@babel/runtime@7.22.15) - '@toruslabs/openlogin-utils': 5.3.0(@babel/runtime@7.22.15) - '@web3auth/base': 7.0.4(@babel/runtime@7.22.15) - '@web3auth/base-plugin': 7.0.4(@babel/runtime@7.22.15) - '@web3auth/base-provider': 7.0.4(@babel/runtime@7.22.15) - transitivePeerDependencies: - - '@sentry/types' - - bufferutil - - c-kzg - - supports-color - - utf-8-validate - dev: false - - /@web3auth/openlogin-adapter@7.0.4(@babel/runtime@7.22.15)(@solana/web3.js@1.78.5): - resolution: {integrity: sha512-B1yJYrIE3PDiiJcexu5QWH1PWbDh4m1jLIre4OZlGsja2/Rc5z8r51RxKmKRC/vdFfKtPSg5SiTzj/FGNZCzRQ==} - engines: {node: '>=18.x', npm: '>=9.x'} - peerDependencies: - '@babel/runtime': ^7.x - '@solana/web3.js': ^1.x - dependencies: - '@babel/runtime': 7.22.15 - '@solana/web3.js': 1.78.5(encoding@0.1.13) - '@toruslabs/openlogin': 5.3.0(@babel/runtime@7.22.15) - '@toruslabs/openlogin-utils': 5.3.0(@babel/runtime@7.22.15) - '@web3auth/base': 7.0.4(@babel/runtime@7.22.15) - '@web3auth/base-provider': 7.0.4(@babel/runtime@7.22.15) - lodash.merge: 4.6.2 - transitivePeerDependencies: - - '@sentry/types' - - bufferutil - - c-kzg - - supports-color - - utf-8-validate - dev: false - /@zxing/text-encoding@0.9.0: resolution: {integrity: sha512-U/4aVJ2mxI0aDNI8Uq0wEhMgY+u4CNtEb0om3+y3+niDAsoTCOB33UF0sxpzqzdqXLqmvc+vZyAt4O8pPdfkwA==} requiresBuild: true @@ -5291,32 +4841,6 @@ packages: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} dev: false - /abitype@0.8.7(typescript@5.2.2): - resolution: {integrity: sha512-wQ7hV8Yg/yKmGyFpqrNZufCxbszDe5es4AZGYPBitocfSqXtjrTG9JMWFcc4N30ukl2ve48aBTwt7NJxVQdU3w==} - peerDependencies: - typescript: '>=5.0.4' - zod: ^3 >=3.19.1 - peerDependenciesMeta: - zod: - optional: true - dependencies: - typescript: 5.2.2 - dev: false - - /abitype@0.9.8(typescript@5.2.2): - resolution: {integrity: sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==} - peerDependencies: - typescript: '>=5.0.4' - zod: ^3 >=3.19.1 - peerDependenciesMeta: - typescript: - optional: true - zod: - optional: true - dependencies: - typescript: 5.2.2 - dev: false - /abort-controller@3.0.0: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} engines: {node: '>=6.5'} @@ -5348,8 +4872,8 @@ packages: engines: {node: '>=0.4.0'} hasBin: true - /aes-js@3.1.2: - resolution: {integrity: sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==} + /aes-js@3.0.0: + resolution: {integrity: sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==} dev: false /aes-js@4.0.0-beta.5: @@ -5372,10 +4896,6 @@ packages: humanize-ms: 1.2.1 dev: false - /ahocorasick@1.0.2: - resolution: {integrity: sha512-hCOfMzbFx5IDutmWLAt6MZwOUjIfSM9G9FyVxytmE4Rs/5YDPWQrD/+IR1w+FweD9H2oOZEnv36TmkjhNURBVA==} - dev: false - /ajv-formats@2.1.1(ajv@8.12.0): resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} peerDependencies: @@ -5612,16 +5132,6 @@ packages: tslib: 2.6.2 dev: false - /assert@2.1.0: - resolution: {integrity: sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==} - dependencies: - call-bind: 1.0.2 - is-nan: 1.3.2 - object-is: 1.1.5 - object.assign: 4.1.4 - util: 0.12.5 - dev: false - /assertion-error@1.1.0: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} dev: false @@ -5635,12 +5145,6 @@ packages: tslib: 2.6.2 dev: false - /async-mutex@0.4.0: - resolution: {integrity: sha512-eJFZ1YhRR8UN8eBLoNzcDPcy/jqjsg6I1AP+KvWQX80BqOSW1oJPJXDylPUEeMr2ZQvHgnQ//Lp6f3RQ1zI7HA==} - dependencies: - tslib: 2.6.2 - dev: false - /asynciterator.prototype@1.0.0: resolution: {integrity: sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==} dependencies: @@ -5793,9 +5297,8 @@ packages: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} dev: false - /base64url@3.0.1: - resolution: {integrity: sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==} - engines: {node: '>=6.0.0'} + /bech32@1.1.4: + resolution: {integrity: sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==} dev: false /bigint-buffer@1.1.5: @@ -5806,10 +5309,6 @@ packages: bindings: 1.5.0 dev: false - /bignumber.js@9.1.2: - resolution: {integrity: sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==} - dev: false - /binary-extensions@2.2.0: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} @@ -5890,10 +5389,6 @@ packages: text-encoding-utf-8: 1.0.2 dev: false - /bowser@2.11.0: - resolution: {integrity: sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==} - dev: false - /boxen@1.3.0: resolution: {integrity: sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==} engines: {node: '>=4'} @@ -5982,8 +5477,8 @@ packages: ieee754: 1.2.1 dev: false - /bufferutil@4.0.7: - resolution: {integrity: sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==} + /bufferutil@4.0.8: + resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==} engines: {node: '>=6.14.2'} requiresBuild: true dependencies: @@ -6221,11 +5716,6 @@ packages: mimic-response: 1.0.1 dev: true - /clsx@1.1.1: - resolution: {integrity: sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==} - engines: {node: '>=6'} - dev: false - /clsx@1.2.1: resolution: {integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==} engines: {node: '>=6'} @@ -6369,15 +5859,14 @@ packages: resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==} dev: false + /content-type@1.0.5: + resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} + engines: {node: '>= 0.6'} + dev: false + /convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} - /copy-to-clipboard@3.3.3: - resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==} - dependencies: - toggle-selection: 1.0.6 - dev: false - /core-js-pure@3.33.1: resolution: {integrity: sha512-wCXGbLjnsP10PlK/thHSQlOLlLKNEkaWbTzVvHHZ79fZNeN1gUmw2gBlpItxPv/pvqldevEXFh/d5stdNvl6EQ==} requiresBuild: true @@ -6386,22 +5875,6 @@ packages: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} dev: false - /crc-32@1.2.2: - resolution: {integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==} - engines: {node: '>=0.8'} - hasBin: true - dev: false - - /crc@4.3.2: - resolution: {integrity: sha512-uGDHf4KLLh2zsHa8D8hIQ1H/HtFQhyHrc0uhHBcoKGol/Xnb+MPYfUMw7cvON6ze/GUESTudKayDcJC5HnJv1A==} - engines: {node: '>=12'} - peerDependencies: - buffer: '>=6.0.3' - peerDependenciesMeta: - buffer: - optional: true - dev: false - /create-error-class@3.0.2: resolution: {integrity: sha512-gYTKKexFO3kh200H1Nit76sRwRtOY32vQd3jpAQKpLtZqyNsSQNfI4N7o3eP2wUjV35pTWKRYqFUDBvUha/Pkw==} engines: {node: '>=0.10.0'} @@ -6464,11 +5937,6 @@ packages: engines: {node: '>=4'} dev: true - /css-what@5.1.0: - resolution: {integrity: sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==} - engines: {node: '>= 6'} - dev: false - /cssesc@3.0.0: resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} engines: {node: '>=4'} @@ -6491,7 +5959,7 @@ packages: resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} engines: {node: '>=0.11'} dependencies: - '@babel/runtime': 7.22.15 + '@babel/runtime': 7.23.2 dev: true /dateformat@4.6.3: @@ -6573,10 +6041,6 @@ packages: /deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - /deep-object-diff@1.1.9: - resolution: {integrity: sha512-Rn+RuwkmkDwCi2/oXOFS9Gsr5lJZu/yTGpK7wAaAIE75CC+LCGEZHpY6VQJa/RoJcrmaA/docWJZvYohlNkWPA==} - dev: false - /deepmerge@4.3.1: resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} engines: {node: '>=0.10.0'} @@ -6800,25 +6264,6 @@ packages: dependencies: once: 1.4.0 - /engine.io-client@6.5.2: - resolution: {integrity: sha512-CQZqbrpEYnrpGqC07a9dJDz4gePZUgTPMU3NKJPSeQOyw27Tst4Pl3FemKoFGAlHzgZmKjoRmiJvbWfhCXUlIg==} - dependencies: - '@socket.io/component-emitter': 3.1.0 - debug: 4.3.4 - engine.io-parser: 5.2.1 - ws: 8.11.0 - xmlhttprequest-ssl: 2.0.0 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - dev: false - - /engine.io-parser@5.2.1: - resolution: {integrity: sha512-9JktcM3u18nU9N2Lz3bWeBgxVgOKpw7yhRaoxQA3FUDZzzw+9WlA6p4G4u0RixNkg14fH7EfEc/RhpurtiROTQ==} - engines: {node: '>=10.0.0'} - dev: false - /enhanced-resolve@5.15.0: resolution: {integrity: sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==} engines: {node: '>=10.13.0'} @@ -7463,13 +6908,42 @@ packages: fast-safe-stringify: 2.1.1 dev: false - /ethereum-cryptography@2.1.2: - resolution: {integrity: sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==} - dependencies: - '@noble/curves': 1.1.0 - '@noble/hashes': 1.3.1 - '@scure/bip32': 1.3.1 - '@scure/bip39': 1.2.1 + /ethers@5.7.0: + resolution: {integrity: sha512-5Xhzp2ZQRi0Em+0OkOcRHxPzCfoBfgtOQA+RUylSkuHbhTEaQklnYi2hsWbRgs3ztJsXVXd9VKBcO1ScWL8YfA==} + dependencies: + '@ethersproject/abi': 5.7.0 + '@ethersproject/abstract-provider': 5.7.0 + '@ethersproject/abstract-signer': 5.7.0 + '@ethersproject/address': 5.7.0 + '@ethersproject/base64': 5.7.0 + '@ethersproject/basex': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/constants': 5.7.0 + '@ethersproject/contracts': 5.7.0 + '@ethersproject/hash': 5.7.0 + '@ethersproject/hdnode': 5.7.0 + '@ethersproject/json-wallets': 5.7.0 + '@ethersproject/keccak256': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/networks': 5.7.0 + '@ethersproject/pbkdf2': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/providers': 5.7.0 + '@ethersproject/random': 5.7.0 + '@ethersproject/rlp': 5.7.0 + '@ethersproject/sha2': 5.7.0 + '@ethersproject/signing-key': 5.7.0 + '@ethersproject/solidity': 5.7.0 + '@ethersproject/strings': 5.7.0 + '@ethersproject/transactions': 5.7.0 + '@ethersproject/units': 5.7.0 + '@ethersproject/wallet': 5.7.0 + '@ethersproject/web': 5.7.0 + '@ethersproject/wordlists': 5.7.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate dev: false /ethers@6.8.0: @@ -7482,20 +6956,12 @@ packages: '@types/node': 18.15.13 aes-js: 4.0.0-beta.5 tslib: 2.4.0 - ws: 8.5.0 + ws: 8.5.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - utf-8-validate dev: false - /ethjs-util@0.1.6: - resolution: {integrity: sha512-CUnVOQq7gSpDHZVVrQW8ExxUETWrnrvXYvYz55wOU8Uj4VCgw56XC2B/fVqQN+f7gmrnRHSLVnFAwsCuNwji8w==} - engines: {node: '>=6.5.0', npm: '>=3'} - dependencies: - is-hex-prefixed: 1.0.0 - strip-hex-prefix: 1.0.0 - dev: false - /ev-emitter@2.1.2: resolution: {integrity: sha512-jQ5Ql18hdCQ4qS+RCrbLfz1n+Pags27q5TwMKvZyhp5hh2UULUYZUy1keqj6k6SYsdqIYjnmz7xyyEY0V67B8Q==} dev: false @@ -8202,6 +7668,12 @@ packages: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} dev: true + /html-parse-stringify@3.0.1: + resolution: {integrity: sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==} + dependencies: + void-elements: 3.1.0 + dev: false + /http-cache-semantics@4.1.1: resolution: {integrity: sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==} dev: true @@ -8246,12 +7718,10 @@ packages: hasBin: true dev: true - /i18n-js@4.3.2: - resolution: {integrity: sha512-n8gbEbQEueym2/q2yrZk5/xKWjFcKtg3/Escw4JHSVWa8qtKqP8j7se3UjkRbHlO/REqFA0V/MG1q8tEfyHeOA==} + /i18next@22.5.1: + resolution: {integrity: sha512-8TGPgM3pAD+VRsMtUMNknRz3kzqwp/gPALrWMsDnmC1mKqJwpWyooQRLMcbTwq8z8YwSmuj+ZYvc+xCuEpkssA==} dependencies: - bignumber.js: 9.1.2 - lodash: 4.17.21 - make-plural: 7.3.0 + '@babel/runtime': 7.22.15 dev: false /iconv-lite@0.6.3: @@ -8649,11 +8119,6 @@ packages: dependencies: is-extglob: 2.1.1 - /is-hex-prefixed@1.0.0: - resolution: {integrity: sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA==} - engines: {node: '>=6.5.0', npm: '>=3'} - dev: false - /is-installed-globally@0.1.0: resolution: {integrity: sha512-ERNhMg+i/XgDwPIPF3u24qpajVreaiSuvpb1Uu0jugw7KKcxGyCX8cgp8P5fwTmAuXku6beDHHECdKArjlg7tw==} engines: {node: '>=4'} @@ -8686,14 +8151,6 @@ packages: resolution: {integrity: sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==} dev: false - /is-nan@1.3.2: - resolution: {integrity: sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.2.1 - dev: false - /is-negative-zero@2.0.2: resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==} engines: {node: '>= 0.4'} @@ -8803,10 +8260,6 @@ packages: dependencies: which-typed-array: 1.1.11 - /is-typedarray@1.0.0: - resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==} - dev: false - /is-weakmap@2.0.1: resolution: {integrity: sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==} dev: false @@ -8853,14 +8306,6 @@ packages: ws: 7.5.9 dev: false - /isows@1.0.2(ws@8.13.0): - resolution: {integrity: sha512-ohHPFvRjcGLLA7uqHjIcGf5M3OrzN/k9QVYMGOvCppV/HY2GZdz7oFsJHT70ZXEL7ImrOGE1F9M0SovDGSfT6Q==} - peerDependencies: - ws: '*' - dependencies: - ws: 8.13.0 - dev: false - /istanbul-lib-coverage@3.2.0: resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==} engines: {node: '>=8'} @@ -9025,7 +8470,7 @@ packages: engines: {node: '>=8'} hasBin: true dependencies: - '@types/connect': 3.4.36 + '@types/connect': 3.4.37 '@types/node': 12.20.55 '@types/ws': 7.4.7 JSONStream: 1.3.5 @@ -9463,6 +8908,10 @@ packages: engines: {node: '>=10'} dev: false + /js-sha3@0.8.0: + resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==} + dev: false + /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -9516,12 +8965,6 @@ packages: /json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - /json-stable-stringify@1.0.2: - resolution: {integrity: sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==} - dependencies: - jsonify: 0.0.1 - dev: false - /json-stringify-safe@5.0.1: resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} @@ -9550,19 +8993,11 @@ packages: graceful-fs: 4.2.11 dev: false - /jsonify@0.0.1: - resolution: {integrity: sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==} - dev: false - /jsonparse@1.3.1: resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} engines: {'0': node >= 0.2.0} dev: false - /jsonschema@1.4.1: - resolution: {integrity: sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ==} - dev: false - /jsx-ast-utils@3.3.5: resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==} engines: {node: '>=4.0'} @@ -9581,10 +9016,6 @@ packages: setimmediate: 1.0.5 dev: false - /jwt-decode@3.1.2: - resolution: {integrity: sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==} - dev: false - /keccak@3.0.4: resolution: {integrity: sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q==} engines: {node: '>=10.0.0'} @@ -9707,7 +9138,7 @@ packages: /lit-element@3.3.3: resolution: {integrity: sha512-XbeRxmTHubXENkV4h8RIPyr8lXc+Ff28rkcQzw3G6up2xg5E8Zu1IgOWIwBLEQsu3cOVFqdYwiVi0hv0SlpqUA==} dependencies: - '@lit-labs/ssr-dom-shim': 1.1.1 + '@lit-labs/ssr-dom-shim': 1.1.2 '@lit/reactive-element': 1.6.3 lit-html: 2.8.0 dev: false @@ -9715,7 +9146,7 @@ packages: /lit-html@2.8.0: resolution: {integrity: sha512-o9t+MQM3P4y7M7yNzqAyjp7z+mQGa4NS4CxiyLqFPyFWyc4O+nodLrkrxSaCTrla6M5YOLaT3RpbbqjszB5g3Q==} dependencies: - '@types/trusted-types': 2.0.4 + '@types/trusted-types': 2.0.5 dev: false /lit@2.8.0: @@ -9779,6 +9210,7 @@ packages: /lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + dev: true /log-update@5.0.1: resolution: {integrity: sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw==} @@ -9791,11 +9223,6 @@ packages: wrap-ansi: 8.1.0 dev: true - /loglevel@1.8.1: - resolution: {integrity: sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==} - engines: {node: '>= 0.6.0'} - dev: false - /lokijs@1.5.12: resolution: {integrity: sha512-Q5ALD6JiS6xAUWCwX3taQmgwxyveCtIIuL08+ml0nHwT3k0S/GIFJN+Hd38b1qYIMaE5X++iqsqWVksz7SYW+Q==} dev: false @@ -9873,10 +9300,6 @@ packages: /make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - /make-plural@7.3.0: - resolution: {integrity: sha512-/K3BC0KIsO+WK2i94LkMPv3wslMrazrQhfi5We9fMbLlLjzoOSJWr7TAdupLlDWaJcWxwoNosBkhFDejiu5VDw==} - dev: false - /makeerror@1.0.12: resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} dependencies: @@ -9901,12 +9324,6 @@ packages: dev: true optional: true - /media-query-parser@2.0.2: - resolution: {integrity: sha512-1N4qp+jE0pL5Xv4uEcwVUhIkwdUO3S/9gML90nqKA7v7FcOS5vUtatfzok9S9U1EJU8dHWlcv95WLnKmmxZI9w==} - dependencies: - '@babel/runtime': 7.22.15 - dev: false - /meow@9.0.0: resolution: {integrity: sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==} engines: {node: '>=10'} @@ -9939,10 +9356,6 @@ packages: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} - /micro-ftch@0.3.1: - resolution: {integrity: sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==} - dev: false - /micromatch@4.0.5: resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} engines: {node: '>=8.6'} @@ -10385,14 +9798,6 @@ packages: /object-inspect@1.12.3: resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} - /object-is@1.1.5: - resolution: {integrity: sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.2.1 - dev: false - /object-keys@1.1.1: resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} engines: {node: '>= 0.4'} @@ -10444,10 +9849,6 @@ packages: define-properties: 1.2.1 es-abstract: 1.22.2 - /oblivious-set@1.1.1: - resolution: {integrity: sha512-Oh+8fK09mgGmAshFdH6hSVco6KZmd1tTwNFWj35OvzdmJTMZtAkbn05zar2iG3v6sDs1JLEtOiBGNb6BHwkb2w==} - dev: false - /on-exit-leak-free@0.2.0: resolution: {integrity: sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg==} dev: false @@ -10485,10 +9886,6 @@ packages: prelude-ls: 1.2.1 type-check: 0.4.0 - /outdent@0.8.0: - resolution: {integrity: sha512-KiOAIsdpUTcAXuykya5fnVVT+/5uS0Q1mrkRHcF89tpieSmY33O/tmc54CqwA+bfhbtEfZUNLHaPUiB9X3jt1A==} - dev: false - /p-cancelable@2.1.1: resolution: {integrity: sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==} engines: {node: '>=8'} @@ -10842,8 +10239,8 @@ packages: source-map-js: 1.0.2 dev: false - /preact@10.17.1: - resolution: {integrity: sha512-X9BODrvQ4Ekwv9GURm9AKAGaomqXmip7NQTZgY7gcNmr7XE83adOMJvd3N42id1tMFU7ojiynRsYnY6/BRFxLA==} + /preact@10.18.2: + resolution: {integrity: sha512-X/K43vocUHDg0XhWVmTTMbec4LT/iBMh+csCEqJk+pJqegaXsvjdqN80ZZ3L+93azWCnWCZ+WGwYb8SplxeNjA==} dev: false /prebuild-install@7.1.1: @@ -10992,17 +10389,6 @@ packages: engines: {node: '>=6.0.0'} dev: false - /qrcode@1.5.0: - resolution: {integrity: sha512-9MgRpgVc+/+47dFvQeD6U2s0Z92EsKzcHogtum4QB+UNd025WOJSHvn/hjk9xmzj7Stj95CyUAs31mrjxliEsQ==} - engines: {node: '>=10.13.0'} - hasBin: true - dependencies: - dijkstrajs: 1.0.3 - encode-utf8: 1.0.3 - pngjs: 5.0.0 - yargs: 15.4.1 - dev: false - /qrcode@1.5.3: resolution: {integrity: sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==} engines: {node: '>=10.13.0'} @@ -11021,16 +10407,6 @@ packages: side-channel: 1.0.4 dev: false - /query-string@6.14.1: - resolution: {integrity: sha512-XDxAeVmpfu1/6IjyT/gXHOl+S0vQ9owggJ30hhWKdHAsNPOcasn5o9BW0eejZqL2e4vMjhAxoW3jVHcD6mbcYw==} - engines: {node: '>=6'} - dependencies: - decode-uri-component: 0.2.2 - filter-obj: 1.1.0 - split-on-first: 1.1.0 - strict-uri-encode: 2.0.0 - dev: false - /query-string@7.1.3: resolution: {integrity: sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg==} engines: {node: '>=6'} @@ -11087,12 +10463,6 @@ packages: seedrandom: 3.0.5 dev: false - /randombytes@2.1.0: - resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} - dependencies: - safe-buffer: 5.2.1 - dev: false - /rc@1.2.8: resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} hasBin: true @@ -11138,6 +10508,26 @@ packages: scheduler: 0.23.0 dev: false + /react-i18next@12.3.1(i18next@22.5.1)(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-5v8E2XjZDFzK7K87eSwC7AJcAkcLt5xYZ4+yTPDAW1i7C93oOY1dnr4BaQM7un4Hm+GmghuiPvevWwlca5PwDA==} + peerDependencies: + i18next: '>= 19.0.0' + react: '>= 16.8.0' + react-dom: '*' + react-native: '*' + peerDependenciesMeta: + react-dom: + optional: true + react-native: + optional: true + dependencies: + '@babel/runtime': 7.22.15 + html-parse-stringify: 3.0.1 + i18next: 22.5.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + dev: false + /react-icons@4.11.0(react@18.2.0): resolution: {integrity: sha512-V+4khzYcE5EBk/BvcuYRq6V/osf11ODUM2J8hg2FDSswRrGvqiYUYPRy4OdrWaQOBj4NcpJfmHZLNaD+VH0TyA==} peerDependencies: @@ -11182,25 +10572,6 @@ packages: tslib: 2.6.2 dev: false - /react-remove-scroll@2.5.4(@types/react@18.2.21)(react@18.2.0): - resolution: {integrity: sha512-xGVKJJr0SJGQVirVFAUZ2k1QLyO6m+2fy0l8Qawbp5Jgrv3DeLalrfMNBFSlmz5kriGGzsVBtGVnf4pTKIhhWA==} - engines: {node: '>=10'} - peerDependencies: - '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - '@types/react': - optional: true - dependencies: - '@types/react': 18.2.21 - react: 18.2.0 - react-remove-scroll-bar: 2.3.4(@types/react@18.2.21)(react@18.2.0) - react-style-singleton: 2.2.1(@types/react@18.2.21)(react@18.2.0) - tslib: 2.6.2 - use-callback-ref: 1.3.0(@types/react@18.2.21)(react@18.2.0) - use-sidecar: 1.1.2(@types/react@18.2.21)(react@18.2.0) - dev: false - /react-remove-scroll@2.5.7(@types/react@18.2.21)(react@18.2.0): resolution: {integrity: sha512-FnrTWO4L7/Bhhf3CYBNArEG/yROV0tKmTv7/3h9QCFvH6sndeFf1wPqOcbFVu5VAulS5dV1wGT3GZZ/1GawqiA==} engines: {node: '>=10'} @@ -11247,13 +10618,27 @@ packages: tslib: 2.6.2 dev: false + /react-svg@16.1.29(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-IBJYGyoObDWzmRwksb4htRq/orux9y480KmTYyKGTsJn97ORyKlKM6x+12xn8RRUG4R6t9WT6Vt0/ixVxUfY3g==} + peerDependencies: + react: ^16.0.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 + dependencies: + '@babel/runtime': 7.23.2 + '@tanem/svg-injector': 10.1.67 + '@types/prop-types': 15.7.9 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + dev: false + /react-textarea-autosize@8.5.3(@types/react@18.2.21)(react@18.2.0): resolution: {integrity: sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ==} engines: {node: '>=10'} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: - '@babel/runtime': 7.22.15 + '@babel/runtime': 7.23.2 react: 18.2.0 use-composed-ref: 1.3.0(react@18.2.0) use-latest: 1.2.1(@types/react@18.2.21)(react@18.2.0) @@ -11526,15 +10911,15 @@ packages: dev: true optional: true - /rpc-websockets@7.6.0: - resolution: {integrity: sha512-Jgcs8q6t8Go98dEulww1x7RysgTkzpCMelVxZW4hvuyFtOGpeUz9prpr2KjUa/usqxgFCd9Tu3+yhHEP9GVmiQ==} + /rpc-websockets@7.6.2: + resolution: {integrity: sha512-+M1fOYMPxvOQDHbSItkD/an4fRwPZ1Nft1zv48G84S0TyChG2A1GXmjWkbs3o2NxW+q36H9nM2uLo5yojTrPaA==} dependencies: - '@babel/runtime': 7.22.15 + '@babel/runtime': 7.23.2 eventemitter3: 4.0.7 uuid: 8.3.2 - ws: 8.14.2(bufferutil@4.0.7)(utf-8-validate@5.0.10) + ws: 8.5.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) optionalDependencies: - bufferutil: 4.0.7 + bufferutil: 4.0.8 utf-8-validate: 5.0.10 dev: false @@ -11616,6 +11001,10 @@ packages: compute-scroll-into-view: 3.1.0 dev: false + /scrypt-js@3.0.1: + resolution: {integrity: sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==} + dev: false + /secure-json-parse@2.7.0: resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} dev: false @@ -11775,30 +11164,6 @@ packages: is-fullwidth-code-point: 4.0.0 dev: true - /socket.io-client@4.7.2: - resolution: {integrity: sha512-vtA0uD4ibrYD793SOIAwlo8cj6haOeMHrGvwPxJsxH7CeIksqJ+3Zc06RvWTIFgiSqx4A3sOnTXpfAEE2Zyz6w==} - engines: {node: '>=10.0.0'} - dependencies: - '@socket.io/component-emitter': 3.1.0 - debug: 4.3.4 - engine.io-client: 6.5.2 - socket.io-parser: 4.2.4 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - dev: false - - /socket.io-parser@4.2.4: - resolution: {integrity: sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==} - engines: {node: '>=10.0.0'} - dependencies: - '@socket.io/component-emitter': 3.1.0 - debug: 4.3.4 - transitivePeerDependencies: - - supports-color - dev: false - /sonic-boom@2.8.0: resolution: {integrity: sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==} dependencies: @@ -12051,13 +11416,6 @@ packages: engines: {node: '>=12'} dev: true - /strip-hex-prefix@1.0.0: - resolution: {integrity: sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A==} - engines: {node: '>=6.5.0', npm: '>=3'} - dependencies: - is-hex-prefixed: 1.0.0 - dev: false - /strip-indent@3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -12322,10 +11680,6 @@ packages: dependencies: is-number: 7.0.0 - /toggle-selection@1.0.6: - resolution: {integrity: sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==} - dev: false - /tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} dev: false @@ -12349,11 +11703,6 @@ packages: typescript: 5.2.2 dev: false - /ts-custom-error@3.3.1: - resolution: {integrity: sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==} - engines: {node: '>=14.0.0'} - dev: false - /ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} dev: false @@ -12456,14 +11805,6 @@ packages: safe-buffer: 5.2.1 dev: false - /tweetnacl-util@0.15.1: - resolution: {integrity: sha512-RKJBIj8lySrShN4w6i/BonWp2Z/uxwC3h4y7xsRrpP59ZboCd0GpEVsOnMDYLMmKBpYhb5TgHzZXy7wTfYFBRw==} - dev: false - - /tweetnacl@1.0.3: - resolution: {integrity: sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==} - dev: false - /type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -12544,12 +11885,6 @@ packages: for-each: 0.3.3 is-typed-array: 1.1.12 - /typedarray-to-buffer@3.1.5: - resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} - dependencies: - is-typedarray: 1.0.0 - dev: false - /typescript@5.2.2: resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} engines: {node: '>=14.17'} @@ -12623,10 +11958,6 @@ packages: engines: {node: '>= 10.0.0'} dev: false - /unload@2.4.1: - resolution: {integrity: sha512-IViSAm8Z3sRBYA+9wc0fLQmU9Nrxb16rcDmIiR6Y9LJSZzI7QY5QsDhqPpKOjAn0O9/kfK1TfNEMMAGPTIraPw==} - dev: false - /unzip-response@2.0.1: resolution: {integrity: sha512-N0XH6lqDtFH84JxptQoZYmloF4nzrQqqrAymNj+/gW60AO2AZgOcf4O/nUXJcYfyQkqvMo9lSupBZmmgvuVXlw==} engines: {node: '>=4'} @@ -12822,27 +12153,9 @@ packages: /varint@6.0.0: resolution: {integrity: sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==} - /viem@1.16.0(typescript@5.2.2): - resolution: {integrity: sha512-noRMxaMubiLbVrZ0tXKxUKNwle0QtF0wO6kBOWnm6wg6XIqptSW7xhFzrFdDRp8Jduu5rwwkCB4Tokd5MtFRtw==} - peerDependencies: - typescript: '>=5.0.4' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@adraffy/ens-normalize': 1.9.4 - '@noble/curves': 1.2.0 - '@noble/hashes': 1.3.2 - '@scure/bip32': 1.3.2 - '@scure/bip39': 1.2.1 - abitype: 0.9.8(typescript@5.2.2) - isows: 1.0.2(ws@8.13.0) - typescript: 5.2.2 - ws: 8.13.0 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - zod + /void-elements@3.1.0: + resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} + engines: {node: '>=0.10.0'} dev: false /w3name@1.0.8: @@ -12859,39 +12172,6 @@ packages: - supports-color dev: false - /wagmi@1.4.3(@types/react@18.2.21)(encoding@0.1.13)(lokijs@1.5.12)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.16.0): - resolution: {integrity: sha512-3LjbqqVRe6WW/WD07QCd5Itmo4nUfLsXuoc8F7nw9NslNUg8SFEb+g/jZ4665V0xh5ZRqPBJ7XOXASpdM2Y/5Q==} - peerDependencies: - react: '>=17.0.0' - typescript: '>=5.0.4' - viem: '>=0.3.35' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@tanstack/query-sync-storage-persister': 4.35.3 - '@tanstack/react-query': 4.35.3(react-dom@18.2.0)(react@18.2.0) - '@tanstack/react-query-persist-client': 4.35.5(@tanstack/react-query@4.35.3) - '@wagmi/core': 1.4.3(@types/react@18.2.21)(encoding@0.1.13)(lokijs@1.5.12)(react@18.2.0)(typescript@5.2.2)(viem@1.16.0) - abitype: 0.8.7(typescript@5.2.2) - react: 18.2.0 - typescript: 5.2.2 - use-sync-external-store: 1.2.0(react@18.2.0) - viem: 1.16.0(typescript@5.2.2) - transitivePeerDependencies: - - '@react-native-async-storage/async-storage' - - '@types/react' - - bufferutil - - encoding - - immer - - lokijs - - react-dom - - react-native - - supports-color - - utf-8-validate - - zod - dev: false - /walker@1.0.8: resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} dependencies: @@ -13086,8 +12366,8 @@ packages: imurmurhash: 0.1.4 signal-exit: 3.0.7 - /ws@7.5.9: - resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==} + /ws@7.4.6: + resolution: {integrity: sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==} engines: {node: '>=8.3.0'} peerDependencies: bufferutil: ^4.0.1 @@ -13097,50 +12377,21 @@ packages: optional: true utf-8-validate: optional: true - - /ws@8.11.0: - resolution: {integrity: sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - dev: false - - /ws@8.13.0: - resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true dev: false - /ws@8.14.2(bufferutil@4.0.7)(utf-8-validate@5.0.10): - resolution: {integrity: sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==} - engines: {node: '>=10.0.0'} + /ws@7.5.9: + resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==} + engines: {node: '>=8.3.0'} peerDependencies: bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' + utf-8-validate: ^5.0.2 peerDependenciesMeta: bufferutil: optional: true utf-8-validate: optional: true - dependencies: - bufferutil: 4.0.7 - utf-8-validate: 5.0.10 - dev: false - /ws@8.5.0: + /ws@8.5.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): resolution: {integrity: sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==} engines: {node: '>=10.0.0'} peerDependencies: @@ -13151,6 +12402,9 @@ packages: optional: true utf-8-validate: optional: true + dependencies: + bufferutil: 4.0.8 + utf-8-validate: 5.0.10 dev: false /xdg-basedir@3.0.0: @@ -13158,11 +12412,6 @@ packages: engines: {node: '>=4'} dev: true - /xmlhttprequest-ssl@2.0.0: - resolution: {integrity: sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==} - engines: {node: '>=0.4.0'} - dev: false - /xtend@4.0.2: resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} engines: {node: '>=0.4'} @@ -13264,26 +12513,6 @@ packages: resolution: {integrity: sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==} dev: false - /zustand@4.4.1(@types/react@18.2.21)(react@18.2.0): - resolution: {integrity: sha512-QCPfstAS4EBiTQzlaGP1gmorkh/UL1Leaj2tdj+zZCZ/9bm0WS7sI2wnfD5lpOszFqWJ1DcPnGoY8RDL61uokw==} - engines: {node: '>=12.7.0'} - peerDependencies: - '@types/react': '>=16.8' - immer: '>=9.0' - react: '>=16.8' - peerDependenciesMeta: - '@types/react': - optional: true - immer: - optional: true - react: - optional: true - dependencies: - '@types/react': 18.2.21 - react: 18.2.0 - use-sync-external-store: 1.2.0(react@18.2.0) - dev: false - github.com/multiformats/cid/e5b6a3636d05234bc34bef873926c706afc1bd89: resolution: {tarball: https://codeload.github.com/multiformats/cid/tar.gz/e5b6a3636d05234bc34bef873926c706afc1bd89} name: cid diff --git a/src/app/NetworkProvider.tsx b/src/app/NetworkProvider.tsx new file mode 100644 index 0000000..2966f0f --- /dev/null +++ b/src/app/NetworkProvider.tsx @@ -0,0 +1,52 @@ +"use client"; + +import { ModalProvider } from '@particle-network/connect-react-ui'; +import { WalletEntryPosition } from '@particle-network/auth'; +import { Ethereum, EthereumGoerli, EthereumSepolia, Polygon, PolygonMumbai } from '@particle-network/chains'; +import { evmWallets } from '@particle-network/connect'; + + +export default function NetworkProvider({ children }: { children: React.ReactNode }) { + return ( + {children} + ) +} diff --git a/src/app/api/prisma/user_exists/route.ts b/src/app/api/prisma/user_exists/route.ts index ab5a8ab..c464597 100644 --- a/src/app/api/prisma/user_exists/route.ts +++ b/src/app/api/prisma/user_exists/route.ts @@ -1,10 +1,18 @@ import prisma from '@/lib/prisma' export async function POST(req: Request) { const { email } = await req.json() - const exists = await prisma.user.count({ + // const counter = await prisma.user.count({ + // where: { + // email: email, + // }, + // }) + + const user = await prisma.user.findUnique({ where: { email: email, }, }) - return Response.json(exists) + console.log(user) + + return new Response(JSON.stringify({ user })) } diff --git a/src/app/components/Loading.tsx b/src/app/components/Loading.tsx new file mode 100644 index 0000000..c72a668 --- /dev/null +++ b/src/app/components/Loading.tsx @@ -0,0 +1,23 @@ +import React from 'react' +import { FadeLoader } from 'react-spinners' + +const Loading = () => { + return ( +
+
+
+ {/* */} + +
+
+

+ Please wait... +

+ {/*

Kindly wait as we process your transaction

*/} +
+
+
+ ) +} + +export default Loading diff --git a/src/app/components/fvm/UploadFile.jsx b/src/app/components/fvm/UploadFile.jsx index 0817eb1..d9937bb 100644 --- a/src/app/components/fvm/UploadFile.jsx +++ b/src/app/components/fvm/UploadFile.jsx @@ -1,120 +1,120 @@ -'use client' -import React, { useState } from 'react' -import { useAccount, useContractWrite, useWaitForTransaction } from 'wagmi' -import { dealClient } from '@/abi/deal_client' -import lighthouse from '@lighthouse-web3/sdk' -import { ClipLoader } from 'react-spinners' -import { filecoinCalibration } from 'wagmi/chains' -import CID from 'cids' +// 'use client' +// import React, { useState } from 'react' +// import { useAccount, useContractWrite, useWaitForTransaction } from 'wagmi' +// import { dealClient } from '@/abi/deal_client' +// import lighthouse from '@lighthouse-web3/sdk' +// import { ClipLoader } from 'react-spinners' +// import { filecoinCalibration } from 'wagmi/chains' +// import CID from 'cids' -//@techyNonso add parentCallback function as props to get hash(cid) of data uploaded -const UploadFile = (props) => { - const { address, isConnected } = useAccount() - const [uploading, setUploading] = useState(false) - const [uploaded, setUploaded] = useState(false) - const { write, data } = useContractWrite({ - address: dealClient.address, - abi: dealClient.abi, - chainId: filecoinCalibration.id, - functionName: 'makeDealProposal', - }) - const waitForTransaction = useWaitForTransaction({ - chainId: filecoinCalibration.id, - hash: data?.hash, - onSuccess(data) { - setUploaded(true) - }, - }) +// //@techyNonso add parentCallback function as props to get hash(cid) of data uploaded +// const UploadFile = (props) => { +// const { address, isConnected } = useAccount() +// const [uploading, setUploading] = useState(false) +// const [uploaded, setUploaded] = useState(false) +// const { write, data } = useContractWrite({ +// address: dealClient.address, +// abi: dealClient.abi, +// chainId: filecoinCalibration.id, +// functionName: 'makeDealProposal', +// }) +// const waitForTransaction = useWaitForTransaction({ +// chainId: filecoinCalibration.id, +// hash: data?.hash, +// onSuccess(data) { +// setUploaded(true) +// }, +// }) - // helper function for upload img function - const progressCallback = (progressData) => { - let percentageDone = 100 - (progressData?.total / progressData?.uploaded)?.toFixed(2) - console.log(percentageDone) - } +// // helper function for upload img function +// const progressCallback = (progressData) => { +// let percentageDone = 100 - (progressData?.total / progressData?.uploaded)?.toFixed(2) +// console.log(percentageDone) +// } - const dataDeal = async (cid, carLink, fileSize) => { - try { - console.log('deal initiated ....') - const cidHexRaw = new CID(cid).toV1().toString('base16').substring(1) - const cidHex = '0x' + cidHexRaw - if (isConnected) { - const extraParamsV1 = [carLink, 10000, false, false] - const DealRequestStruct = [ - cidHex, - fileSize, - false, - cid, - 940000, //startEpoch - be sure to check while final deploy - 9800000, // end epoch - '👆' - 0, - 0, - 0, - 1, - extraParamsV1, - ] - write({ - args: [DealRequestStruct], - from: address, - }) - } - } catch (error) { - console.log(error) - return - } - } +// const dataDeal = async (cid, carLink, fileSize) => { +// try { +// console.log('deal initiated ....') +// const cidHexRaw = new CID(cid).toV1().toString('base16').substring(1) +// const cidHex = '0x' + cidHexRaw +// if (isConnected) { +// const extraParamsV1 = [carLink, 10000, false, false] +// const DealRequestStruct = [ +// cidHex, +// fileSize, +// false, +// cid, +// 940000, //startEpoch - be sure to check while final deploy +// 9800000, // end epoch - '👆' +// 0, +// 0, +// 0, +// 1, +// extraParamsV1, +// ] +// write({ +// args: [DealRequestStruct], +// from: address, +// }) +// } +// } catch (error) { +// console.log(error) +// return +// } +// } - const uploadFile = async (e) => { - setUploading(true) - props.extractFile(e) - const output = await lighthouse.upload( - e.target.files, - process.env.NEXT_PUBLIC_LH_API, - progressCallback, - ) +// const uploadFile = async (e) => { +// setUploading(true) +// props.extractFile(e) +// const output = await lighthouse.upload( +// e.target.files, +// process.env.NEXT_PUBLIC_LH_API, +// progressCallback, +// ) - console.log('Visit at https://gateway.lighthouse.storage/ipfs/' + output.data[0].Hash) - console.log(output) - const fileSize = output.data[0].Size - const hash = output.data[0].Hash - props.parentCallback(hash) - const carLink = `https://ipfs.io/ipfs/${hash}?format=car` - await dataDeal(hash, carLink, fileSize) - } - return ( -
- {uploading ? ( -
- {uploaded ? ( - ✅ Data deal created - ) : ( - - {' '} - Creating Data Deal on FVM - - )}{' '} -
- ) : ( - { - uploadFile(e) - }} - /> - )} - -
- ) -} +// console.log('Visit at https://gateway.lighthouse.storage/ipfs/' + output.data[0].Hash) +// console.log(output) +// const fileSize = output.data[0].Size +// const hash = output.data[0].Hash +// props.parentCallback(hash) +// const carLink = `https://ipfs.io/ipfs/${hash}?format=car` +// await dataDeal(hash, carLink, fileSize) +// } +// return ( +//
+// {uploading ? ( +//
+// {uploaded ? ( +// ✅ Data deal created +// ) : ( +// +// {' '} +// Creating Data Deal on FVM +// +// )}{' '} +//
+// ) : ( +// { +// uploadFile(e) +// }} +// /> +// )} +// +//
+// ) +// } -export default UploadFile +// export default UploadFile diff --git a/src/app/dashboard/dashLayout.tsx b/src/app/dashboard/dashLayout.tsx index 514cd78..13653ce 100644 --- a/src/app/dashboard/dashLayout.tsx +++ b/src/app/dashboard/dashLayout.tsx @@ -65,9 +65,8 @@ export const DashLayout = ({ children }: { children: React.ReactNode }) => {
@@ -77,9 +76,8 @@ export const DashLayout = ({ children }: { children: React.ReactNode }) => {
@@ -89,9 +87,8 @@ export const DashLayout = ({ children }: { children: React.ReactNode }) => {
@@ -99,7 +96,7 @@ export const DashLayout = ({ children }: { children: React.ReactNode }) => {

Repository

-
+ {/*
@@ -116,12 +113,11 @@ export const DashLayout = ({ children }: { children: React.ReactNode }) => {

Rewards

-
+
*/}
@@ -149,9 +145,9 @@ export const DashLayout = ({ children }: { children: React.ReactNode }) => {
- + */} {user.email ? (
@@ -160,6 +156,7 @@ export const DashLayout = ({ children }: { children: React.ReactNode }) => { src={user?.profileImage} alt="profile pic" loader={myImageLoader} + unoptimized width={40} height={40} className="max-w-[100%] max-h-[100%] rounded-full mr-3" diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index 812e0e8..d67a13d 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -83,7 +83,7 @@ export default function Page() {
Recently created models
-
+
{ +// const [fileList, setFileList] = useState([]) +// const [noteBookList, setNoteBookList] = useState([]) +// const [modelName, setModelName] = useState('') +// const [selectedNoteBook, setSelectedNoteBook] = useState<{}>() +// const [jobIdData, setJobIdData] = useState(260) +// const [genCid, setGenCid] = useState('') +// const [decodedCid, setDecodedCid] = useState('') +// const { address, isConnected } = useAccount() +// const { chain, chains } = useNetwork() + +// //write to lily pad +// // const { write, data } = useContractWrite({ +// // //@ts-ignore +// // address: process.env.NEXT_PUBLIC_DECENTERPAD_ADDRESS, +// // abi: DECENTERPAD.output.abi, +// // chainId: chain?.id, +// // functionName: "StableDiffusion", +// // // onSuccess(data) { +// // // fetchData() +// // // } +// // }); + +// // //mint NFT +// // // const { write: mintNFT, data: mintedNFT } = useContractWrite({ +// // // address: "0x6c902D133A6C6c2CbC3Ec4Ff9fD7113cF2816965", +// // // abi: DatasetNFT.output.abi, +// // // chainId: chain?.id, +// // // functionName: "mintNFT", +// // // }); + +// // // const { +// // // data: jobIdData, +// // // isError, +// // // isLoading, +// // // } = useContractRead({ +// // // address: "0xedfe10A0C699Cb5D9070a070e3654a05007C4b38", +// // // abi: SDXL.output.abi, +// // // chainId: 1337, +// // // functionName: "userJobId", +// // // args: [address], +// // // watch: true, + +// // // onSuccess(data) { +// // // console.log("Success", data); +// // // console.log(jobIdData); +// // // }, +// // // }); + +// // //switch to file coin +// // const switchToFil = async () => { +// // if (chain?.id != 314159) +// // await switchNetwork({ +// // chainId: 314159, +// // }); +// // }; + +// // const retrieve = async (cid: string) => { +// // console.log(cid, jobIdData) +// // const client = new Web3Storage({ token: `${process.env.NEXT_PUBLIC_WEB_TOKEN}` }) +// // const res = await client.get(cid); + +// // let files; +// // if (files = await res.files()) { + +// // console.log(files); +// // let zip = new JSZip() +// // zip.file("exitCode", files[0]) +// // let folder = zip.folder("output") +// // folder?.file("image0.png", files[1]) +// // zip.file("stderr", files[2]) +// // zip.file("stdout", files[3]) + +// // // zip.generateAsync({ type: "blob" }) +// // // .then((content) => { +// // // console.log(content) +// // // //saveAs(content, "model.zip") +// // // }) + +// // //set id into list of uploaded ids +// // let uploadedData = window.localStorage.getItem("uploadedData") +// // let prevData = []; +// // if (uploadedData) { +// // prevData = JSON.parse(uploadedData) +// // } +// // let data = JSON.stringify([...prevData, jobIdData]) +// // window.localStorage.setItem("uploadedData", data) +// // } +// // if (!res.ok) { + +// // //set id into list of uploaded ids +// // let uploadedData = window.localStorage.getItem("uploadedData") +// // let prevData = []; +// // if (uploadedData) { +// // prevData = JSON.parse(uploadedData) +// // } +// // let data = JSON.stringify([...prevData, jobIdData]) +// // window.localStorage.setItem("uploadedData", data) +// // throw new Error(`failed to get ${cid}`) + +// // } + +// // // request succeeded! do something with the response object here... +// // } + +// // //decode CID to right format +// // const decodeCid = (data: string) => { + +// // const cid = new CID(data.toString()) + +// // const decodedCid = cid.toV1().toBaseEncodedString("base32"); + +// // setDecodedCid(decodedCid) + +// // //download the folder +// // retrieve(`${decodedCid}`) +// // } + +// // //Get users reports +// // const { +// // data: cidData, +// // isError: cidError, +// // isLoading: cidLoading, +// // } = useContractRead({ +// // //@ts-ignore +// // address: process.env.NEXT_PUBLIC_DECENTERPAD_ADDRESS, +// // abi: DECENTERPAD.output.abi, +// // chainId: chain?.id, +// // functionName: "getUserReports", +// // args: [address], +// // watch: true, + +// // onSuccess(data) { +// // console.log("Success", data); +// // //loop through data and get CID for matching job id +// // let uploadedIds = window.localStorage.getItem("uploadedData") +// // let uploadedIdArray: any = [] +// // if (uploadedIds) { +// // uploadedIdArray = JSON.parse(uploadedIds) +// // } +// // // console.log(typeof uploadedIdArray[0]) +// // //@ts-ignore +// // data?.forEach((item: { +// // jobId: number, +// // errorMsg: string, +// // cid: string, +// // status: Boolean +// // }) => { + +// // //check if cid has been uploaded before then set +// // if (Number(item.jobId) === jobIdData && jobIdData != 0 && !uploadedIdArray?.includes(Number(item.jobId))) { +// // setGenCid(item.cid) +// // decodeCid(item.cid) +// // } + +// // }); +// // }, +// // }); + +// // //wait of nft minting +// // // const waitForNFTTransaction = useWaitForTransaction({ +// // // chainId: chain?.id, +// // // hash: mintedNFT?.hash, +// // // onSuccess(data) { +// // // console.log(data, "nft minted"); +// // // }, +// // // }); + +// // //mint nft +// // // const proceedToMint = () => { +// // // mintNFT({ +// // // args: [`${genCid}`], +// // // //@ts-ignore +// // // from: address, +// // // }); +// // // }; + +// // //get users nfts +// // // const { +// // // data: nftData, +// // // isError, +// // // isLoading, +// // // } = useContractRead({ +// // // address: "0x6c902D133A6C6c2CbC3Ec4Ff9fD7113cF2816965", +// // // abi: DatasetNFT.output.abi, +// // // chainId: chain?.id, +// // // functionName: "getNFTS", +// // // args: [address], + +// // // onSuccess(data) { +// // // console.log("Success", data); +// // // //@ts-ignore +// // // let match = data.filter( +// // // //@ts-ignore +// // // (item) => item.uri.toUpperCase() === genCid.toUpperCase() +// // // ); + +// // // //@ts-ignore +// // // if (match.length == 0 && genCid) proceedToMint(); +// // // }, +// // // }); + +// // //get latetst job ID for a user +// // // const fetchData = async () => { +// // // const data = await readContracts({ +// // // contracts: [ +// // // { +// // // //@ts-ignore +// // // address: `${process.env.NEXT_PUBLIC_DECENTERPAD_ADDRESS}`, +// // // abi: [ +// // // { +// // // "inputs": [ +// // // { +// // // "internalType": "address", +// // // "name": "_owner", +// // // "type": "address" +// // // } +// // // ], +// // // "name": "getUserLatestId", +// // // "outputs": [ +// // // { +// // // "internalType": "uint256", +// // // "name": "", +// // // "type": "uint256" +// // // } +// // // ], +// // // "stateMutability": "view", +// // // "type": "function" +// // // }, +// // // ], +// // // functionName: "getUserLatestId", +// // // args: [`${address}`], +// // // }, +// // // ], +// // // }); +// // // console.log(data) +// // // setJobIdData(data[0].result); +// // // }; + +// // //get users latest jobID +// // const { +// // data: jobData, +// // isError, +// // isLoading, +// // } = useContractRead({ +// // //@ts-ignore +// // address: `${process.env.NEXT_PUBLIC_DECENTERPAD_ADDRESS}`, +// // abi: [ +// // { +// // "inputs": [ +// // { +// // "internalType": "address", +// // "name": "_owner", +// // "type": "address" +// // } +// // ], +// // "name": "getUserLatestId", +// // "outputs": [ +// // { +// // "internalType": "uint256", +// // "name": "", +// // "type": "uint256" +// // } +// // ], +// // "stateMutability": "view", +// // "type": "function" +// // }, +// // ], +// // chainId: chain?.id, +// // functionName: "getUserLatestId", +// // args: [`${address}`], +// // watch: true, + +// // onSuccess(data) { +// // console.log("Success", data); +// // console.log(Number(data)) +// // setJobIdData(Number(data)) +// // //@ts-ignore +// // // let match = data.filter( +// // // //@ts-ignore +// // // (item) => item.uri.toUpperCase() === genCid.toUpperCase() +// // // ); + +// // // //@ts-ignore +// // // if (match.length == 0 && genCid) proceedToMint(); +// // }, +// // }); + +// // //wait for job Id generation +// // // const waitForTransaction = useWaitForTransaction({ +// // // chainId: chain?.id, +// // // hash: data?.hash, +// // // onSuccess(data) { +// // // console.log(data); + +// // // fetchData(); +// // // }, +// // // }); + +// // const execute = async () => { +// // if (chain?.id != 314159) +// // await switchNetwork({ +// // chainId: 314159, +// // }); + +// // write({ +// // args: ["white horse"], +// // //@ts-ignore +// // from: address, +// // value: parseEther("4"), + +// // }); +// // }; + +// const parentCallback = (hash: string) => { +// console.log(hash) +// } + +// //extract zip file +// const extractFile = async (e: React.FormEvent) => { +// const file = e.currentTarget.files ? e.currentTarget.files[0] : [] +// const zip = new JSZip() +// const extractedFiles = await zip.loadAsync(file) +// const regex = new RegExp('[^.]+$') + +// //loop through extracted files +// extractedFiles.forEach(async (relativePath, file) => { +// const content = await file.async('string') + +// //skip directories +// if (!file.dir) { +// //set file list +// setFileList((fileList) => [...fileList, { file: file, path: relativePath }]) + +// //set note book list +// // if (relativePath.match(regex)?.[0] === "ipynb" || ) { +// setNoteBookList((noteBookList) => [ +// ...noteBookList, +// { file: file, path: relativePath }, +// ]) +// // } +// } +// }) +// } + +// const selectNoteBook = (e: React.FormEvent) => { +// const fileName = e.currentTarget.value +// //fillter matching note book file +// noteBookList.forEach((item) => { +// if (item.file.name.toUpperCase() === fileName.toUpperCase()) +// //select the matching notebook +// setSelectedNoteBook(item.file) +// }) +// } + +// return ( +//
+//
+// +//
+//
+//

+// AI Infrastructure For Model Training +//

+//
+// +// + +//

Upload working directory of notebook

+//
+//
+// +//
+//

Drag and drop file here

+//

Limit 1GB per file.zip

+//
+//
+ +//
+// {/* extractFile(e)} +// className=" text-primary_1 rounded-xl mt-4 bg-primary_13 border border-primary_8 py-4 px-2" +// /> */} + +// +//
+//
+ +//
+// Input archive not found using sample. +//
+ +//

Select a notebook

+// + +// + +// {/* */} +//
+//
+//
+// ) +// } + +// export default Demo + + +import React from 'react' + +export default function page() { + return ( +
page
+ ) } - -const Demo = () => { - const [fileList, setFileList] = useState([]) - const [noteBookList, setNoteBookList] = useState([]) - const [modelName, setModelName] = useState('') - const [selectedNoteBook, setSelectedNoteBook] = useState<{}>() - const [jobIdData, setJobIdData] = useState(260) - const [genCid, setGenCid] = useState('') - const [decodedCid, setDecodedCid] = useState('') - const { address, isConnected } = useAccount() - const { chain, chains } = useNetwork() - - //write to lily pad - // const { write, data } = useContractWrite({ - // //@ts-ignore - // address: process.env.NEXT_PUBLIC_DECENTERPAD_ADDRESS, - // abi: DECENTERPAD.output.abi, - // chainId: chain?.id, - // functionName: "StableDiffusion", - // // onSuccess(data) { - // // fetchData() - // // } - // }); - - // //mint NFT - // // const { write: mintNFT, data: mintedNFT } = useContractWrite({ - // // address: "0x6c902D133A6C6c2CbC3Ec4Ff9fD7113cF2816965", - // // abi: DatasetNFT.output.abi, - // // chainId: chain?.id, - // // functionName: "mintNFT", - // // }); - - // // const { - // // data: jobIdData, - // // isError, - // // isLoading, - // // } = useContractRead({ - // // address: "0xedfe10A0C699Cb5D9070a070e3654a05007C4b38", - // // abi: SDXL.output.abi, - // // chainId: 1337, - // // functionName: "userJobId", - // // args: [address], - // // watch: true, - - // // onSuccess(data) { - // // console.log("Success", data); - // // console.log(jobIdData); - // // }, - // // }); - - // //switch to file coin - // const switchToFil = async () => { - // if (chain?.id != 314159) - // await switchNetwork({ - // chainId: 314159, - // }); - // }; - - // const retrieve = async (cid: string) => { - // console.log(cid, jobIdData) - // const client = new Web3Storage({ token: `${process.env.NEXT_PUBLIC_WEB_TOKEN}` }) - // const res = await client.get(cid); - - // let files; - // if (files = await res.files()) { - - // console.log(files); - // let zip = new JSZip() - // zip.file("exitCode", files[0]) - // let folder = zip.folder("output") - // folder?.file("image0.png", files[1]) - // zip.file("stderr", files[2]) - // zip.file("stdout", files[3]) - - // // zip.generateAsync({ type: "blob" }) - // // .then((content) => { - // // console.log(content) - // // //saveAs(content, "model.zip") - // // }) - - // //set id into list of uploaded ids - // let uploadedData = window.localStorage.getItem("uploadedData") - // let prevData = []; - // if (uploadedData) { - // prevData = JSON.parse(uploadedData) - // } - // let data = JSON.stringify([...prevData, jobIdData]) - // window.localStorage.setItem("uploadedData", data) - // } - // if (!res.ok) { - - // //set id into list of uploaded ids - // let uploadedData = window.localStorage.getItem("uploadedData") - // let prevData = []; - // if (uploadedData) { - // prevData = JSON.parse(uploadedData) - // } - // let data = JSON.stringify([...prevData, jobIdData]) - // window.localStorage.setItem("uploadedData", data) - // throw new Error(`failed to get ${cid}`) - - // } - - // // request succeeded! do something with the response object here... - // } - - // //decode CID to right format - // const decodeCid = (data: string) => { - - // const cid = new CID(data.toString()) - - // const decodedCid = cid.toV1().toBaseEncodedString("base32"); - - // setDecodedCid(decodedCid) - - // //download the folder - // retrieve(`${decodedCid}`) - // } - - // //Get users reports - // const { - // data: cidData, - // isError: cidError, - // isLoading: cidLoading, - // } = useContractRead({ - // //@ts-ignore - // address: process.env.NEXT_PUBLIC_DECENTERPAD_ADDRESS, - // abi: DECENTERPAD.output.abi, - // chainId: chain?.id, - // functionName: "getUserReports", - // args: [address], - // watch: true, - - // onSuccess(data) { - // console.log("Success", data); - // //loop through data and get CID for matching job id - // let uploadedIds = window.localStorage.getItem("uploadedData") - // let uploadedIdArray: any = [] - // if (uploadedIds) { - // uploadedIdArray = JSON.parse(uploadedIds) - // } - // // console.log(typeof uploadedIdArray[0]) - // //@ts-ignore - // data?.forEach((item: { - // jobId: number, - // errorMsg: string, - // cid: string, - // status: Boolean - // }) => { - - // //check if cid has been uploaded before then set - // if (Number(item.jobId) === jobIdData && jobIdData != 0 && !uploadedIdArray?.includes(Number(item.jobId))) { - // setGenCid(item.cid) - // decodeCid(item.cid) - // } - - // }); - // }, - // }); - - // //wait of nft minting - // // const waitForNFTTransaction = useWaitForTransaction({ - // // chainId: chain?.id, - // // hash: mintedNFT?.hash, - // // onSuccess(data) { - // // console.log(data, "nft minted"); - // // }, - // // }); - - // //mint nft - // // const proceedToMint = () => { - // // mintNFT({ - // // args: [`${genCid}`], - // // //@ts-ignore - // // from: address, - // // }); - // // }; - - // //get users nfts - // // const { - // // data: nftData, - // // isError, - // // isLoading, - // // } = useContractRead({ - // // address: "0x6c902D133A6C6c2CbC3Ec4Ff9fD7113cF2816965", - // // abi: DatasetNFT.output.abi, - // // chainId: chain?.id, - // // functionName: "getNFTS", - // // args: [address], - - // // onSuccess(data) { - // // console.log("Success", data); - // // //@ts-ignore - // // let match = data.filter( - // // //@ts-ignore - // // (item) => item.uri.toUpperCase() === genCid.toUpperCase() - // // ); - - // // //@ts-ignore - // // if (match.length == 0 && genCid) proceedToMint(); - // // }, - // // }); - - // //get latetst job ID for a user - // // const fetchData = async () => { - // // const data = await readContracts({ - // // contracts: [ - // // { - // // //@ts-ignore - // // address: `${process.env.NEXT_PUBLIC_DECENTERPAD_ADDRESS}`, - // // abi: [ - // // { - // // "inputs": [ - // // { - // // "internalType": "address", - // // "name": "_owner", - // // "type": "address" - // // } - // // ], - // // "name": "getUserLatestId", - // // "outputs": [ - // // { - // // "internalType": "uint256", - // // "name": "", - // // "type": "uint256" - // // } - // // ], - // // "stateMutability": "view", - // // "type": "function" - // // }, - // // ], - // // functionName: "getUserLatestId", - // // args: [`${address}`], - // // }, - // // ], - // // }); - // // console.log(data) - // // setJobIdData(data[0].result); - // // }; - - // //get users latest jobID - // const { - // data: jobData, - // isError, - // isLoading, - // } = useContractRead({ - // //@ts-ignore - // address: `${process.env.NEXT_PUBLIC_DECENTERPAD_ADDRESS}`, - // abi: [ - // { - // "inputs": [ - // { - // "internalType": "address", - // "name": "_owner", - // "type": "address" - // } - // ], - // "name": "getUserLatestId", - // "outputs": [ - // { - // "internalType": "uint256", - // "name": "", - // "type": "uint256" - // } - // ], - // "stateMutability": "view", - // "type": "function" - // }, - // ], - // chainId: chain?.id, - // functionName: "getUserLatestId", - // args: [`${address}`], - // watch: true, - - // onSuccess(data) { - // console.log("Success", data); - // console.log(Number(data)) - // setJobIdData(Number(data)) - // //@ts-ignore - // // let match = data.filter( - // // //@ts-ignore - // // (item) => item.uri.toUpperCase() === genCid.toUpperCase() - // // ); - - // // //@ts-ignore - // // if (match.length == 0 && genCid) proceedToMint(); - // }, - // }); - - // //wait for job Id generation - // // const waitForTransaction = useWaitForTransaction({ - // // chainId: chain?.id, - // // hash: data?.hash, - // // onSuccess(data) { - // // console.log(data); - - // // fetchData(); - // // }, - // // }); - - // const execute = async () => { - // if (chain?.id != 314159) - // await switchNetwork({ - // chainId: 314159, - // }); - - // write({ - // args: ["white horse"], - // //@ts-ignore - // from: address, - // value: parseEther("4"), - - // }); - // }; - - const parentCallback = (hash: string) => { - console.log(hash) - } - - //extract zip file - const extractFile = async (e: React.FormEvent) => { - const file = e.currentTarget.files ? e.currentTarget.files[0] : [] - const zip = new JSZip() - const extractedFiles = await zip.loadAsync(file) - const regex = new RegExp('[^.]+$') - - //loop through extracted files - extractedFiles.forEach(async (relativePath, file) => { - const content = await file.async('string') - - //skip directories - if (!file.dir) { - //set file list - setFileList((fileList) => [...fileList, { file: file, path: relativePath }]) - - //set note book list - // if (relativePath.match(regex)?.[0] === "ipynb" || ) { - setNoteBookList((noteBookList) => [ - ...noteBookList, - { file: file, path: relativePath }, - ]) - // } - } - }) - } - - const selectNoteBook = (e: React.FormEvent) => { - const fileName = e.currentTarget.value - //fillter matching note book file - noteBookList.forEach((item) => { - if (item.file.name.toUpperCase() === fileName.toUpperCase()) - //select the matching notebook - setSelectedNoteBook(item.file) - }) - } - - return ( -
-
- -
-
-

- AI Infrastructure For Model Training -

-
- - - -

Upload working directory of notebook

-
-
- -
-

Drag and drop file here

-

Limit 1GB per file.zip

-
-
- -
- {/* extractFile(e)} - className=" text-primary_1 rounded-xl mt-4 bg-primary_13 border border-primary_8 py-4 px-2" - /> */} - - -
-
- -
- Input archive not found using sample. -
- -

Select a notebook

- - - - - {/* */} -
-
-
- ) -} - -export default Demo diff --git a/src/app/explore/page.tsx b/src/app/explore/page.tsx index 4d37345..e3ae3d0 100644 --- a/src/app/explore/page.tsx +++ b/src/app/explore/page.tsx @@ -1,173 +1,85 @@ 'use client' import Image from 'next/image' -import React, { useEffect, useState } from 'react' -import { PiGoogleLogoBold } from 'react-icons/pi' -import { Web3AuthNoModal } from '@web3auth/no-modal' -import { IProvider } from '@web3auth/base' -import { WALLET_ADAPTERS, CHAIN_NAMESPACES } from '@web3auth/base' -import { EthereumPrivateKeyProvider } from '@web3auth/ethereum-provider' -import { OpenloginAdapter } from '@web3auth/openlogin-adapter' +import React, { useEffect, useMemo, useState } from 'react' import { useRouter } from 'next/navigation' import { useUserContext } from '../userContext' -import { create_user } from '@/lib/prismaUtils' +import { create_user, get_user } from '@/lib/prismaUtils' import { generateFromEmail } from 'unique-username-generator' import { AvatarGenerator } from 'random-avatar-generator' -import { AppName } from '@config/app' +import { GiDigitalTrace } from 'react-icons/gi' +import particle from '@/lib/particle' +import Loading from '../components/Loading' const Page = () => { - const [view, setView] = useState(false) - const [web3auth, setWeb3auth] = useState(null) - const [provider, setProvider] = useState(null) + const [isLoading, setIsLoading] = useState(false) const { push } = useRouter() const { user, setUser } = useUserContext() const [email, setEmail] = useState('') const generator = new AvatarGenerator() - useEffect(() => { - const init = async () => { - try { - console.log(process.env.NEXT_PUBLIC_AUTH_CID, process.env.NEXT_PUBLIC_GOOGLE_CID) - const web3auth = new Web3AuthNoModal({ - // @note: TODO: change to mainnet once ready for prod - clientId: process.env.NEXT_PUBLIC_AUTH_CID, - web3AuthNetwork: 'sapphire_devnet', - chainConfig: { - chainNamespace: CHAIN_NAMESPACES.EIP155, - chainId: '0x13881', - rpcTarget: 'https://rpc-mumbai.maticvigil.com', // This is the public RPC we have added, please pass on your own endpoint while creating an app - }, - }) - const privateKeyProvider = new EthereumPrivateKeyProvider({ - config: { - chainConfig: { - chainId: '0x13881', - rpcTarget: 'https://rpc-mumbai.maticvigil.com', - displayName: 'Polygon Mumbai', - blockExplorer: 'https://mumbai.polygonscan.com/', - ticker: 'MATIC', - tickerName: 'Matic', - }, - }, - }) - - // TODO: refactor to app.ts - - const openloginAdapter = new OpenloginAdapter({ - adapterSettings: { - whiteLabel: { - appName: AppName, - logoDark: '/icon.png', //TODO:@Abhay import it don't use magic urls - defaultLanguage: 'en', - mode: 'dark', - }, - loginConfig: { - google: { - name: 'Google Login', - verifier: 'decenterai-google-auth', - typeOfLogin: 'google', - clientId: process.env.NEXT_PUBLIC_GOOGLE_CID, - }, - }, - }, - privateKeyProvider, - }) - web3auth.configureAdapter(openloginAdapter) - - setWeb3auth(web3auth) + const login = async () => { + const userInfo = await particle.auth.login({ + supportAuthTypes: 'email,google', + }) + console.log(userInfo) + const email = userInfo.email || userInfo.google_email + const name = + userInfo.name || userInfo.thirdparty_user_info + ? userInfo.thirdparty_user_info.user_info.name + : '' + const profileImage = + userInfo.avatar || userInfo.thirdparty_user_info + ? userInfo.thirdparty_user_info.user_info.picture + : '' - await web3auth.init() - if (web3auth.provider) { - setProvider(web3auth.provider) - } - } catch (error) { - console.error(error) + if (userInfo) { + setIsLoading(true) + const res = await get_user(email) + const user_data = { + email, + userName: generateFromEmail(email, 2), + name, + profileImage: generator.generateRandomAvatar(profileImage), } - } - init() - }, []) - - const handleEmailChange = (e: React.FormEvent) => { - e.preventDefault() - setEmail(e.currentTarget.value) - } - const login = async () => { - if (!web3auth) { - console.log('web3auth not initialized yet') - return - } - try { - const web3authProvider = await web3auth.connectTo(WALLET_ADAPTERS.OPENLOGIN, { - loginProvider: 'google', - }) - setProvider(web3authProvider) - } catch (error) { - console.log(error) - } - } - - const loginPassswordLess = async (e: React.FormEvent) => { - e.preventDefault() - try { - if (!web3auth) { - console.log('web3auth not initialized yet') - return + if (!res.data.user) { + await create_user(user_data) } - const web3authProvider = await web3auth.connectTo(WALLET_ADAPTERS.OPENLOGIN, { - loginProvider: 'email_passwordless', - extraLoginOptions: { - login_hint: email, // email to send the OTP to - }, - }) - setProvider(web3authProvider) - } catch (error) { - console.log(error) + setUser(user_data) + push('/dashboard') } } - const getUserInfo = async () => { - if (!web3auth) { - console.log('web3auth not initialized yet') - return - } - try { - const user = await web3auth.getUserInfo() - return user - } catch (error) { - console.log(error) - console.log('User not logged in') - return null - } - } + const checkStatus = async () => { + console.log('ok') + const info = particle.auth.getUserInfo() + console.log(info) + if (!info) return + const email = info.email || info.google_email - const logout = async () => { - if (!web3auth) { - console.log('web3auth not initialized yet') - return + const res = await get_user(email) + if (res.data.user) { + const user_data = { + email: res.data.user.email, + userName: res.data.user.userName, + name: res.data.user.name, + profileImage: res.data.user.profileImage, + } + setUser(user_data) + console.log(user_data) + setIsLoading(true) + push('/dashboard') } - await web3auth.logout() - setProvider(null) } - if (web3auth) { - getUserInfo().then(async (res) => { - console.log(res) - if (res !== null) { - const user_data = { - email: res.email, - userName: generateFromEmail(res.email, 2), - name: res.name, - profileImage: generator.generateRandomAvatar(res.name), - } - await create_user(user_data) - setUser(user_data) - push('/dashboard') - } - }) - } + useEffect(() => { + checkStatus() + return + }, []) return ( -
+
+ {isLoading && }
{
-
@@ -219,14 +131,14 @@ const Page = () => { or
-
-
+
*/} +
diff --git a/src/app/layout.tsx b/src/app/layout.tsx index b4937f4..9f13c9c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,9 +1,8 @@ import './globals.css' import { Inter } from 'next/font/google' -import '@rainbow-me/rainbowkit/styles.css' -import { Providers } from './providers' -import { ContextProvider } from './userContext' import { AppMetaData } from '@config/app' +import { ContextProvider } from './userContext' +import NetworkProvider from './NetworkProvider' const inter = Inter({ subsets: ['latin'] }) @@ -13,9 +12,9 @@ export default function RootLayout({ children }: { children: React.ReactNode }) return ( - - {children} - + + {children} + ) diff --git a/src/app/providers.tsx b/src/app/providers.tsx index b393ca8..5756db1 100644 --- a/src/app/providers.tsx +++ b/src/app/providers.tsx @@ -1,81 +1,81 @@ -'use client' +// 'use client' -import * as React from 'react' -import { - getDefaultWallets, - midnightTheme, - RainbowKitProvider, -} from '@rainbow-me/rainbowkit' +// import * as React from 'react' +// import { +// getDefaultWallets, +// midnightTheme, +// RainbowKitProvider, +// } from '@rainbow-me/rainbowkit' -import { configureChains, createConfig, WagmiConfig } from 'wagmi' -import { filecoinCalibration, mainnet, polygon } from 'wagmi/chains' -import { publicProvider } from 'wagmi/providers/public' -import { AppName } from '@config/app' -import { WagmiProjectId } from '@config/authConfig' +// import { configureChains, createConfig, WagmiConfig } from 'wagmi' +// import { filecoinCalibration, mainnet, polygon } from 'wagmi/chains' +// import { publicProvider } from 'wagmi/providers/public' +// import { AppName } from '@config/app' +// import { WagmiProjectId } from '@config/authConfig' -// const lilypad = { -// id: 1337, -// name: "Lilypad Lalechuza testnet", -// network: "Lilypad Lalechuza testnet", -// iconUrl: "", -// iconBackground: "#fff", -// nativeCurrency: { -// decimals: 18, -// name: "Lilypad Lalechuza testnet", -// symbol: "ETH", -// }, -// rpcUrls: { -// public: { http: ["http://testnet.lilypadnetwork.org:8545"] }, -// default: { http: ["http://testnet.lilypadnetwork.org:8545"] }, -// }, -// // blockExplorers: { -// // default: { name: "SnowTrace", url: "https://snowtrace.io" }, -// // etherscan: { name: "SnowTrace", url: "https://snowtrace.io" }, -// // }, -// // contracts: { -// // multicall3: { -// // address: "0xca11bde05977b3631167028862be2a173976ca11", -// // blockCreated: 11_907_934, -// // }, -// // }, -// testnet: true, -// }; +// // const lilypad = { +// // id: 1337, +// // name: "Lilypad Lalechuza testnet", +// // network: "Lilypad Lalechuza testnet", +// // iconUrl: "", +// // iconBackground: "#fff", +// // nativeCurrency: { +// // decimals: 18, +// // name: "Lilypad Lalechuza testnet", +// // symbol: "ETH", +// // }, +// // rpcUrls: { +// // public: { http: ["http://testnet.lilypadnetwork.org:8545"] }, +// // default: { http: ["http://testnet.lilypadnetwork.org:8545"] }, +// // }, +// // // blockExplorers: { +// // // default: { name: "SnowTrace", url: "https://snowtrace.io" }, +// // // etherscan: { name: "SnowTrace", url: "https://snowtrace.io" }, +// // // }, +// // // contracts: { +// // // multicall3: { +// // // address: "0xca11bde05977b3631167028862be2a173976ca11", +// // // blockCreated: 11_907_934, +// // // }, +// // // }, +// // testnet: true, +// // }; -const { chains, publicClient } = configureChains( - [mainnet, polygon, filecoinCalibration], - [publicProvider()], -) +// const { chains, publicClient } = configureChains( +// [mainnet, polygon, filecoinCalibration], +// [publicProvider()], +// ) -const { connectors } = getDefaultWallets({ - appName: AppName, - projectId: WagmiProjectId, - chains, -}) +// const { connectors } = getDefaultWallets({ +// appName: AppName, +// projectId: WagmiProjectId, +// chains, +// }) -const demoAppInfo = { - appName: AppName, -} +// const demoAppInfo = { +// appName: AppName, +// } -const wagmiConfig = createConfig({ - autoConnect: true, - connectors, - publicClient, -}) +// const wagmiConfig = createConfig({ +// autoConnect: true, +// connectors, +// publicClient, +// }) -export function Providers({ children }) { - const [mounted, setMounted] = React.useState(false) - React.useEffect(() => setMounted(true), []) - return ( - - - {mounted && children} - - - ) -} +// export function Providers({ children }) { +// const [mounted, setMounted] = React.useState(false) +// React.useEffect(() => setMounted(true), []) +// return ( +// +// +// {mounted && children} +// +// +// ) +// } diff --git a/src/app/test/page.jsx b/src/app/test/page.jsx deleted file mode 100644 index 90548da..0000000 --- a/src/app/test/page.jsx +++ /dev/null @@ -1,13 +0,0 @@ -'use client' -import React from 'react' -import UploadFile from '../components/fvm/UploadFile' - -const test = () => { - const parentCallback = (hash) => { - console.log(hash) - } - const extractFile = async (e) => {} - return -} - -export default test diff --git a/src/lib/particle.ts b/src/lib/particle.ts index 816eff1..94d9f3b 100644 --- a/src/lib/particle.ts +++ b/src/lib/particle.ts @@ -1,22 +1,22 @@ import { ParticleNetwork, WalletEntryPosition } from '@particle-network/auth' import { ParticleProvider } from '@particle-network/provider' // import { SolanaWallet } from '@particle-network/solana-wallet' -import { Ethereum } from '@particle-network/chains' +import { Polygon, PolygonMumbai, EthereumSepolia } from '@particle-network/chains' const particle = new ParticleNetwork({ - projectId: `${process.env.NEXT_PUBLIC_PROJECT_ID}`, - clientKey: `${process.env.NEXT_PUBLIC_CLIENT_KEY}`, - appId: `${process.env.NEXT_PUBLIC_APP_ID}`, - chainName: Ethereum.name, //optional: current chain name, default Ethereum. - chainId: Ethereum.id, //optional: current chain id, default 1. + projectId: `${process.env.NEXT_PUBLIC_PARTICLE_NETWORK_PROJECT_ID}`, + clientKey: `${process.env.NEXT_PUBLIC_PARTICLE_NETWORK_CLIENT_KEY}`, + appId: `${process.env.NEXT_PUBLIC_PARTICLE_NETWORK_APP_ID}`, + chainName: PolygonMumbai.name, //optional: current chain name, default Ethereum. + chainId: PolygonMumbai.id, //optional: current chain id, default 1. wallet: { //optional: by default, the wallet entry is displayed in the bottom right corner of the webpage. displayWalletEntry: true, //show wallet entry when connect particle. defaultWalletEntryPosition: WalletEntryPosition.BR, //wallet entry position uiMode: 'dark', //optional: light or dark, if not set, the default is the same as web auth. supportChains: [ - { id: 1, name: 'Ethereum' }, - { id: 5, name: 'Ethereum' }, + { id: EthereumSepolia.id, name: EthereumSepolia.name }, + { id: Polygon.id, name: Polygon.name }, ], // optional: web wallet support chains. customStyle: {}, //optional: custom wallet style }, @@ -39,5 +39,7 @@ const particleProvider = new ParticleProvider(particle.auth) //if you use ethers.js import { ethers } from 'ethers' -const ethersProvider = new ethers.JsonRpcProvider(`${particleProvider}`) // new ethers.Jproviders.Web3Provider(particleProvider, 'any') +const ethersProvider = new ethers.providers.Web3Provider(particleProvider, 'any') const ethersSigner = ethersProvider.getSigner() + +export default particle diff --git a/src/lib/prismaUtils.ts b/src/lib/prismaUtils.ts index e581593..1b82576 100644 --- a/src/lib/prismaUtils.ts +++ b/src/lib/prismaUtils.ts @@ -1,9 +1,10 @@ import { userType } from './global_types' +import axios from 'axios' export async function create_user(user: userType) { - const res = await check_user(user.email) - const count = await res.json() - if (count !== 0) { + const res = await get_user(user.email) + const currUser = await res.data.user + if (currUser) { console.log('User already exists in db') return } @@ -16,13 +17,9 @@ export async function create_user(user: userType) { }) } -async function check_user(email) { - const res = await fetch('/api/prisma/user_exists', { - method: 'POST', - headers: { - 'Content-type': 'application/json', - }, - body: JSON.stringify({ email: email }), +export async function get_user(email) { + const res = await axios.post('/api/prisma/user_exists', { + email, }) return res diff --git a/tsconfig.json b/tsconfig.json index 6d33c7a..7db8827 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -56,7 +56,8 @@ "src/abi/deal_client.js", "src/app/components/fvm/UploadFile.jsx", "src/app/demo/page.tsx", - "src/app/test/page.jsx", + "config/app.ts", + //"src/app/test/page.jsx", "test/jest-e2e.ts", "tsconfig.json", "tsconfig.node.json" diff --git a/utils/_web3auth.ts b/utils/_web3auth.ts deleted file mode 100644 index 3bef15e..0000000 --- a/utils/_web3auth.ts +++ /dev/null @@ -1,112 +0,0 @@ -import type { IProvider } from '@web3auth/base' -import { ethers } from 'ethers' - -export default class EthereumRpc { - private provider: IProvider - - constructor(provider: IProvider) { - this.provider = provider - } - - async getChainId(): Promise { - try { - const ethersProvider = new ethers.BrowserProvider(this.provider) - // Get the connected Chain's ID - const networkDetails = await ethersProvider.getNetwork() - - return networkDetails.chainId - } catch (error) { - return error - } - } - - async getAccounts(): Promise { - try { - const ethersProvider = new ethers.BrowserProvider(this.provider) - const signer = await ethersProvider.getSigner() - - // Get user's Ethereum public address - const address = signer.getAddress() - - return address - } catch (error) { - return error - } - } - - async getBalance(): Promise { - try { - const ethersProvider = new ethers.BrowserProvider(this.provider) - const signer = await ethersProvider.getSigner() - - // Get user's Ethereum public address - const address = signer.getAddress() - - // Get user's balance in ether - const balance = ethers.formatEther( - await ethersProvider.getBalance(address), // Balance is in wei - ) - - return balance - } catch (error) { - return error as string - } - } - - // async sendTransaction(): Promise { - // try { - // const ethersProvider = new ethers.BrowserProvider(this.provider); - // const signer = ethersProvider.getSigner(); - - // const destination = "0x40e1c367Eca34250cAF1bc8330E9EddfD403fC56"; - - // // Convert 1 ether to wei - // const amount = ethers.parseEther("0.001"); - - // // Submit transaction to the blockchain - // const tx = await ( - // await signer - // ).sendTransaction({ - // to: destination, - // value: amount, - // maxPriorityFeePerGas: "5000000000", // Max priority fee per gas - // maxFeePerGas: "6000000000000", // Max fee per gas - // }); - - // // Wait for transaction to be mined - // const receipt = await tx.wait(); - - // return receipt; - // } catch (error) { - // return error as string; - // } - // } - - // async signMessage() { - // try { - // const ethersProvider = new ethers.BrowserProvider(this.provider); - // const signer = ethersProvider.getSigner(); - - // const originalMessage = "YOUR_MESSAGE"; - - // // Sign the message - // const signedMessage = await (await signer).signMessage(originalMessage); - - // return signedMessage; - // } catch (error) { - // return error as string; - // } - // } - - // async getPrivateKey(): Promise { - // try { - // const privateKey = await this.provider.request({ - // method: "eth_private_key", - // }); - - // return privateKey; - // } catch (error) { - // return error as string; - // } - // } -}