diff --git a/package.json b/package.json index 85ba6f7..f30f624 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "@types/node": "17.0.21", "@types/react": "^18.0.20", "@types/react-dom": "^18.0.6", + "apex-integration": "^1.0.9", "autoprefixer": "^10.3.1", "beautiful-react-hooks": "^3.6.2", "classnames": "^2.3.1", diff --git a/src/components/AppContainer.tsx b/src/components/AppContainer.tsx index 998e738..1f189ce 100644 --- a/src/components/AppContainer.tsx +++ b/src/components/AppContainer.tsx @@ -6,6 +6,7 @@ import { getReadProvider, initRpcUrls } from '@pooltogether/wallet-connection' +import { ApexConnector } from 'apex-integration' import { Provider as JotaiProvider } from 'jotai' import { useTranslation } from 'next-i18next' import { ThemeProvider, useTheme } from 'next-themes' @@ -48,6 +49,7 @@ const chains = SUPPORTED_CHAINS[getAppEnvString()].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 7ca4fe4..355cbd0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3910,6 +3910,11 @@ anymatch@^3.0.3, anymatch@^3.1.2, 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, aproba@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a"