chore: Update web3modal (#134)

* Update web3modal

* Update dapps/react-dapp-v2/src/contexts/ClientContext.tsx

Co-authored-by: Ben Kremer <ben@walletconnect.com>

---------

Co-authored-by: Ben Kremer <ben@walletconnect.com>
This commit is contained in:
0xAsimetriq 2023-03-14 16:46:16 +02:00 committed by GitHub
parent 2eb66d182d
commit bd60654e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 20 deletions

View File

@ -20,7 +20,7 @@
"@walletconnect/sign-client": "2.4.10", "@walletconnect/sign-client": "2.4.10",
"@walletconnect/types": "2.4.10", "@walletconnect/types": "2.4.10",
"@walletconnect/utils": "2.4.10", "@walletconnect/utils": "2.4.10",
"@web3modal/standalone": "2.1.1", "@web3modal/standalone": "2.2.0",
"axios": "^0.21.1", "axios": "^0.21.1",
"blockies-ts": "^1.0.0", "blockies-ts": "^1.0.0",
"bs58": "^5.0.0", "bs58": "^5.0.0",

View File

@ -2,6 +2,7 @@ import Client from "@walletconnect/sign-client";
import { PairingTypes, SessionTypes } from "@walletconnect/types"; import { PairingTypes, SessionTypes } from "@walletconnect/types";
import { Web3Modal } from "@web3modal/standalone"; import { Web3Modal } from "@web3modal/standalone";
import { PublicKey } from "@solana/web3.js";
import { import {
createContext, createContext,
ReactNode, ReactNode,
@ -9,11 +10,11 @@ import {
useContext, useContext,
useEffect, useEffect,
useMemo, useMemo,
useState,
useRef, useRef,
useState,
} from "react"; } from "react";
import { PublicKey } from "@solana/web3.js";
import { getAppMetadata, getSdkError } from "@walletconnect/utils";
import { import {
DEFAULT_APP_METADATA, DEFAULT_APP_METADATA,
DEFAULT_LOGGER, DEFAULT_LOGGER,
@ -21,9 +22,8 @@ import {
DEFAULT_RELAY_URL, DEFAULT_RELAY_URL,
} from "../constants"; } from "../constants";
import { AccountBalances, apiGetAccountBalance } from "../helpers"; import { AccountBalances, apiGetAccountBalance } from "../helpers";
import { getAppMetadata, getSdkError } from "@walletconnect/utils";
import { getPublicKeysFromAccounts } from "../helpers/solana";
import { getRequiredNamespaces } from "../helpers/namespaces"; import { getRequiredNamespaces } from "../helpers/namespaces";
import { getPublicKeysFromAccounts } from "../helpers/solana";
/** /**
* Types * Types

View File

@ -3529,28 +3529,28 @@
"@walletconnect/window-getters" "^1.0.1" "@walletconnect/window-getters" "^1.0.1"
tslib "1.14.1" tslib "1.14.1"
"@web3modal/core@2.1.1": "@web3modal/core@2.2.0":
version "2.1.1" version "2.2.0"
resolved "https://registry.yarnpkg.com/@web3modal/core/-/core-2.1.1.tgz#e1ebe8faaae6e4b74df911fd5ac6023f280b12c1" resolved "https://registry.yarnpkg.com/@web3modal/core/-/core-2.2.0.tgz#847459e1ab1766f312c39715270a7ca0fe831666"
integrity sha512-GAZAvfkPHoX2/fghQmf+y36uDspk9wBJxG7qLPUNTHzvIfRoNHWbTt3iEvRdPmUZwbTGDn1jvz9z0uU67gvZdw== integrity sha512-Kafg/KtK6S9x0Ofcaq9hj7dRK5/541nM+LnayPmHxx4fSrDgcM9YYhL12fI4BG1xGOJwkeZjgFOtS0qf123Cjw==
dependencies: dependencies:
buffer "6.0.3" buffer "6.0.3"
valtio "1.9.0" valtio "1.9.0"
"@web3modal/standalone@2.1.1": "@web3modal/standalone@2.2.0":
version "2.1.1" version "2.2.0"
resolved "https://registry.yarnpkg.com/@web3modal/standalone/-/standalone-2.1.1.tgz#e496e54af5ecf6e282ff7f287eebce7f1ac90bd2" resolved "https://registry.yarnpkg.com/@web3modal/standalone/-/standalone-2.2.0.tgz#9f81ed976dd16bd795f902503065f75c9160eab3"
integrity sha512-K06VkZqltLIBKpnLeM2oszRDSdLnwXJWCcItWEOkH4LDFQIiq8lSeLhcamuadRxRKF4ZyTSLHHJ5MFcMfZEHQQ== integrity sha512-cLFW4VamSJ7L4sM5OGmr1SHK3FgyLUMEaacvHsCA3XSvUF0LxbMC+N4uBsONrW4c0JyIjTdeii1GqG4B3jwn7Q==
dependencies: dependencies:
"@web3modal/core" "2.1.1" "@web3modal/core" "2.2.0"
"@web3modal/ui" "2.1.1" "@web3modal/ui" "2.2.0"
"@web3modal/ui@2.1.1": "@web3modal/ui@2.2.0":
version "2.1.1" version "2.2.0"
resolved "https://registry.yarnpkg.com/@web3modal/ui/-/ui-2.1.1.tgz#300dceeee8a54be70aad74fb4a781ac22439eded" resolved "https://registry.yarnpkg.com/@web3modal/ui/-/ui-2.2.0.tgz#2837da46706f1a3fcdf2f2c22e7ed029e235a3ab"
integrity sha512-0jRDxgPc/peaE5KgqnzzriXhdVu5xNyCMP5Enqdpd77VkknJIs7h16MYKidxgFexieyHpCOssWySsryWcP2sXA== integrity sha512-jcV5C9AuMdsFdf6Ljsr0v2lInu8FJJyXcZPaMHkgYNIczzgMEpDE+UOA7hLnyCTUxM9R0AgRcgfTyMWb9H8Ssw==
dependencies: dependencies:
"@web3modal/core" "2.1.1" "@web3modal/core" "2.2.0"
lit "2.6.1" lit "2.6.1"
motion "10.15.5" motion "10.15.5"
qrcode "1.5.1" qrcode "1.5.1"