From 2ada17818171a76bc1cff06421ccef103895d16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Abadesso?= Date: Mon, 23 Dec 2024 11:07:05 -0300 Subject: [PATCH] refactor: removed walletconnect references --- lavamoat/webpack/policy.json | 18 +++---- src/App.js | 2 - src/sagas/rpc.js | 0 src/screens/wallet-connect/WalletConnect.js | 56 --------------------- 4 files changed, 9 insertions(+), 67 deletions(-) delete mode 100644 src/sagas/rpc.js delete mode 100644 src/screens/wallet-connect/WalletConnect.js diff --git a/lavamoat/webpack/policy.json b/lavamoat/webpack/policy.json index 32a2d9b96..afeceda85 100644 --- a/lavamoat/webpack/policy.json +++ b/lavamoat/webpack/policy.json @@ -21,12 +21,12 @@ "@hathor/wallet-lib>isomorphic-ws": true, "@hathor/wallet-lib>queue-microtask": true, "@hathor/wallet-lib>zod": true, - "@walletconnect/core>events": true, "assert": true, "axios": true, "buffer": true, "crypto-browserify": true, "cypress>lodash": true, + "null-loader>webpack>events": true, "path-browserify": true } }, @@ -403,11 +403,6 @@ "setTimeout": true } }, - "@walletconnect/core>events": { - "globals": { - "console": true - } - }, "assert": { "globals": { "console": true, @@ -728,12 +723,12 @@ "setImmediate": true }, "packages": { - "@walletconnect/core>events": true, "crypto-browserify>browserify-sign>readable-stream>core-util-is": true, "crypto-browserify>browserify-sign>readable-stream>inherits": true, "crypto-browserify>browserify-sign>readable-stream>isarray": true, "crypto-browserify>browserify-sign>readable-stream>process-nextick-args": true, "crypto-browserify>browserify-sign>readable-stream>safe-buffer": true, + "null-loader>webpack>events": true, "process": true, "stream-http>readable-stream>string_decoder": true, "stream-http>readable-stream>util-deprecate": true @@ -979,6 +974,11 @@ "document": true } }, + "null-loader>webpack>events": { + "globals": { + "console": true + } + }, "path-browserify": { "globals": { "process.cwd": true @@ -1229,7 +1229,7 @@ }, "stream-browserify": { "packages": { - "@walletconnect/core>events": true, + "null-loader>webpack>events": true, "stream-browserify>inherits": true, "stream-browserify>readable-stream": true } @@ -1241,8 +1241,8 @@ "process.stdout": true }, "packages": { - "@walletconnect/core>events": true, "buffer": true, + "null-loader>webpack>events": true, "process": true, "stream-browserify>inherits": true, "stream-http>readable-stream>string_decoder": true, diff --git a/src/App.js b/src/App.js index 379743317..7612af06b 100644 --- a/src/App.js +++ b/src/App.js @@ -21,7 +21,6 @@ import LoadingAddresses from './screens/LoadingAddresses'; import NetworkSettings from './screens/NetworkSettings'; import ChoosePassphrase from './screens/ChoosePassphrase'; import CustomTokens from './screens/CustomTokens'; -import WalletConnect from './screens/wallet-connect/WalletConnect'; import Welcome from './screens/Welcome'; import SentryPermission from './screens/SentryPermission'; import UnknownTokens from './screens/UnknownTokens'; @@ -202,7 +201,6 @@ function Root() { } loaded={true} />} /> } loaded={true} />} /> } loaded={true} />} /> - } loaded={true} />} /> } loaded={true} />} /> } loaded={true} />} /> } loaded={true} />} /> diff --git a/src/sagas/rpc.js b/src/sagas/rpc.js deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/screens/wallet-connect/WalletConnect.js b/src/screens/wallet-connect/WalletConnect.js deleted file mode 100644 index 520aa799a..000000000 --- a/src/screens/wallet-connect/WalletConnect.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Copyright (c) Hathor Labs and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -import React, { useState } from 'react'; -import { useDispatch } from 'react-redux'; -import { t } from 'ttag'; -import { walletConnectUriInputted } from '../../actions'; - -/** - * Wallet Connect dashboard - * - * @memberof Screens - */ -function WalletConnect() { - const dispatch = useDispatch(); - const [uri, setUri] = useState(''); - - const handleSubmit = (e) => { - e.preventDefault(); - console.log(uri); - - dispatch(walletConnectUriInputted(uri)); - }; - - - const handleInputChanged = (e) => { - setUri(e.target.value); - }; - - return ( -
-
-
-
- - -
-
-
-
- ); -} - -export default WalletConnect;