From 3507601961e0a4e0215fdf0b9cdb2bf0f24a287e Mon Sep 17 00:00:00 2001 From: apexwallet Date: Mon, 13 Feb 2023 19:06:35 -0500 Subject: [PATCH] Adds Support for Apex Wallet as a Wagmi Connector --- package.json | 3 ++- src/components/AppContainer.tsx | 3 ++- yarn.lock | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c271df4..33aa448 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "@reach/visually-hidden": "^0.15.2", "@sentry/nextjs": "^7.12.1", "antd": "^4.19.5", + "apex-integration": "^1.0.9", "autoprefixer": "^10.3.1", "beautiful-react-hooks": "^3.6.2", "classnames": "^2.3.1", @@ -81,10 +82,10 @@ "react-dom": "^18.2.0", "react-hook-form": "^7.20.5", "react-i18next": "^11.18.6", - "react-slick": "^0.29.0", "react-query": "^3.34.0", "react-query-devtools": "^2.6.3", "react-rewards": "^1.1.2", + "react-slick": "^0.29.0", "react-spring-bottom-sheet": "3.5.0-alpha.0", "react-toastify": "^8.2.0", "react-tooltip": "^4.2.21", diff --git a/src/components/AppContainer.tsx b/src/components/AppContainer.tsx index 1a110d6..e854108 100644 --- a/src/components/AppContainer.tsx +++ b/src/components/AppContainer.tsx @@ -8,6 +8,7 @@ import { initRpcUrls } from '@pooltogether/wallet-connection' import { getSupportedChains } from '@utils/getSupportedChains' +import { ApexConnector } from 'apex-integration' import * as Fathom from 'fathom-client' import { Provider as JotaiProvider } from 'jotai' import { useTranslation } from 'next-i18next' @@ -24,7 +25,6 @@ import { MetaMaskConnector } from 'wagmi/connectors/metaMask' import { WalletConnectConnector } from 'wagmi/connectors/walletConnect' import { initSentry } from '../services/sentry' import { CustomErrorBoundary } from './CustomErrorBoundary' - // Initialize react-query Query Client const queryClient = new QueryClient({ defaultOptions: { @@ -54,6 +54,7 @@ const chains = getSupportedChains().map((chain) => { }) const connectors = () => { return [ + new ApexConnector({ chains, options: {} }), new MetaMaskConnector({ chains, options: {} }), new WalletConnectConnector({ chains, diff --git a/yarn.lock b/yarn.lock index 2f53d36..3484512 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3586,6 +3586,11 @@ anymatch@^3.0.3, anymatch@~3.1.1, anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" +apex-integration@^1.0.9: + version "1.0.9" + resolved "https://registry.yarnpkg.com/apex-integration/-/apex-integration-1.0.9.tgz#bee57c13784879012390df298f53e1af45386796" + integrity sha512-5DUBRso9ywqmo/kxJNXrQ8WVIoPTsitLdD0A9XOkKRMsIPGTygUQ/TR6RGOlUexW0B7YcMNV2TyNHkUECiX3KQ== + aproba@^1.0.3: version "1.2.0" resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a"