From 0a8b16831113c6a9bf23ab8dfe656398735723fe Mon Sep 17 00:00:00 2001 From: Evgeny Taktarov Date: Mon, 28 Oct 2024 13:45:33 +0900 Subject: [PATCH 1/4] feat: rework demo app and dep versions --- .../components/walletModal/walletModal.tsx | 47 +- apps/demo-react/hooks/useToken.ts | 27 - apps/demo-react/package.json | 7 +- apps/demo-react/providers/sdk-legacy.tsx | 107 ---- apps/demo-react/providers/sdk.tsx | 62 ++- apps/demo-react/providers/web3.tsx | 9 +- packages/connect-wallet-modal/package.json | 8 +- .../connectors/ledger-connector/package.json | 8 +- packages/core-react/package.json | 8 +- packages/reef-knot/package.json | 4 +- packages/types/package.json | 4 +- packages/ui-react/package.json | 4 +- packages/wallets-helpers/package.json | 4 +- packages/wallets/ambire/package.json | 2 +- packages/wallets/binance-wallet/package.json | 2 +- packages/wallets/bitkeep/package.json | 2 +- packages/wallets/brave/package.json | 2 +- .../wallets/browserExtension/package.json | 2 +- packages/wallets/coin98/package.json | 2 +- .../coinbase-smart-wallet/package.json | 2 +- packages/wallets/coinbase/package.json | 2 +- .../wallets/dappBrowserInjected/package.json | 2 +- packages/wallets/exodus/package.json | 2 +- packages/wallets/imtoken/package.json | 2 +- packages/wallets/ledger-hid/package.json | 2 +- packages/wallets/ledger-live/package.json | 2 +- packages/wallets/metamask/package.json | 2 +- packages/wallets/okx/package.json | 2 +- packages/wallets/phantom/package.json | 2 +- packages/wallets/safe/package.json | 4 +- packages/wallets/trust/package.json | 2 +- packages/wallets/walletconnect/package.json | 2 +- packages/wallets/xdefi/package.json | 2 +- packages/web3-react/package.json | 2 +- yarn.lock | 515 +++++++----------- 35 files changed, 326 insertions(+), 532 deletions(-) delete mode 100644 apps/demo-react/hooks/useToken.ts delete mode 100644 apps/demo-react/providers/sdk-legacy.tsx diff --git a/apps/demo-react/components/walletModal/walletModal.tsx b/apps/demo-react/components/walletModal/walletModal.tsx index d1bc8966..3db00972 100644 --- a/apps/demo-react/components/walletModal/walletModal.tsx +++ b/apps/demo-react/components/walletModal/walletModal.tsx @@ -6,9 +6,10 @@ import { Identicon, External, Copy, + Select, + Option, } from '@lidofinance/lido-ui'; -import { useEtherscanOpen } from '@lido-sdk/react'; -import { useWeb3 } from 'reef-knot/web3-react'; + import { useForceDisconnect, useConnectorInfo } from 'reef-knot/core-react'; import { useCopyToClipboard } from 'hooks/useCopyToClipboard'; import { FC, useCallback } from 'react'; @@ -21,10 +22,19 @@ import { WalletModalAddressStyle, WalletModalActionsStyle, } from './walletModalStyles'; +import { usePublicClient } from 'wagmi'; +import { useAccount } from 'wagmi'; +import { useChainId } from 'wagmi'; +import { useSwitchChain } from 'wagmi'; +import { useConnections } from 'wagmi'; const WalletModal: FC = (props) => { const { onClose } = props; - const { account } = useWeb3(); + const chainId = useChainId(); + const [connection] = useConnections(); + const { chains, switchChain } = useSwitchChain(); + const { address } = useAccount(); + const client = usePublicClient(); const { connectorName } = useConnectorInfo(); const { forceDisconnect } = useForceDisconnect(); const handleDisconnect = useCallback(() => { @@ -32,9 +42,15 @@ const WalletModal: FC = (props) => { onClose?.(); }, [onClose, forceDisconnect]); - const handleCopy = useCopyToClipboard(account ?? ''); - const handleEtherscan = useEtherscanOpen(account ?? '', 'address'); + const handleCopy = useCopyToClipboard(address ?? ''); + const handleEtherscan = () => { + if (address && client) { + window.open( + `${client.chain.blockExplorers?.default.url}/address/${address}`, + ); + } + }; return ( @@ -57,12 +73,29 @@ const WalletModal: FC = (props) => { - + -
+
+ + + + { - const wstethContractWeb3 = useWSTETHContractWeb3(); - const stethContractWeb3 = useSTETHContractWeb3(); - const stethBalance = useSTETHBalance(); - const wstethBalance = useWSTETHBalance(); - const isSteth = selectedToken === TOKENS.STETH; - const tokenContract = isSteth ? stethContractWeb3 : wstethContractWeb3; - const tokenBalance = isSteth ? stethBalance.data : wstethBalance.data; - - return useMemo(() => { - return { - token: selectedToken, - tokenContract, - tokenBalance, - } as const; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [selectedToken, tokenContract, tokenBalance]); -}; diff --git a/apps/demo-react/package.json b/apps/demo-react/package.json index 94707d32..b987ba77 100644 --- a/apps/demo-react/package.json +++ b/apps/demo-react/package.json @@ -15,9 +15,8 @@ "@ethersproject/constants": "^5.7.0", "@ethersproject/providers": "^5.7.2", "@lido-sdk/constants": "^3.2.1", - "@lido-sdk/providers": "^1.4.14", "@lido-sdk/react": "2.0.2", - "@lidofinance/lido-ethereum-sdk": "3.5.0-alpha.3", + "@lidofinance/lido-ethereum-sdk": "^4.0.0", "@lidofinance/lido-ui": "^3.18.0", "@svgr/webpack": "^8.0.1", "@tanstack/react-query": "^5.29.0", @@ -33,8 +32,8 @@ "swr": "^2.2.5", "tiny-invariant": "^1.3.1", "url-loader": "^4.1.1", - "viem": "2.13.3", - "wagmi": "2.11.2" + "viem": "2.21.35", + "wagmi": "2.12.25" }, "devDependencies": { "@babel/core": "^7.0.0", diff --git a/apps/demo-react/providers/sdk-legacy.tsx b/apps/demo-react/providers/sdk-legacy.tsx deleted file mode 100644 index 953a469a..00000000 --- a/apps/demo-react/providers/sdk-legacy.tsx +++ /dev/null @@ -1,107 +0,0 @@ -import React, { useEffect, useMemo, useState } from 'react'; -import { ProviderSDK } from '@lido-sdk/react'; -import { getStaticRpcBatchProvider } from '@lido-sdk/providers'; -import { Web3Provider } from '@ethersproject/providers'; -import { useAccount, useClient, useConfig } from 'wagmi'; -import { Chain, mainnet } from 'wagmi/chains'; -import { useWeb3 } from 'reef-knot/web3-react'; - -const POLLING_INTERVAL = 12_000; - -export const SDKLegacyProvider = (props: { - children?: React.ReactNode; - defaultChainId: number; - supportedChains: Chain[]; - rpc: Record; - pollingInterval?: number; -}) => { - const { - children, - defaultChainId, - rpc, - supportedChains, - pollingInterval = POLLING_INTERVAL, - } = props; - const { chainId = defaultChainId, account } = useWeb3(); - const { connector, isConnected } = useAccount(); - const config = useConfig(); - const client = useClient(); - - const [providerWeb3, setProviderWeb3] = useState(); - - useEffect(() => { - let isHookMounted = true; - - const getProviderTransport = async () => { - const { state } = config; - if (!state.current) return client?.transport; - const connector = state.connections.get(state.current)?.connector; - if (!connector) return client?.transport; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const provider: any = await connector.getProvider(); - return provider || client?.transport; - }; - - const getProviderValue = async () => { - if (!client || !account || !isConnected) return undefined; - const { chain } = client; - const providerTransport = await getProviderTransport(); - - // https://wagmi.sh/core/guides/ethers#reference-implementation-1 - const provider = new Web3Provider(providerTransport, { - chainId: chain.id, - name: chain.name, - ensAddress: chain.contracts?.ensRegistry?.address, - }); - provider.pollingInterval = POLLING_INTERVAL; - - return provider; - }; - - const getProviderAndSet = async () => { - const provider = await getProviderValue(); - if (isHookMounted) setProviderWeb3(provider); - }; - - void getProviderAndSet(); - - return () => { - isHookMounted = false; - }; - }, [config.state, client, account, config, isConnected]); - - const supportedChainIds = useMemo( - () => supportedChains.map((chain) => chain.id), - [supportedChains], - ); - - const providerRpc = useMemo( - () => getStaticRpcBatchProvider(chainId, rpc[chainId], 0, pollingInterval), - [chainId, rpc, pollingInterval], - ); - - const providerMainnetRpc = useMemo( - () => - getStaticRpcBatchProvider( - mainnet.id, - rpc[mainnet.id], - 0, - POLLING_INTERVAL, - ), - [rpc], - ); - - return ( - // @ts-expect-error Property children does not exist on type - - {children} - - ); -}; diff --git a/apps/demo-react/providers/sdk.tsx b/apps/demo-react/providers/sdk.tsx index 92efa9b2..0c0e5a9f 100644 --- a/apps/demo-react/providers/sdk.tsx +++ b/apps/demo-react/providers/sdk.tsx @@ -1,11 +1,21 @@ -import { createContext, useMemo, PropsWithChildren, useContext } from 'react'; -import { useSDK } from '@lido-sdk/react'; - -import { createWalletClient, custom } from 'viem'; +import { + createContext, + useMemo, + PropsWithChildren, + useContext, + useEffect, +} from 'react'; import { LidoSDK } from '@lidofinance/lido-ethereum-sdk'; import invariant from 'tiny-invariant'; -import { getBackendRPCPath } from 'config'; +import { + useWalletClient, + usePublicClient, + useAccount, + useConfig, + useSwitchChain, +} from 'wagmi'; +import { useClientConfig } from './client-config'; const context = createContext(null); @@ -16,25 +26,41 @@ export const useLidoSDK = () => { }; export const LidoSDKProvider: React.FC = ({ children }) => { - const { providerWeb3, chainId, account } = useSDK(); - const value = useMemo(() => { - const client = - providerWeb3 && account - ? createWalletClient({ - transport: custom(providerWeb3.provider as any), - }) - : undefined; + const { defaultChain: defaultChainId } = useClientConfig(); + const { data: walletClient } = useWalletClient(); + const publicClient = usePublicClient(); + // reset internal wagmi state after disconnect + const { isConnected } = useAccount(); + + const wagmiConfig = useConfig(); + const { switchChain } = useSwitchChain(); + useEffect(() => { + if (isConnected) { + return () => { + // protecs from side effect double run + if (!wagmiConfig.state.current) { + switchChain({ + chainId: defaultChainId, + }); + } + }; + } + }, [isConnected]); + + const contextValue = useMemo(() => { + // @ts-expect-error: typing (viem + LidoSDK) const sdk = new LidoSDK({ - chainId: chainId as any, - rpcUrls: [getBackendRPCPath(chainId)], - web3Provider: client as any, + chainId: publicClient!.chain.id, logMode: 'none', + rpcProvider: publicClient, + web3Provider: walletClient, }); // inject lido_sdk for console access if (typeof window !== 'undefined') (window as any).lido_sdk = sdk; + return sdk; - }, [providerWeb3, chainId, account]); + }, [publicClient, walletClient]); - return {children}; + return {children}; }; diff --git a/apps/demo-react/providers/web3.tsx b/apps/demo-react/providers/web3.tsx index 4307552b..0ea9a101 100644 --- a/apps/demo-react/providers/web3.tsx +++ b/apps/demo-react/providers/web3.tsx @@ -12,7 +12,6 @@ import { CHAINS } from '@lido-sdk/constants'; import { getBackendRPCPath } from 'config'; import { useClientConfig } from 'providers/client-config'; -import { SDKLegacyProvider } from './sdk-legacy'; type ChainsList = [wagmiChains.Chain, ...wagmiChains.Chain[]]; @@ -89,13 +88,7 @@ const Web3Provider: FC = ({ children }) => { walletDataList={walletsDataList} > {isWalletConnectionAllowed && } - - {children} - + {children} diff --git a/packages/connect-wallet-modal/package.json b/packages/connect-wallet-modal/package.json index 8895a1be..df2c0498 100644 --- a/packages/connect-wallet-modal/package.json +++ b/packages/connect-wallet-modal/package.json @@ -55,8 +55,8 @@ "eslint-config-custom": "*", "react": "18.2.0", "react-dom": "^18.2.0", - "viem": "2.13.3", - "wagmi": "2.11.2" + "viem": "2.21.35", + "wagmi": "2.12.25" }, "peerDependencies": { "@reef-knot/core-react": "^4.0.0", @@ -67,8 +67,8 @@ "@reef-knot/ledger-connector": "^4.0.0", "react": ">=18", "@lidofinance/lido-ui": "^3.18.0", - "viem": "2.13.3", - "wagmi": "2.11.2", + "viem": ">=2.21", + "wagmi": ">=2.12", "@tanstack/react-query": "^5.29.0" } } diff --git a/packages/connectors/ledger-connector/package.json b/packages/connectors/ledger-connector/package.json index 8845d848..e1f8f7d1 100644 --- a/packages/connectors/ledger-connector/package.json +++ b/packages/connectors/ledger-connector/package.json @@ -33,8 +33,8 @@ }, "devDependencies": { "@types/w3c-web-hid": "^1.0.2", - "viem": "2.13.3", - "wagmi": "2.11.2", + "viem": "2.21.35", + "wagmi": "2.12.25", "eslint-config-custom": "*" }, "dependencies": { @@ -56,8 +56,8 @@ "tiny-invariant": "^1.2.0" }, "peerDependencies": { - "viem": "2.13.3", - "wagmi": "2.11.2", + "viem": ">=2.21", + "wagmi": ">=2.12", "@tanstack/react-query": "^5.29.0" } } diff --git a/packages/core-react/package.json b/packages/core-react/package.json index 99bea2f6..9e2cc6a3 100644 --- a/packages/core-react/package.json +++ b/packages/core-react/package.json @@ -44,8 +44,8 @@ "@reef-knot/wallets-helpers": "^2.1.0", "eslint-config-custom": "*", "react": "18.2.0", - "viem": "2.13.3", - "wagmi": "2.11.2", + "viem": "2.21.35", + "wagmi": "2.12.25", "mipd": "0.0.7" }, "peerDependencies": { @@ -55,8 +55,8 @@ "@reef-knot/ui-react": "^2.1.3", "@reef-knot/wallets-helpers": "^2.0.2", "react": ">=18", - "viem": "2.13.3", - "wagmi": "2.11.2", + "viem": ">=2.21", + "wagmi": ">=2.12", "@tanstack/react-query": "^5.29.0" } } diff --git a/packages/reef-knot/package.json b/packages/reef-knot/package.json index 4bb0329d..2bb4ff64 100644 --- a/packages/reef-knot/package.json +++ b/packages/reef-knot/package.json @@ -56,8 +56,8 @@ "react": ">=18", "react-dom": ">=18", "styled-components": "^5.3.5", - "viem": "2.13.3", - "wagmi": "2.11.2" + "viem": ">=2.21", + "wagmi": ">=2.12" }, "devDependencies": { "eslint-config-custom": "*" diff --git a/packages/types/package.json b/packages/types/package.json index d7c3812a..ac418ef4 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -27,11 +27,11 @@ }, "devDependencies": { "react": "18.2.0", - "wagmi": "2.11.2" + "wagmi": ">=2.12" }, "peerDependencies": { "react": ">=18", - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@tanstack/react-query": "^5.29.0" } } diff --git a/packages/ui-react/package.json b/packages/ui-react/package.json index d23b2949..ded3b902 100644 --- a/packages/ui-react/package.json +++ b/packages/ui-react/package.json @@ -48,7 +48,7 @@ "react": ">=18", "react-dom": ">=18", "styled-components": "5", - "wagmi": "2.11.2" + "wagmi": ">=2.12" }, "devDependencies": { "@types/react-transition-group": "4.4.2", @@ -56,7 +56,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "styled-components": "^5.3.6", - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@tanstack/react-query": "^5.29.0" } } diff --git a/packages/wallets-helpers/package.json b/packages/wallets-helpers/package.json index b61e66bf..a614365a 100644 --- a/packages/wallets-helpers/package.json +++ b/packages/wallets-helpers/package.json @@ -42,11 +42,11 @@ }, "devDependencies": { "eslint-config-custom": "*", - "wagmi": "2.11.2" + "wagmi": ">=2.12" }, "peerDependencies": { "react": ">=18", - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@tanstack/react-query": "^5.29.0" } } diff --git a/packages/wallets/ambire/package.json b/packages/wallets/ambire/package.json index 729d8e38..e2183a92 100644 --- a/packages/wallets/ambire/package.json +++ b/packages/wallets/ambire/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/wallets-helpers": "^2.0.0", "@reef-knot/types": "^2.0.0", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/binance-wallet/package.json b/packages/wallets/binance-wallet/package.json index 1b26848b..cce6240c 100644 --- a/packages/wallets/binance-wallet/package.json +++ b/packages/wallets/binance-wallet/package.json @@ -40,7 +40,7 @@ "peerDependencies": { "@reef-knot/types": "^2.0.0", "@reef-knot/wallets-helpers": "^2.0.0", - "wagmi": "2.10.2" + "wagmi": ">=2.12" }, "dependencies": { "@binance/w3w-wagmi-connector-v2": "^1.2.3", diff --git a/packages/wallets/bitkeep/package.json b/packages/wallets/bitkeep/package.json index ab84e56d..673350f6 100644 --- a/packages/wallets/bitkeep/package.json +++ b/packages/wallets/bitkeep/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.1", "@reef-knot/wallets-helpers": "^2.0.2", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/brave/package.json b/packages/wallets/brave/package.json index 08dcb078..7603efdf 100644 --- a/packages/wallets/brave/package.json +++ b/packages/wallets/brave/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.1", "@reef-knot/wallets-helpers": "^2.0.2", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/browserExtension/package.json b/packages/wallets/browserExtension/package.json index 8b60514e..ae6217f4 100644 --- a/packages/wallets/browserExtension/package.json +++ b/packages/wallets/browserExtension/package.json @@ -37,7 +37,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.0", "@tanstack/react-query": "^5.29.0" } diff --git a/packages/wallets/coin98/package.json b/packages/wallets/coin98/package.json index ac680bc3..f418f5e9 100644 --- a/packages/wallets/coin98/package.json +++ b/packages/wallets/coin98/package.json @@ -37,7 +37,7 @@ "@svgr/rollup": "^6.5.1" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.1", "@reef-knot/wallets-helpers": "^2.0.2", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/coinbase-smart-wallet/package.json b/packages/wallets/coinbase-smart-wallet/package.json index 649aecd9..d55a9aa8 100644 --- a/packages/wallets/coinbase-smart-wallet/package.json +++ b/packages/wallets/coinbase-smart-wallet/package.json @@ -37,7 +37,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.10.4", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.0", "@tanstack/react-query": "^5.29.0" } diff --git a/packages/wallets/coinbase/package.json b/packages/wallets/coinbase/package.json index c2d8b7e4..a26865f6 100644 --- a/packages/wallets/coinbase/package.json +++ b/packages/wallets/coinbase/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.1", "@reef-knot/wallets-helpers": "^2.0.2", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/dappBrowserInjected/package.json b/packages/wallets/dappBrowserInjected/package.json index afb49a62..23a5385d 100644 --- a/packages/wallets/dappBrowserInjected/package.json +++ b/packages/wallets/dappBrowserInjected/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.0", "@reef-knot/wallets-helpers": "^2.0.0", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/exodus/package.json b/packages/wallets/exodus/package.json index c8ee0e57..c3f36e5c 100644 --- a/packages/wallets/exodus/package.json +++ b/packages/wallets/exodus/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.1", "@reef-knot/wallets-helpers": "^2.0.2", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/imtoken/package.json b/packages/wallets/imtoken/package.json index ba6e98d1..c2396fdf 100644 --- a/packages/wallets/imtoken/package.json +++ b/packages/wallets/imtoken/package.json @@ -37,7 +37,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.0", "@tanstack/react-query": "^5.29.0" } diff --git a/packages/wallets/ledger-hid/package.json b/packages/wallets/ledger-hid/package.json index f64caf1a..5d72d5cf 100644 --- a/packages/wallets/ledger-hid/package.json +++ b/packages/wallets/ledger-hid/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.0", "@reef-knot/ledger-connector": "^4.0.0", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/ledger-live/package.json b/packages/wallets/ledger-live/package.json index 79387271..25fabef3 100644 --- a/packages/wallets/ledger-live/package.json +++ b/packages/wallets/ledger-live/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.0", "@reef-knot/ledger-connector": "^4.0.0", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/metamask/package.json b/packages/wallets/metamask/package.json index 41dca5ea..538825d6 100644 --- a/packages/wallets/metamask/package.json +++ b/packages/wallets/metamask/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.1", "@reef-knot/wallets-helpers": "^2.0.2", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/okx/package.json b/packages/wallets/okx/package.json index 038b530b..7b5ba933 100644 --- a/packages/wallets/okx/package.json +++ b/packages/wallets/okx/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.1", "@reef-knot/wallets-helpers": "^2.0.2", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/phantom/package.json b/packages/wallets/phantom/package.json index c8ed4896..8154cd21 100644 --- a/packages/wallets/phantom/package.json +++ b/packages/wallets/phantom/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.1", "@reef-knot/wallets-helpers": "^2.0.2", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/safe/package.json b/packages/wallets/safe/package.json index 70ec00f0..4632dd3a 100644 --- a/packages/wallets/safe/package.json +++ b/packages/wallets/safe/package.json @@ -37,8 +37,8 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "viem": "2.13.3", - "wagmi": "2.11.2", + "viem": ">=2.21", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.0", "@tanstack/react-query": "^5.29.0" } diff --git a/packages/wallets/trust/package.json b/packages/wallets/trust/package.json index 3f2d3374..9b81a094 100644 --- a/packages/wallets/trust/package.json +++ b/packages/wallets/trust/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.1", "@reef-knot/wallets-helpers": "^2.0.2", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/walletconnect/package.json b/packages/wallets/walletconnect/package.json index ea9b79d8..7a2dabcb 100644 --- a/packages/wallets/walletconnect/package.json +++ b/packages/wallets/walletconnect/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/wallets-helpers": "^2.0.0", "@reef-knot/types": "^2.0.0", "@tanstack/react-query": "^5.29.0" diff --git a/packages/wallets/xdefi/package.json b/packages/wallets/xdefi/package.json index 2a4dcbba..5f862f04 100644 --- a/packages/wallets/xdefi/package.json +++ b/packages/wallets/xdefi/package.json @@ -38,7 +38,7 @@ "eslint-config-custom": "*" }, "peerDependencies": { - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@reef-knot/types": "^2.0.1", "@reef-knot/wallets-helpers": "^2.0.2", "@tanstack/react-query": "^5.29.0" diff --git a/packages/web3-react/package.json b/packages/web3-react/package.json index 100660e8..6aebd3f8 100644 --- a/packages/web3-react/package.json +++ b/packages/web3-react/package.json @@ -66,7 +66,7 @@ "@reef-knot/ledger-connector": "^4.0.0", "@reef-knot/wallets-helpers": "^2.0.0", "react": ">=18", - "wagmi": "2.11.2", + "wagmi": ">=2.12", "@tanstack/react-query": "^5.29.0" } } diff --git a/yarn.lock b/yarn.lock index 3cddfe46..19e870c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7,10 +7,10 @@ resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf" integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA== -"@adraffy/ens-normalize@1.10.0": - version "1.10.0" - resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz#d2a39395c587e092d77cbbc80acf956a54f38bf7" - integrity sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q== +"@adraffy/ens-normalize@1.11.0": + version "1.11.0" + resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.11.0.tgz#42cc67c5baa407ac25059fcd7d405cc5ecdb0c33" + integrity sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg== "@alloc/quick-lru@^5.2.0": version "5.2.0" @@ -1914,17 +1914,15 @@ human-id "^1.0.2" prettier "^2.7.1" -"@coinbase/wallet-sdk@4.0.4": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@coinbase/wallet-sdk/-/wallet-sdk-4.0.4.tgz#634cd89bac93eeaf381a1f026476794e53431ed6" - integrity sha512-74c040CRnGhfRjr3ArnkAgud86erIqdkPHNt5HR1k9u97uTIZCJww9eGYT67Qf7gHPpGS/xW8Be1D4dvRm63FA== +"@coinbase/wallet-sdk@4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@coinbase/wallet-sdk/-/wallet-sdk-4.1.0.tgz#3224a102b724dcb1a63005f371d596ae2999953b" + integrity sha512-SkJJ72X/AA3+aS21sPs/4o4t6RVeDSA7HuBW4zauySX3eBiPU0zmVw95tXH/eNSX50agKz9WzeN8P5F+HcwLOw== dependencies: - buffer "^6.0.3" + "@noble/hashes" "^1.4.0" clsx "^1.2.1" eventemitter3 "^5.0.1" - keccak "^3.0.3" preact "^10.16.0" - sha.js "^2.4.11" "@cspotcode/source-map-support@^0.8.0": version "0.8.1" @@ -1938,6 +1936,11 @@ resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70" integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw== +"@ecies/ciphers@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@ecies/ciphers/-/ciphers-0.2.0.tgz#33a9e1ec08ca7af8dd9be52f8e66355f6706a4a4" + integrity sha512-dqQk3HbyuXSdflgRMrXjEcCohKeBZQl2rm0lOcYnEC4Oue90irVMwVJ0GiM/nhjP0zzGimH8mVFF/pOzQcv+Lg== + "@emotion/is-prop-valid@^0.8.1": version "0.8.8" resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz#db28b1c4368a259b60a97311d6a952d4fd01ac1a" @@ -2624,7 +2627,7 @@ dependencies: tiny-invariant "^1.1.0" -"@lido-sdk/constants@3.2.1", "@lido-sdk/constants@^3.2.1": +"@lido-sdk/constants@^3.2.1": version "3.2.1" resolved "https://registry.yarnpkg.com/@lido-sdk/constants/-/constants-3.2.1.tgz#0c4582d7e76e4f8bc42e8f3c0d14dc0fbe481d77" integrity sha512-zes0Mw0r1nEQYBNHV5fxK2H9Byowejy4haFy9LYDh1nL72aNJzzdh5S5iM+pKlEuLHQJHV5lVO/k9tunNJIKqQ== @@ -2647,13 +2650,6 @@ "@lido-sdk/constants" "3.2.0" tiny-invariant "^1.1.0" -"@lido-sdk/providers@^1.4.14": - version "1.4.14" - resolved "https://registry.yarnpkg.com/@lido-sdk/providers/-/providers-1.4.14.tgz#b7c714aa753d662c0d51f71ee4990b3cb78ce790" - integrity sha512-m422uXuaGoXoUlF8oyFTIQsj8ljVet/x7nK0xF8UoURm/iuaAhTbEXpcxhmkx8JSSDli1928apJRAwxG0McgnQ== - dependencies: - "@lido-sdk/constants" "3.2.1" - "@lido-sdk/react@2.0.2": version "2.0.2" resolved "https://registry.yarnpkg.com/@lido-sdk/react/-/react-2.0.2.tgz#03dc39c7f86b69314210ac17b47f9b02e14f3ae5" @@ -2673,10 +2669,10 @@ dependencies: typescript "^4.7" -"@lidofinance/lido-ethereum-sdk@3.5.0-alpha.3": - version "3.5.0-alpha.3" - resolved "https://registry.yarnpkg.com/@lidofinance/lido-ethereum-sdk/-/lido-ethereum-sdk-3.5.0-alpha.3.tgz#a503a0686f8e4e5438995149d1316b0c98d09cfe" - integrity sha512-FvrW7Dk5n802qES5F5nZo5NzTw+pWBh3jSMJltOYCtsaIO97bUXkqm6p4cfURnvj1coI5MH00BqJuUj7yDI2NQ== +"@lidofinance/lido-ethereum-sdk@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lidofinance/lido-ethereum-sdk/-/lido-ethereum-sdk-4.0.0.tgz#5378b57c3026d610b6f14b319b23f50bdacdc7dc" + integrity sha512-ozXt6qGI1I7WlWZ52rweUGsBGZWt4NWRWjCwiqfJf4DAILe7bkoXEMDEdR+9qHrAzQa+R+JC25aocJ1zeBf2MQ== dependencies: "@ethersproject/bytes" "^5.7.0" graphql "^16.8.1" @@ -2818,10 +2814,10 @@ resolved "https://registry.yarnpkg.com/@metamask/safe-event-emitter/-/safe-event-emitter-3.1.1.tgz#e89b840a7af8097a8ed4953d8dc8470d1302d3ef" integrity sha512-ihb3B0T/wJm1eUuArYP4lCTSEoZsClHhuWyfo/kMX3m/odpqNcPfsz5O2A3NT7dXCAgWPGDQGPqygCpgeniKMw== -"@metamask/sdk-communication-layer@0.26.4": - version "0.26.4" - resolved "https://registry.yarnpkg.com/@metamask/sdk-communication-layer/-/sdk-communication-layer-0.26.4.tgz#dda8e33a327f29962095b82c598799b852e40d81" - integrity sha512-+X4GEc5mV1gWK4moSswVlKsUh+RsA48qPlkxBLTUxQODSnyBe0TRMxE6mH+bSrfponnTzvBkGUXyEjvDwDjDHw== +"@metamask/sdk-communication-layer@0.30.0": + version "0.30.0" + resolved "https://registry.yarnpkg.com/@metamask/sdk-communication-layer/-/sdk-communication-layer-0.30.0.tgz#2bd252cfce3ac4260a6c8c9359732ab5e839b75e" + integrity sha512-q5nbdYkAf76MsZxi1l5MJEAyd8sY9jLRapC8a7x1Q1BNV4rzQeFeux/d0mJ/jTR2LAwbnLZs2rL226AM75oK4w== dependencies: bufferutil "^4.0.8" date-fns "^2.29.3" @@ -2829,27 +2825,26 @@ utf-8-validate "^5.0.2" uuid "^8.3.2" -"@metamask/sdk-install-modal-web@0.26.5": - version "0.26.5" - resolved "https://registry.yarnpkg.com/@metamask/sdk-install-modal-web/-/sdk-install-modal-web-0.26.5.tgz#b696c78818adaff85d01a4f41fecc8fd2c80bc59" - integrity sha512-qVA9Nk+NorGx5hXyODy5wskptE8R7RNYTYt49VbQpJogqbbVe1dnJ98+KaA43PBN4XYMCXmcIhULNiEHGsLynA== +"@metamask/sdk-install-modal-web@0.30.0": + version "0.30.0" + resolved "https://registry.yarnpkg.com/@metamask/sdk-install-modal-web/-/sdk-install-modal-web-0.30.0.tgz#9ec634201b1b47bb30064f42ae0efba7f204bb0a" + integrity sha512-1gT533Huja9tK3cmttvcpZirRAtWJ7vnYH+lnNRKEj2xIP335Df2cOwS+zqNC4GlRCZw7A3IsTjIzlKoxBY1uQ== dependencies: qr-code-styling "^1.6.0-rc.1" -"@metamask/sdk@0.26.5": - version "0.26.5" - resolved "https://registry.yarnpkg.com/@metamask/sdk/-/sdk-0.26.5.tgz#8adf2957918d0ec06be499d995da15d2171c058e" - integrity sha512-HS/MPQCCYRS+m3dDdGLcAagwYHiPv9iUshDMBjINUywCtfUN4P2BH8xdvPOgtnzRIuRSMXqMWBbZnTvEvBeQvA== +"@metamask/sdk@0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@metamask/sdk/-/sdk-0.30.1.tgz#63126ad769566098000cc3c2cd513d18808471f3" + integrity sha512-NelEjJZsF5wVpSQELpmvXtnS9+C6HdxGQ4GB9jMRzeejphmPyKqmrIGM6XtaPrJtlpX+40AcJ2dtBQcjJVzpbQ== dependencies: "@metamask/onboarding" "^1.0.1" "@metamask/providers" "16.1.0" - "@metamask/sdk-communication-layer" "0.26.4" - "@metamask/sdk-install-modal-web" "0.26.5" - "@types/dom-screen-wake-lock" "^1.0.0" + "@metamask/sdk-communication-layer" "0.30.0" + "@metamask/sdk-install-modal-web" "0.30.0" bowser "^2.9.0" cross-fetch "^4.0.0" debug "^4.3.4" - eciesjs "^0.3.15" + eciesjs "^0.4.8" eth-rpc-errors "^4.0.3" eventemitter2 "^6.4.7" i18next "23.11.5" @@ -2859,7 +2854,6 @@ qrcode-terminal-nooctal "^0.12.1" react-native-webview "^11.26.0" readable-stream "^3.6.2" - rollup-plugin-visualizer "^5.9.2" socket.io-client "^4.5.1" util "^0.12.4" uuid "^8.3.2" @@ -3068,19 +3062,10 @@ resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz#323d72dd25103d0c4fbdce89dadf574a787b1f9b" integrity sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ== -"@noble/curves@1.2.0", "@noble/curves@~1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.2.0.tgz#92d7e12e4e49b23105a2555c6984d41733d65c35" - integrity sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw== - dependencies: - "@noble/hashes" "1.3.2" - -"@noble/curves@1.4.0": - version "1.4.0" - resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.4.0.tgz#f05771ef64da724997f69ee1261b2417a49522d6" - integrity sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg== - dependencies: - "@noble/hashes" "1.4.0" +"@noble/ciphers@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@noble/ciphers/-/ciphers-1.0.0.tgz#34758a1cbfcd4126880f83e6b1cdeb88785b7970" + integrity sha512-wH5EHOmLi0rEazphPbecAzmjd12I6/Yv/SiHdkA9LSycsQk7RuuTp7am5/o62qYr0RScE7Pc9icXGBbsr6cesA== "@noble/curves@1.4.2", "@noble/curves@^1.4.0", "@noble/curves@~1.4.0": version "1.4.2" @@ -3089,20 +3074,22 @@ dependencies: "@noble/hashes" "1.4.0" -"@noble/hashes@1.3.2": - version "1.3.2" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39" - integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ== +"@noble/curves@1.6.0", "@noble/curves@^1.6.0", "@noble/curves@~1.6.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.6.0.tgz#be5296ebcd5a1730fccea4786d420f87abfeb40b" + integrity sha512-TlaHRXDehJuRNR9TfZDNQ45mMEd5dwUwmicsafcIX4SsNiqnCHKjE/1alYPd/lDRVhxdhUAlv8uEhMCI5zjIJQ== + dependencies: + "@noble/hashes" "1.5.0" "@noble/hashes@1.4.0", "@noble/hashes@^1.3.1", "@noble/hashes@^1.4.0", "@noble/hashes@~1.4.0": version "1.4.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== -"@noble/hashes@~1.3.0", "@noble/hashes@~1.3.2": - version "1.3.3" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.3.tgz#39908da56a4adc270147bb07968bf3b16cfe1699" - integrity sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA== +"@noble/hashes@1.5.0", "@noble/hashes@^1.5.0", "@noble/hashes@~1.5.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.5.0.tgz#abadc5ca20332db2b1b2aa3e496e9af1213570b0" + integrity sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA== "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -3329,19 +3316,10 @@ resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.7.tgz#fe973311a5c6267846aa131bc72e96c5d40d2b30" integrity sha512-PPNYBslrLNNUQ/Yad37MHYsNQtK67EhWb6WtSvNLLPo7SdVZgkUjD6Dg+5On7zNwmskf8OX7I7Nx5oN+MIWE0g== -"@scure/base@~1.1.0", "@scure/base@~1.1.2": - version "1.1.5" - resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.5.tgz#1d85d17269fe97694b9c592552dd9e5e33552157" - integrity sha512-Brj9FiG2W1MRQSTB212YVPRrcbjkv48FoZi/u4l/zds/ieRrqsh7aUf6CLwkAq61oKXr/ZlTzlY66gLIj3TFTQ== - -"@scure/bip32@1.3.2": - version "1.3.2" - resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.3.2.tgz#90e78c027d5e30f0b22c1f8d50ff12f3fb7559f8" - integrity sha512-N1ZhksgwD3OBlwTv3R6KFEcPojl/W4ElJOeCZdi+vuI5QmTFwLq3OFf2zd2ROpKvxFdgZ6hUpb0dx9bVNEwYCA== - dependencies: - "@noble/curves" "~1.2.0" - "@noble/hashes" "~1.3.2" - "@scure/base" "~1.1.2" +"@scure/base@~1.1.7", "@scure/base@~1.1.8": + version "1.1.9" + resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.9.tgz#e5e142fbbfe251091f9c5f1dd4c834ac04c3dbd1" + integrity sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg== "@scure/bip32@1.4.0": version "1.4.0" @@ -3352,13 +3330,14 @@ "@noble/hashes" "~1.4.0" "@scure/base" "~1.1.6" -"@scure/bip39@1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.2.1.tgz#5cee8978656b272a917b7871c981e0541ad6ac2a" - integrity sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg== +"@scure/bip32@1.5.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.5.0.tgz#dd4a2e1b8a9da60e012e776d954c4186db6328e6" + integrity sha512-8EnFYkqEQdnkuGBVpCzKxyIwDCBLDVj3oiX0EKUFre/tOjL/Hqba1D6n/8RcmaQy4f95qQFrO2A8Sr6ybh4NRw== dependencies: - "@noble/hashes" "~1.3.0" - "@scure/base" "~1.1.0" + "@noble/curves" "~1.6.0" + "@noble/hashes" "~1.5.0" + "@scure/base" "~1.1.7" "@scure/bip39@1.3.0": version "1.3.0" @@ -3368,6 +3347,14 @@ "@noble/hashes" "~1.4.0" "@scure/base" "~1.1.6" +"@scure/bip39@1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.4.0.tgz#664d4f851564e2e1d4bffa0339f9546ea55960a6" + integrity sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw== + dependencies: + "@noble/hashes" "~1.5.0" + "@scure/base" "~1.1.8" + "@socket.io/component-emitter@~3.1.0": version "3.1.2" resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz#821f8442f4175d8f0467b9daf26e3a18e2d02af2" @@ -3939,11 +3926,6 @@ dependencies: "@types/ms" "*" -"@types/dom-screen-wake-lock@^1.0.0": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@types/dom-screen-wake-lock/-/dom-screen-wake-lock-1.0.3.tgz#c3588a5f6f40fae957f9ce5be9bc4927a61bb9a0" - integrity sha512-3Iten7X3Zgwvk6kh6/NRdwN7WbZ760YgFCsF5AxDifltUQzW1RaW+WRmcVtgwFzLjaNu64H+0MPJ13yRa8g3Dw== - "@types/estree@*", "@types/estree@^1.0.0": version "1.0.5" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" @@ -4117,13 +4099,6 @@ resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.8.tgz#ce5ace04cfeabe7ef87c0091e50752e36707deff" integrity sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A== -"@types/secp256k1@^4.0.6": - version "4.0.6" - resolved "https://registry.yarnpkg.com/@types/secp256k1/-/secp256k1-4.0.6.tgz#d60ba2349a51c2cbc5e816dcd831a42029d376bf" - integrity sha512-hHxJU6PAEUn0TP4S/ZOzuTUvJWuZ6eIKeNKb5RBpODvSl6hp1Wrw4s7ATY50rklRCScUDpHzVA/DQdSjJ3UoYQ== - dependencies: - "@types/node" "*" - "@types/semver@^7.3.12", "@types/semver@^7.5.0": version "7.5.6" resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339" @@ -4299,32 +4274,31 @@ resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== -"@wagmi/connectors@5.0.26": - version "5.0.26" - resolved "https://registry.yarnpkg.com/@wagmi/connectors/-/connectors-5.0.26.tgz#74982f6b871c63e414049951b943ce2e76d5ae22" - integrity sha512-aGc3oDQPQwVqJr7S/7IU7rF0bA61OYXGPLzj30Y3MSmmEWXtAEgKpqkhIwiEdYQAMnlR3ukbqROq8qmUm/iYQg== +"@wagmi/connectors@5.3.3": + version "5.3.3" + resolved "https://registry.yarnpkg.com/@wagmi/connectors/-/connectors-5.3.3.tgz#ef823eeebeaa72852c0e5176bc5308f5cb8699ec" + integrity sha512-RUgwgqX7H+qg1lXBhLqcG0D5xb8USlAv4MVai4r5YpRw6lxpDvELFXxHN4ldZuUARKhH7Q3ZpfvdWyEXY+wn9w== dependencies: - "@coinbase/wallet-sdk" "4.0.4" - "@metamask/sdk" "0.26.5" + "@coinbase/wallet-sdk" "4.1.0" + "@metamask/sdk" "0.30.1" "@safe-global/safe-apps-provider" "0.18.3" "@safe-global/safe-apps-sdk" "9.1.0" - "@walletconnect/ethereum-provider" "2.13.0" - "@walletconnect/modal" "2.6.2" + "@walletconnect/ethereum-provider" "2.17.0" cbw-sdk "npm:@coinbase/wallet-sdk@3.9.3" -"@wagmi/core@2.12.2": - version "2.12.2" - resolved "https://registry.yarnpkg.com/@wagmi/core/-/core-2.12.2.tgz#009a475a14f44999082f2e4881853e49bc655fdf" - integrity sha512-V/KmuTOBHVdg5NG5EIzLyWuXJ3f8a8YwpXM7ywjuEnGkljxh+WROKKd+I/Qc5RHK59nEhFOYWQKXuyz1szmO9A== +"@wagmi/core@2.14.1": + version "2.14.1" + resolved "https://registry.yarnpkg.com/@wagmi/core/-/core-2.14.1.tgz#e6adb8a350cfd7be4ea9c5581768f951c60127de" + integrity sha512-Vl7VK5XdKxPfnYlp3E7U7AJSweBdfh+cd953hgAU2H+uNrekS9Nmt89l1b6WkwkYyqvccRDjsCtlcKRwvPtNAQ== dependencies: eventemitter3 "5.0.1" mipd "0.0.7" - zustand "4.4.1" + zustand "5.0.0" -"@walletconnect/core@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.13.0.tgz#6b79b039930643e8ee85a0f512b143a35fdb8b52" - integrity sha512-blDuZxQenjeXcVJvHxPznTNl6c/2DO4VNrFnus+qHmO6OtT5lZRowdMtlCaCNb1q0OxzgrmBDcTOCbFcCpio/g== +"@walletconnect/core@2.17.0": + version "2.17.0" + resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.17.0.tgz#bf490e85a4702eff0f7cf81ba0d3c1016dffff33" + integrity sha512-On+uSaCfWdsMIQsECwWHZBmUXfrnqmv6B8SXRRuTJgd8tUpEvBkLQH4X7XkSm3zW6ozEkQTCagZ2ox2YPn3kbw== dependencies: "@walletconnect/heartbeat" "1.2.2" "@walletconnect/jsonrpc-provider" "1.0.14" @@ -4333,14 +4307,13 @@ "@walletconnect/jsonrpc-ws-connection" "1.0.14" "@walletconnect/keyvaluestorage" "1.1.1" "@walletconnect/logger" "2.1.2" - "@walletconnect/relay-api" "1.0.10" + "@walletconnect/relay-api" "1.0.11" "@walletconnect/relay-auth" "1.0.4" "@walletconnect/safe-json" "1.0.2" "@walletconnect/time" "1.0.2" - "@walletconnect/types" "2.13.0" - "@walletconnect/utils" "2.13.0" + "@walletconnect/types" "2.17.0" + "@walletconnect/utils" "2.17.0" events "3.3.0" - isomorphic-unfetch "3.1.0" lodash.isequal "4.5.0" uint8arrays "3.1.0" @@ -4351,20 +4324,20 @@ dependencies: tslib "1.14.1" -"@walletconnect/ethereum-provider@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.13.0.tgz#5148851983e0d55fa1c18737b2db22802c82434c" - integrity sha512-dnpW8mmLpWl1AZUYGYZpaAfGw1HFkL0WSlhk5xekx3IJJKn4pLacX2QeIOo0iNkzNQxZfux1AK4Grl1DvtzZEA== +"@walletconnect/ethereum-provider@2.17.0": + version "2.17.0" + resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.17.0.tgz#d74feaaed6180a6799e96760d7ee867ff3a083d2" + integrity sha512-b+KTAXOb6JjoxkwpgYQQKPUcTwENGmdEdZoIDLeRicUmZTn/IQKfkMoC2frClB4YxkyoVMtj1oMV2JAax+yu9A== dependencies: "@walletconnect/jsonrpc-http-connection" "1.0.8" "@walletconnect/jsonrpc-provider" "1.0.14" "@walletconnect/jsonrpc-types" "1.0.4" "@walletconnect/jsonrpc-utils" "1.0.8" - "@walletconnect/modal" "2.6.2" - "@walletconnect/sign-client" "2.13.0" - "@walletconnect/types" "2.13.0" - "@walletconnect/universal-provider" "2.13.0" - "@walletconnect/utils" "2.13.0" + "@walletconnect/modal" "2.7.0" + "@walletconnect/sign-client" "2.17.0" + "@walletconnect/types" "2.17.0" + "@walletconnect/universal-provider" "2.17.0" + "@walletconnect/utils" "2.17.0" events "3.3.0" "@walletconnect/events@1.0.1", "@walletconnect/events@^1.0.1": @@ -4455,35 +4428,35 @@ "@walletconnect/safe-json" "^1.0.2" pino "7.11.0" -"@walletconnect/modal-core@2.6.2": - version "2.6.2" - resolved "https://registry.yarnpkg.com/@walletconnect/modal-core/-/modal-core-2.6.2.tgz#d73e45d96668764e0c8668ea07a45bb8b81119e9" - integrity sha512-cv8ibvdOJQv2B+nyxP9IIFdxvQznMz8OOr/oR/AaUZym4hjXNL/l1a2UlSQBXrVjo3xxbouMxLb3kBsHoYP2CA== +"@walletconnect/modal-core@2.7.0": + version "2.7.0" + resolved "https://registry.yarnpkg.com/@walletconnect/modal-core/-/modal-core-2.7.0.tgz#73c13c3b7b0abf9ccdbac9b242254a86327ce0a4" + integrity sha512-oyMIfdlNdpyKF2kTJowTixZSo0PGlCJRdssUN/EZdA6H6v03hZnf09JnwpljZNfir2M65Dvjm/15nGrDQnlxSA== dependencies: valtio "1.11.2" -"@walletconnect/modal-ui@2.6.2": - version "2.6.2" - resolved "https://registry.yarnpkg.com/@walletconnect/modal-ui/-/modal-ui-2.6.2.tgz#fa57c087c57b7f76aaae93deab0f84bb68b59cf9" - integrity sha512-rbdstM1HPGvr7jprQkyPggX7rP4XiCG85ZA+zWBEX0dVQg8PpAgRUqpeub4xQKDgY7pY/xLRXSiCVdWGqvG2HA== +"@walletconnect/modal-ui@2.7.0": + version "2.7.0" + resolved "https://registry.yarnpkg.com/@walletconnect/modal-ui/-/modal-ui-2.7.0.tgz#dbbb7ee46a5a25f7d39db622706f2d197b268cbb" + integrity sha512-gERYvU7D7K1ANCN/8vUgsE0d2hnRemfAFZ2novm9aZBg7TEd/4EgB+AqbJ+1dc7GhOL6dazckVq78TgccHb7mQ== dependencies: - "@walletconnect/modal-core" "2.6.2" + "@walletconnect/modal-core" "2.7.0" lit "2.8.0" motion "10.16.2" qrcode "1.5.3" -"@walletconnect/modal@2.6.2": - version "2.6.2" - resolved "https://registry.yarnpkg.com/@walletconnect/modal/-/modal-2.6.2.tgz#4b534a836f5039eeb3268b80be7217a94dd12651" - integrity sha512-eFopgKi8AjKf/0U4SemvcYw9zlLpx9njVN8sf6DAkowC2Md0gPU/UNEbH1Wwj407pEKnEds98pKWib1NN1ACoA== +"@walletconnect/modal@2.7.0": + version "2.7.0" + resolved "https://registry.yarnpkg.com/@walletconnect/modal/-/modal-2.7.0.tgz#55f969796d104cce1205f5f844d8f8438b79723a" + integrity sha512-RQVt58oJ+rwqnPcIvRFeMGKuXb9qkgSmwz4noF8JZGUym3gUAzVs+uW2NQ1Owm9XOJAV+sANrtJ+VoVq1ftElw== dependencies: - "@walletconnect/modal-core" "2.6.2" - "@walletconnect/modal-ui" "2.6.2" + "@walletconnect/modal-core" "2.7.0" + "@walletconnect/modal-ui" "2.7.0" -"@walletconnect/relay-api@1.0.10": - version "1.0.10" - resolved "https://registry.yarnpkg.com/@walletconnect/relay-api/-/relay-api-1.0.10.tgz#5aef3cd07c21582b968136179aa75849dcc65499" - integrity sha512-tqrdd4zU9VBNqUaXXQASaexklv6A54yEyQQEXYOCr+Jz8Ket0dmPBDyg19LVSNUN2cipAghQc45/KVmfFJ0cYw== +"@walletconnect/relay-api@1.0.11": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@walletconnect/relay-api/-/relay-api-1.0.11.tgz#80ab7ef2e83c6c173be1a59756f95e515fb63224" + integrity sha512-tLPErkze/HmC9aCmdZOhtVmYZq1wKfWTJtygQHoWtgg722Jd4homo54Cs4ak2RUFUZIGO2RsOpIcWipaua5D5Q== dependencies: "@walletconnect/jsonrpc-types" "^1.0.2" @@ -4506,19 +4479,19 @@ dependencies: tslib "1.14.1" -"@walletconnect/sign-client@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.13.0.tgz#f59993f082aec1ca5498b9519027e764c1e6d28b" - integrity sha512-En7KSvNUlQFx20IsYGsFgkNJ2lpvDvRsSFOT5PTdGskwCkUfOpB33SQJ6nCrN19gyoKPNvWg80Cy6MJI0TjNYA== +"@walletconnect/sign-client@2.17.0": + version "2.17.0" + resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.17.0.tgz#efe811b1bb10082d964e2f0378aaa1b40f424503" + integrity sha512-sErYwvSSHQolNXni47L3Bm10ptJc1s1YoJvJd34s5E9h9+d3rj7PrhbiW9X82deN+Dm5oA8X9tC4xty1yIBrVg== dependencies: - "@walletconnect/core" "2.13.0" + "@walletconnect/core" "2.17.0" "@walletconnect/events" "1.0.1" "@walletconnect/heartbeat" "1.2.2" "@walletconnect/jsonrpc-utils" "1.0.8" "@walletconnect/logger" "2.1.2" "@walletconnect/time" "1.0.2" - "@walletconnect/types" "2.13.0" - "@walletconnect/utils" "2.13.0" + "@walletconnect/types" "2.17.0" + "@walletconnect/utils" "2.17.0" events "3.3.0" "@walletconnect/time@1.0.2", "@walletconnect/time@^1.0.2": @@ -4528,10 +4501,10 @@ dependencies: tslib "1.14.1" -"@walletconnect/types@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.13.0.tgz#cdac083651f5897084fe9ed62779f11810335ac6" - integrity sha512-MWaVT0FkZwzYbD3tvk8F+2qpPlz1LUSWHuqbINUtMXnSzJtXN49Y99fR7FuBhNFtDalfuWsEK17GrNA+KnAsPQ== +"@walletconnect/types@2.17.0": + version "2.17.0" + resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.17.0.tgz#20eda5791e3172f8ab9146caa3f317701d4b3232" + integrity sha512-i1pn9URpvt9bcjRDkabuAmpA9K7mzyKoLJlbsAujRVX7pfaG7wur7u9Jz0bk1HxvuABL5LHNncTnVKSXKQ5jZA== dependencies: "@walletconnect/events" "1.0.1" "@walletconnect/heartbeat" "1.2.2" @@ -4540,38 +4513,40 @@ "@walletconnect/logger" "2.1.2" events "3.3.0" -"@walletconnect/universal-provider@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.13.0.tgz#f2b597001245e4d4a06d96dd1bce8d3a8a4dcbbf" - integrity sha512-B5QvO8pnk5Bqn4aIt0OukGEQn2Auk9VbHfhQb9cGwgmSCd1GlprX/Qblu4gyT5+TjHMb1Gz5UssUaZWTWbDhBg== +"@walletconnect/universal-provider@2.17.0": + version "2.17.0" + resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.17.0.tgz#c9d4bbd9b8f0e41b500b2488ccbc207dc5f7a170" + integrity sha512-d3V5Be7AqLrvzcdMZSBS8DmGDRdqnyLk1DWmRKAGgR6ieUWykhhUKlvfeoZtvJrIXrY7rUGYpH1X41UtFkW5Pw== dependencies: "@walletconnect/jsonrpc-http-connection" "1.0.8" "@walletconnect/jsonrpc-provider" "1.0.14" "@walletconnect/jsonrpc-types" "1.0.4" "@walletconnect/jsonrpc-utils" "1.0.8" "@walletconnect/logger" "2.1.2" - "@walletconnect/sign-client" "2.13.0" - "@walletconnect/types" "2.13.0" - "@walletconnect/utils" "2.13.0" + "@walletconnect/sign-client" "2.17.0" + "@walletconnect/types" "2.17.0" + "@walletconnect/utils" "2.17.0" events "3.3.0" -"@walletconnect/utils@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.13.0.tgz#1fc1fbff0d26db0830e65d1ba8cfe1a13a0616ad" - integrity sha512-q1eDCsRHj5iLe7fF8RroGoPZpdo2CYMZzQSrw1iqL+2+GOeqapxxuJ1vaJkmDUkwgklfB22ufqG6KQnz78sD4w== +"@walletconnect/utils@2.17.0": + version "2.17.0" + resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.17.0.tgz#02b3af0b80d0c1a994d692d829d066271b04d071" + integrity sha512-1aeQvjwsXy4Yh9G6g2eGmXrEl+BzkNjHRdCrGdMYqFTFa8ROEJfTGsSH3pLsNDlOY94CoBUvJvM55q/PMoN/FQ== dependencies: "@stablelib/chacha20poly1305" "1.0.1" "@stablelib/hkdf" "1.0.1" "@stablelib/random" "1.0.2" "@stablelib/sha256" "1.0.1" "@stablelib/x25519" "1.0.3" - "@walletconnect/relay-api" "1.0.10" + "@walletconnect/relay-api" "1.0.11" + "@walletconnect/relay-auth" "1.0.4" "@walletconnect/safe-json" "1.0.2" "@walletconnect/time" "1.0.2" - "@walletconnect/types" "2.13.0" + "@walletconnect/types" "2.17.0" "@walletconnect/window-getters" "1.0.1" "@walletconnect/window-metadata" "1.0.1" detect-browser "5.3.0" + elliptic "^6.5.7" query-string "7.1.3" uint8arrays "3.1.0" @@ -4602,15 +4577,10 @@ resolved "https://registry.yarnpkg.com/@web3-react/types/-/types-6.0.7.tgz#34a6204224467eedc6123abaf55fbb6baeb2809f" integrity sha512-ofGmfDhxmNT1/P/MgVa8IKSkCStFiyvXe+U5tyZurKdrtTDFU+wJ/LxClPDtFerWpczNFPUSrKcuhfPX1sI6+A== -abitype@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.0.tgz#237176dace81d90d018bebf3a45cb42f2a2d9e97" - integrity sha512-NMeMah//6bJ56H5XRj8QCV4AwuW6hB6zqz2LnhhLdcWVQOsXki6/Pn3APeqxCma62nXIcmZWdu1DlHWS74umVQ== - -abitype@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.5.tgz#29d0daa3eea867ca90f7e4123144c1d1270774b6" - integrity sha512-YzDhti7cjlfaBhHutMaboYB21Ha3rXR9QTkNJFzYC4kC8YclaiwPBBBJY8ejFdu2wnJeZCVZSMlQJ7fi8S6hsw== +abitype@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.6.tgz#76410903e1d88e34f1362746e2d407513c38565b" + integrity sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A== abort-controller@^3.0.0: version "3.0.0" @@ -6009,11 +5979,6 @@ define-data-property@^1.1.4: es-errors "^1.3.0" gopd "^1.0.1" -define-lazy-prop@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" - integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== - define-properties@^1.1.3, define-properties@^1.2.0, define-properties@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" @@ -6235,14 +6200,15 @@ eastasianwidth@^0.2.0: resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== -eciesjs@^0.3.15: - version "0.3.19" - resolved "https://registry.yarnpkg.com/eciesjs/-/eciesjs-0.3.19.tgz#a22e9e1efe3fdedec02c828e2632ae0d4a073676" - integrity sha512-b+PkRDZ3ym7HEcnbxc22CMVCpgsnr8+gGgST3U5PtgeX1luvINgfXW7efOyUtmn/jFtA/lg5ywBi/Uazf4oeaA== +eciesjs@^0.4.8: + version "0.4.10" + resolved "https://registry.yarnpkg.com/eciesjs/-/eciesjs-0.4.10.tgz#7548ae8385809d1b81529ebe48b87d8549941270" + integrity sha512-dYAgdXAC7/d9fEC0w6kpRWj5vHah2BQgMM639g78JI0FUUffMN2Mq60HEHPkyH8ah+FX+cQd6ouDK4kWiatzyw== dependencies: - "@types/secp256k1" "^4.0.6" - futoin-hkdf "^1.5.3" - secp256k1 "^5.0.0" + "@ecies/ciphers" "^0.2.0" + "@noble/ciphers" "^1.0.0" + "@noble/curves" "^1.6.0" + "@noble/hashes" "^1.5.0" eip1193-provider@^1.0.1: version "1.0.1" @@ -7315,11 +7281,6 @@ functions-have-names@^1.2.3: resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== -futoin-hkdf@^1.5.3: - version "1.5.3" - resolved "https://registry.yarnpkg.com/futoin-hkdf/-/futoin-hkdf-1.5.3.tgz#6c8024f2e1429da086d4e18289ef2239ad33ee35" - integrity sha512-SewY5KdMpaoCeh7jachEWFsh1nNlaDjNHZXWqL5IGwtpEYHTgkr2+AMCgNwKWkcc0wpSYrZfR7he4WdmHFtDxQ== - gensync@^1.0.0-beta.2: version "1.0.0-beta.2" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" @@ -8014,11 +7975,6 @@ is-date-object@^1.0.1, is-date-object@^1.0.5: dependencies: has-tostringtag "^1.0.0" -is-docker@^2.0.0, is-docker@^2.1.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" - integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== - is-docker@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-3.0.0.tgz#90093aa3106277d8a77a5910dbae71747e15a200" @@ -8242,13 +8198,6 @@ is-windows@^1.0.0: resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== -is-wsl@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" - integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== - dependencies: - is-docker "^2.0.0" - is-wsl@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-3.1.0.tgz#e1c657e39c10090afcbedec61720f6b924c3cbd2" @@ -8283,18 +8232,10 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -isomorphic-unfetch@3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz#87341d5f4f7b63843d468438128cb087b7c3e98f" - integrity sha512-geDJjpoZ8N0kWexiwkX8F9NkTsXhetLPVbZFQ+JTW239QNOwvB0gniuR1Wc6f0AMTn7/mFGyXvHTifrCp/GH8Q== - dependencies: - node-fetch "^2.6.1" - unfetch "^4.2.0" - -isows@1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.4.tgz#810cd0d90cc4995c26395d2aa4cfa4037ebdf061" - integrity sha512-hEzjY+x9u9hPmBom9IIAqdJCwNLax+xrPb51vEPpERoFlIxgmZcHzsT5jKG06nvInKOBGvReAVz80Umed5CczQ== +isows@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.6.tgz#0da29d706fa51551c663c627ace42769850f86e7" + integrity sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw== iterator.prototype@^1.1.2: version "1.1.2" @@ -9086,11 +9027,6 @@ node-addon-api@^2.0.0: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-2.0.2.tgz#432cfa82962ce494b132e9d72a15b29f71ff5d32" integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA== -node-addon-api@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-5.1.0.tgz#49da1ca055e109a23d537e9de43c09cca21eb762" - integrity sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA== - node-addon-api@^7.0.0: version "7.1.0" resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-7.1.0.tgz#71f609369379c08e251c558527a107107b5e0fdb" @@ -9101,7 +9037,7 @@ node-fetch-native@^1.4.0, node-fetch-native@^1.4.1, node-fetch-native@^1.6.1: resolved "https://registry.yarnpkg.com/node-fetch-native/-/node-fetch-native-1.6.1.tgz#f95c74917d3cebc794cdae0cd2a9c7594aad0cb4" integrity sha512-bW9T/uJDPAJB2YNYEpWzE54U5O3MQidXsOyTfnbKYtTtFexRvGzb1waphBN4ZwP6EcIvYYEOwW0b72BpAqydTw== -node-fetch@^2.6.1, node-fetch@^2.6.12: +node-fetch@^2.6.12: version "2.7.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== @@ -9322,15 +9258,6 @@ onetime@^6.0.0: dependencies: mimic-fn "^4.0.0" -open@^8.4.0: - version "8.4.2" - resolved "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9" - integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ== - dependencies: - define-lazy-prop "^2.0.0" - is-docker "^2.1.1" - is-wsl "^2.2.0" - opener@^1.5.2: version "1.5.2" resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" @@ -10343,16 +10270,6 @@ rollup-plugin-typescript2@0.34.1: semver "^7.3.7" tslib "^2.4.0" -rollup-plugin-visualizer@^5.9.2: - version "5.12.0" - resolved "https://registry.yarnpkg.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.12.0.tgz#661542191ce78ee4f378995297260d0c1efb1302" - integrity sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ== - dependencies: - open "^8.4.0" - picomatch "^2.3.1" - source-map "^0.7.4" - yargs "^17.5.1" - rollup@3.29.5: version "3.29.5" resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.5.tgz#8a2e477a758b520fb78daf04bca4c522c1da8a54" @@ -10479,15 +10396,6 @@ scrypt-js@3.0.1: resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== -secp256k1@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-5.0.1.tgz#dc2c86187d48ff2da756f0f7e96417ee03c414b1" - integrity sha512-lDFs9AAIaWP9UCdtWrotXWWF9t8PWgQDcxqgAnpM9rMqxb3Oaq2J0thzPVSxBwdJgyQtkU/sYtFtbM1RSt/iYA== - dependencies: - elliptic "^6.5.7" - node-addon-api "^5.0.0" - node-gyp-build "^4.2.0" - "semver@2 || 3 || 4 || 5", semver@^5.6.0: version "5.7.2" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" @@ -10751,11 +10659,6 @@ source-map@^0.6.1, source-map@~0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -source-map@^0.7.4: - version "0.7.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" - integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== - sourcemap-codec@^1.4.8: version "1.4.8" resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" @@ -11654,11 +11557,6 @@ unenv@^1.8.0: node-fetch-native "^1.6.1" pathe "^1.1.1" -unfetch@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.2.0.tgz#7e21b0ef7d363d8d9af0fb929a5555f6ef97a3be" - integrity sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA== - unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" @@ -11860,42 +11758,28 @@ valtio@1.11.2: proxy-compare "2.5.1" use-sync-external-store "1.2.0" -viem@2.13.3: - version "2.13.3" - resolved "https://registry.yarnpkg.com/viem/-/viem-2.13.3.tgz#950426e4cacf5e12fab2c202a339371901712481" - integrity sha512-3tlwDRKHSelupFjbFMdUxF41f79ktyH2F9PAQ9Dltbs1DpdDlR1x+Ksa0th6qkyjjAbpDZP3F5nMTJv/1GVPdQ== - dependencies: - "@adraffy/ens-normalize" "1.10.0" - "@noble/curves" "1.2.0" - "@noble/hashes" "1.3.2" - "@scure/bip32" "1.3.2" - "@scure/bip39" "1.2.1" - abitype "1.0.0" - isows "1.0.4" - ws "8.13.0" - -viem@^2.1.1: - version "2.18.5" - resolved "https://registry.yarnpkg.com/viem/-/viem-2.18.5.tgz#6b29c2b30c8c01de4f4c5a3cc99b8e30ae942df8" - integrity sha512-hIV5+kzI1f6fOzmZWuycjH+9F/qcEQ3BOyF0/m1cc+pd2+PMdJ/yccL4MeKAUDc1mun5KGjub9HhJsu+9Ndd3Q== - dependencies: - "@adraffy/ens-normalize" "1.10.0" - "@noble/curves" "1.4.0" - "@noble/hashes" "1.4.0" - "@scure/bip32" "1.4.0" - "@scure/bip39" "1.3.0" - abitype "1.0.5" - isows "1.0.4" - webauthn-p256 "0.0.5" - ws "8.17.1" - -wagmi@2.11.2: - version "2.11.2" - resolved "https://registry.yarnpkg.com/wagmi/-/wagmi-2.11.2.tgz#8d508c2f7ed5f5470754a21cd4deebfa338ac5ac" - integrity sha512-yHbeI2HNo7pPGToo4ib3lKSQDfprp+flV/V8T66nxbTne0fHcNtbCiny1xe9kAE44VNFdnABrUk8d83CMC7+QA== - dependencies: - "@wagmi/connectors" "5.0.26" - "@wagmi/core" "2.12.2" +viem@2.21.35, viem@^2.1.1: + version "2.21.35" + resolved "https://registry.yarnpkg.com/viem/-/viem-2.21.35.tgz#418782906554b6409082aa2ccb5f27c77abdf1b1" + integrity sha512-f3EFc5JILeA9veuNymUN8HG/nKP9ykC0NCgwFrZWuxcCc822GaP0IEnkRBsHGqmjwbz//FxJFmvtx7TBcdVs0A== + dependencies: + "@adraffy/ens-normalize" "1.11.0" + "@noble/curves" "1.6.0" + "@noble/hashes" "1.5.0" + "@scure/bip32" "1.5.0" + "@scure/bip39" "1.4.0" + abitype "1.0.6" + isows "1.0.6" + webauthn-p256 "0.0.10" + ws "8.18.0" + +wagmi@2.12.25, wagmi@~2: + version "2.12.25" + resolved "https://registry.yarnpkg.com/wagmi/-/wagmi-2.12.25.tgz#0e4f23a96e021143f202c250ec0af3a5ea0cca08" + integrity sha512-RdQCDbTv1+b7fWCAoLEYX0loymqLnhmNrMZq1gfPEs6cOhEHYOQeZtJWnyaXOD5+3xIFw+xoA0xDNvAHVbtbKw== + dependencies: + "@wagmi/connectors" "5.3.3" + "@wagmi/core" "2.14.1" use-sync-external-store "1.2.0" wcwidth@^1.0.1: @@ -11905,10 +11789,10 @@ wcwidth@^1.0.1: dependencies: defaults "^1.0.3" -webauthn-p256@0.0.5: - version "0.0.5" - resolved "https://registry.yarnpkg.com/webauthn-p256/-/webauthn-p256-0.0.5.tgz#0baebd2ba8a414b21cc09c0d40f9dd0be96a06bd" - integrity sha512-drMGNWKdaixZNobeORVIqq7k5DsRC9FnG201K2QjeOoQLmtSDaSsVZdkg6n5jUALJKcAG++zBPJXmv6hy0nWFg== +webauthn-p256@0.0.10: + version "0.0.10" + resolved "https://registry.yarnpkg.com/webauthn-p256/-/webauthn-p256-0.0.10.tgz#877e75abe8348d3e14485932968edf3325fd2fdd" + integrity sha512-EeYD+gmIT80YkSIDb2iWq0lq2zbHo1CxHlQTeJ+KkCILWpVy3zASH3ByD4bopzfk0uCwXxLqKGLqp2W4O28VFA== dependencies: "@noble/curves" "^1.4.0" "@noble/hashes" "^1.4.0" @@ -12102,15 +11986,10 @@ ws@7.4.6: resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== -ws@8.13.0: - version "8.13.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0" - integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== - -ws@8.17.1, ws@~8.17.1: - version "8.17.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b" - integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ== +ws@8.18.0, ws@^8.13.0: + version "8.18.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc" + integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw== ws@^7.3.1, ws@^7.5.1: version "7.5.9" @@ -12122,10 +12001,10 @@ ws@^7.4.0: resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.10.tgz#58b5c20dc281633f6c19113f39b349bd8bd558d9" integrity sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ== -ws@^8.13.0: - version "8.18.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc" - integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw== +ws@~8.17.1: + version "8.17.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b" + integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ== xmlhttprequest-ssl@~2.0.0: version "2.0.0" @@ -12202,7 +12081,7 @@ yargs@^15.1.0, yargs@^15.3.1: y18n "^4.0.0" yargs-parser "^18.1.2" -yargs@^17.5.1, yargs@^17.7.1: +yargs@^17.7.1: version "17.7.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== @@ -12225,9 +12104,7 @@ yocto-queue@^0.1.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== -zustand@4.4.1: - version "4.4.1" - resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.4.1.tgz#0cd3a3e4756f21811bd956418fdc686877e8b3b0" - integrity sha512-QCPfstAS4EBiTQzlaGP1gmorkh/UL1Leaj2tdj+zZCZ/9bm0WS7sI2wnfD5lpOszFqWJ1DcPnGoY8RDL61uokw== - dependencies: - use-sync-external-store "1.2.0" +zustand@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/zustand/-/zustand-5.0.0.tgz#71f8aaecf185592a3ba2743d7516607361899da9" + integrity sha512-LE+VcmbartOPM+auOjCCLQOsQ05zUTp8RkgwRzefUk+2jISdMMFnxvyTjA4YNWr5ZGXYbVsEMZosttuxUBkojQ== From 50853f49430c4e6262aa2a9decac34f471edef00 Mon Sep 17 00:00:00 2001 From: Evgeny Taktarov Date: Mon, 28 Oct 2024 18:36:32 +0900 Subject: [PATCH 2/4] fix: ledger hid switch accounts --- apps/demo-react/config/rpc.ts | 7 +------ apps/demo-react/env-dynamics.mjs | 3 +++ .../ledger-connector/src/hid/connector.ts | 18 +++++++++++++++++- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/apps/demo-react/config/rpc.ts b/apps/demo-react/config/rpc.ts index f51254b3..e2bf5157 100644 --- a/apps/demo-react/config/rpc.ts +++ b/apps/demo-react/config/rpc.ts @@ -1,11 +1,6 @@ -import { mainnet, holesky, Chain } from 'wagmi/chains'; +import { Chain } from 'wagmi/chains'; import dynamics from './dynamics'; export const getBackendRPCPath = (chainId: Chain['id']) => { return dynamics.rpcProviderUrls[chainId]; }; - -export const backendRPC = { - [mainnet.id]: getBackendRPCPath(mainnet.id), - [holesky.id]: getBackendRPCPath(holesky.id), -}; diff --git a/apps/demo-react/env-dynamics.mjs b/apps/demo-react/env-dynamics.mjs index bca72dfa..8c3525df 100644 --- a/apps/demo-react/env-dynamics.mjs +++ b/apps/demo-react/env-dynamics.mjs @@ -2,6 +2,9 @@ export const rpcProviderUrls = { 1: process.env[`RPC_PROVIDER_URL_1`], 17000: process.env[`RPC_PROVIDER_URL_17000`], + 11155111: process.env[`RPC_PROVIDER_URL_11155111`], + 10: process.env[`RPC_PROVIDER_URL_10`], + 11155420: process.env[`RPC_PROVIDER_URL_11155420`], }; /** @type number */ export const defaultChain = parseInt(process.env.DEFAULT_CHAIN, 10) || 17000; diff --git a/packages/connectors/ledger-connector/src/hid/connector.ts b/packages/connectors/ledger-connector/src/hid/connector.ts index c6f25c5c..6bd4be3b 100644 --- a/packages/connectors/ledger-connector/src/hid/connector.ts +++ b/packages/connectors/ledger-connector/src/hid/connector.ts @@ -6,7 +6,6 @@ import { import { Chain } from 'wagmi/chains'; import { checkError, clearLedgerDerivationPath } from '../hid/helpers'; import type { LedgerHQProvider } from './provider'; - export const idLedgerHid = 'ledgerHID'; export const name = 'Ledger'; @@ -89,6 +88,21 @@ export function ledgerHIDConnector({ } }, + async switchChain({ chainId }) { + const id = chainId.toString(16); + + emitter.emit('change', { chainId: Number(chainId) }); + return ( + chains.find((x) => x.id === chainId) ?? { + id: chainId, + name: `Chain ${id}`, + network: `${id}`, + nativeCurrency: { decimals: 18, name: 'Ether', symbol: 'ETH' }, + rpcUrls: { default: { http: [''] }, public: { http: [''] } }, + } + ); + }, + onDisconnect() { // Is called when HID API emits 'disconnect' event for some reason. // For example, the device was manually unplugged. @@ -98,10 +112,12 @@ export function ledgerHIDConnector({ onAccountsChanged() { // NOOP + // HID Ledger cannot change account by itself }, onChainChanged() { // NOOP + // HID Ledger cannot change chain by itself }, })); } From 95e58ce8ba03694f439a577f67ddd194cbe5f5a6 Mon Sep 17 00:00:00 2001 From: Evgeny Taktarov Date: Mon, 18 Nov 2024 16:42:21 +0700 Subject: [PATCH 3/4] chore: changeset --- packages/connectors/ledger-connector/CHANGELOG.md | 6 ++++++ packages/connectors/ledger-connector/package.json | 2 +- packages/reef-knot/CHANGELOG.md | 7 +++++++ packages/reef-knot/package.json | 4 ++-- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/connectors/ledger-connector/CHANGELOG.md b/packages/connectors/ledger-connector/CHANGELOG.md index 2454e5b6..70412750 100644 --- a/packages/connectors/ledger-connector/CHANGELOG.md +++ b/packages/connectors/ledger-connector/CHANGELOG.md @@ -1,5 +1,11 @@ # @reef-knot/ledger-connector +## 4.2.0 + +### Minor Changes + +- add chainChange to ledger hardware connector + ## 4.1.4 ### Patch Changes diff --git a/packages/connectors/ledger-connector/package.json b/packages/connectors/ledger-connector/package.json index aef7d414..a428c087 100644 --- a/packages/connectors/ledger-connector/package.json +++ b/packages/connectors/ledger-connector/package.json @@ -1,6 +1,6 @@ { "name": "@reef-knot/ledger-connector", - "version": "4.1.4", + "version": "4.2.0", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { diff --git a/packages/reef-knot/CHANGELOG.md b/packages/reef-knot/CHANGELOG.md index 58536325..9e50eb3a 100644 --- a/packages/reef-knot/CHANGELOG.md +++ b/packages/reef-knot/CHANGELOG.md @@ -1,5 +1,12 @@ # reef-knot +## 6.0.2 + +### Patch Changes + +- Updated dependencies + - @reef-knot/ledger-connector@4.2.0 + ## 6.0.1 ### Patch Changes diff --git a/packages/reef-knot/package.json b/packages/reef-knot/package.json index 33ef5c28..b894f060 100644 --- a/packages/reef-knot/package.json +++ b/packages/reef-knot/package.json @@ -1,6 +1,6 @@ { "name": "reef-knot", - "version": "6.0.1", + "version": "6.0.2", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { @@ -48,7 +48,7 @@ "@reef-knot/wallets-list": "3.0.0", "@reef-knot/wallets-helpers": "2.1.1", "@reef-knot/types": "3.0.0", - "@reef-knot/ledger-connector": "4.1.4" + "@reef-knot/ledger-connector": "4.2.0" }, "peerDependencies": { "@lidofinance/lido-ui": "^3.18.0", From 42e182d67831ba8dae78b8006c045c0e0c36806a Mon Sep 17 00:00:00 2001 From: Evgeny Taktarov Date: Tue, 19 Nov 2024 15:37:59 +0700 Subject: [PATCH 4/4] fix: linting --- apps/demo-react/providers/sdk.tsx | 1 + packages/connectors/ledger-connector/src/hid/connector.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/demo-react/providers/sdk.tsx b/apps/demo-react/providers/sdk.tsx index 0c0e5a9f..e5da682b 100644 --- a/apps/demo-react/providers/sdk.tsx +++ b/apps/demo-react/providers/sdk.tsx @@ -46,6 +46,7 @@ export const LidoSDKProvider: React.FC = ({ children }) => { } }; } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [isConnected]); const contextValue = useMemo(() => { diff --git a/packages/connectors/ledger-connector/src/hid/connector.ts b/packages/connectors/ledger-connector/src/hid/connector.ts index 6bd4be3b..f6117547 100644 --- a/packages/connectors/ledger-connector/src/hid/connector.ts +++ b/packages/connectors/ledger-connector/src/hid/connector.ts @@ -92,14 +92,14 @@ export function ledgerHIDConnector({ const id = chainId.toString(16); emitter.emit('change', { chainId: Number(chainId) }); - return ( + return Promise.resolve( chains.find((x) => x.id === chainId) ?? { id: chainId, name: `Chain ${id}`, network: `${id}`, nativeCurrency: { decimals: 18, name: 'Ether', symbol: 'ETH' }, rpcUrls: { default: { http: [''] }, public: { http: [''] } }, - } + }, ); },