From c819c1d3ec970b01311004a123490cda9cfb87d5 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Tue, 29 Oct 2024 20:16:39 -0300 Subject: [PATCH 1/2] [REF] add requests to reducer blacklist - fix available accounts label --- .../wallet-connect/WalletConnectStartModal.tsx | 11 +++++++++-- .../wallet-connect-v2.effects.ts | 16 ++-------------- .../wallet-connect-v2.reducer.ts | 2 +- src/utils/helper-methods.ts | 5 ++++- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/components/modal/wallet-connect/WalletConnectStartModal.tsx b/src/components/modal/wallet-connect/WalletConnectStartModal.tsx index 8eb0bdf70..cfd71f53f 100644 --- a/src/components/modal/wallet-connect/WalletConnectStartModal.tsx +++ b/src/components/modal/wallet-connect/WalletConnectStartModal.tsx @@ -202,6 +202,8 @@ export const WalletConnectStartModal = () => { const [checkedAccount, setCheckedAccount] = useState< AccountRowProps & {checked?: boolean} >(); + const [availableAccountLength, setAvailableAccountsLength] = + useState(0); const [customErrorMessageData, setCustomErrorMessageData] = useState< BottomNotificationConfig | undefined >(); @@ -394,6 +396,11 @@ export const WalletConnectStartModal = () => { }) .filter(item => item !== null) as KeyWalletsRowProps[]; setAllkeys(formattedKeys); + const availableAccountsLength = formattedKeys.reduce( + (total, key) => total + key?.accounts?.length || 0, + 0, + ); + setAvailableAccountsLength(availableAccountsLength); setCheckedAccount(formattedKeys[0]?.accounts[0]); _setSelectedWallets(formattedKeys); }; @@ -640,14 +647,14 @@ export const WalletConnectStartModal = () => { {checkedAccount.accountName} - {allKeys[0]?.accounts.length > 1 ? ( + {availableAccountLength > 1 ? ( - (+{allKeys[0]?.accounts.length - 1}) + (+{availableAccountLength - 1}) diff --git a/src/store/wallet-connect-v2/wallet-connect-v2.effects.ts b/src/store/wallet-connect-v2/wallet-connect-v2.effects.ts index 91ecade88..8e9f7569e 100644 --- a/src/store/wallet-connect-v2/wallet-connect-v2.effects.ts +++ b/src/store/wallet-connect-v2/wallet-connect-v2.effects.ts @@ -231,17 +231,6 @@ export const walletConnectV2SubscribeToEvents = ), ); - const requests: WCV2RequestType[] | undefined = - getState().WALLET_CONNECT_V2.requests; - const requestExist = requests.some(({id}) => id === event.id); - if (requestExist) { - dispatch( - LogActions.info( - '[WC-V2/walletConnectV2SubscribeToEvents]: pending request already stored - updating it', - ), - ); - } - const isChainSupported = Object.keys( WALLET_CONNECT_SUPPORTED_CHAINS, ).includes(event.params.chainId); @@ -264,7 +253,7 @@ export const walletConnectV2SubscribeToEvents = } // Process the request that requires user interaction - await handleUserInteraction(event, requestExist); + await handleUserInteraction(event); }, ); @@ -293,7 +282,6 @@ export const walletConnectV2SubscribeToEvents = const handleUserInteraction = async ( event: Web3WalletTypes.EventArguments['session_request'], - requestExist: boolean, ) => { const {name: currentRouteName} = (navigationRef.current?.getCurrentRoute() as any) || {}; @@ -317,7 +305,7 @@ export const walletConnectV2SubscribeToEvents = }), ); - if (currentRouteName !== 'WalletConnectHome' && !requestExist) { + if (currentRouteName !== 'WalletConnectHome') { await sleep(1000); dispatch( startInAppNotification( diff --git a/src/store/wallet-connect-v2/wallet-connect-v2.reducer.ts b/src/store/wallet-connect-v2/wallet-connect-v2.reducer.ts index 5c4f5c17e..14ebca888 100644 --- a/src/store/wallet-connect-v2/wallet-connect-v2.reducer.ts +++ b/src/store/wallet-connect-v2/wallet-connect-v2.reducer.ts @@ -6,7 +6,7 @@ import { import {Web3WalletTypes} from '@walletconnect/web3wallet'; export const walletConnectV2ReduxPersistBlackList: (keyof WalletConnectV2State)[] = - ['proposal']; + ['proposal', 'requests']; export interface WalletConnectV2State { sessions: WCV2SessionType[]; diff --git a/src/utils/helper-methods.ts b/src/utils/helper-methods.ts index 8bac5f1be..a28e619a7 100644 --- a/src/utils/helper-methods.ts +++ b/src/utils/helper-methods.ts @@ -1017,5 +1017,8 @@ const handleExecuteTransaction = async ( }; export const camelCaseToUpperWords = (input: string) => { - return input.replace(/([a-z])([A-Z])/g, '$1 $2').toUpperCase(); + return input + .replace(/_/g, ' ') + .replace(/([a-z])([A-Z])/g, '$1 $2') + .toUpperCase(); }; From b068ecf1aba0a1df6ff61ffc8366dce0e98445dc Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 30 Oct 2024 11:11:48 -0300 Subject: [PATCH 2/2] [REF] update to @reown/walletkit --- package.json | 6 +- scripts/allowed-url-prefixes.js | 1 + .../WalletConnectStartModal.tsx | 4 +- src/store/app/app.actions.ts | 4 +- src/store/app/app.effects.ts | 4 +- src/store/app/app.reducer.ts | 4 +- src/store/app/app.types.ts | 4 +- .../wallet-connect-v2.actions.ts | 8 +- .../wallet-connect-v2.effects.ts | 38 +- .../wallet-connect-v2.models.ts | 4 +- .../wallet-connect-v2.reducer.ts | 4 +- .../wallet-connect-v2.types.ts | 4 +- src/utils/helper-methods.ts | 6 +- yarn.lock | 332 +++--------------- 14 files changed, 92 insertions(+), 331 deletions(-) diff --git a/package.json b/package.json index d7515e3bc..eb8fac19c 100644 --- a/package.json +++ b/package.json @@ -65,16 +65,12 @@ "@react-navigation/native": "6.1.9", "@react-navigation/native-stack": "6.9.17", "@react-navigation/stack": "6.0.11", + "@reown/walletkit": "1.1.1", "@shopify/flash-list": "1.7.0", "@shopify/react-native-skia": "1.3.7", "@tradle/react-native-http": "2.0.1", "@walletconnect/jsonrpc-types": "1.0.2", - "@walletconnect/legacy-utils": "2.0.0-rc.0", "@walletconnect/react-native-compat": "2.14.0", - "@walletconnect/sign-client": "2.11.3", - "@walletconnect/types": "2.11.3", - "@walletconnect/utils": "2.11.3", - "@walletconnect/web3wallet": "1.11.2", "asyncstorage-down": "4.2.0", "axios": "0.21.1", "babel-plugin-module-resolver": "4.1.0", diff --git a/scripts/allowed-url-prefixes.js b/scripts/allowed-url-prefixes.js index 79f66c795..c94afaca9 100644 --- a/scripts/allowed-url-prefixes.js +++ b/scripts/allowed-url-prefixes.js @@ -70,6 +70,7 @@ const allowedUrlPrefixes = [ 'https://goerli-rollup.arbitrum.io/rpc', 'https://goerli.base.org', 'https://verify.walletconnect.com/', + 'https://verify.walletconnect.org/', 'https://api.etherscan.io/v2/api', ].concat(developmentOnlyAllowedUrlPrefixes); diff --git a/src/components/modal/wallet-connect/WalletConnectStartModal.tsx b/src/components/modal/wallet-connect/WalletConnectStartModal.tsx index cfd71f53f..046e15885 100644 --- a/src/components/modal/wallet-connect/WalletConnectStartModal.tsx +++ b/src/components/modal/wallet-connect/WalletConnectStartModal.tsx @@ -43,7 +43,7 @@ import { WALLET_CONNECT_SUPPORTED_CHAINS, WC_EVENTS, } from '../../../constants/WalletConnectV2'; -import {Web3WalletTypes} from '@walletconnect/web3wallet'; +import {WalletKitTypes} from '@reown/walletkit'; import FastImage from 'react-native-fast-image'; import {WalletConnectScreens} from '../../../navigation/wallet-connect/WalletConnectGroup'; import SheetModal from '../base/sheet/SheetModal'; @@ -74,7 +74,7 @@ import {SvgProps} from 'react-native-svg'; export type WalletConnectStartParamList = { // version 2 - proposal: Web3WalletTypes.EventArguments['session_proposal']; + proposal: WalletKitTypes.EventArguments['session_proposal']; selectedWallets?: { chain: string; address: string; diff --git a/src/store/app/app.actions.ts b/src/store/app/app.actions.ts index 0d721d849..15065ef3a 100644 --- a/src/store/app/app.actions.ts +++ b/src/store/app/app.actions.ts @@ -15,7 +15,7 @@ import { } from './app.models'; import {ModalId, FeedbackType} from './app.reducer'; import {AppActionType, AppActionTypes} from './app.types'; -import {Web3WalletTypes} from '@walletconnect/web3wallet'; +import {WalletKitTypes} from '@reown/walletkit'; import {SupportedChains} from '../../constants/currencies'; import {ChainSelectorConfig} from '../../components/modal/chain-selector/ChainSelector'; import {LocalAssetsDropdown} from '../../components/list/AssetsByChainRow'; @@ -92,7 +92,7 @@ export const dismissWalletConnectStartModal = (): AppActionType => ({ export const showInAppNotification = ( context: InAppNotificationContextType, message: string, - request: Web3WalletTypes.EventArguments['session_request'], + request: WalletKitTypes.EventArguments['session_request'], ): AppActionType => ({ type: AppActionTypes.SHOW_IN_APP_NOTIFICATION, payload: {context, message, request}, diff --git a/src/store/app/app.effects.ts b/src/store/app/app.effects.ts index db6b326d3..2e528c68e 100644 --- a/src/store/app/app.effects.ts +++ b/src/store/app/app.effects.ts @@ -127,7 +127,7 @@ import { startCustomTokensMigration, startPolMigration, } from '../wallet/effects/currencies/currencies'; -import {Web3WalletTypes} from '@walletconnect/web3wallet'; +import {WalletKitTypes} from '@reown/walletkit'; import {Key, Wallet} from '../wallet/wallet.models'; import {AppDispatch} from '../../utils/hooks'; @@ -642,7 +642,7 @@ export const startOnGoingProcessModal = export const startInAppNotification = ( key: InAppNotificationMessages, - request: Web3WalletTypes.EventArguments['session_request'], + request: WalletKitTypes.EventArguments['session_request'], context: InAppNotificationContextType, ): Effect> => async (dispatch, getState: () => RootState) => { diff --git a/src/store/app/app.reducer.ts b/src/store/app/app.reducer.ts index 949c980ea..4d10eac96 100644 --- a/src/store/app/app.reducer.ts +++ b/src/store/app/app.reducer.ts @@ -23,7 +23,7 @@ import uniqBy from 'lodash.uniqby'; import {BiometricModalConfig} from '../../components/modal/biometric/BiometricModal'; import {FeedbackRateType} from '../../navigation/tabs/settings/about/screens/SendFeedback'; import moment from 'moment'; -import {Web3WalletTypes} from '@walletconnect/web3wallet'; +import {WalletKitTypes} from '@reown/walletkit'; import {SupportedChains} from '../../constants/currencies'; import {ChainSelectorConfig} from '../../components/modal/chain-selector/ChainSelector'; import {LocalAssetsDropdown} from '../../components/list/AssetsByChainRow'; @@ -105,7 +105,7 @@ export interface AppState { | { context: InAppNotificationContextType; message: string; - request?: Web3WalletTypes.EventArguments['session_request']; + request?: WalletKitTypes.EventArguments['session_request']; } | undefined; showBottomNotificationModal: boolean; diff --git a/src/store/app/app.types.ts b/src/store/app/app.types.ts index 57227daa1..58be8d30b 100644 --- a/src/store/app/app.types.ts +++ b/src/store/app/app.types.ts @@ -14,7 +14,7 @@ import {SettingsListType} from '../../navigation/tabs/settings/SettingsRoot'; import {AltCurrenciesRowProps} from '../../components/list/AltCurrenciesRow'; import {FeedbackType, ModalId} from './app.reducer'; import {BiometricModalConfig} from '../../components/modal/biometric/BiometricModal'; -import {Web3WalletTypes} from '@walletconnect/web3wallet'; +import {WalletKitTypes} from '@reown/walletkit'; import {SupportedChains} from '../../constants/currencies'; import {ChainSelectorConfig} from '../../components/modal/chain-selector/ChainSelector'; import {LocalAssetsDropdown} from '../../components/list/AssetsByChainRow'; @@ -168,7 +168,7 @@ interface ShowInAppNotification { type: typeof AppActionTypes.SHOW_IN_APP_NOTIFICATION; payload: { message: string; - request: Web3WalletTypes.EventArguments['session_request']; + request: WalletKitTypes.EventArguments['session_request']; context: InAppNotificationContextType; }; } diff --git a/src/store/wallet-connect-v2/wallet-connect-v2.actions.ts b/src/store/wallet-connect-v2/wallet-connect-v2.actions.ts index 3f7acf364..e0264226b 100644 --- a/src/store/wallet-connect-v2/wallet-connect-v2.actions.ts +++ b/src/store/wallet-connect-v2/wallet-connect-v2.actions.ts @@ -3,10 +3,10 @@ import { WalletConnectV2ActionType, WalletConnectV2ActionTypes, } from './wallet-connect-v2.types'; -import {Web3WalletTypes} from '@walletconnect/web3wallet'; +import {WalletKitTypes} from '@reown/walletkit'; export const sessionProposal = ( - proposal?: Web3WalletTypes.EventArguments['session_proposal'], + proposal?: WalletKitTypes.EventArguments['session_proposal'], ): WalletConnectV2ActionType => ({ type: WalletConnectV2ActionTypes.SESSION_PROPOSAL, payload: {proposal}, @@ -24,7 +24,7 @@ export const rejectSessionProposal = (): WalletConnectV2ActionType => ({ }); export const sessionRequest = ( - request: Web3WalletTypes.EventArguments['session_request'] & { + request: WalletKitTypes.EventArguments['session_request'] & { createdOn?: number; swapAmount?: string; swapFormatAmount?: string; @@ -43,7 +43,7 @@ export const sessionRequest = ( }); export const updateRequests = ( - requests: Web3WalletTypes.EventArguments['session_request'][], + requests: WalletKitTypes.EventArguments['session_request'][], ): WalletConnectV2ActionType => ({ type: WalletConnectV2ActionTypes.UPDATE_REQUESTS, payload: {requests}, diff --git a/src/store/wallet-connect-v2/wallet-connect-v2.effects.ts b/src/store/wallet-connect-v2/wallet-connect-v2.effects.ts index 8e9f7569e..28230059d 100644 --- a/src/store/wallet-connect-v2/wallet-connect-v2.effects.ts +++ b/src/store/wallet-connect-v2/wallet-connect-v2.effects.ts @@ -44,11 +44,7 @@ import { } from './wallet-connect-v2.models'; import {ethers, providers} from 'ethers'; import {Core} from '@walletconnect/core'; -import { - Web3Wallet, - IWeb3Wallet, - Web3WalletTypes, -} from '@walletconnect/web3wallet'; +import {WalletKit, IWalletKit, WalletKitTypes} from '@reown/walletkit'; import {WALLET_CONNECT_V2_PROJECT_ID} from '@env'; import {startInAppNotification} from '../app/app.effects'; import {navigationRef} from '../../Root'; @@ -62,7 +58,7 @@ const BWC = BwcProvider.getInstance(); let core = new Core({ projectId: WALLET_CONNECT_V2_PROJECT_ID, }); -let web3wallet: IWeb3Wallet; +let web3wallet: IWalletKit; const checkCredentials = () => { return WALLET_CONNECT_V2_PROJECT_ID && WALLETCONNECT_V2_METADATA; @@ -77,7 +73,7 @@ export const walletConnectV2Init = (): Effect => async (dispatch, getState) => { return; } - web3wallet = await Web3Wallet.init({ + web3wallet = await WalletKit.init({ core, metadata: WALLETCONNECT_V2_METADATA, }); @@ -117,12 +113,12 @@ export const walletConnectV2OnSessionProposal = return new Promise(async (resolve, reject) => { try { if (!web3wallet) { - web3wallet = await Web3Wallet.init({ + web3wallet = await WalletKit.init({ core, metadata: WALLETCONNECT_V2_METADATA, }); } - await web3wallet.core.pairing.pair({uri}); + await web3wallet.pair({uri}); resolve(); } catch (e) { dispatch( @@ -208,7 +204,7 @@ export const walletConnectV2SubscribeToEvents = (): Effect => (dispatch, getState) => { web3wallet.on( 'session_proposal', - (proposal: Web3WalletTypes.EventArguments['session_proposal']) => { + (proposal: WalletKitTypes.EventArguments['session_proposal']) => { dispatch(WalletConnectV2Actions.sessionProposal(proposal)); dispatch(AppActions.showWalletConnectStartModal()); dispatch( @@ -222,7 +218,7 @@ export const walletConnectV2SubscribeToEvents = ); web3wallet.on( 'session_request', - async (event: Web3WalletTypes.EventArguments['session_request']) => { + async (event: WalletKitTypes.EventArguments['session_request']) => { dispatch( LogActions.info( `[WC-V2/walletConnectV2SubscribeToEvents]: new pending request: ${JSON.stringify( @@ -258,7 +254,7 @@ export const walletConnectV2SubscribeToEvents = ); const handleAutoApproval = async ( - event: Web3WalletTypes.EventArguments['session_request'], + event: WalletKitTypes.EventArguments['session_request'], ) => { const newChainId = event?.params?.request?.params?.[0]?.chainId; @@ -281,7 +277,7 @@ export const walletConnectV2SubscribeToEvents = }; const handleUserInteraction = async ( - event: Web3WalletTypes.EventArguments['session_request'], + event: WalletKitTypes.EventArguments['session_request'], ) => { const {name: currentRouteName} = (navigationRef.current?.getCurrentRoute() as any) || {}; @@ -328,7 +324,7 @@ export const walletConnectV2SubscribeToEvents = }; const emitSessionEvents = async ( - event: Web3WalletTypes.EventArguments['session_request'], + event: WalletKitTypes.EventArguments['session_request'], eip155ChainId: string, ) => { const chainChanged = { @@ -358,7 +354,7 @@ export const walletConnectV2SubscribeToEvents = web3wallet.on( 'session_delete', - async (data: Web3WalletTypes.EventArguments['session_delete']) => { + async (data: WalletKitTypes.EventArguments['session_delete']) => { try { const {topic} = data; const session: WCV2SessionType | undefined = @@ -390,8 +386,8 @@ export const walletConnectV2SubscribeToEvents = }, ); web3wallet.on( - 'auth_request', - async (data: Web3WalletTypes.EventArguments['auth_request']) => { + 'session_authenticate', + async (data: WalletKitTypes.EventArguments['session_authenticate']) => { // TODO Handle auth_request try { dispatch( @@ -407,7 +403,7 @@ export const walletConnectV2SubscribeToEvents = web3wallet.on( 'session_request_expire', async ( - event: Web3WalletTypes.EventArguments['session_request_expire'], + event: WalletKitTypes.EventArguments['session_request_expire'], ) => { try { dispatch( @@ -502,7 +498,7 @@ export const walletConnectV2OnDeleteSession = return new Promise(async resolve => { try { if (!web3wallet) { - web3wallet = await Web3Wallet.init({ + web3wallet = await WalletKit.init({ core, metadata: WALLETCONNECT_V2_METADATA, }); @@ -559,7 +555,7 @@ export const walletConnectV2OnUpdateSession = async dispatch => { try { if (!web3wallet) { - web3wallet = await Web3Wallet.init({ + web3wallet = await WalletKit.init({ core, metadata: WALLETCONNECT_V2_METADATA, }); @@ -934,7 +930,7 @@ const WalletConnectV2UpdateSession = export const getGasWalletByRequest = ( - request: Web3WalletTypes.EventArguments['session_request'], + request: WalletKitTypes.EventArguments['session_request'], ): Effect => (_dispatch, getState) => { const sessionV2: WCV2SessionType | undefined = diff --git a/src/store/wallet-connect-v2/wallet-connect-v2.models.ts b/src/store/wallet-connect-v2/wallet-connect-v2.models.ts index e6c32e397..fa3d41f94 100644 --- a/src/store/wallet-connect-v2/wallet-connect-v2.models.ts +++ b/src/store/wallet-connect-v2/wallet-connect-v2.models.ts @@ -1,6 +1,6 @@ import {ProposalTypes, SessionTypes, Verify} from '@walletconnect/types'; import {Wallet} from '../wallet/wallet.models'; -import {Web3WalletTypes} from '@walletconnect/web3wallet'; +import {WalletKitTypes} from '@reown/walletkit'; import {ReactElement} from 'react'; export type WCV2Key = { @@ -21,7 +21,7 @@ export type WCV2RequestWalletsType = { }; export type WCV2RequestType = - Web3WalletTypes.EventArguments['session_request'] & { + WalletKitTypes.EventArguments['session_request'] & { createdOn?: number; transactionDataName?: string; swapAmount?: string; diff --git a/src/store/wallet-connect-v2/wallet-connect-v2.reducer.ts b/src/store/wallet-connect-v2/wallet-connect-v2.reducer.ts index 14ebca888..3e2e73314 100644 --- a/src/store/wallet-connect-v2/wallet-connect-v2.reducer.ts +++ b/src/store/wallet-connect-v2/wallet-connect-v2.reducer.ts @@ -3,7 +3,7 @@ import { WalletConnectV2ActionType, WalletConnectV2ActionTypes, } from './wallet-connect-v2.types'; -import {Web3WalletTypes} from '@walletconnect/web3wallet'; +import {WalletKitTypes} from '@reown/walletkit'; export const walletConnectV2ReduxPersistBlackList: (keyof WalletConnectV2State)[] = ['proposal', 'requests']; @@ -11,7 +11,7 @@ export const walletConnectV2ReduxPersistBlackList: (keyof WalletConnectV2State)[ export interface WalletConnectV2State { sessions: WCV2SessionType[]; requests: WCV2RequestType[]; - proposal?: Web3WalletTypes.EventArguments['session_proposal']; + proposal?: WalletKitTypes.EventArguments['session_proposal']; contractAbi: {[key: string]: string}; } diff --git a/src/store/wallet-connect-v2/wallet-connect-v2.types.ts b/src/store/wallet-connect-v2/wallet-connect-v2.types.ts index 0dc1e5356..bf6212fdb 100644 --- a/src/store/wallet-connect-v2/wallet-connect-v2.types.ts +++ b/src/store/wallet-connect-v2/wallet-connect-v2.types.ts @@ -1,5 +1,5 @@ import {WCV2RequestType, WCV2SessionType} from './wallet-connect-v2.models'; -import {Web3WalletTypes} from '@walletconnect/web3wallet'; +import {WalletKitTypes} from '@reown/walletkit'; export enum WalletConnectV2ActionTypes { SESSION_PROPOSAL = 'WALLET_CONNECT_V2/SESSION_PROPOSAL', @@ -14,7 +14,7 @@ export enum WalletConnectV2ActionTypes { interface SessionProposal { type: typeof WalletConnectV2ActionTypes.SESSION_PROPOSAL; payload: { - proposal?: Web3WalletTypes.EventArguments['session_proposal']; + proposal?: WalletKitTypes.EventArguments['session_proposal']; }; } diff --git a/src/utils/helper-methods.ts b/src/utils/helper-methods.ts index a28e619a7..10439b549 100644 --- a/src/utils/helper-methods.ts +++ b/src/utils/helper-methods.ts @@ -28,7 +28,7 @@ import { } from '../constants/WalletConnectV2'; import {BitpaySupportedTokenOptsByAddress} from '../constants/tokens'; import {Effect} from '../store'; -import {Web3WalletTypes} from '@walletconnect/web3wallet'; +import {WalletKitTypes} from '@reown/walletkit'; import { abiERC20, abiERC721, @@ -684,7 +684,7 @@ interface RequestUiValues { } export const processOtherMethodsRequest = - (event: Web3WalletTypes.SessionRequest): Effect> => + (event: WalletKitTypes.SessionRequest): Effect> => async (dispatch, getState) => { dispatch(LogActions.debug('processing other method transaction')); const { @@ -774,7 +774,7 @@ const parseStandardTokenTransactionData = (data?: string) => { }; export const processSwapRequest = - (event: Web3WalletTypes.SessionRequest): Effect> => + (event: WalletKitTypes.SessionRequest): Effect> => async (dispatch, getState) => { const { WALLET: {tokenOptionsByAddress, customTokenOptionsByAddress, keys}, diff --git a/yarn.lock b/yarn.lock index f3d2eadc4..d76ff3de2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3210,6 +3210,19 @@ color "^3.1.3" warn-once "^0.1.0" +"@reown/walletkit@1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@reown/walletkit/-/walletkit-1.1.1.tgz#8d4e77a1fd92d16827dbb11338d60fd6000eab08" + integrity sha512-GTPksxBO6VAsqiQ0oH2jt8C845Y7redpI4OxRy31vf7KKDPPGfldbsTYZ+FP9xSda00dCJJKuXhzewZT/xHuDg== + dependencies: + "@walletconnect/core" "2.17.1" + "@walletconnect/jsonrpc-provider" "1.0.14" + "@walletconnect/jsonrpc-utils" "1.0.8" + "@walletconnect/logger" "2.1.2" + "@walletconnect/sign-client" "2.17.1" + "@walletconnect/types" "2.17.1" + "@walletconnect/utils" "2.17.1" + "@shopify/flash-list@1.7.0": version "1.7.0" resolved "https://registry.yarnpkg.com/@shopify/flash-list/-/flash-list-1.7.0.tgz#a18fa09ccd521349e60f176eaf190ff30d24d597" @@ -3398,7 +3411,7 @@ "@stablelib/binary" "^1.0.1" "@stablelib/wipe" "^1.0.1" -"@stablelib/sha256@1.0.1", "@stablelib/sha256@^1.0.1": +"@stablelib/sha256@1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@stablelib/sha256/-/sha256-1.0.1.tgz#77b6675b67f9b0ea081d2e31bda4866297a3ae4f" integrity sha512-GIIH3e6KH+91FqGV42Kcj71Uefd/QEe7Dy42sBTeqppXV95ggCcxLTk39bEr+lZfJmp+ghsR07J++ORkRELsBQ== @@ -3421,7 +3434,7 @@ resolved "https://registry.yarnpkg.com/@stablelib/wipe/-/wipe-1.0.1.tgz#d21401f1d59ade56a62e139462a97f104ed19a36" integrity sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg== -"@stablelib/x25519@1.0.3", "@stablelib/x25519@^1.0.3": +"@stablelib/x25519@1.0.3": version "1.0.3" resolved "https://registry.yarnpkg.com/@stablelib/x25519/-/x25519-1.0.3.tgz#13c8174f774ea9f3e5e42213cbf9fc68a3c7b7fd" integrity sha512-KnTbKmUhPhHavzobclVJQG5kuivH+qDLpe84iRqX3CLrKp881cF160JvXJ+hjn1aMyCwYOKeIZefIH/P5cJoRw== @@ -4439,72 +4452,7 @@ "@typescript-eslint/types" "5.55.0" eslint-visitor-keys "^3.3.0" -"@walletconnect/auth-client@2.1.2": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@walletconnect/auth-client/-/auth-client-2.1.2.tgz#cee304fb0cdca76f6bf4aafac96ef9301862a7e8" - integrity sha512-ubJLn+vGb8sTdBFX6xAh4kjR5idrtS3RBngQWaJJJpEPBQmxMb8pM2q0FIRs8Is4K6jKy+uEhusMV+7ZBmTzjw== - dependencies: - "@ethersproject/hash" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - "@stablelib/random" "^1.0.2" - "@stablelib/sha256" "^1.0.1" - "@walletconnect/core" "^2.10.1" - "@walletconnect/events" "^1.0.1" - "@walletconnect/heartbeat" "^1.2.1" - "@walletconnect/jsonrpc-utils" "^1.0.8" - "@walletconnect/logger" "^2.0.1" - "@walletconnect/time" "^1.0.2" - "@walletconnect/utils" "^2.10.1" - events "^3.3.0" - isomorphic-unfetch "^3.1.0" - -"@walletconnect/core@2.11.3": - version "2.11.3" - resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.11.3.tgz#c81855722cb9afd411f91f5345c7874f48bade0b" - integrity sha512-/9m4EqiggFUwkQDv5PDWbcTI+yCVnBd/iYW5iIHEkivg2/mnBr2bQz2r/vtPjp19r/ZK62Dx0+UN3U+BWP8ulQ== - dependencies: - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-provider" "1.0.13" - "@walletconnect/jsonrpc-types" "1.0.3" - "@walletconnect/jsonrpc-utils" "1.0.8" - "@walletconnect/jsonrpc-ws-connection" "1.0.14" - "@walletconnect/keyvaluestorage" "^1.1.1" - "@walletconnect/logger" "^2.0.1" - "@walletconnect/relay-api" "^1.0.9" - "@walletconnect/relay-auth" "^1.0.4" - "@walletconnect/safe-json" "^1.0.2" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.11.3" - "@walletconnect/utils" "2.11.3" - events "^3.3.0" - isomorphic-unfetch "3.1.0" - lodash.isequal "4.5.0" - uint8arrays "^3.1.0" - -"@walletconnect/core@2.12.2": - version "2.12.2" - resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.12.2.tgz#12bd568b90daed876e58ebcc098c12843a3321e6" - integrity sha512-7Adv/b3pp9F42BkvReaaM4KS8NEvlkS7AMtwO3uF/o6aRMKtcfTJq9/jgWdKJh4RP8pPRTRFjCw6XQ/RZtT4aQ== - dependencies: - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-provider" "1.0.13" - "@walletconnect/jsonrpc-types" "1.0.3" - "@walletconnect/jsonrpc-utils" "1.0.8" - "@walletconnect/jsonrpc-ws-connection" "1.0.14" - "@walletconnect/keyvaluestorage" "^1.1.1" - "@walletconnect/logger" "^2.1.2" - "@walletconnect/relay-api" "^1.0.9" - "@walletconnect/relay-auth" "^1.0.4" - "@walletconnect/safe-json" "^1.0.2" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.12.2" - "@walletconnect/utils" "2.12.2" - events "^3.3.0" - isomorphic-unfetch "3.1.0" - lodash.isequal "4.5.0" - uint8arrays "^3.1.0" - -"@walletconnect/core@^2.10.1": +"@walletconnect/core@2.17.1": version "2.17.1" resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.17.1.tgz#8ee51d630068e4450014fe62a76af895ab1d349d" integrity sha512-SMgJR5hEyEE/tENIuvlEb4aB9tmMXPzQ38Y61VgYBmwAFEhOHtpt8EDfnfRWqEhMyXuBXG4K70Yh8c67Yry+Xw== @@ -4527,15 +4475,6 @@ lodash.isequal "4.5.0" uint8arrays "3.1.0" -"@walletconnect/encoding@^1.0.1": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@walletconnect/encoding/-/encoding-1.0.2.tgz#cb3942ad038d6a6bf01158f66773062dd25724da" - integrity sha512-CrwSBrjqJ7rpGQcTL3kU+Ief+Bcuu9PH6JLOb+wM6NITX1GTxR/MfNwnQfhLKK6xpRAyj2/nM04OOH6wS8Imag== - dependencies: - is-typedarray "1.0.0" - tslib "1.14.1" - typedarray-to-buffer "3.1.5" - "@walletconnect/environment@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@walletconnect/environment/-/environment-1.0.1.tgz#1d7f82f0009ab821a2ba5ad5e5a7b8ae3b214cd7" @@ -4551,16 +4490,7 @@ keyvaluestorage-interface "^1.0.0" tslib "1.14.1" -"@walletconnect/heartbeat@1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@walletconnect/heartbeat/-/heartbeat-1.2.1.tgz#afaa3a53232ae182d7c9cff41c1084472d8f32e9" - integrity sha512-yVzws616xsDLJxuG/28FqtZ5rzrTA4gUjdEMTbWB5Y8V1XHRmqq4efAxCw5ie7WjbXFSUyBHaWlMR+2/CpQC5Q== - dependencies: - "@walletconnect/events" "^1.0.1" - "@walletconnect/time" "^1.0.2" - tslib "1.14.1" - -"@walletconnect/heartbeat@1.2.2", "@walletconnect/heartbeat@^1.2.1": +"@walletconnect/heartbeat@1.2.2": version "1.2.2" resolved "https://registry.yarnpkg.com/@walletconnect/heartbeat/-/heartbeat-1.2.2.tgz#e8dc5179db7769950c6f9cf59b23516d9b95227d" integrity sha512-uASiRmC5MwhuRuf05vq4AT48Pq8RMi876zV8rr8cV969uTOzWdB/k+Lj5yI2PBtB1bGQisGen7MM1GcZlQTBXw== @@ -4569,15 +4499,6 @@ "@walletconnect/time" "^1.0.2" events "^3.3.0" -"@walletconnect/jsonrpc-provider@1.0.13": - version "1.0.13" - resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.13.tgz#9a74da648d015e1fffc745f0c7d629457f53648b" - integrity sha512-K73EpThqHnSR26gOyNEL+acEex3P7VWZe6KE12ZwKzAt2H4e5gldZHbjsu2QR9cLeJ8AXuO7kEMOIcRv1QEc7g== - dependencies: - "@walletconnect/jsonrpc-utils" "^1.0.8" - "@walletconnect/safe-json" "^1.0.2" - tslib "1.14.1" - "@walletconnect/jsonrpc-provider@1.0.14": version "1.0.14" resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.14.tgz#696f3e3b6d728b361f2e8b853cfc6afbdf2e4e3e" @@ -4595,14 +4516,6 @@ keyvaluestorage-interface "^1.0.0" tslib "1.14.1" -"@walletconnect/jsonrpc-types@1.0.3", "@walletconnect/jsonrpc-types@^1.0.3": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz#65e3b77046f1a7fa8347ae02bc1b841abe6f290c" - integrity sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw== - dependencies: - keyvaluestorage-interface "^1.0.0" - tslib "1.14.1" - "@walletconnect/jsonrpc-types@1.0.4": version "1.0.4" resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.4.tgz#ce1a667d79eadf2a2d9d002c152ceb68739c230c" @@ -4611,6 +4524,14 @@ events "^3.3.0" keyvaluestorage-interface "^1.0.0" +"@walletconnect/jsonrpc-types@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz#65e3b77046f1a7fa8347ae02bc1b841abe6f290c" + integrity sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw== + dependencies: + keyvaluestorage-interface "^1.0.0" + tslib "1.14.1" + "@walletconnect/jsonrpc-utils@1.0.8", "@walletconnect/jsonrpc-utils@^1.0.8": version "1.0.8" resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz#82d0cc6a5d6ff0ecc277cb35f71402c91ad48d72" @@ -4620,7 +4541,7 @@ "@walletconnect/jsonrpc-types" "^1.0.3" tslib "1.14.1" -"@walletconnect/jsonrpc-utils@^1.0.1", "@walletconnect/jsonrpc-utils@^1.0.6": +"@walletconnect/jsonrpc-utils@^1.0.6": version "1.0.6" resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.6.tgz#7fa58e6671247e64e189828103282e6258f5330f" integrity sha512-snp0tfkjPiDLQp/jrBewI+9SM33GPV4+Gjgldod6XQ7rFyQ5FZjnBxUkY4xWH0+arNxzQSi6v5iDXjCjSaorpg== @@ -4639,7 +4560,7 @@ events "^3.3.0" ws "^7.5.1" -"@walletconnect/keyvaluestorage@1.1.1", "@walletconnect/keyvaluestorage@^1.1.1": +"@walletconnect/keyvaluestorage@1.1.1": version "1.1.1" resolved "https://registry.yarnpkg.com/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.1.1.tgz#dd2caddabfbaf80f6b8993a0704d8b83115a1842" integrity sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA== @@ -4648,28 +4569,7 @@ idb-keyval "^6.2.1" unstorage "^1.9.0" -"@walletconnect/legacy-types@^2.0.0-rc.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@walletconnect/legacy-types/-/legacy-types-2.0.0.tgz#224278ae2874c6a2ca805c2d1d062a511dcf7227" - integrity sha512-sOVrA7HUdbI1OwKyPOQU0/DdvTSVFlsXWpAk2K2WvP2erTkBWPMTJq6cv2BmKdoJ3p6gLApT7sd+jHi3OF71uw== - dependencies: - "@walletconnect/jsonrpc-types" "^1.0.2" - -"@walletconnect/legacy-utils@2.0.0-rc.0": - version "2.0.0-rc.0" - resolved "https://registry.yarnpkg.com/@walletconnect/legacy-utils/-/legacy-utils-2.0.0-rc.0.tgz#633addeba16699611310cdad388eb71dc811543c" - integrity sha512-Ta2p0BgSQE/IxZAH7RaBKjunl1vE3jPt6VXtBLv20YccJ0VKVJLp4dboAME0hKcC3x7GQcNvg67nPztoVLOU2A== - dependencies: - "@walletconnect/encoding" "^1.0.1" - "@walletconnect/jsonrpc-utils" "^1.0.1" - "@walletconnect/legacy-types" "^2.0.0-rc.0" - "@walletconnect/safe-json" "^1.0.0" - "@walletconnect/window-getters" "^1.0.0" - "@walletconnect/window-metadata" "^1.0.0" - detect-browser "^5.2.1" - query-string "^6.13.5" - -"@walletconnect/logger@2.1.2", "@walletconnect/logger@^2.1.2": +"@walletconnect/logger@2.1.2": version "2.1.2" resolved "https://registry.yarnpkg.com/@walletconnect/logger/-/logger-2.1.2.tgz#813c9af61b96323a99f16c10089bfeb525e2a272" integrity sha512-aAb28I3S6pYXZHQm5ESB+V6rDqIYfsnHaQyzFbwUUBFY4H0OXx/YtTl8lvhUNhMMfb9UxbwEBS253TlXUYJWSw== @@ -4677,14 +4577,6 @@ "@walletconnect/safe-json" "^1.0.2" pino "7.11.0" -"@walletconnect/logger@^2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@walletconnect/logger/-/logger-2.0.1.tgz#7f489b96e9a1ff6bf3e58f0fbd6d69718bf844a8" - integrity sha512-SsTKdsgWm+oDTBeNE/zHxxr5eJfZmE9/5yp/Ku+zJtcTAjELb3DXueWkDXmE9h8uHIbJzIb5wj5lPdzyrjT6hQ== - dependencies: - pino "7.11.0" - tslib "1.14.1" - "@walletconnect/react-native-compat@2.14.0": version "2.14.0" resolved "https://registry.yarnpkg.com/@walletconnect/react-native-compat/-/react-native-compat-2.14.0.tgz#71d2275a941c878a3e0287ab5416e3be7331c582" @@ -4701,15 +4593,7 @@ dependencies: "@walletconnect/jsonrpc-types" "^1.0.2" -"@walletconnect/relay-api@^1.0.9": - version "1.0.9" - resolved "https://registry.yarnpkg.com/@walletconnect/relay-api/-/relay-api-1.0.9.tgz#f8c2c3993dddaa9f33ed42197fc9bfebd790ecaf" - integrity sha512-Q3+rylJOqRkO1D9Su0DPE3mmznbAalYapJ9qmzDgK28mYF9alcP3UwG/og5V7l7CFOqzCLi7B8BvcBUrpDj0Rg== - dependencies: - "@walletconnect/jsonrpc-types" "^1.0.2" - tslib "1.14.1" - -"@walletconnect/relay-auth@1.0.4", "@walletconnect/relay-auth@^1.0.4": +"@walletconnect/relay-auth@1.0.4": version "1.0.4" resolved "https://registry.yarnpkg.com/@walletconnect/relay-auth/-/relay-auth-1.0.4.tgz#0b5c55c9aa3b0ef61f526ce679f3ff8a5c4c2c7c" integrity sha512-kKJcS6+WxYq5kshpPaxGHdwf5y98ZwbfuS4EE/NkQzqrDFm5Cj+dP8LofzWvjrrLkZq7Afy7WrQMXdLy8Sx7HQ== @@ -4728,42 +4612,27 @@ dependencies: tslib "1.14.1" -"@walletconnect/safe-json@^1.0.0", "@walletconnect/safe-json@^1.0.1": +"@walletconnect/safe-json@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@walletconnect/safe-json/-/safe-json-1.0.1.tgz#9813fa0a7a544b16468730c2d7bed046ed160957" integrity sha512-Fm7e31oSYY15NQr8SsLJheKAy5L744udZf2lJKcz6wFmPJEzf7hOF0866o/rrldRzJnjZ4H2GJ45pFudsnLW5A== dependencies: tslib "1.14.1" -"@walletconnect/sign-client@2.11.3": - version "2.11.3" - resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.11.3.tgz#3ea7b3acf92ee31cc42b45d42e66c44b4720b28b" - integrity sha512-JVjLTxN/3NjMXv5zalSGKuSYLRyU2yX6AWEdq17cInlrwODpbWZr6PS1uxMWdH4r90DXBLhdtwDbEq/pfd0BPg== - dependencies: - "@walletconnect/core" "2.11.3" - "@walletconnect/events" "^1.0.1" - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-utils" "1.0.8" - "@walletconnect/logger" "^2.0.1" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.11.3" - "@walletconnect/utils" "2.11.3" - events "^3.3.0" - -"@walletconnect/sign-client@2.12.2": - version "2.12.2" - resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.12.2.tgz#10cddcba3740f726149c33ef1a9040a808d65e08" - integrity sha512-cM0ualXj6nVvLqS4BDNRk+ZWR+lubcsz/IHreH+3wYrQ2sV+C0fN6ctrd7MMGZss0C0qacWCx0pm62ZBuoKvqA== +"@walletconnect/sign-client@2.17.1": + version "2.17.1" + resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.17.1.tgz#0777536427eba1b725c111ecc08eb301e05a8c55" + integrity sha512-6rLw6YNy0smslH9wrFTbNiYrGsL3DrOsS5FcuU4gIN6oh8pGYOFZ5FiSyTTroc5tngOk3/Sd7dlGY9S7O4nveg== dependencies: - "@walletconnect/core" "2.12.2" - "@walletconnect/events" "^1.0.1" - "@walletconnect/heartbeat" "1.2.1" + "@walletconnect/core" "2.17.1" + "@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.12.2" - "@walletconnect/utils" "2.12.2" - events "^3.3.0" + "@walletconnect/logger" "2.1.2" + "@walletconnect/time" "1.0.2" + "@walletconnect/types" "2.17.1" + "@walletconnect/utils" "2.17.1" + events "3.3.0" "@walletconnect/time@1.0.2", "@walletconnect/time@^1.0.2": version "1.0.2" @@ -4772,30 +4641,6 @@ dependencies: tslib "1.14.1" -"@walletconnect/types@2.11.3": - version "2.11.3" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.11.3.tgz#8ce43cb77e8fd9d5269847cdd73bcfa7cce7dd1a" - integrity sha512-JY4wA9MVosDW9dcJMTpnwliste0aJGJ1X6Q4ulLsQsgWRSEBRkLila0oUT01TDBW9Yq8uUp7uFOUTaKx6KWVAg== - dependencies: - "@walletconnect/events" "^1.0.1" - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-types" "1.0.3" - "@walletconnect/keyvaluestorage" "^1.1.1" - "@walletconnect/logger" "^2.0.1" - events "^3.3.0" - -"@walletconnect/types@2.12.2": - version "2.12.2" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.12.2.tgz#8b64a2015a0a96972d28acb2ff317a9a994abfdb" - integrity sha512-9CmwTlPbrFTzayTL9q7xM7s3KTJkS6kYFtH2m1/fHFgALs6pIUjf1qAx1TF2E4tv7SEzLAIzU4NqgYUt2vWXTg== - dependencies: - "@walletconnect/events" "^1.0.1" - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-types" "1.0.3" - "@walletconnect/keyvaluestorage" "^1.1.1" - "@walletconnect/logger" "^2.0.1" - events "^3.3.0" - "@walletconnect/types@2.17.1": version "2.17.1" resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.17.1.tgz#425dedbe5853231252d081f61448c55ecd341c96" @@ -4808,47 +4653,7 @@ "@walletconnect/logger" "2.1.2" events "3.3.0" -"@walletconnect/utils@2.11.3": - version "2.11.3" - resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.11.3.tgz#3731809b54902655cf202e0bf0e8f268780e8b54" - integrity sha512-jsdNkrl/IcTkzWFn0S2d0urzBXg6RxVJtUYRsUx3qI3wzOGiABP9ui3yiZ3SgZOv9aRe62PaNp1qpbYZ+zPb8Q== - 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.9" - "@walletconnect/safe-json" "^1.0.2" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.11.3" - "@walletconnect/window-getters" "^1.0.1" - "@walletconnect/window-metadata" "^1.0.1" - detect-browser "5.3.0" - query-string "7.1.3" - uint8arrays "^3.1.0" - -"@walletconnect/utils@2.12.2": - version "2.12.2" - resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.12.2.tgz#a2c349d4effef7c1c5e72e74a5483d8dfbb10918" - integrity sha512-zf50HeS3SfoLv1N9GPl2IXTZ9TsXfet4usVAsZmX9P6/Xzq7d/7QakjVQCHH/Wk1O9XkcsfeoZoUhRxoMJ5uJw== - 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.9" - "@walletconnect/safe-json" "^1.0.2" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.12.2" - "@walletconnect/window-getters" "^1.0.1" - "@walletconnect/window-metadata" "^1.0.1" - detect-browser "5.3.0" - query-string "7.1.3" - uint8arrays "^3.1.0" - -"@walletconnect/utils@2.17.1", "@walletconnect/utils@^2.10.1": +"@walletconnect/utils@2.17.1": version "2.17.1" resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.17.1.tgz#fc57ffb89fc101fa1bf015de016ea01091d10ae0" integrity sha512-KL7pPwq7qUC+zcTmvxGqIyYanfHgBQ+PFd0TEblg88jM7EjuDLhjyyjtkhyE/2q7QgR7OanIK7pCpilhWvBsBQ== @@ -4874,28 +4679,14 @@ query-string "7.1.3" uint8arrays "3.1.0" -"@walletconnect/web3wallet@1.11.2": - version "1.11.2" - resolved "https://registry.yarnpkg.com/@walletconnect/web3wallet/-/web3wallet-1.11.2.tgz#0c6af495518a92036b0bb72a39e54bc10127b541" - integrity sha512-jrxXmZyg+czkHXg4d0jdhxajjfbgPvS9dW4UzdGdz12dXsX7CFgZxz+LWc/oakhLyngUtwHtyBlgaFWxamS3AQ== - dependencies: - "@walletconnect/auth-client" "2.1.2" - "@walletconnect/core" "2.12.2" - "@walletconnect/jsonrpc-provider" "1.0.13" - "@walletconnect/jsonrpc-utils" "1.0.8" - "@walletconnect/logger" "2.1.2" - "@walletconnect/sign-client" "2.12.2" - "@walletconnect/types" "2.12.2" - "@walletconnect/utils" "2.12.2" - -"@walletconnect/window-getters@1.0.1", "@walletconnect/window-getters@^1.0.0", "@walletconnect/window-getters@^1.0.1": +"@walletconnect/window-getters@1.0.1", "@walletconnect/window-getters@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@walletconnect/window-getters/-/window-getters-1.0.1.tgz#f36d1c72558a7f6b87ecc4451fc8bd44f63cbbdc" integrity sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q== dependencies: tslib "1.14.1" -"@walletconnect/window-metadata@1.0.1", "@walletconnect/window-metadata@^1.0.0", "@walletconnect/window-metadata@^1.0.1": +"@walletconnect/window-metadata@1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@walletconnect/window-metadata/-/window-metadata-1.0.1.tgz#2124f75447b7e989e4e4e1581d55d25bc75f7be5" integrity sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA== @@ -7317,7 +7108,7 @@ destroy@1.2.0: resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== -detect-browser@5.3.0, detect-browser@^5.2.1: +detect-browser@5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/detect-browser/-/detect-browser-5.3.0.tgz#9705ef2bddf46072d0f7265a1fe300e36fe7ceca" integrity sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w== @@ -10033,7 +9824,7 @@ is-typed-array@^1.1.10, is-typed-array@^1.1.3, is-typed-array@^1.1.9: gopd "^1.0.1" has-tostringtag "^1.0.0" -is-typedarray@1.0.0, is-typedarray@^1.0.0, is-typedarray@~1.0.0: +is-typedarray@^1.0.0, is-typedarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== @@ -10140,14 +9931,6 @@ isobject@^4.0.0: resolved "https://registry.yarnpkg.com/isobject/-/isobject-4.0.0.tgz#3f1c9155e73b192022a80819bacd0343711697b0" integrity sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA== -isomorphic-unfetch@3.1.0, 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" - isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" @@ -12571,7 +12354,7 @@ node-fetch-native@^1.6.2, node-fetch-native@^1.6.3, node-fetch-native@^1.6.4: resolved "https://registry.yarnpkg.com/node-fetch-native/-/node-fetch-native-1.6.4.tgz#679fc8fd8111266d47d7e72c379f1bed9acff06e" integrity sha512-IhOigYzAKHd244OC0JIMIUrjzctirCmPkaIfhDeGcEETWof5zKYUW7e7MYvChGWh/4CJeXEgsRyGzuF334rOOQ== -node-fetch@^2.2.0, node-fetch@^2.6.0, node-fetch@^2.6.1: +node-fetch@^2.2.0, node-fetch@^2.6.0: version "2.6.9" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.9.tgz#7c7f744b5cc6eb5fd404e0c7a9fec630a55657e6" integrity sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg== @@ -13681,16 +13464,6 @@ query-string@^5.0.1: object-assign "^4.1.0" strict-uri-encode "^1.0.0" -query-string@^6.13.5: - version "6.14.1" - resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.14.1.tgz#7ac2dca46da7f309449ba0f86b1fd28255b0c86a" - integrity sha512-XDxAeVmpfu1/6IjyT/gXHOl+S0vQ9owggJ30hhWKdHAsNPOcasn5o9BW0eejZqL2e4vMjhAxoW3jVHcD6mbcYw== - dependencies: - decode-uri-component "^0.2.0" - filter-obj "^1.1.0" - split-on-first "^1.0.0" - strict-uri-encode "^2.0.0" - querystring@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" @@ -16445,7 +16218,7 @@ typed-styles@^0.0.7: resolved "https://registry.yarnpkg.com/typed-styles/-/typed-styles-0.0.7.tgz#93392a008794c4595119ff62dde6809dbc40a3d9" integrity sha512-pzP0PWoZUhsECYjABgCGQlRGL1n7tOHsgwYv3oIiEpJwGhFTuty/YNeduxQYzXXa3Ge5BdT6sHYIQYpl4uJ+5Q== -typedarray-to-buffer@3.1.5, typedarray-to-buffer@^3.1.5: +typedarray-to-buffer@^3.1.5: version "3.1.5" resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== @@ -16502,7 +16275,7 @@ uint8arrays@3.1.0: dependencies: multiformats "^9.4.2" -uint8arrays@^3.0.0, uint8arrays@^3.1.0: +uint8arrays@^3.0.0: version "3.1.1" resolved "https://registry.yarnpkg.com/uint8arrays/-/uint8arrays-3.1.1.tgz#2d8762acce159ccd9936057572dade9459f65ae0" integrity sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg== @@ -16558,11 +16331,6 @@ unenv@^1.9.0: node-fetch-native "^1.6.4" pathe "^1.1.2" -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"