From 4a88b07b7dca8fb9d516dd06180f8f81d629d625 Mon Sep 17 00:00:00 2001 From: Wenty Li Date: Mon, 27 Nov 2023 19:03:46 +0800 Subject: [PATCH] feat: Remove default `initialChainId` --- .changeset/config.json | 2 +- .changeset/unlucky-meals-eat.md | 6 + packages/walletkit/dev/App.tsx | 8 +- .../src/base/components/Modal/index.tsx | 11 +- .../src/base/components/Modal/styles.css.ts | 4 +- .../src/base/components/Transition/index.tsx | 4 +- .../components/Transition/modalSlide.css.ts | 29 ++ .../components/WalletKitProvider/index.tsx | 2 +- .../getDefaultProviderOptions.ts | 6 +- .../src/pages/SwitchNetwork/styles.css.ts | 2 +- pnpm-lock.yaml | 347 +----------------- 11 files changed, 70 insertions(+), 351 deletions(-) create mode 100644 .changeset/unlucky-meals-eat.md create mode 100644 packages/walletkit/src/base/components/Transition/modalSlide.css.ts diff --git a/.changeset/config.json b/.changeset/config.json index 80b65b01..22ae62bc 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -7,5 +7,5 @@ "access": "public", "baseBranch": "main", "updateInternalDependencies": "patch", - "ignore": ["example-nextjs", "example-vite", "example-test", "website"] + "ignore": ["example-nextjs", "example-vite", "website"] } diff --git a/.changeset/unlucky-meals-eat.md b/.changeset/unlucky-meals-eat.md new file mode 100644 index 00000000..f426b498 --- /dev/null +++ b/.changeset/unlucky-meals-eat.md @@ -0,0 +1,6 @@ +--- +'@totejs/walletkit': patch +--- + +Remove default `initialChainId` to support the case only connecting a wallet and not switching a +network. diff --git a/packages/walletkit/dev/App.tsx b/packages/walletkit/dev/App.tsx index ca5ecd40..2dd72ed6 100644 --- a/packages/walletkit/dev/App.tsx +++ b/packages/walletkit/dev/App.tsx @@ -39,18 +39,14 @@ const config = createConfig( mathWallet(), binanceWeb3Wallet(), coinbaseWallet(), - walletConnect({ - connectorOptions: { - showQrModal: true, - }, - }), tokenPocket(), + walletConnect(), ], }), ); const options: WalletKitOptions = { - initialChainId: 1, + // initialChainId: 204, }; export default function App() { diff --git a/packages/walletkit/src/base/components/Modal/index.tsx b/packages/walletkit/src/base/components/Modal/index.tsx index a81227b6..e0307991 100644 --- a/packages/walletkit/src/base/components/Modal/index.tsx +++ b/packages/walletkit/src/base/components/Modal/index.tsx @@ -5,6 +5,7 @@ import { Portal } from '../Portal'; import { Transition } from '../Transition'; import { clsModal, clsModalOverlay, clsModalContent } from './styles.css'; import { useScrollLock } from '@/base/hooks/useScrollLock'; +import { useResponsive } from '@/base/hooks/useResponsive'; export interface ModalProps extends BoxProps { isOpen: boolean; @@ -37,6 +38,8 @@ export function Modal(props: ModalProps) { useScrollLock(isOpen); + const { isMobileLayout } = useResponsive(); + return ( @@ -45,9 +48,11 @@ export function Modal(props: ModalProps) { className={cx('wk-modal-overlay', clsModalOverlay)} onClick={() => closeOnOverlayClick && onClose()} /> - - {children} - + + + {children} + + diff --git a/packages/walletkit/src/base/components/Modal/styles.css.ts b/packages/walletkit/src/base/components/Modal/styles.css.ts index 9ce5eeb9..72ad7788 100644 --- a/packages/walletkit/src/base/components/Modal/styles.css.ts +++ b/packages/walletkit/src/base/components/Modal/styles.css.ts @@ -38,9 +38,11 @@ export const clsModalContent = style({ borderRadius: cssVar('modal', 'radii'), '@media': mobile({ width: '100%', - maxWidth: 'unset', + maxWidth: '100vw', borderBottomLeftRadius: 0, borderBottomRightRadius: 0, paddingBottom: 40, + left: 0, + bottom: 0, }), }); diff --git a/packages/walletkit/src/base/components/Transition/index.tsx b/packages/walletkit/src/base/components/Transition/index.tsx index 8c7d8c1f..58b7d7c5 100644 --- a/packages/walletkit/src/base/components/Transition/index.tsx +++ b/packages/walletkit/src/base/components/Transition/index.tsx @@ -2,16 +2,18 @@ import React, { useEffect, useState } from 'react'; import { cx } from '@/base/utils/css'; import { clsFadeIn, clsFadeOut } from './fade.css'; import { clsToastSlideIn, clsToastSlideOut } from './toastSlide.css'; +import { clsModalSlideIn, clsModalSlideOut } from './modalSlide.css'; const animationMap = { fade: [clsFadeOut, clsFadeIn], 'toast-slide': [clsToastSlideOut, clsToastSlideIn], + 'modal-slide': [clsModalSlideOut, clsModalSlideIn], }; export interface TransitionProps { in: boolean; children: React.ReactElement; - variant?: 'fade' | 'toast-slide'; + variant?: keyof typeof animationMap; onExit?: () => void; } diff --git a/packages/walletkit/src/base/components/Transition/modalSlide.css.ts b/packages/walletkit/src/base/components/Transition/modalSlide.css.ts new file mode 100644 index 00000000..4c02aec5 --- /dev/null +++ b/packages/walletkit/src/base/components/Transition/modalSlide.css.ts @@ -0,0 +1,29 @@ +import { keyframes, style } from '@vanilla-extract/css'; + +const modalSlideInFrames = keyframes({ + '0%': { + transform: 'translateY(40%)', + }, + '100%': { + transform: 'translateY(0%)', + }, +}); + +const modalSlideOutFrames = keyframes({ + '0%': { + transform: 'translateY(0%)', + }, + '100%': { + transform: 'translateY(40%)', + }, +}); + +export const clsModalSlideIn = style({ + animation: `${modalSlideInFrames} 0.2s forwards ease-out`, + transformOrigin: 'bottom center', +}); + +export const clsModalSlideOut = style({ + animation: `${modalSlideOutFrames} 0.2s forwards ease-out`, + transformOrigin: 'bottom center', +}); diff --git a/packages/walletkit/src/components/WalletKitProvider/index.tsx b/packages/walletkit/src/components/WalletKitProvider/index.tsx index 4f6173ef..f34dc867 100644 --- a/packages/walletkit/src/components/WalletKitProvider/index.tsx +++ b/packages/walletkit/src/components/WalletKitProvider/index.tsx @@ -36,7 +36,7 @@ export const WalletKitProvider = (props: WalletKitProviderProps) => { const chains = useChains(); const value = useMemo(() => { - const finalOptions = getDefaultProviderOptions(options, chains); + const finalOptions = getDefaultProviderOptions(options); const finalChains = getDefaultSupportedChains(options, chains); const finalValue: WalletKitContextProps = { diff --git a/packages/walletkit/src/defaultConfig/getDefaultProviderOptions.ts b/packages/walletkit/src/defaultConfig/getDefaultProviderOptions.ts index 457ba585..19face56 100644 --- a/packages/walletkit/src/defaultConfig/getDefaultProviderOptions.ts +++ b/packages/walletkit/src/defaultConfig/getDefaultProviderOptions.ts @@ -1,13 +1,11 @@ import { toast } from '@/base/components/toast'; -import { Chain } from 'wagmi'; import { WalletKitOptions } from '..'; -export function getDefaultProviderOptions(options: WalletKitOptions, chains: Chain[]) { +export function getDefaultProviderOptions(options: WalletKitOptions) { const { ...restOptions } = options; const mergedOptions: WalletKitOptions = { - initialChainId: chains?.[0]?.id, - disclaimer: null, + disclaimer: undefined, chainsConfig: undefined, hideNoWalletCTA: false, diff --git a/packages/walletkit/src/pages/SwitchNetwork/styles.css.ts b/packages/walletkit/src/pages/SwitchNetwork/styles.css.ts index 90026dd9..99c98f8f 100644 --- a/packages/walletkit/src/pages/SwitchNetwork/styles.css.ts +++ b/packages/walletkit/src/pages/SwitchNetwork/styles.css.ts @@ -37,7 +37,7 @@ export const clsChains = style({ gap: 16, lineHeight: 1.5, width: '100%', - maxHeight: 320, + maxHeight: 360, }); export const clsOrSeparator = style({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b7cb2fdf..57ac11ba 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -76,43 +76,6 @@ importers: specifier: ^5.3.2 version: 5.3.2 - examples/test: - dependencies: - '@totejs/walletkit': - specifier: workspace:* - version: link:../../packages/walletkit - next: - specifier: ^13 - version: 13.5.6(react-dom@18.2.0)(react@18.2.0) - react: - specifier: ^18 - version: 18.2.0 - react-dom: - specifier: ^18 - version: 18.2.0(react@18.2.0) - vconsole: - specifier: ^3.15.1 - version: 3.15.1 - viem: - specifier: ^1.0.0 - version: 1.18.9(typescript@5.2.2) - wagmi: - specifier: ^1.0.0 - version: 1.4.6(@types/react@18.2.37)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.18.9) - devDependencies: - '@types/node': - specifier: ^20 - version: 20.9.0 - '@types/react': - specifier: ^18 - version: 18.2.37 - '@types/react-dom': - specifier: ^18 - version: 18.2.15 - typescript: - specifier: ^5 - version: 5.2.2 - examples/vite: dependencies: '@totejs/walletkit': @@ -125,29 +88,29 @@ importers: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) viem: - specifier: ^1.0.0 - version: 1.18.9(typescript@5.2.2) + specifier: ^1.19.8 + version: 1.19.8(typescript@5.3.2) wagmi: - specifier: ^1.0.0 - version: 1.4.6(@types/react@18.2.37)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.18.9) + specifier: ^1.4.7 + version: 1.4.7(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.2)(viem@1.19.8) devDependencies: '@types/react': - specifier: ^18.2.15 - version: 18.2.37 + specifier: ^18.2.38 + version: 18.2.38 '@types/react-dom': - specifier: ^18.2.7 - version: 18.2.15 + specifier: ^18.2.17 + version: 18.2.17 '@vitejs/plugin-react': - specifier: ^4.0.3 - version: 4.1.1(vite@4.5.0) + specifier: ^4.2.0 + version: 4.2.0(vite@4.5.0) typescript: - specifier: ^5.0.2 - version: 5.2.2 + specifier: ^5.3.2 + version: 5.3.2 vconsole: specifier: ^3.15.1 version: 3.15.1 vite: - specifier: ^4.4.5 + specifier: ^4.5.0 version: 4.5.0(@types/node@18.18.13) packages/walletkit: @@ -297,10 +260,6 @@ packages: /@adraffy/ens-normalize@1.10.0: resolution: {integrity: sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==} - /@adraffy/ens-normalize@1.9.4: - resolution: {integrity: sha512-UK0bHA7hh9cR39V+4gl2/NnBBjoXIxkuWAPCaY4X7fbH4L/azIi7ilWOCjMUYfpJgraLUAqkRi2BqrjME8Rynw==} - dev: false - /@ampproject/remapping@2.2.1: resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} engines: {node: '>=6.0.0'} @@ -2036,18 +1995,6 @@ packages: string-argv: 0.3.2 dev: true - /@safe-global/safe-apps-provider@0.17.1(typescript@5.2.2): - resolution: {integrity: sha512-lYfRqrbbK1aKU1/UGkYWc/X7PgySYcumXKc5FB2uuwAs2Ghj8uETuW5BrwPqyjBknRxutFbTv+gth/JzjxAhdQ==} - dependencies: - '@safe-global/safe-apps-sdk': 8.0.0(typescript@5.2.2) - events: 3.3.0 - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - dev: false - /@safe-global/safe-apps-provider@0.17.1(typescript@5.3.2): resolution: {integrity: sha512-lYfRqrbbK1aKU1/UGkYWc/X7PgySYcumXKc5FB2uuwAs2Ghj8uETuW5BrwPqyjBknRxutFbTv+gth/JzjxAhdQ==} dependencies: @@ -2059,18 +2006,6 @@ packages: - utf-8-validate - zod - /@safe-global/safe-apps-sdk@8.0.0(typescript@5.2.2): - resolution: {integrity: sha512-gYw0ki/EAuV1oSyMxpqandHjnthZjYYy+YWpTAzf8BqfXM3ItcZLpjxfg+3+mXW8HIO+3jw6T9iiqEXsqHaMMw==} - dependencies: - '@safe-global/safe-gateway-typescript-sdk': 3.13.2 - viem: 1.18.9(typescript@5.2.2) - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - dev: false - /@safe-global/safe-apps-sdk@8.0.0(typescript@5.3.2): resolution: {integrity: sha512-gYw0ki/EAuV1oSyMxpqandHjnthZjYYy+YWpTAzf8BqfXM3ItcZLpjxfg+3+mXW8HIO+3jw6T9iiqEXsqHaMMw==} dependencies: @@ -2082,18 +2017,6 @@ packages: - utf-8-validate - zod - /@safe-global/safe-apps-sdk@8.1.0(typescript@5.2.2): - resolution: {integrity: sha512-XJbEPuaVc7b9n23MqlF6c+ToYIS3f7P2Sel8f3cSBQ9WORE4xrSuvhMpK9fDSFqJ7by/brc+rmJR/5HViRr0/w==} - dependencies: - '@safe-global/safe-gateway-typescript-sdk': 3.13.2 - viem: 1.18.9(typescript@5.2.2) - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - dev: false - /@safe-global/safe-apps-sdk@8.1.0(typescript@5.3.2): resolution: {integrity: sha512-XJbEPuaVc7b9n23MqlF6c+ToYIS3f7P2Sel8f3cSBQ9WORE4xrSuvhMpK9fDSFqJ7by/brc+rmJR/5HViRr0/w==} dependencies: @@ -2486,12 +2409,6 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.9.0: - resolution: {integrity: sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==} - dependencies: - undici-types: 5.26.5 - dev: true - /@types/normalize-package-data@2.4.4: resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} dev: true @@ -2500,9 +2417,6 @@ packages: resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==} dev: false - /@types/prop-types@15.7.10: - resolution: {integrity: sha512-mxSnDQxPqsZxmeShFH+uwQ4kO4gcJcGahjjMFeLbKE95IAZiiZyiEepGZjtXJ7hN/yfu0bu9xN2ajcU0JcxX6A==} - /@types/prop-types@15.7.11: resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==} @@ -2512,25 +2426,12 @@ packages: '@types/node': 20.10.0 dev: true - /@types/react-dom@18.2.15: - resolution: {integrity: sha512-HWMdW+7r7MR5+PZqJF6YFNSCtjz1T0dsvo/f1BV6HkV+6erD/nA7wd9NM00KVG83zf2nJ7uATPO9ttdIPvi3gg==} - dependencies: - '@types/react': 18.2.37 - dev: true - /@types/react-dom@18.2.17: resolution: {integrity: sha512-rvrT/M7Df5eykWFxn6MYt5Pem/Dbyc1N8Y0S9Mrkw2WFCRiqUgw9P7ul2NpwsXCSM1DVdENzdG9J5SreqfAIWg==} dependencies: '@types/react': 18.2.38 dev: true - /@types/react@18.2.37: - resolution: {integrity: sha512-RGAYMi2bhRgEXT3f4B92WTohopH6bIXw05FuGlmJEnv/omEn190+QYEIYxIAuIBdKgboYYdVved2p1AxZVQnaw==} - dependencies: - '@types/prop-types': 15.7.10 - '@types/scheduler': 0.16.6 - csstype: 3.1.2 - /@types/react@18.2.38: resolution: {integrity: sha512-cBBXHzuPtQK6wNthuVMV6IjHAFkdl/FOPFIlkd81/Cd1+IqkHu/A+w4g43kaQQoYHik/ruaQBDL72HyCy1vuMw==} dependencies: @@ -2542,9 +2443,6 @@ packages: resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} dev: true - /@types/scheduler@0.16.6: - resolution: {integrity: sha512-Vlktnchmkylvc9SnwwwozTv04L/e1NykF5vgoQ0XTmI8DD+wxfjQuHuvHS3p0r2jz2x2ghPs2h1FVeDirIteWA==} - /@types/scheduler@0.16.8: resolution: {integrity: sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==} @@ -2785,7 +2683,7 @@ packages: '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.23.3) '@types/babel__core': 7.20.5 react-refresh: 0.14.0 - vite: 4.5.0(@types/node@18.18.13) + vite: 4.5.0(@types/node@18.6.5) transitivePeerDependencies: - supports-color dev: true @@ -2864,39 +2762,6 @@ packages: resolution: {integrity: sha512-8PGwybFwM4x8pcfgqEQFy70NaQxASvOC5DJwLQfpArw1UDfUXrJkdxD3BhVTMS+0Lef/TU7YO0Jvr0jJY8T+mw==} dev: true - /@wagmi/connectors@3.1.4(@types/react@18.2.37)(react@18.2.0)(typescript@5.2.2)(viem@1.18.9): - resolution: {integrity: sha512-DrYPXByoP9o+xko9R6whKz1cjaJ7HZ+9P27WkW7bhYUWU/sPeDZAvWiLmPwNAhQy8U7A/teAxyUtbExaOdc8zw==} - peerDependencies: - typescript: '>=5.0.4' - viem: '>=0.3.35' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@coinbase/wallet-sdk': 3.7.2 - '@ledgerhq/connect-kit-loader': 1.1.2 - '@safe-global/safe-apps-provider': 0.17.1(typescript@5.2.2) - '@safe-global/safe-apps-sdk': 8.1.0(typescript@5.2.2) - '@walletconnect/ethereum-provider': 2.10.2(@walletconnect/modal@2.6.2) - '@walletconnect/legacy-provider': 2.0.0 - '@walletconnect/modal': 2.6.2(@types/react@18.2.37)(react@18.2.0) - '@walletconnect/utils': 2.10.2 - abitype: 0.8.7(typescript@5.2.2) - eventemitter3: 4.0.7 - typescript: 5.2.2 - viem: 1.18.9(typescript@5.2.2) - transitivePeerDependencies: - - '@react-native-async-storage/async-storage' - - '@types/react' - - bufferutil - - encoding - - lokijs - - react - - supports-color - - utf-8-validate - - zod - dev: false - /@wagmi/connectors@3.1.5(@types/react@18.2.38)(react@18.2.0)(typescript@5.3.2)(viem@1.19.8): resolution: {integrity: sha512-aE4rWZbivqWa9HqjiLDPtwROH2b1Az+lBVMeZ3o/aFxGNGNEkdrSAMOUG15/UFy3VnN6HqGOtTobOBZ10JhfNQ==} peerDependencies: @@ -2929,34 +2794,6 @@ packages: - utf-8-validate - zod - /@wagmi/core@1.4.6(@types/react@18.2.37)(react@18.2.0)(typescript@5.2.2)(viem@1.18.9): - resolution: {integrity: sha512-6SYcRZulzVNXCZ77EtJ7WfqirmMR+Svb5H/3Lqh0sDGwuW9kdH9G3hBDLf8LMJ1ImiWFsSDR5cl2qo7ZreYllA==} - peerDependencies: - typescript: '>=5.0.4' - viem: '>=0.3.35' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@wagmi/connectors': 3.1.4(@types/react@18.2.37)(react@18.2.0)(typescript@5.2.2)(viem@1.18.9) - abitype: 0.8.7(typescript@5.2.2) - eventemitter3: 4.0.7 - typescript: 5.2.2 - viem: 1.18.9(typescript@5.2.2) - zustand: 4.4.6(@types/react@18.2.37)(react@18.2.0) - transitivePeerDependencies: - - '@react-native-async-storage/async-storage' - - '@types/react' - - bufferutil - - encoding - - immer - - lokijs - - react - - supports-color - - utf-8-validate - - zod - dev: false - /@wagmi/core@1.4.7(@types/react@18.2.38)(react@18.2.0)(typescript@5.3.2)(viem@1.19.8): resolution: {integrity: sha512-PiOIGni8ArQoPmuDylHX38zMt2nPnTYRIluIqiduKyGCM61X/tf10a0rafUMOOphDPudZu1TacNDhCSeoh/LEA==} peerDependencies: @@ -3183,15 +3020,6 @@ packages: pino: 7.11.0 tslib: 1.14.1 - /@walletconnect/modal-core@2.6.2(@types/react@18.2.37)(react@18.2.0): - resolution: {integrity: sha512-cv8ibvdOJQv2B+nyxP9IIFdxvQznMz8OOr/oR/AaUZym4hjXNL/l1a2UlSQBXrVjo3xxbouMxLb3kBsHoYP2CA==} - dependencies: - valtio: 1.11.2(@types/react@18.2.37)(react@18.2.0) - transitivePeerDependencies: - - '@types/react' - - react - dev: false - /@walletconnect/modal-core@2.6.2(@types/react@18.2.38)(react@18.2.0): resolution: {integrity: sha512-cv8ibvdOJQv2B+nyxP9IIFdxvQznMz8OOr/oR/AaUZym4hjXNL/l1a2UlSQBXrVjo3xxbouMxLb3kBsHoYP2CA==} dependencies: @@ -3200,18 +3028,6 @@ packages: - '@types/react' - react - /@walletconnect/modal-ui@2.6.2(@types/react@18.2.37)(react@18.2.0): - resolution: {integrity: sha512-rbdstM1HPGvr7jprQkyPggX7rP4XiCG85ZA+zWBEX0dVQg8PpAgRUqpeub4xQKDgY7pY/xLRXSiCVdWGqvG2HA==} - dependencies: - '@walletconnect/modal-core': 2.6.2(@types/react@18.2.37)(react@18.2.0) - lit: 2.8.0 - motion: 10.16.2 - qrcode: 1.5.3 - transitivePeerDependencies: - - '@types/react' - - react - dev: false - /@walletconnect/modal-ui@2.6.2(@types/react@18.2.38)(react@18.2.0): resolution: {integrity: sha512-rbdstM1HPGvr7jprQkyPggX7rP4XiCG85ZA+zWBEX0dVQg8PpAgRUqpeub4xQKDgY7pY/xLRXSiCVdWGqvG2HA==} dependencies: @@ -3223,16 +3039,6 @@ packages: - '@types/react' - react - /@walletconnect/modal@2.6.2(@types/react@18.2.37)(react@18.2.0): - resolution: {integrity: sha512-eFopgKi8AjKf/0U4SemvcYw9zlLpx9njVN8sf6DAkowC2Md0gPU/UNEbH1Wwj407pEKnEds98pKWib1NN1ACoA==} - dependencies: - '@walletconnect/modal-core': 2.6.2(@types/react@18.2.37)(react@18.2.0) - '@walletconnect/modal-ui': 2.6.2(@types/react@18.2.37)(react@18.2.0) - transitivePeerDependencies: - - '@types/react' - - react - dev: false - /@walletconnect/modal@2.6.2(@types/react@18.2.38)(react@18.2.0): resolution: {integrity: sha512-eFopgKi8AjKf/0U4SemvcYw9zlLpx9njVN8sf6DAkowC2Md0gPU/UNEbH1Wwj407pEKnEds98pKWib1NN1ACoA==} dependencies: @@ -3369,18 +3175,6 @@ packages: jsonparse: 1.3.1 through: 2.3.8 - /abitype@0.8.7(typescript@5.2.2): - resolution: {integrity: sha512-wQ7hV8Yg/yKmGyFpqrNZufCxbszDe5es4AZGYPBitocfSqXtjrTG9JMWFcc4N30ukl2ve48aBTwt7NJxVQdU3w==} - peerDependencies: - typescript: '>=5.0.4' - zod: ^3 >=3.19.1 - peerDependenciesMeta: - zod: - optional: true - dependencies: - typescript: 5.2.2 - dev: false - /abitype@0.8.7(typescript@5.3.2): resolution: {integrity: sha512-wQ7hV8Yg/yKmGyFpqrNZufCxbszDe5es4AZGYPBitocfSqXtjrTG9JMWFcc4N30ukl2ve48aBTwt7NJxVQdU3w==} peerDependencies: @@ -3392,20 +3186,6 @@ packages: dependencies: typescript: 5.3.2 - /abitype@0.9.8(typescript@5.2.2): - resolution: {integrity: sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==} - peerDependencies: - typescript: '>=5.0.4' - zod: ^3 >=3.19.1 - peerDependenciesMeta: - typescript: - optional: true - zod: - optional: true - dependencies: - typescript: 5.2.2 - dev: false - /abitype@0.9.8(typescript@5.3.2): resolution: {integrity: sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==} peerDependencies: @@ -7862,11 +7642,6 @@ packages: hasBin: true dev: true - /typescript@5.2.2: - resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} - engines: {node: '>=14.17'} - hasBin: true - /typescript@5.3.2: resolution: {integrity: sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==} engines: {node: '>=14.17'} @@ -8060,24 +7835,6 @@ packages: engines: {node: '>= 0.10'} dev: true - /valtio@1.11.2(@types/react@18.2.37)(react@18.2.0): - resolution: {integrity: sha512-1XfIxnUXzyswPAPXo1P3Pdx2mq/pIqZICkWN60Hby0d9Iqb+MEIpqgYVlbflvHdrp2YR/q3jyKWRPJJ100yxaw==} - engines: {node: '>=12.20.0'} - peerDependencies: - '@types/react': '>=16.8' - react: '>=16.8' - peerDependenciesMeta: - '@types/react': - optional: true - react: - optional: true - dependencies: - '@types/react': 18.2.37 - proxy-compare: 2.5.1 - react: 18.2.0 - use-sync-external-store: 1.2.0(react@18.2.0) - dev: false - /valtio@1.11.2(@types/react@18.2.38)(react@18.2.0): resolution: {integrity: sha512-1XfIxnUXzyswPAPXo1P3Pdx2mq/pIqZICkWN60Hby0d9Iqb+MEIpqgYVlbflvHdrp2YR/q3jyKWRPJJ100yxaw==} engines: {node: '>=12.20.0'} @@ -8117,29 +7874,6 @@ packages: unist-util-stringify-position: 3.0.3 vfile-message: 3.1.4 - /viem@1.18.9(typescript@5.2.2): - resolution: {integrity: sha512-eAXtoTwAFA3YEgjTYMb5ZTQrDC0UPx5qyZ4sv90TirVKepcM9mBPksTkC1SSWya0UdxhBmhEBL/CiYMjmGCTWg==} - peerDependencies: - typescript: '>=5.0.4' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@adraffy/ens-normalize': 1.9.4 - '@noble/curves': 1.2.0 - '@noble/hashes': 1.3.2 - '@scure/bip32': 1.3.2 - '@scure/bip39': 1.2.1 - abitype: 0.9.8(typescript@5.2.2) - isows: 1.0.3(ws@8.13.0) - typescript: 5.2.2 - ws: 8.13.0 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - zod - dev: false - /viem@1.19.8(typescript@5.3.2): resolution: {integrity: sha512-AgoZcLej7u4Zw/ojDsDWfonPSoz07EirrvXVndAMG78ikHf7VnRbxkFACAFg2SgNbCXmr5+ePHpgd53dMVIZ4Q==} peerDependencies: @@ -8305,39 +8039,6 @@ packages: typescript: 5.3.2 dev: true - /wagmi@1.4.6(@types/react@18.2.37)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.18.9): - resolution: {integrity: sha512-A5Kryru0QT8E+dpkw83uDbfuGgyR1GdGzay2TALI7sf2kqVair8N0DuCj7ohrCStLRY1oAibXWGolRrmce4psg==} - peerDependencies: - react: '>=17.0.0' - typescript: '>=5.0.4' - viem: '>=0.3.35' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@tanstack/query-sync-storage-persister': 4.36.1 - '@tanstack/react-query': 4.36.1(react-dom@18.2.0)(react@18.2.0) - '@tanstack/react-query-persist-client': 4.36.1(@tanstack/react-query@4.36.1) - '@wagmi/core': 1.4.6(@types/react@18.2.37)(react@18.2.0)(typescript@5.2.2)(viem@1.18.9) - abitype: 0.8.7(typescript@5.2.2) - react: 18.2.0 - typescript: 5.2.2 - use-sync-external-store: 1.2.0(react@18.2.0) - viem: 1.18.9(typescript@5.2.2) - transitivePeerDependencies: - - '@react-native-async-storage/async-storage' - - '@types/react' - - bufferutil - - encoding - - immer - - lokijs - - react-dom - - react-native - - supports-color - - utf-8-validate - - zod - dev: false - /wagmi@1.4.7(@types/react@18.2.38)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.2)(viem@1.19.8): resolution: {integrity: sha512-/k8gA9S6RnwU6Qroxs630jAFvRIx+DSKpCP1owgAEGWc7D2bAJHljwRSCRTGENz48HyJ4V3R7KYV1yImxPvM3A==} peerDependencies: @@ -8608,26 +8309,6 @@ packages: commander: 9.5.0 dev: true - /zustand@4.4.6(@types/react@18.2.37)(react@18.2.0): - resolution: {integrity: sha512-Rb16eW55gqL4W2XZpJh0fnrATxYEG3Apl2gfHTyDSE965x/zxslTikpNch0JgNjJA9zK6gEFW8Fl6d1rTZaqgg==} - engines: {node: '>=12.7.0'} - peerDependencies: - '@types/react': '>=16.8' - immer: '>=9.0' - react: '>=16.8' - peerDependenciesMeta: - '@types/react': - optional: true - immer: - optional: true - react: - optional: true - dependencies: - '@types/react': 18.2.37 - react: 18.2.0 - use-sync-external-store: 1.2.0(react@18.2.0) - dev: false - /zustand@4.4.6(@types/react@18.2.38)(react@18.2.0): resolution: {integrity: sha512-Rb16eW55gqL4W2XZpJh0fnrATxYEG3Apl2gfHTyDSE965x/zxslTikpNch0JgNjJA9zK6gEFW8Fl6d1rTZaqgg==} engines: {node: '>=12.7.0'}