From 8b93b1c7d7247ff307b0b5fcf905f1a362271a1e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 01:01:17 +0300 Subject: [PATCH 01/24] chore(deps): bump @sentry/browser from 7.92.0 to 7.119.1 in /apps/laboratory (#3016) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Enes --- apps/laboratory/package.json | 2 +- apps/laboratory/src/utils/SentryUtil.ts | 4 +- pnpm-lock.yaml | 335 ++++++++++++++++++++---- 3 files changed, 282 insertions(+), 59 deletions(-) diff --git a/apps/laboratory/package.json b/apps/laboratory/package.json index 521c0d8419..1c7ba9538b 100644 --- a/apps/laboratory/package.json +++ b/apps/laboratory/package.json @@ -73,7 +73,7 @@ "@chakra-ui/react": "2.8.2", "@emotion/react": "11.11.3", "@emotion/styled": "11.11.0", - "@sentry/browser": "7.92.0", + "@sentry/browser": "7.119.1", "@sentry/react": "7.92.0", "@solana/wallet-adapter-wallets": "0.19.32", "@solana/web3.js": "1.95.2", diff --git a/apps/laboratory/src/utils/SentryUtil.ts b/apps/laboratory/src/utils/SentryUtil.ts index 36805b91d3..34b4e44333 100644 --- a/apps/laboratory/src/utils/SentryUtil.ts +++ b/apps/laboratory/src/utils/SentryUtil.ts @@ -1,12 +1,12 @@ import * as Sentry from '@sentry/react' -import { BrowserTracing } from '@sentry/browser' +import { browserTracingIntegration } from '@sentry/browser' export function bootstrapSentry() { const dsn = process.env['NEXT_PUBLIC_SENTRY_DSN'] if (dsn) { Sentry.init({ dsn, - integrations: [new BrowserTracing()], + integrations: [browserTracingIntegration()], tracesSampleRate: 1.0 }) } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7f393cc89f..85712b0e53 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -111,7 +111,7 @@ importers: version: 2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4) wagmi: specifier: 2.12.9 - version: 2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.24.8(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) + version: 2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.24.8(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) zustand: specifier: 4.5.2 version: 4.5.2(@types/react@18.2.62)(react@18.2.0) @@ -232,14 +232,14 @@ importers: specifier: workspace:* version: link:../../packages/wallet '@sentry/browser': - specifier: 7.92.0 - version: 7.92.0 + specifier: 7.119.1 + version: 7.119.1 '@sentry/react': specifier: 7.92.0 version: 7.92.0(react@18.2.0) '@solana/wallet-adapter-wallets': specifier: 0.19.32 - version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) + version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) '@solana/web3.js': specifier: 1.95.2 version: 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -512,7 +512,7 @@ importers: version: 2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4) wagmi: specifier: 2.12.9 - version: 2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.56.2(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) + version: 2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.56.2(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) devDependencies: '@types/node': specifier: 20.11.5 @@ -564,7 +564,7 @@ importers: version: 2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4) wagmi: specifier: 2.12.9 - version: 2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.56.2(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) + version: 2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.56.2(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) devDependencies: '@types/node': specifier: 20.11.5 @@ -663,7 +663,7 @@ importers: version: 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-wallets': specifier: 0.19.32 - version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) + version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) '@tanstack/react-query': specifier: 5.24.8 version: 5.24.8(react@18.2.0) @@ -712,7 +712,7 @@ importers: version: 5.2.11(@types/node@20.11.5)(terser@5.33.0) wagmi: specifier: 2.12.9 - version: 2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.24.8(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) + version: 2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.24.8(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) devDependencies: '@types/react': specifier: 18.2.62 @@ -762,7 +762,7 @@ importers: version: 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-wallets': specifier: 0.19.32 - version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) vue: specifier: 3.4.3 version: 3.4.3(typescript@5.3.3) @@ -849,7 +849,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -907,7 +907,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -929,7 +929,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -1015,7 +1015,7 @@ importers: version: 18.2.0 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@vue/runtime-core': specifier: 3.4.3 version: 3.4.3 @@ -1094,7 +1094,7 @@ importers: version: 18.2.0 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -1149,7 +1149,7 @@ importers: version: 18.2.0 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@vue/runtime-core': specifier: 3.4.3 version: 3.4.3 @@ -1201,7 +1201,7 @@ importers: version: 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -1254,7 +1254,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -1276,7 +1276,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) viem: specifier: 2.21.4 version: 2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4) @@ -1412,7 +1412,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: '2' - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) packages/siwe: dependencies: @@ -1524,7 +1524,7 @@ importers: version: 5.1.5 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -1555,7 +1555,7 @@ importers: version: 1.5.5 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) eslint-plugin-lit: specifier: 1.11.0 version: 1.11.0(eslint@8.57.0) @@ -1635,7 +1635,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) jsdom: specifier: 24.1.0 version: 24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -5488,36 +5488,72 @@ packages: '@scure/bip39@1.4.0': resolution: {integrity: sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw==} + '@sentry-internal/feedback@7.119.1': + resolution: {integrity: sha512-EPyW6EKZmhKpw/OQUPRkTynXecZdYl4uhZwdZuGqnGMAzswPOgQvFrkwsOuPYvoMfXqCH7YuRqyJrox3uBOrTA==} + engines: {node: '>=12'} + '@sentry-internal/feedback@7.92.0': resolution: {integrity: sha512-/jEALRtVqboxB9kcK2tag8QCO6XANTlGBb9RV3oeGXJe0DDNJXRq6wVZbfgztXJRrfgx4XVDcNt1pRVoGGG++g==} engines: {node: '>=12'} + '@sentry-internal/replay-canvas@7.119.1': + resolution: {integrity: sha512-O/lrzENbMhP/UDr7LwmfOWTjD9PLNmdaCF408Wx8SDuj7Iwc+VasGfHg7fPH4Pdr4nJON6oh+UqoV4IoG05u+A==} + engines: {node: '>=12'} + + '@sentry-internal/tracing@7.119.1': + resolution: {integrity: sha512-cI0YraPd6qBwvUA3wQdPGTy8PzAoK0NZiaTN1LM3IczdPegehWOaEG5GVTnpGnTsmBAzn1xnBXNBhgiU4dgcrQ==} + engines: {node: '>=8'} + '@sentry-internal/tracing@7.92.0': resolution: {integrity: sha512-ur55vPcUUUWFUX4eVLNP71ohswK7ZZpleNZw9Y1GfLqyI+0ILQUwjtzqItJrdClvVsdRZJMRmDV40Hp9Lbb9mA==} engines: {node: '>=8'} + '@sentry/browser@7.119.1': + resolution: {integrity: sha512-aMwAnFU4iAPeLyZvqmOQaEDHt/Dkf8rpgYeJ0OEi50dmP6AjG+KIAMCXU7CYCCQDn70ITJo8QD5+KzCoZPYz0A==} + engines: {node: '>=8'} + '@sentry/browser@7.92.0': resolution: {integrity: sha512-loMr02/zQ38u8aQhYLtIBg0i5n3ps2e3GUXrt3CdsJQdkRYfa62gcrE7SzvoEpMVHTk7VOI4fWGht8cWw/1k3A==} engines: {node: '>=8'} + '@sentry/core@7.119.1': + resolution: {integrity: sha512-YUNnH7O7paVd+UmpArWCPH4Phlb5LwrkWVqzFWqL3xPyCcTSof2RL8UmvpkTjgYJjJ+NDfq5mPFkqv3aOEn5Sw==} + engines: {node: '>=8'} + '@sentry/core@7.92.0': resolution: {integrity: sha512-1Tly7YB2I1byI5xb0Cwrxs56Rhww+6mQ7m9P7rTmdC3/ijOzbEoohtYIUPwcooCEarpbEJe/tAayRx6BrH2UbQ==} engines: {node: '>=8'} + '@sentry/integrations@7.119.1': + resolution: {integrity: sha512-CGmLEPnaBqbUleVqrmGYjRjf5/OwjUXo57I9t0KKWViq81mWnYhaUhRZWFNoCNQHns+3+GPCOMvl0zlawt+evw==} + engines: {node: '>=8'} + '@sentry/react@7.92.0': resolution: {integrity: sha512-lTvrLuvxtGEZbkW6NHru03K6eyixKyBliwiLwO+k37FK7Ha8Bwat2m77weyizWCdQ6DKlVazJNppkNeAlACIvQ==} engines: {node: '>=8'} peerDependencies: react: 15.x || 16.x || 17.x || 18.x + '@sentry/replay@7.119.1': + resolution: {integrity: sha512-4da+ruMEipuAZf35Ybt2StBdV1S+oJbSVccGpnl9w6RoeQoloT4ztR6ML3UcFDTXeTPT1FnHWDCyOfST0O7XMw==} + engines: {node: '>=12'} + '@sentry/replay@7.92.0': resolution: {integrity: sha512-G1t9Uvc9cR8VpNkElwvHIMGzykjIKikb10n0tfVd3e+rBPMCCjCPWOduwG6jZYxcvCjTpqmJh6NSLXxL/Mt4JA==} engines: {node: '>=12'} + '@sentry/types@7.119.1': + resolution: {integrity: sha512-4G2mcZNnYzK3pa2PuTq+M2GcwBRY/yy1rF+HfZU+LAPZr98nzq2X3+mJHNJoobeHRkvVh7YZMPi4ogXiIS5VNQ==} + engines: {node: '>=8'} + '@sentry/types@7.92.0': resolution: {integrity: sha512-APmSOuZuoRGpbPpPeYIbMSplPjiWNLZRQa73QiXuTflW4Tu/ItDlU8hOa2+A6JKVkJCuD2EN6yUrxDGSMyNXeg==} engines: {node: '>=8'} + '@sentry/utils@7.119.1': + resolution: {integrity: sha512-ju/Cvyeu/vkfC5/XBV30UNet5kLEicZmXSyuLwZu95hEbL+foPdxN+re7pCI/eNqfe3B2vz7lvz5afLVOlQ2Hg==} + engines: {node: '>=8'} + '@sentry/utils@7.92.0': resolution: {integrity: sha512-3nEfrQ1z28b/2zgFGANPh5yMVtgwXmrasZxTvKbrAj+KWJpjrJHrIR84r9W277J44NMeZ5RhRW2uoDmuBslPnA==} engines: {node: '>=8'} @@ -9175,6 +9211,9 @@ packages: engines: {node: '>=16.x'} hasBin: true + immediate@3.0.6: + resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==} + import-fresh@2.0.0: resolution: {integrity: sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg==} engines: {node: '>=4'} @@ -9756,6 +9795,9 @@ packages: li@1.3.0: resolution: {integrity: sha512-z34TU6GlMram52Tss5mt1m//ifRIpKH5Dqm7yUVOdHI+BQCs9qGPHFaCUTIzsWX7edN30aa2WrPwR7IO10FHaw==} + lie@3.1.1: + resolution: {integrity: sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==} + lighthouse-logger@1.4.2: resolution: {integrity: sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==} @@ -9803,6 +9845,9 @@ packages: resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==} engines: {node: '>=6'} + localforage@1.10.0: + resolution: {integrity: sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==} + locate-path@3.0.0: resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} engines: {node: '>=6'} @@ -17748,18 +17793,48 @@ snapshots: '@noble/hashes': 1.5.0 '@scure/base': 1.1.9 + '@sentry-internal/feedback@7.119.1': + dependencies: + '@sentry/core': 7.119.1 + '@sentry/types': 7.119.1 + '@sentry/utils': 7.119.1 + '@sentry-internal/feedback@7.92.0': dependencies: '@sentry/core': 7.92.0 '@sentry/types': 7.92.0 '@sentry/utils': 7.92.0 + '@sentry-internal/replay-canvas@7.119.1': + dependencies: + '@sentry/core': 7.119.1 + '@sentry/replay': 7.119.1 + '@sentry/types': 7.119.1 + '@sentry/utils': 7.119.1 + + '@sentry-internal/tracing@7.119.1': + dependencies: + '@sentry/core': 7.119.1 + '@sentry/types': 7.119.1 + '@sentry/utils': 7.119.1 + '@sentry-internal/tracing@7.92.0': dependencies: '@sentry/core': 7.92.0 '@sentry/types': 7.92.0 '@sentry/utils': 7.92.0 + '@sentry/browser@7.119.1': + dependencies: + '@sentry-internal/feedback': 7.119.1 + '@sentry-internal/replay-canvas': 7.119.1 + '@sentry-internal/tracing': 7.119.1 + '@sentry/core': 7.119.1 + '@sentry/integrations': 7.119.1 + '@sentry/replay': 7.119.1 + '@sentry/types': 7.119.1 + '@sentry/utils': 7.119.1 + '@sentry/browser@7.92.0': dependencies: '@sentry-internal/feedback': 7.92.0 @@ -17769,11 +17844,23 @@ snapshots: '@sentry/types': 7.92.0 '@sentry/utils': 7.92.0 + '@sentry/core@7.119.1': + dependencies: + '@sentry/types': 7.119.1 + '@sentry/utils': 7.119.1 + '@sentry/core@7.92.0': dependencies: '@sentry/types': 7.92.0 '@sentry/utils': 7.92.0 + '@sentry/integrations@7.119.1': + dependencies: + '@sentry/core': 7.119.1 + '@sentry/types': 7.119.1 + '@sentry/utils': 7.119.1 + localforage: 1.10.0 + '@sentry/react@7.92.0(react@18.2.0)': dependencies: '@sentry/browser': 7.92.0 @@ -17782,6 +17869,13 @@ snapshots: hoist-non-react-statics: 3.3.2 react: 18.2.0 + '@sentry/replay@7.119.1': + dependencies: + '@sentry-internal/tracing': 7.119.1 + '@sentry/core': 7.119.1 + '@sentry/types': 7.119.1 + '@sentry/utils': 7.119.1 + '@sentry/replay@7.92.0': dependencies: '@sentry-internal/tracing': 7.92.0 @@ -17789,8 +17883,14 @@ snapshots: '@sentry/types': 7.92.0 '@sentry/utils': 7.92.0 + '@sentry/types@7.119.1': {} + '@sentry/types@7.92.0': {} + '@sentry/utils@7.119.1': + dependencies: + '@sentry/types': 7.119.1 + '@sentry/utils@7.92.0': dependencies: '@sentry/types': 7.92.0 @@ -18264,11 +18364,11 @@ snapshots: '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-torus@0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@solana/wallet-adapter-torus@0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@toruslabs/solana-embed': 0.3.4(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@toruslabs/solana-embed': 0.3.4(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(bufferutil@4.0.8)(utf-8-validate@5.0.10) assert: 2.1.0 crypto-browserify: 3.12.0 process: 0.11.10 @@ -18368,7 +18468,7 @@ snapshots: - uWebSockets.js - utf-8-validate - '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10)': + '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@solana/wallet-adapter-alpha': 0.1.10(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-avana': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -18400,7 +18500,7 @@ snapshots: '@solana/wallet-adapter-spot': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-tokenary': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-tokenpocket': 0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) '@solana/wallet-adapter-trust': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-unsafe-burner': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -18437,7 +18537,7 @@ snapshots: - uWebSockets.js - utf-8-validate - '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10)': + '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@solana/wallet-adapter-alpha': 0.1.10(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-avana': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -18469,7 +18569,7 @@ snapshots: '@solana/wallet-adapter-spot': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-tokenary': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-tokenpocket': 0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) '@solana/wallet-adapter-trust': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-unsafe-burner': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -18506,7 +18606,7 @@ snapshots: - uWebSockets.js - utf-8-validate - '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@solana/wallet-adapter-alpha': 0.1.10(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-avana': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -18538,7 +18638,7 @@ snapshots: '@solana/wallet-adapter-spot': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-tokenary': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-tokenpocket': 0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) '@solana/wallet-adapter-trust': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-unsafe-burner': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -19371,12 +19471,12 @@ snapshots: '@tootallnate/once@2.0.0': {} - '@toruslabs/base-controllers@2.9.0(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@toruslabs/base-controllers@2.9.0(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.25.6 '@ethereumjs/util': 8.1.0 - '@toruslabs/broadcast-channel': 6.3.1(@sentry/types@7.92.0)(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@toruslabs/http-helpers': 3.4.0(@babel/runtime@7.25.6)(@sentry/types@7.92.0) + '@toruslabs/broadcast-channel': 6.3.1(@sentry/types@7.119.1)(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@toruslabs/http-helpers': 3.4.0(@babel/runtime@7.25.6)(@sentry/types@7.119.1) '@toruslabs/openlogin-jrpc': 4.7.2(@babel/runtime@7.25.6) async-mutex: 0.4.1 bignumber.js: 9.1.2 @@ -19391,11 +19491,11 @@ snapshots: - supports-color - utf-8-validate - '@toruslabs/broadcast-channel@6.3.1(@sentry/types@7.92.0)(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@toruslabs/broadcast-channel@6.3.1(@sentry/types@7.119.1)(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.25.6 '@toruslabs/eccrypto': 2.2.1 - '@toruslabs/metadata-helpers': 3.2.0(@babel/runtime@7.25.6)(@sentry/types@7.92.0) + '@toruslabs/metadata-helpers': 3.2.0(@babel/runtime@7.25.6)(@sentry/types@7.119.1) bowser: 2.11.0 loglevel: 1.9.2 oblivious-set: 1.1.1 @@ -19411,19 +19511,19 @@ snapshots: dependencies: elliptic: 6.5.7 - '@toruslabs/http-helpers@3.4.0(@babel/runtime@7.25.6)(@sentry/types@7.92.0)': + '@toruslabs/http-helpers@3.4.0(@babel/runtime@7.25.6)(@sentry/types@7.119.1)': dependencies: '@babel/runtime': 7.25.6 lodash.merge: 4.6.2 loglevel: 1.9.2 optionalDependencies: - '@sentry/types': 7.92.0 + '@sentry/types': 7.119.1 - '@toruslabs/metadata-helpers@3.2.0(@babel/runtime@7.25.6)(@sentry/types@7.92.0)': + '@toruslabs/metadata-helpers@3.2.0(@babel/runtime@7.25.6)(@sentry/types@7.119.1)': dependencies: '@babel/runtime': 7.25.6 '@toruslabs/eccrypto': 2.2.1 - '@toruslabs/http-helpers': 3.4.0(@babel/runtime@7.25.6)(@sentry/types@7.92.0) + '@toruslabs/http-helpers': 3.4.0(@babel/runtime@7.25.6)(@sentry/types@7.119.1) elliptic: 6.5.7 ethereum-cryptography: 2.2.1 json-stable-stringify: 1.1.1 @@ -19468,12 +19568,12 @@ snapshots: '@babel/runtime': 7.25.6 base64url: 3.0.1 - '@toruslabs/solana-embed@0.3.4(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@toruslabs/solana-embed@0.3.4(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.25.6 '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@toruslabs/base-controllers': 2.9.0(@babel/runtime@7.25.6)(@sentry/types@7.92.0)(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@toruslabs/http-helpers': 3.4.0(@babel/runtime@7.25.6)(@sentry/types@7.92.0) + '@toruslabs/base-controllers': 2.9.0(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@toruslabs/http-helpers': 3.4.0(@babel/runtime@7.25.6)(@sentry/types@7.119.1) '@toruslabs/openlogin-jrpc': 3.2.0(@babel/runtime@7.25.6) eth-rpc-errors: 4.0.3 fast-deep-equal: 3.1.3 @@ -20334,7 +20434,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0))': + '@vitest/coverage-v8@2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -20520,6 +20620,45 @@ snapshots: - utf-8-validate - zod + '@wagmi/connectors@5.1.9(@types/react@18.2.62)(@wagmi/core@2.13.4(@tanstack/query-core@5.56.2)(@types/react@18.2.62)(react@18.2.0)(typescript@5.3.3)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4)))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4)': + dependencies: + '@coinbase/wallet-sdk': 4.0.4 + '@metamask/sdk': 0.28.2(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.0)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(rollup@4.22.4)(utf-8-validate@5.0.10) + '@safe-global/safe-apps-provider': 0.18.3(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4) + '@safe-global/safe-apps-sdk': 9.1.0(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4) + '@wagmi/core': 2.13.4(@tanstack/query-core@5.56.2)(@types/react@18.2.62)(react@18.2.0)(typescript@5.3.3)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4)) + '@walletconnect/ethereum-provider': 2.15.3(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(utf-8-validate@5.0.10) + '@walletconnect/modal': 2.6.2(@types/react@18.2.62)(react@18.2.0) + cbw-sdk: '@coinbase/wallet-sdk@3.9.3' + viem: 2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4) + optionalDependencies: + typescript: 5.3.3 + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' + - '@react-native-async-storage/async-storage' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' + - bufferutil + - encoding + - ioredis + - react + - react-dom + - react-native + - rollup + - supports-color + - uWebSockets.js + - utf-8-validate + - zod + '@wagmi/core@2.13.4(@tanstack/query-core@5.56.2)(@types/react@18.2.0)(react@18.2.0)(typescript@5.3.3)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))': dependencies: eventemitter3: 5.0.1 @@ -22956,8 +23095,8 @@ snapshots: '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@5.3.3) eslint: 8.56.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(eslint@8.56.0))(eslint@8.56.0) - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) + eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) eslint-plugin-jsx-a11y: 6.10.0(eslint@8.56.0) eslint-plugin-react: 7.36.1(eslint@8.56.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.56.0) @@ -22976,7 +23115,7 @@ snapshots: eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.10.0(eslint@8.57.0) eslint-plugin-react: 7.36.1(eslint@8.57.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.57.0) @@ -22999,19 +23138,19 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(eslint@8.56.0))(eslint@8.56.0): + eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0): dependencies: '@nolyfill/is-core-module': 1.0.39 debug: 4.3.7 enhanced-resolve: 5.17.1 eslint: 8.56.0 - eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) fast-glob: 3.3.2 get-tsconfig: 4.8.1 is-bun-module: 1.2.1 is-glob: 4.0.3 optionalDependencies: - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) transitivePeerDependencies: - '@typescript-eslint/parser' - eslint-import-resolver-node @@ -23030,21 +23169,21 @@ snapshots: is-bun-module: 1.2.1 is-glob: 4.0.3 optionalDependencies: - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) transitivePeerDependencies: - '@typescript-eslint/parser' - eslint-import-resolver-node - eslint-import-resolver-webpack - supports-color - eslint-module-utils@2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0): + eslint-module-utils@2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0): dependencies: debug: 3.2.7 optionalDependencies: '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@5.3.3) eslint: 8.56.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(eslint@8.56.0))(eslint@8.56.0) + eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0) transitivePeerDependencies: - supports-color @@ -23059,7 +23198,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0): + eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -23070,7 +23209,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.56.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -23087,7 +23226,7 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0): + eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -23561,7 +23700,7 @@ snapshots: extension-port-stream@3.0.0: dependencies: - readable-stream: 3.6.2 + readable-stream: 4.5.2 webextension-polyfill: 0.10.0 external-editor@3.1.0: @@ -24206,6 +24345,8 @@ snapshots: dependencies: queue: 6.0.2 + immediate@3.0.6: {} + import-fresh@2.0.0: dependencies: caller-path: 2.0.0 @@ -24851,6 +24992,10 @@ snapshots: li@1.3.0: {} + lie@3.1.1: + dependencies: + immediate: 3.0.6 + lighthouse-logger@1.4.2: dependencies: debug: 2.6.9 @@ -24930,6 +25075,10 @@ snapshots: pify: 4.0.1 strip-bom: 3.0.0 + localforage@1.10.0: + dependencies: + lie: 3.1.1 + locate-path@3.0.0: dependencies: p-locate: 3.0.0 @@ -28180,6 +28329,43 @@ snapshots: - utf-8-validate - zod + wagmi@2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.24.8(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4): + dependencies: + '@tanstack/react-query': 5.24.8(react@18.2.0) + '@wagmi/connectors': 5.1.9(@types/react@18.2.62)(@wagmi/core@2.13.4(@tanstack/query-core@5.56.2)(@types/react@18.2.62)(react@18.2.0)(typescript@5.3.3)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4)))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) + '@wagmi/core': 2.13.4(@tanstack/query-core@5.56.2)(@types/react@18.2.62)(react@18.2.0)(typescript@5.3.3)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4)) + react: 18.2.0 + use-sync-external-store: 1.2.0(react@18.2.0) + viem: 2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4) + optionalDependencies: + typescript: 5.3.3 + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' + - '@react-native-async-storage/async-storage' + - '@tanstack/query-core' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' + - bufferutil + - encoding + - immer + - ioredis + - react-dom + - react-native + - rollup + - supports-color + - uWebSockets.js + - utf-8-validate + - zod + wagmi@2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.56.2(react@18.2.0))(@types/react@18.2.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.0)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4): dependencies: '@tanstack/react-query': 5.56.2(react@18.2.0) @@ -28254,6 +28440,43 @@ snapshots: - utf-8-validate - zod + wagmi@2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.56.2(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4): + dependencies: + '@tanstack/react-query': 5.56.2(react@18.2.0) + '@wagmi/connectors': 5.1.9(@types/react@18.2.62)(@wagmi/core@2.13.4(@tanstack/query-core@5.56.2)(@types/react@18.2.62)(react@18.2.0)(typescript@5.3.3)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4)))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) + '@wagmi/core': 2.13.4(@tanstack/query-core@5.56.2)(@types/react@18.2.62)(react@18.2.0)(typescript@5.3.3)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4)) + react: 18.2.0 + use-sync-external-store: 1.2.0(react@18.2.0) + viem: 2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4) + optionalDependencies: + typescript: 5.3.3 + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' + - '@react-native-async-storage/async-storage' + - '@tanstack/query-core' + - '@types/react' + - '@upstash/redis' + - '@vercel/kv' + - bufferutil + - encoding + - immer + - ioredis + - react-dom + - react-native + - rollup + - supports-color + - uWebSockets.js + - utf-8-validate + - zod + walker@1.0.8: dependencies: makeerror: 1.0.12 From e1b8720121fd49985fe488e401600482ce691571 Mon Sep 17 00:00:00 2001 From: MK <53529533+magiziz@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:06:28 +0100 Subject: [PATCH 02/24] fix: siwe modal not opening for some wallets (#3012) --- .changeset/giant-moons-guess.md | 26 +++++++++++++++++ .../scaffold-ui/src/modal/w3m-modal/index.ts | 28 +++++++++++-------- .../src/views/w3m-connecting-wc-view/index.ts | 4 ++- 3 files changed, 46 insertions(+), 12 deletions(-) create mode 100644 .changeset/giant-moons-guess.md diff --git a/.changeset/giant-moons-guess.md b/.changeset/giant-moons-guess.md new file mode 100644 index 0000000000..40bfaf77cd --- /dev/null +++ b/.changeset/giant-moons-guess.md @@ -0,0 +1,26 @@ +--- +'@reown/appkit-scaffold-ui': patch +'@apps/laboratory': patch +'@apps/demo': patch +'@apps/gallery': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-polkadot': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-ethers': patch +'@reown/appkit-ethers5': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-siwe': patch +'@reown/appkit-solana': patch +'@reown/appkit-ui': patch +'@reown/appkit-wagmi': patch +'@reown/appkit-wallet': patch +--- + +Fixed an issue where SIWE modal wasn't showing up for some mobile wallets. diff --git a/packages/scaffold-ui/src/modal/w3m-modal/index.ts b/packages/scaffold-ui/src/modal/w3m-modal/index.ts index eedb32756d..44d733f416 100644 --- a/packages/scaffold-ui/src/modal/w3m-modal/index.ts +++ b/packages/scaffold-ui/src/modal/w3m-modal/index.ts @@ -189,31 +189,37 @@ export class W3mModal extends LitElement { } private async onNewAddress(caipAddress?: CaipAddress) { - const prevConnected = this.caipAddress - ? CoreHelperUtil.getPlainAddress(this.caipAddress) + const prevCaipAddress = this.caipAddress + const prevConnected = prevCaipAddress + ? CoreHelperUtil.getPlainAddress(prevCaipAddress) : undefined const nextConnected = caipAddress ? CoreHelperUtil.getPlainAddress(caipAddress) : undefined const isSameAddress = prevConnected === nextConnected + this.caipAddress = caipAddress + if (nextConnected && !isSameAddress && this.isSiweEnabled) { - const { SIWEController } = await import('@reown/appkit-siwe') - const signed = AccountController.state.siweStatus === 'success' + try { + const { SIWEController } = await import('@reown/appkit-siwe') + const signed = AccountController.state.siweStatus === 'success' - if (!prevConnected && nextConnected) { - this.onSiweNavigation() - } else if (signed && prevConnected && nextConnected && prevConnected !== nextConnected) { - if (SIWEController.state._client?.options.signOutOnAccountChange) { - await SIWEController.signOut() + if (!prevConnected && nextConnected) { this.onSiweNavigation() + } else if (signed && prevConnected && nextConnected && prevConnected !== nextConnected) { + if (SIWEController.state._client?.options.signOutOnAccountChange) { + await SIWEController.signOut() + this.onSiweNavigation() + } } + } catch (err) { + this.caipAddress = prevCaipAddress + throw err } } if (!nextConnected) { ModalController.close() } - - this.caipAddress = caipAddress } private async onNewNetwork(nextCaipNetwork: CaipNetwork | undefined) { diff --git a/packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts b/packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts index 9434ee9006..c49ead8692 100644 --- a/packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts +++ b/packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts @@ -28,6 +28,8 @@ export class W3mConnectingWcView extends LitElement { @state() private platforms: Platform[] = [] + @state() private isSiweEnabled = OptionsController.state.isSiweEnabled + public constructor() { super() this.determinePlatforms() @@ -72,7 +74,7 @@ export class W3mConnectingWcView extends LitElement { OptionsController.state.hasMultipleAddresses ) { RouterController.push('SelectAddresses') - } else { + } else if (!this.isSiweEnabled) { ModalController.close() } } From c5a21078a4b04e0518015c3600b16851b6d5318b Mon Sep 17 00:00:00 2001 From: Enes Date: Mon, 7 Oct 2024 19:25:08 +0300 Subject: [PATCH 03/24] refactor: handle viem chains in wagmi adapter constructor (#2955) Co-authored-by: tomiir --- .changeset/curly-peas-decide.md | 40 ++++ .../Ethers/Ethers5TransactionTest.tsx | 2 +- .../Ethers/Ethers5WriteContractTest.tsx | 4 +- .../Ethers/EthersTransactionTest.tsx | 2 +- .../Ethers/EthersWriteContractTest.tsx | 4 +- .../src/components/Solana/SolanaTests.tsx | 5 +- .../Solana/SolanaWriteContractTest.tsx | 2 +- .../UPA/UpaSolanaSignMessageTest.tsx | 4 +- apps/laboratory/src/pages/library/wagmi.tsx | 2 +- apps/laboratory/src/utils/ConstantsUtil.ts | 30 +-- apps/laboratory/src/utils/EthersConstants.ts | 4 +- apps/laboratory/src/utils/SiweUtils.ts | 2 +- apps/laboratory/src/utils/SolanaConstants.ts | 4 +- apps/laboratory/tests/email.spec.ts | 2 +- .../tests/multichain/multichain-basic.spec.ts | 2 +- .../tests/shared/constants/index.ts | 2 +- .../tests/shared/validators/ModalValidator.ts | 10 +- apps/laboratory/tests/siwe.spec.ts | 2 +- .../next-wagmi-app-router/src/config/index.ts | 4 +- .../src/context/index.tsx | 6 +- .../src/context/index.tsx | 4 +- examples/next-wagmi/src/config/index.ts | 15 +- examples/react-wagmi/src/App.tsx | 4 +- packages/adapters/ethers/src/client.ts | 89 ++++---- .../adapters/ethers/src/tests/client.test.ts | 68 +++--- packages/adapters/ethers5/src/client.ts | 91 ++++---- .../adapters/ethers5/src/tests/client.test.ts | 77 +++---- packages/adapters/solana/src/client.ts | 45 ++-- .../solana/src/providers/AuthProvider.ts | 4 +- .../src/providers/CoinbaseWalletProvider.ts | 2 +- .../src/providers/WalletConnectProvider.ts | 10 +- .../src/providers/WalletStandardProvider.ts | 2 +- .../solana/src/tests/AuthProvider.test.ts | 6 +- .../src/tests/WalletConnectProvider.test.ts | 24 +-- .../adapters/solana/src/tests/client.test.ts | 30 ++- .../src/tests/mocks/UniversalProvider.ts | 2 +- .../src/tests/mocks/W3mFrameProvider.ts | 2 +- .../solana/src/tests/mocks/WalletStandard.ts | 4 +- packages/adapters/wagmi/src/client.ts | 122 +++++------ .../wagmi/src/connectors/AuthConnector.ts | 1 + .../src/connectors/UniversalConnector.ts | 50 +++-- packages/adapters/wagmi/src/index.ts | 3 - .../adapters/wagmi/src/tests/client.test.ts | 65 +++--- .../wagmi/src/tests/mocks/adapter.mock.ts | 26 ++- packages/adapters/wagmi/src/utils/helpers.ts | 33 +-- packages/appkit-utils/exports/index.ts | 1 + packages/appkit-utils/src/CaipNetworkUtil.ts | 174 +++++++++++++++ .../src/ethers/EthersHelpersUtil.ts | 28 +-- .../src/solana/SolanaConstantsUtil.ts | 23 +- .../src/solana/SolanaHelpersUtils.ts | 27 +-- .../tests/EthersHelpersUtil.test.ts | 30 --- .../tests/SolanaHelpersUtil.test.ts | 67 +++--- packages/appkit/package.json | 7 +- packages/appkit/src/client.ts | 73 +++++-- packages/appkit/src/library/react/index.ts | 3 + packages/appkit/src/library/vue/index.ts | 27 +-- packages/appkit/src/networks/index.ts | 199 +----------------- packages/appkit/src/networks/solana/index.ts | 3 + packages/appkit/src/networks/solana/solana.ts | 15 ++ .../src/networks/solana/solanaDevnet.ts | 15 ++ .../src/networks/solana/solanaTestnet.ts | 15 ++ packages/appkit/src/networks/utils.ts | 14 ++ .../src/tests/mocks/UniversalProvider.ts | 4 +- .../src/tests/universal-adapter.test.ts | 30 ++- .../src/tests/utils/HelpersUtil.test.ts | 59 ++++-- .../appkit/src/universal-adapter/client.ts | 84 ++++---- packages/appkit/src/utils/HelpersUtil.ts | 11 +- packages/appkit/src/utils/TypesUtil.ts | 11 +- packages/cdn/package.json | 2 +- packages/common/index.ts | 1 - packages/common/package.json | 7 +- packages/common/src/utils/CaipNetworksUtil.ts | 75 ------- packages/common/src/utils/TypeUtil.ts | 37 ++-- packages/core/exports/react.ts | 11 +- packages/core/exports/vue.ts | 58 +++++ packages/core/package.json | 21 +- .../core/src/controllers/AccountController.ts | 2 +- .../core/src/controllers/ApiController.ts | 10 +- .../core/src/controllers/ChainController.ts | 31 ++- .../src/controllers/ConnectionController.ts | 5 +- .../core/src/controllers/EnsController.ts | 3 +- .../core/src/controllers/SendController.ts | 8 +- .../core/src/controllers/SwapController.ts | 8 +- .../src/controllers/TransactionsController.ts | 4 +- packages/core/src/utils/AssetUtil.ts | 8 +- packages/core/src/utils/CoreHelperUtil.ts | 2 +- packages/core/src/utils/StorageUtil.ts | 4 +- packages/core/src/utils/SwapApiUtil.ts | 10 +- .../tests/controllers/ApiController.test.ts | 169 ++++++++++----- .../tests/controllers/ChainController.test.ts | 96 ++++++--- .../tests/controllers/EnsController.test.ts | 36 +++- .../tests/controllers/SwapController.test.ts | 17 +- .../TransactionsController.test.ts | 3 +- packages/core/tests/hooks/react.test.ts | 22 +- packages/core/tests/utils/AssetUtil.test.ts | 14 +- packages/core/tests/utils/SwapApiUtil.test.ts | 51 +++-- .../src/modal/w3m-account-button/index.ts | 4 +- .../scaffold-ui/src/modal/w3m-modal/index.ts | 4 +- .../src/modal/w3m-network-button/index.ts | 4 +- .../index.ts | 9 +- .../src/partials/w3m-activity-list/index.ts | 2 +- .../w3m-onramp-provider-item/index.ts | 4 +- .../views/w3m-account-settings-view/index.ts | 2 +- .../src/views/w3m-networks-view/index.ts | 2 +- .../src/views/w3m-swap-view/index.ts | 6 +- .../views/w3m-switch-address-view/index.ts | 18 +- .../views/w3m-unsupported-chain-view/index.ts | 8 +- .../views/w3m-wallet-receive-view/index.ts | 2 +- .../index.ts | 2 +- .../views/w3m-connecting-siwe-view/index.ts | 8 +- packages/siwe/src/client.ts | 4 +- packages/solana/exports/chains.ts | 1 - .../src/composites/wui-list-account/index.ts | 18 +- packages/wagmi/package.json | 4 +- packages/wagmi/tests/mocks/adapter.mock.ts | 23 +- pnpm-lock.yaml | 21 +- 116 files changed, 1527 insertions(+), 1166 deletions(-) create mode 100644 .changeset/curly-peas-decide.md create mode 100644 packages/appkit-utils/src/CaipNetworkUtil.ts create mode 100644 packages/appkit/src/networks/solana/index.ts create mode 100644 packages/appkit/src/networks/solana/solana.ts create mode 100644 packages/appkit/src/networks/solana/solanaDevnet.ts create mode 100644 packages/appkit/src/networks/solana/solanaTestnet.ts create mode 100644 packages/appkit/src/networks/utils.ts delete mode 100644 packages/common/src/utils/CaipNetworksUtil.ts create mode 100644 packages/core/exports/vue.ts delete mode 100644 packages/solana/exports/chains.ts diff --git a/.changeset/curly-peas-decide.md b/.changeset/curly-peas-decide.md new file mode 100644 index 0000000000..9bb5dc2d6e --- /dev/null +++ b/.changeset/curly-peas-decide.md @@ -0,0 +1,40 @@ +--- +'@examples/next-wagmi-pages-router': minor +'@examples/next-wagmi-app-router': minor +'@reown/appkit-adapter-ethers5': minor +'@reown/appkit-adapter-ethers': minor +'@reown/appkit-adapter-solana': minor +'@reown/appkit-adapter-wagmi': minor +'@reown/appkit-utils': minor +'@examples/react-wagmi': minor +'@reown/appkit-scaffold-ui': minor +'@examples/next-wagmi': minor +'@apps/laboratory': minor +'@reown/appkit': minor +'@reown/appkit-common': minor +'@reown/appkit-solana': minor +'@reown/appkit-wagmi': minor +'@reown/appkit-core': minor +'@reown/appkit-siwe': minor +'@reown/appkit-cdn': minor +'@reown/appkit-ui': minor +'@apps/demo': minor +'@apps/gallery': minor +'@examples/html-ethers': minor +'@examples/html-ethers5': minor +'@examples/html-wagmi': minor +'@examples/next-ethers': minor +'@examples/react-ethers': minor +'@examples/react-ethers5': minor +'@examples/react-solana': minor +'@examples/vue-ethers5': minor +'@examples/vue-solana': minor +'@examples/vue-wagmi': minor +'@reown/appkit-adapter-polkadot': minor +'@reown/appkit-ethers': minor +'@reown/appkit-ethers5': minor +'@reown/appkit-polyfills': minor +'@reown/appkit-wallet': minor +--- + +Add Viem chains support diff --git a/apps/laboratory/src/components/Ethers/Ethers5TransactionTest.tsx b/apps/laboratory/src/components/Ethers/Ethers5TransactionTest.tsx index cbefc5d5ba..9c0ca636e4 100644 --- a/apps/laboratory/src/components/Ethers/Ethers5TransactionTest.tsx +++ b/apps/laboratory/src/components/Ethers/Ethers5TransactionTest.tsx @@ -49,7 +49,7 @@ export function Ethers5TransactionTest() { } } - return Number(chainId) !== mainnet.chainId && address ? ( + return chainId !== mainnet.id && address ? ( diff --git a/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsSyncTest.tsx b/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsSyncTest.tsx index fe177cadbc..e35c13713a 100644 --- a/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsSyncTest.tsx +++ b/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsSyncTest.tsx @@ -1,37 +1,32 @@ import { Button, Stack, Text } from '@chakra-ui/react' -import { useAccount } from 'wagmi' -import { walletActionsErc7715 } from 'viem/experimental' -import { useCallback, useState } from 'react' +import { useCallback, useMemo, useState } from 'react' import { useChakraToast } from '../Toast' -import { createWalletClient, custom, type Address, type Chain } from 'viem' -import { EIP_7715_RPC_METHODS } from '../../utils/EIP5792Utils' +import { toHex, type Address } from 'viem' import { usePasskey } from '../../context/PasskeyContext' -import { - useWagmiAvailableCapabilities, - type Provider -} from '../../hooks/useWagmiActiveCapabilities' import { useERC7715Permissions } from '../../hooks/useERC7715Permissions' import { bigIntReplacer } from '../../utils/CommonUtils' import { getPurchaseDonutPermissions } from '../../utils/ERC7715Utils' import { serializePublicKey, type P256Credential } from 'webauthn-p256' -import { KeyTypes } from '../../utils/EncodingUtils' -import { useAppKitAccount } from '@reown/appkit/react' +import { useAppKitAccount, useAppKitNetwork } from '@reown/appkit/react' +import { + grantPermissions, + isSmartSessionSupported, + type SmartSessionGrantPermissionsRequest +} from '@reown/appkit-experimental/smart-session' export function WagmiRequestPermissionsSyncTest() { - const { provider, supported } = useWagmiAvailableCapabilities({ - method: EIP_7715_RPC_METHODS.WALLET_GRANT_PERMISSIONS - }) const { address, isConnected } = useAppKitAccount() - const { chain } = useAccount() + const { chainId } = useAppKitNetwork() + const isSupported = useMemo(() => isSmartSessionSupported(), [address]) - if (!isConnected || !provider || !address || !chain) { + if (!isConnected || !address || !chainId) { return ( Wallet not connected ) } - if (!supported) { + if (!isSupported) { return ( Wallet does not support wallet_grantPermissions rpc method @@ -39,21 +34,19 @@ export function WagmiRequestPermissionsSyncTest() { ) } - return + return } function ConnectedTestContent({ - chain, - provider, + chainId, address }: { - chain: Chain - provider: Provider + chainId: string | number address: Address | undefined }) { const [isRequestPermissionLoading, setRequestPermissionLoading] = useState(false) const { passkey } = usePasskey() - const { grantedPermissions, clearGrantedPermissions, grantPermissions } = useERC7715Permissions() + const { clearSmartSession, setSmartSession, smartSession } = useERC7715Permissions() const toast = useChakraToast() const onRequestPermissions = useCallback(async () => { @@ -65,14 +58,6 @@ function ConnectedTestContent({ if (!passkey) { throw new Error('Passkey not available') } - if (!provider) { - throw new Error('No Provider available, Please connect your wallet.') - } - const walletClient = createWalletClient({ - account: address, - chain, - transport: custom(provider) - }).extend(walletActionsErc7715()) let p256Credential = passkey as P256Credential p256Credential = { ...p256Credential, @@ -83,19 +68,34 @@ function ConnectedTestContent({ } } const passkeyPublicKey = serializePublicKey(p256Credential.publicKey, { to: 'hex' }) - const purchaseDonutPermissions = getPurchaseDonutPermissions() - const response = await grantPermissions(walletClient, { - permissions: purchaseDonutPermissions, - signerKey: { - key: passkeyPublicKey, - type: KeyTypes.secp256r1 - } + const grantPurchaseDonutPermissions: SmartSessionGrantPermissionsRequest = { + // Adding 24 hours to the current time + expiry: Math.floor(Date.now() / 1000) + 24 * 60 * 60, + chainId: toHex(chainId), + address, + signer: { + type: 'keys', + data: { + keys: [ + { + type: 'secp256r1', + publicKey: passkeyPublicKey + } + ] + } + }, + ...purchaseDonutPermissions + } + const response = await grantPermissions(grantPurchaseDonutPermissions) + setSmartSession({ + type: 'sync', + grantedPermissions: response }) toast({ type: 'success', title: 'Permissions Granted', - description: JSON.stringify(response.approvedPermissions, bigIntReplacer) + description: JSON.stringify(response, bigIntReplacer) }) } catch (error) { toast({ @@ -106,22 +106,22 @@ function ConnectedTestContent({ } finally { setRequestPermissionLoading(false) } - }, [passkey, provider, address, chain, grantPermissions, toast]) + }, [passkey, address, chainId, grantPermissions, toast]) return ( diff --git a/apps/laboratory/src/context/ERC7715PermissionsContext.tsx b/apps/laboratory/src/context/ERC7715PermissionsContext.tsx index cde5a545de..8d2253cab1 100644 --- a/apps/laboratory/src/context/ERC7715PermissionsContext.tsx +++ b/apps/laboratory/src/context/ERC7715PermissionsContext.tsx @@ -1,34 +1,37 @@ +/* eslint-disable @typescript-eslint/no-redundant-type-constituents */ import React, { type ReactNode } from 'react' import { createContext } from 'react' -import { - GRANTED_PERMISSIONS_KEY, - removeLocalStorageItem, - WC_COSIGNER_DATA -} from '../utils/LocalStorage' +import { SMART_SESSION_KEY, removeLocalStorageItem } from '../utils/LocalStorage' import { useLocalStorageState } from '../hooks/useLocalStorageState' -import type { GrantPermissionsReturnType } from 'viem/experimental' -import type { AddPermissionResponse } from '../utils/WalletConnectCosignerUtils' +import type { SmartSessionGrantPermissionsResponse } from '@reown/appkit-experimental/smart-session' export type ERC7715PermissionsContextType = { projectId: string - grantedPermissions: GrantPermissionsReturnType | undefined - setGrantedPermissions: React.Dispatch< - React.SetStateAction + smartSession: + | { + grantedPermissions: SmartSessionGrantPermissionsResponse + type: 'async' | 'sync' + } + | undefined + setSmartSession: React.Dispatch< + React.SetStateAction< + | { + grantedPermissions: SmartSessionGrantPermissionsResponse + type: 'async' | 'sync' + } + | undefined + > > - wcCosignerData: AddPermissionResponse | undefined - setWCCosignerData: React.Dispatch> - clearGrantedPermissions: () => void + clearSmartSession: () => void } function noop() { console.warn('WagmiPermissionsAsyncContext used outside of provider') } export const ERC7715PermissionsContext = createContext({ projectId: '', - grantedPermissions: undefined, - wcCosignerData: undefined, - setGrantedPermissions: noop, - setWCCosignerData: noop, - clearGrantedPermissions: noop + clearSmartSession: noop, + smartSession: undefined, + setSmartSession: noop }) interface ERC7715PermissionsProviderProps { @@ -40,27 +43,25 @@ export function ERC7715PermissionsProvider({ children }: ERC7715PermissionsProvi if (!projectId) { throw new Error('NEXT_PUBLIC_PROJECT_ID is not set') } - const [grantedPermissions, setGrantedPermissions] = useLocalStorageState< - GrantPermissionsReturnType | undefined - >(GRANTED_PERMISSIONS_KEY, undefined) - const [wcCosignerData, setWCCosignerData] = useLocalStorageState< - AddPermissionResponse | undefined - >(WC_COSIGNER_DATA, undefined) - - function clearGrantedPermissions() { - removeLocalStorageItem(GRANTED_PERMISSIONS_KEY) - setGrantedPermissions(undefined) + const [smartSession, setSmartSession] = useLocalStorageState< + | { + grantedPermissions: SmartSessionGrantPermissionsResponse + type: 'async' | 'sync' + } + | undefined + >(SMART_SESSION_KEY, undefined) + function clearSmartSession() { + removeLocalStorageItem(SMART_SESSION_KEY) + setSmartSession(undefined) } return ( {children} diff --git a/apps/laboratory/src/hooks/useERC7715Permissions.ts b/apps/laboratory/src/hooks/useERC7715Permissions.ts index d22077280e..f620ca5c2f 100644 --- a/apps/laboratory/src/hooks/useERC7715Permissions.ts +++ b/apps/laboratory/src/hooks/useERC7715Permissions.ts @@ -1,22 +1,5 @@ -import { type Hex, type WalletClient } from 'viem' import { useContext } from 'react' import { ERC7715PermissionsContext } from '../context/ERC7715PermissionsContext' -import { - decodeUncompressedPublicKey, - encodePublicKeyToDID, - hexStringToBase64, - KeyTypes -} from '../utils/EncodingUtils' -import { - type GrantPermissionsParameters, - type GrantPermissionsReturnType, - type WalletActionsErc7715 -} from 'viem/experimental' -import { WalletConnectCosigner } from '../utils/WalletConnectCosignerUtils' - -type RequestPermissionsReturnType = { - approvedPermissions: GrantPermissionsReturnType -} export function useERC7715Permissions() { const context = useContext(ERC7715PermissionsContext) @@ -25,84 +8,11 @@ export function useERC7715Permissions() { throw new Error('useERC7715Permissions must be used within a ERC7715PermissionsProvider') } - const { - grantedPermissions, - wcCosignerData, - setWCCosignerData, - setGrantedPermissions, - clearGrantedPermissions - } = context - - async function grantPermissions( - walletClient: WalletClient & WalletActionsErc7715, - args: { - permissions: GrantPermissionsParameters - signerKey: { - key: Hex - type: KeyTypes - } - } - ): Promise { - const { permissions, signerKey } = args - const accountAddress = walletClient.account?.address - if (!accountAddress) { - throw new Error('Account address not available') - } - const chain = walletClient.chain - if (!chain) { - throw new Error('Chain not available') - } - if (!signerKey) { - throw new Error('Invalid signer data') - } - const dAppKeyDID = encodePublicKeyToDID(signerKey.key, signerKey.type) - - const caip10Address = `eip155:${chain.id}:${accountAddress}` - const walletConnectCosigner = new WalletConnectCosigner() - const addPermissionResponse = await walletConnectCosigner.addPermission(caip10Address, { - permissionType: 'donut-purchase', - data: '', - onChainValidated: false, - required: true - }) - - setWCCosignerData(addPermissionResponse) - const cosignerPublicKey = decodeUncompressedPublicKey(addPermissionResponse.key) - const cosignerKeyDID = encodePublicKeyToDID(cosignerPublicKey, KeyTypes.secp256k1) - permissions.signer = { - type: 'keys', - data: { - ids: [cosignerKeyDID, dAppKeyDID] - } - } - const approvedPermissions = await walletClient.grantPermissions(permissions) - await walletConnectCosigner.updatePermissionsContext(caip10Address, { - pci: addPermissionResponse.pci, - context: { - expiry: approvedPermissions.expiry, - signer: { - type: 'donut-purchase', - data: { - ids: [addPermissionResponse.key, hexStringToBase64(signerKey.key)] - } - }, - signerData: { - userOpBuilder: approvedPermissions.signerData?.userOpBuilder || '' - }, - permissionsContext: approvedPermissions.permissionsContext, - factory: approvedPermissions.factory || '', - factoryData: approvedPermissions.factoryData || '' - } - }) - setGrantedPermissions(approvedPermissions) - - return { approvedPermissions } - } + const { smartSession, setSmartSession, clearSmartSession } = context return { - grantedPermissions, - pci: wcCosignerData?.pci, - clearGrantedPermissions, - grantPermissions + clearSmartSession, + smartSession, + setSmartSession } } diff --git a/apps/laboratory/src/hooks/useWagmiActiveCapabilities.ts b/apps/laboratory/src/hooks/useWagmiActiveCapabilities.ts index 30687945df..78086503d4 100644 --- a/apps/laboratory/src/hooks/useWagmiActiveCapabilities.ts +++ b/apps/laboratory/src/hooks/useWagmiActiveCapabilities.ts @@ -1,4 +1,4 @@ -import { UniversalProvider } from '@walletconnect/universal-provider' +import type UniversalProvider from '@walletconnect/universal-provider' import { useAccount, type Connector } from 'wagmi' import { useState, useEffect, useMemo } from 'react' import { type Address, type WalletCapabilities } from 'viem' @@ -17,7 +17,7 @@ type UseWagmiAvailableCapabilitiesParams = { method: string } -export type Provider = Awaited> | W3mFrameProvider +export type Provider = UniversalProvider | W3mFrameProvider export function useWagmiAvailableCapabilities({ capability, diff --git a/apps/laboratory/src/pages/library/wagmi-permissions-async.tsx b/apps/laboratory/src/pages/library/wagmi-permissions-async.tsx index 8f5d27e1bf..b0526431ac 100644 --- a/apps/laboratory/src/pages/library/wagmi-permissions-async.tsx +++ b/apps/laboratory/src/pages/library/wagmi-permissions-async.tsx @@ -5,14 +5,14 @@ import { AppKitButtons } from '../../components/AppKitButtons' import { ThemeStore } from '../../utils/StoreUtil' import { ConstantsUtil } from '../../utils/ConstantsUtil' import { WagmiPermissionsAsyncTest } from '../../components/Wagmi/WagmiPermissionsAsyncTest' -import { mainnet } from '@reown/appkit/networks' +import { sepolia, baseSepolia, type AppKitNetwork } from '@reown/appkit/networks' import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' import { ERC7715PermissionsProvider } from '../../context/ERC7715PermissionsContext' import { LocalEcdsaKeyProvider } from '../../context/LocalEcdsaKeyContext' const queryClient = new QueryClient() -const networks = ConstantsUtil.EvmNetworks +const networks = [baseSepolia, sepolia] as [AppKitNetwork, ...AppKitNetwork[]] const wagmiAdapter = new WagmiAdapter({ ssr: true, @@ -23,7 +23,7 @@ const wagmiAdapter = new WagmiAdapter({ const modal = createAppKit({ adapters: [wagmiAdapter], networks, - defaultNetwork: mainnet, + defaultNetwork: sepolia, projectId: ConstantsUtil.ProjectId, features: { analytics: true diff --git a/apps/laboratory/src/pages/library/wagmi-permissions-sync.tsx b/apps/laboratory/src/pages/library/wagmi-permissions-sync.tsx index 86a02aa083..edcf6ca932 100644 --- a/apps/laboratory/src/pages/library/wagmi-permissions-sync.tsx +++ b/apps/laboratory/src/pages/library/wagmi-permissions-sync.tsx @@ -5,14 +5,14 @@ import { AppKitButtons } from '../../components/AppKitButtons' import { ThemeStore } from '../../utils/StoreUtil' import { ConstantsUtil } from '../../utils/ConstantsUtil' import { WagmiPermissionsSyncTest } from '../../components/Wagmi/WagmiPermissionsSyncTest' -import { mainnet } from '@reown/appkit/networks' +import { baseSepolia, sepolia, type AppKitNetwork } from '@reown/appkit/networks' import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' import { PasskeyProvider } from '../../context/PasskeyContext' import { ERC7715PermissionsProvider } from '../../context/ERC7715PermissionsContext' const queryClient = new QueryClient() -const networks = ConstantsUtil.EvmNetworks +const networks = [baseSepolia, sepolia] as [AppKitNetwork, ...AppKitNetwork[]] const wagmiAdapter = new WagmiAdapter({ ssr: true, @@ -23,7 +23,7 @@ const wagmiAdapter = new WagmiAdapter({ const modal = createAppKit({ adapters: [wagmiAdapter], networks, - defaultNetwork: mainnet, + defaultNetwork: sepolia, projectId: ConstantsUtil.ProjectId, features: { analytics: true diff --git a/apps/laboratory/src/utils/ConstantsUtil.ts b/apps/laboratory/src/utils/ConstantsUtil.ts index ec0b3e3cea..8cce75f25a 100644 --- a/apps/laboratory/src/utils/ConstantsUtil.ts +++ b/apps/laboratory/src/utils/ConstantsUtil.ts @@ -21,8 +21,7 @@ if (!projectId) { throw new Error('NEXT_PUBLIC_PROJECT_ID is not set') } export const WALLET_URL = process.env['WALLET_URL'] || 'https://react-wallet.walletconnect.com/' -export const WC_COSIGNER_BASE_URL = 'https://rpc.walletconnect.org/v1/sessions' -export const USEROP_BUILDER_SERVICE_BASE_URL = 'https://react-wallet.walletconnect.com/api' +export const USEROP_BUILDER_SERVICE_BASE_URL = 'https://rpc.walletconnect.com/v1/wallet' export const GALLERY_URL = 'https://appkit-gallery.reown.com/' export const DOCS_URL = 'https://docs.reown.com/appkit/overview' diff --git a/apps/laboratory/src/utils/EIP5792Utils.ts b/apps/laboratory/src/utils/EIP5792Utils.ts index 0d2f850791..c11240a6a6 100644 --- a/apps/laboratory/src/utils/EIP5792Utils.ts +++ b/apps/laboratory/src/utils/EIP5792Utils.ts @@ -54,7 +54,6 @@ export function convertCapabilitiesToRecord( Object.entries(accountCapabilities).map(([key, value]) => [parseInt(key, 16), value]) ) } -/* eslint-enable @typescript-eslint/no-explicit-any */ export function getProviderCachedCapabilities( address: string, diff --git a/apps/laboratory/src/utils/ERC7715Utils.ts b/apps/laboratory/src/utils/ERC7715Utils.ts index 1ab32e0c6e..90ff4bb814 100644 --- a/apps/laboratory/src/utils/ERC7715Utils.ts +++ b/apps/laboratory/src/utils/ERC7715Utils.ts @@ -1,11 +1,9 @@ -import type { GrantPermissionsParameters, GrantPermissionsReturnType } from 'viem/experimental' import { abi as donutContractAbi, address as donutContractAddress } from './DonutContract' -import { encodeAbiParameters, hashMessage, parseEther, type Chain } from 'viem' -import { WalletConnectCosigner } from './WalletConnectCosignerUtils' -import { buildUserOp, type Call, type FillUserOpResponse } from './UserOpBuilderServiceUtils' +import { encodeAbiParameters, hashMessage, toHex, type Chain } from 'viem' +import { prepareCalls, sendPreparedCalls, type Call } from './UserOpBuilderServiceUtils' import { signMessage } from 'viem/accounts' -import { bigIntReplacer } from './CommonUtils' import { sign as signWithPasskey } from 'webauthn-p256' +import type { SmartSessionGrantPermissionsRequest } from '@reown/appkit-experimental/smart-session' export type MultikeySigner = { type: 'keys' @@ -14,51 +12,27 @@ export type MultikeySigner = { } } -export function getPurchaseDonutPermissions(): GrantPermissionsParameters { +export function getPurchaseDonutPermissions(): Omit< + SmartSessionGrantPermissionsRequest, + 'signer' | 'chainId' | 'address' | 'expiry' +> { return { - expiry: Date.now() + 24 * 60 * 60, permissions: [ { - type: { - custom: 'donut-purchase' - }, + type: 'contract-call', data: { - target: donutContractAddress, + address: donutContractAddress, abi: donutContractAbi, - valueLimit: parseEther('10').toString(), - functionName: 'function purchase()' - }, - policies: [] + functions: [ + { + functionName: 'purchase' + } + ] + } } - ] - } -} - -async function prepareUserOperationWithPermissions(args: { - actions: Call[] - chain: Chain - permissions: GrantPermissionsReturnType -}): Promise { - const { actions, chain, permissions } = args - if (!permissions) { - throw new Error('No permissions available') - } - const { signerData, permissionsContext } = permissions - - if (!signerData?.userOpBuilder || !signerData.submitToAddress || !permissionsContext) { - throw new Error(`Invalid permissions ${JSON.stringify(permissions, bigIntReplacer)}`) + ], + policies: [] } - - const filledUserOp = await buildUserOp({ - account: signerData.submitToAddress, - chainId: chain.id, - calls: actions, - capabilities: { - permissions: { context: permissionsContext as `0x${string}` } - } - }) - - return filledUserOp } async function signUserOperationWithPasskey(args: { @@ -76,7 +50,6 @@ async function signUserOperationWithPasskey(args: { const authenticatorData = usersPasskeySignature.webauthn.authenticatorData const clientDataJSON = usersPasskeySignature.webauthn.clientDataJSON const responseTypeLocation = usersPasskeySignature.webauthn.typeIndex - // Const userVerificationRequired = usersPasskeySignature.webauthn.userVerificationRequired const r = usersPasskeySignature.signature.r const s = usersPasskeySignature.signature.s @@ -95,116 +68,101 @@ async function signUserOperationWithPasskey(args: { return passkeySignature } -async function signUserOperationWithECDSAKey(args: { - ecdsaPrivateKey: `0x${string}` - userOpHash: `0x${string}` -}): Promise<`0x${string}`> { - const { ecdsaPrivateKey, userOpHash } = args - - const dappSignatureOnUserOp = await signMessage({ - privateKey: ecdsaPrivateKey, - message: { raw: userOpHash } - }) - - return dappSignatureOnUserOp -} - -export async function executeActionsWithPasskeyAndCosignerPermissions(args: { +export async function executeActionsWithPasskey(args: { actions: Call[] passkeyId: string chain: Chain - permissions: GrantPermissionsReturnType - pci: string -}): Promise<`0x${string}`> { - const { actions, passkeyId, chain, permissions, pci } = args - const accountAddress = permissions?.signerData?.submitToAddress + accountAddress: `0x${string}` + permissionsContext: string +}): Promise { + const { actions, passkeyId, chain, accountAddress, permissionsContext } = args + + if (!permissionsContext) { + throw new Error('No permissions available') + } if (!accountAddress) { - throw new Error(`Unable to get account details from granted permission`) + throw new Error('No account Address available') } - if (!pci) { - throw new Error('No WC_COSIGNER PCI data available') - } - const caip10Address = `eip155:${chain?.id}:${accountAddress}` - const filledUserOp = await prepareUserOperationWithPermissions({ - actions, - chain, - permissions + const prepareCallsResponse = await prepareCalls({ + from: accountAddress, + chainId: toHex(chain.id), + calls: actions.map(call => ({ + to: call.to, + data: call.data, + value: toHex(call.value) + })), + capabilities: { + permissions: { context: permissionsContext } + } }) - const userOp = filledUserOp.userOp - const signature = await signUserOperationWithPasskey({ + if (prepareCallsResponse.length !== 1 && prepareCallsResponse[0]) { + throw new Error('Invalid response type') + } + const response = prepareCallsResponse[0] + if (!response || response.preparedCalls.type !== 'user-operation-v07') { + throw new Error('Invalid response type') + } + const signatureRequest = response.signatureRequest + const dappSignature = await signUserOperationWithPasskey({ passkeyId, - userOpHash: filledUserOp.hash + userOpHash: signatureRequest.hash }) - userOp.signature = signature - - const walletConnectCosigner = new WalletConnectCosigner() - const cosignResponse = await walletConnectCosigner.coSignUserOperation(caip10Address, { - pci, - userOp: { - ...userOp, - callData: userOp.callData, - callGasLimit: BigInt(userOp.callGasLimit), - nonce: BigInt(userOp.nonce), - preVerificationGas: BigInt(userOp.preVerificationGas), - verificationGasLimit: BigInt(userOp.verificationGasLimit), - sender: userOp.sender, - signature: userOp.signature, - maxFeePerGas: BigInt(userOp.maxFeePerGas), - maxPriorityFeePerGas: BigInt(userOp.maxPriorityFeePerGas) - } + const sendUserOpResponse = await sendPreparedCalls({ + context: response.context, + preparedCalls: response.preparedCalls, + signature: dappSignature }) - return cosignResponse.receipt as `0x${string}` + return sendUserOpResponse } -export async function executeActionsWithECDSAAndCosignerPermissions(args: { +export async function executeActionsWithECDSAKey(args: { actions: Call[] ecdsaPrivateKey: `0x${string}` chain: Chain - permissions: GrantPermissionsReturnType - pci: string -}): Promise<`0x${string}`> { - const { ecdsaPrivateKey, actions, chain, permissions, pci } = args - const accountAddress = permissions?.signerData?.submitToAddress + accountAddress: `0x${string}` + permissionsContext: string +}): Promise { + const { ecdsaPrivateKey, actions, chain, accountAddress, permissionsContext } = args + if (!permissionsContext) { + throw new Error('No permissions available') + } if (!accountAddress) { - throw new Error(`Unable to get account details from granted permission`) + throw new Error('No account Address available') } - if (!pci) { - throw new Error('No WC_COSIGNER PCI data available') - } - const caip10Address = `eip155:${chain?.id}:${accountAddress}` - const filledUserOp = await prepareUserOperationWithPermissions({ - actions, - chain, - permissions + const prepareCallsResponse = await prepareCalls({ + from: accountAddress, + chainId: toHex(chain.id), + calls: actions.map(call => ({ + to: call.to, + data: call.data, + value: toHex(call.value) + })), + capabilities: { + permissions: { context: permissionsContext } + } }) - const userOp = filledUserOp.userOp - - const dappSignature = await signUserOperationWithECDSAKey({ - ecdsaPrivateKey, - userOpHash: filledUserOp.hash + if (prepareCallsResponse.length !== 1 && prepareCallsResponse[0]) { + throw new Error('Invalid response type') + } + const response = prepareCallsResponse[0] + if (!response || response.preparedCalls.type !== 'user-operation-v07') { + throw new Error('Invalid response type') + } + const signatureRequest = response.signatureRequest + const dappSignature = await signMessage({ + privateKey: ecdsaPrivateKey, + message: { raw: signatureRequest.hash } }) - userOp.signature = dappSignature - const walletConnectCosigner = new WalletConnectCosigner() - const cosignResponse = await walletConnectCosigner.coSignUserOperation(caip10Address, { - pci, - userOp: { - ...userOp, - callData: userOp.callData, - callGasLimit: BigInt(userOp.callGasLimit), - nonce: BigInt(userOp.nonce), - preVerificationGas: BigInt(userOp.preVerificationGas), - verificationGasLimit: BigInt(userOp.verificationGasLimit), - sender: userOp.sender, - signature: userOp.signature, - maxFeePerGas: BigInt(userOp.maxFeePerGas), - maxPriorityFeePerGas: BigInt(userOp.maxPriorityFeePerGas) - } + const sendUserOpResponse = await sendPreparedCalls({ + context: response.context, + preparedCalls: response.preparedCalls, + signature: dappSignature }) - return cosignResponse.receipt as `0x${string}` + return sendUserOpResponse } diff --git a/apps/laboratory/src/utils/LocalStorage.ts b/apps/laboratory/src/utils/LocalStorage.ts index 7e529cca9b..a6700e8e36 100644 --- a/apps/laboratory/src/utils/LocalStorage.ts +++ b/apps/laboratory/src/utils/LocalStorage.ts @@ -2,9 +2,8 @@ import { bigIntReplacer } from './CommonUtils' export const PASSKEY_LOCALSTORAGE_KEY = 'passkeyId' export const LAST_USED_ADDRESS_KEY = 'lastUsedAddress' -export const LOCAL_SIGNER_KEY = 'localECDSASigner' -export const GRANTED_PERMISSIONS_KEY = 'grantedPermissions' -export const WC_COSIGNER_DATA = 'wc_cosignerData' +export const LOCAL_SIGNER_KEY = 'ecdsa-key' +export const SMART_SESSION_KEY = 'smart-session' /** * Sets an item in the local storage. * @param key - The key to set the item with. diff --git a/apps/laboratory/src/utils/UserOpBuilderServiceUtils.ts b/apps/laboratory/src/utils/UserOpBuilderServiceUtils.ts index fb0f4933f1..fc41910206 100644 --- a/apps/laboratory/src/utils/UserOpBuilderServiceUtils.ts +++ b/apps/laboratory/src/utils/UserOpBuilderServiceUtils.ts @@ -1,19 +1,29 @@ -import axios, { AxiosError } from 'axios' import { bigIntReplacer } from '../utils/CommonUtils' import type { Address, Hex } from 'viem' import { USEROP_BUILDER_SERVICE_BASE_URL } from './ConstantsUtil' export type Call = { to: Address; value: bigint; data: Hex } -export type BuildUserOpRequestArguments = { - account: Address - chainId: number - calls: Call[] - capabilities: { - paymasterService?: { url: string } - permissions?: { context: Hex } - } +export type UserOperationWithBigIntAsHex = { + sender: Address + nonce: Hex + factory: Address | undefined + factoryData: Hex | undefined + callData: Hex + callGasLimit: Hex + verificationGasLimit: Hex + preVerificationGas: Hex + maxFeePerGas: Hex + maxPriorityFeePerGas: Hex + paymaster: Address | undefined + paymasterVerificationGasLimit: Hex | undefined + paymasterPostOpGasLimit: Hex | undefined + paymasterData: Hex | undefined + signature: Hex + initCode?: never + paymasterAndData?: never } + /** * UserOperation v0.7 */ @@ -37,26 +47,46 @@ export type UserOperation = { paymasterAndData?: never } -export type FillUserOpResponse = { - userOp: UserOperation - hash: Hex -} - export type ErrorResponse = { message: string error: string } -export type SendUserOpWithSignatureParams = { - chainId: number - userOp: UserOperation - signature: Hex - permissionsContext?: Hex +export type PrepareCallsParams = { + from: `0x${string}` + chainId: `0x${string}` + calls: { + to: `0x${string}` + data: `0x${string}` + value: `0x${string}` + }[] + capabilities: Record } -export type SendUserOpWithSignatureResponse = { - receipt: Hex + +export type PrepareCallsReturnValue = { + preparedCalls: { + type: string + data: unknown + chainId: `0x${string}` + } + signatureRequest: { + hash: `0x${string}` + } + context: string } +export type SendPreparedCallsParams = { + preparedCalls: { + type: string + data: unknown + chainId: `0x${string}` + } + signature: `0x${string}` + context: string +} + +export type SendPreparedCallsReturnValue = string + // Define a custom error type export class UserOpBuilderApiError extends Error { constructor( @@ -68,74 +98,68 @@ export class UserOpBuilderApiError extends Error { } } -// Function to send requests to the CoSigner API -async function sendUserOpBuilderRequest< - TRequest, - TResponse extends object, - TQueryParams extends Record = Record ->(args: { +async function jsonRpcRequest( + method: string, + params: TParams, url: string - headers: Record - data: TRequest - queryParams?: TQueryParams - transformRequest?: (data: TRequest) => unknown -}): Promise { - const { url, data, queryParams, headers, transformRequest } = args - const transformedData = transformRequest ? transformRequest(data) : data - - try { - const response = await axios.post(url, transformedData, { - params: queryParams, - headers - }) - - if ('error' in response.data) { - throw new Error(response.data.error) - } - - return response.data - } catch (error) { - if (axios.isAxiosError(error)) { - const axiosError = error as AxiosError - if (axiosError.response) { - throw new UserOpBuilderApiError( - axiosError.response.status, - JSON.stringify(axiosError.response.data) - ) - } else { - throw new UserOpBuilderApiError(500, 'Network error') - } - } - // Re-throw if it's not an Axios error - throw error - } -} - -export async function buildUserOp(args: BuildUserOpRequestArguments): Promise { - const response = await sendUserOpBuilderRequest({ - url: `${USEROP_BUILDER_SERVICE_BASE_URL}/build`, - data: args, +): Promise { + const response = await fetch(url, { + method: 'POST', headers: { 'Content-Type': 'application/json' }, - transformRequest: data => JSON.stringify(data, bigIntReplacer) + body: JSON.stringify( + { + jsonrpc: '2.0', + id: '1', + method, + params + }, + bigIntReplacer + ) }) - return response + if (!response.ok) { + throw new UserOpBuilderApiError(response.status, await response.text()) + } + + const data = await response.json() + + if ('error' in data) { + throw new UserOpBuilderApiError(500, JSON.stringify(data.error)) + } + + return data.result } -export async function sendUserOp(args: SendUserOpWithSignatureParams) { - const response = await sendUserOpBuilderRequest< - SendUserOpWithSignatureParams, - SendUserOpWithSignatureResponse - >({ - url: `${USEROP_BUILDER_SERVICE_BASE_URL}/sendUserOp`, - data: args, - headers: { - 'Content-Type': 'application/json' - }, - transformRequest: data => JSON.stringify(data, bigIntReplacer) - }) +export async function prepareCalls(args: PrepareCallsParams): Promise { + const projectId = process.env['NEXT_PUBLIC_PROJECT_ID'] + if (!projectId) { + throw new Error('NEXT_PUBLIC_PROJECT_ID is not set') + } + + const url = `${USEROP_BUILDER_SERVICE_BASE_URL}?projectId=${projectId}` + + return jsonRpcRequest( + 'wallet_prepareCalls', + [args], + url + ) +} + +export async function sendPreparedCalls( + args: SendPreparedCallsParams +): Promise { + const projectId = process.env['NEXT_PUBLIC_PROJECT_ID'] + if (!projectId) { + throw new Error('NEXT_PUBLIC_PROJECT_ID is not set') + } + + const url = `${USEROP_BUILDER_SERVICE_BASE_URL}?projectId=${projectId}` - return response + return jsonRpcRequest( + 'wallet_sendPreparedCalls', + [args], + url + ) } diff --git a/apps/laboratory/src/utils/WalletConnectCosignerUtils.ts b/apps/laboratory/src/utils/WalletConnectCosignerUtils.ts deleted file mode 100644 index f244534fb3..0000000000 --- a/apps/laboratory/src/utils/WalletConnectCosignerUtils.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* eslint-disable max-classes-per-file */ -import axios, { AxiosError } from 'axios' -import { bigIntReplacer } from './CommonUtils' -import type { UserOperation } from './UserOpBuilderServiceUtils' -import { WC_COSIGNER_BASE_URL } from './ConstantsUtil' - -// Define types for the request and response -type AddPermission = { - permissionType: string - data: string - required: boolean - onChainValidated: boolean -} - -type AddPermissionRequest = { - permission: AddPermission -} - -export type AddPermissionResponse = { - pci: string - key: string -} - -type Signer = { - type: string - data: { - ids: string[] - } -} - -type SignerData = { - userOpBuilder: string -} - -type PermissionsContext = { - signer: Signer - expiry: number - signerData: SignerData - factory?: string - factoryData?: string - permissionsContext: string -} - -type UpdatePermissionsContextRequest = { - pci: string - signature?: string - context: PermissionsContext -} - -type RevokePermissionRequest = { - pci: string - signature: string -} - -type CoSignRequest = { - pci: string - userOp: UserOperation -} - -type CoSignResponse = { - receipt: string -} - -// Define a custom error type -export class CoSignerApiError extends Error { - constructor( - public status: number, - message: string - ) { - super(message) - this.name = 'CoSignerApiError' - } -} - -// Function to send requests to the CoSigner API -async function sendCoSignerRequest< - TRequest, - TResponse, - TQueryParams extends Record = Record ->(args: { - url: string - data: TRequest - queryParams?: TQueryParams - headers: Record - transformRequest?: (data: TRequest) => unknown -}): Promise { - const { url, data, queryParams = {}, headers, transformRequest } = args - const transformedData = transformRequest ? transformRequest(data) : data - - try { - const response = await axios.post(url, transformedData, { - params: queryParams, - headers - }) - - return response.data - } catch (error) { - if (axios.isAxiosError(error)) { - const axiosError = error as AxiosError - if (axiosError.response) { - throw new CoSignerApiError( - axiosError.response.status, - JSON.stringify(axiosError.response.data) - ) - } else { - throw new CoSignerApiError(500, 'Network error') - } - } - // Re-throw if it's not an Axios error - throw error - } -} - -// Class to interact with the WalletConnect CoSigner API -export class WalletConnectCosigner { - private baseUrl: string - private projectId: string - - constructor() { - this.baseUrl = WC_COSIGNER_BASE_URL - const projectId = process.env['NEXT_PUBLIC_PROJECT_ID'] - if (!projectId) { - throw new Error('NEXT_PUBLIC_PROJECT_ID is not set') - } - this.projectId = projectId - } - - async addPermission(address: string, permission: AddPermission): Promise { - const url = `${this.baseUrl}/${encodeURIComponent(address)}` - - return await sendCoSignerRequest< - AddPermissionRequest, - AddPermissionResponse, - { projectId: string } - >({ - url, - data: { permission }, - queryParams: { projectId: this.projectId }, - headers: { 'Content-Type': 'application/json' } - }) - } - - async updatePermissionsContext( - address: string, - updateData: UpdatePermissionsContextRequest - ): Promise { - const url = `${this.baseUrl}/${encodeURIComponent(address)}/context` - await sendCoSignerRequest({ - url, - data: updateData, - queryParams: { projectId: this.projectId }, - headers: { 'Content-Type': 'application/json' } - }) - } - - async revokePermission(address: string, revokeData: RevokePermissionRequest): Promise { - const url = `${this.baseUrl}/${encodeURIComponent(address)}/revoke` - await sendCoSignerRequest({ - url, - data: revokeData, - queryParams: { projectId: this.projectId }, - headers: { 'Content-Type': 'application/json' } - }) - } - - async coSignUserOperation(address: string, coSignData: CoSignRequest): Promise { - const url = `${this.baseUrl}/${encodeURIComponent(address)}/sign` - - return await sendCoSignerRequest({ - url, - data: coSignData, - queryParams: { projectId: this.projectId }, - headers: { 'Content-Type': 'application/json' }, - transformRequest: (value: CoSignRequest) => JSON.stringify(value, bigIntReplacer) - }) - } -} diff --git a/packages/adapters/ethers/src/client.ts b/packages/adapters/ethers/src/client.ts index afa0f4aae1..016e9ffded 100644 --- a/packages/adapters/ethers/src/client.ts +++ b/packages/adapters/ethers/src/client.ts @@ -409,6 +409,35 @@ export class EthersAdapter { return await EthersMethods.estimateGas(data, provider, address, Number(caipNetwork?.id)) }, + getCapabilities: async (params: string) => { + const provider = ProviderUtil.getProvider(CommonConstantsUtil.CHAIN.EVM) + + if (!provider) { + throw new Error('Provider is undefined') + } + + const walletCapabilitiesString = provider.session?.sessionProperties?.['capabilities'] + if (walletCapabilitiesString) { + const walletCapabilities = EthersMethods.parseWalletCapabilities(walletCapabilitiesString) + const accountCapabilities = walletCapabilities[params] + if (accountCapabilities) { + return accountCapabilities + } + } + + return await provider.request({ method: 'wallet_getCapabilities', params: [params] }) + }, + + grantPermissions: async params => { + const provider = ProviderUtil.getProvider(CommonConstantsUtil.CHAIN.EVM) + + if (!provider) { + throw new Error('Provider is undefined') + } + + return await provider.request({ method: 'wallet_grantPermissions', params }) + }, + sendTransaction: async data => { if (data.chainNamespace && data.chainNamespace !== 'eip155') { throw new Error(`Invalid chain namespace - Expected eip155, got ${data.chainNamespace}`) diff --git a/packages/adapters/ethers/src/utils/EthersMethods.ts b/packages/adapters/ethers/src/utils/EthersMethods.ts index ce1b1c5763..87aebcf707 100644 --- a/packages/adapters/ethers/src/utils/EthersMethods.ts +++ b/packages/adapters/ethers/src/utils/EthersMethods.ts @@ -150,6 +150,14 @@ export const EthersMethods = { return false }, + parseWalletCapabilities: (str: string) => { + try { + return JSON.parse(str) + } catch (error) { + throw new Error('Error parsing wallet capabilities') + } + }, + parseUnits, formatUnits } diff --git a/packages/adapters/solana/src/client.ts b/packages/adapters/solana/src/client.ts index 849bdfe35d..d3e4405aac 100644 --- a/packages/adapters/solana/src/client.ts +++ b/packages/adapters/solana/src/client.ts @@ -237,6 +237,10 @@ export class SolanaAdapter implements ChainAdapter { writeContract: async () => await Promise.resolve('0x'), + getCapabilities: async () => await Promise.resolve('0x'), + + grantPermissions: async () => await Promise.resolve('0x'), + sendTransaction: async params => { if (params.chainNamespace !== CommonConstantsUtil.CHAIN.SOLANA) { throw new Error('Chain namespace is not supported') diff --git a/packages/adapters/wagmi/src/client.ts b/packages/adapters/wagmi/src/client.ts index c40f6ef8ba..9e7c5b774c 100644 --- a/packages/adapters/wagmi/src/client.ts +++ b/packages/adapters/wagmi/src/client.ts @@ -61,6 +61,7 @@ import { getEmailCaipNetworks, getTransport, getWalletConnectCaipNetworks, + parseWalletCapabilities, requireCaipAddress } from './utils/helpers.js' import { W3mFrameHelpers, W3mFrameRpcConstants } from '@reown/appkit-wallet' @@ -107,7 +108,11 @@ const OPTIONAL_METHODS = [ 'wallet_requestPermissions', 'wallet_registerOnboarding', 'wallet_watchAsset', - 'wallet_scanQRCode' + 'wallet_scanQRCode', + 'wallet_getCallsStatus', + 'wallet_sendCalls', + 'wallet_getCapabilities', + 'wallet_grantPermissions' ] // @ts-expect-error: Overridden state type is correct @@ -430,6 +435,58 @@ export class WagmiAdapter implements ChainAdapter { return BigInt(0) } }, + + getCapabilities: async (params: string) => { + if (!this.wagmiConfig) { + throw new Error('connectionControllerClient:getCapabilities - wagmiConfig is undefined') + } + + const connections = getConnections(this.wagmiConfig) + const connection = connections[0] + + if (!connection?.connector) { + throw new Error('connectionControllerClient:getCapabilities - connector is undefined') + } + + const provider = (await connection.connector.getProvider()) as UniversalProvider + + if (!provider) { + throw new Error('connectionControllerClient:getCapabilities - provider is undefined') + } + + const walletCapabilitiesString = provider.session?.sessionProperties?.['capabilities'] + if (walletCapabilitiesString) { + const walletCapabilities = parseWalletCapabilities(walletCapabilitiesString) + const accountCapabilities = walletCapabilities[params] + if (accountCapabilities) { + return accountCapabilities + } + } + + return await provider.request({ method: 'wallet_getCapabilities', params: [params] }) + }, + + grantPermissions: async params => { + if (!this.wagmiConfig) { + throw new Error('connectionControllerClient:grantPermissions - wagmiConfig is undefined') + } + + const connections = getConnections(this.wagmiConfig) + const connection = connections[0] + + if (!connection?.connector) { + throw new Error('connectionControllerClient:grantPermissions - connector is undefined') + } + + const provider = (await connection.connector.getProvider()) as UniversalProvider + + if (!provider) { + throw new Error('connectionControllerClient:grantPermissions - provider is undefined') + } + + return provider.request({ method: 'wallet_grantPermissions', params }) + }, + sendTransaction: async (data: SendTransactionArgs) => { if (data.chainNamespace && data.chainNamespace !== 'eip155') { throw new Error(`Invalid chain namespace - Expected eip155, got ${data.chainNamespace}`) diff --git a/packages/adapters/wagmi/src/utils/helpers.ts b/packages/adapters/wagmi/src/utils/helpers.ts index 59b7657795..1e4e679cb1 100644 --- a/packages/adapters/wagmi/src/utils/helpers.ts +++ b/packages/adapters/wagmi/src/utils/helpers.ts @@ -70,3 +70,11 @@ export function requireCaipAddress(caipAddress: string) { return account } + +export function parseWalletCapabilities(str: string) { + try { + return JSON.parse(str) + } catch (error) { + throw new Error('Error parsing wallet capabilities') + } +} diff --git a/packages/appkit/src/tests/mocks/UniversalProvider.ts b/packages/appkit/src/tests/mocks/UniversalProvider.ts index a2e81bb321..e3eefa9842 100644 --- a/packages/appkit/src/tests/mocks/UniversalProvider.ts +++ b/packages/appkit/src/tests/mocks/UniversalProvider.ts @@ -24,6 +24,7 @@ export const mockProvider = { 'wallet_sendCalls', 'wallet_showCallsStatus', 'wallet_getCallsStatus', + 'wallet_grantPermissions', 'wallet_switchEthereumChain' ], rpcMap: { diff --git a/packages/appkit/src/tests/utils/HelpersUtil.test.ts b/packages/appkit/src/tests/utils/HelpersUtil.test.ts index 2683627bf8..6aab3feeec 100644 --- a/packages/appkit/src/tests/utils/HelpersUtil.test.ts +++ b/packages/appkit/src/tests/utils/HelpersUtil.test.ts @@ -83,6 +83,7 @@ describe('WcHelpersUtil', () => { 'wallet_sendCalls', 'wallet_showCallsStatus', 'wallet_getCallsStatus', + 'wallet_grantPermissions', 'wallet_switchEthereumChain' ]) }) diff --git a/packages/appkit/src/universal-adapter/client.ts b/packages/appkit/src/universal-adapter/client.ts index b6086e1fa3..1d2d02a6da 100644 --- a/packages/appkit/src/universal-adapter/client.ts +++ b/packages/appkit/src/universal-adapter/client.ts @@ -49,7 +49,13 @@ const OPTIONAL_METHODS = [ 'wallet_requestPermissions', 'wallet_registerOnboarding', 'wallet_watchAsset', - 'wallet_scanQRCode' + 'wallet_scanQRCode', + // EIP-5792 + 'wallet_getCallsStatus', + 'wallet_sendCalls', + 'wallet_getCapabilities', + // EIP-7715 + 'wallet_grantPermissions' ] // -- Client -------------------------------------------------------------------- @@ -256,6 +262,34 @@ export class UniversalAdapterClient { writeContract: async () => await Promise.resolve('0x'), + getCapabilities: async (params: string) => { + const provider = await this.getWalletConnectProvider() + + if (!provider) { + throw new Error('connectionControllerClient:getCapabilities - provider is undefined') + } + + const walletCapabilitiesString = provider.session?.sessionProperties?.['capabilities'] + if (walletCapabilitiesString) { + const walletCapabilities = this.parseWalletCapabilities(walletCapabilitiesString) + const accountCapabilities = walletCapabilities[params] + if (accountCapabilities) { + return accountCapabilities + } + } + + return await provider.request({ method: 'wallet_getCapabilities', params: [params] }) + }, + + grantPermissions: async (params: object | readonly unknown[]) => { + const provider = await this.getWalletConnectProvider() + if (!provider) { + throw new Error('connectionControllerClient:grantPermissions - provider is undefined') + } + + return provider.request({ method: 'wallet_grantPermissions', params }) + }, + sendTransaction: async () => await Promise.resolve('0x'), parseUnits: () => BigInt(0), @@ -611,4 +645,13 @@ export class UniversalAdapterClient { this.appKit?.setConnectors(w3mConnectors) } + private parseWalletCapabilities(walletCapabilitiesString: string) { + try { + const walletCapabilities = JSON.parse(walletCapabilitiesString) + + return walletCapabilities + } catch (error) { + throw new Error('Error parsing wallet capabilities') + } + } } diff --git a/packages/appkit/src/utils/HelpersUtil.ts b/packages/appkit/src/utils/HelpersUtil.ts index 10da34d9cd..6b1594ee67 100644 --- a/packages/appkit/src/utils/HelpersUtil.ts +++ b/packages/appkit/src/utils/HelpersUtil.ts @@ -28,6 +28,7 @@ export const WcHelpersUtil = { 'wallet_sendCalls', 'wallet_showCallsStatus', 'wallet_getCallsStatus', + 'wallet_grantPermissions', 'wallet_switchEthereumChain' ] default: diff --git a/packages/core/src/controllers/ConnectionController.ts b/packages/core/src/controllers/ConnectionController.ts index 6251c86d33..8c0098d622 100644 --- a/packages/core/src/controllers/ConnectionController.ts +++ b/packages/core/src/controllers/ConnectionController.ts @@ -39,6 +39,8 @@ export interface ConnectionControllerClient { writeContract: (args: WriteContractArgs) => Promise<`0x${string}` | null> getEnsAddress: (value: string) => Promise getEnsAvatar: (value: string) => Promise + grantPermissions: (params: readonly unknown[] | object) => Promise + getCapabilities: (params: string) => Promise } export interface ConnectionControllerState { @@ -177,6 +179,14 @@ export const ConnectionController = { return this._getClient().sendTransaction(args) }, + async getCapabilities(params: string) { + return this._getClient().getCapabilities(params) + }, + + async grantPermissions(params: object | readonly unknown[]) { + return this._getClient().grantPermissions(params) + }, + async estimateGas(args: EstimateGasTransactionArgs) { return this._getClient().estimateGas(args) }, diff --git a/packages/core/tests/controllers/ChainController.test.ts b/packages/core/tests/controllers/ChainController.test.ts index 8a3d8dfd48..1a38f98062 100644 --- a/packages/core/tests/controllers/ChainController.test.ts +++ b/packages/core/tests/controllers/ChainController.test.ts @@ -98,7 +98,9 @@ const connectionControllerClient: ConnectionControllerClient = { sendTransaction: () => Promise.resolve('0x'), writeContract: () => Promise.resolve('0x'), getEnsAddress: async (value: string) => Promise.resolve(value), - getEnsAvatar: async (value: string) => Promise.resolve(value) + getEnsAvatar: async (value: string) => Promise.resolve(value), + getCapabilities: async () => Promise.resolve(''), + grantPermissions: async () => Promise.resolve('') } const networkControllerClient: NetworkControllerClient = { diff --git a/packages/core/tests/controllers/ConnectionController.test.ts b/packages/core/tests/controllers/ConnectionController.test.ts index 57164a8fad..3f08c75ba0 100644 --- a/packages/core/tests/controllers/ConnectionController.test.ts +++ b/packages/core/tests/controllers/ConnectionController.test.ts @@ -34,7 +34,9 @@ const client: ConnectionControllerClient = { sendTransaction: () => Promise.resolve('0x'), writeContract: () => Promise.resolve('0x'), getEnsAddress: async (value: string) => Promise.resolve(value), - getEnsAvatar: async (value: string) => Promise.resolve(value) + getEnsAvatar: async (value: string) => Promise.resolve(value), + getCapabilities: async () => Promise.resolve(''), + grantPermissions: async () => Promise.resolve('0x') } const clientConnectWalletConnectSpy = vi.spyOn(client, 'connectWalletConnect') @@ -51,7 +53,9 @@ const partialClient: ConnectionControllerClient = { sendTransaction: () => Promise.resolve('0x'), writeContract: () => Promise.resolve('0x'), getEnsAddress: async (value: string) => Promise.resolve(value), - getEnsAvatar: async (value: string) => Promise.resolve(value) + getEnsAvatar: async (value: string) => Promise.resolve(value), + getCapabilities: async () => Promise.resolve(''), + grantPermissions: async () => Promise.resolve('0x') } const evmAdapter = { diff --git a/packages/experimental/.eslintrc.json b/packages/experimental/.eslintrc.json new file mode 100644 index 0000000000..0f959f167e --- /dev/null +++ b/packages/experimental/.eslintrc.json @@ -0,0 +1,4 @@ +{ + "extends": ["plugin:require-extensions/recommended", "../../.eslintrc.json"], + "plugins": ["require-extensions"] +} diff --git a/packages/experimental/.npmignore b/packages/experimental/.npmignore new file mode 100644 index 0000000000..8d672eb83c --- /dev/null +++ b/packages/experimental/.npmignore @@ -0,0 +1,11 @@ +*.log +*.env +.eslintrc.json +.turbo +tests +src +exports +node_modules +package-lock.json +tsconfig.json +index.ts diff --git a/packages/experimental/CHANGELOG.md b/packages/experimental/CHANGELOG.md new file mode 100644 index 0000000000..cb4cd778c7 --- /dev/null +++ b/packages/experimental/CHANGELOG.md @@ -0,0 +1 @@ +# @reown/appkit-experimental diff --git a/packages/experimental/exports/index.ts b/packages/experimental/exports/index.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/experimental/exports/smart-session/index.ts b/packages/experimental/exports/smart-session/index.ts new file mode 100644 index 0000000000..f48b6146b2 --- /dev/null +++ b/packages/experimental/exports/smart-session/index.ts @@ -0,0 +1,10 @@ +export { + grantPermissions, + isSmartSessionSupported +} from '../../src/smart-session/grantPermissions.js' + +export type { + KeyType, + SmartSessionGrantPermissionsRequest, + SmartSessionGrantPermissionsResponse +} from '../../src/smart-session/utils/TypeUtils.js' diff --git a/packages/experimental/package.json b/packages/experimental/package.json new file mode 100644 index 0000000000..3f940c3218 --- /dev/null +++ b/packages/experimental/package.json @@ -0,0 +1,70 @@ +{ + "name": "@reown/appkit-experimental", + "version": "1.0.0", + "type": "module", + "main": "./dist/esm/exports/index.js", + "types": "./dist/types/exports/index.d.ts", + "files": [ + "dist", + "!tsconfig.tsbuildinfo" + ], + "exports": { + ".": { + "types": "./dist/types/exports/index.d.ts", + "import": "./dist/esm/exports/index.js", + "default": "./dist/esm/exports/index.js" + }, + "./smart-session": { + "types": "./dist/types/exports/smart-session/index.d.ts", + "import": "./dist/esm/exports/smart-session/index.js", + "default": "./dist/esm/exports/smart-session/index.js" + } + }, + "typesVersions": { + "*": { + "smart-session": [ + "./dist/types/exports/smart-session/index.d.ts" + ] + } + }, + "scripts": { + "build:clean": "rm -rf dist", + "build": "tsc --build", + "watch": "tsc --watch", + "typecheck": "tsc --noEmit", + "test": "vitest run --dir tests --coverage.enabled=true --coverage.reporter=json --coverage.reporter=json-summary --coverage.reportOnFailure=true", + "lint": "eslint . --ext .js,.jsx,.ts,.tsx" + }, + "dependencies": { + "@reown/appkit": "workspace:*", + "@reown/appkit-core": "workspace:*", + "@reown/appkit-common": "workspace:*", + "axios": "1.7.2", + "zod": "3.22.4" + }, + "devDependencies": { + "@types/axios-mock-adapter": "1.10.0", + "@vitest/coverage-v8": "2.0.5", + "axios-mock-adapter": "2.0.0", + "vitest": "2.0.5" + }, + "keywords": [ + "web3", + "crypto", + "ethereum", + "appkit", + "reown", + "lit", + "experimental" + ], + "author": "Reown (https://reown.com)", + "license": "Apache-2.0", + "homepage": "https://github.com/reown-com/appkit", + "repository": { + "type": "git", + "url": "git+https://github.com/reown-com/appkit.git" + }, + "bugs": { + "url": "https://github.com/reown-com/appkit/issues" + } +} diff --git a/packages/experimental/readme.md b/packages/experimental/readme.md new file mode 100644 index 0000000000..2f194961a5 --- /dev/null +++ b/packages/experimental/readme.md @@ -0,0 +1,23 @@ +#### 📚 [Documentation](https://docs.reown.com/2.0/appkit/about) + +#### 🔗 [Website](https://reown.com/appkit) + +# AppKit Experimental (@reown/appkit-experimental) + +The @reown/appkit-experimental package provides a set of cutting-edge, experimental features for Web3 developers. This package serves as a testing ground for innovative concepts and implementations that are not yet widely adopted or standardized in the blockchain ecosystem. + +## Key Characteristics + +- **Experimental Nature**: Features in this package are considered experimental and may undergo significant changes. +- **EIP Implementation**: Includes implementations of non-finalized Ethereum Improvement Proposals (EIPs). +- **Ecosystem Exploration**: Offers functionalities that are not yet widely adopted in the broader Web3 ecosystem. + +## Installation + +```bash +npm install @reown/appkit-experimental +``` + +## Smart Session + +The `@reown/appkit-experimental/smart-session` allows developers to easily integrate session-based permission handling within their dApps. Using the `grantPermissions` method, dApps can send permission requests to connected wallets. diff --git a/packages/experimental/src/smart-session/grantPermissions.ts b/packages/experimental/src/smart-session/grantPermissions.ts new file mode 100644 index 0000000000..d455309259 --- /dev/null +++ b/packages/experimental/src/smart-session/grantPermissions.ts @@ -0,0 +1,144 @@ +import { ChainController, ConnectionController, OptionsController } from '@reown/appkit-core' +import { ProviderUtil } from '@reown/appkit/store' +import { ConstantsUtil as CommonConstantsUtil } from '@reown/appkit-common' +import type { + SmartSessionGrantPermissionsRequest, + SmartSessionGrantPermissionsResponse +} from './utils/TypeUtils.js' +import { + assertWalletGrantPermissionsResponse, + extractChainAndAddress, + updateRequestSigner, + validateRequest +} from './helper/index.js' +import { CosignerService } from './utils/CosignerService.js' +import { ERROR_MESSAGES } from './schema/index.js' +import type { PermissionsCapability, WalletCapabilities } from './utils/ERC5792Types.js' +import { ERC7715_METHOD } from './utils/ConstantUtils.js' + +/** + * 1. Validate the request using the SmartSessionGrantPermissionsRequestSchema + * 2. check connected wallet supports `wallet_grantPermissions` method + * 3. check connected wallet supports permissions capabilities + * 3.1. if supported then validate request against the supported permissions capabilities of the connected wallet + * 3.2. if validation fails throw error + * 4. Add permission using CosignerService + * 5. Update request signer with the cosigner key + * 6. Call `wallet_grantPermissions` method + * 7. Validate and type guard the response + * 8. Activate the permissions using CosignerService + * 9. Return the permissions granted and the context + * @param request SmartSessionGrantPermissionsRequest + * @returns SmartSessionGrantPermissionsResponse + * + */ +export async function grantPermissions( + request: SmartSessionGrantPermissionsRequest +): Promise { + validateRequest(request) + + const isSupported = isSmartSessionSupported() + if (!isSupported) { + throw new Error('Wallet does not support `wallet_grantPermissions` method') + } + + const { activeCaipAddress } = ChainController.state + + // Ensure the namespace is supported and extract address + const chainAndAddress = extractChainAndAddress(activeCaipAddress) + if (!activeCaipAddress || !chainAndAddress) { + throw new Error(ERROR_MESSAGES.INVALID_ADDRESS) + } + // Fetch the ConnectionController client + const connectionControllerClient = ConnectionController._getClient(CommonConstantsUtil.CHAIN.EVM) + + //Check for connected wallet supports permissions capabilities + const walletCapabilities = (await connectionControllerClient.getCapabilities( + chainAndAddress.address + )) as WalletCapabilities + + const hexChainId: `0x${string}` = `0x${parseInt(chainAndAddress.chain, 10).toString(16)}` + const permissionsCapabilities = walletCapabilities?.[hexChainId]?.permissions + + if (permissionsCapabilities) { + validateRequestForSupportedPermissionsCapability(request, permissionsCapabilities) + } + + // Retrieve state values + const { projectId } = OptionsController.state + + // Instantiate CosignerService and process permissions + const cosignerService = new CosignerService(projectId) + const addPermissionResponse = await cosignerService.addPermission(activeCaipAddress, request) + + // Update request signer with the cosigner key + updateRequestSigner(request, addPermissionResponse.key) + + const rawResponse = await connectionControllerClient.grantPermissions([request]) + + // Validate and type guard the response + const response = assertWalletGrantPermissionsResponse(rawResponse) + + // Activate the permissions using CosignerService + await cosignerService.activatePermissions(activeCaipAddress, { + pci: addPermissionResponse.pci, + ...response + }) + + // Return the permissions granted and the context + return { + permissions: response.permissions, + context: addPermissionResponse.pci, + expiry: response.expiry, + address: response.address || chainAndAddress.address, + chainId: response.chainId + } +} + +export function validateRequestForSupportedPermissionsCapability( + request: SmartSessionGrantPermissionsRequest, + capabilities: PermissionsCapability +) { + if (!capabilities.supported) { + throw new Error('Wallet does not support permissions capabilities') + } + + const supportedPermissions = capabilities.permissionTypes + const supportedSigners = capabilities.signerTypes + const supportedPolicies = capabilities.policyTypes + + request.permissions.forEach(permission => { + if (!supportedPermissions.includes(permission.type)) { + throw new Error(`Permission type ${permission.type} is not supported by the connected wallet`) + } + }) + + if (!supportedSigners.includes(request.signer.type)) { + throw new Error(`Signer type ${request.signer.type} is not supported by the connected wallet`) + } + + request.policies.forEach(policy => { + if (!supportedPolicies.includes(policy.type)) { + throw new Error(`Policy type ${policy.type} is not supported by the connected wallet`) + } + }) +} + +export function isSmartSessionSupported(): boolean { + const provider = ProviderUtil.getProvider(CommonConstantsUtil.CHAIN.EVM) + + if (!provider) { + return false + } + + // If it's not a WalletConnect provider, assume smart session is supported + if (!provider.isWalletConnect) { + return true + } + + // Check if the ERC7715 method is supported in the WalletConnect session + const evmNamespace = provider.session?.namespaces?.[CommonConstantsUtil.CHAIN.EVM] + const supportedMethods = evmNamespace?.methods || [] + + return supportedMethods.includes(ERC7715_METHOD) +} diff --git a/packages/experimental/src/smart-session/helper/index.ts b/packages/experimental/src/smart-session/helper/index.ts new file mode 100644 index 0000000000..3f3f4326d7 --- /dev/null +++ b/packages/experimental/src/smart-session/helper/index.ts @@ -0,0 +1,148 @@ +import { ZodError } from 'zod' +import { ERROR_MESSAGES, SmartSessionGrantPermissionsRequestSchema } from '../schema/index.js' +import { + type AddPermissionResponse, + type KeyType, + type SmartSessionGrantPermissionsRequest, + type WalletGrantPermissionsResponse +} from '../utils/TypeUtils.js' + +export function validateRequest(request: SmartSessionGrantPermissionsRequest) { + try { + return SmartSessionGrantPermissionsRequestSchema.parse(request) + } catch (e) { + if (e instanceof ZodError) { + const formattedErrors = e.errors + .map(err => `Invalid ${err.path.join('.') || 'Unknown field'}: ${err.message}`) + .join('; ') + throw new Error(formattedErrors) + } + // Re-throw the error if it's not a ZodError + throw e + } +} + +/** + * Type guard to ensure that the value is a supported CAIP address. + * @param value + * @returns + */ +export function isValidSupportedCaipAddress( + value: unknown +): value is `eip155:${string}:${string}` | `eip155:${number}:${string}` { + return ( + Boolean(value) && + typeof value === 'string' && + value.startsWith('eip155:') && + value.split(':').length === 3 + ) +} + +/** + * Extracts the chain and address component from a supported CAIP address. + * Returns `null` if the address is invalid or unsupported. + * @param caipAddress The CAIP-10 address (e.g., "eip155:1:0x...") + * @returns The extracted address or `null` + */ +export function extractChainAndAddress(caipAddress: unknown) { + if (!isValidSupportedCaipAddress(caipAddress)) { + throw new Error(ERROR_MESSAGES.UNSUPPORTED_NAMESPACE) + } + const [, chain, address] = caipAddress.split(':') + + return chain && address?.startsWith('0x') + ? { chain, address: address as `0x${string}` } + : undefined +} + +/** + * Type guard to ensure that the response is of type WalletGrantPermissionsResponse. + * Throws an error if the response does not conform to the expected structure. + */ +export function assertWalletGrantPermissionsResponse( + response: unknown +): WalletGrantPermissionsResponse { + if (!response) { + throw new Error(ERROR_MESSAGES.NO_RESPONSE_RECEIVED) + } + if ( + typeof response === 'object' && + response !== null && + 'permissions' in response && + 'context' in response && + 'expiry' in response && + 'signer' in response && + 'chainId' in response + ) { + return response as WalletGrantPermissionsResponse + } + throw new Error(ERROR_MESSAGES.INVALID_GRANT_PERMISSIONS_RESPONSE) +} + +/** + * Updates the request signer with the new cosigner key. + * If the current signer is of type 'keys', the new cosigner key is prepended to the existing keys. + * @param request SmartSessionGrantPermissionsRequest + * @param cosignerKey The new cosigner key to be added to the request signer + */ +export function updateRequestSigner( + request: SmartSessionGrantPermissionsRequest, + cosignerKey: { type: KeyType; publicKey: `0x${string}` } +) { + switch (request.signer.type) { + case 'keys': { + // If the existing signer is of type 'keys', prepend the new cosigner key + if (Array.isArray(request.signer.data?.keys)) { + request.signer.data.keys.unshift(cosignerKey) + } + break + } + + default: + throw new Error(ERROR_MESSAGES.UNSUPPORTED_SIGNER_TYPE) + } +} + +/** + * Asserts that the given response is of type AddPermissionResponse. + * + * This function performs runtime checks to ensure that the response + * matches the expected structure. It verifies that: + * - The response is an object and not null. + * - The `pci` property is a string. + * - The `key` property is an object containing: + * - `type`: A valid KeyType ('secp256k1' or 'secp256r1'). + * - `publicKey`: A string that starts with '0x'. + * + * If any of these checks fail, an error is thrown with a descriptive message. + * + * @param response - The response object to validate. + * @throws {Error} If the response does not match the expected structure. + */ +export function assertAddPermissionResponse( + response: unknown +): asserts response is AddPermissionResponse { + if (typeof response !== 'object' || response === null) { + throw new Error('Response is not an object') + } + + const { pci, key } = response as Record + + if (typeof pci !== 'string') { + throw new Error('pci is not a string') + } + + if (typeof key !== 'object' || key === null) { + throw new Error('key is not an object') + } + + const { type, publicKey } = key as Record + + if ((type as string).toLowerCase() !== 'secp256k1' && type !== 'secp256r1') { + throw new Error('Invalid key type') + } + + if (typeof publicKey !== 'string' || !publicKey.startsWith('0x')) { + throw new Error('Invalid public key format') + } +} diff --git a/packages/experimental/src/smart-session/schema/index.ts b/packages/experimental/src/smart-session/schema/index.ts new file mode 100644 index 0000000000..59c30ffd3e --- /dev/null +++ b/packages/experimental/src/smart-session/schema/index.ts @@ -0,0 +1,122 @@ +import { z } from 'zod' +import { Operation, ParamOperator } from '../utils/TypeUtils.js' + +// Define custom error messages +export const ERROR_MESSAGES = { + UNSUPPORTED_NAMESPACE: 'Unsupported namespace', + NO_RESPONSE_RECEIVED: 'No response received from grantPermissions', + INVALID_REQUEST: 'Invalid request structure', + // GrantPermissionsRequest.chainId field + INVALID_CHAIN_ID_FORMAT: 'Invalid chainId: must start with "0x"', + INVALID_CHAIN_ID_DATA: 'Invalid chainId format: Must be a hexadecimal string starting with "0x"', + // GrantPermissionsRequest.address field + INVALID_ADDRESS: 'Invalid address: must be a string starting with "0x"', + // GrantPermissionsRequest.expiry field + INVALID_EXPIRY: 'Invalid expiry: Expiry must be a future timestamp', + + // GrantPermissionsRequest.signer field - SignerSchema + INVALID_KEYS_SIGNER: 'A set of public keys is required for multiKey signers', + UNSUPPORTED_SIGNER_TYPE: 'Unsupported signer type', + UNSUPPORTED_KEY_TYPE: 'Unsupported key type: must be secp256r1 or secp256k1', + INVALID_PUBLIC_KEY_FORMAT: 'Invalid public key: must start with "0x"', + //PermissionSchema + INVALID_PERMISSIONS: 'Invalid permissions: must be a non-empty array', + INVALID_PERMISSIONS_TYPE: 'Invalid permissions: Expected array, received object', + INVALID_PERMISSIONS_TYPE_LITERALS: 'Invalid literal value, expected "contract-call"', + //PolicySchema + INVALID_POLICIES: 'Invalid policies: must be a non-empty array', + INVALID_POLICIES_TYPE: 'Invalid policies: Expected array, received object', + + INVALID_GRANT_PERMISSIONS_RESPONSE: 'Invalid grantPermissions response' +} + +// ChainId Schema +const ChainIdSchema = z + .string() + .refine(val => val.startsWith('0x'), { + message: ERROR_MESSAGES.INVALID_CHAIN_ID_FORMAT + }) + .refine(val => /^0x[0-9a-fA-F]+$/u.test(val), { + message: ERROR_MESSAGES.INVALID_CHAIN_ID_DATA + }) + +// Address Schema +const AddressSchema = z + .string({ + invalid_type_error: ERROR_MESSAGES.INVALID_ADDRESS + }) + .startsWith('0x', { message: ERROR_MESSAGES.INVALID_ADDRESS }) + .optional() + +// Expiry Schema +const ExpirySchema = z + .number() + .positive({ message: ERROR_MESSAGES.INVALID_EXPIRY }) + .refine(value => value > Math.floor(Date.now() / 1000), { + message: ERROR_MESSAGES.INVALID_EXPIRY + }) + +// Key Schema +const KeySchema = z.object({ + type: z.enum(['secp256r1', 'secp256k1'], { + errorMap: () => ({ message: ERROR_MESSAGES.UNSUPPORTED_KEY_TYPE }) + }), + publicKey: z.string().refine(val => val.startsWith('0x'), { + message: ERROR_MESSAGES.INVALID_PUBLIC_KEY_FORMAT + }) +}) + +// Signer Schema +const SignerSchema = z.object({ + type: z.literal('keys'), + data: z.object({ + keys: z.array(KeySchema).min(1, { message: ERROR_MESSAGES.INVALID_KEYS_SIGNER }) + }) +}) + +// Argument Condition Schema +const ArgumentConditionSchema = z.object({ + operator: z.nativeEnum(ParamOperator, { errorMap: () => ({ message: 'Invalid operator type' }) }), + value: z.string().startsWith('0x', { message: ERROR_MESSAGES.INVALID_ADDRESS }) +}) + +// Function Permission Schema +const FunctionPermissionSchema = z.object({ + functionName: z.string(), + args: z.array(ArgumentConditionSchema).optional(), + valueLimit: z.string().startsWith('0x', { message: ERROR_MESSAGES.INVALID_ADDRESS }).optional(), + operation: z.nativeEnum(Operation).optional() +}) + +// Contract Call Permission Schema +const ContractCallPermissionSchema = z.object({ + type: z.literal('contract-call').refine(val => val === 'contract-call', { + message: ERROR_MESSAGES.INVALID_PERMISSIONS_TYPE_LITERALS + }), + data: z.object({ + address: z.string().startsWith('0x', { message: ERROR_MESSAGES.INVALID_ADDRESS }), + abi: z.array(z.record(z.unknown())), + functions: z.array(FunctionPermissionSchema) + }) +}) + +// Policies Schema +const PolicySchema = z.object({ + type: z.string(), + data: z.record(z.unknown()) +}) + +// Smart Session Grant Permissions Request Schema +export const SmartSessionGrantPermissionsRequestSchema = z + .object({ + chainId: ChainIdSchema, + address: AddressSchema, + expiry: ExpirySchema, + signer: SignerSchema, + permissions: z + .array(ContractCallPermissionSchema) + .nonempty({ message: ERROR_MESSAGES.INVALID_PERMISSIONS }), + policies: z.array(PolicySchema) + }) + // This ensures no extra properties are allowed + .strict() diff --git a/packages/experimental/src/smart-session/utils/ConstantUtils.ts b/packages/experimental/src/smart-session/utils/ConstantUtils.ts new file mode 100644 index 0000000000..782dffe7be --- /dev/null +++ b/packages/experimental/src/smart-session/utils/ConstantUtils.ts @@ -0,0 +1,5 @@ +export const ConstantsUtil = { + COSIGNER_BASE_URL: 'https://rpc.walletconnect.org/v1/sessions' +} + +export const ERC7715_METHOD = 'wallet_grantPermissions' diff --git a/packages/experimental/src/smart-session/utils/CosignerService.ts b/packages/experimental/src/smart-session/utils/CosignerService.ts new file mode 100644 index 0000000000..677b48ba33 --- /dev/null +++ b/packages/experimental/src/smart-session/utils/CosignerService.ts @@ -0,0 +1,107 @@ +/* eslint-disable max-classes-per-file */ +import axios, { AxiosError } from 'axios' +import { ConstantsUtil } from './ConstantUtils.js' +import type { + ActivatePermissionsRequest, + AddPermissionRequest, + AddPermissionResponse +} from './TypeUtils.js' +import { assertAddPermissionResponse } from '../helper/index.js' + +// -- Custom Error Class --------------------------------------------------- // +export class CoSignerApiError extends Error { + constructor( + public status: number, + message: string + ) { + super(message) + this.name = 'CoSignerApiError' + } +} + +// -- Helper Function for API Requests ------------------------------------- // +export async function sendCoSignerRequest< + TRequest, + TResponse, + TQueryParams extends Record +>({ + url, + request, + queryParams = {} as TQueryParams, + headers, + transformRequest +}: { + url: string + request: TRequest + queryParams?: TQueryParams + headers: Record + transformRequest?: (data: TRequest) => unknown +}): Promise { + try { + const transformedData = transformRequest ? transformRequest(request) : request + const response = await axios.post(url, transformedData, { + params: queryParams, + headers + }) + + return response.data + } catch (error) { + if (axios.isAxiosError(error)) { + const axiosError = error as AxiosError + if (axiosError.response) { + throw new CoSignerApiError( + axiosError.response.status, + JSON.stringify(axiosError.response.data) + ) + } else { + throw new CoSignerApiError(500, 'Network error') + } + } + throw error + } +} + +// -- CosignerService Class ------------------------------------------ // +export class CosignerService { + private baseUrl: string + private projectId: string + + constructor(projectId: string) { + this.baseUrl = ConstantsUtil.COSIGNER_BASE_URL + if (!projectId) { + throw new Error('Project ID must be provided') + } + this.projectId = projectId + } + + async addPermission(address: string, data: AddPermissionRequest): Promise { + const url = `${this.baseUrl}/${encodeURIComponent(address)}` + + const response = await sendCoSignerRequest< + AddPermissionRequest, + AddPermissionResponse, + { projectId: string } + >({ + url, + request: data, + queryParams: { projectId: this.projectId }, + headers: { 'Content-Type': 'application/json' } + }) + assertAddPermissionResponse(response) + + return response + } + + async activatePermissions( + address: string, + updateData: ActivatePermissionsRequest + ): Promise { + const url = `${this.baseUrl}/${encodeURIComponent(address)}/activate` + await sendCoSignerRequest({ + url, + request: updateData, + queryParams: { projectId: this.projectId }, + headers: { 'Content-Type': 'application/json' } + }) + } +} diff --git a/packages/experimental/src/smart-session/utils/ERC5792Types.ts b/packages/experimental/src/smart-session/utils/ERC5792Types.ts new file mode 100644 index 0000000000..3100a9b407 --- /dev/null +++ b/packages/experimental/src/smart-session/utils/ERC5792Types.ts @@ -0,0 +1,24 @@ +type BaseCapability = { + supported: boolean +} + +export type AtomicBatchCapability = BaseCapability + +export type PaymasterServiceCapability = BaseCapability & { + url: string + context: Record | undefined +} + +export type PermissionsCapability = BaseCapability & { + signerTypes: string[] + permissionTypes: string[] + policyTypes: string[] +} + +export type ChainCapabilities = { + atomicBatch?: AtomicBatchCapability + paymasterService?: PaymasterServiceCapability + permissions?: PermissionsCapability +} + +export type WalletCapabilities = Record<`0x${string}`, ChainCapabilities> diff --git a/packages/experimental/src/smart-session/utils/TypeUtils.ts b/packages/experimental/src/smart-session/utils/TypeUtils.ts new file mode 100644 index 0000000000..ea8f39fbc6 --- /dev/null +++ b/packages/experimental/src/smart-session/utils/TypeUtils.ts @@ -0,0 +1,113 @@ +// The types of keys that are supported for the following `key` and `keys` signer types. +export type KeyType = 'secp256r1' | 'secp256k1' + +/* + * A signer representing a multisig signer. + * Each element of `publicKeys` are all explicitly the same `KeyType`, and the public keys are hex-encoded. + */ +export type MultiKeySigner = { + type: 'keys' + data: { + keys: { + type: KeyType + publicKey: `0x${string}` + }[] + } +} + +export type Signer = MultiKeySigner + +export type SmartSessionGrantPermissionsRequest = { + chainId: `0x${string}` + address?: `0x${string}` + expiry: number + signer: Signer + permissions: Permission[] + policies: { + type: string + data: Record + }[] +} + +export type WalletGrantPermissionsResponse = SmartSessionGrantPermissionsRequest & { + context: `0x${string}` + accountMeta?: { + factory: `0x${string}` + factoryData: `0x${string}` + } + signerMeta?: { + // 7679 userOp building + userOpBuilder?: `0x${string}` + // 7710 delegation + delegationManager?: `0x${string}` + } +} + +export type SmartSessionGrantPermissionsResponse = { + chainId: `0x${string}` + address: `0x${string}` + expiry: number + permissions: Permission[] + // Context is set to `pci` + context: string +} + +// Enum for parameter operators +// eslint-disable-next-line no-shadow +export enum ParamOperator { + EQUAL = 'EQUAL', + GREATER_THAN = 'GREATER_THAN', + LESS_THAN = 'LESS_THAN' +} + +// Enum for operation types +// eslint-disable-next-line no-shadow +export enum Operation { + Call = 'Call', + DelegateCall = 'DelegateCall' +} + +// Type for a single argument condition +export type ArgumentCondition = { + operator: ParamOperator + value: `0x${string}` +} + +// Type for a single function permission +export type FunctionPermission = { + // Function name + functionName: string + // An array of conditions, each corresponding to an argument for the function + args?: ArgumentCondition[] + // Maximum value that can be transferred for this specific function call + valueLimit?: `0x${string}` + // (optional) whether this is a call or a delegatecall. Defaults to call + operation?: Operation +} +export type ContractCallPermission = { + type: 'contract-call' + data: { + address: `0x${string}` + abi: Record[] + functions: FunctionPermission[] + } +} + +// Union type for all possible permissions +export type Permission = ContractCallPermission + +//--Cosigner Types----------------------------------------------------------------------- // +export type AddPermissionRequest = SmartSessionGrantPermissionsRequest + +export type AddPermissionResponse = { + pci: string + key: { + type: KeyType + publicKey: `0x${string}` + } +} + +export type ActivatePermissionsRequest = { + pci: string + context: `0x${string}` +} & AddPermissionRequest diff --git a/packages/experimental/tests/data/abi.ts b/packages/experimental/tests/data/abi.ts new file mode 100644 index 0000000000..32215f4130 --- /dev/null +++ b/packages/experimental/tests/data/abi.ts @@ -0,0 +1,15 @@ +export const donutContractAbi = [ + { + inputs: [ + { + internalType: 'uint256', + name: 'amount', + type: 'uint256' + } + ], + name: 'purchase', + outputs: [], + stateMutability: 'payable', + type: 'function' + } +] diff --git a/packages/experimental/tests/smart-session/CosignerService.test.ts b/packages/experimental/tests/smart-session/CosignerService.test.ts new file mode 100644 index 0000000000..53f3658b84 --- /dev/null +++ b/packages/experimental/tests/smart-session/CosignerService.test.ts @@ -0,0 +1,174 @@ +import { describe, expect, it, beforeAll, beforeEach } from 'vitest' +import axios from 'axios' +import MockAdapter from 'axios-mock-adapter' +import { + sendCoSignerRequest, + CoSignerApiError, + CosignerService +} from '../../src/smart-session/utils/CosignerService' +import { ConstantsUtil } from '../../src/smart-session/utils/ConstantUtils' +import type { + SmartSessionGrantPermissionsRequest, + ActivatePermissionsRequest +} from '../../src/smart-session/utils/TypeUtils' + +// Setup mock adapter for axios +const mock = new MockAdapter(axios) + +describe('CoSigner API Tests', () => { + const projectId = 'test-project-id' + const mockAddress = '0x1234567890123456789012345678901234567890' + let cosigner: CosignerService + + beforeAll(() => { + cosigner = new CosignerService(projectId) + }) + + beforeEach(() => { + mock.reset() + }) + + // Mock data + const mockAddPermissionRequest: SmartSessionGrantPermissionsRequest = { + chainId: '0x1', + expiry: Math.floor(Date.now() / 1000) + 3600, + signer: { + type: 'keys', + data: { + keys: [{ type: 'secp256k1', publicKey: '0x123456' }] + } + }, + permissions: [ + { + type: 'contract-call', + data: { + address: '0x2E65BAfA07238666c3b239E94F32DaD3cDD6498D', + abi: [], + functions: [] + } + } + ], + policies: [] + } + + const mockActivatePermissionsRequest: ActivatePermissionsRequest = { + ...mockAddPermissionRequest, + pci: 'test-pci', + context: '0xtest-context' + } + + describe('sendCoSignerRequest', () => { + const mockUrl = 'https://example.com' + const mockHeaders = { 'Content-Type': 'application/json' } + + it('should successfully send a request and return the response', async () => { + const mockResponse = { + pci: 'test-pci', + key: { + type: 'secp256k1', + publicKey: '0xtest-key' + } + } + mock.onPost(mockUrl).reply(200, mockResponse) + + const response = await sendCoSignerRequest({ + url: mockUrl, + request: mockAddPermissionRequest, + headers: mockHeaders, + queryParams: { projectId } + }) + + expect(response).toEqual(mockResponse) + }) + + it('should throw CoSignerApiError with a response status and message for 4xx errors', async () => { + mock.onPost(mockUrl).reply(400, { error: 'Bad Request' }) + + await expect( + sendCoSignerRequest({ + url: mockUrl, + request: mockAddPermissionRequest, + headers: mockHeaders, + queryParams: { projectId } + }) + ).rejects.toThrow(CoSignerApiError) + }) + + it('should throw CoSignerApiError for network errors', async () => { + mock.onPost(mockUrl).networkError() + + await expect( + sendCoSignerRequest({ + url: mockUrl, + request: mockAddPermissionRequest, + headers: mockHeaders, + queryParams: { projectId } + }) + ).rejects.toThrow(CoSignerApiError) + }) + }) + + describe('CosignerService', () => { + describe('addPermission', () => { + it('should successfully add a permission', async () => { + const mockResponse = { + pci: 'test-pci', + key: { + type: 'secp256k1', + publicKey: '0xtest-key' + } + } + mock + .onPost(`${ConstantsUtil.COSIGNER_BASE_URL}/${encodeURIComponent(mockAddress)}`) + .reply(200, mockResponse) + + const result = await cosigner.addPermission(mockAddress, mockAddPermissionRequest) + + expect(result).toEqual(mockResponse) + }) + + it('should handle addPermission error and throw CoSignerApiError', async () => { + mock + .onPost(`${ConstantsUtil.COSIGNER_BASE_URL}/${encodeURIComponent(mockAddress)}`) + .reply(400, { error: 'Bad Request' }) + + await expect(cosigner.addPermission(mockAddress, mockAddPermissionRequest)).rejects.toThrow( + CoSignerApiError + ) + }) + }) + + describe('activatePermissions', () => { + it('should activate permissions successfully', async () => { + mock + .onPost(`${ConstantsUtil.COSIGNER_BASE_URL}/${encodeURIComponent(mockAddress)}/activate`) + .reply(200) + + await expect( + cosigner.activatePermissions(mockAddress, mockActivatePermissionsRequest) + ).resolves.toBeUndefined() + }) + + it('should handle activatePermissions error and throw CoSignerApiError', async () => { + mock + .onPost(`${ConstantsUtil.COSIGNER_BASE_URL}/${encodeURIComponent(mockAddress)}/activate`) + .reply(400, { error: 'Bad Request' }) + + await expect( + cosigner.activatePermissions(mockAddress, mockActivatePermissionsRequest) + ).rejects.toThrow(CoSignerApiError) + }) + }) + }) + + describe('CosignerService Constructor', () => { + it('should throw an error if projectId is not provided', () => { + expect(() => new CosignerService('')).toThrow('Project ID must be provided') + }) + + it('should create an instance with a valid projectId', () => { + const instance = new CosignerService('valid-project-id') + expect(instance).toBeInstanceOf(CosignerService) + }) + }) +}) diff --git a/packages/experimental/tests/smart-session/grantPermissions.test.ts b/packages/experimental/tests/smart-session/grantPermissions.test.ts new file mode 100644 index 0000000000..5573d51261 --- /dev/null +++ b/packages/experimental/tests/smart-session/grantPermissions.test.ts @@ -0,0 +1,301 @@ +import { describe, expect, it, beforeEach, vi } from 'vitest' +import { grantPermissions } from '../../src/smart-session/grantPermissions' +import { + ChainController, + ConnectionController, + OptionsController, + type ConnectionControllerClient +} from '@reown/appkit-core' +import { ProviderUtil } from '@reown/appkit/store' +import { CosignerService } from '../../src/smart-session/utils/CosignerService' +import type { SmartSessionGrantPermissionsRequest } from '../../src/smart-session/utils/TypeUtils.js' +import { + extractChainAndAddress, + isValidSupportedCaipAddress, + assertWalletGrantPermissionsResponse +} from '../../src/smart-session/helper/index.js' +import { donutContractAbi } from '../data/abi' +import { ERROR_MESSAGES } from '../../src/smart-session/schema' + +vi.mock('@reown/appkit-core') +vi.mock('@reown/appkit/store') +vi.mock('../../src/smart-session/utils/CosignerService') + +describe('grantPermissions', () => { + let mockRequest: SmartSessionGrantPermissionsRequest + const expiry = Date.now() + 1000 + beforeEach(() => { + ;(mockRequest = { + address: '0x1234567890123456789012345678901234567890', + chainId: '0x1', + expiry: expiry, + signer: { + type: 'keys', + data: { + keys: [{ type: 'secp256k1', publicKey: '0x123456' }] + } + }, + permissions: [ + { + type: 'contract-call', + data: { + address: '0x2E65BAfA07238666c3b239E94F32DaD3cDD6498D', + abi: donutContractAbi, + functions: [ + { + functionName: 'purchase' + } + ] + } + } + ], + policies: [] + }), + vi.resetAllMocks() + vi.mocked(OptionsController.state).projectId = 'test-project-id' + vi.mocked(ChainController.state).activeCaipAddress = + 'eip155:1:0x1234567890123456789012345678901234567890' + vi.mocked(ProviderUtil).getProvider = vi.fn().mockReturnValue({ + session: { + namespaces: { + eip155: { + methods: ['wallet_grantPermissions'] + } + } + } + }) + vi.mocked(CosignerService.prototype.addPermission).mockResolvedValue({ + pci: 'test-pci', + key: { + type: 'secp256k1', + publicKey: '0xtest-key' + } + }) + + vi.mocked(ConnectionController._getClient).mockReturnValue({ + getCapabilities: vi.fn().mockResolvedValue({ + '0x1': { + permissions: { + supported: true, + permissionTypes: ['contract-call'], + signerTypes: ['keys'], + policyTypes: [] + } + } + }), + grantPermissions: vi.fn().mockResolvedValue({ + permissions: [ + { + type: 'contract-call', + data: { + address: '0x2E65BAfA07238666c3b239E94F32DaD3cDD6498D', + abi: donutContractAbi, + functions: [ + { + functionName: 'purchase' + } + ] + } + } + ], + signer: { + type: 'keys', + data: { + keys: [ + { type: 'secp256k1', publicKey: '0xtest-key' }, + { type: 'secp256k1', publicKey: '0x123456' } + ] + } + }, + context: '0xcontext', + expiry: expiry, + address: '0x1234567890123456789012345678901234567890', + chainId: '0x1' + }) + } as unknown as ConnectionControllerClient) + + vi.mocked(CosignerService.prototype.activatePermissions).mockResolvedValue(undefined) + }) + + it('should successfully grant permissions and invoke required methods', async () => { + const result = await grantPermissions(mockRequest) + + expect(result).toEqual({ + permissions: [ + { + type: 'contract-call', + data: { + address: '0x2E65BAfA07238666c3b239E94F32DaD3cDD6498D', + abi: donutContractAbi, + functions: [ + { + functionName: 'purchase' + } + ] + } + } + ], + context: 'test-pci', + expiry: expiry, + address: '0x1234567890123456789012345678901234567890', + chainId: '0x1' + }) + expect(CosignerService.prototype.addPermission).toHaveBeenCalledWith( + 'eip155:1:0x1234567890123456789012345678901234567890', + mockRequest + ) + expect(CosignerService.prototype.activatePermissions).toHaveBeenCalled() + }) + + it('should throw an error for unsupported namespace', async () => { + vi.mocked(ChainController.state).activeCaipAddress = undefined + await expect(grantPermissions(mockRequest)).rejects.toThrow( + ERROR_MESSAGES.UNSUPPORTED_NAMESPACE + ) + }) + + it('should throw an error when grantPermissions returns null', async () => { + vi.mocked(ConnectionController._getClient).mockReturnValueOnce({ + getCapabilities: vi.fn().mockResolvedValue({ + '0x1': { + permissions: { + supported: true, + permissionTypes: ['contract-call'], + signerTypes: ['keys'], + policyTypes: [] + } + } + }), + grantPermissions: vi.fn().mockResolvedValue(null) + } as unknown as ConnectionControllerClient) + + await expect(grantPermissions(mockRequest)).rejects.toThrow(ERROR_MESSAGES.NO_RESPONSE_RECEIVED) + }) + + it('should handle network errors', async () => { + vi.mocked(CosignerService.prototype.addPermission).mockRejectedValue(new Error('Network error')) + await expect(grantPermissions(mockRequest)).rejects.toThrow('Network error') + }) + + it('should throw an error for invalid chainId format', async () => { + const invalidRequest = { ...mockRequest, chainId: '1' } // chainId should start with '0x' + await expect(grantPermissions(invalidRequest as any)).rejects.toThrow( + ERROR_MESSAGES.INVALID_CHAIN_ID_FORMAT + ) + }) + + it('should throw an error for invalid expiry', async () => { + const invalidRequest = { ...mockRequest, expiry: -1 } + await expect(grantPermissions(invalidRequest)).rejects.toThrow(ERROR_MESSAGES.INVALID_EXPIRY) + }) + + it('should throw an error for empty permissions', async () => { + const invalidRequest = { ...mockRequest, permissions: [] } + await expect(grantPermissions(invalidRequest)).rejects.toThrow( + ERROR_MESSAGES.INVALID_PERMISSIONS + ) + }) + + it('should throw an error for invalid policies', async () => { + const invalidRequest = { ...mockRequest, policies: {} as any } + await expect(grantPermissions(invalidRequest)).rejects.toThrow( + ERROR_MESSAGES.INVALID_POLICIES_TYPE + ) + }) + + it('should throw an error for invalid signer', async () => { + const invalidRequest = { ...mockRequest, signer: null as any } + await expect(grantPermissions(invalidRequest)).rejects.toThrow() + }) + + it('should throw an error for invalid signer type', async () => { + const invalidRequest = { ...mockRequest, signer: { type: {}, data: {} } as any } + await expect(grantPermissions(invalidRequest)).rejects.toThrow() + }) + + it('should successfully update the signer in request for valid key signer', async () => { + await grantPermissions(mockRequest) + expect(mockRequest.signer).toEqual({ + type: 'keys', + data: { + keys: [ + { type: 'secp256k1', publicKey: '0xtest-key' }, + { type: 'secp256k1', publicKey: '0x123456' } + ] + } + }) + }) + + it('should not modify the signer in request if signer type is already "keys"', async () => { + mockRequest.signer = { + type: 'keys', + data: { keys: [{ type: 'secp256k1', publicKey: '0xexisting-key' }] } + } + await grantPermissions(mockRequest) + expect(mockRequest.signer).toEqual({ + type: 'keys', + data: { + keys: [ + { type: 'secp256k1', publicKey: '0xtest-key' }, + { type: 'secp256k1', publicKey: '0xexisting-key' } + ] + } + }) + }) + + it('should throw an error when CosignerService addPermission fails', async () => { + vi.mocked(CosignerService.prototype.addPermission).mockRejectedValue( + new Error('Cosigner error') + ) + await expect(grantPermissions(mockRequest)).rejects.toThrow('Cosigner error') + }) + + it('should throw an error when ConnectionController grantPermissions fails', async () => { + vi.mocked(ConnectionController._getClient).mockReturnValueOnce({ + getCapabilities: vi.fn().mockResolvedValue({ + '0x1': { + permissions: { + supported: true, + permissionTypes: ['contract-call'], + signerTypes: ['keys'], + policyTypes: [] + } + } + }), + grantPermissions: vi.fn().mockRejectedValue(new Error('Connection error')) + } as unknown as ConnectionControllerClient) + + await expect(grantPermissions(mockRequest)).rejects.toThrow('Connection error') + }) + + it('should return undefined for an invalid address in extractAddress', () => { + const invalidCaipAddress = 'eip155:1:invalid-address' + const result = extractChainAndAddress(invalidCaipAddress) + expect(result).toBeUndefined() + }) + + it('should return a valid 0x-prefixed address from extractAddress', () => { + const validCaipAddress = 'eip155:1:0x1234567890123456789012345678901234567890' + const result = extractChainAndAddress(validCaipAddress) + expect(result?.address).toEqual('0x1234567890123456789012345678901234567890') + }) + + it('should return true for a valid CAIP address in isValidSupportedCaipAddress', () => { + const validCaipAddress = 'eip155:1:0x1234567890123456789012345678901234567890' + const isValid = isValidSupportedCaipAddress(validCaipAddress) + expect(isValid).toBe(true) + }) + + it('should return false for an invalid CAIP address in isValidSupportedCaipAddress', () => { + const invalidCaipAddress = 'invalid:namespace:0x1234567890123456789012345678901234567890' + const isValid = isValidSupportedCaipAddress(invalidCaipAddress) + expect(isValid).toBe(false) + }) + + it('should throw an error for an invalid response in assertWalletGrantPermissionsResponse', () => { + const invalidResponse = { invalid: 'data' } + expect(() => assertWalletGrantPermissionsResponse(invalidResponse)).toThrow( + ERROR_MESSAGES.INVALID_GRANT_PERMISSIONS_RESPONSE + ) + }) +}) diff --git a/packages/experimental/tests/smart-session/requestValidation.test.ts b/packages/experimental/tests/smart-session/requestValidation.test.ts new file mode 100644 index 0000000000..e56a9e362b --- /dev/null +++ b/packages/experimental/tests/smart-session/requestValidation.test.ts @@ -0,0 +1,511 @@ +import { describe, expect, it, beforeEach } from 'vitest' +import type { + ContractCallPermission, + MultiKeySigner, + SmartSessionGrantPermissionsRequest +} from '../../src/smart-session/utils/TypeUtils.js' +import { donutContractAbi } from '../data/abi.js' +import { validateRequest } from '../../src/smart-session/helper/index.js' +import { ERROR_MESSAGES } from '../../src/smart-session/schema/index.js' + +describe('smart-session/schema', () => { + let mockRequest: SmartSessionGrantPermissionsRequest + + beforeEach(() => { + mockRequest = { + chainId: '0x1', + expiry: Date.now() + 10000, + signer: { + type: 'keys', + data: { + keys: [{ type: 'secp256k1', publicKey: '0x123456' }] + } + }, + permissions: [ + { + type: 'contract-call', + data: { + address: '0x2E65BAfA07238666c3b239E94F32DaD3cDD6498D', + abi: donutContractAbi, + functions: [ + { + functionName: 'purchase' + } + ] + } + } + ], + policies: [] + } + }) + + describe('validateRequest', () => { + describe('request object validation', () => { + it('should pass for valid request', () => { + expect(() => validateRequest(mockRequest)).not.toThrow() + }) + it('should fail for missing chainId', () => { + const { chainId, ...requestWithoutChainId } = mockRequest + expect(() => validateRequest(requestWithoutChainId as any)).toThrow( + 'Invalid chainId: Required' + ) + }) + }) + describe('ChainIdSchema Validation', () => { + it('should pass for valid chainId', () => { + const request = { ...mockRequest, chainId: '0x1' as `0x${string}` } + expect(() => validateRequest(request)).not.toThrow() + }) + + it.each([ + [null, 'null'], + [undefined, 'undefined'], + [123, 'number'], + [{}, 'object'], + [[], 'array'], + ['', 'empty string'], + ['123456', 'string without 0x prefix'], + ['0x', 'only 0x'], + ['0xZZZZZZ', 'invalid hexadecimal'] + ])('should fail for %s chainId', (chainId, _description) => { + const request = { ...mockRequest, chainId } + if (chainId === undefined) { + const { chainId, ...requestWithoutChainId } = request + expect(() => validateRequest(requestWithoutChainId as any)).toThrow(/Invalid chainId/) + } else { + expect(() => validateRequest(request as any)).toThrow(/Invalid chainId/) + } + }) + + it('should handle chainIds with leading zeros', () => { + const request = { ...mockRequest, chainId: '0x01' as `0x${string}` } + expect(() => validateRequest(request)).not.toThrow() + }) + + it('should be case insensitive for hex characters', () => { + const request1 = { ...mockRequest, chainId: '0xaB1' as `0x${string}` } + const request2 = { ...mockRequest, chainId: '0xAb1' as `0x${string}` } + expect(() => validateRequest(request1)).not.toThrow() + expect(() => validateRequest(request2)).not.toThrow() + }) + }) + describe('Address field validation', () => { + it('should pass for valid Ethereum address', () => { + const request = { + ...mockRequest, + address: '0x1234567890123456789012345678901234567890' as `0x${string}` + } + expect(() => validateRequest(request)).not.toThrow() + }) + + it('should pass when address is omitted', () => { + const { address, ...requestWithoutAddress } = mockRequest + expect(() => validateRequest(requestWithoutAddress)).not.toThrow() + }) + + it('should fail for address not starting with 0x', () => { + const request = { + ...mockRequest, + address: '1234567890123456789012345678901234567890' as `0x${string}` + } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_ADDRESS) + }) + + it('should fail for empty string address', () => { + const request = { ...mockRequest, address: '' as any } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_ADDRESS) + }) + + it('should fail for non-string address', () => { + const request = { ...mockRequest, address: 123 as any } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_ADDRESS) + }) + + it('should fail for null address', () => { + const request = { ...mockRequest, address: null as any } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_ADDRESS) + }) + + it('should fail for undefined address', () => { + const request = { ...mockRequest, address: undefined } + expect(() => validateRequest(request)).not.toThrow() // Because it's optional + }) + + it('should be case insensitive for hex characters', () => { + const request = { ...mockRequest, address: ('0xAbCd' + '0'.repeat(36)) as `0x${string}` } + expect(() => validateRequest(request)).not.toThrow() + }) + + // TODO: + // Should fail for address shorter than 42 characters + // Should fail for address longer than 42 characters + // Should fail for address with spaces' + }) + + describe('Expiry field validation', () => { + const currentTimestamp = Math.floor(Date.now() / 1000) + + it('should pass for a valid future expiry', () => { + const request = { ...mockRequest, expiry: currentTimestamp + 3600 } // 1 hour in the future + expect(() => validateRequest(request)).not.toThrow() + }) + + it('should fail for a negative expiry', () => { + const request = { ...mockRequest, expiry: -1 } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_EXPIRY) + }) + + it('should fail for a zero expiry', () => { + const request = { ...mockRequest, expiry: 0 } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_EXPIRY) + }) + + it('should fail for a past expiry', () => { + const request = { ...mockRequest, expiry: currentTimestamp - 3600 } // 1 hour in the past + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_EXPIRY) + }) + + it('should fail for a current timestamp expiry', () => { + const request = { ...mockRequest, expiry: currentTimestamp } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_EXPIRY) + }) + + it('should fail for a non-number expiry', () => { + const request = { ...mockRequest, expiry: '1234567890' as any } + expect(() => validateRequest(request)).toThrow( + 'Invalid expiry: Expected number, received string' + ) + }) + + it('should fail for an undefined expiry', () => { + const { expiry, ...requestWithoutExpiry } = mockRequest + expect(() => validateRequest(requestWithoutExpiry as any)).toThrow( + 'Invalid expiry: Required' + ) + }) + + it('should fail for a null expiry', () => { + const request = { ...mockRequest, expiry: null as any } + expect(() => validateRequest(request)).toThrow( + 'Invalid expiry: Expected number, received null' + ) + }) + + it('should pass for an expiry 1 hour in the future', () => { + const request = { ...mockRequest, expiry: currentTimestamp + 3600 } + expect(() => validateRequest(request)).not.toThrow() + }) + }) + + describe('Signer field validation', () => { + it('should fail for unsupported signer', () => { + const request = { + ...mockRequest, + signer: { + type: 'key', + data: { type: 'secp256k1', publicKey: '0x1234567890abcdef' as `0x${string}` } + } as any + } + expect(() => validateRequest(request)).toThrow() + }) + + it('should pass for valid multi-key signer', () => { + const request = { + ...mockRequest, + signer: { + type: 'keys', + data: { + keys: [ + { type: 'secp256k1', publicKey: '0x1234567890abcdef' }, + { type: 'secp256r1', publicKey: '0xabcdef1234567890' } + ] + } + } as MultiKeySigner + } + expect(() => validateRequest(request)).not.toThrow() + }) + + it('should fail for empty keys array in multi-key signer', () => { + const request = { + ...mockRequest, + signer: { type: 'keys', data: { keys: [] } } as any + } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_KEYS_SIGNER) + }) + + it('should fail for missing data in multi-key signer', () => { + const request = { + ...mockRequest, + signer: { type: 'keys' } as any + } + expect(() => validateRequest(request)).toThrow('Invalid signer.data: Required') + }) + + it('should fail for missing keys in multi-key signer', () => { + const request = { + ...mockRequest, + signer: { type: 'keys', data: {} } as any + } + expect(() => validateRequest(request)).toThrow('Invalid signer.data.keys: Required') + }) + + it('should fail for non-object signer', () => { + const request = { + ...mockRequest, + signer: 'invalid' as any + } + expect(() => validateRequest(request)).toThrow( + 'Invalid signer: Expected object, received string' + ) + }) + + it('should fail for null signer', () => { + const request = { + ...mockRequest, + signer: null as any + } + expect(() => validateRequest(request)).toThrow( + 'Invalid signer: Expected object, received null' + ) + }) + + it('should fail for signer with invalid key type', () => { + const request = { + ...mockRequest, + signer: { + type: 'keys', + data: { + keys: [{ type: 'invalid', publicKey: '0x1234567890abcdef' as `0x${string}` }] + } + } as any + } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.UNSUPPORTED_KEY_TYPE) + }) + + it('should fail for signer with invalid public key format', () => { + const request = { + ...mockRequest, + signer: { + type: 'keys', + data: { + keys: [{ type: 'secp256k1', publicKey: 'invalid' as `0x${string}` }] + } + } as MultiKeySigner + } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_PUBLIC_KEY_FORMAT) + }) + }) + + describe('Permissions field validation', () => { + const validPermission = { + type: 'contract-call', + data: { + address: '0x1234567890123456789012345678901234567890', + abi: [{}], + functions: [{ functionName: 'testFunction' }] + } + } as ContractCallPermission + + it('should pass for valid permissions array', () => { + const request = { + ...mockRequest, + permissions: [validPermission] + } + expect(() => validateRequest(request)).not.toThrow() + }) + + it('should pass for multiple valid permissions', () => { + const request = { + ...mockRequest, + permissions: [validPermission, validPermission] + } + expect(() => validateRequest(request)).not.toThrow() + }) + + it('should fail for empty permissions array', () => { + const request = { + ...mockRequest, + permissions: [] + } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_PERMISSIONS) + }) + + it('should fail for non-array permissions', () => { + const request = { + ...mockRequest, + permissions: validPermission as any + } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_PERMISSIONS_TYPE) + }) + + it('should fail for invalid permission type', () => { + const request = { + ...mockRequest, + permissions: [{ ...validPermission, type: 'invalid-type' }] as any + } + expect(() => validateRequest(request)).toThrow( + `Invalid permissions.0.type: ${ERROR_MESSAGES.INVALID_PERMISSIONS_TYPE_LITERALS}` + ) + }) + + it('should fail for missing address in permission data', () => { + const invalidPermission = { + ...validPermission, + data: { ...validPermission.data, address: undefined } + } + const request = { + ...mockRequest, + permissions: [invalidPermission] as any + } + expect(() => validateRequest(request)).toThrow( + 'Invalid permissions.0.data.address: Required' + ) + }) + + it('should fail for invalid address format in permission data', () => { + const invalidPermission = { + ...validPermission, + data: { ...validPermission.data, address: '1234' } + } + const request = { + ...mockRequest, + permissions: [invalidPermission] as any + } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_ADDRESS) + }) + + it('should fail for missing abi in permission data', () => { + const invalidPermission = { + ...validPermission, + data: { ...validPermission.data, abi: undefined } + } + const request = { + ...mockRequest, + permissions: [invalidPermission] as any + } + expect(() => validateRequest(request)).toThrow('Invalid permissions.0.data.abi: Required') + }) + + it('should fail for non-array abi in permission data', () => { + const invalidPermission = { + ...validPermission, + data: { ...validPermission.data, abi: {} as any } + } + const request = { + ...mockRequest, + permissions: [invalidPermission] + } + expect(() => validateRequest(request)).toThrow( + 'Invalid permissions.0.data.abi: Expected array, received object' + ) + }) + + it('should fail for missing functions in permission data', () => { + const invalidPermission = { + ...validPermission, + data: { ...validPermission.data, functions: undefined } + } + const request = { + ...mockRequest, + permissions: [invalidPermission] as any + } + expect(() => validateRequest(request)).toThrow( + 'Invalid permissions.0.data.functions: Required' + ) + }) + + it('should fail for non-array functions in permission data', () => { + const invalidPermission = { + ...validPermission, + data: { ...validPermission.data, functions: {} as any } + } + const request = { + ...mockRequest, + permissions: [invalidPermission] + } + expect(() => validateRequest(request)).toThrow( + 'Invalid permissions.0.data.functions: Expected array, received object' + ) + }) + + it('should fail for missing functionName in function permission', () => { + const invalidPermission = { + ...validPermission, + data: { ...validPermission.data, functions: [{}] } + } + const request = { + ...mockRequest, + permissions: [invalidPermission] as any + } + expect(() => validateRequest(request)).toThrow( + 'Invalid permissions.0.data.functions.0.functionName: Required' + ) + }) + }) + + describe('Policy field validation', () => { + it('should pass for valid policies array', () => { + const request = { + ...mockRequest, + policies: [ + { type: 'someType', data: { someKey: 'someValue' } }, + { type: 'anotherType', data: { anotherKey: 'anotherValue' } } + ] + } + expect(() => validateRequest(request)).not.toThrow() + }) + + it('should pass for empty policies array', () => { + const request = { + ...mockRequest, + policies: [] + } + expect(() => validateRequest(request)).not.toThrow() + }) + + it('should fail for non-array policies', () => { + const request = { + ...mockRequest, + policies: { type: 'someType', data: {} } as any + } + expect(() => validateRequest(request)).toThrow(ERROR_MESSAGES.INVALID_POLICIES_TYPE) + }) + + it('should fail for policies with invalid structure', () => { + const request = { + ...mockRequest, + policies: [{ invalidKey: 'value' }] as any + } + expect(() => validateRequest(request)).toThrow( + 'Invalid policies.0.type: Required; Invalid policies.0.data: Required' + ) + }) + + it('should fail for policies with missing type', () => { + const request = { + ...mockRequest, + policies: [{ data: { key: 'value' } }] as any + } + expect(() => validateRequest(request)).toThrow('Invalid policies.0.type: Required') + }) + + it('should fail for policies with missing data', () => { + const request = { + ...mockRequest, + policies: [{ type: 'someType' }] as any + } + expect(() => validateRequest(request)).toThrow('Invalid policies.0.data: Required') + }) + + it('should fail for policies with non-object data', () => { + const request = { + ...mockRequest, + policies: [{ type: 'someType', data: 'invalidData' }] as any + } + expect(() => validateRequest(request)).toThrow( + 'Invalid policies.0.data: Expected object, received string' + ) + }) + }) + }) +}) diff --git a/packages/experimental/tsconfig.build.json b/packages/experimental/tsconfig.build.json new file mode 100644 index 0000000000..d736f2cb0f --- /dev/null +++ b/packages/experimental/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["**/tests"] +} diff --git a/packages/experimental/tsconfig.json b/packages/experimental/tsconfig.json new file mode 100644 index 0000000000..d9c0658fc0 --- /dev/null +++ b/packages/experimental/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "./dist/esm", + "declarationDir": "./dist/types" + }, + "extends": "../../tsconfig.json", + "include": ["src/**/*.ts", "tests", "exports"] +} diff --git a/packages/experimental/vitest.config.ts b/packages/experimental/vitest.config.ts new file mode 100644 index 0000000000..25438b4718 --- /dev/null +++ b/packages/experimental/vitest.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from 'vite' +import { configDefaults } from 'vitest/config' + +export default defineConfig({ + test: { + ...configDefaults, + globals: true, + environment: 'jsdom' + } +}) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 761bdc1bb2..57c3fab27e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,7 +27,7 @@ importers: version: 6.18.1(eslint@8.56.0)(typescript@5.3.3) '@vitest/coverage-v8': specifier: 1.1.2 - version: 1.1.2(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 1.1.2(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) danger: specifier: 11.3.1 version: 11.3.1 @@ -219,6 +219,9 @@ importers: '@reown/appkit-ethers5': specifier: workspace:* version: link:../../packages/ethers5 + '@reown/appkit-experimental': + specifier: workspace:* + version: link:../../packages/experimental '@reown/appkit-siwe': specifier: workspace:* version: link:../../packages/siwe @@ -264,6 +267,9 @@ importers: bs58: specifier: 6.0.0 version: 6.0.0 + date-fns: + specifier: 4.1.0 + version: 4.1.0 ethers: specifier: 6.13.2 version: 6.13.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -663,7 +669,7 @@ importers: version: 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-wallets': specifier: 0.19.32 - version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) + version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) '@tanstack/react-query': specifier: 5.24.8 version: 5.24.8(react@18.2.0) @@ -762,7 +768,7 @@ importers: version: 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-wallets': specifier: 0.19.32 - version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) vue: specifier: 3.4.3 version: 3.4.3(typescript@5.3.3) @@ -849,7 +855,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -907,7 +913,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -929,7 +935,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -1015,7 +1021,7 @@ importers: version: 18.2.0 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) '@vue/runtime-core': specifier: 3.4.3 version: 3.4.3 @@ -1094,7 +1100,7 @@ importers: version: 18.2.0 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -1152,7 +1158,7 @@ importers: version: 18.2.0 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) '@vue/runtime-core': specifier: 3.4.3 version: 3.4.3 @@ -1204,7 +1210,7 @@ importers: version: 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -1260,7 +1266,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -1285,7 +1291,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -1385,6 +1391,37 @@ importers: specifier: 3.4.3 version: 3.4.3(typescript@5.3.3) + packages/experimental: + dependencies: + '@reown/appkit': + specifier: workspace:* + version: link:../appkit + '@reown/appkit-common': + specifier: workspace:* + version: link:../common + '@reown/appkit-core': + specifier: workspace:* + version: link:../core + axios: + specifier: 1.7.2 + version: 1.7.2 + zod: + specifier: 3.22.4 + version: 3.22.4 + devDependencies: + '@types/axios-mock-adapter': + specifier: 1.10.0 + version: 1.10.0(axios@1.7.2) + '@vitest/coverage-v8': + specifier: 2.0.5 + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + axios-mock-adapter: + specifier: 2.0.0 + version: 2.0.0(axios@1.7.2) + vitest: + specifier: 2.0.5 + version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) + packages/polyfills: dependencies: buffer: @@ -1421,7 +1458,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: '2' - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) packages/siwe: dependencies: @@ -1533,7 +1570,7 @@ importers: version: 5.1.5 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -1564,7 +1601,7 @@ importers: version: 1.5.5 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) eslint-plugin-lit: specifier: 1.11.0 version: 1.11.0(eslint@8.57.0) @@ -1644,7 +1681,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) jsdom: specifier: 24.1.0 version: 24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -6443,6 +6480,10 @@ packages: peerDependencies: tslib: ^2.6.2 + '@types/axios-mock-adapter@1.10.0': + resolution: {integrity: sha512-Govyvy3cr8hsR6DcCoBjVMQhYyzkHdfU/hMgBw6ONOFuTrZTDxdE/rBR7Sz3qsGtVZABSK8/2rDekp5UwZ/V8A==} + deprecated: This is a stub types definition for axios-mock-adapter (https://github.com/ctimmerm/axios-mock-adapter). axios-mock-adapter provides its own type definitions, so you don't need @types/axios-mock-adapter installed! + '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -7269,6 +7310,11 @@ packages: resolution: {integrity: sha512-Mr2ZakwQ7XUAjp7pAwQWRhhK8mQQ6JAaNWSjmjxil0R8BPioMtQsTLOolGYkji1rcL++3dCqZA3zWqpT+9Ew6g==} engines: {node: '>=4'} + axios-mock-adapter@2.0.0: + resolution: {integrity: sha512-D/K0J5Zm6KvaMTnsWrBQZWLzKN9GxUFZEa0mx2qeEHXDeTugCoplWehy8y36dj5vuSjhe1u/Dol8cZ8lzzmDew==} + peerDependencies: + axios: '>= 0.17.0' + axios@1.6.7: resolution: {integrity: sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==} @@ -7971,6 +8017,9 @@ packages: resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} engines: {node: '>=0.11'} + date-fns@4.1.0: + resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==} + dayjs@1.11.10: resolution: {integrity: sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==} @@ -9304,6 +9353,10 @@ packages: resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} engines: {node: '>= 0.4'} + is-buffer@2.0.5: + resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==} + engines: {node: '>=4'} + is-bun-module@1.2.1: resolution: {integrity: sha512-AmidtEM6D6NmUiLOvvU7+IePxjEjOzra2h0pSrsfSAcXwl/83zLLXDByafUJy9k/rKK0pvXMLdwKwGHlX2Ke6Q==} @@ -17666,23 +17719,6 @@ snapshots: optionalDependencies: '@types/react': 18.2.62 - '@react-native/virtualized-lists@0.75.3(@types/react@18.2.62)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)': - dependencies: - invariant: 2.2.4 - nullthrows: 1.1.1 - react: 18.2.0 - react-native: 0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10) - optionalDependencies: - '@types/react': 18.2.62 - optional: true - - '@react-native/virtualized-lists@0.75.3(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))': - dependencies: - invariant: 2.2.4 - nullthrows: 1.1.1 - react-native: 0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10) - optional: true - '@rollup/plugin-inject@5.0.5(rollup@4.22.4)': dependencies: '@rollup/pluginutils': 5.1.2(rollup@4.22.4) @@ -18407,40 +18443,6 @@ snapshots: - tslib - utf-8-validate - '@solana/wallet-adapter-trezor@0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@trezor/connect-web': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - buffer: 6.0.3 - transitivePeerDependencies: - - '@babel/core' - - bufferutil - - encoding - - expo-constants - - expo-localization - - react-native - - supports-color - - tslib - - utf-8-validate - - '@solana/wallet-adapter-trezor@0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@trezor/connect-web': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - buffer: 6.0.3 - transitivePeerDependencies: - - '@babel/core' - - bufferutil - - encoding - - expo-constants - - expo-localization - - react-native - - supports-color - - tslib - - utf-8-validate - '@solana/wallet-adapter-trust@0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -18546,76 +18548,7 @@ snapshots: - uWebSockets.js - utf-8-validate - '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@solana/wallet-adapter-alpha': 0.1.10(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-avana': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-bitkeep': 0.3.20(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-bitpie': 0.5.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-clover': 0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coin98': 0.5.20(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coinbase': 0.1.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coinhub': 0.3.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-fractal': 0.1.8(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@solana/wallet-adapter-huobi': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-hyperpay': 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-keystone': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-krystal': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-ledger': 0.9.25(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-mathwallet': 0.9.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-neko': 0.2.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-nightly': 0.1.16(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-nufi': 0.1.17(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-onto': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-particle': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0) - '@solana/wallet-adapter-phantom': 0.9.24(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-safepal': 0.5.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-saifu': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-salmon': 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-sky': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-solflare': 0.6.28(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-solong': 0.9.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-spot': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-tokenary': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-tokenpocket': 0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-trust': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-unsafe-burner': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-walletconnect': 0.1.16(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-xdefi': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - '@azure/app-configuration' - - '@azure/cosmos' - - '@azure/data-tables' - - '@azure/identity' - - '@azure/keyvault-secrets' - - '@azure/storage-blob' - - '@babel/core' - - '@babel/runtime' - - '@capacitor/preferences' - - '@netlify/blobs' - - '@planetscale/database' - - '@react-native-async-storage/async-storage' - - '@sentry/types' - - '@upstash/redis' - - '@vercel/kv' - - bs58 - - bufferutil - - encoding - - expo-constants - - expo-localization - - ioredis - - react - - react-dom - - react-native - - supports-color - - tslib - - uWebSockets.js - - utf-8-validate - - '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@solana/wallet-adapter-alpha': 0.1.10(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-avana': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -18648,7 +18581,7 @@ snapshots: '@solana/wallet-adapter-tokenary': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-tokenpocket': 0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) '@solana/wallet-adapter-trust': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-unsafe-burner': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-walletconnect': 0.1.16(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -19607,26 +19540,6 @@ snapshots: - expo-localization - react-native - '@trezor/analytics@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': - dependencies: - '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/utils': 9.2.0(tslib@2.7.0) - tslib: 2.7.0 - transitivePeerDependencies: - - expo-constants - - expo-localization - - react-native - - '@trezor/analytics@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': - dependencies: - '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/utils': 9.2.0(tslib@2.7.0) - tslib: 2.7.0 - transitivePeerDependencies: - - expo-constants - - expo-localization - - react-native - '@trezor/blockchain-link-types@1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -19655,36 +19568,6 @@ snapshots: - react-native - utf-8-validate - '@trezor/blockchain-link-utils@1.2.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@mobily/ts-belt': 3.13.1 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/utils': 9.2.0(tslib@2.7.0) - tslib: 2.7.0 - transitivePeerDependencies: - - bufferutil - - encoding - - expo-constants - - expo-localization - - react-native - - utf-8-validate - - '@trezor/blockchain-link-utils@1.2.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@mobily/ts-belt': 3.13.1 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/utils': 9.2.0(tslib@2.7.0) - tslib: 2.7.0 - transitivePeerDependencies: - - bufferutil - - encoding - - expo-constants - - expo-localization - - react-native - - utf-8-validate - '@trezor/blockchain-link@2.3.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@solana/buffer-layout': 4.0.1 @@ -19708,52 +19591,6 @@ snapshots: - supports-color - utf-8-validate - '@trezor/blockchain-link@2.3.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@solana/buffer-layout': 4.0.1 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@trezor/blockchain-link-types': 1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10) - '@trezor/blockchain-link-utils': 1.2.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - '@trezor/utils': 9.2.0(tslib@2.7.0) - '@trezor/utxo-lib': 2.2.0(tslib@2.7.0) - '@types/web': 0.0.138 - events: 3.3.0 - ripple-lib: 1.10.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) - socks-proxy-agent: 6.1.1 - tslib: 2.7.0 - ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - bufferutil - - encoding - - expo-constants - - expo-localization - - react-native - - supports-color - - utf-8-validate - - '@trezor/blockchain-link@2.3.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@solana/buffer-layout': 4.0.1 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@trezor/blockchain-link-types': 1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10) - '@trezor/blockchain-link-utils': 1.2.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - '@trezor/utils': 9.2.0(tslib@2.7.0) - '@trezor/utxo-lib': 2.2.0(tslib@2.7.0) - '@types/web': 0.0.138 - events: 3.3.0 - ripple-lib: 1.10.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) - socks-proxy-agent: 6.1.1 - tslib: 2.7.0 - ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - bufferutil - - encoding - - expo-constants - - expo-localization - - react-native - - supports-color - - utf-8-validate - '@trezor/connect-analytics@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': dependencies: '@trezor/analytics': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) @@ -19763,24 +19600,6 @@ snapshots: - expo-localization - react-native - '@trezor/connect-analytics@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': - dependencies: - '@trezor/analytics': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - tslib: 2.7.0 - transitivePeerDependencies: - - expo-constants - - expo-localization - - react-native - - '@trezor/connect-analytics@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': - dependencies: - '@trezor/analytics': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - tslib: 2.7.0 - transitivePeerDependencies: - - expo-constants - - expo-localization - - react-native - '@trezor/connect-common@0.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': dependencies: '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) @@ -19791,26 +19610,6 @@ snapshots: - expo-localization - react-native - '@trezor/connect-common@0.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': - dependencies: - '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/utils': 9.2.0(tslib@2.7.0) - tslib: 2.7.0 - transitivePeerDependencies: - - expo-constants - - expo-localization - - react-native - - '@trezor/connect-common@0.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': - dependencies: - '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/utils': 9.2.0(tslib@2.7.0) - tslib: 2.7.0 - transitivePeerDependencies: - - expo-constants - - expo-localization - - react-native - '@trezor/connect-web@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@trezor/connect': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) @@ -19827,38 +19626,6 @@ snapshots: - supports-color - utf-8-validate - '@trezor/connect-web@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@trezor/connect': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - '@trezor/connect-common': 0.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/utils': 9.2.0(tslib@2.7.0) - tslib: 2.7.0 - transitivePeerDependencies: - - '@babel/core' - - bufferutil - - encoding - - expo-constants - - expo-localization - - react-native - - supports-color - - utf-8-validate - - '@trezor/connect-web@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@trezor/connect': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - '@trezor/connect-common': 0.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/utils': 9.2.0(tslib@2.7.0) - tslib: 2.7.0 - transitivePeerDependencies: - - '@babel/core' - - bufferutil - - encoding - - expo-constants - - expo-localization - - react-native - - supports-color - - utf-8-validate - '@trezor/connect@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@babel/preset-typescript': 7.24.7(@babel/core@7.25.2) @@ -19890,68 +19657,6 @@ snapshots: - supports-color - utf-8-validate - '@trezor/connect@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@babel/preset-typescript': 7.24.7(@babel/core@7.25.2) - '@ethereumjs/common': 4.4.0 - '@ethereumjs/tx': 5.4.0 - '@fivebinaries/coin-selection': 2.2.1 - '@trezor/blockchain-link': 2.3.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - '@trezor/blockchain-link-types': 1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10) - '@trezor/connect-analytics': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/connect-common': 0.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/protobuf': 1.2.0(tslib@2.7.0) - '@trezor/protocol': 1.2.0(tslib@2.7.0) - '@trezor/schema-utils': 1.2.0(tslib@2.7.0) - '@trezor/transport': 1.3.0(tslib@2.7.0) - '@trezor/utils': 9.2.0(tslib@2.7.0) - '@trezor/utxo-lib': 2.2.0(tslib@2.7.0) - blakejs: 1.2.1 - bs58: 5.0.0 - bs58check: 3.0.1 - cross-fetch: 4.0.0 - tslib: 2.7.0 - transitivePeerDependencies: - - '@babel/core' - - bufferutil - - encoding - - expo-constants - - expo-localization - - react-native - - supports-color - - utf-8-validate - - '@trezor/connect@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@babel/preset-typescript': 7.24.7(@babel/core@7.25.2) - '@ethereumjs/common': 4.4.0 - '@ethereumjs/tx': 5.4.0 - '@fivebinaries/coin-selection': 2.2.1 - '@trezor/blockchain-link': 2.3.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - '@trezor/blockchain-link-types': 1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10) - '@trezor/connect-analytics': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/connect-common': 0.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) - '@trezor/protobuf': 1.2.0(tslib@2.7.0) - '@trezor/protocol': 1.2.0(tslib@2.7.0) - '@trezor/schema-utils': 1.2.0(tslib@2.7.0) - '@trezor/transport': 1.3.0(tslib@2.7.0) - '@trezor/utils': 9.2.0(tslib@2.7.0) - '@trezor/utxo-lib': 2.2.0(tslib@2.7.0) - blakejs: 1.2.1 - bs58: 5.0.0 - bs58check: 3.0.1 - cross-fetch: 4.0.0 - tslib: 2.7.0 - transitivePeerDependencies: - - '@babel/core' - - bufferutil - - encoding - - expo-constants - - expo-localization - - react-native - - supports-color - - utf-8-validate - '@trezor/env-utils@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': dependencies: tslib: 2.7.0 @@ -19959,20 +19664,6 @@ snapshots: optionalDependencies: react-native: 0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10) - '@trezor/env-utils@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': - dependencies: - tslib: 2.7.0 - ua-parser-js: 1.0.39 - optionalDependencies: - react-native: 0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10) - - '@trezor/env-utils@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': - dependencies: - tslib: 2.7.0 - ua-parser-js: 1.0.39 - optionalDependencies: - react-native: 0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10) - '@trezor/protobuf@1.2.0(tslib@2.7.0)': dependencies: '@trezor/schema-utils': 1.2.0(tslib@2.7.0) @@ -20030,6 +19721,12 @@ snapshots: varuint-bitcoin: 1.1.2 wif: 4.0.0 + '@types/axios-mock-adapter@1.10.0(axios@1.7.2)': + dependencies: + axios-mock-adapter: 2.0.0(axios@1.7.2) + transitivePeerDependencies: + - axios + '@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.25.6 @@ -20424,7 +20121,7 @@ snapshots: vite: 5.2.9(@types/node@20.11.5)(terser@5.33.0) vue: 3.4.3(typescript@5.3.3) - '@vitest/coverage-v8@1.1.2(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0))': + '@vitest/coverage-v8@1.1.2(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -20443,7 +20140,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0))': + '@vitest/coverage-v8@2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -21679,6 +21376,12 @@ snapshots: axe-core@4.10.0: {} + axios-mock-adapter@2.0.0(axios@1.7.2): + dependencies: + axios: 1.7.2 + fast-deep-equal: 3.1.3 + is-buffer: 2.0.5 + axios@1.6.7: dependencies: follow-redirects: 1.15.9 @@ -22522,6 +22225,8 @@ snapshots: dependencies: '@babel/runtime': 7.25.6 + date-fns@4.1.0: {} + dayjs@1.11.10: {} debug@2.6.9: @@ -23123,8 +22828,8 @@ snapshots: '@typescript-eslint/parser': 6.18.1(eslint@8.57.0)(typescript@5.3.3) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.10.0(eslint@8.57.0) eslint-plugin-react: 7.36.1(eslint@8.57.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.57.0) @@ -23166,19 +22871,19 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0): + eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0): dependencies: '@nolyfill/is-core-module': 1.0.39 debug: 4.3.7 enhanced-resolve: 5.17.1 eslint: 8.57.0 - eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) fast-glob: 3.3.2 get-tsconfig: 4.8.1 is-bun-module: 1.2.1 is-glob: 4.0.3 optionalDependencies: - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) transitivePeerDependencies: - '@typescript-eslint/parser' - eslint-import-resolver-node @@ -23196,14 +22901,14 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): + eslint-module-utils@2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): dependencies: debug: 3.2.7 optionalDependencies: - '@typescript-eslint/parser': 6.18.1(eslint@8.57.0)(typescript@5.3.3) + '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@5.3.3) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) + eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) transitivePeerDependencies: - supports-color @@ -23235,7 +22940,7 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): + eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -23246,7 +22951,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -23257,7 +22962,7 @@ snapshots: semver: 6.3.1 tsconfig-paths: 3.15.0 optionalDependencies: - '@typescript-eslint/parser': 6.18.1(eslint@8.57.0)(typescript@5.3.3) + '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@5.3.3) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack @@ -24433,6 +24138,8 @@ snapshots: call-bind: 1.0.7 has-tostringtag: 1.0.2 + is-buffer@2.0.5: {} + is-bun-module@1.2.1: dependencies: semver: 7.6.3 @@ -26583,111 +26290,6 @@ snapshots: - typescript - utf-8-validate - react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10): - dependencies: - '@jest/create-cache-key-function': 29.7.0 - '@react-native-community/cli': 14.1.0(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10) - '@react-native-community/cli-platform-android': 14.1.0 - '@react-native-community/cli-platform-ios': 14.1.0 - '@react-native/assets-registry': 0.75.3 - '@react-native/codegen': 0.75.3(@babel/preset-env@7.25.4(@babel/core@7.25.2)) - '@react-native/community-cli-plugin': 0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@react-native/gradle-plugin': 0.75.3 - '@react-native/js-polyfills': 0.75.3 - '@react-native/normalize-colors': 0.75.3 - '@react-native/virtualized-lists': 0.75.3(@types/react@18.2.62)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0) - abort-controller: 3.0.0 - anser: 1.4.10 - ansi-regex: 5.0.1 - base64-js: 1.5.1 - chalk: 4.1.2 - commander: 9.5.0 - event-target-shim: 5.0.1 - flow-enums-runtime: 0.0.6 - glob: 7.2.3 - invariant: 2.2.4 - jest-environment-node: 29.7.0 - jsc-android: 250231.0.0 - memoize-one: 5.2.1 - metro-runtime: 0.80.12 - metro-source-map: 0.80.12 - mkdirp: 0.5.6 - nullthrows: 1.1.1 - pretty-format: 26.6.2 - promise: 8.3.0 - react: 18.2.0 - react-devtools-core: 5.3.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) - react-refresh: 0.14.2 - regenerator-runtime: 0.13.11 - scheduler: 0.24.0-canary-efb381bbf-20230505 - semver: 7.6.3 - stacktrace-parser: 0.1.10 - whatwg-fetch: 3.6.20 - ws: 6.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - yargs: 17.7.2 - optionalDependencies: - '@types/react': 18.2.62 - transitivePeerDependencies: - - '@babel/core' - - '@babel/preset-env' - - bufferutil - - encoding - - supports-color - - typescript - - utf-8-validate - optional: true - - react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10): - dependencies: - '@jest/create-cache-key-function': 29.7.0 - '@react-native-community/cli': 14.1.0(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10) - '@react-native-community/cli-platform-android': 14.1.0 - '@react-native-community/cli-platform-ios': 14.1.0 - '@react-native/assets-registry': 0.75.3 - '@react-native/codegen': 0.75.3(@babel/preset-env@7.25.4(@babel/core@7.25.2)) - '@react-native/community-cli-plugin': 0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@react-native/gradle-plugin': 0.75.3 - '@react-native/js-polyfills': 0.75.3 - '@react-native/normalize-colors': 0.75.3 - '@react-native/virtualized-lists': 0.75.3(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)) - abort-controller: 3.0.0 - anser: 1.4.10 - ansi-regex: 5.0.1 - base64-js: 1.5.1 - chalk: 4.1.2 - commander: 9.5.0 - event-target-shim: 5.0.1 - flow-enums-runtime: 0.0.6 - glob: 7.2.3 - invariant: 2.2.4 - jest-environment-node: 29.7.0 - jsc-android: 250231.0.0 - memoize-one: 5.2.1 - metro-runtime: 0.80.12 - metro-source-map: 0.80.12 - mkdirp: 0.5.6 - nullthrows: 1.1.1 - pretty-format: 26.6.2 - promise: 8.3.0 - react-devtools-core: 5.3.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) - react-refresh: 0.14.2 - regenerator-runtime: 0.13.11 - scheduler: 0.24.0-canary-efb381bbf-20230505 - semver: 7.6.3 - stacktrace-parser: 0.1.10 - whatwg-fetch: 3.6.20 - ws: 6.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - yargs: 17.7.2 - transitivePeerDependencies: - - '@babel/core' - - '@babel/preset-env' - - bufferutil - - encoding - - supports-color - - typescript - - utf-8-validate - optional: true - react-qr-reader@2.2.1(react-dom@16.13.1(react@16.13.1))(react@16.13.1): dependencies: jsqr: 1.4.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e9a6f6d14b..b681327b04 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -14,6 +14,7 @@ packages: - 'packages/ethers5' - 'packages/solana' - 'packages/cdn' + - 'packages/experimental' - 'apps/*' - 'examples/*' - 'services/*' From 789df124487f3facf22501ad570cbf6423533564 Mon Sep 17 00:00:00 2001 From: Enes Date: Tue, 8 Oct 2024 13:55:56 +0300 Subject: [PATCH 05/24] chore/upgrade solana web3js (#3033) Co-authored-by: tomiir --- .changeset/green-shoes-taste.md | 27 + apps/laboratory/package.json | 2 +- .../tests/shared/constants/index.ts | 2 +- packages/adapters/solana/package.json | 2 +- packages/appkit-utils/package.json | 2 +- packages/solana/package.json | 2 +- pnpm-lock.yaml | 995 +++++++++++++----- 7 files changed, 763 insertions(+), 269 deletions(-) create mode 100644 .changeset/green-shoes-taste.md diff --git a/.changeset/green-shoes-taste.md b/.changeset/green-shoes-taste.md new file mode 100644 index 0000000000..dd6f7111b6 --- /dev/null +++ b/.changeset/green-shoes-taste.md @@ -0,0 +1,27 @@ +--- +'@reown/appkit-adapter-solana': patch +'@reown/appkit-utils': patch +'@apps/laboratory': patch +'@reown/appkit-solana': patch +'@apps/demo': patch +'@apps/gallery': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-polkadot': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit': patch +'@reown/appkit-cdn': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-ethers': patch +'@reown/appkit-ethers5': patch +'@reown/appkit-experimental': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwe': patch +'@reown/appkit-ui': patch +'@reown/appkit-wagmi': patch +'@reown/appkit-wallet': patch +--- + +Upgrades solana/web3js deps diff --git a/apps/laboratory/package.json b/apps/laboratory/package.json index 0b809a2554..54b3b2f7ef 100644 --- a/apps/laboratory/package.json +++ b/apps/laboratory/package.json @@ -76,7 +76,7 @@ "@sentry/browser": "7.119.1", "@sentry/react": "7.92.0", "@solana/wallet-adapter-wallets": "0.19.32", - "@solana/web3.js": "1.95.2", + "@solana/web3.js": "1.95.3", "@tanstack/react-query": "5.24.8", "@wagmi/connectors": "5.1.9", "@wagmi/core": "2.13.4", diff --git a/apps/laboratory/tests/shared/constants/index.ts b/apps/laboratory/tests/shared/constants/index.ts index 6734422c85..070fa819de 100644 --- a/apps/laboratory/tests/shared/constants/index.ts +++ b/apps/laboratory/tests/shared/constants/index.ts @@ -8,5 +8,5 @@ export const DEFAULT_SESSION_PARAMS: SessionParams = { optAccounts: ['1', '2'], accept: true } -export const SECURE_WEBSITE_URL = 'https://secure.reown.com' +export const SECURE_WEBSITE_URL = 'https://secure.walletconnect.org' export const DEFAULT_CHAIN_NAME = process.env['DEFAULT_CHAIN_NAME'] || 'Ethereum' diff --git a/packages/adapters/solana/package.json b/packages/adapters/solana/package.json index 0c6c9cd735..115e5dde59 100644 --- a/packages/adapters/solana/package.json +++ b/packages/adapters/solana/package.json @@ -47,7 +47,7 @@ "@solana/wallet-adapter-base": "0.9.23", "@solana/wallet-standard-features": "1.2.0", "@solana/wallet-standard-util": "1.1.1", - "@solana/web3.js": "1.95.2", + "@solana/web3.js": "1.95.3", "@walletconnect/utils": "2.17.0", "@walletconnect/types": "2.17.0", "@walletconnect/universal-provider": "2.17.0", diff --git a/packages/appkit-utils/package.json b/packages/appkit-utils/package.json index dc9882d101..be8ae26357 100644 --- a/packages/appkit-utils/package.json +++ b/packages/appkit-utils/package.json @@ -55,7 +55,7 @@ "devDependencies": { "@coinbase/wallet-sdk": "4.0.3", "@solana/wallet-adapter-base": "0.9.23", - "@solana/web3.js": "1.95.2", + "@solana/web3.js": "1.95.3", "@vitest/coverage-v8": "2.0.5", "vitest": "2.0.5" }, diff --git a/packages/solana/package.json b/packages/solana/package.json index f35f441189..7e6dbb41bf 100644 --- a/packages/solana/package.json +++ b/packages/solana/package.json @@ -55,7 +55,7 @@ "@solana/wallet-adapter-base": "0.9.23", "@solana/wallet-standard-features": "1.2.0", "@solana/wallet-standard-util": "1.1.1", - "@solana/web3.js": "1.95.2", + "@solana/web3.js": "1.95.3", "@wallet-standard/app": "1.0.1", "@wallet-standard/base": "1.0.1", "@wallet-standard/features": "1.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 57c3fab27e..29e1ac7982 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,7 +27,7 @@ importers: version: 6.18.1(eslint@8.56.0)(typescript@5.3.3) '@vitest/coverage-v8': specifier: 1.1.2 - version: 1.1.2(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 1.1.2(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) danger: specifier: 11.3.1 version: 11.3.1 @@ -242,10 +242,10 @@ importers: version: 7.92.0(react@18.2.0) '@solana/wallet-adapter-wallets': specifier: 0.19.32 - version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) + version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) '@solana/web3.js': - specifier: 1.95.2 - version: 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + specifier: 1.95.3 + version: 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@tanstack/react-query': specifier: 5.24.8 version: 5.24.8(react@18.2.0) @@ -666,10 +666,10 @@ importers: version: link:../../packages/solana '@solana/wallet-adapter-backpack': specifier: 0.1.14 - version: 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + version: 0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-wallets': specifier: 0.19.32 - version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) + version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) '@tanstack/react-query': specifier: 5.24.8 version: 5.24.8(react@18.2.0) @@ -765,10 +765,10 @@ importers: version: link:../../packages/solana '@solana/wallet-adapter-backpack': specifier: 0.1.14 - version: 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + version: 0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-adapter-wallets': specifier: 0.19.32 - version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10) + version: 0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) vue: specifier: 3.4.3 version: 3.4.3(typescript@5.3.3) @@ -855,7 +855,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -913,7 +913,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -935,7 +935,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -971,7 +971,7 @@ importers: version: link:../../wallet '@solana/wallet-adapter-base': specifier: 0.9.23 - version: 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + version: 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-standard-features': specifier: 1.2.0 version: 1.2.0 @@ -979,8 +979,8 @@ importers: specifier: 1.1.1 version: 1.1.1 '@solana/web3.js': - specifier: 1.95.2 - version: 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + specifier: 1.95.3 + version: 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@wallet-standard/app': specifier: 1.0.1 version: 1.0.1 @@ -1021,7 +1021,7 @@ importers: version: 18.2.0 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@vue/runtime-core': specifier: 3.4.3 version: 3.4.3 @@ -1100,7 +1100,7 @@ importers: version: 18.2.0 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -1158,7 +1158,7 @@ importers: version: 18.2.0 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@vue/runtime-core': specifier: 3.4.3 version: 3.4.3 @@ -1204,13 +1204,13 @@ importers: version: 4.0.3 '@solana/wallet-adapter-base': specifier: 0.9.23 - version: 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + version: 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/web3.js': - specifier: 1.95.2 - version: 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + specifier: 1.95.3 + version: 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -1266,7 +1266,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -1291,7 +1291,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -1414,7 +1414,7 @@ importers: version: 1.10.0(axios@1.7.2) '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) axios-mock-adapter: specifier: 2.0.0 version: 2.0.0(axios@1.7.2) @@ -1458,7 +1458,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: '2' - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) packages/siwe: dependencies: @@ -1515,7 +1515,7 @@ importers: version: link:../wallet '@solana/wallet-adapter-base': specifier: 0.9.23 - version: 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + version: 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-standard-features': specifier: 1.2.0 version: 1.2.0 @@ -1523,8 +1523,8 @@ importers: specifier: 1.1.1 version: 1.1.1 '@solana/web3.js': - specifier: 1.95.2 - version: 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + specifier: 1.95.3 + version: 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@wallet-standard/app': specifier: 1.0.1 version: 1.0.1 @@ -1570,7 +1570,7 @@ importers: version: 5.1.5 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) '@walletconnect/types': specifier: 2.17.0 version: 2.17.0 @@ -1601,7 +1601,7 @@ importers: version: 1.5.5 '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) eslint-plugin-lit: specifier: 1.11.0 version: 1.11.0(eslint@8.57.0) @@ -1681,7 +1681,7 @@ importers: devDependencies: '@vitest/coverage-v8': specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0)) + version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) jsdom: specifier: 24.1.0 version: 24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -6039,8 +6039,8 @@ packages: resolution: {integrity: sha512-dPObl4ntmfOc0VAGGyyFvrqhL8UkHXmVsgbj0K9RcznKV4KB3MgjGwzo8CTSX5El5lkb0rDeEzFqvToJXRz3dw==} engines: {node: '>=16'} - '@solana/web3.js@1.95.2': - resolution: {integrity: sha512-SjlHp0G4qhuhkQQc+YXdGkI8EerCqwxvgytMgBpzMUQTafrkNant3e7pgilBGgjy/iM40ICvWBLgASTPMrQU7w==} + '@solana/web3.js@1.95.3': + resolution: {integrity: sha512-O6rPUN0w2fkNqx/Z3QJMB9L225Ex10PRDH8bTaIUPZXMPV0QP8ZpPvjQnXK+upUczlRgzHzd6SjKIha1p+I6og==} '@solflare-wallet/metamask-sdk@1.0.3': resolution: {integrity: sha512-os5Px5PTMYKGS5tzOoyjDxtOtj0jZKnbI1Uwt8+Jsw1HHIA+Ib2UACCGNhQ/un2f8sIbTfLD1WuucNMOy8KZpQ==} @@ -16120,10 +16120,10 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@fractalwagmi/solana-wallet-adapter@0.1.1(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@fractalwagmi/solana-wallet-adapter@0.1.1(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@fractalwagmi/popup-connection': 1.1.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) bs58: 5.0.0 transitivePeerDependencies: - '@solana/web3.js' @@ -16253,9 +16253,9 @@ snapshots: '@types/yargs': 17.0.33 chalk: 4.1.2 - '@jnwng/walletconnect-solana@0.2.0(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@jnwng/walletconnect-solana@0.2.0(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@walletconnect/qrcode-modal': 1.8.0 '@walletconnect/sign-client': 2.16.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@walletconnect/utils': 2.17.0 @@ -16337,7 +16337,7 @@ snapshots: '@keystonehq/bc-ur-registry': 0.5.5 '@keystonehq/bc-ur-registry-sol': 0.3.1 '@keystonehq/sdk': 0.13.1 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) bs58: 5.0.0 uuid: 8.3.2 transitivePeerDependencies: @@ -16925,10 +16925,10 @@ snapshots: crypto-js: 4.2.0 uuidv4: 6.2.13 - '@particle-network/solana-wallet@1.3.2(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)': + '@particle-network/solana-wallet@1.3.2(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)': dependencies: '@particle-network/auth': 1.3.1 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) bs58: 6.0.0 '@pkgjs/parseargs@0.11.0': @@ -16942,9 +16942,9 @@ snapshots: '@popperjs/core@2.11.8': {} - '@project-serum/sol-wallet-adapter@0.2.6(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@project-serum/sol-wallet-adapter@0.2.6(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) bs58: 4.0.1 eventemitter3: 4.0.7 @@ -17719,6 +17719,23 @@ snapshots: optionalDependencies: '@types/react': 18.2.62 + '@react-native/virtualized-lists@0.75.3(@types/react@18.2.62)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)': + dependencies: + invariant: 2.2.4 + nullthrows: 1.1.1 + react: 18.2.0 + react-native: 0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10) + optionalDependencies: + '@types/react': 18.2.62 + optional: true + + '@react-native/virtualized-lists@0.75.3(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))': + dependencies: + invariant: 2.2.4 + nullthrows: 1.1.1 + react-native: 0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10) + optional: true + '@rollup/plugin-inject@5.0.5(rollup@4.22.4)': dependencies: '@rollup/pluginutils': 5.1.2(rollup@4.22.4) @@ -18224,195 +18241,195 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/wallet-adapter-alpha@0.1.10(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-alpha@0.1.10(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-avana@0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-avana@0.1.13(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-backpack@0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-backpack@0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-base@0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-base@0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: '@solana/wallet-standard-features': 1.2.0 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@wallet-standard/base': 1.0.1 '@wallet-standard/features': 1.0.3 eventemitter3: 4.0.7 - '@solana/wallet-adapter-bitkeep@0.3.20(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-bitkeep@0.3.20(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-bitpie@0.5.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-bitpie@0.5.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-clover@0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-clover@0.4.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-coin98@0.5.20(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-coin98@0.5.20(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) bs58: 4.0.1 - '@solana/wallet-adapter-coinbase@0.1.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-coinbase@0.1.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-coinhub@0.3.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-coinhub@0.3.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-fractal@0.1.8(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@solana/wallet-adapter-fractal@0.1.8(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@fractalwagmi/solana-wallet-adapter': 0.1.1(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@fractalwagmi/solana-wallet-adapter': 0.1.1(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - react - react-dom - '@solana/wallet-adapter-huobi@0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-huobi@0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-hyperpay@0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-hyperpay@0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-keystone@0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@solana/wallet-adapter-keystone@0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: '@keystonehq/sol-keyring': 0.3.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - encoding - utf-8-validate - '@solana/wallet-adapter-krystal@0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-krystal@0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-ledger@0.9.25(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-ledger@0.9.25(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: '@ledgerhq/devices': 6.27.1 '@ledgerhq/hw-transport': 6.27.1 '@ledgerhq/hw-transport-webhid': 6.27.1 - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) buffer: 6.0.3 - '@solana/wallet-adapter-mathwallet@0.9.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-mathwallet@0.9.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-neko@0.2.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-neko@0.2.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-nightly@0.1.16(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-nightly@0.1.16(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-nufi@0.1.17(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-nufi@0.1.17(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-onto@0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-onto@0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-particle@0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)': + '@solana/wallet-adapter-particle@0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)': dependencies: - '@particle-network/solana-wallet': 1.3.2(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0) - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@particle-network/solana-wallet': 1.3.2(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - bs58 - '@solana/wallet-adapter-phantom@0.9.24(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-phantom@0.9.24(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-safepal@0.5.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-safepal@0.5.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-saifu@0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-saifu@0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-salmon@0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-salmon@0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - salmon-adapter-sdk: 1.1.1(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + salmon-adapter-sdk: 1.1.1(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-sky@0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-sky@0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-solflare@0.6.28(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-solflare@0.6.28(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-standard-chains': 1.1.0 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solflare-wallet/metamask-sdk': 1.0.3(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solflare-wallet/sdk': 1.4.2(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solflare-wallet/metamask-sdk': 1.0.3(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solflare-wallet/sdk': 1.4.2(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@wallet-standard/wallet': 1.0.1 - '@solana/wallet-adapter-solong@0.9.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-solong@0.9.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-spot@0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-spot@0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-tokenary@0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-tokenary@0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-tokenpocket@0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-tokenpocket@0.4.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-torus@0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@solana/wallet-adapter-torus@0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@toruslabs/solana-embed': 0.3.4(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(bufferutil@4.0.8)(utf-8-validate@5.0.10) assert: 2.1.0 crypto-browserify: 3.12.0 @@ -18426,10 +18443,10 @@ snapshots: - supports-color - utf-8-validate - '@solana/wallet-adapter-trezor@0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + '@solana/wallet-adapter-trezor@0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@trezor/connect-web': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) buffer: 6.0.3 transitivePeerDependencies: @@ -18443,24 +18460,115 @@ snapshots: - tslib - utf-8-validate - '@solana/wallet-adapter-trust@0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-trezor@0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@trezor/connect-web': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + buffer: 6.0.3 + transitivePeerDependencies: + - '@babel/core' + - bufferutil + - encoding + - expo-constants + - expo-localization + - react-native + - supports-color + - tslib + - utf-8-validate - '@solana/wallet-adapter-unsafe-burner@0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-trezor@0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@trezor/connect-web': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + buffer: 6.0.3 + transitivePeerDependencies: + - '@babel/core' + - bufferutil + - encoding + - expo-constants + - expo-localization + - react-native + - supports-color + - tslib + - utf-8-validate + + '@solana/wallet-adapter-trust@0.1.13(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + dependencies: + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + + '@solana/wallet-adapter-unsafe-burner@0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: '@noble/curves': 1.6.0 - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@solana/wallet-standard-features': 1.2.0 '@solana/wallet-standard-util': 1.1.1 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-walletconnect@0.1.16(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@solana/wallet-adapter-walletconnect@0.1.16(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: - '@jnwng/walletconnect-solana': 0.2.0(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@jnwng/walletconnect-solana': 0.2.0(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + transitivePeerDependencies: + - '@azure/app-configuration' + - '@azure/cosmos' + - '@azure/data-tables' + - '@azure/identity' + - '@azure/keyvault-secrets' + - '@azure/storage-blob' + - '@capacitor/preferences' + - '@netlify/blobs' + - '@planetscale/database' + - '@react-native-async-storage/async-storage' + - '@upstash/redis' + - '@vercel/kv' + - bufferutil + - ioredis + - uWebSockets.js + - utf-8-validate + + '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@solana/wallet-adapter-alpha': 0.1.10(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-avana': 0.1.13(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-bitkeep': 0.3.20(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-bitpie': 0.5.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-clover': 0.4.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coin98': 0.5.20(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coinbase': 0.1.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coinhub': 0.3.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-fractal': 0.1.8(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@solana/wallet-adapter-huobi': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-hyperpay': 0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-keystone': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-krystal': 0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-ledger': 0.9.25(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-mathwallet': 0.9.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-neko': 0.2.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-nightly': 0.1.16(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-nufi': 0.1.17(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-onto': 0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-particle': 0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0) + '@solana/wallet-adapter-phantom': 0.9.24(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-safepal': 0.5.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-saifu': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-salmon': 0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-sky': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-solflare': 0.6.28(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-solong': 0.9.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-spot': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-tokenary': 0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-tokenpocket': 0.4.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-trust': 0.1.13(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-unsafe-burner': 0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-walletconnect': 0.1.16(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-xdefi': 0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -18468,56 +18576,68 @@ snapshots: - '@azure/identity' - '@azure/keyvault-secrets' - '@azure/storage-blob' + - '@babel/core' + - '@babel/runtime' - '@capacitor/preferences' - '@netlify/blobs' - '@planetscale/database' - '@react-native-async-storage/async-storage' + - '@sentry/types' - '@upstash/redis' - '@vercel/kv' + - bs58 - bufferutil + - encoding + - expo-constants + - expo-localization - ioredis + - react + - react-dom + - react-native + - supports-color + - tslib - uWebSockets.js - utf-8-validate - '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@solana/wallet-adapter-alpha': 0.1.10(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-avana': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-bitkeep': 0.3.20(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-bitpie': 0.5.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-clover': 0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coin98': 0.5.20(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coinbase': 0.1.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coinhub': 0.3.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-fractal': 0.1.8(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@solana/wallet-adapter-huobi': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-hyperpay': 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-keystone': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-krystal': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-ledger': 0.9.25(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-mathwallet': 0.9.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-neko': 0.2.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-nightly': 0.1.16(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-nufi': 0.1.17(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-onto': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-particle': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0) - '@solana/wallet-adapter-phantom': 0.9.24(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-safepal': 0.5.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-saifu': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-salmon': 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-sky': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-solflare': 0.6.28(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-solong': 0.9.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-spot': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-tokenary': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-tokenpocket': 0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-trust': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-unsafe-burner': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-walletconnect': 0.1.16(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-xdefi': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@solana/wallet-adapter-alpha': 0.1.10(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-avana': 0.1.13(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-bitkeep': 0.3.20(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-bitpie': 0.5.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-clover': 0.4.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coin98': 0.5.20(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coinbase': 0.1.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coinhub': 0.3.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-fractal': 0.1.8(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@solana/wallet-adapter-huobi': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-hyperpay': 0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-keystone': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-krystal': 0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-ledger': 0.9.25(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-mathwallet': 0.9.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-neko': 0.2.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-nightly': 0.1.16(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-nufi': 0.1.17(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-onto': 0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-particle': 0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0) + '@solana/wallet-adapter-phantom': 0.9.24(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-safepal': 0.5.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-saifu': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-salmon': 0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-sky': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-solflare': 0.6.28(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-solong': 0.9.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-spot': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-tokenary': 0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-tokenpocket': 0.4.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-trust': 0.1.13(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-unsafe-burner': 0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-walletconnect': 0.1.16(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-xdefi': 0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -18548,45 +18668,45 @@ snapshots: - uWebSockets.js - utf-8-validate - '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(tslib@2.7.0)(utf-8-validate@5.0.10)': - dependencies: - '@solana/wallet-adapter-alpha': 0.1.10(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-avana': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-bitkeep': 0.3.20(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-bitpie': 0.5.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-clover': 0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coin98': 0.5.20(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coinbase': 0.1.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-coinhub': 0.3.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-fractal': 0.1.8(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@solana/wallet-adapter-huobi': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-hyperpay': 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-keystone': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-krystal': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-ledger': 0.9.25(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-mathwallet': 0.9.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-neko': 0.2.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-nightly': 0.1.16(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-nufi': 0.1.17(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-onto': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-particle': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0) - '@solana/wallet-adapter-phantom': 0.9.24(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-safepal': 0.5.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-saifu': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-salmon': 0.1.14(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-sky': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-solflare': 0.6.28(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-solong': 0.9.18(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-spot': 0.1.15(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-tokenary': 0.1.12(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-tokenpocket': 0.4.19(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-trust': 0.1.13(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-unsafe-burner': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-adapter-walletconnect': 0.1.16(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/wallet-adapter-xdefi': 0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-wallets@0.19.32(@babel/core@7.25.2)(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@solana/wallet-adapter-alpha': 0.1.10(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-avana': 0.1.13(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-bitkeep': 0.3.20(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-bitpie': 0.5.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-clover': 0.4.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coin98': 0.5.20(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coinbase': 0.1.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-coinhub': 0.3.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-fractal': 0.1.8(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@solana/wallet-adapter-huobi': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-hyperpay': 0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-keystone': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-krystal': 0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-ledger': 0.9.25(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-mathwallet': 0.9.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-neko': 0.2.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-nightly': 0.1.16(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-nufi': 0.1.17(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-onto': 0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-particle': 0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bs58@6.0.0) + '@solana/wallet-adapter-phantom': 0.9.24(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-safepal': 0.5.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-saifu': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-salmon': 0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-sky': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-solflare': 0.6.28(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-solong': 0.9.18(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-spot': 0.1.15(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-tokenary': 0.1.12(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-tokenpocket': 0.4.19(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-torus': 0.11.28(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-trezor': 0.1.2(@babel/core@7.25.2)(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-trust': 0.1.13(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-unsafe-burner': 0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/wallet-adapter-walletconnect': 0.1.16(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-xdefi': 0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -18617,10 +18737,10 @@ snapshots: - uWebSockets.js - utf-8-validate - '@solana/wallet-adapter-xdefi@0.1.7(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solana/wallet-adapter-xdefi@0.1.7(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@solana/wallet-standard-chains@1.1.0': dependencies: @@ -18637,7 +18757,7 @@ snapshots: '@solana/wallet-standard-chains': 1.1.0 '@solana/wallet-standard-features': 1.2.0 - '@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.25.6 '@noble/curves': 1.6.0 @@ -18659,18 +18779,18 @@ snapshots: - encoding - utf-8-validate - '@solflare-wallet/metamask-sdk@1.0.3(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solflare-wallet/metamask-sdk@1.0.3(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: '@solana/wallet-standard-features': 1.2.0 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@wallet-standard/base': 1.0.1 bs58: 5.0.0 eventemitter3: 5.0.1 uuid: 9.0.1 - '@solflare-wallet/sdk@1.4.2(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + '@solflare-wallet/sdk@1.4.2(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) bs58: 5.0.0 eventemitter3: 5.0.1 uuid: 9.0.1 @@ -19513,7 +19633,7 @@ snapshots: '@toruslabs/solana-embed@0.3.4(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.25.6 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@toruslabs/base-controllers': 2.9.0(@babel/runtime@7.25.6)(@sentry/types@7.119.1)(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@toruslabs/http-helpers': 3.4.0(@babel/runtime@7.25.6)(@sentry/types@7.119.1) '@toruslabs/openlogin-jrpc': 3.2.0(@babel/runtime@7.25.6) @@ -19540,9 +19660,29 @@ snapshots: - expo-localization - react-native + '@trezor/analytics@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': + dependencies: + '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/utils': 9.2.0(tslib@2.7.0) + tslib: 2.7.0 + transitivePeerDependencies: + - expo-constants + - expo-localization + - react-native + + '@trezor/analytics@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': + dependencies: + '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/utils': 9.2.0(tslib@2.7.0) + tslib: 2.7.0 + transitivePeerDependencies: + - expo-constants + - expo-localization + - react-native + '@trezor/blockchain-link-types@1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@trezor/type-utils': 1.1.0 '@trezor/utxo-lib': 2.2.0(tslib@2.7.0) socks-proxy-agent: 6.1.1 @@ -19556,7 +19696,7 @@ snapshots: '@trezor/blockchain-link-utils@1.2.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@mobily/ts-belt': 3.13.1 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) '@trezor/utils': 9.2.0(tslib@2.7.0) tslib: 2.7.0 @@ -19568,10 +19708,40 @@ snapshots: - react-native - utf-8-validate + '@trezor/blockchain-link-utils@1.2.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@mobily/ts-belt': 3.13.1 + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/utils': 9.2.0(tslib@2.7.0) + tslib: 2.7.0 + transitivePeerDependencies: + - bufferutil + - encoding + - expo-constants + - expo-localization + - react-native + - utf-8-validate + + '@trezor/blockchain-link-utils@1.2.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@mobily/ts-belt': 3.13.1 + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/utils': 9.2.0(tslib@2.7.0) + tslib: 2.7.0 + transitivePeerDependencies: + - bufferutil + - encoding + - expo-constants + - expo-localization + - react-native + - utf-8-validate + '@trezor/blockchain-link@2.3.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@solana/buffer-layout': 4.0.1 - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@trezor/blockchain-link-types': 1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10) '@trezor/blockchain-link-utils': 1.2.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) '@trezor/utils': 9.2.0(tslib@2.7.0) @@ -19591,6 +19761,52 @@ snapshots: - supports-color - utf-8-validate + '@trezor/blockchain-link@2.3.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@solana/buffer-layout': 4.0.1 + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@trezor/blockchain-link-types': 1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10) + '@trezor/blockchain-link-utils': 1.2.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + '@trezor/utils': 9.2.0(tslib@2.7.0) + '@trezor/utxo-lib': 2.2.0(tslib@2.7.0) + '@types/web': 0.0.138 + events: 3.3.0 + ripple-lib: 1.10.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) + socks-proxy-agent: 6.1.1 + tslib: 2.7.0 + ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + transitivePeerDependencies: + - bufferutil + - encoding + - expo-constants + - expo-localization + - react-native + - supports-color + - utf-8-validate + + '@trezor/blockchain-link@2.3.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@solana/buffer-layout': 4.0.1 + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@trezor/blockchain-link-types': 1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10) + '@trezor/blockchain-link-utils': 1.2.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + '@trezor/utils': 9.2.0(tslib@2.7.0) + '@trezor/utxo-lib': 2.2.0(tslib@2.7.0) + '@types/web': 0.0.138 + events: 3.3.0 + ripple-lib: 1.10.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) + socks-proxy-agent: 6.1.1 + tslib: 2.7.0 + ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + transitivePeerDependencies: + - bufferutil + - encoding + - expo-constants + - expo-localization + - react-native + - supports-color + - utf-8-validate + '@trezor/connect-analytics@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': dependencies: '@trezor/analytics': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) @@ -19600,6 +19816,24 @@ snapshots: - expo-localization - react-native + '@trezor/connect-analytics@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': + dependencies: + '@trezor/analytics': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + tslib: 2.7.0 + transitivePeerDependencies: + - expo-constants + - expo-localization + - react-native + + '@trezor/connect-analytics@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': + dependencies: + '@trezor/analytics': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + tslib: 2.7.0 + transitivePeerDependencies: + - expo-constants + - expo-localization + - react-native + '@trezor/connect-common@0.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': dependencies: '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) @@ -19610,6 +19844,26 @@ snapshots: - expo-localization - react-native + '@trezor/connect-common@0.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': + dependencies: + '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/utils': 9.2.0(tslib@2.7.0) + tslib: 2.7.0 + transitivePeerDependencies: + - expo-constants + - expo-localization + - react-native + + '@trezor/connect-common@0.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': + dependencies: + '@trezor/env-utils': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/utils': 9.2.0(tslib@2.7.0) + tslib: 2.7.0 + transitivePeerDependencies: + - expo-constants + - expo-localization + - react-native + '@trezor/connect-web@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@trezor/connect': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) @@ -19626,6 +19880,38 @@ snapshots: - supports-color - utf-8-validate + '@trezor/connect-web@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@trezor/connect': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + '@trezor/connect-common': 0.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/utils': 9.2.0(tslib@2.7.0) + tslib: 2.7.0 + transitivePeerDependencies: + - '@babel/core' + - bufferutil + - encoding + - expo-constants + - expo-localization + - react-native + - supports-color + - utf-8-validate + + '@trezor/connect-web@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@trezor/connect': 9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + '@trezor/connect-common': 0.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/utils': 9.2.0(tslib@2.7.0) + tslib: 2.7.0 + transitivePeerDependencies: + - '@babel/core' + - bufferutil + - encoding + - expo-constants + - expo-localization + - react-native + - supports-color + - utf-8-validate + '@trezor/connect@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': dependencies: '@babel/preset-typescript': 7.24.7(@babel/core@7.25.2) @@ -19657,6 +19943,68 @@ snapshots: - supports-color - utf-8-validate + '@trezor/connect@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@babel/preset-typescript': 7.24.7(@babel/core@7.25.2) + '@ethereumjs/common': 4.4.0 + '@ethereumjs/tx': 5.4.0 + '@fivebinaries/coin-selection': 2.2.1 + '@trezor/blockchain-link': 2.3.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + '@trezor/blockchain-link-types': 1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10) + '@trezor/connect-analytics': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/connect-common': 0.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/protobuf': 1.2.0(tslib@2.7.0) + '@trezor/protocol': 1.2.0(tslib@2.7.0) + '@trezor/schema-utils': 1.2.0(tslib@2.7.0) + '@trezor/transport': 1.3.0(tslib@2.7.0) + '@trezor/utils': 9.2.0(tslib@2.7.0) + '@trezor/utxo-lib': 2.2.0(tslib@2.7.0) + blakejs: 1.2.1 + bs58: 5.0.0 + bs58check: 3.0.1 + cross-fetch: 4.0.0 + tslib: 2.7.0 + transitivePeerDependencies: + - '@babel/core' + - bufferutil + - encoding + - expo-constants + - expo-localization + - react-native + - supports-color + - utf-8-validate + + '@trezor/connect@9.4.0(@babel/core@7.25.2)(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10)': + dependencies: + '@babel/preset-typescript': 7.24.7(@babel/core@7.25.2) + '@ethereumjs/common': 4.4.0 + '@ethereumjs/tx': 5.4.0 + '@fivebinaries/coin-selection': 2.2.1 + '@trezor/blockchain-link': 2.3.0(bufferutil@4.0.8)(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)(utf-8-validate@5.0.10) + '@trezor/blockchain-link-types': 1.2.0(bufferutil@4.0.8)(tslib@2.7.0)(utf-8-validate@5.0.10) + '@trezor/connect-analytics': 1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/connect-common': 0.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0) + '@trezor/protobuf': 1.2.0(tslib@2.7.0) + '@trezor/protocol': 1.2.0(tslib@2.7.0) + '@trezor/schema-utils': 1.2.0(tslib@2.7.0) + '@trezor/transport': 1.3.0(tslib@2.7.0) + '@trezor/utils': 9.2.0(tslib@2.7.0) + '@trezor/utxo-lib': 2.2.0(tslib@2.7.0) + blakejs: 1.2.1 + bs58: 5.0.0 + bs58check: 3.0.1 + cross-fetch: 4.0.0 + tslib: 2.7.0 + transitivePeerDependencies: + - '@babel/core' + - bufferutil + - encoding + - expo-constants + - expo-localization + - react-native + - supports-color + - utf-8-validate + '@trezor/env-utils@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': dependencies: tslib: 2.7.0 @@ -19664,6 +20012,20 @@ snapshots: optionalDependencies: react-native: 0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10) + '@trezor/env-utils@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': + dependencies: + tslib: 2.7.0 + ua-parser-js: 1.0.39 + optionalDependencies: + react-native: 0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10) + + '@trezor/env-utils@1.2.0(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10))(tslib@2.7.0)': + dependencies: + tslib: 2.7.0 + ua-parser-js: 1.0.39 + optionalDependencies: + react-native: 0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10) + '@trezor/protobuf@1.2.0(tslib@2.7.0)': dependencies: '@trezor/schema-utils': 1.2.0(tslib@2.7.0) @@ -20121,7 +20483,7 @@ snapshots: vite: 5.2.9(@types/node@20.11.5)(terser@5.33.0) vue: 3.4.3(typescript@5.3.3) - '@vitest/coverage-v8@1.1.2(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0))': + '@vitest/coverage-v8@1.1.2(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -20140,7 +20502,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0))': + '@vitest/coverage-v8@2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -22828,8 +23190,8 @@ snapshots: '@typescript-eslint/parser': 6.18.1(eslint@8.57.0)(typescript@5.3.3) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.10.0(eslint@8.57.0) eslint-plugin-react: 7.36.1(eslint@8.57.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.57.0) @@ -22871,19 +23233,19 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0): + eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0): dependencies: '@nolyfill/is-core-module': 1.0.39 debug: 4.3.7 enhanced-resolve: 5.17.1 eslint: 8.57.0 - eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) fast-glob: 3.3.2 get-tsconfig: 4.8.1 is-bun-module: 1.2.1 is-glob: 4.0.3 optionalDependencies: - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) transitivePeerDependencies: - '@typescript-eslint/parser' - eslint-import-resolver-node @@ -22901,14 +23263,14 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): + eslint-module-utils@2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): dependencies: debug: 3.2.7 optionalDependencies: - '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/parser': 6.18.1(eslint@8.57.0)(typescript@5.3.3) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) + eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) transitivePeerDependencies: - supports-color @@ -22940,7 +23302,7 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): + eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -22951,7 +23313,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -22962,7 +23324,7 @@ snapshots: semver: 6.3.1 tsconfig-paths: 3.15.0 optionalDependencies: - '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@5.3.3) + '@typescript-eslint/parser': 6.18.1(eslint@8.57.0)(typescript@5.3.3) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack @@ -26290,6 +26652,111 @@ snapshots: - typescript - utf-8-validate + react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10): + dependencies: + '@jest/create-cache-key-function': 29.7.0 + '@react-native-community/cli': 14.1.0(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10) + '@react-native-community/cli-platform-android': 14.1.0 + '@react-native-community/cli-platform-ios': 14.1.0 + '@react-native/assets-registry': 0.75.3 + '@react-native/codegen': 0.75.3(@babel/preset-env@7.25.4(@babel/core@7.25.2)) + '@react-native/community-cli-plugin': 0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@react-native/gradle-plugin': 0.75.3 + '@react-native/js-polyfills': 0.75.3 + '@react-native/normalize-colors': 0.75.3 + '@react-native/virtualized-lists': 0.75.3(@types/react@18.2.62)(react-native@0.75.3(@babel/core@7.25.2)(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0) + abort-controller: 3.0.0 + anser: 1.4.10 + ansi-regex: 5.0.1 + base64-js: 1.5.1 + chalk: 4.1.2 + commander: 9.5.0 + event-target-shim: 5.0.1 + flow-enums-runtime: 0.0.6 + glob: 7.2.3 + invariant: 2.2.4 + jest-environment-node: 29.7.0 + jsc-android: 250231.0.0 + memoize-one: 5.2.1 + metro-runtime: 0.80.12 + metro-source-map: 0.80.12 + mkdirp: 0.5.6 + nullthrows: 1.1.1 + pretty-format: 26.6.2 + promise: 8.3.0 + react: 18.2.0 + react-devtools-core: 5.3.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) + react-refresh: 0.14.2 + regenerator-runtime: 0.13.11 + scheduler: 0.24.0-canary-efb381bbf-20230505 + semver: 7.6.3 + stacktrace-parser: 0.1.10 + whatwg-fetch: 3.6.20 + ws: 6.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + yargs: 17.7.2 + optionalDependencies: + '@types/react': 18.2.62 + transitivePeerDependencies: + - '@babel/core' + - '@babel/preset-env' + - bufferutil + - encoding + - supports-color + - typescript + - utf-8-validate + optional: true + + react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10): + dependencies: + '@jest/create-cache-key-function': 29.7.0 + '@react-native-community/cli': 14.1.0(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10) + '@react-native-community/cli-platform-android': 14.1.0 + '@react-native-community/cli-platform-ios': 14.1.0 + '@react-native/assets-registry': 0.75.3 + '@react-native/codegen': 0.75.3(@babel/preset-env@7.25.4(@babel/core@7.25.2)) + '@react-native/community-cli-plugin': 0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@react-native/gradle-plugin': 0.75.3 + '@react-native/js-polyfills': 0.75.3 + '@react-native/normalize-colors': 0.75.3 + '@react-native/virtualized-lists': 0.75.3(react-native@0.75.3(@babel/core@7.25.2)(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)) + abort-controller: 3.0.0 + anser: 1.4.10 + ansi-regex: 5.0.1 + base64-js: 1.5.1 + chalk: 4.1.2 + commander: 9.5.0 + event-target-shim: 5.0.1 + flow-enums-runtime: 0.0.6 + glob: 7.2.3 + invariant: 2.2.4 + jest-environment-node: 29.7.0 + jsc-android: 250231.0.0 + memoize-one: 5.2.1 + metro-runtime: 0.80.12 + metro-source-map: 0.80.12 + mkdirp: 0.5.6 + nullthrows: 1.1.1 + pretty-format: 26.6.2 + promise: 8.3.0 + react-devtools-core: 5.3.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) + react-refresh: 0.14.2 + regenerator-runtime: 0.13.11 + scheduler: 0.24.0-canary-efb381bbf-20230505 + semver: 7.6.3 + stacktrace-parser: 0.1.10 + whatwg-fetch: 3.6.20 + ws: 6.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + yargs: 17.7.2 + transitivePeerDependencies: + - '@babel/core' + - '@babel/preset-env' + - bufferutil + - encoding + - supports-color + - typescript + - utf-8-validate + optional: true + react-qr-reader@2.2.1(react-dom@16.13.1(react@16.13.1))(react@16.13.1): dependencies: jsqr: 1.4.0 @@ -26711,10 +27178,10 @@ snapshots: safer-buffer@2.1.2: {} - salmon-adapter-sdk@1.1.1(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)): + salmon-adapter-sdk@1.1.1(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)): dependencies: - '@project-serum/sol-wallet-adapter': 0.2.6(@solana/web3.js@1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/web3.js': 1.95.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@project-serum/sol-wallet-adapter': 0.2.6(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + '@solana/web3.js': 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) eventemitter3: 4.0.7 saxes@6.0.0: From 2ad7793c8f87c5e8fb719a97380839e2c6e361cb Mon Sep 17 00:00:00 2001 From: tomiir Date: Tue, 8 Oct 2024 08:36:27 -0300 Subject: [PATCH 06/24] chore: rollback secure site url change (#3031) Co-authored-by: Enes From bfe3d0f9b7b4ebf638c85b2e17e159eff478222a Mon Sep 17 00:00:00 2001 From: Enes Date: Tue, 8 Oct 2024 14:57:29 +0300 Subject: [PATCH 07/24] chore: remove old client packages (#3015) --- apps/laboratory/package.json | 4 - examples/react-solana/package.json | 2 +- examples/react-solana/src/App.tsx | 19 +- examples/vue-solana/package.json | 2 +- examples/vue-solana/src/App.vue | 24 +- packages/cdn/lib/ethers.ts | 3 +- packages/cdn/lib/ethers5.ts | 3 +- packages/cdn/lib/solana.ts | 3 + packages/cdn/lib/wagmi.ts | 4 +- packages/cdn/package.json | 8 +- packages/ethers/.eslintrc.json | 4 - packages/ethers/.npmignore | 11 - packages/ethers/CHANGELOG.md | 245 ----------------- packages/ethers/exports/index.ts | 21 -- packages/ethers/exports/react.tsx | 71 ----- packages/ethers/exports/vue.ts | 58 ---- packages/ethers/package.json | 89 ------- packages/ethers/readme.md | 9 - packages/ethers/tsconfig.json | 9 - packages/ethers5/.eslintrc.json | 4 - packages/ethers5/.npmignore | 11 - packages/ethers5/CHANGELOG.md | 245 ----------------- packages/ethers5/exports/index.ts | 21 -- packages/ethers5/exports/react.tsx | 72 ----- packages/ethers5/exports/vue.ts | 60 ----- packages/ethers5/package.json | 90 ------- packages/ethers5/readme.md | 9 - packages/ethers5/tsconfig.json | 9 - packages/solana/CHANGELOG.md | 245 ----------------- packages/solana/README.md | 11 - packages/solana/exports/index.ts | 21 -- packages/solana/exports/options.ts | 5 - packages/solana/exports/react.tsx | 51 ---- packages/solana/exports/vue.ts | 63 ----- packages/solana/package.json | 116 -------- packages/solana/tsconfig.json | 9 - packages/wagmi/.eslintrc.json | 4 - packages/wagmi/.npmignore | 11 - packages/wagmi/CHANGELOG.md | 245 ----------------- packages/wagmi/exports/index.ts | 28 -- packages/wagmi/exports/react/config.ts | 0 packages/wagmi/exports/react/index.ts | 40 --- packages/wagmi/exports/vue.ts | 36 --- packages/wagmi/package.json | 103 -------- packages/wagmi/readme.md | 11 - packages/wagmi/tests/adapter.test.ts | 56 ---- packages/wagmi/tests/mocks/adapter.mock.ts | 44 --- packages/wagmi/tsconfig.json | 9 - pnpm-lock.yaml | 294 ++------------------- 49 files changed, 68 insertions(+), 2444 deletions(-) create mode 100644 packages/cdn/lib/solana.ts delete mode 100644 packages/ethers/.eslintrc.json delete mode 100644 packages/ethers/.npmignore delete mode 100644 packages/ethers/CHANGELOG.md delete mode 100644 packages/ethers/exports/index.ts delete mode 100644 packages/ethers/exports/react.tsx delete mode 100644 packages/ethers/exports/vue.ts delete mode 100644 packages/ethers/package.json delete mode 100644 packages/ethers/readme.md delete mode 100644 packages/ethers/tsconfig.json delete mode 100644 packages/ethers5/.eslintrc.json delete mode 100644 packages/ethers5/.npmignore delete mode 100644 packages/ethers5/CHANGELOG.md delete mode 100644 packages/ethers5/exports/index.ts delete mode 100644 packages/ethers5/exports/react.tsx delete mode 100644 packages/ethers5/exports/vue.ts delete mode 100644 packages/ethers5/package.json delete mode 100644 packages/ethers5/readme.md delete mode 100644 packages/ethers5/tsconfig.json delete mode 100644 packages/solana/CHANGELOG.md delete mode 100644 packages/solana/README.md delete mode 100644 packages/solana/exports/index.ts delete mode 100644 packages/solana/exports/options.ts delete mode 100644 packages/solana/exports/react.tsx delete mode 100644 packages/solana/exports/vue.ts delete mode 100644 packages/solana/package.json delete mode 100644 packages/solana/tsconfig.json delete mode 100644 packages/wagmi/.eslintrc.json delete mode 100644 packages/wagmi/.npmignore delete mode 100644 packages/wagmi/CHANGELOG.md delete mode 100644 packages/wagmi/exports/index.ts delete mode 100644 packages/wagmi/exports/react/config.ts delete mode 100644 packages/wagmi/exports/react/index.ts delete mode 100644 packages/wagmi/exports/vue.ts delete mode 100644 packages/wagmi/package.json delete mode 100644 packages/wagmi/readme.md delete mode 100644 packages/wagmi/tests/adapter.test.ts delete mode 100644 packages/wagmi/tests/mocks/adapter.mock.ts delete mode 100644 packages/wagmi/tsconfig.json diff --git a/apps/laboratory/package.json b/apps/laboratory/package.json index 54b3b2f7ef..7fff2a8ea4 100644 --- a/apps/laboratory/package.json +++ b/apps/laboratory/package.json @@ -83,11 +83,7 @@ "@walletconnect/universal-provider": "2.17.0", "@walletconnect/utils": "2.17.0", "@reown/appkit": "workspace:*", - "@reown/appkit-ethers": "workspace:*", - "@reown/appkit-ethers5": "workspace:*", "@reown/appkit-siwe": "workspace:*", - "@reown/appkit-solana": "workspace:*", - "@reown/appkit-wagmi": "workspace:*", "@reown/appkit-wallet": "workspace:*", "@reown/appkit-experimental": "workspace:*", "@reown/appkit-adapter-solana": "workspace:*", diff --git a/examples/react-solana/package.json b/examples/react-solana/package.json index b99626df7d..9260515bdd 100644 --- a/examples/react-solana/package.json +++ b/examples/react-solana/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "@reown/appkit": "workspace:*", - "@reown/appkit-solana": "workspace:*", + "@reown/appkit-adapter-solana": "workspace:*", "@tanstack/react-query": "5.24.8", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/examples/react-solana/src/App.tsx b/examples/react-solana/src/App.tsx index d07b8c6ca5..09345a862e 100644 --- a/examples/react-solana/src/App.tsx +++ b/examples/react-solana/src/App.tsx @@ -4,7 +4,8 @@ import { useAppKitEvents, useAppKitState, useAppKitTheme -} from '@reown/appkit-solana/react' +} from '@reown/appkit/react' +import { SolanaAdapter } from '@reown/appkit-adapter-solana/react' import { PhantomWalletAdapter, HuobiWalletAdapter, @@ -23,6 +24,16 @@ const networks = [solana, solanaTestnet, solanaDevnet] // 3. Create modal createAppKit({ + adapters: [ + new SolanaAdapter({ + wallets: [ + new HuobiWalletAdapter(), + new PhantomWalletAdapter(), + new SolflareWalletAdapter(), + new TrustWalletAdapter() + ] + }) + ], networks, metadata: { name: 'AppKit React Example', @@ -32,12 +43,6 @@ createAppKit({ }, projectId, themeMode: 'light', - wallets: [ - new HuobiWalletAdapter(), - new PhantomWalletAdapter(), - new SolflareWalletAdapter(), - new TrustWalletAdapter() - ], themeVariables: { '--w3m-color-mix': '#00DCFF', '--w3m-color-mix-strength': 20 diff --git a/examples/vue-solana/package.json b/examples/vue-solana/package.json index f939bf1271..c76e756de1 100644 --- a/examples/vue-solana/package.json +++ b/examples/vue-solana/package.json @@ -9,7 +9,7 @@ "@solana/wallet-adapter-backpack": "0.1.14", "@solana/wallet-adapter-wallets": "0.19.32", "@reown/appkit": "workspace:*", - "@reown/appkit-solana": "workspace:*", + "@reown/appkit-adapter-solana": "workspace:*", "vue": "3.4.3" }, "devDependencies": { diff --git a/examples/vue-solana/src/App.vue b/examples/vue-solana/src/App.vue index d4b3f2d2ba..ef4cdedb3b 100644 --- a/examples/vue-solana/src/App.vue +++ b/examples/vue-solana/src/App.vue @@ -7,6 +7,13 @@ import { useAppKitState, useAppKitTheme } from '@reown/appkit/vue' +import { SolanaAdapter } from '@reown/appkit-adapter-solana/react' +import { + PhantomWalletAdapter, + HuobiWalletAdapter, + SolflareWalletAdapter, + TrustWalletAdapter +} from '@solana/wallet-adapter-wallets' import { BackpackWalletAdapter } from '@solana/wallet-adapter-backpack' import { PhantomWalletAdapter, @@ -26,6 +33,16 @@ const networks = [solana, solanaTestnet, solanaDevnet] // 3. Create modal createAppKit({ + adapters: [ + new SolanaAdapter({ + wallets: [ + new HuobiWalletAdapter(), + new PhantomWalletAdapter(), + new SolflareWalletAdapter(), + new TrustWalletAdapter() + ] + }) + ], metadata: { name: 'AppKit React Example', description: 'AppKit React Example', @@ -35,13 +52,6 @@ createAppKit({ projectId, themeMode: 'light', networks, - wallets: [ - new BackpackWalletAdapter(), - new HuobiWalletAdapter(), - new PhantomWalletAdapter(), - new SolflareWalletAdapter(), - new TrustWalletAdapter() - ], themeVariables: { '--w3m-color-mix': '#00DCFF', '--w3m-color-mix-strength': 20 diff --git a/packages/cdn/lib/ethers.ts b/packages/cdn/lib/ethers.ts index 0c7e31c0df..4bd4dc6c51 100644 --- a/packages/cdn/lib/ethers.ts +++ b/packages/cdn/lib/ethers.ts @@ -1,2 +1,3 @@ import '@reown/appkit-polyfills' -export * as AppKit from '@reown/appkit-ethers' +export * as AppKit from '@reown/appkit' +export * as AppKitEthers from '@reown/appkit-adapter-ethers' diff --git a/packages/cdn/lib/ethers5.ts b/packages/cdn/lib/ethers5.ts index 35840bd489..c378e018c7 100644 --- a/packages/cdn/lib/ethers5.ts +++ b/packages/cdn/lib/ethers5.ts @@ -1,2 +1,3 @@ import '@reown/appkit-polyfills' -export * as AppKit from '@reown/appkit-ethers5' +export * as AppKit from '@reown/appkit' +export * as AppKitEthers5 from '@reown/appkit-adapter-ethers5' diff --git a/packages/cdn/lib/solana.ts b/packages/cdn/lib/solana.ts new file mode 100644 index 0000000000..f7b563b0fe --- /dev/null +++ b/packages/cdn/lib/solana.ts @@ -0,0 +1,3 @@ +import '@reown/appkit-polyfills' +export * as AppKit from '@reown/appkit' +export * as AppKitSolana from '@reown/appkit-adapter-solana' diff --git a/packages/cdn/lib/wagmi.ts b/packages/cdn/lib/wagmi.ts index 7150ebffac..8376ab3a91 100644 --- a/packages/cdn/lib/wagmi.ts +++ b/packages/cdn/lib/wagmi.ts @@ -1,6 +1,6 @@ import '@reown/appkit-polyfills' -export * as AppKit from '@reown/appkit-wagmi' +export * as AppKit from '@reown/appkit' +export * as AppKitWagmi from '@reown/appkit-adapter-wagmi' export * as Viem from 'viem' -export * as Chains from 'viem/chains' export * as Connectors from '@wagmi/connectors' export * as WagmiCore from '@wagmi/core' diff --git a/packages/cdn/package.json b/packages/cdn/package.json index f189b11e04..8e7dc8fd59 100644 --- a/packages/cdn/package.json +++ b/packages/cdn/package.json @@ -25,9 +25,11 @@ } }, "dependencies": { - "@reown/appkit-wagmi": "workspace:*", - "@reown/appkit-ethers": "workspace:*", - "@reown/appkit-ethers5": "workspace:*", + "@reown/appkit": "workspace:*", + "@reown/appkit-adapter-wagmi": "workspace:*", + "@reown/appkit-adapter-ethers": "workspace:*", + "@reown/appkit-adapter-ethers5": "workspace:*", + "@reown/appkit-adapter-solana": "workspace:*", "@reown/appkit-polyfills": "workspace:*", "@wagmi/connectors": "5.1.9", "@wagmi/core": "2.13.4", diff --git a/packages/ethers/.eslintrc.json b/packages/ethers/.eslintrc.json deleted file mode 100644 index 0f959f167e..0000000000 --- a/packages/ethers/.eslintrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": ["plugin:require-extensions/recommended", "../../.eslintrc.json"], - "plugins": ["require-extensions"] -} diff --git a/packages/ethers/.npmignore b/packages/ethers/.npmignore deleted file mode 100644 index 8d672eb83c..0000000000 --- a/packages/ethers/.npmignore +++ /dev/null @@ -1,11 +0,0 @@ -*.log -*.env -.eslintrc.json -.turbo -tests -src -exports -node_modules -package-lock.json -tsconfig.json -index.ts diff --git a/packages/ethers/CHANGELOG.md b/packages/ethers/CHANGELOG.md deleted file mode 100644 index f6e66a0a6a..0000000000 --- a/packages/ethers/CHANGELOG.md +++ /dev/null @@ -1,245 +0,0 @@ -# @reown/appkit-ethers - -## 1.0.7 - -### Patch Changes - -- [#2977](https://github.com/reown-com/appkit/pull/2977) [`d45545d`](https://github.com/reown-com/appkit/commit/d45545ddd4073c35214db273b090ae8b4df9ef61) Thanks [@magiziz](https://github.com/magiziz)! - Fixed an issue where email line separator was not showing when social logins were disabled and `emailShowWallets` was set to false. - -- [#2990](https://github.com/reown-com/appkit/pull/2990) [`c2e391d`](https://github.com/reown-com/appkit/commit/c2e391d832aa3b5a1c2850cc49467bd4ef1e56f9) Thanks [@zoruka](https://github.com/zoruka)! - Fixes external connectors not appearing when using Solana adapter - -- [#2998](https://github.com/reown-com/appkit/pull/2998) [`e1081e9`](https://github.com/reown-com/appkit/commit/e1081e957b3ed73c068d6092923b59b0e27815d1) Thanks [@zoruka](https://github.com/zoruka)! - Fixes failing to connect with extension wallets on Solana Adapter - -- [#2985](https://github.com/reown-com/appkit/pull/2985) [`b949143`](https://github.com/reown-com/appkit/commit/b949143a0838810f7ae17a85e4c17acae10b888c) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates wagmi adapter to pass all custom wagmi configs to the createConfig function - -- [#3001](https://github.com/reown-com/appkit/pull/3001) [`6ad2530`](https://github.com/reown-com/appkit/commit/6ad253000261e60ddc0f60b341a658da6636bd3e) Thanks [@tomiir](https://github.com/tomiir)! - Adds FRAME_READY event for W3mFrameProvider - -- [#2989](https://github.com/reown-com/appkit/pull/2989) [`d40f978`](https://github.com/reown-com/appkit/commit/d40f978fe685fbc9599cdac36a99b12ec4350d3c) Thanks [@zoruka](https://github.com/zoruka)! - Disable names feature flow for Solana networks - -- Updated dependencies [[`d45545d`](https://github.com/reown-com/appkit/commit/d45545ddd4073c35214db273b090ae8b4df9ef61), [`c2e391d`](https://github.com/reown-com/appkit/commit/c2e391d832aa3b5a1c2850cc49467bd4ef1e56f9), [`e1081e9`](https://github.com/reown-com/appkit/commit/e1081e957b3ed73c068d6092923b59b0e27815d1), [`b949143`](https://github.com/reown-com/appkit/commit/b949143a0838810f7ae17a85e4c17acae10b888c), [`6ad2530`](https://github.com/reown-com/appkit/commit/6ad253000261e60ddc0f60b341a658da6636bd3e), [`d40f978`](https://github.com/reown-com/appkit/commit/d40f978fe685fbc9599cdac36a99b12ec4350d3c)]: - - @reown/appkit-adapter-ethers@1.0.7 - - @reown/appkit@1.0.7 - - @reown/appkit-utils@1.0.7 - - @reown/appkit-common@1.0.7 - - @reown/appkit-polyfills@1.0.7 - - @reown/appkit-siwe@1.0.7 - - @reown/appkit-wallet@1.0.7 - -## 1.0.6 - -### Patch Changes - -- [#2970](https://github.com/reown-com/appkit/pull/2970) [`e6a36a7`](https://github.com/reown-com/appkit/commit/e6a36a746e85ced1f89fc1d7227e25df1559f063) Thanks [@magiziz](https://github.com/magiziz)! - Introducing debug mode. This is useful for seeing UI alerts while debugging. - - **Example usage** - - ```ts - import { createAppKit } from '@reown/appkit/react' - import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' - import { mainnet } from '@reown/appkit/networks' - - const wagmiAdapter = new WagmiAdapter({ - ssr: true, - networks: [mainnet], - projectId: 'YOUR_PROJECT_ID' - }) - - const modal = createAppKit({ - adapters: [wagmiAdapter], - networks: [mainnet], - projectId: 'YOUR_PROJECT_ID', - debug: true // Optional - defaults to false - }) - ``` - -- [#2984](https://github.com/reown-com/appkit/pull/2984) [`b5444bd`](https://github.com/reown-com/appkit/commit/b5444bdd454d370cf3f17267d457cd46de10a5b9) Thanks [@magiziz](https://github.com/magiziz)! - Changed logger imports to not cause the webpack bundler to throw a CommonJS module error. - -- [#2974](https://github.com/reown-com/appkit/pull/2974) [`0563711`](https://github.com/reown-com/appkit/commit/05637111aba940af5f46215336268294675322fd) Thanks [@magiziz](https://github.com/magiziz)! - Added create wallet flow in connect modal - -- Updated dependencies [[`e6a36a7`](https://github.com/reown-com/appkit/commit/e6a36a746e85ced1f89fc1d7227e25df1559f063), [`b5444bd`](https://github.com/reown-com/appkit/commit/b5444bdd454d370cf3f17267d457cd46de10a5b9), [`0563711`](https://github.com/reown-com/appkit/commit/05637111aba940af5f46215336268294675322fd)]: - - @reown/appkit-adapter-ethers@1.0.6 - - @reown/appkit@1.0.6 - - @reown/appkit-utils@1.0.6 - - @reown/appkit-common@1.0.6 - - @reown/appkit-polyfills@1.0.6 - - @reown/appkit-siwe@1.0.6 - - @reown/appkit-wallet@1.0.6 - -## 1.0.5 - -### Patch Changes - -- [#2872](https://github.com/reown-com/appkit/pull/2872) [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513) Thanks [@zoruka](https://github.com/zoruka)! - Get correct data from session namespaces and set it for approved caip networks data on UniversalProvider usage" - -- [#2937](https://github.com/reown-com/appkit/pull/2937) [`97dd79d`](https://github.com/reown-com/appkit/commit/97dd79df711201d5b7450fb10544f063975e6cb6) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates adapter packages dependency managements - -- [#2919](https://github.com/reown-com/appkit/pull/2919) [`e2bacfd`](https://github.com/reown-com/appkit/commit/e2bacfd0aaa9a83060d3181678c42dd9cc90293b) Thanks [@zoruka](https://github.com/zoruka)! - Adds batched call for solana_signAllTransactions RPC call on Solana WalletConnectProvider - -- [#2872](https://github.com/reown-com/appkit/pull/2872) [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513) Thanks [@zoruka](https://github.com/zoruka)! - Implement the correct logic for getting available networks when using universal provider - -- [#2927](https://github.com/reown-com/appkit/pull/2927) [`865320c`](https://github.com/reown-com/appkit/commit/865320c709bb76a61ec88c786c6b2a354c8b4b8b) Thanks [@enesozturk](https://github.com/enesozturk)! - Refactors setting active CAIP address and aligns ethers5 adapter with ethers - -- [#2920](https://github.com/reown-com/appkit/pull/2920) [`eeb9207`](https://github.com/reown-com/appkit/commit/eeb92079b4bb37d2cb9db68f51bcdeb87bd83af3) Thanks [@ignaciosantise](https://github.com/ignaciosantise)! - fix: use usdt abi for usdt transactions - -- [#2916](https://github.com/reown-com/appkit/pull/2916) [`cc35726`](https://github.com/reown-com/appkit/commit/cc357269ec04c6372c50d3bf00c674bfe182128b) Thanks [@ignaciosantise](https://github.com/ignaciosantise)! - fix: override ens profile picture if resolved - -- [#2934](https://github.com/reown-com/appkit/pull/2934) [`6faa782`](https://github.com/reown-com/appkit/commit/6faa7829c73b98430f1d8873bd9caf6c90046f2e) Thanks [@enesozturk](https://github.com/enesozturk)! - Fixes swap amount calculation to prevent floating numbers - -- [#2947](https://github.com/reown-com/appkit/pull/2947) [`bad570a`](https://github.com/reown-com/appkit/commit/bad570a9806785854cea4573cfb1e5bfb4e4a8fb) Thanks [@magiziz](https://github.com/magiziz)! - Replaced multi-account screen with single account screen when only one account is connected - -- [#2944](https://github.com/reown-com/appkit/pull/2944) [`8baf998`](https://github.com/reown-com/appkit/commit/8baf998133d0bbab4f87f15a0337d4b1452912d7) Thanks [@tomiir](https://github.com/tomiir)! - Fix issue where wagmis useDisconnect hook would not disconnect appkit internally - -- Updated dependencies [[`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513), [`97dd79d`](https://github.com/reown-com/appkit/commit/97dd79df711201d5b7450fb10544f063975e6cb6), [`e2bacfd`](https://github.com/reown-com/appkit/commit/e2bacfd0aaa9a83060d3181678c42dd9cc90293b), [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513), [`865320c`](https://github.com/reown-com/appkit/commit/865320c709bb76a61ec88c786c6b2a354c8b4b8b), [`eeb9207`](https://github.com/reown-com/appkit/commit/eeb92079b4bb37d2cb9db68f51bcdeb87bd83af3), [`cc35726`](https://github.com/reown-com/appkit/commit/cc357269ec04c6372c50d3bf00c674bfe182128b), [`6faa782`](https://github.com/reown-com/appkit/commit/6faa7829c73b98430f1d8873bd9caf6c90046f2e), [`bad570a`](https://github.com/reown-com/appkit/commit/bad570a9806785854cea4573cfb1e5bfb4e4a8fb), [`8baf998`](https://github.com/reown-com/appkit/commit/8baf998133d0bbab4f87f15a0337d4b1452912d7)]: - - @reown/appkit@1.0.5 - - @reown/appkit-adapter-ethers@1.0.5 - - @reown/appkit-utils@1.0.5 - - @reown/appkit-common@1.0.5 - - @reown/appkit-polyfills@1.0.5 - - @reown/appkit-siwe@1.0.5 - - @reown/appkit-wallet@1.0.5 - -## 1.0.4 - -### Patch Changes - -- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. - -- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet - -- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: - - @reown/appkit-adapter-ethers@1.0.4 - - @reown/appkit@1.0.4 - - @reown/appkit-utils@1.0.4 - - @reown/appkit-common@1.0.4 - - @reown/appkit-polyfills@1.0.4 - - @reown/appkit-siwe@1.0.4 - - @reown/appkit-wallet@1.0.4 - -## 1.0.3 - -### Patch Changes - -- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional - -- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains - -- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls - -- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: - - @reown/appkit-wallet@1.0.3 - - @reown/appkit-adapter-ethers@1.0.3 - - @reown/appkit@1.0.3 - - @reown/appkit-utils@1.0.3 - - @reown/appkit-common@1.0.3 - - @reown/appkit-polyfills@1.0.3 - - @reown/appkit-siwe@1.0.3 - -## 1.0.2 - -### Patch Changes - -- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session - -- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection - -- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension - -- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors - -- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys - -- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: - - @reown/appkit-adapter-ethers@1.0.2 - - @reown/appkit-wallet@1.0.2 - - @reown/appkit@1.0.2 - - @reown/appkit-utils@1.0.2 - - @reown/appkit-common@1.0.2 - - @reown/appkit-polyfills@1.0.2 - - @reown/appkit-siwe@1.0.2 - -## 1.0.1 - -### Patch Changes - -- [#54](https://github.com/WalletConnect/web3modal/pull/54) [`dc6dd8d`](https://github.com/WalletConnect/web3modal/commit/dc6dd8d37cbe79ae3b0bcaf7bdace1fe6ad11b09) Thanks [@tomiir](https://github.com/tomiir)! - Makes packages public - -- Updated dependencies [[`dc6dd8d`](https://github.com/WalletConnect/web3modal/commit/dc6dd8d37cbe79ae3b0bcaf7bdace1fe6ad11b09)]: - - @reown/appkit-adapter-ethers@1.0.1 - - @reown/appkit@1.0.1 - - @reown/appkit-utils@1.0.1 - - @reown/appkit-common@1.0.1 - - @reown/appkit-polyfills@1.0.1 - - @reown/appkit-siwe@1.0.1 - - @reown/appkit-wallet@1.0.1 - -## 1.0.0 - -### Major Changes - -- [#53](https://github.com/WalletConnect/web3modal/pull/53) [`f4a378d`](https://github.com/WalletConnect/web3modal/commit/f4a378de8bf67f296ab5cc2d730533e7362ba36a) Thanks [@tomiir](https://github.com/tomiir)! - Reown v1.0.0 - -### Patch Changes - -- [#49](https://github.com/WalletConnect/web3modal/pull/49) [`e678965`](https://github.com/WalletConnect/web3modal/commit/e67896504762ea2220aaedb3202077eec83fdc7f) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates prop names, adapter names, network exported path name - -- [#52](https://github.com/WalletConnect/web3modal/pull/52) [`3d62df8`](https://github.com/WalletConnect/web3modal/commit/3d62df8e0f29977ee82f96f17fbbac66f39ae6a6) Thanks [@zoruka](https://github.com/zoruka)! - Fix network availability and wagmi reconnect - -- Updated dependencies [[`e678965`](https://github.com/WalletConnect/web3modal/commit/e67896504762ea2220aaedb3202077eec83fdc7f), [`3d62df8`](https://github.com/WalletConnect/web3modal/commit/3d62df8e0f29977ee82f96f17fbbac66f39ae6a6), [`f4a378d`](https://github.com/WalletConnect/web3modal/commit/f4a378de8bf67f296ab5cc2d730533e7362ba36a)]: - - @reown/appkit-adapter-ethers@1.0.0 - - @reown/appkit@1.0.0 - - @reown/appkit-utils@1.0.0 - - @reown/appkit-common@1.0.0 - - @reown/appkit-polyfills@1.0.0 - - @reown/appkit-siwe@1.0.0 - - @reown/appkit-wallet@1.0.0 - -## 0.0.5 - -### Patch Changes - -- [#45](https://github.com/WalletConnect/web3modal/pull/45) [`395398c`](https://github.com/WalletConnect/web3modal/commit/395398c7c943142776da2ea8011205e600d8ab86) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates RPC urls project id query params dynamically - -- [#46](https://github.com/WalletConnect/web3modal/pull/46) [`756ab0d`](https://github.com/WalletConnect/web3modal/commit/756ab0d9f7b86abc6b1a4831197058176618d9ef) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates sdk type and sdk version values - -- [#42](https://github.com/WalletConnect/web3modal/pull/42) [`8c90093`](https://github.com/WalletConnect/web3modal/commit/8c90093f724dc1ba4e86f7101fac8772b58fae04) Thanks [@tomiir](https://github.com/tomiir)! - Fix circular dependency in OptionsController - -- Updated dependencies [[`395398c`](https://github.com/WalletConnect/web3modal/commit/395398c7c943142776da2ea8011205e600d8ab86), [`756ab0d`](https://github.com/WalletConnect/web3modal/commit/756ab0d9f7b86abc6b1a4831197058176618d9ef), [`8c90093`](https://github.com/WalletConnect/web3modal/commit/8c90093f724dc1ba4e86f7101fac8772b58fae04)]: - - @reown/appkit@0.0.5 - - @reown/appkit-common@0.0.5 - - @reown/appkit-adapter-ethers@0.0.5 - - @reown/appkit-utils@0.0.5 - - @reown/appkit-polyfills@0.0.5 - - @reown/appkit-siwe@0.0.5 - - @reown/appkit-wallet@0.0.5 - -## 0.0.4 - -### Patch Changes - -- [#38](https://github.com/WalletConnect/web3modal/pull/38) [`89fb054`](https://github.com/WalletConnect/web3modal/commit/89fb054d7e2513b80940c73101dc395e7ea2694b) Thanks [@tomiir](https://github.com/tomiir)! - Base reown package rename setup. - -- Updated dependencies [[`89fb054`](https://github.com/WalletConnect/web3modal/commit/89fb054d7e2513b80940c73101dc395e7ea2694b)]: - - @reown/appkit-adapter-ethers@0.0.4 - - @reown/appkit-utils@0.0.4 - - @reown/appkit-polyfills@0.0.4 - - @reown/appkit@0.0.4 - - @reown/appkit-common@0.0.4 - - @reown/appkit-wallet@0.0.4 - - @reown/appkit-siwe@0.0.4 - -## 0.0.3 - -### Patch Changes - -- [#28](https://github.com/WalletConnect/web3modal/pull/28) [`91d0296`](https://github.com/WalletConnect/web3modal/commit/91d02963cbe3c2d06b74801b519ce23dd30ff797) Thanks [@tomiir](https://github.com/tomiir)! - Package setup. Reset Changelogs - -- [#12](https://github.com/WalletConnect/web3modal/pull/12) [`51eff9f`](https://github.com/WalletConnect/web3modal/commit/51eff9f82c296b0ba2b5ab33af92a1fa54a77f7a) Thanks [@tomiir](https://github.com/tomiir)! - Adds test vitest.workspace file - -- Updated dependencies [[`91d0296`](https://github.com/WalletConnect/web3modal/commit/91d02963cbe3c2d06b74801b519ce23dd30ff797), [`51eff9f`](https://github.com/WalletConnect/web3modal/commit/51eff9f82c296b0ba2b5ab33af92a1fa54a77f7a)]: - - @reown/appkit-adapter-ethers@0.0.3 - - @reown/appkit@0.0.3 - - @reown/appkit-common@0.0.3 - - @reown/appkit-polyfills@0.0.3 - - @reown/appkit-utils@0.0.3 - - @reown/appkit-siwe@0.0.3 - - @reown/appkit-wallet@0.0.3 diff --git a/packages/ethers/exports/index.ts b/packages/ethers/exports/index.ts deleted file mode 100644 index 59f08c128c..0000000000 --- a/packages/ethers/exports/index.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { AppKit } from '@reown/appkit' -import type { AppKitOptions } from '@reown/appkit' -import { EthersAdapter, type AdapterOptions } from '@reown/appkit-adapter-ethers' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Types ------------------------------------------------------------- -export type { AdapterOptions } from '@reown/appkit-adapter-ethers' - -// -- Setup ------------------------------------------------------------- -export type EthersAppKitOptions = Omit & - AdapterOptions - -export function createAppKit(options: EthersAppKitOptions) { - const ethersAdapter = new EthersAdapter() - - return new AppKit({ - ...options, - sdkVersion: `html-ethers-${packageJson.version}`, - adapters: [ethersAdapter] - }) -} diff --git a/packages/ethers/exports/react.tsx b/packages/ethers/exports/react.tsx deleted file mode 100644 index 022e134189..0000000000 --- a/packages/ethers/exports/react.tsx +++ /dev/null @@ -1,71 +0,0 @@ -'use client' - -import { AppKit, AccountController, CoreHelperUtil } from '@reown/appkit' -import type { AppKitOptions } from '@reown/appkit' -import { EthersAdapter, type AdapterOptions } from '@reown/appkit-adapter-ethers' -import { getAppKit } from '@reown/appkit/library/react' -import { useSnapshot } from 'valtio' -import type { CaipNetwork } from '@reown/appkit-common' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Types ------------------------------------------------------------- -export type { AdapterOptions } from '@reown/appkit-adapter-ethers' - -// -- Setup ------------------------------------------------------------------- -let appkit: AppKit | undefined = undefined -let ethersAdapter: EthersAdapter | undefined = undefined - -export type EthersAppKitOptions = Omit & - AdapterOptions - -export function createAppKit(options: EthersAppKitOptions) { - ethersAdapter = new EthersAdapter() - appkit = new AppKit({ - ...options, - sdkVersion: `react-ethers-${packageJson.version}`, - adapters: [ethersAdapter] - }) - getAppKit(appkit) - - return appkit -} - -// -- Hooks ------------------------------------------------------------------- -export function useDisconnect() { - async function disconnect() { - await ethersAdapter?.disconnect() - } - - return { - disconnect - } -} - -export function useSwitchNetwork() { - // Breaking change - async function switchNetwork(caipNetwork: CaipNetwork) { - await ethersAdapter?.switchNetwork(caipNetwork) - } - - return { - switchNetwork - } -} - -export function useAppkitAccount() { - const { caipAddress, status } = useSnapshot(AccountController.state) - - return { - address: CoreHelperUtil.getPlainAddress(caipAddress), - isConnected: Boolean(caipAddress), - status - } -} - -export { - useAppKitTheme, - useAppKit, - useAppKitState, - useAppKitEvents, - useWalletInfo -} from '@reown/appkit/library/react' diff --git a/packages/ethers/exports/vue.ts b/packages/ethers/exports/vue.ts deleted file mode 100644 index 69ae50931e..0000000000 --- a/packages/ethers/exports/vue.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { AppKit } from '@reown/appkit' -import type { AppKitOptions } from '@reown/appkit' -import { EthersAdapter, type AdapterOptions } from '@reown/appkit-adapter-ethers' -import { getAppKit } from '@reown/appkit/library/vue' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Types ------------------------------------------------------------- -export type { AdapterOptions } from '@reown/appkit-adapter-ethers' - -// -- Setup ------------------------------------------------------------------- -let appkit: AppKit | undefined = undefined -let ethersAdapter: EthersAdapter | undefined = undefined - -type EthersAppKitOptions = Omit & - AdapterOptions - -export function createAppKit(options: EthersAppKitOptions) { - ethersAdapter = new EthersAdapter() - appkit = new AppKit({ - ...options, - sdkVersion: `vue-ethers-${packageJson.version}`, - adapters: [ethersAdapter] - }) - getAppKit(appkit) - - return appkit -} - -// -- Composites -------------------------------------------------------------- -export function useDisconnect() { - async function disconnect() { - await ethersAdapter?.disconnect() - } - - return { - disconnect - } -} - -export function useSwitchNetwork() { - // Implement this -} - -export function useAppKitAccount() { - // Reimplement this -} - -export function useAppKitError() { - // Reimplement this -} - -export { - useAppKitTheme, - useAppKit, - useAppKitState, - useAppKitEvents, - useWalletInfo -} from '@reown/appkit/library/vue' diff --git a/packages/ethers/package.json b/packages/ethers/package.json deleted file mode 100644 index ba65433ebd..0000000000 --- a/packages/ethers/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "name": "@reown/appkit-ethers", - "version": "1.0.7", - "type": "module", - "main": "./dist/esm/exports/index.js", - "types": "./dist/types/exports/index.d.ts", - "files": [ - "dist", - "!tsconfig.tsbuildinfo" - ], - "exports": { - ".": { - "types": "./dist/types/exports/index.d.ts", - "import": "./dist/esm/exports/index.js", - "default": "./dist/esm/exports/index.js" - }, - "./react": { - "types": "./dist/types/exports/react.d.ts", - "import": "./dist/esm/exports/react.js", - "default": "./dist/esm/exports/react.js" - }, - "./vue": { - "types": "./dist/types/exports/vue.d.ts", - "import": "./dist/esm/exports/vue.js", - "default": "./dist/esm/exports/vue.js" - } - }, - "typesVersions": { - "*": { - "react": [ - "./dist/types/exports/react.d.ts" - ], - "vue": [ - "./dist/types/exports/vue.d.ts" - ] - } - }, - "scripts": { - "build:clean": "rm -rf dist", - "build": "tsc --build", - "watch": "tsc --watch", - "typecheck": "tsc --noEmit", - "lint": "eslint . --ext .js,.jsx,.ts,.tsx" - }, - "dependencies": { - "@coinbase/wallet-sdk": "4.0.3", - "@walletconnect/utils": "2.17.0", - "@reown/appkit": "workspace:*", - "@reown/appkit-adapter-ethers": "workspace:*", - "@reown/appkit-common": "workspace:*", - "@reown/appkit-wallet": "workspace:*", - "@reown/appkit-polyfills": "workspace:*", - "@reown/appkit-utils": "workspace:*", - "@reown/appkit-siwe": "workspace:*", - "valtio": "1.11.2" - }, - "peerDependencies": { - "ethers": ">=6.0.0", - "react": ">=17", - "react-dom": ">=17", - "vue": ">=3" - }, - "devDependencies": { - "react": "18.2.0", - "react-dom": "18.2.0", - "vue": "3.4.3" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - }, - "vue": { - "optional": true - } - }, - "author": "Reown (https://reown.com)", - "license": "Apache-2.0", - "homepage": "https://github.com/reown-com/appkit", - "repository": { - "type": "git", - "url": "git+https://github.com/reown-com/appkit.git" - }, - "bugs": { - "url": "https://github.com/reown-com/appkit/issues" - } -} diff --git a/packages/ethers/readme.md b/packages/ethers/readme.md deleted file mode 100644 index 8509753a5a..0000000000 --- a/packages/ethers/readme.md +++ /dev/null @@ -1,9 +0,0 @@ -#### 📚 [Documentation](https://docs.reown.com/2.0/appkit/about) - -#### 🔎 [Examples](https://github.com/WalletConnect/web3modal-examples) - -#### 🔗 [Website](https://reown.com/appkit) - -# AppKit - -Your on-ramp to web3 multichain. AppKit is a versatile library that makes it super easy to connect users with your Dapp and start interacting with the blockchain. diff --git a/packages/ethers/tsconfig.json b/packages/ethers/tsconfig.json deleted file mode 100644 index bd87eda07b..0000000000 --- a/packages/ethers/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "outDir": "./dist/esm", - "declarationDir": "./dist/types" - }, - "extends": "../../tsconfig.json", - "include": ["exports", "package.json"] -} diff --git a/packages/ethers5/.eslintrc.json b/packages/ethers5/.eslintrc.json deleted file mode 100644 index 0f959f167e..0000000000 --- a/packages/ethers5/.eslintrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": ["plugin:require-extensions/recommended", "../../.eslintrc.json"], - "plugins": ["require-extensions"] -} diff --git a/packages/ethers5/.npmignore b/packages/ethers5/.npmignore deleted file mode 100644 index 8d672eb83c..0000000000 --- a/packages/ethers5/.npmignore +++ /dev/null @@ -1,11 +0,0 @@ -*.log -*.env -.eslintrc.json -.turbo -tests -src -exports -node_modules -package-lock.json -tsconfig.json -index.ts diff --git a/packages/ethers5/CHANGELOG.md b/packages/ethers5/CHANGELOG.md deleted file mode 100644 index 18a07a387e..0000000000 --- a/packages/ethers5/CHANGELOG.md +++ /dev/null @@ -1,245 +0,0 @@ -# @reown/appkit-ethers5 - -## 1.0.7 - -### Patch Changes - -- [#2977](https://github.com/reown-com/appkit/pull/2977) [`d45545d`](https://github.com/reown-com/appkit/commit/d45545ddd4073c35214db273b090ae8b4df9ef61) Thanks [@magiziz](https://github.com/magiziz)! - Fixed an issue where email line separator was not showing when social logins were disabled and `emailShowWallets` was set to false. - -- [#2990](https://github.com/reown-com/appkit/pull/2990) [`c2e391d`](https://github.com/reown-com/appkit/commit/c2e391d832aa3b5a1c2850cc49467bd4ef1e56f9) Thanks [@zoruka](https://github.com/zoruka)! - Fixes external connectors not appearing when using Solana adapter - -- [#2998](https://github.com/reown-com/appkit/pull/2998) [`e1081e9`](https://github.com/reown-com/appkit/commit/e1081e957b3ed73c068d6092923b59b0e27815d1) Thanks [@zoruka](https://github.com/zoruka)! - Fixes failing to connect with extension wallets on Solana Adapter - -- [#2985](https://github.com/reown-com/appkit/pull/2985) [`b949143`](https://github.com/reown-com/appkit/commit/b949143a0838810f7ae17a85e4c17acae10b888c) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates wagmi adapter to pass all custom wagmi configs to the createConfig function - -- [#3001](https://github.com/reown-com/appkit/pull/3001) [`6ad2530`](https://github.com/reown-com/appkit/commit/6ad253000261e60ddc0f60b341a658da6636bd3e) Thanks [@tomiir](https://github.com/tomiir)! - Adds FRAME_READY event for W3mFrameProvider - -- [#2989](https://github.com/reown-com/appkit/pull/2989) [`d40f978`](https://github.com/reown-com/appkit/commit/d40f978fe685fbc9599cdac36a99b12ec4350d3c) Thanks [@zoruka](https://github.com/zoruka)! - Disable names feature flow for Solana networks - -- Updated dependencies [[`d45545d`](https://github.com/reown-com/appkit/commit/d45545ddd4073c35214db273b090ae8b4df9ef61), [`c2e391d`](https://github.com/reown-com/appkit/commit/c2e391d832aa3b5a1c2850cc49467bd4ef1e56f9), [`e1081e9`](https://github.com/reown-com/appkit/commit/e1081e957b3ed73c068d6092923b59b0e27815d1), [`b949143`](https://github.com/reown-com/appkit/commit/b949143a0838810f7ae17a85e4c17acae10b888c), [`6ad2530`](https://github.com/reown-com/appkit/commit/6ad253000261e60ddc0f60b341a658da6636bd3e), [`d40f978`](https://github.com/reown-com/appkit/commit/d40f978fe685fbc9599cdac36a99b12ec4350d3c)]: - - @reown/appkit-adapter-ethers5@1.0.7 - - @reown/appkit@1.0.7 - - @reown/appkit-utils@1.0.7 - - @reown/appkit-common@1.0.7 - - @reown/appkit-polyfills@1.0.7 - - @reown/appkit-siwe@1.0.7 - - @reown/appkit-wallet@1.0.7 - -## 1.0.6 - -### Patch Changes - -- [#2970](https://github.com/reown-com/appkit/pull/2970) [`e6a36a7`](https://github.com/reown-com/appkit/commit/e6a36a746e85ced1f89fc1d7227e25df1559f063) Thanks [@magiziz](https://github.com/magiziz)! - Introducing debug mode. This is useful for seeing UI alerts while debugging. - - **Example usage** - - ```ts - import { createAppKit } from '@reown/appkit/react' - import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' - import { mainnet } from '@reown/appkit/networks' - - const wagmiAdapter = new WagmiAdapter({ - ssr: true, - networks: [mainnet], - projectId: 'YOUR_PROJECT_ID' - }) - - const modal = createAppKit({ - adapters: [wagmiAdapter], - networks: [mainnet], - projectId: 'YOUR_PROJECT_ID', - debug: true // Optional - defaults to false - }) - ``` - -- [#2984](https://github.com/reown-com/appkit/pull/2984) [`b5444bd`](https://github.com/reown-com/appkit/commit/b5444bdd454d370cf3f17267d457cd46de10a5b9) Thanks [@magiziz](https://github.com/magiziz)! - Changed logger imports to not cause the webpack bundler to throw a CommonJS module error. - -- [#2974](https://github.com/reown-com/appkit/pull/2974) [`0563711`](https://github.com/reown-com/appkit/commit/05637111aba940af5f46215336268294675322fd) Thanks [@magiziz](https://github.com/magiziz)! - Added create wallet flow in connect modal - -- Updated dependencies [[`e6a36a7`](https://github.com/reown-com/appkit/commit/e6a36a746e85ced1f89fc1d7227e25df1559f063), [`b5444bd`](https://github.com/reown-com/appkit/commit/b5444bdd454d370cf3f17267d457cd46de10a5b9), [`0563711`](https://github.com/reown-com/appkit/commit/05637111aba940af5f46215336268294675322fd)]: - - @reown/appkit-adapter-ethers5@1.0.6 - - @reown/appkit@1.0.6 - - @reown/appkit-utils@1.0.6 - - @reown/appkit-common@1.0.6 - - @reown/appkit-polyfills@1.0.6 - - @reown/appkit-siwe@1.0.6 - - @reown/appkit-wallet@1.0.6 - -## 1.0.5 - -### Patch Changes - -- [#2872](https://github.com/reown-com/appkit/pull/2872) [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513) Thanks [@zoruka](https://github.com/zoruka)! - Get correct data from session namespaces and set it for approved caip networks data on UniversalProvider usage" - -- [#2937](https://github.com/reown-com/appkit/pull/2937) [`97dd79d`](https://github.com/reown-com/appkit/commit/97dd79df711201d5b7450fb10544f063975e6cb6) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates adapter packages dependency managements - -- [#2919](https://github.com/reown-com/appkit/pull/2919) [`e2bacfd`](https://github.com/reown-com/appkit/commit/e2bacfd0aaa9a83060d3181678c42dd9cc90293b) Thanks [@zoruka](https://github.com/zoruka)! - Adds batched call for solana_signAllTransactions RPC call on Solana WalletConnectProvider - -- [#2872](https://github.com/reown-com/appkit/pull/2872) [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513) Thanks [@zoruka](https://github.com/zoruka)! - Implement the correct logic for getting available networks when using universal provider - -- [#2927](https://github.com/reown-com/appkit/pull/2927) [`865320c`](https://github.com/reown-com/appkit/commit/865320c709bb76a61ec88c786c6b2a354c8b4b8b) Thanks [@enesozturk](https://github.com/enesozturk)! - Refactors setting active CAIP address and aligns ethers5 adapter with ethers - -- [#2920](https://github.com/reown-com/appkit/pull/2920) [`eeb9207`](https://github.com/reown-com/appkit/commit/eeb92079b4bb37d2cb9db68f51bcdeb87bd83af3) Thanks [@ignaciosantise](https://github.com/ignaciosantise)! - fix: use usdt abi for usdt transactions - -- [#2916](https://github.com/reown-com/appkit/pull/2916) [`cc35726`](https://github.com/reown-com/appkit/commit/cc357269ec04c6372c50d3bf00c674bfe182128b) Thanks [@ignaciosantise](https://github.com/ignaciosantise)! - fix: override ens profile picture if resolved - -- [#2934](https://github.com/reown-com/appkit/pull/2934) [`6faa782`](https://github.com/reown-com/appkit/commit/6faa7829c73b98430f1d8873bd9caf6c90046f2e) Thanks [@enesozturk](https://github.com/enesozturk)! - Fixes swap amount calculation to prevent floating numbers - -- [#2947](https://github.com/reown-com/appkit/pull/2947) [`bad570a`](https://github.com/reown-com/appkit/commit/bad570a9806785854cea4573cfb1e5bfb4e4a8fb) Thanks [@magiziz](https://github.com/magiziz)! - Replaced multi-account screen with single account screen when only one account is connected - -- [#2944](https://github.com/reown-com/appkit/pull/2944) [`8baf998`](https://github.com/reown-com/appkit/commit/8baf998133d0bbab4f87f15a0337d4b1452912d7) Thanks [@tomiir](https://github.com/tomiir)! - Fix issue where wagmis useDisconnect hook would not disconnect appkit internally - -- Updated dependencies [[`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513), [`97dd79d`](https://github.com/reown-com/appkit/commit/97dd79df711201d5b7450fb10544f063975e6cb6), [`e2bacfd`](https://github.com/reown-com/appkit/commit/e2bacfd0aaa9a83060d3181678c42dd9cc90293b), [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513), [`865320c`](https://github.com/reown-com/appkit/commit/865320c709bb76a61ec88c786c6b2a354c8b4b8b), [`eeb9207`](https://github.com/reown-com/appkit/commit/eeb92079b4bb37d2cb9db68f51bcdeb87bd83af3), [`cc35726`](https://github.com/reown-com/appkit/commit/cc357269ec04c6372c50d3bf00c674bfe182128b), [`6faa782`](https://github.com/reown-com/appkit/commit/6faa7829c73b98430f1d8873bd9caf6c90046f2e), [`bad570a`](https://github.com/reown-com/appkit/commit/bad570a9806785854cea4573cfb1e5bfb4e4a8fb), [`8baf998`](https://github.com/reown-com/appkit/commit/8baf998133d0bbab4f87f15a0337d4b1452912d7)]: - - @reown/appkit@1.0.5 - - @reown/appkit-adapter-ethers5@1.0.5 - - @reown/appkit-utils@1.0.5 - - @reown/appkit-common@1.0.5 - - @reown/appkit-polyfills@1.0.5 - - @reown/appkit-siwe@1.0.5 - - @reown/appkit-wallet@1.0.5 - -## 1.0.4 - -### Patch Changes - -- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. - -- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet - -- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: - - @reown/appkit-adapter-ethers5@1.0.4 - - @reown/appkit@1.0.4 - - @reown/appkit-utils@1.0.4 - - @reown/appkit-common@1.0.4 - - @reown/appkit-polyfills@1.0.4 - - @reown/appkit-siwe@1.0.4 - - @reown/appkit-wallet@1.0.4 - -## 1.0.3 - -### Patch Changes - -- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional - -- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains - -- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls - -- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: - - @reown/appkit-wallet@1.0.3 - - @reown/appkit-adapter-ethers5@1.0.3 - - @reown/appkit@1.0.3 - - @reown/appkit-utils@1.0.3 - - @reown/appkit-common@1.0.3 - - @reown/appkit-polyfills@1.0.3 - - @reown/appkit-siwe@1.0.3 - -## 1.0.2 - -### Patch Changes - -- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session - -- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection - -- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension - -- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors - -- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys - -- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: - - @reown/appkit-adapter-ethers5@1.0.2 - - @reown/appkit-wallet@1.0.2 - - @reown/appkit@1.0.2 - - @reown/appkit-utils@1.0.2 - - @reown/appkit-common@1.0.2 - - @reown/appkit-polyfills@1.0.2 - - @reown/appkit-siwe@1.0.2 - -## 1.0.1 - -### Patch Changes - -- [#54](https://github.com/WalletConnect/web3modal/pull/54) [`dc6dd8d`](https://github.com/WalletConnect/web3modal/commit/dc6dd8d37cbe79ae3b0bcaf7bdace1fe6ad11b09) Thanks [@tomiir](https://github.com/tomiir)! - Makes packages public - -- Updated dependencies [[`dc6dd8d`](https://github.com/WalletConnect/web3modal/commit/dc6dd8d37cbe79ae3b0bcaf7bdace1fe6ad11b09)]: - - @reown/appkit-adapter-ethers5@1.0.1 - - @reown/appkit@1.0.1 - - @reown/appkit-utils@1.0.1 - - @reown/appkit-common@1.0.1 - - @reown/appkit-polyfills@1.0.1 - - @reown/appkit-siwe@1.0.1 - - @reown/appkit-wallet@1.0.1 - -## 1.0.0 - -### Major Changes - -- [#53](https://github.com/WalletConnect/web3modal/pull/53) [`f4a378d`](https://github.com/WalletConnect/web3modal/commit/f4a378de8bf67f296ab5cc2d730533e7362ba36a) Thanks [@tomiir](https://github.com/tomiir)! - Reown v1.0.0 - -### Patch Changes - -- [#49](https://github.com/WalletConnect/web3modal/pull/49) [`e678965`](https://github.com/WalletConnect/web3modal/commit/e67896504762ea2220aaedb3202077eec83fdc7f) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates prop names, adapter names, network exported path name - -- [#52](https://github.com/WalletConnect/web3modal/pull/52) [`3d62df8`](https://github.com/WalletConnect/web3modal/commit/3d62df8e0f29977ee82f96f17fbbac66f39ae6a6) Thanks [@zoruka](https://github.com/zoruka)! - Fix network availability and wagmi reconnect - -- Updated dependencies [[`e678965`](https://github.com/WalletConnect/web3modal/commit/e67896504762ea2220aaedb3202077eec83fdc7f), [`3d62df8`](https://github.com/WalletConnect/web3modal/commit/3d62df8e0f29977ee82f96f17fbbac66f39ae6a6), [`f4a378d`](https://github.com/WalletConnect/web3modal/commit/f4a378de8bf67f296ab5cc2d730533e7362ba36a)]: - - @reown/appkit-adapter-ethers5@1.0.0 - - @reown/appkit@1.0.0 - - @reown/appkit-utils@1.0.0 - - @reown/appkit-common@1.0.0 - - @reown/appkit-polyfills@1.0.0 - - @reown/appkit-siwe@1.0.0 - - @reown/appkit-wallet@1.0.0 - -## 0.0.5 - -### Patch Changes - -- [#45](https://github.com/WalletConnect/web3modal/pull/45) [`395398c`](https://github.com/WalletConnect/web3modal/commit/395398c7c943142776da2ea8011205e600d8ab86) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates RPC urls project id query params dynamically - -- [#46](https://github.com/WalletConnect/web3modal/pull/46) [`756ab0d`](https://github.com/WalletConnect/web3modal/commit/756ab0d9f7b86abc6b1a4831197058176618d9ef) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates sdk type and sdk version values - -- [#42](https://github.com/WalletConnect/web3modal/pull/42) [`8c90093`](https://github.com/WalletConnect/web3modal/commit/8c90093f724dc1ba4e86f7101fac8772b58fae04) Thanks [@tomiir](https://github.com/tomiir)! - Fix circular dependency in OptionsController - -- Updated dependencies [[`395398c`](https://github.com/WalletConnect/web3modal/commit/395398c7c943142776da2ea8011205e600d8ab86), [`756ab0d`](https://github.com/WalletConnect/web3modal/commit/756ab0d9f7b86abc6b1a4831197058176618d9ef), [`8c90093`](https://github.com/WalletConnect/web3modal/commit/8c90093f724dc1ba4e86f7101fac8772b58fae04)]: - - @reown/appkit@0.0.5 - - @reown/appkit-common@0.0.5 - - @reown/appkit-adapter-ethers5@0.0.5 - - @reown/appkit-utils@0.0.5 - - @reown/appkit-polyfills@0.0.5 - - @reown/appkit-siwe@0.0.5 - - @reown/appkit-wallet@0.0.5 - -## 0.0.4 - -### Patch Changes - -- [#38](https://github.com/WalletConnect/web3modal/pull/38) [`89fb054`](https://github.com/WalletConnect/web3modal/commit/89fb054d7e2513b80940c73101dc395e7ea2694b) Thanks [@tomiir](https://github.com/tomiir)! - Base reown package rename setup. - -- Updated dependencies [[`89fb054`](https://github.com/WalletConnect/web3modal/commit/89fb054d7e2513b80940c73101dc395e7ea2694b)]: - - @reown/appkit-adapter-ethers5@0.0.4 - - @reown/appkit-utils@0.0.4 - - @reown/appkit-polyfills@0.0.4 - - @reown/appkit@0.0.4 - - @reown/appkit-common@0.0.4 - - @reown/appkit-wallet@0.0.4 - - @reown/appkit-siwe@0.0.4 - -## 0.0.3 - -### Patch Changes - -- [#28](https://github.com/WalletConnect/web3modal/pull/28) [`91d0296`](https://github.com/WalletConnect/web3modal/commit/91d02963cbe3c2d06b74801b519ce23dd30ff797) Thanks [@tomiir](https://github.com/tomiir)! - Package setup. Reset Changelogs - -- [#12](https://github.com/WalletConnect/web3modal/pull/12) [`51eff9f`](https://github.com/WalletConnect/web3modal/commit/51eff9f82c296b0ba2b5ab33af92a1fa54a77f7a) Thanks [@tomiir](https://github.com/tomiir)! - Adds test vitest.workspace file - -- Updated dependencies [[`91d0296`](https://github.com/WalletConnect/web3modal/commit/91d02963cbe3c2d06b74801b519ce23dd30ff797), [`51eff9f`](https://github.com/WalletConnect/web3modal/commit/51eff9f82c296b0ba2b5ab33af92a1fa54a77f7a)]: - - @reown/appkit-adapter-ethers5@0.0.3 - - @reown/appkit@0.0.3 - - @reown/appkit-common@0.0.3 - - @reown/appkit-polyfills@0.0.3 - - @reown/appkit-utils@0.0.3 - - @reown/appkit-siwe@0.0.3 - - @reown/appkit-wallet@0.0.3 diff --git a/packages/ethers5/exports/index.ts b/packages/ethers5/exports/index.ts deleted file mode 100644 index 52d5be00e7..0000000000 --- a/packages/ethers5/exports/index.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { AppKit } from '@reown/appkit' -import type { AppKitOptions } from '@reown/appkit' -import { Ethers5Adapter, type AdapterOptions } from '@reown/appkit-adapter-ethers5' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Types ------------------------------------------------------------- -export type { AdapterOptions } from '@reown/appkit-adapter-ethers5' - -// -- Setup ------------------------------------------------------------- -type EthersAppKitOptions = Omit & - AdapterOptions - -export function createAppKit(options: EthersAppKitOptions) { - const ethers5Adapter = new Ethers5Adapter() - - return new AppKit({ - ...options, - sdkVersion: `html-ethers5-${packageJson.version}`, - adapters: [ethers5Adapter] - }) -} diff --git a/packages/ethers5/exports/react.tsx b/packages/ethers5/exports/react.tsx deleted file mode 100644 index f42516b132..0000000000 --- a/packages/ethers5/exports/react.tsx +++ /dev/null @@ -1,72 +0,0 @@ -'use client' - -import { AppKit } from '@reown/appkit' -import type { AppKitOptions } from '@reown/appkit' -import type { CaipNetwork } from '@reown/appkit-common' -import { ProviderUtil } from '@reown/appkit/store' -import { Ethers5Adapter, type AdapterOptions } from '@reown/appkit-adapter-ethers5' -import { getAppKit } from '@reown/appkit/library/react' -import { useSnapshot } from 'valtio' -import { ethers } from 'ethers' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Setup ------------------------------------------------------------------- -let appkit: AppKit | undefined = undefined -let ethersAdapter: Ethers5Adapter | undefined = undefined - -export type Ethers5AppKitOptions = Omit & - AdapterOptions - -export function createAppKit(options: Ethers5AppKitOptions) { - ethersAdapter = new Ethers5Adapter() - appkit = new AppKit({ - ...options, - sdkVersion: `react-ethers5-${packageJson.version}`, - adapters: [ethersAdapter] - }) - getAppKit(appkit) - - return appkit -} - -// -- Hooks ------------------------------------------------------------------- -export function useAppKitProvider() { - const { providers, providerIds } = useSnapshot(ProviderUtil.state) - - const walletProvider = providers['eip155'] as ethers.providers.ExternalProvider | undefined - const walletProviderType = providerIds['eip155'] - - return { - walletProvider, - walletProviderType - } -} - -export function useDisconnect() { - async function disconnect() { - await ethersAdapter?.disconnect() - } - - return { - disconnect - } -} - -export function useSwitchNetwork() { - // Breaking change - async function switchNetwork(caipNetwork: CaipNetwork) { - await ethersAdapter?.switchNetwork(caipNetwork) - } - - return { - switchNetwork - } -} - -export { - useAppKitTheme, - useAppKit, - useAppKitState, - useAppKitEvents, - useWalletInfo -} from '@reown/appkit/library/react' diff --git a/packages/ethers5/exports/vue.ts b/packages/ethers5/exports/vue.ts deleted file mode 100644 index 420b440a39..0000000000 --- a/packages/ethers5/exports/vue.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { AppKit } from '@reown/appkit' -import type { AppKitOptions } from '@reown/appkit' -import { Ethers5Adapter, type AdapterOptions } from '@reown/appkit-adapter-ethers5' - -import { getAppKit } from '@reown/appkit/library/vue' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Setup ------------------------------------------------------------------- -let appkit: AppKit | undefined = undefined -let ethersAdapter: Ethers5Adapter | undefined = undefined - -type EthersAppKitOptions = Omit & - AdapterOptions - -export function createAppKit(options: EthersAppKitOptions) { - ethersAdapter = new Ethers5Adapter() - appkit = new AppKit({ - ...options, - sdkVersion: `vue-ethers5-${packageJson.version}`, - adapters: [ethersAdapter] - }) - getAppKit(appkit) - - return appkit -} - -// -- Composites -------------------------------------------------------------- -export function useAppKitProvider() { - // Implement this -} - -export function useDisconnect() { - async function disconnect() { - await ethersAdapter?.disconnect() - } - - return { - disconnect - } -} - -export function useSwitchNetwork() { - // Implement this -} - -export function useAppKitAccount() { - // Implement this -} - -export function useAppKitError() { - // Implement this -} - -export { - useAppKitTheme, - useAppKit, - useAppKitState, - useAppKitEvents, - useWalletInfo -} from '@reown/appkit/library/vue' diff --git a/packages/ethers5/package.json b/packages/ethers5/package.json deleted file mode 100644 index 584968d506..0000000000 --- a/packages/ethers5/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "name": "@reown/appkit-ethers5", - "version": "1.0.7", - "type": "module", - "main": "./dist/esm/exports/index.js", - "types": "./dist/types/exports/index.d.ts", - "files": [ - "dist", - "!tsconfig.tsbuildinfo" - ], - "exports": { - ".": { - "types": "./dist/types/exports/index.d.ts", - "import": "./dist/esm/exports/index.js", - "default": "./dist/esm/exports/index.js" - }, - "./react": { - "types": "./dist/types/exports/react.d.ts", - "import": "./dist/esm/exports/react.js", - "default": "./dist/esm/exports/react.js" - }, - "./vue": { - "types": "./dist/types/exports/vue.d.ts", - "import": "./dist/esm/exports/vue.js", - "default": "./dist/esm/exports/vue.js" - } - }, - "typesVersions": { - "*": { - "react": [ - "./dist/types/exports/react.d.ts" - ], - "vue": [ - "./dist/types/exports/vue.d.ts" - ] - } - }, - "scripts": { - "build:clean": "rm -rf dist", - "build": "tsc --build", - "watch": "tsc --watch", - "typecheck": "tsc --noEmit", - "lint": "eslint . --ext .js,.jsx,.ts,.tsx" - }, - "dependencies": { - "@coinbase/wallet-sdk": "4.0.3", - "@walletconnect/utils": "2.17.0", - "@reown/appkit": "workspace:*", - "@reown/appkit-common": "workspace:*", - "@reown/appkit-wallet": "workspace:*", - "@reown/appkit-polyfills": "workspace:*", - "@reown/appkit-utils": "workspace:*", - "@reown/appkit-adapter-ethers5": "workspace:*", - "@reown/appkit-siwe": "workspace:*", - "valtio": "1.11.2" - }, - "devDependencies": { - "ethers": "5.7.2", - "react": "18.2.0", - "react-dom": "18.2.0", - "vue": "3.4.3" - }, - "peerDependencies": { - "ethers": ">=4.1.0 <6.0.0", - "react": ">=17", - "react-dom": ">=17", - "vue": ">=3" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - }, - "vue": { - "optional": true - } - }, - "author": "Reown (https://reown.com)", - "license": "Apache-2.0", - "homepage": "https://github.com/reown-com/appkit", - "repository": { - "type": "git", - "url": "git+https://github.com/reown-com/appkit.git" - }, - "bugs": { - "url": "https://github.com/reown-com/appkit/issues" - } -} diff --git a/packages/ethers5/readme.md b/packages/ethers5/readme.md deleted file mode 100644 index 8509753a5a..0000000000 --- a/packages/ethers5/readme.md +++ /dev/null @@ -1,9 +0,0 @@ -#### 📚 [Documentation](https://docs.reown.com/2.0/appkit/about) - -#### 🔎 [Examples](https://github.com/WalletConnect/web3modal-examples) - -#### 🔗 [Website](https://reown.com/appkit) - -# AppKit - -Your on-ramp to web3 multichain. AppKit is a versatile library that makes it super easy to connect users with your Dapp and start interacting with the blockchain. diff --git a/packages/ethers5/tsconfig.json b/packages/ethers5/tsconfig.json deleted file mode 100644 index a233f65c7a..0000000000 --- a/packages/ethers5/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "outDir": "./dist/esm", - "declarationDir": "./dist/types" - }, - "extends": "../../tsconfig.json", - "include": ["exports", "src", "package.json"] -} diff --git a/packages/solana/CHANGELOG.md b/packages/solana/CHANGELOG.md deleted file mode 100644 index 01c616c38a..0000000000 --- a/packages/solana/CHANGELOG.md +++ /dev/null @@ -1,245 +0,0 @@ -# @reown/appkit-solana - -## 1.0.7 - -### Patch Changes - -- [#2977](https://github.com/reown-com/appkit/pull/2977) [`d45545d`](https://github.com/reown-com/appkit/commit/d45545ddd4073c35214db273b090ae8b4df9ef61) Thanks [@magiziz](https://github.com/magiziz)! - Fixed an issue where email line separator was not showing when social logins were disabled and `emailShowWallets` was set to false. - -- [#2990](https://github.com/reown-com/appkit/pull/2990) [`c2e391d`](https://github.com/reown-com/appkit/commit/c2e391d832aa3b5a1c2850cc49467bd4ef1e56f9) Thanks [@zoruka](https://github.com/zoruka)! - Fixes external connectors not appearing when using Solana adapter - -- [#2998](https://github.com/reown-com/appkit/pull/2998) [`e1081e9`](https://github.com/reown-com/appkit/commit/e1081e957b3ed73c068d6092923b59b0e27815d1) Thanks [@zoruka](https://github.com/zoruka)! - Fixes failing to connect with extension wallets on Solana Adapter - -- [#2985](https://github.com/reown-com/appkit/pull/2985) [`b949143`](https://github.com/reown-com/appkit/commit/b949143a0838810f7ae17a85e4c17acae10b888c) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates wagmi adapter to pass all custom wagmi configs to the createConfig function - -- [#3001](https://github.com/reown-com/appkit/pull/3001) [`6ad2530`](https://github.com/reown-com/appkit/commit/6ad253000261e60ddc0f60b341a658da6636bd3e) Thanks [@tomiir](https://github.com/tomiir)! - Adds FRAME_READY event for W3mFrameProvider - -- [#2989](https://github.com/reown-com/appkit/pull/2989) [`d40f978`](https://github.com/reown-com/appkit/commit/d40f978fe685fbc9599cdac36a99b12ec4350d3c) Thanks [@zoruka](https://github.com/zoruka)! - Disable names feature flow for Solana networks - -- Updated dependencies [[`d45545d`](https://github.com/reown-com/appkit/commit/d45545ddd4073c35214db273b090ae8b4df9ef61), [`c2e391d`](https://github.com/reown-com/appkit/commit/c2e391d832aa3b5a1c2850cc49467bd4ef1e56f9), [`e1081e9`](https://github.com/reown-com/appkit/commit/e1081e957b3ed73c068d6092923b59b0e27815d1), [`b949143`](https://github.com/reown-com/appkit/commit/b949143a0838810f7ae17a85e4c17acae10b888c), [`6ad2530`](https://github.com/reown-com/appkit/commit/6ad253000261e60ddc0f60b341a658da6636bd3e), [`d40f978`](https://github.com/reown-com/appkit/commit/d40f978fe685fbc9599cdac36a99b12ec4350d3c)]: - - @reown/appkit-adapter-solana@1.0.7 - - @reown/appkit@1.0.7 - - @reown/appkit-utils@1.0.7 - - @reown/appkit-common@1.0.7 - - @reown/appkit-core@1.0.7 - - @reown/appkit-polyfills@1.0.7 - - @reown/appkit-wallet@1.0.7 - -## 1.0.6 - -### Patch Changes - -- [#2970](https://github.com/reown-com/appkit/pull/2970) [`e6a36a7`](https://github.com/reown-com/appkit/commit/e6a36a746e85ced1f89fc1d7227e25df1559f063) Thanks [@magiziz](https://github.com/magiziz)! - Introducing debug mode. This is useful for seeing UI alerts while debugging. - - **Example usage** - - ```ts - import { createAppKit } from '@reown/appkit/react' - import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' - import { mainnet } from '@reown/appkit/networks' - - const wagmiAdapter = new WagmiAdapter({ - ssr: true, - networks: [mainnet], - projectId: 'YOUR_PROJECT_ID' - }) - - const modal = createAppKit({ - adapters: [wagmiAdapter], - networks: [mainnet], - projectId: 'YOUR_PROJECT_ID', - debug: true // Optional - defaults to false - }) - ``` - -- [#2984](https://github.com/reown-com/appkit/pull/2984) [`b5444bd`](https://github.com/reown-com/appkit/commit/b5444bdd454d370cf3f17267d457cd46de10a5b9) Thanks [@magiziz](https://github.com/magiziz)! - Changed logger imports to not cause the webpack bundler to throw a CommonJS module error. - -- [#2974](https://github.com/reown-com/appkit/pull/2974) [`0563711`](https://github.com/reown-com/appkit/commit/05637111aba940af5f46215336268294675322fd) Thanks [@magiziz](https://github.com/magiziz)! - Added create wallet flow in connect modal - -- Updated dependencies [[`e6a36a7`](https://github.com/reown-com/appkit/commit/e6a36a746e85ced1f89fc1d7227e25df1559f063), [`b5444bd`](https://github.com/reown-com/appkit/commit/b5444bdd454d370cf3f17267d457cd46de10a5b9), [`0563711`](https://github.com/reown-com/appkit/commit/05637111aba940af5f46215336268294675322fd)]: - - @reown/appkit-adapter-solana@1.0.6 - - @reown/appkit@1.0.6 - - @reown/appkit-utils@1.0.6 - - @reown/appkit-common@1.0.6 - - @reown/appkit-core@1.0.6 - - @reown/appkit-polyfills@1.0.6 - - @reown/appkit-wallet@1.0.6 - -## 1.0.5 - -### Patch Changes - -- [#2872](https://github.com/reown-com/appkit/pull/2872) [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513) Thanks [@zoruka](https://github.com/zoruka)! - Get correct data from session namespaces and set it for approved caip networks data on UniversalProvider usage" - -- [#2937](https://github.com/reown-com/appkit/pull/2937) [`97dd79d`](https://github.com/reown-com/appkit/commit/97dd79df711201d5b7450fb10544f063975e6cb6) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates adapter packages dependency managements - -- [#2919](https://github.com/reown-com/appkit/pull/2919) [`e2bacfd`](https://github.com/reown-com/appkit/commit/e2bacfd0aaa9a83060d3181678c42dd9cc90293b) Thanks [@zoruka](https://github.com/zoruka)! - Adds batched call for solana_signAllTransactions RPC call on Solana WalletConnectProvider - -- [#2872](https://github.com/reown-com/appkit/pull/2872) [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513) Thanks [@zoruka](https://github.com/zoruka)! - Implement the correct logic for getting available networks when using universal provider - -- [#2927](https://github.com/reown-com/appkit/pull/2927) [`865320c`](https://github.com/reown-com/appkit/commit/865320c709bb76a61ec88c786c6b2a354c8b4b8b) Thanks [@enesozturk](https://github.com/enesozturk)! - Refactors setting active CAIP address and aligns ethers5 adapter with ethers - -- [#2920](https://github.com/reown-com/appkit/pull/2920) [`eeb9207`](https://github.com/reown-com/appkit/commit/eeb92079b4bb37d2cb9db68f51bcdeb87bd83af3) Thanks [@ignaciosantise](https://github.com/ignaciosantise)! - fix: use usdt abi for usdt transactions - -- [#2916](https://github.com/reown-com/appkit/pull/2916) [`cc35726`](https://github.com/reown-com/appkit/commit/cc357269ec04c6372c50d3bf00c674bfe182128b) Thanks [@ignaciosantise](https://github.com/ignaciosantise)! - fix: override ens profile picture if resolved - -- [#2934](https://github.com/reown-com/appkit/pull/2934) [`6faa782`](https://github.com/reown-com/appkit/commit/6faa7829c73b98430f1d8873bd9caf6c90046f2e) Thanks [@enesozturk](https://github.com/enesozturk)! - Fixes swap amount calculation to prevent floating numbers - -- [#2947](https://github.com/reown-com/appkit/pull/2947) [`bad570a`](https://github.com/reown-com/appkit/commit/bad570a9806785854cea4573cfb1e5bfb4e4a8fb) Thanks [@magiziz](https://github.com/magiziz)! - Replaced multi-account screen with single account screen when only one account is connected - -- [#2944](https://github.com/reown-com/appkit/pull/2944) [`8baf998`](https://github.com/reown-com/appkit/commit/8baf998133d0bbab4f87f15a0337d4b1452912d7) Thanks [@tomiir](https://github.com/tomiir)! - Fix issue where wagmis useDisconnect hook would not disconnect appkit internally - -- Updated dependencies [[`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513), [`97dd79d`](https://github.com/reown-com/appkit/commit/97dd79df711201d5b7450fb10544f063975e6cb6), [`e2bacfd`](https://github.com/reown-com/appkit/commit/e2bacfd0aaa9a83060d3181678c42dd9cc90293b), [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513), [`865320c`](https://github.com/reown-com/appkit/commit/865320c709bb76a61ec88c786c6b2a354c8b4b8b), [`eeb9207`](https://github.com/reown-com/appkit/commit/eeb92079b4bb37d2cb9db68f51bcdeb87bd83af3), [`cc35726`](https://github.com/reown-com/appkit/commit/cc357269ec04c6372c50d3bf00c674bfe182128b), [`6faa782`](https://github.com/reown-com/appkit/commit/6faa7829c73b98430f1d8873bd9caf6c90046f2e), [`bad570a`](https://github.com/reown-com/appkit/commit/bad570a9806785854cea4573cfb1e5bfb4e4a8fb), [`8baf998`](https://github.com/reown-com/appkit/commit/8baf998133d0bbab4f87f15a0337d4b1452912d7)]: - - @reown/appkit-adapter-solana@1.0.5 - - @reown/appkit@1.0.5 - - @reown/appkit-core@1.0.5 - - @reown/appkit-utils@1.0.5 - - @reown/appkit-common@1.0.5 - - @reown/appkit-polyfills@1.0.5 - - @reown/appkit-wallet@1.0.5 - -## 1.0.4 - -### Patch Changes - -- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. - -- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet - -- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: - - @reown/appkit-adapter-solana@1.0.4 - - @reown/appkit@1.0.4 - - @reown/appkit-utils@1.0.4 - - @reown/appkit-common@1.0.4 - - @reown/appkit-core@1.0.4 - - @reown/appkit-polyfills@1.0.4 - - @reown/appkit-wallet@1.0.4 - -## 1.0.3 - -### Patch Changes - -- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional - -- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains - -- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls - -- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: - - @reown/appkit-wallet@1.0.3 - - @reown/appkit-adapter-solana@1.0.3 - - @reown/appkit@1.0.3 - - @reown/appkit-utils@1.0.3 - - @reown/appkit-common@1.0.3 - - @reown/appkit-core@1.0.3 - - @reown/appkit-polyfills@1.0.3 - -## 1.0.2 - -### Patch Changes - -- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session - -- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection - -- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension - -- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors - -- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys - -- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: - - @reown/appkit-wallet@1.0.2 - - @reown/appkit-core@1.0.2 - - @reown/appkit-adapter-solana@1.0.2 - - @reown/appkit@1.0.2 - - @reown/appkit-utils@1.0.2 - - @reown/appkit-common@1.0.2 - - @reown/appkit-polyfills@1.0.2 - -## 1.0.1 - -### Patch Changes - -- [#54](https://github.com/WalletConnect/web3modal/pull/54) [`dc6dd8d`](https://github.com/WalletConnect/web3modal/commit/dc6dd8d37cbe79ae3b0bcaf7bdace1fe6ad11b09) Thanks [@tomiir](https://github.com/tomiir)! - Makes packages public - -- Updated dependencies [[`dc6dd8d`](https://github.com/WalletConnect/web3modal/commit/dc6dd8d37cbe79ae3b0bcaf7bdace1fe6ad11b09)]: - - @reown/appkit-adapter-solana@1.0.1 - - @reown/appkit@1.0.1 - - @reown/appkit-utils@1.0.1 - - @reown/appkit-common@1.0.1 - - @reown/appkit-core@1.0.1 - - @reown/appkit-polyfills@1.0.1 - - @reown/appkit-wallet@1.0.1 - -## 1.0.0 - -### Major Changes - -- [#53](https://github.com/WalletConnect/web3modal/pull/53) [`f4a378d`](https://github.com/WalletConnect/web3modal/commit/f4a378de8bf67f296ab5cc2d730533e7362ba36a) Thanks [@tomiir](https://github.com/tomiir)! - Reown v1.0.0 - -### Patch Changes - -- [#49](https://github.com/WalletConnect/web3modal/pull/49) [`e678965`](https://github.com/WalletConnect/web3modal/commit/e67896504762ea2220aaedb3202077eec83fdc7f) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates prop names, adapter names, network exported path name - -- [#52](https://github.com/WalletConnect/web3modal/pull/52) [`3d62df8`](https://github.com/WalletConnect/web3modal/commit/3d62df8e0f29977ee82f96f17fbbac66f39ae6a6) Thanks [@zoruka](https://github.com/zoruka)! - Fix network availability and wagmi reconnect - -- Updated dependencies [[`e678965`](https://github.com/WalletConnect/web3modal/commit/e67896504762ea2220aaedb3202077eec83fdc7f), [`3d62df8`](https://github.com/WalletConnect/web3modal/commit/3d62df8e0f29977ee82f96f17fbbac66f39ae6a6), [`f4a378d`](https://github.com/WalletConnect/web3modal/commit/f4a378de8bf67f296ab5cc2d730533e7362ba36a)]: - - @reown/appkit-adapter-solana@1.0.0 - - @reown/appkit@1.0.0 - - @reown/appkit-core@1.0.0 - - @reown/appkit-utils@1.0.0 - - @reown/appkit-common@1.0.0 - - @reown/appkit-polyfills@1.0.0 - - @reown/appkit-wallet@1.0.0 - -## 0.0.5 - -### Patch Changes - -- [#45](https://github.com/WalletConnect/web3modal/pull/45) [`395398c`](https://github.com/WalletConnect/web3modal/commit/395398c7c943142776da2ea8011205e600d8ab86) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates RPC urls project id query params dynamically - -- [#46](https://github.com/WalletConnect/web3modal/pull/46) [`756ab0d`](https://github.com/WalletConnect/web3modal/commit/756ab0d9f7b86abc6b1a4831197058176618d9ef) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates sdk type and sdk version values - -- [#42](https://github.com/WalletConnect/web3modal/pull/42) [`8c90093`](https://github.com/WalletConnect/web3modal/commit/8c90093f724dc1ba4e86f7101fac8772b58fae04) Thanks [@tomiir](https://github.com/tomiir)! - Fix circular dependency in OptionsController - -- Updated dependencies [[`395398c`](https://github.com/WalletConnect/web3modal/commit/395398c7c943142776da2ea8011205e600d8ab86), [`756ab0d`](https://github.com/WalletConnect/web3modal/commit/756ab0d9f7b86abc6b1a4831197058176618d9ef), [`8c90093`](https://github.com/WalletConnect/web3modal/commit/8c90093f724dc1ba4e86f7101fac8772b58fae04)]: - - @reown/appkit@0.0.5 - - @reown/appkit-common@0.0.5 - - @reown/appkit-adapter-solana@0.0.5 - - @reown/appkit-utils@0.0.5 - - @reown/appkit-core@0.0.5 - - @reown/appkit-polyfills@0.0.5 - - @reown/appkit-wallet@0.0.5 - -## 0.0.4 - -### Patch Changes - -- [#38](https://github.com/WalletConnect/web3modal/pull/38) [`89fb054`](https://github.com/WalletConnect/web3modal/commit/89fb054d7e2513b80940c73101dc395e7ea2694b) Thanks [@tomiir](https://github.com/tomiir)! - Base reown package rename setup. - -- Updated dependencies [[`89fb054`](https://github.com/WalletConnect/web3modal/commit/89fb054d7e2513b80940c73101dc395e7ea2694b)]: - - @reown/appkit-adapter-solana@0.0.4 - - @reown/appkit-utils@0.0.4 - - @reown/appkit-polyfills@0.0.4 - - @reown/appkit@0.0.4 - - @reown/appkit-common@0.0.4 - - @reown/appkit-wallet@0.0.4 - - @reown/appkit-core@0.0.4 - -## 0.0.3 - -### Patch Changes - -- [#28](https://github.com/WalletConnect/web3modal/pull/28) [`91d0296`](https://github.com/WalletConnect/web3modal/commit/91d02963cbe3c2d06b74801b519ce23dd30ff797) Thanks [@tomiir](https://github.com/tomiir)! - Package setup. Reset Changelogs - -- [#12](https://github.com/WalletConnect/web3modal/pull/12) [`51eff9f`](https://github.com/WalletConnect/web3modal/commit/51eff9f82c296b0ba2b5ab33af92a1fa54a77f7a) Thanks [@tomiir](https://github.com/tomiir)! - Adds test vitest.workspace file - -- Updated dependencies [[`91d0296`](https://github.com/WalletConnect/web3modal/commit/91d02963cbe3c2d06b74801b519ce23dd30ff797), [`51eff9f`](https://github.com/WalletConnect/web3modal/commit/51eff9f82c296b0ba2b5ab33af92a1fa54a77f7a)]: - - @reown/appkit-adapter-solana@0.0.3 - - @reown/appkit@0.0.3 - - @reown/appkit-common@0.0.3 - - @reown/appkit-core@0.0.3 - - @reown/appkit-polyfills@0.0.3 - - @reown/appkit-utils@0.0.3 - - @reown/appkit-wallet@0.0.3 diff --git a/packages/solana/README.md b/packages/solana/README.md deleted file mode 100644 index 4dce3a6e01..0000000000 --- a/packages/solana/README.md +++ /dev/null @@ -1,11 +0,0 @@ -#### 📚 [Documentation](https://docs.reown.com/2.0/appkit/about) - -#### 🔗 [Website](https://reown.com/appkit) - -# AppKit - -Your on-ramp to web3 multichain. AppKit is a versatile library that makes it super easy to connect users with your Dapp and start interacting with the blockchain. - -

- -

diff --git a/packages/solana/exports/index.ts b/packages/solana/exports/index.ts deleted file mode 100644 index 016ea5d9ed..0000000000 --- a/packages/solana/exports/index.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { AppKit } from '@reown/appkit' -import { SolanaAdapter } from '@reown/appkit-adapter-solana' -import type { SolanaAppKitOptions } from './options' -import type { Provider } from '@reown/appkit-adapter-solana' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Types ------------------------------------------------------------- -export type { SolanaAppKitOptions, Provider } - -// -- Setup ------------------------------------------------------------- -export function createAppKit(options: SolanaAppKitOptions) { - const solanaAdapter = new SolanaAdapter({ - wallets: options.wallets - }) - - return new AppKit({ - ...options, - sdkVersion: `html-solana-${packageJson.version}`, - adapters: [solanaAdapter] - }) -} diff --git a/packages/solana/exports/options.ts b/packages/solana/exports/options.ts deleted file mode 100644 index 284a3693be..0000000000 --- a/packages/solana/exports/options.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { AppKitOptions } from '@reown/appkit' -import type { AdapterOptions } from '@reown/appkit-adapter-solana' - -export type SolanaAppKitOptions = Omit & - AdapterOptions diff --git a/packages/solana/exports/react.tsx b/packages/solana/exports/react.tsx deleted file mode 100644 index 954cec5664..0000000000 --- a/packages/solana/exports/react.tsx +++ /dev/null @@ -1,51 +0,0 @@ -'use client' - -import { AppKit } from '@reown/appkit' -import { - SolanaAdapter, - type Provider, - useAppKitConnection -} from '@reown/appkit-adapter-solana/react' -import { getAppKit } from '@reown/appkit/library/react' -import type { SolanaAppKitOptions } from './options.js' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Types ------------------------------------------------------------------- -export type { SolanaAppKitOptions, Provider } - -// -- Setup ------------------------------------------------------------- -let appkit: AppKit | undefined = undefined -let solanaAdapter: SolanaAdapter | undefined = undefined - -export function createAppKit(options: SolanaAppKitOptions) { - solanaAdapter = new SolanaAdapter({ - wallets: options.wallets - }) - appkit = new AppKit({ - ...options, - sdkVersion: `react-solana-${packageJson.version}`, - adapters: [solanaAdapter] - }) - getAppKit(appkit) - - return appkit -} - -// -- Hooks ------------------------------------------------------------------- -export function useDisconnect() { - async function disconnect() { - await solanaAdapter?.connectionControllerClient?.disconnect() - } - - return { - disconnect - } -} - -export { - useAppKitTheme, - useAppKit, - useAppKitState, - useAppKitEvents -} from '@reown/appkit/library/react' -export { useAppKitConnection } diff --git a/packages/solana/exports/vue.ts b/packages/solana/exports/vue.ts deleted file mode 100644 index 4f207229f2..0000000000 --- a/packages/solana/exports/vue.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { getAppKit } from '@reown/appkit/library/vue' -import { AppKit } from '@reown/appkit' -import { SolanaAdapter, useAppKitConnection } from '@reown/appkit-adapter-solana/vue' -import type { Provider } from '@reown/appkit-adapter-solana/vue' -import type { CaipNetwork } from '@reown/appkit-common' -import type { SolanaAppKitOptions } from './options' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Types ------------------------------------------------------------------- -export type { SolanaAppKitOptions, Provider } - -// -- Setup ------------------------------------------------------------------- -let appkit: AppKit | undefined = undefined -let solanaAdapter: SolanaAdapter | undefined = undefined - -export function createAppKit(options: SolanaAppKitOptions) { - solanaAdapter = new SolanaAdapter({ - wallets: options.wallets - }) - appkit = new AppKit({ - ...options, - sdkVersion: `vue-solana-${packageJson.version}`, - adapters: [solanaAdapter] - }) - getAppKit(appkit) - - return appkit -} - -// -- Composites -------------------------------------------------------------- -export function useDisconnect() { - async function disconnect() { - await solanaAdapter?.connectionControllerClient?.disconnect() - } - - return { - disconnect - } -} - -export function useSwitchNetwork() { - async function switchNetwork(chainId: string) { - await solanaAdapter?.switchNetwork({ id: chainId } as CaipNetwork) - } - - return { - switchNetwork - } -} - -// eslint-disable-next-line @typescript-eslint/no-empty-function -export function useAppKitError() { - // eslint-disable-next-line no-warning-comments - // TODO fix error hook -} - -export { - useAppKitTheme, - useAppKit, - useAppKitState, - useAppKitEvents -} from '@reown/appkit/library/vue' -export { useAppKitConnection } diff --git a/packages/solana/package.json b/packages/solana/package.json deleted file mode 100644 index 7e6dbb41bf..0000000000 --- a/packages/solana/package.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "name": "@reown/appkit-solana", - "version": "1.0.7", - "type": "module", - "main": "./dist/esm/exports/index.js", - "types": "./dist/types/exports/index.d.ts", - "files": [ - "dist", - "!tsconfig.tsbuildinfo" - ], - "exports": { - ".": { - "types": "./dist/types/exports/index.d.ts", - "import": "./dist/esm/exports/index.js", - "default": "./dist/esm/exports/index.js" - }, - "./react": { - "types": "./dist/types/exports/react.d.ts", - "import": "./dist/esm/exports/react.js", - "default": "./dist/esm/exports/react.js" - }, - "./vue": { - "types": "./dist/types/exports/vue.d.ts", - "import": "./dist/esm/exports/vue.js", - "default": "./dist/esm/exports/vue.js" - }, - "./chains": { - "types": "./dist/types/exports/chains.d.ts", - "import": "./dist/esm/exports/chains.js", - "default": "./dist/esm/exports/chains.js" - } - }, - "typesVersions": { - "*": { - "react": [ - "./dist/types/exports/react.d.ts" - ], - "vue": [ - "./dist/types/exports/vue.d.ts" - ], - "chains": [ - "./dist/types/exports/chains.d.ts" - ] - } - }, - "scripts": { - "build:clean": "rm -rf dist", - "build": "tsc --build", - "watch": "tsc --watch", - "typecheck": "tsc --noEmit", - "lint": "eslint . --ext .js,.jsx,.ts,.tsx" - }, - "dependencies": { - "@ethersproject/sha2": "5.7.0", - "@solana/wallet-adapter-base": "0.9.23", - "@solana/wallet-standard-features": "1.2.0", - "@solana/wallet-standard-util": "1.1.1", - "@solana/web3.js": "1.95.3", - "@wallet-standard/app": "1.0.1", - "@wallet-standard/base": "1.0.1", - "@wallet-standard/features": "1.0.3", - "@wallet-standard/wallet": "1.0.1", - "@reown/appkit-adapter-solana": "workspace:*", - "@walletconnect/universal-provider": "2.17.0", - "@reown/appkit": "workspace:*", - "@reown/appkit-common": "workspace:*", - "@reown/appkit-core": "workspace:*", - "@reown/appkit-polyfills": "workspace:*", - "@reown/appkit-utils": "workspace:*", - "@reown/appkit-wallet": "workspace:*", - "bn.js": "5.2.1", - "borsh": "0.7.0", - "bs58": "5.0.0", - "buffer": "6.0.3", - "valtio": "1.11.2" - }, - "devDependencies": { - "@types/bn.js": "5.1.5", - "@vitest/coverage-v8": "2.0.5", - "@walletconnect/types": "2.17.0", - "vitest": "2.0.5" - }, - "peerDependencies": { - "react": ">=17", - "react-dom": ">=17", - "vue": ">=3" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - }, - "vue": { - "optional": true - } - }, - "keywords": [ - "web3", - "crypto", - "solana", - "appkit", - "walletconnect" - ], - "author": "Reown (https://reown.com)", - "license": "Apache-2.0", - "homepage": "https://github.com/reown-com/appkit", - "repository": { - "type": "git", - "url": "git+https://github.com/reown-com/appkit.git" - }, - "bugs": { - "url": "https://github.com/reown-com/appkit/issues" - } -} diff --git a/packages/solana/tsconfig.json b/packages/solana/tsconfig.json deleted file mode 100644 index bd87eda07b..0000000000 --- a/packages/solana/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "outDir": "./dist/esm", - "declarationDir": "./dist/types" - }, - "extends": "../../tsconfig.json", - "include": ["exports", "package.json"] -} diff --git a/packages/wagmi/.eslintrc.json b/packages/wagmi/.eslintrc.json deleted file mode 100644 index 0f959f167e..0000000000 --- a/packages/wagmi/.eslintrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": ["plugin:require-extensions/recommended", "../../.eslintrc.json"], - "plugins": ["require-extensions"] -} diff --git a/packages/wagmi/.npmignore b/packages/wagmi/.npmignore deleted file mode 100644 index 8d672eb83c..0000000000 --- a/packages/wagmi/.npmignore +++ /dev/null @@ -1,11 +0,0 @@ -*.log -*.env -.eslintrc.json -.turbo -tests -src -exports -node_modules -package-lock.json -tsconfig.json -index.ts diff --git a/packages/wagmi/CHANGELOG.md b/packages/wagmi/CHANGELOG.md deleted file mode 100644 index 8493bcc4cc..0000000000 --- a/packages/wagmi/CHANGELOG.md +++ /dev/null @@ -1,245 +0,0 @@ -# @reown/appkit-wagmi - -## 1.0.7 - -### Patch Changes - -- [#2977](https://github.com/reown-com/appkit/pull/2977) [`d45545d`](https://github.com/reown-com/appkit/commit/d45545ddd4073c35214db273b090ae8b4df9ef61) Thanks [@magiziz](https://github.com/magiziz)! - Fixed an issue where email line separator was not showing when social logins were disabled and `emailShowWallets` was set to false. - -- [#2990](https://github.com/reown-com/appkit/pull/2990) [`c2e391d`](https://github.com/reown-com/appkit/commit/c2e391d832aa3b5a1c2850cc49467bd4ef1e56f9) Thanks [@zoruka](https://github.com/zoruka)! - Fixes external connectors not appearing when using Solana adapter - -- [#2998](https://github.com/reown-com/appkit/pull/2998) [`e1081e9`](https://github.com/reown-com/appkit/commit/e1081e957b3ed73c068d6092923b59b0e27815d1) Thanks [@zoruka](https://github.com/zoruka)! - Fixes failing to connect with extension wallets on Solana Adapter - -- [#2985](https://github.com/reown-com/appkit/pull/2985) [`b949143`](https://github.com/reown-com/appkit/commit/b949143a0838810f7ae17a85e4c17acae10b888c) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates wagmi adapter to pass all custom wagmi configs to the createConfig function - -- [#3001](https://github.com/reown-com/appkit/pull/3001) [`6ad2530`](https://github.com/reown-com/appkit/commit/6ad253000261e60ddc0f60b341a658da6636bd3e) Thanks [@tomiir](https://github.com/tomiir)! - Adds FRAME_READY event for W3mFrameProvider - -- [#2989](https://github.com/reown-com/appkit/pull/2989) [`d40f978`](https://github.com/reown-com/appkit/commit/d40f978fe685fbc9599cdac36a99b12ec4350d3c) Thanks [@zoruka](https://github.com/zoruka)! - Disable names feature flow for Solana networks - -- Updated dependencies [[`d45545d`](https://github.com/reown-com/appkit/commit/d45545ddd4073c35214db273b090ae8b4df9ef61), [`c2e391d`](https://github.com/reown-com/appkit/commit/c2e391d832aa3b5a1c2850cc49467bd4ef1e56f9), [`e1081e9`](https://github.com/reown-com/appkit/commit/e1081e957b3ed73c068d6092923b59b0e27815d1), [`b949143`](https://github.com/reown-com/appkit/commit/b949143a0838810f7ae17a85e4c17acae10b888c), [`6ad2530`](https://github.com/reown-com/appkit/commit/6ad253000261e60ddc0f60b341a658da6636bd3e), [`d40f978`](https://github.com/reown-com/appkit/commit/d40f978fe685fbc9599cdac36a99b12ec4350d3c)]: - - @reown/appkit-adapter-wagmi@1.0.7 - - @reown/appkit@1.0.7 - - @reown/appkit-utils@1.0.7 - - @reown/appkit-common@1.0.7 - - @reown/appkit-polyfills@1.0.7 - - @reown/appkit-siwe@1.0.7 - - @reown/appkit-wallet@1.0.7 - -## 1.0.6 - -### Patch Changes - -- [#2970](https://github.com/reown-com/appkit/pull/2970) [`e6a36a7`](https://github.com/reown-com/appkit/commit/e6a36a746e85ced1f89fc1d7227e25df1559f063) Thanks [@magiziz](https://github.com/magiziz)! - Introducing debug mode. This is useful for seeing UI alerts while debugging. - - **Example usage** - - ```ts - import { createAppKit } from '@reown/appkit/react' - import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' - import { mainnet } from '@reown/appkit/networks' - - const wagmiAdapter = new WagmiAdapter({ - ssr: true, - networks: [mainnet], - projectId: 'YOUR_PROJECT_ID' - }) - - const modal = createAppKit({ - adapters: [wagmiAdapter], - networks: [mainnet], - projectId: 'YOUR_PROJECT_ID', - debug: true // Optional - defaults to false - }) - ``` - -- [#2984](https://github.com/reown-com/appkit/pull/2984) [`b5444bd`](https://github.com/reown-com/appkit/commit/b5444bdd454d370cf3f17267d457cd46de10a5b9) Thanks [@magiziz](https://github.com/magiziz)! - Changed logger imports to not cause the webpack bundler to throw a CommonJS module error. - -- [#2974](https://github.com/reown-com/appkit/pull/2974) [`0563711`](https://github.com/reown-com/appkit/commit/05637111aba940af5f46215336268294675322fd) Thanks [@magiziz](https://github.com/magiziz)! - Added create wallet flow in connect modal - -- Updated dependencies [[`e6a36a7`](https://github.com/reown-com/appkit/commit/e6a36a746e85ced1f89fc1d7227e25df1559f063), [`b5444bd`](https://github.com/reown-com/appkit/commit/b5444bdd454d370cf3f17267d457cd46de10a5b9), [`0563711`](https://github.com/reown-com/appkit/commit/05637111aba940af5f46215336268294675322fd)]: - - @reown/appkit-adapter-wagmi@1.0.6 - - @reown/appkit@1.0.6 - - @reown/appkit-utils@1.0.6 - - @reown/appkit-common@1.0.6 - - @reown/appkit-polyfills@1.0.6 - - @reown/appkit-siwe@1.0.6 - - @reown/appkit-wallet@1.0.6 - -## 1.0.5 - -### Patch Changes - -- [#2872](https://github.com/reown-com/appkit/pull/2872) [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513) Thanks [@zoruka](https://github.com/zoruka)! - Get correct data from session namespaces and set it for approved caip networks data on UniversalProvider usage" - -- [#2937](https://github.com/reown-com/appkit/pull/2937) [`97dd79d`](https://github.com/reown-com/appkit/commit/97dd79df711201d5b7450fb10544f063975e6cb6) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates adapter packages dependency managements - -- [#2919](https://github.com/reown-com/appkit/pull/2919) [`e2bacfd`](https://github.com/reown-com/appkit/commit/e2bacfd0aaa9a83060d3181678c42dd9cc90293b) Thanks [@zoruka](https://github.com/zoruka)! - Adds batched call for solana_signAllTransactions RPC call on Solana WalletConnectProvider - -- [#2872](https://github.com/reown-com/appkit/pull/2872) [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513) Thanks [@zoruka](https://github.com/zoruka)! - Implement the correct logic for getting available networks when using universal provider - -- [#2927](https://github.com/reown-com/appkit/pull/2927) [`865320c`](https://github.com/reown-com/appkit/commit/865320c709bb76a61ec88c786c6b2a354c8b4b8b) Thanks [@enesozturk](https://github.com/enesozturk)! - Refactors setting active CAIP address and aligns ethers5 adapter with ethers - -- [#2920](https://github.com/reown-com/appkit/pull/2920) [`eeb9207`](https://github.com/reown-com/appkit/commit/eeb92079b4bb37d2cb9db68f51bcdeb87bd83af3) Thanks [@ignaciosantise](https://github.com/ignaciosantise)! - fix: use usdt abi for usdt transactions - -- [#2916](https://github.com/reown-com/appkit/pull/2916) [`cc35726`](https://github.com/reown-com/appkit/commit/cc357269ec04c6372c50d3bf00c674bfe182128b) Thanks [@ignaciosantise](https://github.com/ignaciosantise)! - fix: override ens profile picture if resolved - -- [#2934](https://github.com/reown-com/appkit/pull/2934) [`6faa782`](https://github.com/reown-com/appkit/commit/6faa7829c73b98430f1d8873bd9caf6c90046f2e) Thanks [@enesozturk](https://github.com/enesozturk)! - Fixes swap amount calculation to prevent floating numbers - -- [#2947](https://github.com/reown-com/appkit/pull/2947) [`bad570a`](https://github.com/reown-com/appkit/commit/bad570a9806785854cea4573cfb1e5bfb4e4a8fb) Thanks [@magiziz](https://github.com/magiziz)! - Replaced multi-account screen with single account screen when only one account is connected - -- [#2944](https://github.com/reown-com/appkit/pull/2944) [`8baf998`](https://github.com/reown-com/appkit/commit/8baf998133d0bbab4f87f15a0337d4b1452912d7) Thanks [@tomiir](https://github.com/tomiir)! - Fix issue where wagmis useDisconnect hook would not disconnect appkit internally - -- Updated dependencies [[`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513), [`97dd79d`](https://github.com/reown-com/appkit/commit/97dd79df711201d5b7450fb10544f063975e6cb6), [`e2bacfd`](https://github.com/reown-com/appkit/commit/e2bacfd0aaa9a83060d3181678c42dd9cc90293b), [`f5dc9fa`](https://github.com/reown-com/appkit/commit/f5dc9fa1ec5c853f0ee7edbeb0aa6f053bdc5513), [`865320c`](https://github.com/reown-com/appkit/commit/865320c709bb76a61ec88c786c6b2a354c8b4b8b), [`eeb9207`](https://github.com/reown-com/appkit/commit/eeb92079b4bb37d2cb9db68f51bcdeb87bd83af3), [`cc35726`](https://github.com/reown-com/appkit/commit/cc357269ec04c6372c50d3bf00c674bfe182128b), [`6faa782`](https://github.com/reown-com/appkit/commit/6faa7829c73b98430f1d8873bd9caf6c90046f2e), [`bad570a`](https://github.com/reown-com/appkit/commit/bad570a9806785854cea4573cfb1e5bfb4e4a8fb), [`8baf998`](https://github.com/reown-com/appkit/commit/8baf998133d0bbab4f87f15a0337d4b1452912d7)]: - - @reown/appkit-adapter-wagmi@1.0.5 - - @reown/appkit@1.0.5 - - @reown/appkit-utils@1.0.5 - - @reown/appkit-common@1.0.5 - - @reown/appkit-polyfills@1.0.5 - - @reown/appkit-siwe@1.0.5 - - @reown/appkit-wallet@1.0.5 - -## 1.0.4 - -### Patch Changes - -- [#2907](https://github.com/reown-com/appkit/pull/2907) [`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where featured wallet ids were being filtered out if their connector was present but not displayed. eg. SDK Connectors. - -- [#2882](https://github.com/reown-com/appkit/pull/2882) [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b) Thanks [@magiziz](https://github.com/magiziz)! - Fixed deep link not working after connecting a wallet - -- Updated dependencies [[`b35af73`](https://github.com/reown-com/appkit/commit/b35af73dde9c46142741bd153e9e7105c077cfbd), [`aaa22cf`](https://github.com/reown-com/appkit/commit/aaa22cfdb620d44da52466c1cc9270ad88f4c81b)]: - - @reown/appkit-adapter-wagmi@1.0.4 - - @reown/appkit@1.0.4 - - @reown/appkit-utils@1.0.4 - - @reown/appkit-common@1.0.4 - - @reown/appkit-polyfills@1.0.4 - - @reown/appkit-siwe@1.0.4 - - @reown/appkit-wallet@1.0.4 - -## 1.0.3 - -### Patch Changes - -- [#2897](https://github.com/reown-com/appkit/pull/2897) [`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d) Thanks [@tomiir](https://github.com/tomiir)! - Makes SDKType param optional - -- [#2889](https://github.com/reown-com/appkit/pull/2889) [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3) Thanks [@svenvoskamp](https://github.com/svenvoskamp)! - Update siweParams with AppKit chains - -- [#2888](https://github.com/reown-com/appkit/pull/2888) [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates active network state management and local storage controls - -- Updated dependencies [[`fb20e46`](https://github.com/reown-com/appkit/commit/fb20e461ee6745b83d9cdf5051fc4c674e0d793d), [`dc7b895`](https://github.com/reown-com/appkit/commit/dc7b89527e4dd3c4602db69491be5bc03a9c52d3), [`1086727`](https://github.com/reown-com/appkit/commit/1086727e024bafbbebe0059635c4d8728a7fb6b9)]: - - @reown/appkit-wallet@1.0.3 - - @reown/appkit-adapter-wagmi@1.0.3 - - @reown/appkit@1.0.3 - - @reown/appkit-utils@1.0.3 - - @reown/appkit-common@1.0.3 - - @reown/appkit-polyfills@1.0.3 - - @reown/appkit-siwe@1.0.3 - -## 1.0.2 - -### Patch Changes - -- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes issue where wagmi would not reconnect on an active session - -- [#2867](https://github.com/reown-com/appkit/pull/2867) [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687) Thanks [@zoruka](https://github.com/zoruka)! - Refactors solana network and account syncing logic to clean up the code and fix missing project id for solana connection - -- [#2879](https://github.com/reown-com/appkit/pull/2879) [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2) Thanks [@zoruka](https://github.com/zoruka)! - Add Solana CoinbaseWalletProvider to allow connecting with coinbase extension - -- [#2881](https://github.com/reown-com/appkit/pull/2881) [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240) Thanks [@tomiir](https://github.com/tomiir)! - Fixes wrong wagmi authConnector name causing issues when merging multiple authConnectors - -- [#2861](https://github.com/reown-com/appkit/pull/2861) [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates the localstorage keys - -- Updated dependencies [[`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`48ad644`](https://github.com/reown-com/appkit/commit/48ad6444ca8f5a53cc2669e961492e62f32c0687), [`babb413`](https://github.com/reown-com/appkit/commit/babb4133ddff939061b788c3115b9d988b6e3ce2), [`a632159`](https://github.com/reown-com/appkit/commit/a6321595e4c910215e552119be69dc1486efb240), [`a181a19`](https://github.com/reown-com/appkit/commit/a181a19a017053df646e9ae6e1ffa77b1deac1d1)]: - - @reown/appkit-adapter-wagmi@1.0.2 - - @reown/appkit-wallet@1.0.2 - - @reown/appkit@1.0.2 - - @reown/appkit-utils@1.0.2 - - @reown/appkit-common@1.0.2 - - @reown/appkit-polyfills@1.0.2 - - @reown/appkit-siwe@1.0.2 - -## 1.0.1 - -### Patch Changes - -- [#54](https://github.com/WalletConnect/web3modal/pull/54) [`dc6dd8d`](https://github.com/WalletConnect/web3modal/commit/dc6dd8d37cbe79ae3b0bcaf7bdace1fe6ad11b09) Thanks [@tomiir](https://github.com/tomiir)! - Makes packages public - -- Updated dependencies [[`dc6dd8d`](https://github.com/WalletConnect/web3modal/commit/dc6dd8d37cbe79ae3b0bcaf7bdace1fe6ad11b09)]: - - @reown/appkit-adapter-wagmi@1.0.1 - - @reown/appkit@1.0.1 - - @reown/appkit-utils@1.0.1 - - @reown/appkit-common@1.0.1 - - @reown/appkit-polyfills@1.0.1 - - @reown/appkit-siwe@1.0.1 - - @reown/appkit-wallet@1.0.1 - -## 1.0.0 - -### Major Changes - -- [#53](https://github.com/WalletConnect/web3modal/pull/53) [`f4a378d`](https://github.com/WalletConnect/web3modal/commit/f4a378de8bf67f296ab5cc2d730533e7362ba36a) Thanks [@tomiir](https://github.com/tomiir)! - Reown v1.0.0 - -### Patch Changes - -- [#49](https://github.com/WalletConnect/web3modal/pull/49) [`e678965`](https://github.com/WalletConnect/web3modal/commit/e67896504762ea2220aaedb3202077eec83fdc7f) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates prop names, adapter names, network exported path name - -- [#52](https://github.com/WalletConnect/web3modal/pull/52) [`3d62df8`](https://github.com/WalletConnect/web3modal/commit/3d62df8e0f29977ee82f96f17fbbac66f39ae6a6) Thanks [@zoruka](https://github.com/zoruka)! - Fix network availability and wagmi reconnect - -- Updated dependencies [[`e678965`](https://github.com/WalletConnect/web3modal/commit/e67896504762ea2220aaedb3202077eec83fdc7f), [`3d62df8`](https://github.com/WalletConnect/web3modal/commit/3d62df8e0f29977ee82f96f17fbbac66f39ae6a6), [`f4a378d`](https://github.com/WalletConnect/web3modal/commit/f4a378de8bf67f296ab5cc2d730533e7362ba36a)]: - - @reown/appkit-adapter-wagmi@1.0.0 - - @reown/appkit@1.0.0 - - @reown/appkit-utils@1.0.0 - - @reown/appkit-common@1.0.0 - - @reown/appkit-polyfills@1.0.0 - - @reown/appkit-siwe@1.0.0 - - @reown/appkit-wallet@1.0.0 - -## 0.0.5 - -### Patch Changes - -- [#45](https://github.com/WalletConnect/web3modal/pull/45) [`395398c`](https://github.com/WalletConnect/web3modal/commit/395398c7c943142776da2ea8011205e600d8ab86) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates RPC urls project id query params dynamically - -- [#46](https://github.com/WalletConnect/web3modal/pull/46) [`756ab0d`](https://github.com/WalletConnect/web3modal/commit/756ab0d9f7b86abc6b1a4831197058176618d9ef) Thanks [@enesozturk](https://github.com/enesozturk)! - Updates sdk type and sdk version values - -- [#42](https://github.com/WalletConnect/web3modal/pull/42) [`8c90093`](https://github.com/WalletConnect/web3modal/commit/8c90093f724dc1ba4e86f7101fac8772b58fae04) Thanks [@tomiir](https://github.com/tomiir)! - Fix circular dependency in OptionsController - -- Updated dependencies [[`395398c`](https://github.com/WalletConnect/web3modal/commit/395398c7c943142776da2ea8011205e600d8ab86), [`756ab0d`](https://github.com/WalletConnect/web3modal/commit/756ab0d9f7b86abc6b1a4831197058176618d9ef), [`8c90093`](https://github.com/WalletConnect/web3modal/commit/8c90093f724dc1ba4e86f7101fac8772b58fae04)]: - - @reown/appkit-adapter-wagmi@0.0.5 - - @reown/appkit@0.0.5 - - @reown/appkit-common@0.0.5 - - @reown/appkit-utils@0.0.5 - - @reown/appkit-polyfills@0.0.5 - - @reown/appkit-siwe@0.0.5 - - @reown/appkit-wallet@0.0.5 - -## 0.0.4 - -### Patch Changes - -- [#38](https://github.com/WalletConnect/web3modal/pull/38) [`89fb054`](https://github.com/WalletConnect/web3modal/commit/89fb054d7e2513b80940c73101dc395e7ea2694b) Thanks [@tomiir](https://github.com/tomiir)! - Base reown package rename setup. - -- Updated dependencies [[`89fb054`](https://github.com/WalletConnect/web3modal/commit/89fb054d7e2513b80940c73101dc395e7ea2694b)]: - - @reown/appkit-adapter-wagmi@0.0.4 - - @reown/appkit-utils@0.0.4 - - @reown/appkit-polyfills@0.0.4 - - @reown/appkit@0.0.4 - - @reown/appkit-common@0.0.4 - - @reown/appkit-wallet@0.0.4 - - @reown/appkit-siwe@0.0.4 - -## 0.0.3 - -### Patch Changes - -- [#28](https://github.com/WalletConnect/web3modal/pull/28) [`91d0296`](https://github.com/WalletConnect/web3modal/commit/91d02963cbe3c2d06b74801b519ce23dd30ff797) Thanks [@tomiir](https://github.com/tomiir)! - Package setup. Reset Changelogs - -- [#12](https://github.com/WalletConnect/web3modal/pull/12) [`51eff9f`](https://github.com/WalletConnect/web3modal/commit/51eff9f82c296b0ba2b5ab33af92a1fa54a77f7a) Thanks [@tomiir](https://github.com/tomiir)! - Adds test vitest.workspace file - -- Updated dependencies [[`91d0296`](https://github.com/WalletConnect/web3modal/commit/91d02963cbe3c2d06b74801b519ce23dd30ff797), [`51eff9f`](https://github.com/WalletConnect/web3modal/commit/51eff9f82c296b0ba2b5ab33af92a1fa54a77f7a)]: - - @reown/appkit-adapter-wagmi@0.0.3 - - @reown/appkit@0.0.3 - - @reown/appkit-common@0.0.3 - - @reown/appkit-polyfills@0.0.3 - - @reown/appkit-utils@0.0.3 - - @reown/appkit-siwe@0.0.3 - - @reown/appkit-wallet@0.0.3 diff --git a/packages/wagmi/exports/index.ts b/packages/wagmi/exports/index.ts deleted file mode 100644 index b66257fee0..0000000000 --- a/packages/wagmi/exports/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { AppKit } from '@reown/appkit' -import type { AppKitOptions } from '@reown/appkit' -import { WagmiAdapter, type AdapterOptions } from '@reown/appkit-adapter-wagmi' -import type { Config } from 'wagmi' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Types ------------------------------------------------------------- -export type { AdapterOptions } from '@reown/appkit-adapter-wagmi' - -// -- Connectors -------------------------------------------------------- -export { authConnector } from '@reown/appkit-adapter-wagmi' - -// -- Setup ------------------------------------------------------------- -export type WagmiAppKitOptions = Omit & - AdapterOptions - -export function createAppKit(options: WagmiAppKitOptions) { - const wagmiAdapter = new WagmiAdapter({ - networks: options.networks, - projectId: options.projectId - }) - - return new AppKit({ - ...options, - sdkVersion: `html-wagmi-${packageJson.version}`, - adapters: [wagmiAdapter] - }) -} diff --git a/packages/wagmi/exports/react/config.ts b/packages/wagmi/exports/react/config.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/wagmi/exports/react/index.ts b/packages/wagmi/exports/react/index.ts deleted file mode 100644 index 81ff60947b..0000000000 --- a/packages/wagmi/exports/react/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { AppKit } from '@reown/appkit' -import type { AppKitOptions } from '@reown/appkit' -import { WagmiAdapter, type AdapterOptions } from '@reown/appkit-adapter-wagmi' -import { getAppKit } from '@reown/appkit/library/react' -import { type Config, type CreateConfigParameters } from 'wagmi' -import packageJson from '../../package.json' assert { type: 'json' } - -// -- Setup ------------------------------------------------------------------- -let appkit: AppKit | undefined = undefined - -export type WagmiAppKitOptions = Omit & - AdapterOptions & { - wagmiConfig?: CreateConfigParameters - } - -export function createAppKit(options: WagmiAppKitOptions) { - const wagmiAdapter = new WagmiAdapter({ - ...options.wagmiConfig, - networks: options.networks, - projectId: options.projectId - }) - - appkit = new AppKit({ - ...options, - sdkVersion: `react-wagmi-${packageJson.version}`, - adapters: [wagmiAdapter] - }) - getAppKit(appkit) - - return appkit -} - -// -- Hooks ------------------------------------------------------------------- -export { - useAppKitTheme, - useAppKit, - useAppKitState, - useAppKitEvents, - useWalletInfo -} from '@reown/appkit/library/react' diff --git a/packages/wagmi/exports/vue.ts b/packages/wagmi/exports/vue.ts deleted file mode 100644 index e30f993763..0000000000 --- a/packages/wagmi/exports/vue.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { AppKit } from '@reown/appkit' -import type { AppKitOptions } from '@reown/appkit' -import { WagmiAdapter, type AdapterOptions } from '@reown/appkit-adapter-wagmi' -import { getAppKit } from '@reown/appkit/library/vue' -import type { Config } from '@wagmi/core' -import packageJson from '../package.json' assert { type: 'json' } - -// -- Setup ------------------------------------------------------------------- -let appkit: AppKit | undefined = undefined - -export type WagmiAppKitOptions = Omit & - AdapterOptions - -export function createAppKit(options: WagmiAppKitOptions) { - const wagmiAdapter = new WagmiAdapter({ - networks: options.networks, - projectId: options.projectId - }) - appkit = new AppKit({ - ...options, - sdkVersion: `vue-wagmi-${packageJson.version}`, - adapters: [wagmiAdapter] - }) - getAppKit(appkit) - - return appkit -} - -// -- Composites -------------------------------------------------------------- -export { - useAppKitTheme, - useAppKit, - useAppKitState, - useAppKitEvents, - useWalletInfo -} from '@reown/appkit/library/vue' diff --git a/packages/wagmi/package.json b/packages/wagmi/package.json deleted file mode 100644 index a0e0949a62..0000000000 --- a/packages/wagmi/package.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "name": "@reown/appkit-wagmi", - "version": "1.0.7", - "type": "module", - "main": "./dist/esm/exports/index.js", - "types": "./dist/types/exports/index.d.ts", - "files": [ - "dist", - "!tsconfig.tsbuildinfo" - ], - "exports": { - ".": { - "types": "./dist/types/exports/index.d.ts", - "import": "./dist/esm/exports/index.js", - "default": "./dist/esm/exports/index.js" - }, - "./react": { - "types": "./dist/types/exports/react/index.d.ts", - "import": "./dist/esm/exports/react/index.js", - "default": "./dist/esm/exports/react/index.js" - }, - "./react/config": { - "types": "./dist/types/exports/react/config.d.ts", - "import": "./dist/esm/exports/react/config.js", - "default": "./dist/esm/exports/react/config.js" - }, - "./vue": { - "types": "./dist/types/exports/vue.d.ts", - "import": "./dist/esm/exports/vue.js", - "default": "./dist/esm/exports/vue.js" - } - }, - "typesVersions": { - "*": { - "react": [ - "./dist/types/exports/react/index.d.ts" - ], - "react/config": [ - "./dist/types/exports/react/config.d.ts" - ], - "vue": [ - "./dist/types/exports/vue.d.ts" - ] - } - }, - "scripts": { - "build:clean": "rm -rf dist", - "build": "tsc --build", - "watch": "tsc --watch", - "typecheck": "tsc --noEmit", - "lint": "eslint . --ext .js,.jsx,.ts,.tsx" - }, - "dependencies": { - "@walletconnect/utils": "2.17.0", - "@reown/appkit-polyfills": "workspace:*", - "@reown/appkit-adapter-wagmi": "workspace:*", - "@reown/appkit": "workspace:*", - "@reown/appkit-wallet": "workspace:*", - "@reown/appkit-common": "workspace:*", - "@reown/appkit-utils": "workspace:*", - "@reown/appkit-siwe": "workspace:*" - }, - "devDependencies": { - "@wagmi/connectors": "5.1.9", - "@wagmi/core": "2.13.4", - "react": "18.2.0", - "react-dom": "18.2.0", - "viem": "2.x", - "vue": "3.4.3", - "wagmi": "2.12.9", - "vitest": "2.0.5" - }, - "peerDependencies": { - "@wagmi/connectors": ">=4", - "@wagmi/core": ">=2.0.0", - "react": ">=17", - "react-dom": ">=17", - "viem": "2.x", - "vue": ">=3", - "wagmi": ">=2.0.0" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - }, - "vue": { - "optional": true - } - }, - "author": "Reown (https://reown.com)", - "license": "Apache-2.0", - "homepage": "https://github.com/reown-com/appkit", - "repository": { - "type": "git", - "url": "git+https://github.com/reown-com/appkit.git" - }, - "bugs": { - "url": "https://github.com/reown-com/appkit/issues" - } -} diff --git a/packages/wagmi/readme.md b/packages/wagmi/readme.md deleted file mode 100644 index a0afe8b4d9..0000000000 --- a/packages/wagmi/readme.md +++ /dev/null @@ -1,11 +0,0 @@ -#### 📚 [Documentation](https://docs.reown.com/2.0/appkit/about) - -#### 🔗 [Website](https://reown.com/appkit) - -# AppKit - -Your on-ramp to web3 multichain. AppKit is a versatile library that makes it super easy to connect users with your Dapp and start interacting with the blockchain. - -

- -

diff --git a/packages/wagmi/tests/adapter.test.ts b/packages/wagmi/tests/adapter.test.ts deleted file mode 100644 index 087a4ddfa6..0000000000 --- a/packages/wagmi/tests/adapter.test.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { describe, expect, test, vi } from 'vitest' -import { connect, disconnect, getAccount as getAccount_wagmi } from '@wagmi/core' -import { ConstantsUtil } from '@reown/appkit-utils' -import { appKitMock, wagmiAdapterMock, mockAccount } from './mocks/adapter.mock' -import { mainnet } from 'viem/chains' - -describe('wagmi adapter', () => { - test('should connect to adapter', async () => { - expect(appKitMock.getConnectors().length).toBe(5) - expect(appKitMock.getIsConnectedState()).toBe(false) - expect(appKitMock.getCaipAddress()).toBeUndefined() - - const setApprovedCaipNetworksData = vi - .spyOn(appKitMock, 'setApprovedCaipNetworksData') - .mockResolvedValue() - - expect(wagmiAdapterMock.wagmiConfig).toBeDefined() - - await connect(wagmiAdapterMock.wagmiConfig!, { - connector: wagmiAdapterMock.wagmiConfig!.connectors[0]! - }) - - expect(setApprovedCaipNetworksData).toHaveBeenCalledOnce() - - expect(appKitMock.getIsConnectedState()).toBe(true) - expect(appKitMock.getCaipAddress()).toBe( - `${ConstantsUtil.EIP155}:${mainnet.id}:${mockAccount.address}` - ) - - const wagmiAccount = getAccount_wagmi(wagmiAdapterMock.wagmiConfig!) - - expect(wagmiAccount.status).toBe('connected') - expect(wagmiAccount.address).toBe(mockAccount.address) - }) - - test('should disconnect from adapter', async () => { - expect(appKitMock.getIsConnectedState()).toBe(true) - - const resetAccount = vi.spyOn(appKitMock, 'resetAccount') - const resetWcConnection = vi.spyOn(appKitMock, 'resetWcConnection') - const resetNetwork = vi.spyOn(appKitMock, 'resetNetwork') - - await disconnect(wagmiAdapterMock.wagmiConfig!) - - expect(resetAccount).toHaveBeenCalledOnce() - expect(resetWcConnection).toHaveBeenCalledOnce() - expect(resetNetwork).toHaveBeenCalledOnce() - - expect(appKitMock.getIsConnectedState()).toBe(false) - - const wagmiAccount = getAccount_wagmi(wagmiAdapterMock.wagmiConfig!) - - expect(wagmiAccount.status).toBe('disconnected') - expect(wagmiAccount.address).toBeUndefined() - }) -}) diff --git a/packages/wagmi/tests/mocks/adapter.mock.ts b/packages/wagmi/tests/mocks/adapter.mock.ts deleted file mode 100644 index fb504d71de..0000000000 --- a/packages/wagmi/tests/mocks/adapter.mock.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' -import { createConfig, http } from 'wagmi' -import { mock } from 'wagmi/connectors' -import { mainnet } from '@reown/appkit/networks' - -import { generatePrivateKey, privateKeyToAccount } from 'viem/accounts' -import { AppKit, type SdkVersion } from '@reown/appkit' - -const privateKey = generatePrivateKey() -export const mockAccount = privateKeyToAccount(privateKey) - -export const wagmiConfigMock = createConfig({ - chains: [mainnet], - connectors: [mock({ accounts: [mockAccount.address] })], - transports: { - [mainnet.id]: http() - } -}) - -export const wagmiAdapterMock = new WagmiAdapter({ - chains: [mainnet], - connectors: [mock({ accounts: [mockAccount.address] })], - transports: { - [mainnet.id]: http() - }, - networks: [mainnet], - projectId: '1234' -}) - -const mockAppKitData = { - adapters: [wagmiAdapterMock], - networks: wagmiAdapterMock.caipNetworks, - defaultNetwork: mainnet, - metadata: { - description: 'Desc', - name: 'Name', - url: 'url.com', - icons: ['icon.png'] - }, - projectId: '1234', - sdkVersion: 'html-wagmi-5.1.6' as SdkVersion -} - -export const appKitMock = new AppKit(mockAppKitData) diff --git a/packages/wagmi/tsconfig.json b/packages/wagmi/tsconfig.json deleted file mode 100644 index f7473b3808..0000000000 --- a/packages/wagmi/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "outDir": "./dist/esm", - "declarationDir": "./dist/types" - }, - "extends": "../../tsconfig.json", - "include": ["exports", "tests", "package.json"] -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 29e1ac7982..ebee65c16a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -213,24 +213,12 @@ importers: '@reown/appkit-adapter-wagmi': specifier: workspace:* version: link:../../packages/adapters/wagmi - '@reown/appkit-ethers': - specifier: workspace:* - version: link:../../packages/ethers - '@reown/appkit-ethers5': - specifier: workspace:* - version: link:../../packages/ethers5 '@reown/appkit-experimental': specifier: workspace:* version: link:../../packages/experimental '@reown/appkit-siwe': specifier: workspace:* version: link:../../packages/siwe - '@reown/appkit-solana': - specifier: workspace:* - version: link:../../packages/solana - '@reown/appkit-wagmi': - specifier: workspace:* - version: link:../../packages/wagmi '@reown/appkit-wallet': specifier: workspace:* version: link:../../packages/wallet @@ -661,9 +649,9 @@ importers: '@reown/appkit': specifier: workspace:* version: link:../../packages/appkit - '@reown/appkit-solana': + '@reown/appkit-adapter-solana': specifier: workspace:* - version: link:../../packages/solana + version: link:../../packages/adapters/solana '@solana/wallet-adapter-backpack': specifier: 0.1.14 version: 0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -760,9 +748,9 @@ importers: '@reown/appkit': specifier: workspace:* version: link:../../packages/appkit - '@reown/appkit-solana': + '@reown/appkit-adapter-solana': specifier: workspace:* - version: link:../../packages/solana + version: link:../../packages/adapters/solana '@solana/wallet-adapter-backpack': specifier: 0.1.14 version: 0.1.14(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) @@ -1217,18 +1205,24 @@ importers: packages/cdn: dependencies: - '@reown/appkit-ethers': + '@reown/appkit': + specifier: workspace:* + version: link:../appkit + '@reown/appkit-adapter-ethers': specifier: workspace:* - version: link:../ethers - '@reown/appkit-ethers5': + version: link:../adapters/ethers + '@reown/appkit-adapter-ethers5': specifier: workspace:* - version: link:../ethers5 + version: link:../adapters/ethers5 + '@reown/appkit-adapter-solana': + specifier: workspace:* + version: link:../adapters/solana + '@reown/appkit-adapter-wagmi': + specifier: workspace:* + version: link:../adapters/wagmi '@reown/appkit-polyfills': specifier: workspace:* version: link:../polyfills - '@reown/appkit-wagmi': - specifier: workspace:* - version: link:../wagmi '@wagmi/connectors': specifier: 5.1.9 version: 5.1.9(@types/react@18.2.62)(@wagmi/core@2.13.4(@tanstack/query-core@5.56.2)(@types/react@18.2.62)(react@18.2.0)(typescript@5.3.3)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4)))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) @@ -1299,98 +1293,6 @@ importers: specifier: 3.x version: 3.4.3(typescript@5.3.3) - packages/ethers: - dependencies: - '@coinbase/wallet-sdk': - specifier: 4.0.3 - version: 4.0.3 - '@reown/appkit': - specifier: workspace:* - version: link:../appkit - '@reown/appkit-adapter-ethers': - specifier: workspace:* - version: link:../adapters/ethers - '@reown/appkit-common': - specifier: workspace:* - version: link:../common - '@reown/appkit-polyfills': - specifier: workspace:* - version: link:../polyfills - '@reown/appkit-siwe': - specifier: workspace:* - version: link:../siwe - '@reown/appkit-utils': - specifier: workspace:* - version: link:../appkit-utils - '@reown/appkit-wallet': - specifier: workspace:* - version: link:../wallet - '@walletconnect/utils': - specifier: 2.17.0 - version: 2.17.0 - ethers: - specifier: '>=6.0.0' - version: 6.13.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - valtio: - specifier: 1.11.2 - version: 1.11.2(@types/react@18.2.62)(react@18.2.0) - devDependencies: - react: - specifier: 18.2.0 - version: 18.2.0 - react-dom: - specifier: 18.2.0 - version: 18.2.0(react@18.2.0) - vue: - specifier: 3.4.3 - version: 3.4.3(typescript@5.3.3) - - packages/ethers5: - dependencies: - '@coinbase/wallet-sdk': - specifier: 4.0.3 - version: 4.0.3 - '@reown/appkit': - specifier: workspace:* - version: link:../appkit - '@reown/appkit-adapter-ethers5': - specifier: workspace:* - version: link:../adapters/ethers5 - '@reown/appkit-common': - specifier: workspace:* - version: link:../common - '@reown/appkit-polyfills': - specifier: workspace:* - version: link:../polyfills - '@reown/appkit-siwe': - specifier: workspace:* - version: link:../siwe - '@reown/appkit-utils': - specifier: workspace:* - version: link:../appkit-utils - '@reown/appkit-wallet': - specifier: workspace:* - version: link:../wallet - '@walletconnect/utils': - specifier: 2.17.0 - version: 2.17.0 - valtio: - specifier: 1.11.2 - version: 1.11.2(@types/react@18.2.62)(react@18.2.0) - devDependencies: - ethers: - specifier: 5.7.2 - version: 5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) - react: - specifier: 18.2.0 - version: 18.2.0 - react-dom: - specifier: 18.2.0 - version: 18.2.0(react@18.2.0) - vue: - specifier: 3.4.3 - version: 3.4.3(typescript@5.3.3) - packages/experimental: dependencies: '@reown/appkit': @@ -1487,97 +1389,6 @@ importers: specifier: 1.11.2 version: 1.11.2(@types/react@18.2.62)(react@18.2.0) - packages/solana: - dependencies: - '@ethersproject/sha2': - specifier: 5.7.0 - version: 5.7.0 - '@reown/appkit': - specifier: workspace:* - version: link:../appkit - '@reown/appkit-adapter-solana': - specifier: workspace:* - version: link:../adapters/solana - '@reown/appkit-common': - specifier: workspace:* - version: link:../common - '@reown/appkit-core': - specifier: workspace:* - version: link:../core - '@reown/appkit-polyfills': - specifier: workspace:* - version: link:../polyfills - '@reown/appkit-utils': - specifier: workspace:* - version: link:../appkit-utils - '@reown/appkit-wallet': - specifier: workspace:* - version: link:../wallet - '@solana/wallet-adapter-base': - specifier: 0.9.23 - version: 0.9.23(@solana/web3.js@1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - '@solana/wallet-standard-features': - specifier: 1.2.0 - version: 1.2.0 - '@solana/wallet-standard-util': - specifier: 1.1.1 - version: 1.1.1 - '@solana/web3.js': - specifier: 1.95.3 - version: 1.95.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@wallet-standard/app': - specifier: 1.0.1 - version: 1.0.1 - '@wallet-standard/base': - specifier: 1.0.1 - version: 1.0.1 - '@wallet-standard/features': - specifier: 1.0.3 - version: 1.0.3 - '@wallet-standard/wallet': - specifier: 1.0.1 - version: 1.0.1 - '@walletconnect/universal-provider': - specifier: 2.17.0 - version: 2.17.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - bn.js: - specifier: 5.2.1 - version: 5.2.1 - borsh: - specifier: 0.7.0 - version: 0.7.0 - bs58: - specifier: 5.0.0 - version: 5.0.0 - buffer: - specifier: 6.0.3 - version: 6.0.3 - react: - specifier: '>=17' - version: 18.2.0 - react-dom: - specifier: '>=17' - version: 18.2.0(react@18.2.0) - valtio: - specifier: 1.11.2 - version: 1.11.2(@types/react@18.2.62)(react@18.2.0) - vue: - specifier: '>=3' - version: 3.4.3(typescript@5.3.3) - devDependencies: - '@types/bn.js': - specifier: 5.1.5 - version: 5.1.5 - '@vitest/coverage-v8': - specifier: 2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) - '@walletconnect/types': - specifier: 2.17.0 - version: 2.17.0 - vitest: - specifier: 2.0.5 - version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) - packages/ui: dependencies: lit: @@ -1612,58 +1423,6 @@ importers: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) - packages/wagmi: - dependencies: - '@reown/appkit': - specifier: workspace:* - version: link:../appkit - '@reown/appkit-adapter-wagmi': - specifier: workspace:* - version: link:../adapters/wagmi - '@reown/appkit-common': - specifier: workspace:* - version: link:../common - '@reown/appkit-polyfills': - specifier: workspace:* - version: link:../polyfills - '@reown/appkit-siwe': - specifier: workspace:* - version: link:../siwe - '@reown/appkit-utils': - specifier: workspace:* - version: link:../appkit-utils - '@reown/appkit-wallet': - specifier: workspace:* - version: link:../wallet - '@walletconnect/utils': - specifier: 2.17.0 - version: 2.17.0 - devDependencies: - '@wagmi/connectors': - specifier: 5.1.9 - version: 5.1.9(@types/react@18.2.62)(@wagmi/core@2.13.4(@tanstack/query-core@5.56.2)(@types/react@18.2.62)(react@18.2.0)(typescript@5.3.3)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4)))(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) - '@wagmi/core': - specifier: 2.13.4 - version: 2.13.4(@tanstack/query-core@5.56.2)(@types/react@18.2.62)(react@18.2.0)(typescript@5.3.3)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4)) - react: - specifier: 18.2.0 - version: 18.2.0 - react-dom: - specifier: 18.2.0 - version: 18.2.0(react@18.2.0) - viem: - specifier: 2.x - version: 2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4) - vitest: - specifier: 2.0.5 - version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) - vue: - specifier: 3.4.3 - version: 3.4.3(typescript@5.3.3) - wagmi: - specifier: 2.12.9 - version: 2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.56.2(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) - packages/wallet: dependencies: '@reown/appkit-common': @@ -6496,9 +6255,6 @@ packages: '@types/babel__traverse@7.20.6': resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==} - '@types/bn.js@5.1.5': - resolution: {integrity: sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==} - '@types/body-parser@1.19.5': resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} @@ -20110,10 +19866,6 @@ snapshots: dependencies: '@babel/types': 7.25.6 - '@types/bn.js@5.1.5': - dependencies: - '@types/node': 20.11.5 - '@types/body-parser@1.19.5': dependencies: '@types/connect': 3.4.38 @@ -23172,7 +22924,7 @@ snapshots: eslint: 8.56.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0) - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.56.0) eslint-plugin-jsx-a11y: 6.10.0(eslint@8.56.0) eslint-plugin-react: 7.36.1(eslint@8.56.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.56.0) @@ -23191,7 +22943,7 @@ snapshots: eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.10.0(eslint@8.57.0) eslint-plugin-react: 7.36.1(eslint@8.57.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.57.0) @@ -23226,7 +22978,7 @@ snapshots: is-bun-module: 1.2.1 is-glob: 4.0.3 optionalDependencies: - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.56.0) transitivePeerDependencies: - '@typescript-eslint/parser' - eslint-import-resolver-node @@ -23245,7 +22997,7 @@ snapshots: is-bun-module: 1.2.1 is-glob: 4.0.3 optionalDependencies: - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0) transitivePeerDependencies: - '@typescript-eslint/parser' - eslint-import-resolver-node @@ -23274,7 +23026,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0): + eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.56.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -23302,7 +23054,7 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): + eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 From 2b1d72a301e2f07119e1c9eda260adda5c34a3ec Mon Sep 17 00:00:00 2001 From: Enes Date: Tue, 8 Oct 2024 15:25:00 +0300 Subject: [PATCH 08/24] chore: export network utils (#3032) --- .changeset/selfish-mice-lay.md | 27 +++++++++++++++++++++++++++ packages/appkit/src/networks/index.ts | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 .changeset/selfish-mice-lay.md diff --git a/.changeset/selfish-mice-lay.md b/.changeset/selfish-mice-lay.md new file mode 100644 index 0000000000..4ea0d8981e --- /dev/null +++ b/.changeset/selfish-mice-lay.md @@ -0,0 +1,27 @@ +--- +'@reown/appkit': patch +'@apps/demo': patch +'@apps/gallery': patch +'@apps/laboratory': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-polkadot': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-ethers': patch +'@reown/appkit-ethers5': patch +'@reown/appkit-experimental': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwe': patch +'@reown/appkit-solana': patch +'@reown/appkit-ui': patch +'@reown/appkit-wagmi': patch +'@reown/appkit-wallet': patch +--- + +Exports util functions for networks path diff --git a/packages/appkit/src/networks/index.ts b/packages/appkit/src/networks/index.ts index b6838731c7..9f9f1cb373 100644 --- a/packages/appkit/src/networks/index.ts +++ b/packages/appkit/src/networks/index.ts @@ -2,5 +2,8 @@ export * from 'viem/chains' export * from './solana/index.js' +// -- Utils ------------------------------------------------------------------ +export * from './utils.js' + // -- Types --------------------------------------------------------------- export type { AppKitNetwork } from '@reown/appkit-common' From 20806a8b8ce77db69442654e07fb4391619abea2 Mon Sep 17 00:00:00 2001 From: MK <53529533+magiziz@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:54:04 +0100 Subject: [PATCH 09/24] fix: changeset ci crash (#3029) Co-authored-by: tomiir --- .changeset/curly-peas-decide.md | 14 -------------- .changeset/honest-glasses-stare.md | 20 ++++++++++++++++++++ .changeset/long-files-exist.md | 14 -------------- dangerfile.ts | 16 ++++++++++++++++ 4 files changed, 36 insertions(+), 28 deletions(-) diff --git a/.changeset/curly-peas-decide.md b/.changeset/curly-peas-decide.md index 9bb5dc2d6e..48746af244 100644 --- a/.changeset/curly-peas-decide.md +++ b/.changeset/curly-peas-decide.md @@ -1,14 +1,10 @@ --- -'@examples/next-wagmi-pages-router': minor -'@examples/next-wagmi-app-router': minor '@reown/appkit-adapter-ethers5': minor '@reown/appkit-adapter-ethers': minor '@reown/appkit-adapter-solana': minor '@reown/appkit-adapter-wagmi': minor '@reown/appkit-utils': minor -'@examples/react-wagmi': minor '@reown/appkit-scaffold-ui': minor -'@examples/next-wagmi': minor '@apps/laboratory': minor '@reown/appkit': minor '@reown/appkit-common': minor @@ -20,16 +16,6 @@ '@reown/appkit-ui': minor '@apps/demo': minor '@apps/gallery': minor -'@examples/html-ethers': minor -'@examples/html-ethers5': minor -'@examples/html-wagmi': minor -'@examples/next-ethers': minor -'@examples/react-ethers': minor -'@examples/react-ethers5': minor -'@examples/react-solana': minor -'@examples/vue-ethers5': minor -'@examples/vue-solana': minor -'@examples/vue-wagmi': minor '@reown/appkit-adapter-polkadot': minor '@reown/appkit-ethers': minor '@reown/appkit-ethers5': minor diff --git a/.changeset/honest-glasses-stare.md b/.changeset/honest-glasses-stare.md index 9a3ccc598e..5dea6df5a6 100644 --- a/.changeset/honest-glasses-stare.md +++ b/.changeset/honest-glasses-stare.md @@ -1,6 +1,26 @@ --- +'@reown/appkit-scaffold-ui': patch +'@apps/laboratory': patch +'@apps/demo': patch +'@apps/gallery': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-polkadot': patch '@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-ethers': patch +'@reown/appkit-ethers5': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-siwe': patch '@reown/appkit-solana': patch +'@reown/appkit-ui': patch +'@reown/appkit-wagmi': patch +'@reown/appkit-wallet': patch --- Remove duplicated Solana chains declared on Solana Adapter package. diff --git a/.changeset/long-files-exist.md b/.changeset/long-files-exist.md index d48da8b9fc..0ae4e2402b 100644 --- a/.changeset/long-files-exist.md +++ b/.changeset/long-files-exist.md @@ -3,20 +3,6 @@ '@apps/demo': patch '@apps/gallery': patch '@apps/laboratory': patch -'@examples/html-ethers': patch -'@examples/html-ethers5': patch -'@examples/html-wagmi': patch -'@examples/next-ethers': patch -'@examples/next-wagmi': patch -'@examples/next-wagmi-app-router': patch -'@examples/next-wagmi-pages-router': patch -'@examples/react-ethers': patch -'@examples/react-ethers5': patch -'@examples/react-solana': patch -'@examples/react-wagmi': patch -'@examples/vue-ethers5': patch -'@examples/vue-solana': patch -'@examples/vue-wagmi': patch '@reown/appkit-adapter-ethers': patch '@reown/appkit-adapter-ethers5': patch '@reown/appkit-adapter-polkadot': patch diff --git a/dangerfile.ts b/dangerfile.ts index c900d5b0e0..7f85bb9304 100644 --- a/dangerfile.ts +++ b/dangerfile.ts @@ -372,3 +372,19 @@ async function checkDevelopmentConstants() { } } checkDevelopmentConstants() + +// -- Check changesets ------------------------------------------------------------ +async function checkChangesetFiles() { + const changesetFiles = updated_files + .filter(f => f.startsWith('.changeset/')) + .filter(f => f.endsWith('.md') && !f.startsWith('README.md')) + + for (const f of changesetFiles) { + const fileContent = await danger.github.utils.fileContents(f) + + if (fileContent.includes('@examples/')) { + fail(`Changeset file ${f} cannot include @examples/* packages as part of the changeset`) + } + } +} +checkChangesetFiles() From aec201648e0615d65cb182aab8e83fd241b778cc Mon Sep 17 00:00:00 2001 From: Luka Isailovic Date: Tue, 8 Oct 2024 16:09:57 +0200 Subject: [PATCH 10/24] chore: update lab usdc implementation (#3034) --- .../components/Wagmi/WagmiSendUSDCTest.tsx | 131 +++++++++--------- .../src/components/Wagmi/WagmiTests.tsx | 9 +- apps/laboratory/src/pages/library/wagmi.tsx | 5 +- 3 files changed, 77 insertions(+), 68 deletions(-) diff --git a/apps/laboratory/src/components/Wagmi/WagmiSendUSDCTest.tsx b/apps/laboratory/src/components/Wagmi/WagmiSendUSDCTest.tsx index ee020d4c65..d1bb960f85 100644 --- a/apps/laboratory/src/components/Wagmi/WagmiSendUSDCTest.tsx +++ b/apps/laboratory/src/components/Wagmi/WagmiSendUSDCTest.tsx @@ -1,97 +1,100 @@ import { Button, Stack, Link, Text, Spacer, Input } from '@chakra-ui/react' -import { useAccount, useWriteContract } from 'wagmi' -import { useCallback, useState } from 'react' -import { optimism, sepolia } from 'wagmi/chains' +import { useAccount, type Config } from 'wagmi' +import { useState } from 'react' +import { arbitrum, base, optimism, sepolia } from '@reown/appkit/networks' import { useChakraToast } from '../Toast' +import { erc20Abi, type Chain, type Hex } from 'viem' +import { getWalletClient } from 'wagmi/actions' -const minTokenAbi = [ - { - inputs: [ - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' } - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function' - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function' - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function' - } -] +const ALLOWED_CHAINS = [sepolia, optimism, base, arbitrum] +const ALLOWED_CHAINIDS = ALLOWED_CHAINS.map(chain => chain.id) as number[] +const TOKEN_ADDRESSES = { + [sepolia.id]: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238' as Hex, + [optimism.id]: '0x0b2c639c533813f4aa9d7837caf62653d097ff85' as Hex, + [base.id]: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913' as Hex, + [arbitrum.id]: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831' as Hex +} -const ALLOWED_CHAINS = [sepolia.id, optimism.id] as number[] +interface IBaseProps { + config?: Config +} -export function WagmiSendUSDCTest() { +export function WagmiSendUSDCTest({ config }: IBaseProps) { const { status, chain } = useAccount() - return ALLOWED_CHAINS.includes(Number(chain?.id)) && status === 'connected' ? ( - + return ALLOWED_CHAINIDS.includes(Number(chain?.id)) && status === 'connected' && chain ? ( + ) : ( - Switch to Sepolia or OP to test this feature + Allowed chains are:{' '} + {ALLOWED_CHAINS.map(c => ( + {c.name}, + ))} ) } -function AvailableTestContent() { +interface IProps { + chain: Chain + config?: Config +} + +function AvailableTestContent({ chain, config }: IProps) { const [address, setAddress] = useState('') const [amount, setAmount] = useState('') + const [isLoading, setIsLoading] = useState(false) const toast = useChakraToast() - const { writeContract, isPending: isLoading } = useWriteContract({ - mutation: { - onSuccess: hash => { - toast({ - title: 'Transaction Success', - description: hash, - type: 'success' - }) - }, - onError: () => { - toast({ - title: 'Error', - description: 'Failed to send transaction', - type: 'error' - }) - } + async function onSendTransaction(wagmiConfig: Config) { + const usdcAmount = BigInt(Number(amount) * 1000000) + const chainId = chain.id as keyof typeof TOKEN_ADDRESSES + const contractAddress = TOKEN_ADDRESSES[chainId] + const client = await getWalletClient(wagmiConfig) + + try { + setIsLoading(true) + + const hash = await client.writeContract({ + abi: erc20Abi, + functionName: 'transfer', + args: [address as Hex, usdcAmount], + address: contractAddress + }) + toast({ + title: 'Transaction Success', + description: hash, + type: 'success' + }) + } catch (error) { + toast({ + title: 'Error', + description: 'Failed to send transaction', + type: 'error' + }) + } finally { + setIsLoading(false) } - }) + } - const onSendTransaction = useCallback(() => { - writeContract({ - abi: minTokenAbi, - functionName: 'transfer', - args: [address, amount], - address: '0x1c7d4b196cb0c7b01d743fbc6116a902379c7238' - }) - }, [writeContract, address, amount]) + if (!config) { + return Config is not available + } return ( - setAddress(e.target.value)} value={address} /> + setAddress(e.target.value)} value={address} /> setAmount(e.target.value)} value={amount} type="number" /> + + + + + + + + + + diff --git a/examples/html-wagmi-cdn/main.js b/examples/html-wagmi-cdn/main.js new file mode 100644 index 0000000000..1ee1d4f92a --- /dev/null +++ b/examples/html-wagmi-cdn/main.js @@ -0,0 +1,51 @@ +// Since we're using the CDN, we can access AppKit globals directly +const createAppKit = window.AppKit.createAppKit +const appKitNetworks = window.AppKit.networks +const WagmiAdapter = window.AppKit.WagmiAdapter +const SolanaAdapter = window.AppKit.SolanaAdapter + +if (!AppKit || !AppKit.createAppKit) { + throw new Error('AppKit or createAppKit not found on window object') +} else { + const projectId = '3bdbc796b351092d40d5d08e987f4eca' // Replace with your actual project ID + const networks = [appKitNetworks.mainnet, appKitNetworks.polygon, appKitNetworks.base] + + try { + const wagmiAdapter = new AppKit.WagmiAdapter({ + projectId, + networks + }) + + // 3. Create modal + const modal = AppKit.createAppKit({ + adapters: [wagmiAdapter], + networks, + projectId, + metadata: { + name: 'Html CDN Example', + description: 'Html CDN Example using local server', + url: 'https://reown.com/appkit', + icons: ['https://avatars.githubusercontent.com/u/37784886'] + }, + networks: [], + themeMode: 'light' + }) + + // 4. Trigger modal programmatically + document.addEventListener('DOMContentLoaded', () => { + const openConnectModalBtn = document.getElementById('open-appkit') + const openNetworkModalBtn = document.getElementById('open-appkit-networks') + + if (openConnectModalBtn && openNetworkModalBtn) { + openConnectModalBtn.addEventListener('click', () => { + modal.open() + }) + openNetworkModalBtn.addEventListener('click', () => { + modal.open({ view: 'Networks' }) + }) + } + }) + } catch (error) { + console.error('Error creating or using modal:', error) + } +} diff --git a/examples/html-wagmi-cdn/package.json b/examples/html-wagmi-cdn/package.json new file mode 100644 index 0000000000..12e6ca4985 --- /dev/null +++ b/examples/html-wagmi-cdn/package.json @@ -0,0 +1,13 @@ +{ + "name": "@examples/html-wagmi-cdn", + "private": true, + "version": "1.0.6", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview" + }, + "devDependencies": { + "vite": "5.2.11" + } +} diff --git a/examples/html-wagmi-cdn/vite.config.js b/examples/html-wagmi-cdn/vite.config.js new file mode 100644 index 0000000000..e684adfb83 --- /dev/null +++ b/examples/html-wagmi-cdn/vite.config.js @@ -0,0 +1,16 @@ +import { defineConfig } from 'vite' + +export default defineConfig({ + server: { + open: true, + port: 3000 + }, + optimizeDeps: { + exclude: ['@reown/appkit-cdn'] + }, + build: { + commonjsOptions: { + include: [] + } + } +}) diff --git a/packages/cdn/lib/appkit.ts b/packages/cdn/lib/appkit.ts new file mode 100644 index 0000000000..c8461a358a --- /dev/null +++ b/packages/cdn/lib/appkit.ts @@ -0,0 +1,34 @@ +/** + * Due to some limitations on exporting multiple modules with UMD, we needed to export all of our modules in this file. + * For now exporting only Wagmi and Solana adapters. Until we found a better workaround and need other adapters, we can keep it this way. + */ +import '@reown/appkit-polyfills' +import { createAppKit } from '@reown/appkit' +import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' +import { SolanaAdapter } from '@reown/appkit-adapter-solana' +import * as AppKitNetworks from '@reown/appkit/networks' + +const networks = AppKitNetworks + +export { createAppKit, networks, WagmiAdapter, SolanaAdapter } + +declare global { + interface Window { + AppKit: { + createAppKit: typeof createAppKit + WagmiAdapter: typeof WagmiAdapter + SolanaAdapter: typeof SolanaAdapter + networks: typeof AppKitNetworks + } + } +} + +// Assign to window.AppKit +if (typeof window !== 'undefined') { + window.AppKit = { + createAppKit, + WagmiAdapter, + SolanaAdapter, + networks: AppKitNetworks + } +} diff --git a/packages/cdn/lib/ethers.ts b/packages/cdn/lib/ethers.ts deleted file mode 100644 index 4bd4dc6c51..0000000000 --- a/packages/cdn/lib/ethers.ts +++ /dev/null @@ -1,3 +0,0 @@ -import '@reown/appkit-polyfills' -export * as AppKit from '@reown/appkit' -export * as AppKitEthers from '@reown/appkit-adapter-ethers' diff --git a/packages/cdn/lib/ethers5.ts b/packages/cdn/lib/ethers5.ts deleted file mode 100644 index c378e018c7..0000000000 --- a/packages/cdn/lib/ethers5.ts +++ /dev/null @@ -1,3 +0,0 @@ -import '@reown/appkit-polyfills' -export * as AppKit from '@reown/appkit' -export * as AppKitEthers5 from '@reown/appkit-adapter-ethers5' diff --git a/packages/cdn/lib/solana.ts b/packages/cdn/lib/solana.ts deleted file mode 100644 index f7b563b0fe..0000000000 --- a/packages/cdn/lib/solana.ts +++ /dev/null @@ -1,3 +0,0 @@ -import '@reown/appkit-polyfills' -export * as AppKit from '@reown/appkit' -export * as AppKitSolana from '@reown/appkit-adapter-solana' diff --git a/packages/cdn/lib/wagmi.ts b/packages/cdn/lib/wagmi.ts deleted file mode 100644 index 8376ab3a91..0000000000 --- a/packages/cdn/lib/wagmi.ts +++ /dev/null @@ -1,6 +0,0 @@ -import '@reown/appkit-polyfills' -export * as AppKit from '@reown/appkit' -export * as AppKitWagmi from '@reown/appkit-adapter-wagmi' -export * as Viem from 'viem' -export * as Connectors from '@wagmi/connectors' -export * as WagmiCore from '@wagmi/core' diff --git a/packages/cdn/package.json b/packages/cdn/package.json index 0d3b587f34..06e8f1c308 100644 --- a/packages/cdn/package.json +++ b/packages/cdn/package.json @@ -10,10 +10,13 @@ "scripts": { "build:clean": "rm -rf dist", "build": "tsc && vite build", - "upload": "pnpm build && pnpm publish --public" + "watch": "tsc --watch", + "upload": "pnpm build && pnpm publish --public", + "serve": "http-server dist -p 8080 --cors" }, "devDependencies": { "@wagmi/connectors": "5.1.9", + "http-server": "14.1.1", "vite-plugin-node-polyfills": "0.22.0" }, "peerDependencies": { @@ -26,10 +29,10 @@ }, "dependencies": { "@reown/appkit": "workspace:*", - "@reown/appkit-adapter-wagmi": "workspace:*", "@reown/appkit-adapter-ethers": "workspace:*", "@reown/appkit-adapter-ethers5": "workspace:*", "@reown/appkit-adapter-solana": "workspace:*", + "@reown/appkit-adapter-wagmi": "workspace:*", "@reown/appkit-polyfills": "workspace:*", "@wagmi/connectors": "5.1.9", "@wagmi/core": "2.13.4", diff --git a/packages/cdn/vite.config.ts b/packages/cdn/vite.config.ts index e3b7a9211b..fc8c97a502 100644 --- a/packages/cdn/vite.config.ts +++ b/packages/cdn/vite.config.ts @@ -7,11 +7,13 @@ import { nodePolyfills } from 'vite-plugin-node-polyfills' export default defineConfig({ build: { lib: { - entry: { - wagmi: resolve(__dirname, 'lib/wagmi.ts'), - ethers: resolve(__dirname, 'lib/ethers.ts') - } - } + entry: resolve(__dirname, 'lib/appkit.ts'), + name: 'AppKit', + formats: ['umd'], + fileName: (_, entryName) => `${entryName}.js` + }, + sourcemap: true, + minify: 'terser' }, plugins: [ nodePolyfills({ diff --git a/packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts b/packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts index c49ead8692..31e2499a85 100644 --- a/packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts +++ b/packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts @@ -34,7 +34,10 @@ export class W3mConnectingWcView extends LitElement { super() this.determinePlatforms() this.initializeConnection() - this.interval = setInterval(this.initializeConnection.bind(this), ConstantsUtil.TEN_SEC_MS) + this.interval = setInterval( + this.initializeConnection.bind(this), + ConstantsUtil.TEN_SEC_MS + ) as unknown as NodeJS.Timeout } public override disconnectedCallback() { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ebee65c16a..15858620e6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -380,6 +380,12 @@ importers: specifier: 5.2.11 version: 5.2.11(@types/node@20.11.5)(terser@5.33.0) + examples/html-wagmi-cdn: + devDependencies: + vite: + specifier: 5.2.11 + version: 5.2.11(@types/node@20.11.5)(terser@5.33.0) + examples/next-ethers: dependencies: '@reown/appkit': @@ -1242,6 +1248,9 @@ importers: specifier: 2.12.9 version: 2.12.9(@tanstack/query-core@5.56.2)(@tanstack/react-query@5.56.2(react@18.2.0))(@types/react@18.2.62)(bufferutil@4.0.8)(react-dom@18.2.0(react@18.2.0))(react-native@0.75.3(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.2.62)(bufferutil@4.0.8)(react@18.2.0)(typescript@5.3.3)(utf-8-validate@5.0.10))(react@18.2.0)(rollup@4.22.4)(typescript@5.3.3)(utf-8-validate@5.0.10)(viem@2.21.4(bufferutil@4.0.8)(typescript@5.3.3)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4) devDependencies: + http-server: + specifier: 14.1.1 + version: 14.1.1 vite-plugin-node-polyfills: specifier: 0.22.0 version: 0.22.0(rollup@4.22.4)(vite@5.2.11(@types/node@20.11.5)(terser@5.33.0)) @@ -7041,6 +7050,9 @@ packages: async-retry@1.2.3: resolution: {integrity: sha512-tfDb02Th6CE6pJUF2gjW5ZVjsgwlucVXOEQMvEX9JgSJMs9gAX+Nz3xRuJBKuUYjTSYORqvDBORdAQ3LU59g7Q==} + async@2.6.4: + resolution: {integrity: sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==} + async@3.2.6: resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} @@ -7131,6 +7143,10 @@ packages: resolution: {integrity: sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==} engines: {node: '>=6.0.0'} + basic-auth@2.0.1: + resolution: {integrity: sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==} + engines: {node: '>= 0.8'} + bchaddrjs@0.5.2: resolution: {integrity: sha512-OO7gIn3m7ea4FVx4cT8gdlWQR2+++EquhdpWQJH9BQjK63tJJ6ngB3QMZDO6DiBoXiIGUsTPHjlrHVxPGcGxLQ==} engines: {node: '>=8.0.0'} @@ -7643,6 +7659,10 @@ packages: core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} + corser@2.0.1: + resolution: {integrity: sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ==} + engines: {node: '>= 0.4.0'} + cosmiconfig@5.2.1: resolution: {integrity: sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==} engines: {node: '>=4'} @@ -8888,6 +8908,10 @@ packages: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} + he@1.2.0: + resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} + hasBin: true + hermes-estree@0.22.0: resolution: {integrity: sha512-FLBt5X9OfA8BERUdc6aZS36Xz3rRuB0Y/mfocSADWEJfomc1xfene33GdyAmtTkKTBXTN/EgAy+rjTKkkZJHlw==} @@ -8920,6 +8944,10 @@ packages: hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} + html-encoding-sniffer@3.0.0: + resolution: {integrity: sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==} + engines: {node: '>=12'} + html-encoding-sniffer@4.0.0: resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==} engines: {node: '>=18'} @@ -8946,6 +8974,11 @@ packages: resolution: {integrity: sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==} engines: {node: '>=8.0.0'} + http-server@14.1.1: + resolution: {integrity: sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A==} + engines: {node: '>=12'} + hasBin: true + http-shutdown@1.2.2: resolution: {integrity: sha512-S9wWkJ/VSY9/k4qcjG318bqJNruzE4HySUhFYknwmu6LBP97KLLfwNf+n4V1BHurvFNkSKLFnK/RsuUnRTf9Vw==} engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} @@ -10332,6 +10365,10 @@ packages: resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} engines: {node: '>=12'} + opener@1.5.2: + resolution: {integrity: sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==} + hasBin: true + openid-client@5.7.0: resolution: {integrity: sha512-4GCCGZt1i2kTHpwvaC/sCpTpQqDnBzDzuJcJMbH+y1Q5qI8U8RBvoSh28svarXszZHR5BAMXbJPX1PGPRE3VOA==} @@ -10591,6 +10628,10 @@ packages: resolution: {integrity: sha512-M7LhCsdNbNgiLYiP4WjsfLUuFmCfnjdF6jKe2R9NKl4WFN+HZPGHJZ9lnLP7f9ZnKe3U9nuWD0szirmj+migUg==} engines: {node: '>=12.0.0'} + portfinder@1.0.32: + resolution: {integrity: sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg==} + engines: {node: '>= 0.12.0'} + possible-typed-array-names@1.0.0: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} @@ -11286,6 +11327,9 @@ packages: resolution: {integrity: sha512-TKWX8xvoGHrxVdqbYeZM9w+izTF4b9z3NhSaDkdn81btvuh+ivbIMGT/zQvDtTFWhRlThpoz6LEYTr7n8A5GcA==} engines: {node: '>=14.0.0'} + secure-compare@3.0.1: + resolution: {integrity: sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw==} + selfsigned@2.4.1: resolution: {integrity: sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q==} engines: {node: '>=10'} @@ -12063,6 +12107,10 @@ packages: unidragger@3.0.1: resolution: {integrity: sha512-RngbGSwBFmqGBWjkaH+yB677uzR95blSQyxq6hYbrQCejH3Mx1nm8DVOuh3M9k2fQyTstWUG5qlgCnNqV/9jVw==} + union@0.5.0: + resolution: {integrity: sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==} + engines: {node: '>= 0.8.0'} + unique-string@2.0.0: resolution: {integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==} engines: {node: '>=8'} @@ -12174,6 +12222,9 @@ packages: uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + url-join@4.0.1: + resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==} + url-parse@1.5.10: resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} @@ -12452,6 +12503,10 @@ packages: resolution: {integrity: sha512-TbrbBmiQBL9n0/5bvDdORc6ZfRY/Z7JnEj+EYOD1ghseZdpJ+nF2yx14k3LgQKc7JZnG7HAcL+zHnY25So9d7A==} engines: {node: '>=6.0.0', npm: '>=3.10.0'} + whatwg-encoding@2.0.0: + resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==} + engines: {node: '>=12'} + whatwg-encoding@3.1.1: resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==} engines: {node: '>=18'} @@ -21468,6 +21523,10 @@ snapshots: dependencies: retry: 0.12.0 + async@2.6.4: + dependencies: + lodash: 4.17.21 + async@3.2.6: {} asynckit@0.4.0: {} @@ -21578,6 +21637,10 @@ snapshots: base64url@3.0.1: {} + basic-auth@2.0.1: + dependencies: + safe-buffer: 5.1.2 + bchaddrjs@0.5.2: dependencies: bs58check: 2.1.2 @@ -22139,6 +22202,8 @@ snapshots: core-util-is@1.0.3: {} + corser@2.0.1: {} + cosmiconfig@5.2.1: dependencies: import-fresh: 2.0.0 @@ -24030,6 +24095,8 @@ snapshots: dependencies: function-bind: 1.1.2 + he@1.2.0: {} + hermes-estree@0.22.0: {} hermes-estree@0.23.1: {} @@ -24062,6 +24129,10 @@ snapshots: hosted-git-info@2.8.9: {} + html-encoding-sniffer@3.0.0: + dependencies: + whatwg-encoding: 2.0.0 + html-encoding-sniffer@4.0.0: dependencies: whatwg-encoding: 3.1.1 @@ -24101,6 +24172,25 @@ snapshots: transitivePeerDependencies: - debug + http-server@14.1.1: + dependencies: + basic-auth: 2.0.1 + chalk: 4.1.2 + corser: 2.0.1 + he: 1.2.0 + html-encoding-sniffer: 3.0.0 + http-proxy: 1.18.1 + mime: 1.6.0 + minimist: 1.2.8 + opener: 1.5.2 + portfinder: 1.0.32 + secure-compare: 3.0.1 + union: 0.5.0 + url-join: 4.0.1 + transitivePeerDependencies: + - debug + - supports-color + http-shutdown@1.2.2: {} http2-wrapper@1.0.3: @@ -25678,6 +25768,8 @@ snapshots: is-docker: 2.2.1 is-wsl: 2.2.0 + opener@1.5.2: {} + openid-client@5.7.0: dependencies: jose: 4.15.9 @@ -25925,6 +26017,14 @@ snapshots: pony-cause@2.1.11: {} + portfinder@1.0.32: + dependencies: + async: 2.6.4 + debug: 3.2.7 + mkdirp: 0.5.6 + transitivePeerDependencies: + - supports-color + possible-typed-array-names@1.0.0: {} postcss-import@15.1.0(postcss@8.4.35): @@ -26963,6 +27063,8 @@ snapshots: node-addon-api: 5.1.0 node-gyp-build: 4.8.2 + secure-compare@3.0.1: {} + selfsigned@2.4.1: dependencies: '@types/node-forge': 1.3.11 @@ -27783,6 +27885,10 @@ snapshots: dependencies: ev-emitter: 2.1.2 + union@0.5.0: + dependencies: + qs: 6.13.0 + unique-string@2.0.0: dependencies: crypto-random-string: 2.0.0 @@ -27867,6 +27973,8 @@ snapshots: dependencies: punycode: 2.3.1 + url-join@4.0.1: {} + url-parse@1.5.10: dependencies: querystringify: 2.2.0 @@ -28349,6 +28457,10 @@ snapshots: rtcpeerconnection-shim: 1.2.15 sdp: 2.12.0 + whatwg-encoding@2.0.0: + dependencies: + iconv-lite: 0.6.3 + whatwg-encoding@3.1.1: dependencies: iconv-lite: 0.6.3 From 0bd7e44149c44e53e9cbe504bde0070f4d24db35 Mon Sep 17 00:00:00 2001 From: Enes Date: Wed, 9 Oct 2024 15:52:12 +0300 Subject: [PATCH 18/24] chore: update inject-version script (#3045) --- scripts/inject-version.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/inject-version.js b/scripts/inject-version.js index 0f71453916..aae36c25c9 100644 --- a/scripts/inject-version.js +++ b/scripts/inject-version.js @@ -5,7 +5,13 @@ * See https://pnpm.io/it/next/cli/run#enable-pre-post-scripts */ import fs from 'node:fs' -import packageJson from '../packages/appkit/package.json' assert { type: 'json' } +import path from 'node:path' +import { fileURLToPath } from 'node:url' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) +const packageJsonPath = path.join(__dirname, '../packages/appkit/package.json') +const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')) const filePath = 'packages/appkit/exports/constants.ts' From e95ecdea26614b4428e31dd6075efcce7a01a5e0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:44:56 -0300 Subject: [PATCH 19/24] chore(deps): update dependency ethers to v6.13.2 (#2858) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: enesozturk --- .changeset/brave-cooks-hug.md | 23 +++++++++++++ examples/next-ethers/package.json | 2 +- packages/adapters/ethers/package.json | 2 +- pnpm-lock.yaml | 47 +++------------------------ 4 files changed, 30 insertions(+), 44 deletions(-) create mode 100644 .changeset/brave-cooks-hug.md diff --git a/.changeset/brave-cooks-hug.md b/.changeset/brave-cooks-hug.md new file mode 100644 index 0000000000..711d7c473d --- /dev/null +++ b/.changeset/brave-cooks-hug.md @@ -0,0 +1,23 @@ +--- +'@reown/appkit-adapter-ethers': patch +'@apps/demo': patch +'@apps/gallery': patch +'@apps/laboratory': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-polkadot': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwe': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +--- + +Upgrades ethers v6 diff --git a/examples/next-ethers/package.json b/examples/next-ethers/package.json index 1de96c4b69..37a13e9537 100644 --- a/examples/next-ethers/package.json +++ b/examples/next-ethers/package.json @@ -11,7 +11,7 @@ "dependencies": { "@reown/appkit-adapter-ethers": "workspace:*", "@reown/appkit": "workspace:*", - "ethers": "6.13.0", + "ethers": "6.13.2", "next": "14.2.3", "react": "18.2.0", "react-dom": "18.2.0" diff --git a/packages/adapters/ethers/package.json b/packages/adapters/ethers/package.json index d4ba9a5b45..f943639a51 100644 --- a/packages/adapters/ethers/package.json +++ b/packages/adapters/ethers/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@vitest/coverage-v8": "2.0.5", - "@walletconnect/types": "2.17.0", + "ethers": "6.13.2", "vitest": "2.0.5" }, "author": "Reown (https://reown.com)", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 15858620e6..e1f702090f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -395,8 +395,8 @@ importers: specifier: workspace:* version: link:../../packages/adapters/ethers ethers: - specifier: 6.13.0 - version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + specifier: 6.13.2 + version: 6.13.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) next: specifier: 14.2.3 version: 14.2.3(@babel/core@7.25.2)(@playwright/test@1.44.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -840,9 +840,6 @@ importers: '@walletconnect/utils': specifier: 2.17.0 version: 2.17.0 - ethers: - specifier: '>=6' - version: 6.13.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) valtio: specifier: 1.11.2 version: 1.11.2(@types/react@18.2.62)(react@18.2.0) @@ -850,9 +847,9 @@ importers: '@vitest/coverage-v8': specifier: 2.0.5 version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) - '@walletconnect/types': - specifier: 2.17.0 - version: 2.17.0 + ethers: + specifier: 6.13.2 + version: 6.13.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -8382,10 +8379,6 @@ packages: ethers@5.7.2: resolution: {integrity: sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==} - ethers@6.13.0: - resolution: {integrity: sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==} - engines: {node: '>=14.0.0'} - ethers@6.13.2: resolution: {integrity: sha512-9VkriTTed+/27BGuY1s0hf441kqwHJ1wtN2edksEtiRvXx+soxRX3iSXTfFqq2+YwrOqbDoTHjIhQnjJRlzKmg==} engines: {node: '>=14.0.0'} @@ -12686,18 +12679,6 @@ packages: utf-8-validate: optional: true - ws@8.5.0: - resolution: {integrity: sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==} - 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 - xcase@2.0.1: resolution: {integrity: sha512-UmFXIPU+9Eg3E9m/728Bii0lAIuoc+6nbrNUKaRPJOFp91ih44qqGlWtxMB6kXFrRD6po+86ksHM5XHCfk6iPw==} @@ -23458,19 +23439,6 @@ snapshots: - bufferutil - utf-8-validate - ethers@6.13.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): - dependencies: - '@adraffy/ens-normalize': 1.10.1 - '@noble/curves': 1.2.0 - '@noble/hashes': 1.3.2 - '@types/node': 18.15.13 - aes-js: 4.0.0-beta.5 - tslib: 2.4.0 - ws: 8.5.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - bufferutil - - utf-8-validate - ethers@6.13.2(bufferutil@4.0.8)(utf-8-validate@5.0.10): dependencies: '@adraffy/ens-normalize': 1.10.1 @@ -28652,11 +28620,6 @@ snapshots: bufferutil: 4.0.8 utf-8-validate: 5.0.10 - ws@8.5.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): - optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - xcase@2.0.1: {} xml-name-validator@5.0.0: {} From 2751feb985e9d15a6babd5584f75a50ba7fb1098 Mon Sep 17 00:00:00 2001 From: Karandeep Singh <90941366+KannuSingh@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:38:33 -0400 Subject: [PATCH 20/24] Add missing setProvider call (#3048) --- .changeset/fair-wombats-move.md | 23 +++++++++++++++++++ .../WagmiRequestPermissionsAsyncTest.tsx | 4 ++-- .../Wagmi/WagmiRequestPermissionsSyncTest.tsx | 4 ++-- packages/adapters/ethers/src/client.ts | 15 ++++++------ .../adapters/ethers/src/tests/client.test.ts | 10 ++++---- packages/adapters/ethers5/src/client.ts | 15 ++++++------ .../adapters/ethers5/src/tests/client.test.ts | 10 ++++---- packages/adapters/wagmi/src/client.ts | 13 +++++------ .../adapters/wagmi/src/tests/client.test.ts | 6 ++++- .../src/ethers/EthersTypesUtil.ts | 8 ------- packages/appkit/src/store/ProviderUtil.ts | 2 +- packages/appkit/src/store/index.ts | 2 +- 12 files changed, 64 insertions(+), 48 deletions(-) create mode 100644 .changeset/fair-wombats-move.md diff --git a/.changeset/fair-wombats-move.md b/.changeset/fair-wombats-move.md new file mode 100644 index 0000000000..f188271d46 --- /dev/null +++ b/.changeset/fair-wombats-move.md @@ -0,0 +1,23 @@ +--- +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit-utils': patch +'@apps/laboratory': patch +'@reown/appkit': patch +'@apps/demo': patch +'@apps/gallery': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-polkadot': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-cdn': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwe': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +--- + +fix: add missing setProvider and setProviderId call for connector other than walletconnect on syncAccount diff --git a/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsAsyncTest.tsx b/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsAsyncTest.tsx index c459024030..75fa1c4661 100644 --- a/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsAsyncTest.tsx +++ b/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsAsyncTest.tsx @@ -14,10 +14,10 @@ import { } from '@reown/appkit-experimental/smart-session' export function WagmiRequestPermissionsAsyncTest() { - const { address, isConnected } = useAppKitAccount() + const { address, isConnected, status } = useAppKitAccount() const { chainId } = useAppKitNetwork() - const isSupported = useMemo(() => isSmartSessionSupported(), [address]) + const isSupported = useMemo(() => isSmartSessionSupported(), [status]) if (!isConnected || !address || !chainId) { return ( diff --git a/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsSyncTest.tsx b/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsSyncTest.tsx index e35c13713a..7abdc65104 100644 --- a/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsSyncTest.tsx +++ b/apps/laboratory/src/components/Wagmi/WagmiRequestPermissionsSyncTest.tsx @@ -15,9 +15,9 @@ import { } from '@reown/appkit-experimental/smart-session' export function WagmiRequestPermissionsSyncTest() { - const { address, isConnected } = useAppKitAccount() + const { address, isConnected, status } = useAppKitAccount() const { chainId } = useAppKitNetwork() - const isSupported = useMemo(() => isSmartSessionSupported(), [address]) + const isSupported = useMemo(() => isSmartSessionSupported(), [status]) if (!isConnected || !address || !chainId) { return ( diff --git a/packages/adapters/ethers/src/client.ts b/packages/adapters/ethers/src/client.ts index 016e9ffded..365892f74e 100644 --- a/packages/adapters/ethers/src/client.ts +++ b/packages/adapters/ethers/src/client.ts @@ -20,7 +20,6 @@ import { EthersHelpersUtil, type Provider, type ProviderType, - type ProviderId, type Address } from '@reown/appkit-utils/ethers' import type { AppKit } from '@reown/appkit' @@ -45,7 +44,7 @@ import { WcConstantsUtil } from '@reown/appkit' import { EthersMethods } from './utils/EthersMethods.js' import { formatEther, InfuraProvider, JsonRpcProvider } from 'ethers' import type { PublicStateControllerState } from '@reown/appkit-core' -import { ProviderUtil } from '@reown/appkit/store' +import { ProviderUtil, type ProviderIdType } from '@reown/appkit/store' import { CoinbaseWalletSDK, type ProviderInterface } from '@coinbase/wallet-sdk' import { W3mFrameProviderSingleton } from '@reown/appkit/auth-provider' @@ -301,7 +300,7 @@ export class EthersAdapter { } await this.setProvider( selectedProvider, - selectedConnector.providerType as ProviderId, + selectedConnector.providerType as ProviderIdType, info?.name ) } catch (error) { @@ -613,12 +612,12 @@ export class EthersAdapter { const activeConfig = providerConfigs[walletId as unknown as keyof typeof providerConfigs] if (activeConfig?.provider) { - this.setProvider(activeConfig.provider, walletId as ProviderId) - this.setupProviderListeners(activeConfig.provider, walletId as ProviderId) + this.setProvider(activeConfig.provider, walletId as ProviderIdType) + this.setupProviderListeners(activeConfig.provider, walletId as ProviderIdType) } } - private async setProvider(provider: Provider, providerId: ProviderId, name?: string) { + private async setProvider(provider: Provider, providerId: ProviderIdType, name?: string) { if (providerId === 'w3mAuth') { this.setAuthProvider() } else { @@ -685,7 +684,7 @@ export class EthersAdapter { ) this.appKit?.setSmartAccountDeployed(Boolean(smartAccountDeployed), this.chainNamespace) ProviderUtil.setProvider('eip155', this.authProvider as unknown as Provider) - ProviderUtil.setProviderId('eip155', ConstantsUtil.AUTH_CONNECTOR_ID as ProviderId) + ProviderUtil.setProviderId('eip155', ConstantsUtil.AUTH_CONNECTOR_ID as ProviderIdType) this.setupProviderListeners(this.authProvider as unknown as Provider, 'w3mAuth') this.watchModal() } @@ -703,7 +702,7 @@ export class EthersAdapter { } } - private setupProviderListeners(provider: Provider, providerId: ProviderId) { + private setupProviderListeners(provider: Provider, providerId: ProviderIdType) { const disconnectHandler = () => { SafeLocalStorage.removeItem(SafeLocalStorageKeys.WALLET_ID) this.removeListeners(provider) diff --git a/packages/adapters/ethers/src/tests/client.test.ts b/packages/adapters/ethers/src/tests/client.test.ts index 9c488f4709..2c77249355 100644 --- a/packages/adapters/ethers/src/tests/client.test.ts +++ b/packages/adapters/ethers/src/tests/client.test.ts @@ -5,7 +5,7 @@ import { mockOptions } from './mocks/Options' import { mockCreateEthersConfig } from './mocks/EthersConfig' import mockAppKit from './mocks/AppKit' import { mockAuthConnector } from './mocks/AuthConnector' -import { EthersHelpersUtil, type ProviderId, type ProviderType } from '@reown/appkit-utils/ethers' +import { EthersHelpersUtil, type ProviderType } from '@reown/appkit-utils/ethers' import { CaipNetworksUtil, ConstantsUtil } from '@reown/appkit-utils' import { arbitrum as AppkitArbitrum, @@ -14,7 +14,7 @@ import { optimism as AppkitOptimism, bsc as AppkitBsc } from '@reown/appkit/networks' -import { ProviderUtil } from '@reown/appkit/store' +import { ProviderUtil, type ProviderIdType } from '@reown/appkit/store' import { SafeLocalStorage, SafeLocalStorageKeys } from '@reown/appkit-common' import { type BlockchainApiLookupEnsName } from '@reown/appkit' import { InfuraProvider, JsonRpcProvider } from 'ethers' @@ -813,7 +813,7 @@ describe('EthersAdapter', () => { vi.spyOn(ProviderUtil.state, 'providerIds', 'get').mockReturnValue({ eip155: ConstantsUtil.EIP6963_CONNECTOR_ID, solana: undefined - } as Record) + } as Record) client['EIP6963Providers'] = [ { info: { name: 'MetaMask', icon: 'icon-url', uuid: 'test-uuid', rdns: 'com.metamask' }, @@ -833,7 +833,7 @@ describe('EthersAdapter', () => { vi.spyOn(ProviderUtil.state, 'providerIds', 'get').mockReturnValue({ eip155: ConstantsUtil.WALLET_CONNECT_CONNECTOR_ID, solana: undefined - } as Record) + } as Record) const mockProvider = { session: { peer: { @@ -862,7 +862,7 @@ describe('EthersAdapter', () => { vi.spyOn(ProviderUtil.state, 'providerIds', 'get').mockReturnValue({ eip155: ConstantsUtil.COINBASE_SDK_CONNECTOR_ID, solana: undefined - } as Record) + } as Record) vi.spyOn(mockAppKit, 'getConnectors').mockReturnValue([ { id: ConstantsUtil.COINBASE_SDK_CONNECTOR_ID, diff --git a/packages/adapters/ethers5/src/client.ts b/packages/adapters/ethers5/src/client.ts index 266c1d1c1c..3c41595fdd 100644 --- a/packages/adapters/ethers5/src/client.ts +++ b/packages/adapters/ethers5/src/client.ts @@ -20,7 +20,6 @@ import { EthersHelpersUtil, type Provider, type ProviderType, - type ProviderId, type Address } from '@reown/appkit-utils/ethers' import type { AppKit } from '@reown/appkit' @@ -45,7 +44,7 @@ import { WcConstantsUtil } from '@reown/appkit' import { Ethers5Methods } from './utils/Ethers5Methods.js' import { ethers } from 'ethers' import type { PublicStateControllerState } from '@reown/appkit-core' -import { ProviderUtil } from '@reown/appkit/store' +import { ProviderUtil, type ProviderIdType } from '@reown/appkit/store' import { CoinbaseWalletSDK, type ProviderInterface } from '@coinbase/wallet-sdk' import { W3mFrameProviderSingleton } from '@reown/appkit/auth-provider' @@ -301,7 +300,7 @@ export class Ethers5Adapter { } await this.setProvider( selectedProvider, - selectedConnector.providerType as ProviderId, + selectedConnector.providerType as ProviderIdType, info?.name ) } catch (error) { @@ -589,12 +588,12 @@ export class Ethers5Adapter { const activeConfig = providerConfigs[walletId as unknown as keyof typeof providerConfigs] if (activeConfig?.provider) { - this.setProvider(activeConfig.provider, walletId as ProviderId) - this.setupProviderListeners(activeConfig.provider, walletId as ProviderId) + this.setProvider(activeConfig.provider, walletId as ProviderIdType) + this.setupProviderListeners(activeConfig.provider, walletId as ProviderIdType) } } - private async setProvider(provider: Provider, providerId: ProviderId, name?: string) { + private async setProvider(provider: Provider, providerId: ProviderIdType, name?: string) { if (providerId === 'w3mAuth') { this.setAuthProvider() } else { @@ -661,7 +660,7 @@ export class Ethers5Adapter { ) this.appKit?.setSmartAccountDeployed(Boolean(smartAccountDeployed), this.chainNamespace) ProviderUtil.setProvider('eip155', this.authProvider as unknown as Provider) - ProviderUtil.setProviderId('eip155', ConstantsUtil.AUTH_CONNECTOR_ID as ProviderId) + ProviderUtil.setProviderId('eip155', ConstantsUtil.AUTH_CONNECTOR_ID as ProviderIdType) this.setupProviderListeners(this.authProvider as unknown as Provider, 'w3mAuth') this.watchModal() } @@ -679,7 +678,7 @@ export class Ethers5Adapter { } } - private setupProviderListeners(provider: Provider, providerId: ProviderId) { + private setupProviderListeners(provider: Provider, providerId: ProviderIdType) { const disconnectHandler = () => { SafeLocalStorage.removeItem(SafeLocalStorageKeys.WALLET_ID) this.removeListeners(provider) diff --git a/packages/adapters/ethers5/src/tests/client.test.ts b/packages/adapters/ethers5/src/tests/client.test.ts index b5b0f2ea2e..5609c6a93c 100644 --- a/packages/adapters/ethers5/src/tests/client.test.ts +++ b/packages/adapters/ethers5/src/tests/client.test.ts @@ -5,7 +5,7 @@ import { mockOptions } from './mocks/Options' import { mockCreateEthersConfig } from './mocks/EthersConfig' import mockAppKit from './mocks/AppKit' import { mockAuthConnector } from './mocks/AuthConnector' -import { EthersHelpersUtil, type ProviderId, type ProviderType } from '@reown/appkit-utils/ethers' +import { EthersHelpersUtil, type ProviderType } from '@reown/appkit-utils/ethers' import { CaipNetworksUtil, ConstantsUtil } from '@reown/appkit-utils' import { arbitrum as AppkitArbitrum, @@ -14,7 +14,7 @@ import { optimism as AppkitOptimism, bsc as AppkitBsc } from '@reown/appkit/networks' -import { ProviderUtil } from '@reown/appkit/store' +import { ProviderUtil, type ProviderIdType } from '@reown/appkit/store' import { SafeLocalStorage, SafeLocalStorageKeys } from '@reown/appkit-common' import { type BlockchainApiLookupEnsName } from '@reown/appkit' import { ethers } from 'ethers' @@ -824,7 +824,7 @@ describe('EthersAdapter', () => { vi.spyOn(ProviderUtil.state, 'providerIds', 'get').mockReturnValue({ eip155: ConstantsUtil.EIP6963_CONNECTOR_ID, solana: undefined - } as Record) + } as Record) client['EIP6963Providers'] = [ { info: { name: 'MetaMask', icon: 'icon-url', uuid: 'test-uuid', rdns: 'com.metamask' }, @@ -844,7 +844,7 @@ describe('EthersAdapter', () => { vi.spyOn(ProviderUtil.state, 'providerIds', 'get').mockReturnValue({ eip155: ConstantsUtil.WALLET_CONNECT_CONNECTOR_ID, solana: undefined - } as Record) + } as Record) const mockProvider = { session: { peer: { @@ -873,7 +873,7 @@ describe('EthersAdapter', () => { vi.spyOn(ProviderUtil.state, 'providerIds', 'get').mockReturnValue({ eip155: ConstantsUtil.COINBASE_SDK_CONNECTOR_ID, solana: undefined - } as Record) + } as Record) vi.spyOn(mockAppKit, 'getConnectors').mockReturnValue([ { id: ConstantsUtil.COINBASE_SDK_CONNECTOR_ID, diff --git a/packages/adapters/wagmi/src/client.ts b/packages/adapters/wagmi/src/client.ts index 9e7c5b774c..56a9b01eb3 100644 --- a/packages/adapters/wagmi/src/client.ts +++ b/packages/adapters/wagmi/src/client.ts @@ -82,7 +82,7 @@ import type { AppKit } from '@reown/appkit' import { walletConnect } from './connectors/UniversalConnector.js' import { coinbaseWallet } from '@wagmi/connectors' import { authConnector } from './connectors/AuthConnector.js' -import { ProviderUtil } from '@reown/appkit/store' +import { ProviderUtil, type ProviderIdType } from '@reown/appkit/store' // -- Types --------------------------------------------------------------------- export interface AdapterOptions @@ -682,7 +682,7 @@ export class WagmiAdapter implements ChainAdapter { if (this.wagmiConfig) { if (connector) { - if (connector && connector.name === 'WalletConnect' && connector.getProvider && address) { + if (connector.name === 'WalletConnect' && connector.getProvider && address) { const activeCaipNetwork = this.appKit?.getCaipNetwork() const currentChainId = chainId || (activeCaipNetwork?.id as number | undefined) const provider = (await connector.getProvider()) as UniversalProvider @@ -715,19 +715,18 @@ export class WagmiAdapter implements ChainAdapter { ]) } } else if (status === 'connected' && address && chainId) { + ProviderUtil.setProvider(this.chainNamespace, await connector.getProvider()) + ProviderUtil.setProviderId(this.chainNamespace, connector.id as ProviderIdType) const caipAddress = `eip155:${chainId}:${address}` as CaipAddress this.syncNetwork(address, chainId, true) - this.appKit?.setCaipAddress(caipAddress, this.chainNamespace) await Promise.all([ this.syncProfile(address, chainId), this.syncBalance(address, chainId), this.syncConnectedWalletInfo(connector), this.appKit?.setApprovedCaipNetworksData(this.chainNamespace) ]) - if (connector) { - this.syncConnectedWalletInfo(connector) - } - + this.appKit?.setCaipAddress(caipAddress, this.chainNamespace) + this.appKit?.setStatus('connected', this.chainNamespace) // Set by authConnector.onIsConnectedHandler as we need the account type if (!isAuthConnector && addresses?.length) { this.appKit?.setAllAccounts( diff --git a/packages/adapters/wagmi/src/tests/client.test.ts b/packages/adapters/wagmi/src/tests/client.test.ts index 88f193cd69..bbf55cf263 100644 --- a/packages/adapters/wagmi/src/tests/client.test.ts +++ b/packages/adapters/wagmi/src/tests/client.test.ts @@ -147,7 +147,11 @@ describe('Wagmi Client', () => { it('should sync account correctly when connected', async () => { const mockAddress = '0x1234567890123456789012345678901234567890' const mockChainId = 1 - const mockConnector = { id: 'mockConnector', name: 'Mock Connector' } + const mockConnector = { + id: 'mockConnector', + name: 'Mock Connector', + getProvider: vi.fn().mockResolvedValue({}) + } const setCaipAddressSpy = vi.spyOn(mockAppKit, 'setCaipAddress') diff --git a/packages/appkit-utils/src/ethers/EthersTypesUtil.ts b/packages/appkit-utils/src/ethers/EthersTypesUtil.ts index ff19a24aea..ed26565f18 100644 --- a/packages/appkit-utils/src/ethers/EthersTypesUtil.ts +++ b/packages/appkit-utils/src/ethers/EthersTypesUtil.ts @@ -65,11 +65,3 @@ export type Chain = { chain: string imageId: string | undefined } - -export type ProviderId = - | 'walletConnect' - | 'injected' - | 'coinbaseWallet' - | 'eip6963' - | 'w3mAuth' - | 'coinbaseWalletSDK' diff --git a/packages/appkit/src/store/ProviderUtil.ts b/packages/appkit/src/store/ProviderUtil.ts index 4ed08ed71f..496e45885d 100644 --- a/packages/appkit/src/store/ProviderUtil.ts +++ b/packages/appkit/src/store/ProviderUtil.ts @@ -11,7 +11,7 @@ export interface ProviderStoreUtilState { providerIds: Record } -type ProviderIdType = +export type ProviderIdType = | 'walletConnect' | 'injected' | 'coinbaseWallet' diff --git a/packages/appkit/src/store/index.ts b/packages/appkit/src/store/index.ts index 2edfd786a2..52e8028197 100644 --- a/packages/appkit/src/store/index.ts +++ b/packages/appkit/src/store/index.ts @@ -1,2 +1,2 @@ export { ProviderUtil } from './ProviderUtil.js' -export type { ProviderStoreUtilState } from './ProviderUtil.js' +export type { ProviderStoreUtilState, ProviderIdType } from './ProviderUtil.js' From 3c6e2c7a915f1d16d26c8c2fb9bd137adc18b808 Mon Sep 17 00:00:00 2001 From: Enes Date: Thu, 10 Oct 2024 13:42:25 +0300 Subject: [PATCH 21/24] chore: revert wc types package on ethers adapter (#3053) --- .changeset/giant-chairs-smile.md | 23 +++++++++++++++++++++++ packages/adapters/ethers/package.json | 2 +- packages/appkit/exports/constants.ts | 2 +- pnpm-lock.yaml | 21 ++++++++++++--------- 4 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 .changeset/giant-chairs-smile.md diff --git a/.changeset/giant-chairs-smile.md b/.changeset/giant-chairs-smile.md new file mode 100644 index 0000000000..d726d943b5 --- /dev/null +++ b/.changeset/giant-chairs-smile.md @@ -0,0 +1,23 @@ +--- +'@reown/appkit-adapter-ethers': patch +'@apps/demo': patch +'@apps/gallery': patch +'@apps/laboratory': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-polkadot': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwe': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +--- + +Reverts removing types package on ethers adapter diff --git a/packages/adapters/ethers/package.json b/packages/adapters/ethers/package.json index f943639a51..d4ba9a5b45 100644 --- a/packages/adapters/ethers/package.json +++ b/packages/adapters/ethers/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@vitest/coverage-v8": "2.0.5", - "ethers": "6.13.2", + "@walletconnect/types": "2.17.0", "vitest": "2.0.5" }, "author": "Reown (https://reown.com)", diff --git a/packages/appkit/exports/constants.ts b/packages/appkit/exports/constants.ts index a298a3d1da..5527499d89 100644 --- a/packages/appkit/exports/constants.ts +++ b/packages/appkit/exports/constants.ts @@ -1 +1 @@ -export const PACKAGE_VERSION = '1.0.7' +export const PACKAGE_VERSION = '1.1.0' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e1f702090f..4499f6dbb5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -840,6 +840,9 @@ importers: '@walletconnect/utils': specifier: 2.17.0 version: 2.17.0 + ethers: + specifier: '>=6' + version: 6.13.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) valtio: specifier: 1.11.2 version: 1.11.2(@types/react@18.2.62)(react@18.2.0) @@ -847,9 +850,9 @@ importers: '@vitest/coverage-v8': specifier: 2.0.5 version: 2.0.5(vitest@2.0.5(@types/node@20.11.5)(jsdom@24.1.0)(terser@5.33.0)) - ethers: - specifier: 6.13.2 - version: 6.13.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@walletconnect/types': + specifier: 2.17.0 + version: 2.17.0 vitest: specifier: 2.0.5 version: 2.0.5(@types/node@20.11.5)(jsdom@24.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10))(terser@5.33.0) @@ -22970,7 +22973,7 @@ snapshots: eslint: 8.56.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0) - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.56.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) eslint-plugin-jsx-a11y: 6.10.0(eslint@8.56.0) eslint-plugin-react: 7.36.1(eslint@8.56.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.56.0) @@ -22989,7 +22992,7 @@ snapshots: eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.10.0(eslint@8.57.0) eslint-plugin-react: 7.36.1(eslint@8.57.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.57.0) @@ -23024,7 +23027,7 @@ snapshots: is-bun-module: 1.2.1 is-glob: 4.0.3 optionalDependencies: - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.56.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0) transitivePeerDependencies: - '@typescript-eslint/parser' - eslint-import-resolver-node @@ -23043,7 +23046,7 @@ snapshots: is-bun-module: 1.2.1 is-glob: 4.0.3 optionalDependencies: - eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0) + eslint-plugin-import: 2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) transitivePeerDependencies: - '@typescript-eslint/parser' - eslint-import-resolver-node @@ -23072,7 +23075,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.56.0): + eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0))(eslint@8.56.0))(eslint@8.56.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -23100,7 +23103,7 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0): + eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@6.18.1(eslint@8.57.0)(typescript@5.3.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 From 811af819371ecece806970730d61a8a7142f3c81 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:31:53 +0300 Subject: [PATCH 22/24] chore: version packages (#3041) Co-authored-by: github-actions[bot] Co-authored-by: Enes --- .changeset/warm-cheetahs-explode.md | 23 ----------------------- apps/demo/CHANGELOG.md | 10 ++++++++++ apps/demo/package.json | 2 +- apps/gallery/CHANGELOG.md | 10 ++++++++++ apps/gallery/package.json | 2 +- apps/laboratory/CHANGELOG.md | 16 ++++++++++++++++ apps/laboratory/package.json | 2 +- packages/adapters/ethers/CHANGELOG.md | 17 +++++++++++++++++ packages/adapters/ethers/package.json | 2 +- packages/adapters/ethers5/CHANGELOG.md | 17 +++++++++++++++++ packages/adapters/ethers5/package.json | 2 +- packages/adapters/polkadot/CHANGELOG.md | 11 +++++++++++ packages/adapters/polkadot/package.json | 2 +- packages/adapters/solana/CHANGELOG.md | 17 +++++++++++++++++ packages/adapters/solana/package.json | 2 +- packages/adapters/wagmi/CHANGELOG.md | 17 +++++++++++++++++ packages/adapters/wagmi/package.json | 2 +- packages/appkit-utils/CHANGELOG.md | 12 ++++++++++++ packages/appkit-utils/package.json | 2 +- packages/appkit/CHANGELOG.md | 16 ++++++++++++++++ packages/appkit/package.json | 2 +- packages/cdn/CHANGELOG.md | 14 ++++++++++++++ packages/cdn/package.json | 2 +- packages/common/CHANGELOG.md | 6 ++++++ packages/common/package.json | 2 +- packages/core/CHANGELOG.md | 10 ++++++++++ packages/core/package.json | 2 +- packages/experimental/CHANGELOG.md | 11 +++++++++++ packages/experimental/package.json | 2 +- packages/polyfills/CHANGELOG.md | 6 ++++++ packages/polyfills/package.json | 2 +- packages/scaffold-ui/CHANGELOG.md | 14 ++++++++++++++ packages/scaffold-ui/package.json | 2 +- packages/siwe/CHANGELOG.md | 13 +++++++++++++ packages/siwe/package.json | 2 +- packages/ui/CHANGELOG.md | 6 ++++++ packages/ui/package.json | 2 +- packages/wallet/CHANGELOG.md | 10 ++++++++++ packages/wallet/package.json | 2 +- 39 files changed, 252 insertions(+), 42 deletions(-) delete mode 100644 .changeset/warm-cheetahs-explode.md diff --git a/.changeset/warm-cheetahs-explode.md b/.changeset/warm-cheetahs-explode.md deleted file mode 100644 index fbc27ba38b..0000000000 --- a/.changeset/warm-cheetahs-explode.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@reown/appkit': patch -'@apps/demo': patch -'@apps/gallery': patch -'@apps/laboratory': patch -'@reown/appkit-adapter-ethers': patch -'@reown/appkit-adapter-ethers5': patch -'@reown/appkit-adapter-polkadot': patch -'@reown/appkit-adapter-solana': patch -'@reown/appkit-adapter-wagmi': patch -'@reown/appkit-utils': patch -'@reown/appkit-cdn': patch -'@reown/appkit-common': patch -'@reown/appkit-core': patch -'@reown/appkit-experimental': patch -'@reown/appkit-polyfills': patch -'@reown/appkit-scaffold-ui': patch -'@reown/appkit-siwe': patch -'@reown/appkit-ui': patch -'@reown/appkit-wallet': patch ---- - -Removes assert syntax to import json modules diff --git a/apps/demo/CHANGELOG.md b/apps/demo/CHANGELOG.md index ec981010c4..d0e01d74e0 100644 --- a/apps/demo/CHANGELOG.md +++ b/apps/demo/CHANGELOG.md @@ -1,5 +1,15 @@ # @apps/demo +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit@1.1.1 + - @reown/appkit-adapter-wagmi@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/apps/demo/package.json b/apps/demo/package.json index cc8c79c4e0..e9b9f420d2 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -1,6 +1,6 @@ { "name": "@apps/demo", - "version": "1.1.0", + "version": "1.1.1", "private": true, "scripts": { "dev": "next dev", diff --git a/apps/gallery/CHANGELOG.md b/apps/gallery/CHANGELOG.md index 07b060d2af..9182c1ded1 100644 --- a/apps/gallery/CHANGELOG.md +++ b/apps/gallery/CHANGELOG.md @@ -1,5 +1,15 @@ # @apps/gallery +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit-common@1.1.1 + - @reown/appkit-ui@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/apps/gallery/package.json b/apps/gallery/package.json index 98884109c6..40198726c4 100644 --- a/apps/gallery/package.json +++ b/apps/gallery/package.json @@ -1,6 +1,6 @@ { "name": "@apps/gallery", - "version": "1.1.0", + "version": "1.1.1", "private": true, "main": "index.js", "scripts": { diff --git a/apps/laboratory/CHANGELOG.md b/apps/laboratory/CHANGELOG.md index 966c7fec4c..d343a98d9a 100644 --- a/apps/laboratory/CHANGELOG.md +++ b/apps/laboratory/CHANGELOG.md @@ -1,5 +1,21 @@ # @apps/laboratory +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit@1.1.1 + - @reown/appkit-adapter-ethers@1.1.1 + - @reown/appkit-adapter-ethers5@1.1.1 + - @reown/appkit-adapter-solana@1.1.1 + - @reown/appkit-adapter-wagmi@1.1.1 + - @reown/appkit-experimental@1.1.1 + - @reown/appkit-siwe@1.1.1 + - @reown/appkit-wallet@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/apps/laboratory/package.json b/apps/laboratory/package.json index 2186b586d7..276936a7cd 100644 --- a/apps/laboratory/package.json +++ b/apps/laboratory/package.json @@ -1,7 +1,7 @@ { "name": "@apps/laboratory", "type": "module", - "version": "1.1.0", + "version": "1.1.1", "private": true, "scripts": { "dev": "next dev", diff --git a/packages/adapters/ethers/CHANGELOG.md b/packages/adapters/ethers/CHANGELOG.md index 5f9b2e04fe..5c4f2ffd82 100644 --- a/packages/adapters/ethers/CHANGELOG.md +++ b/packages/adapters/ethers/CHANGELOG.md @@ -1,5 +1,22 @@ # @reown/appkit-adapter-ethers +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit@1.1.1 + - @reown/appkit-utils@1.1.1 + - @reown/appkit-common@1.1.1 + - @reown/appkit-core@1.1.1 + - @reown/appkit-polyfills@1.1.1 + - @reown/appkit-scaffold-ui@1.1.1 + - @reown/appkit-siwe@1.1.1 + - @reown/appkit-ui@1.1.1 + - @reown/appkit-wallet@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/adapters/ethers/package.json b/packages/adapters/ethers/package.json index d4ba9a5b45..97af3038b7 100644 --- a/packages/adapters/ethers/package.json +++ b/packages/adapters/ethers/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-adapter-ethers", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/src/index.js", "types": "./dist/types/src/index.d.ts", diff --git a/packages/adapters/ethers5/CHANGELOG.md b/packages/adapters/ethers5/CHANGELOG.md index f2b0d8e317..04f40c1162 100644 --- a/packages/adapters/ethers5/CHANGELOG.md +++ b/packages/adapters/ethers5/CHANGELOG.md @@ -1,5 +1,22 @@ # @reown/appkit-adapter-ethers5 +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit@1.1.1 + - @reown/appkit-utils@1.1.1 + - @reown/appkit-common@1.1.1 + - @reown/appkit-core@1.1.1 + - @reown/appkit-polyfills@1.1.1 + - @reown/appkit-scaffold-ui@1.1.1 + - @reown/appkit-siwe@1.1.1 + - @reown/appkit-ui@1.1.1 + - @reown/appkit-wallet@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/adapters/ethers5/package.json b/packages/adapters/ethers5/package.json index f17bcfbb10..31c9429bd6 100644 --- a/packages/adapters/ethers5/package.json +++ b/packages/adapters/ethers5/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-adapter-ethers5", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/src/index.js", "types": "./dist/types/src/index.d.ts", diff --git a/packages/adapters/polkadot/CHANGELOG.md b/packages/adapters/polkadot/CHANGELOG.md index 61d3481345..45bec65b31 100644 --- a/packages/adapters/polkadot/CHANGELOG.md +++ b/packages/adapters/polkadot/CHANGELOG.md @@ -1,5 +1,16 @@ # @reown/appkit-adapter-polkadot +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit@1.1.1 + - @reown/appkit-common@1.1.1 + - @reown/appkit-core@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/adapters/polkadot/package.json b/packages/adapters/polkadot/package.json index 3fed9eac1a..f9b6a7d1ae 100644 --- a/packages/adapters/polkadot/package.json +++ b/packages/adapters/polkadot/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-adapter-polkadot", - "version": "1.1.0", + "version": "1.1.1", "scripts": { "build:clean": "rm -rf dist", "build": "tsc --build tsconfig.build.json", diff --git a/packages/adapters/solana/CHANGELOG.md b/packages/adapters/solana/CHANGELOG.md index 78fe1ffedd..cb46f35592 100644 --- a/packages/adapters/solana/CHANGELOG.md +++ b/packages/adapters/solana/CHANGELOG.md @@ -1,5 +1,22 @@ # @reown/appkit-adapter-solana +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit@1.1.1 + - @reown/appkit-utils@1.1.1 + - @reown/appkit-common@1.1.1 + - @reown/appkit-core@1.1.1 + - @reown/appkit-polyfills@1.1.1 + - @reown/appkit-scaffold-ui@1.1.1 + - @reown/appkit-siwe@1.1.1 + - @reown/appkit-ui@1.1.1 + - @reown/appkit-wallet@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/adapters/solana/package.json b/packages/adapters/solana/package.json index 7efcbda69f..1805862ef2 100644 --- a/packages/adapters/solana/package.json +++ b/packages/adapters/solana/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-adapter-solana", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/src/index.js", "types": "./dist/types/src/index.d.ts", diff --git a/packages/adapters/wagmi/CHANGELOG.md b/packages/adapters/wagmi/CHANGELOG.md index 3ac2ab14d1..7e697d0416 100644 --- a/packages/adapters/wagmi/CHANGELOG.md +++ b/packages/adapters/wagmi/CHANGELOG.md @@ -1,5 +1,22 @@ # @reown/appkit-adapter-wagmi +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit@1.1.1 + - @reown/appkit-utils@1.1.1 + - @reown/appkit-common@1.1.1 + - @reown/appkit-core@1.1.1 + - @reown/appkit-polyfills@1.1.1 + - @reown/appkit-scaffold-ui@1.1.1 + - @reown/appkit-siwe@1.1.1 + - @reown/appkit-ui@1.1.1 + - @reown/appkit-wallet@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/adapters/wagmi/package.json b/packages/adapters/wagmi/package.json index 9d1aea5529..75bdb62849 100644 --- a/packages/adapters/wagmi/package.json +++ b/packages/adapters/wagmi/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-adapter-wagmi", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/src/index.js", "types": "./dist/types/src/index.d.ts", diff --git a/packages/appkit-utils/CHANGELOG.md b/packages/appkit-utils/CHANGELOG.md index 8e9d669f9c..e9c8310d28 100644 --- a/packages/appkit-utils/CHANGELOG.md +++ b/packages/appkit-utils/CHANGELOG.md @@ -1,5 +1,17 @@ # @reown/appkit-utils +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit-common@1.1.1 + - @reown/appkit-core@1.1.1 + - @reown/appkit-polyfills@1.1.1 + - @reown/appkit-wallet@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/appkit-utils/package.json b/packages/appkit-utils/package.json index c2f312fcb2..468da74da4 100644 --- a/packages/appkit-utils/package.json +++ b/packages/appkit-utils/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-utils", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/appkit/CHANGELOG.md b/packages/appkit/CHANGELOG.md index 0e6982c35e..5ab06c1d00 100644 --- a/packages/appkit/CHANGELOG.md +++ b/packages/appkit/CHANGELOG.md @@ -1,5 +1,21 @@ # @reown/appkit +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit-utils@1.1.1 + - @reown/appkit-common@1.1.1 + - @reown/appkit-core@1.1.1 + - @reown/appkit-polyfills@1.1.1 + - @reown/appkit-scaffold-ui@1.1.1 + - @reown/appkit-siwe@1.1.1 + - @reown/appkit-ui@1.1.1 + - @reown/appkit-wallet@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/appkit/package.json b/packages/appkit/package.json index 5866b22d84..f686c44112 100644 --- a/packages/appkit/package.json +++ b/packages/appkit/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/cdn/CHANGELOG.md b/packages/cdn/CHANGELOG.md index bb39f2c4ee..aa0ac849be 100644 --- a/packages/cdn/CHANGELOG.md +++ b/packages/cdn/CHANGELOG.md @@ -1,5 +1,19 @@ # @reown/appkit-cdn +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit@1.1.1 + - @reown/appkit-adapter-ethers@1.1.1 + - @reown/appkit-adapter-ethers5@1.1.1 + - @reown/appkit-adapter-solana@1.1.1 + - @reown/appkit-adapter-wagmi@1.1.1 + - @reown/appkit-polyfills@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/cdn/package.json b/packages/cdn/package.json index 06e8f1c308..735a094d35 100644 --- a/packages/cdn/package.json +++ b/packages/cdn/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-cdn", - "version": "1.1.0", + "version": "1.1.1", "main": "dist/wagmi.js", "type": "module", "files": [ diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 1caef5eeb7..f73bb0dbb1 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,11 @@ # @reown/appkit-common +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + ## 1.1.0 ### Minor Changes diff --git a/packages/common/package.json b/packages/common/package.json index 43f92712d3..13b10600be 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-common", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 9b567d1928..81da2b7b6b 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,15 @@ # @reown/appkit-core +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit-common@1.1.1 + - @reown/appkit-wallet@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index a38f5953b6..952e7fdd12 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-core", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/experimental/CHANGELOG.md b/packages/experimental/CHANGELOG.md index bd4bbf971e..b45b55dba6 100644 --- a/packages/experimental/CHANGELOG.md +++ b/packages/experimental/CHANGELOG.md @@ -1,5 +1,16 @@ # @reown/appkit-experimental +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit@1.1.1 + - @reown/appkit-common@1.1.1 + - @reown/appkit-core@1.1.1 + ## 1.0.1 ### Patch Changes diff --git a/packages/experimental/package.json b/packages/experimental/package.json index 0866ff8c21..d2be8cbfdc 100644 --- a/packages/experimental/package.json +++ b/packages/experimental/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-experimental", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/polyfills/CHANGELOG.md b/packages/polyfills/CHANGELOG.md index 0e32106d5e..cda8755eb9 100644 --- a/packages/polyfills/CHANGELOG.md +++ b/packages/polyfills/CHANGELOG.md @@ -1,5 +1,11 @@ # @reown/appkit-polyfills +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + ## 1.1.0 ### Minor Changes diff --git a/packages/polyfills/package.json b/packages/polyfills/package.json index ee6da7e445..68944ac582 100644 --- a/packages/polyfills/package.json +++ b/packages/polyfills/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-polyfills", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", diff --git a/packages/scaffold-ui/CHANGELOG.md b/packages/scaffold-ui/CHANGELOG.md index f1eb03ecc1..78207a3384 100644 --- a/packages/scaffold-ui/CHANGELOG.md +++ b/packages/scaffold-ui/CHANGELOG.md @@ -1,5 +1,19 @@ # @reown/appkit-scaffold-ui +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit-utils@1.1.1 + - @reown/appkit-common@1.1.1 + - @reown/appkit-core@1.1.1 + - @reown/appkit-siwe@1.1.1 + - @reown/appkit-ui@1.1.1 + - @reown/appkit-wallet@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/scaffold-ui/package.json b/packages/scaffold-ui/package.json index e64b2f1876..d6f73c14fb 100644 --- a/packages/scaffold-ui/package.json +++ b/packages/scaffold-ui/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-scaffold-ui", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/siwe/CHANGELOG.md b/packages/siwe/CHANGELOG.md index b980721106..33cf8dff0b 100644 --- a/packages/siwe/CHANGELOG.md +++ b/packages/siwe/CHANGELOG.md @@ -1,5 +1,18 @@ # @reown/appkit-siwe +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit-utils@1.1.1 + - @reown/appkit-common@1.1.1 + - @reown/appkit-core@1.1.1 + - @reown/appkit-ui@1.1.1 + - @reown/appkit-wallet@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/siwe/package.json b/packages/siwe/package.json index eed50909ab..a979ee7f7e 100644 --- a/packages/siwe/package.json +++ b/packages/siwe/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-siwe", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/exports/index.js", "types": "./dist/types/exports/index.d.ts", diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index bef1a053ef..5b409f1fce 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,11 @@ # @reown/appkit-ui +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + ## 1.1.0 ### Minor Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 75df1e9958..f676c8417f 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-ui", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", diff --git a/packages/wallet/CHANGELOG.md b/packages/wallet/CHANGELOG.md index be5a1aa744..e5c371e348 100644 --- a/packages/wallet/CHANGELOG.md +++ b/packages/wallet/CHANGELOG.md @@ -1,5 +1,15 @@ # @reown/appkit-wallet +## 1.1.1 + +### Patch Changes + +- [#3036](https://github.com/reown-com/appkit/pull/3036) [`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073) Thanks [@enesozturk](https://github.com/enesozturk)! - Removes assert syntax to import json modules + +- Updated dependencies [[`23a7613`](https://github.com/reown-com/appkit/commit/23a7613fc2d3516a85183eae325aedacaac0a073)]: + - @reown/appkit-common@1.1.1 + - @reown/appkit-polyfills@1.1.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/wallet/package.json b/packages/wallet/package.json index 9aff165acc..793a001bf0 100644 --- a/packages/wallet/package.json +++ b/packages/wallet/package.json @@ -1,6 +1,6 @@ { "name": "@reown/appkit-wallet", - "version": "1.1.0", + "version": "1.1.1", "type": "module", "main": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", From 91c1be7c35165e94e5107ac4c4cb5d406d3ea5da Mon Sep 17 00:00:00 2001 From: MK <53529533+magiziz@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:14:13 +0100 Subject: [PATCH 23/24] chore: improve mobile connection ux (#3058) --- .changeset/weak-tips-watch.md | 23 ++++ apps/laboratory/package.json | 2 + .../tests/mobile-wallet-features.spec.ts | 50 ++++++++ .../tests/shared/constants/devices.ts | 3 +- .../tests/shared/pages/ModalPage.ts | 18 +++ apps/laboratory/tests/shared/utils/device.ts | 5 - apps/laboratory/tests/shared/utils/project.ts | 118 +++++++++++------- .../tests/shared/validators/ModalValidator.ts | 15 +++ packages/core/src/utils/ConstantsUtil.ts | 8 ++ .../partials/w3m-all-wallets-search/index.ts | 1 + .../w3m-connecting-wc-mobile/index.ts | 23 +++- .../src/utils/w3m-connecting-widget/index.ts | 35 +++--- 12 files changed, 235 insertions(+), 66 deletions(-) create mode 100644 .changeset/weak-tips-watch.md create mode 100644 apps/laboratory/tests/mobile-wallet-features.spec.ts delete mode 100644 apps/laboratory/tests/shared/utils/device.ts diff --git a/.changeset/weak-tips-watch.md b/.changeset/weak-tips-watch.md new file mode 100644 index 0000000000..e2afeb928a --- /dev/null +++ b/.changeset/weak-tips-watch.md @@ -0,0 +1,23 @@ +--- +'@reown/appkit-scaffold-ui': patch +'@apps/laboratory': patch +'@reown/appkit-core': patch +'@apps/demo': patch +'@apps/gallery': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-polkadot': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-common': patch +'@reown/appkit-experimental': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-siwe': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +--- + +Improved mobile connection UX \ No newline at end of file diff --git a/apps/laboratory/package.json b/apps/laboratory/package.json index 276936a7cd..4fc21af178 100644 --- a/apps/laboratory/package.json +++ b/apps/laboratory/package.json @@ -13,6 +13,7 @@ "synpress": "synpress ./tests/wallet-setup", "playwright:test": "playwright test", "playwright:test:metamask": "playwright test --grep 'metamask.spec.ts'", + "playwright:test:mobile-wallet-features": "playwright test --grep 'mobile-wallet-features.spec.ts'", "playwright:test:basic": "playwright test --grep 'basic-tests.spec.ts'", "playwright:test:wallet": "playwright test --grep 'wallet.spec.ts'", "playwright:test:no-email": "playwright test --grep 'no-email.spec.ts'", @@ -41,6 +42,7 @@ "playwright:test:multichain-ethers5-siwe": "playwright test --grep multichain-ethers5-solana-siwe.spec.ts", "playwright:debug": "pnpm playwright:test --debug", "playwright:debug:metamask": "pnpm playwright:test:metamask --debug", + "playwright:debug:mobile-wallet-features": "pnpm playwright:test:mobile-wallet-features --debug", "playwright:debug:basic": "pnpm playwright:test:basic --debug", "playwright:debug:wallet": "pnpm playwright:test:wallet --debug", "playwright:debug:no-email": "pnpm playwright:test:no-email --debug", diff --git a/apps/laboratory/tests/mobile-wallet-features.spec.ts b/apps/laboratory/tests/mobile-wallet-features.spec.ts new file mode 100644 index 0000000000..7e6bad818a --- /dev/null +++ b/apps/laboratory/tests/mobile-wallet-features.spec.ts @@ -0,0 +1,50 @@ +import { test, type BrowserContext } from '@playwright/test' +import { ModalPage } from './shared/pages/ModalPage' +import { ModalValidator } from './shared/validators/ModalValidator' + +const TRUST_WALLET_ID = '4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0' + +/* eslint-disable init-declarations */ +let modalPage: ModalPage +let modalValidator: ModalValidator +let context: BrowserContext + +// -- Setup -------------------------------------------------------------------- +const mobileWalletFeaturesTest = test.extend<{ library: string }>({ + library: ['wagmi', { option: true }] +}) + +mobileWalletFeaturesTest.describe.configure({ mode: 'serial' }) + +mobileWalletFeaturesTest.beforeAll(async ({ browser, library }) => { + context = await browser.newContext() + const browserPage = await context.newPage() + + modalPage = new ModalPage(browserPage, library, 'default') + modalValidator = new ModalValidator(browserPage) + + await modalPage.load() + await modalPage.openConnectModal() +}) + +mobileWalletFeaturesTest.afterAll(async () => { + await modalPage.page.close() +}) + +// -- Tests -------------------------------------------------------------------- +mobileWalletFeaturesTest('it should show all wallets option', async () => { + await modalValidator.expectAllWallets() +}) + +mobileWalletFeaturesTest('it should show all wallets view and connect to a wallet', async () => { + await modalPage.openAllWallets() + await modalPage.page.waitForTimeout(500) + await modalPage.search('trust') + await modalPage.clickAllWalletsListSearchItem(TRUST_WALLET_ID) +}) + +mobileWalletFeaturesTest('it should show try again button after 5 seconds', async () => { + await modalValidator.expectNoTryAgainButton() + await modalPage.page.waitForTimeout(5000) + await modalValidator.expectTryAgainButton() +}) diff --git a/apps/laboratory/tests/shared/constants/devices.ts b/apps/laboratory/tests/shared/constants/devices.ts index 2e91812b48..1d8f2804e3 100644 --- a/apps/laboratory/tests/shared/constants/devices.ts +++ b/apps/laboratory/tests/shared/constants/devices.ts @@ -1 +1,2 @@ -export const DEVICES = ['Desktop Firefox', 'Desktop Chrome'] +export const DESKTOP_DEVICES = ['Desktop Firefox', 'Desktop Chrome'] +export const MOBILE_DEVICES = ['iPhone 12', 'Galaxy S5'] diff --git a/apps/laboratory/tests/shared/pages/ModalPage.ts b/apps/laboratory/tests/shared/pages/ModalPage.ts index 70a8a74a60..3b388a456d 100644 --- a/apps/laboratory/tests/shared/pages/ModalPage.ts +++ b/apps/laboratory/tests/shared/pages/ModalPage.ts @@ -427,6 +427,24 @@ export class ModalPage { await networkToSwitchButton.click() } + async openAllWallets() { + const allWallets = this.page.getByTestId('all-wallets') + await expect(allWallets, 'All wallets should be visible').toBeVisible() + await allWallets.click() + } + + async clickAllWalletsListSearchItem(id: string) { + const allWalletsListSearchItem = this.page.getByTestId(`wallet-search-item-${id}`) + await expect(allWalletsListSearchItem).toBeVisible() + await allWalletsListSearchItem.click() + } + + async search(value: string) { + const searchInput = this.page.getByTestId('wui-input-text') + await expect(searchInput, 'Search input should be visible').toBeVisible() + await searchInput.fill(value) + } + async openModal() { await this.page.getByTestId('account-button').click() } diff --git a/apps/laboratory/tests/shared/utils/device.ts b/apps/laboratory/tests/shared/utils/device.ts deleted file mode 100644 index 2ec9db92b4..0000000000 --- a/apps/laboratory/tests/shared/utils/device.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { DEVICES } from '../constants/devices' - -export function getAvailableDevices(): string[] { - return DEVICES -} diff --git a/apps/laboratory/tests/shared/utils/project.ts b/apps/laboratory/tests/shared/utils/project.ts index 82c9ecfeb6..fe6f6c4b52 100644 --- a/apps/laboratory/tests/shared/utils/project.ts +++ b/apps/laboratory/tests/shared/utils/project.ts @@ -1,7 +1,5 @@ import { devices } from '@playwright/test' -import { getAvailableDevices } from './device' - -const availableDevices = getAvailableDevices() +import { DESKTOP_DEVICES, MOBILE_DEVICES } from '../constants/devices' const LIBRARIES = ['ethers', 'ethers5', 'wagmi', 'solana'] as const const MULTICHAIN_LIBRARIES = [ @@ -11,11 +9,15 @@ const MULTICHAIN_LIBRARIES = [ 'multichain-wagmi-solana' ] as const -const LIBRARY_PERMUTATIONS = availableDevices.flatMap(device => +const LIBRARY_PERMUTATIONS = DESKTOP_DEVICES.flatMap(device => + LIBRARIES.map(library => ({ device, library })) +) + +const LIBRARY_MOBILE_PERMUTATIONS = MOBILE_DEVICES.flatMap(device => LIBRARIES.map(library => ({ device, library })) ) -const MULTICHAIN_PERMUTATIONS = availableDevices.flatMap(device => +const MULTICHAIN_PERMUTATIONS = DESKTOP_DEVICES.flatMap(device => MULTICHAIN_LIBRARIES.map(library => ({ device, library })) ) @@ -51,6 +53,8 @@ const SINGLE_ADAPTER_EVM_TESTS = [ 'wallet.spec.ts' ] +const SINGLE_ADAPTER_EVM_MOBILE_TESTS = ['mobile-wallet-features.spec.ts'] + const SINGLE_ADAPTER_SOLANA_TESTS = [ 'basic-tests.spec.ts', 'email.spec.ts', @@ -60,13 +64,23 @@ const SINGLE_ADAPTER_SOLANA_TESTS = [ 'wallet.spec.ts' ] -const SINGLE_ADAPTER_EVM_TESTS_REGEX = new RegExp( - `^(?!.*/multichain/).*(?:${SINGLE_ADAPTER_EVM_TESTS.join('|')})`, - 'u' -) -const SINGLE_ADAPTER_SOLANA_TESTS_REGEX = new RegExp( - `^(?!.*/multichain/).*(?:${SINGLE_ADAPTER_SOLANA_TESTS.join('|')})`, - 'u' +const SINGLE_ADAPTER_SOLANA_MOBILE_TESTS = ['mobile-wallet-features.spec.ts'] + +function createRegex(tests: string[], isDesktop = true) { + const desktopCheck = isDesktop ? '(?!.*/mobile-)' : '' + + return new RegExp(`^(?!.*/multichain/)${desktopCheck}.*(?:${tests.join('|')})`, 'u') +} + +// Desktop +const SINGLE_ADAPTER_EVM_TESTS_REGEX = createRegex(SINGLE_ADAPTER_EVM_TESTS) +const SINGLE_ADAPTER_SOLANA_TESTS_REGEX = createRegex(SINGLE_ADAPTER_SOLANA_TESTS) + +// Mobile +const SINGLE_ADAPTER_EVM_MOBILE_REGEX = createRegex(SINGLE_ADAPTER_EVM_MOBILE_TESTS, false) +const SINGLE_ADAPTER_SOLANA_MOBILE_TESTS_REGEX = createRegex( + SINGLE_ADAPTER_SOLANA_MOBILE_TESTS, + false ) const customProjectProperties: CustomProjectProperties = { @@ -119,6 +133,30 @@ const customProjectProperties: CustomProjectProperties = { }, 'Desktop Chrome/multichain-basic': { testMatch: /^.*\/multichain-basic\.spec\.ts$/u + }, + 'iPhone 12/ethers': { + testMatch: SINGLE_ADAPTER_EVM_MOBILE_REGEX + }, + 'Galaxy S5/ethers': { + testMatch: SINGLE_ADAPTER_EVM_MOBILE_REGEX + }, + 'iPhone 12/ethers5': { + testMatch: SINGLE_ADAPTER_EVM_MOBILE_REGEX + }, + 'Galaxy S5/ethers5': { + testMatch: SINGLE_ADAPTER_EVM_MOBILE_REGEX + }, + 'iPhone 12/wagmi': { + testMatch: SINGLE_ADAPTER_EVM_MOBILE_REGEX + }, + 'Galaxy S5/wagmi': { + testMatch: SINGLE_ADAPTER_EVM_MOBILE_REGEX + }, + 'iPhone 12/solana': { + testMatch: SINGLE_ADAPTER_SOLANA_MOBILE_TESTS_REGEX + }, + 'Galaxy S5/solana': { + testMatch: SINGLE_ADAPTER_SOLANA_MOBILE_TESTS_REGEX } } @@ -127,42 +165,34 @@ export interface Permutation { library: string } -export function getProjects() { - const libraryProjects = LIBRARY_PERMUTATIONS.map(({ device, library }) => { - let project = { - name: `${device}/${library}`, - use: { ...devices[device], library }, - storageState: 'playwright/.auth/user.json' - } - const props = customProjectProperties[project.name] - if (props) { - project = { ...project, ...props } - if (props.useOptions) { - project.use = { ...project.use, ...props.useOptions } - } - } - - return project - }) +interface CreateProjectParameters { + device: string + library: string +} - const multichainProjects = MULTICHAIN_PERMUTATIONS.map(({ device, library }) => { - let project = { - name: `${device}/${library}`, - use: { ...devices[device], library }, - storageState: 'playwright/.auth/user.json' - } - const props = customProjectProperties[project.name] - if (props) { - project = { ...project, ...props } - if (props.useOptions) { - project.use = { ...project.use, ...props.useOptions } - } +function createProject({ device, library }: CreateProjectParameters) { + let project = { + name: `${device}/${library}`, + use: { ...devices[device], library }, + storageState: 'playwright/.auth/user.json' + } + const props = customProjectProperties[project.name] + if (props) { + project = { ...project, ...props } + if (props.useOptions) { + project.use = { ...project.use, ...props.useOptions } } + } + + return project +} - return project - }) +export function getProjects() { + const libraryDesktopProjects = LIBRARY_PERMUTATIONS.map(createProject) + const libraryMobileProjects = LIBRARY_MOBILE_PERMUTATIONS.map(createProject) + const multichainProjects = MULTICHAIN_PERMUTATIONS.map(createProject) - const projects = [...libraryProjects, ...multichainProjects] + const projects = [...libraryDesktopProjects, ...libraryMobileProjects, ...multichainProjects] return projects } diff --git a/apps/laboratory/tests/shared/validators/ModalValidator.ts b/apps/laboratory/tests/shared/validators/ModalValidator.ts index 285b35d57d..6983e50a6a 100644 --- a/apps/laboratory/tests/shared/validators/ModalValidator.ts +++ b/apps/laboratory/tests/shared/validators/ModalValidator.ts @@ -144,6 +144,21 @@ export class ModalValidator { await expect(socialList).toBeHidden() } + async expectAllWallets() { + const allWallets = this.page.getByTestId('all-wallets') + await expect(allWallets).toBeVisible() + } + + async expectNoTryAgainButton() { + const secondaryButton = this.page.getByTestId('w3m-connecting-widget-secondary-button') + await expect(secondaryButton).toBeHidden() + } + + async expectTryAgainButton() { + const secondaryButton = this.page.getByTestId('w3m-connecting-widget-secondary-button') + await expect(secondaryButton).toBeVisible() + } + async expectAlertBarText(text: string) { const alertBarText = this.page.getByTestId('wui-alertbar-text') await expect(alertBarText).toHaveText(text) diff --git a/packages/core/src/utils/ConstantsUtil.ts b/packages/core/src/utils/ConstantsUtil.ts index 5ba15f0b35..53ca26339e 100644 --- a/packages/core/src/utils/ConstantsUtil.ts +++ b/packages/core/src/utils/ConstantsUtil.ts @@ -28,6 +28,10 @@ export const ConstantsUtil = { TEN_SEC_MS: 10_000, + FIVE_SEC_MS: 5_000, + + THREE_SEC_MS: 3_000, + ONE_SEC_MS: 1_000, SECURE_SITE, @@ -205,6 +209,10 @@ export const ConstantsUtil = { CONVERT_SLIPPAGE_TOLERANCE: 1, + CONNECT_LABELS: { + MOBILE: 'Open and continue in a new browser tab' + }, + DEFAULT_FEATURES: { swaps: true, onramp: true, diff --git a/packages/scaffold-ui/src/partials/w3m-all-wallets-search/index.ts b/packages/scaffold-ui/src/partials/w3m-all-wallets-search/index.ts index 3eede85749..3aa27c2c4d 100644 --- a/packages/scaffold-ui/src/partials/w3m-all-wallets-search/index.ts +++ b/packages/scaffold-ui/src/partials/w3m-all-wallets-search/index.ts @@ -68,6 +68,7 @@ export class W3mAllWalletsSearch extends LitElement { this.onConnectWallet(wallet)} .wallet=${wallet} + data-testid="wallet-search-item-${wallet.id}" > ` )} diff --git a/packages/scaffold-ui/src/partials/w3m-connecting-wc-mobile/index.ts b/packages/scaffold-ui/src/partials/w3m-connecting-wc-mobile/index.ts index 7603ee611f..c5b177736f 100644 --- a/packages/scaffold-ui/src/partials/w3m-connecting-wc-mobile/index.ts +++ b/packages/scaffold-ui/src/partials/w3m-connecting-wc-mobile/index.ts @@ -1,14 +1,24 @@ -import { ConnectionController, CoreHelperUtil, EventsController } from '@reown/appkit-core' +import { + ConnectionController, + ConstantsUtil, + CoreHelperUtil, + EventsController +} from '@reown/appkit-core' import { customElement } from '@reown/appkit-ui' import { W3mConnectingWidget } from '../../utils/w3m-connecting-widget/index.js' @customElement('w3m-connecting-wc-mobile') export class W3mConnectingWcMobile extends W3mConnectingWidget { + private btnLabelTimeout?: ReturnType = undefined + private labelTimeout?: ReturnType = undefined + public constructor() { super() if (!this.wallet) { throw new Error('w3m-connecting-wc-mobile: No wallet provided') } + this.secondaryBtnLabel = undefined + this.secondaryLabel = ConstantsUtil.CONNECT_LABELS.MOBILE this.onConnect = this.onConnectProxy.bind(this) this.onRender = this.onRenderProxy.bind(this) document.addEventListener('visibilitychange', this.onBuffering.bind(this)) @@ -17,11 +27,20 @@ export class W3mConnectingWcMobile extends W3mConnectingWidget { event: 'SELECT_WALLET', properties: { name: this.wallet.name, platform: 'mobile' } }) + this.btnLabelTimeout = setTimeout(() => { + this.secondaryBtnLabel = 'Try again' + this.secondaryLabel = ConstantsUtil.CONNECT_LABELS.MOBILE + }, ConstantsUtil.FIVE_SEC_MS) + this.labelTimeout = setTimeout(() => { + this.secondaryLabel = `Hold tight... it's taking longer than expected` + }, ConstantsUtil.THREE_SEC_MS) } public override disconnectedCallback() { super.disconnectedCallback() document.removeEventListener('visibilitychange', this.onBuffering.bind(this)) + clearTimeout(this.btnLabelTimeout) + clearTimeout(this.labelTimeout) } // -- Private ------------------------------------------- // @@ -41,6 +60,8 @@ export class W3mConnectingWcMobile extends W3mConnectingWidget { ConnectionController.setWcLinking({ name, href }) ConnectionController.setRecentWallet(this.wallet) CoreHelperUtil.openHref(redirect, '_self') + clearTimeout(this.labelTimeout) + this.secondaryLabel = ConstantsUtil.CONNECT_LABELS.MOBILE } catch (e) { EventsController.sendEvent({ type: 'track', diff --git a/packages/scaffold-ui/src/utils/w3m-connecting-widget/index.ts b/packages/scaffold-ui/src/utils/w3m-connecting-widget/index.ts index 681f855368..b338cdc9b6 100644 --- a/packages/scaffold-ui/src/utils/w3m-connecting-widget/index.ts +++ b/packages/scaffold-ui/src/utils/w3m-connecting-widget/index.ts @@ -22,12 +22,8 @@ export class W3mConnectingWidget extends LitElement { protected timeout?: ReturnType = undefined - protected secondaryBtnLabel = 'Try again' - protected secondaryBtnIcon: IconType = 'refresh' - protected secondaryLabel = 'Accept connection request in the wallet' - protected onConnect?: (() => void) | (() => Promise) = undefined protected onRender?: (() => void) | (() => Promise) = undefined @@ -43,9 +39,9 @@ export class W3mConnectingWidget extends LitElement { private name = this.wallet?.name ?? this.connector?.name ?? 'Wallet' - private isRetrying = false - // -- State & Properties -------------------------------- // + @state() protected isRetrying = false + @state() protected uri = ConnectionController.state.wcUri @state() protected error = ConnectionController.state.wcError @@ -54,6 +50,10 @@ export class W3mConnectingWidget extends LitElement { @state() private showRetry = false + @state() protected secondaryBtnLabel? = 'Try again' + + @state() protected secondaryLabel = 'Accept connection request in the wallet' + @state() public buffering = false @property({ type: Boolean }) public isMobile = false @@ -142,15 +142,20 @@ export class W3mConnectingWidget extends LitElement { ${subLabel} - - - ${this.secondaryBtnLabel} - + ${this.secondaryBtnLabel + ? html` + + + ${this.secondaryBtnLabel} + + ` + : null} ${this.isWalletConnect From fdaec5a319babb260569c971afb222e27eb08b2c Mon Sep 17 00:00:00 2001 From: Enes Date: Thu, 10 Oct 2024 15:38:33 +0300 Subject: [PATCH 24/24] chore: remove old package names from changeset files (#3059) --- .changeset/mighty-ducks-fetch.md | 4 - package.json | 2 +- pnpm-lock.yaml | 275 ++----------------------------- 3 files changed, 15 insertions(+), 266 deletions(-) diff --git a/.changeset/mighty-ducks-fetch.md b/.changeset/mighty-ducks-fetch.md index e1b879bd42..1b769c5434 100644 --- a/.changeset/mighty-ducks-fetch.md +++ b/.changeset/mighty-ducks-fetch.md @@ -13,13 +13,9 @@ '@reown/appkit-cdn': patch '@reown/appkit-common': patch '@reown/appkit-core': patch -'@reown/appkit-ethers': patch -'@reown/appkit-ethers5': patch '@reown/appkit-polyfills': patch '@reown/appkit-siwe': patch -'@reown/appkit-solana': patch '@reown/appkit-ui': patch -'@reown/appkit-wagmi': patch '@reown/appkit-wallet': patch --- diff --git a/package.json b/package.json index d3ac8d597c..fd3c3f60db 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@changesets/changelog-github": "0.5.0", - "@changesets/cli": "2.27.1", + "@changesets/cli": "2.27.9", "@typescript-eslint/eslint-plugin": "6.18.1", "@typescript-eslint/parser": "6.18.1", "@vitest/coverage-v8": "1.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4499f6dbb5..56a0719479 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,8 +17,8 @@ importers: specifier: 0.5.0 version: 0.5.0 '@changesets/cli': - specifier: 2.27.1 - version: 2.27.1 + specifier: 2.27.9 + version: 2.27.9 '@typescript-eslint/eslint-plugin': specifier: 6.18.1 version: 6.18.1(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0)(typescript@5.3.3) @@ -2789,8 +2789,8 @@ packages: '@changesets/changelog-github@0.5.0': resolution: {integrity: sha512-zoeq2LJJVcPJcIotHRJEEA2qCqX0AQIeFE+L21L8sRLPVqDhSXY8ZWAt2sohtBpFZkBwu+LUwMSKRr2lMy3LJA==} - '@changesets/cli@2.27.1': - resolution: {integrity: sha512-iJ91xlvRnnrJnELTp4eJJEOPjgpF3NOh4qeQehM6Ugiz9gJPRZ2t+TsXun6E3AMN4hScZKjqVXl0TX+C7AB3ZQ==} + '@changesets/cli@2.27.9': + resolution: {integrity: sha512-q42a/ZbDnxPpCb5Wkm6tMVIxgeI9C/bexntzTeCFBrQEdpisQqk8kCHllYZMDjYtEc1ZzumbMJAG8H0Z4rdvjg==} hasBin: true '@changesets/config@3.0.3': @@ -6357,9 +6357,6 @@ packages: '@types/mime@1.3.5': resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} - '@types/minimist@1.2.5': - resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} - '@types/ms@0.7.34': resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} @@ -7003,10 +7000,6 @@ packages: resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==} engines: {node: '>= 0.4'} - arrify@1.0.1: - resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} - engines: {node: '>=0.10.0'} - as-table@1.0.55: resolution: {integrity: sha512-xvsWESUJn0JN421Xb9MQw6AsMHRCUknCe0Wjlxvjud80mU4E6hQf1A6NzQKcYNmYw62MfzEtXc+badstZP3JpQ==} @@ -7245,9 +7238,6 @@ packages: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} - breakword@1.0.6: - resolution: {integrity: sha512-yjxDAYyK/pBvws9H4xKYpLDpYKEH6CzrBPAuXq3x18I+c/2MkVtT3qAr7Oloi6Dss9qNhPVueAAVU1CSeNDIXw==} - brorand@1.1.0: resolution: {integrity: sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==} @@ -7398,10 +7388,6 @@ packages: resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} engines: {node: '>= 6'} - camelcase-keys@6.2.2: - resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==} - engines: {node: '>=8'} - camelcase@5.3.1: resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} engines: {node: '>=6'} @@ -7746,19 +7732,6 @@ packages: csstype@3.1.3: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} - csv-generate@3.4.3: - resolution: {integrity: sha512-w/T+rqR0vwvHqWs/1ZyMDWtHHSJaN06klRqJXBEpDJaM/+dZkso0OKh1VcuuYvK3XM53KysVNq8Ko/epCK8wOw==} - - csv-parse@4.16.3: - resolution: {integrity: sha512-cO1I/zmz4w2dcKHVvpCr7JVRu8/FymG5OEpmvsZYlccYolPBLoVGKUHgNoc4ZGkFeFlWGEDmMyBM+TTqRdW/wg==} - - csv-stringify@5.6.5: - resolution: {integrity: sha512-PjiQ659aQ+fUTQqSrd1XEDnOr52jh30RBurfzkscaE2tPaFsDH5wOAHJiw8XAHphRknCwMUE9KRayc4K/NbO8A==} - - csv@5.5.3: - resolution: {integrity: sha512-QTaY0XjjhTQOdguARF0lGKm5/mEq9PD9/VhZZegHDIBq2tQwgNpHc3dneD4mGo2iJs+fTKv5Bp0fZ+BRuY3Z0g==} - engines: {node: '>= 0.1.90'} - damerau-levenshtein@1.0.8: resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==} @@ -7824,10 +7797,6 @@ packages: supports-color: optional: true - decamelize-keys@1.1.1: - resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==} - engines: {node: '>=0.10.0'} - decamelize@1.2.0: resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} engines: {node: '>=0.10.0'} @@ -8569,9 +8538,6 @@ packages: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} - find-yarn-workspace-root2@1.2.16: - resolution: {integrity: sha512-hr6hb1w8ePMpPVUK39S4RlwJzi+xPLuVuG8XlwXU3KD5Yn3qgBWVfy3AzNlDhWvE1EORCE65/Qm26rFQt3VLVA==} - flat-cache@3.2.0: resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} engines: {node: ^10.12.0 || >=12.0.0} @@ -8837,9 +8803,6 @@ packages: resolution: {integrity: sha512-rEDCuqUQ4tbD78TpzsMtt5OIf0cBCSDWSJtUDaF6JsAh+k0v9r++NzxNEG87oDZx9ZwGhD8DaezR2L/yrw0Jdw==} engines: {node: '>=10'} - grapheme-splitter@1.0.4: - resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} - graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} @@ -8855,10 +8818,6 @@ packages: engines: {node: '>=0.4.7'} hasBin: true - hard-rejection@2.1.0: - resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} - engines: {node: '>=6'} - has-bigints@1.0.2: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} @@ -9246,10 +9205,6 @@ packages: resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} engines: {node: '>=8'} - is-plain-obj@1.1.0: - resolution: {integrity: sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==} - engines: {node: '>=0.10.0'} - is-plain-object@2.0.4: resolution: {integrity: sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==} engines: {node: '>=0.10.0'} @@ -9616,10 +9571,6 @@ packages: resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} engines: {node: '>=6'} - kleur@4.1.5: - resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} - engines: {node: '>=6'} - language-subtag-registry@0.3.23: resolution: {integrity: sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==} @@ -9688,10 +9639,6 @@ packages: resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - load-yaml-file@0.2.0: - resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==} - engines: {node: '>=6'} - localforage@1.10.0: resolution: {integrity: sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==} @@ -9836,14 +9783,6 @@ packages: makeerror@1.0.12: resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} - map-obj@1.0.1: - resolution: {integrity: sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==} - engines: {node: '>=0.10.0'} - - map-obj@4.3.0: - resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==} - engines: {node: '>=8'} - map-or-similar@1.5.0: resolution: {integrity: sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==} @@ -9878,10 +9817,6 @@ packages: memoizerific@1.11.3: resolution: {integrity: sha512-/EuHYwAPdLtXwAwSZkh/Gutery6pD2KYd44oQLhAvQp/50mpyduZh8Q7PYHXTCJ+wuXxt7oij2LXyIJOOYFPog==} - meow@6.1.1: - resolution: {integrity: sha512-3YffViIt2QWgTy6Pale5QpopX/IvU3LPL03jOTqp6pGj3VjesdO/U8CuHMKpnQr4shCNCM5fd5XFFvIIl6JBHg==} - engines: {node: '>=8'} - merge-descriptors@1.0.3: resolution: {integrity: sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==} @@ -10008,10 +9943,6 @@ packages: resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==} engines: {node: '>=10'} - min-indent@1.0.1: - resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} - engines: {node: '>=4'} - miniflare@3.20240524.0: resolution: {integrity: sha512-RQAfpz7spI6gWlczeUYvJBgGyt0gNR2pYoCydgukCYZ+0bGfJl0yAiNFW62uH7uMZli/4juWPpQOBI5m7URoyA==} engines: {node: '>=16.13'} @@ -10038,10 +9969,6 @@ packages: resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} - minimist-options@4.1.0: - resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} - engines: {node: '>= 6'} - minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} @@ -10069,10 +9996,6 @@ packages: typescript: optional: true - mixme@0.5.10: - resolution: {integrity: sha512-5H76ANWinB1H3twpJ6JY8uvAtpmFvHNArpilJAjXRKXSDDLPIMoZArw5SH0q9z+lLs8IrMw7Q2VWpWimFKFT1Q==} - engines: {node: '>= 8.0.0'} - mkdirp-classic@0.5.3: resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} @@ -10432,6 +10355,9 @@ packages: package-json-from-dist@1.0.0: resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==} + package-manager-detector@0.2.2: + resolution: {integrity: sha512-VgXbyrSNsml4eHWIvxxG/nTL4wgybMTXCV2Un/+yEc3aDKKU6nQBZjbeP3Pl3qm9Qg92X/1ng4ffvCeD/zwHgg==} + pako@0.2.9: resolution: {integrity: sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==} @@ -10692,10 +10618,6 @@ packages: preact@10.4.1: resolution: {integrity: sha512-WKrRpCSwL2t3tpOOGhf2WfTpcmbpxaWtDbdJdKdjd0aEiTkvOmS4NBkG6kzlaAHI9AkQ3iVqbFWM3Ei7mZ4o1Q==} - preferred-pm@3.1.4: - resolution: {integrity: sha512-lEHd+yEm22jXdCphDrkvIJQU66EuLojPPtvZkpKIkiD+l0DMThF/niqZKJSoU8Vl7iuvtmzyMhir9LdVy5WMnA==} - engines: {node: '>=10'} - prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -10858,10 +10780,6 @@ packages: quick-format-unescaped@4.0.4: resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} - quick-lru@4.0.1: - resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} - engines: {node: '>=8'} - quick-lru@5.1.1: resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==} engines: {node: '>=10'} @@ -11080,10 +10998,6 @@ packages: resolution: {integrity: sha512-Hx/BGIbwj+Des3+xy5uAtAbdCyqK9y9wbBcDFDYanLS9JnMqf7OeF87HQwUimE87OEc72mr6tkKUKMBBL+hF9Q==} engines: {node: '>= 4'} - redent@3.0.0: - resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} - engines: {node: '>=8'} - reflect.getprototypeof@1.0.6: resolution: {integrity: sha512-fmfw4XgoDke3kdI6h4xcUz1dG8uaiv5q9gcEwLS4Pnth2kxT+GZ7YehS1JTMGBQmtV7Y4GFGbs2re2NqhdozUg==} engines: {node: '>= 0.4'} @@ -11432,11 +11346,6 @@ packages: resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} - smartwrap@2.0.2: - resolution: {integrity: sha512-vCsKNQxb7PnCNd2wY1WClWifAc2lwqsG8OaswpJkVJsvMGcnEntdTCDajZCkk93Ay1U3t/9puJmb525Rg5MZBA==} - engines: {node: '>=6'} - hasBin: true - socket.io-client@4.8.0: resolution: {integrity: sha512-C0jdhD5yQahMws9alf/yvtsMGTaIDBnZ8Rb5HU56svyq0l5LIrGzIDZZD5pHQlmzxLuU91Gz+VpQMKgCTNYtkw==} engines: {node: '>=10.0.0'} @@ -11573,9 +11482,6 @@ packages: stream-shift@1.0.3: resolution: {integrity: sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==} - stream-transform@2.1.3: - resolution: {integrity: sha512-9GHUiM5hMiCi6Y03jD2ARC1ettBXkQBoQAe7nJsPknnI0ow10aXjTnew8QtYQmLjzn974BnmWEAJgCY6ZP1DeQ==} - streamsearch@1.1.0: resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} engines: {node: '>=10.0.0'} @@ -11647,10 +11553,6 @@ packages: resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} engines: {node: '>=12'} - strip-indent@3.0.0: - resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} - engines: {node: '>=8'} - strip-json-comments@3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} @@ -11882,10 +11784,6 @@ packages: resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} hasBin: true - trim-newlines@3.0.1: - resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==} - engines: {node: '>=8'} - ts-api-utils@1.3.0: resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} engines: {node: '>=16'} @@ -11939,11 +11837,6 @@ packages: tty-browserify@0.0.1: resolution: {integrity: sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==} - tty-table@4.2.3: - resolution: {integrity: sha512-Fs15mu0vGzCrj8fmJNP7Ynxt5J7praPXqFN0leZeZBXJwkMxv9cb2D454k1ltrtUSJbZ4yH4e0CynsHLxmUfFA==} - engines: {node: '>=8.0.0'} - hasBin: true - turbo-darwin-64@2.0.6-canary.0: resolution: {integrity: sha512-gVqfplset6aKF1cHfVrRa6YxHiTwHpGpRAt+owj9HeRLajc2MtD6TsacvKh9le/iUsIhY69n1fXLujImklAFtQ==} cpu: [x64] @@ -11986,10 +11879,6 @@ packages: resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} engines: {node: '>=4'} - type-fest@0.13.1: - resolution: {integrity: sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==} - engines: {node: '>=10'} - type-fest@0.16.0: resolution: {integrity: sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==} engines: {node: '>=10'} @@ -12538,10 +12427,6 @@ packages: which-module@2.0.1: resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} - which-pm@2.2.0: - resolution: {integrity: sha512-MOiaDbA5ZZgUjkeMWM5EkJp4loW5ZRoa5bc3/aeMox/PJelMhE6t7S/mLuiY43DBupyxH+S0U1bTui9kWUlmsw==} - engines: {node: '>=8.15'} - which-typed-array@1.1.15: resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==} engines: {node: '>= 0.4'} @@ -14845,9 +14730,8 @@ snapshots: transitivePeerDependencies: - encoding - '@changesets/cli@2.27.1': + '@changesets/cli@2.27.9': dependencies: - '@babel/runtime': 7.25.6 '@changesets/apply-release-plan': 7.0.5 '@changesets/assemble-release-plan': 6.0.4 '@changesets/changelog-git': 0.2.0 @@ -14859,26 +14743,23 @@ snapshots: '@changesets/logger': 0.1.1 '@changesets/pre': 2.0.1 '@changesets/read': 0.6.1 + '@changesets/should-skip-package': 0.1.1 '@changesets/types': 6.0.0 '@changesets/write': 0.3.2 '@manypkg/get-packages': 1.1.3 - '@types/semver': 7.5.8 ansi-colors: 4.1.3 - chalk: 2.4.2 ci-info: 3.9.0 enquirer: 2.4.1 external-editor: 3.1.0 fs-extra: 7.0.1 - human-id: 1.0.2 - meow: 6.1.1 - outdent: 0.5.0 + mri: 1.2.0 p-limit: 2.3.0 - preferred-pm: 3.1.4 + package-manager-detector: 0.2.2 + picocolors: 1.1.0 resolve-from: 5.0.0 semver: 7.6.3 spawndamnit: 2.0.0 term-size: 2.2.1 - tty-table: 4.2.3 '@changesets/config@3.0.3': dependencies: @@ -20006,8 +19887,6 @@ snapshots: '@types/mime@1.3.5': {} - '@types/minimist@1.2.5': {} - '@types/ms@0.7.34': {} '@types/node-fetch@2.6.11': @@ -21457,8 +21336,6 @@ snapshots: is-array-buffer: 3.0.4 is-shared-array-buffer: 1.0.3 - arrify@1.0.1: {} - as-table@1.0.55: dependencies: printable-characters: 1.0.42 @@ -21737,10 +21614,6 @@ snapshots: dependencies: fill-range: 7.1.1 - breakword@1.0.6: - dependencies: - wcwidth: 1.0.1 - brorand@1.1.0: {} browser-assert@1.2.1: {} @@ -21917,12 +21790,6 @@ snapshots: camelcase-css@2.0.1: {} - camelcase-keys@6.2.2: - dependencies: - camelcase: 5.3.1 - map-obj: 4.3.0 - quick-lru: 4.0.1 - camelcase@5.3.1: {} camelcase@6.3.0: {} @@ -22298,19 +22165,6 @@ snapshots: csstype@3.1.3: {} - csv-generate@3.4.3: {} - - csv-parse@4.16.3: {} - - csv-stringify@5.6.5: {} - - csv@5.5.3: - dependencies: - csv-generate: 3.4.3 - csv-parse: 4.16.3 - csv-stringify: 5.6.5 - stream-transform: 2.1.3 - damerau-levenshtein@1.0.8: {} danger@11.3.1: @@ -22404,11 +22258,6 @@ snapshots: dependencies: ms: 2.1.3 - decamelize-keys@1.1.1: - dependencies: - decamelize: 1.2.0 - map-obj: 1.0.1 - decamelize@1.2.0: {} decimal.js@10.4.3: {} @@ -23710,11 +23559,6 @@ snapshots: locate-path: 6.0.0 path-exists: 4.0.0 - find-yarn-workspace-root2@1.2.16: - dependencies: - micromatch: 4.0.8 - pkg-dir: 4.2.0 - flat-cache@3.2.0: dependencies: flatted: 3.3.1 @@ -23987,8 +23831,6 @@ snapshots: chalk: 4.1.2 tinygradient: 1.1.5 - grapheme-splitter@1.0.4: {} - graphemer@1.4.0: {} gunzip-maybe@1.4.2: @@ -24024,8 +23866,6 @@ snapshots: optionalDependencies: uglify-js: 3.19.3 - hard-rejection@2.1.0: {} - has-bigints@1.0.2: {} has-flag@2.0.0: {} @@ -24388,8 +24228,6 @@ snapshots: is-path-inside@3.0.3: {} - is-plain-obj@1.1.0: {} - is-plain-object@2.0.4: dependencies: isobject: 3.0.1 @@ -24860,8 +24698,6 @@ snapshots: kleur@3.0.3: {} - kleur@4.1.5: {} - language-subtag-registry@0.3.23: {} language-tags@1.0.9: @@ -24959,13 +24795,6 @@ snapshots: load-tsconfig@0.2.5: {} - load-yaml-file@0.2.0: - dependencies: - graceful-fs: 4.2.11 - js-yaml: 3.14.1 - pify: 4.0.1 - strip-bom: 3.0.0 - localforage@1.10.0: dependencies: lie: 3.1.1 @@ -25098,10 +24927,6 @@ snapshots: dependencies: tmpl: 1.0.5 - map-obj@1.0.1: {} - - map-obj@4.3.0: {} - map-or-similar@1.5.0: {} markdown-to-jsx@7.5.0(react@18.2.0): @@ -25136,20 +24961,6 @@ snapshots: dependencies: map-or-similar: 1.5.0 - meow@6.1.1: - dependencies: - '@types/minimist': 1.2.5 - camelcase-keys: 6.2.2 - decamelize-keys: 1.1.1 - hard-rejection: 2.1.0 - minimist-options: 4.1.0 - normalize-package-data: 2.5.0 - read-pkg-up: 7.0.1 - redent: 3.0.0 - trim-newlines: 3.0.1 - type-fest: 0.13.1 - yargs-parser: 18.1.3 - merge-descriptors@1.0.3: {} merge-stream@2.0.0: {} @@ -25370,8 +25181,6 @@ snapshots: mimic-response@3.1.0: {} - min-indent@1.0.1: {} - miniflare@3.20240524.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): dependencies: '@cspotcode/source-map-support': 0.8.1 @@ -25411,12 +25220,6 @@ snapshots: dependencies: brace-expansion: 2.0.1 - minimist-options@4.1.0: - dependencies: - arrify: 1.0.1 - is-plain-obj: 1.1.0 - kind-of: 6.0.3 - minimist@1.2.8: {} minipass@3.3.6: @@ -25436,8 +25239,6 @@ snapshots: optionalDependencies: typescript: 5.3.3 - mixme@0.5.10: {} - mkdirp-classic@0.5.3: {} mkdirp@0.5.6: @@ -25813,6 +25614,8 @@ snapshots: package-json-from-dist@1.0.0: {} + package-manager-detector@0.2.2: {} + pako@0.2.9: {} pako@1.0.11: {} @@ -26063,13 +25866,6 @@ snapshots: preact@10.4.1: {} - preferred-pm@3.1.4: - dependencies: - find-up: 5.0.0 - find-yarn-workspace-root2: 1.2.16 - path-exists: 4.0.0 - which-pm: 2.2.0 - prelude-ls@1.2.1: {} prettier-linter-helpers@1.0.0: @@ -26262,8 +26058,6 @@ snapshots: quick-format-unescaped@4.0.4: {} - quick-lru@4.0.1: {} - quick-lru@5.1.1: {} radix3@1.1.2: {} @@ -26723,11 +26517,6 @@ snapshots: tiny-invariant: 1.3.3 tslib: 2.7.0 - redent@3.0.0: - dependencies: - indent-string: 4.0.0 - strip-indent: 3.0.0 - reflect.getprototypeof@1.0.6: dependencies: call-bind: 1.0.7 @@ -27150,15 +26939,6 @@ snapshots: smart-buffer@4.2.0: {} - smartwrap@2.0.2: - dependencies: - array.prototype.flat: 1.3.2 - breakword: 1.0.6 - grapheme-splitter: 1.0.4 - strip-ansi: 6.0.1 - wcwidth: 1.0.1 - yargs: 15.4.1 - socket.io-client@4.8.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): dependencies: '@socket.io/component-emitter': 3.1.2 @@ -27301,10 +27081,6 @@ snapshots: stream-shift@1.0.3: {} - stream-transform@2.1.3: - dependencies: - mixme: 0.5.10 - streamsearch@1.1.0: {} strict-uri-encode@2.0.0: {} @@ -27397,10 +27173,6 @@ snapshots: strip-final-newline@3.0.0: {} - strip-indent@3.0.0: - dependencies: - min-indent: 1.0.1 - strip-json-comments@3.1.1: {} strnum@1.0.5: {} @@ -27649,8 +27421,6 @@ snapshots: tree-kill@1.2.2: {} - trim-newlines@3.0.1: {} - ts-api-utils@1.3.0(typescript@5.3.3): dependencies: typescript: 5.3.3 @@ -27701,16 +27471,6 @@ snapshots: tty-browserify@0.0.1: {} - tty-table@4.2.3: - dependencies: - chalk: 4.1.2 - csv: 5.5.3 - kleur: 4.1.5 - smartwrap: 2.0.2 - strip-ansi: 6.0.1 - wcwidth: 1.0.1 - yargs: 17.7.2 - turbo-darwin-64@2.0.6-canary.0: optional: true @@ -27744,8 +27504,6 @@ snapshots: type-detect@4.0.8: {} - type-fest@0.13.1: {} - type-fest@0.16.0: {} type-fest@0.20.2: {} @@ -28488,11 +28246,6 @@ snapshots: which-module@2.0.1: {} - which-pm@2.2.0: - dependencies: - load-yaml-file: 0.2.0 - path-exists: 4.0.0 - which-typed-array@1.1.15: dependencies: available-typed-arrays: 1.0.7