chore(deps): upgrade canonical wallet/dapp example to 2.0.0

This commit is contained in:
Ben Kremer 2022-10-11 10:12:44 -05:00
parent b31232f2f6
commit 5f484ae65d
5 changed files with 54 additions and 69 deletions

View File

@ -1,6 +1,6 @@
{
"name": "react-dapp-v2-next",
"version": "2.0.0-rc.4",
"version": "2.0.0",
"private": true,
"scripts": {
"dev": "next dev",
@ -15,9 +15,9 @@
"@solana/web3.js": "^1.36.0",
"@walletconnect/encoding": "^1.0.1",
"@walletconnect/qrcode-modal": "^1.7.8",
"@walletconnect/sign-client": "2.0.0-rc.4",
"@walletconnect/types": "2.0.0-rc.4",
"@walletconnect/utils": "2.0.0-rc.4",
"@walletconnect/sign-client": "2.0.0",
"@walletconnect/types": "2.0.0",
"@walletconnect/utils": "2.0.0",
"axios": "^0.21.1",
"blockies-ts": "^1.0.0",
"bs58": "^5.0.0",

View File

@ -3063,10 +3063,10 @@
"@walletconnect/window-metadata" "1.0.0"
detect-browser "5.2.0"
"@walletconnect/core@2.0.0-rc.4":
version "2.0.0-rc.4"
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.0.0-rc.4.tgz#2423f48bf7a6df1b1fcfef697f0feeca204374ce"
integrity sha512-DBxKE5cpRvfa/d8LZLhvAXzPn5+Ezax9meV1tR5WAjmCqcRxHC6YFNrwFupt5WZrpSpAhrPTOmL5hGs9zvBzrQ==
"@walletconnect/core@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.0.0.tgz#daffe2a1e46fe97cf7d8519aa3085240e2246a1c"
integrity sha512-cdgeOXormJDMFEgoBcDHxQ3F81H8N/o4rNHFGJjwAahGmdJ+/X3OVJrJMJSgYnByZE0lkJ0NQIncuvVPFwhbQg==
dependencies:
"@walletconnect/heartbeat" "1.0.0"
"@walletconnect/jsonrpc-provider" "1.0.5"
@ -3078,8 +3078,8 @@
"@walletconnect/relay-auth" "1.0.3"
"@walletconnect/safe-json" "1.0.0"
"@walletconnect/time" "1.0.1"
"@walletconnect/types" "2.0.0-rc.4"
"@walletconnect/utils" "2.0.0-rc.4"
"@walletconnect/types" "2.0.0"
"@walletconnect/utils" "2.0.0"
lodash.isequal "4.5.0"
pino "6.7.0"
pino-pretty "4.3.0"
@ -3145,14 +3145,6 @@
"@walletconnect/safe-json" "^1.0.0"
ws "^7.5.1"
"@walletconnect/keyvaluestorage@1.0.0":
version "1.0.0"
resolved "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.0.0.tgz"
integrity sha512-dlIrX/pCjuXMUprkLdy0hw0Ibr3To9nCdG19mPqd/lRdRWsPItBL+79LClVplMxb0cuF3qlTuGTNx/hmUKYmWA==
dependencies:
localStorage "^1.0.4"
safe-json-utils "^1.1.1"
"@walletconnect/keyvaluestorage@1.0.1-rc.2":
version "1.0.1-rc.2"
resolved "https://registry.yarnpkg.com/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.0.1-rc.2.tgz#d1dafec01a0e33fe3b70ed22e24fe5c5f0a09b37"
@ -3208,20 +3200,20 @@
resolved "https://registry.npmjs.org/@walletconnect/safe-json/-/safe-json-1.0.0.tgz"
integrity sha512-QJzp/S/86sUAgWY6eh5MKYmSfZaRpIlmCJdi5uG4DJlKkZrHEF7ye7gA+VtbVzvTtpM/gRwO2plQuiooIeXjfg==
"@walletconnect/sign-client@2.0.0-rc.4":
version "2.0.0-rc.4"
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.0.0-rc.4.tgz#d282c29c2f93b17f12e8d2eb2dde5dfae8676591"
integrity sha512-LW38YpEjEblqFyH1J5h0xpn+F7eIfmc5AHECcY/bQYVKywEcQHojdKimxUSNWU2ThMO1iJK4e7VJj6AgTP1vgg==
"@walletconnect/sign-client@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.0.0.tgz#07f932a0e9929c0ecf84414e43ddd7816a459295"
integrity sha512-L+3tgy22jHvojM5BCwUJXIPW0hNjvnaqyzrbObJ/msJKLQZGAh/vK9MYnfEvUDyRaK9QWMOoyCADg84nxHQayA==
dependencies:
"@walletconnect/core" "2.0.0-rc.4"
"@walletconnect/core" "2.0.0"
"@walletconnect/events" "1.0.0"
"@walletconnect/heartbeat" "1.0.0"
"@walletconnect/jsonrpc-provider" "1.0.5"
"@walletconnect/jsonrpc-utils" "1.0.3"
"@walletconnect/logger" "1.0.1"
"@walletconnect/time" "1.0.1"
"@walletconnect/types" "2.0.0-rc.4"
"@walletconnect/utils" "2.0.0-rc.4"
"@walletconnect/types" "2.0.0"
"@walletconnect/utils" "2.0.0"
pino "6.7.0"
pino-pretty "4.3.0"
@ -3230,25 +3222,25 @@
resolved "https://registry.npmjs.org/@walletconnect/time/-/time-1.0.1.tgz"
integrity sha512-LtNtHupTNranehLMh8Z/JN6xVySysSoJNjNCQ0ML+hOUkim5QX/VdvfovSpaX9qA2b95u7bIuTcq0O3UBk7Iyw==
"@walletconnect/types@2.0.0-rc.4":
version "2.0.0-rc.4"
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.0.0-rc.4.tgz#7068df28041f0600b9e0d67a803b2e32456080bf"
integrity sha512-ZNGkwWNVQab85cNKyp5h82pripRoa46loEo5gWlR8H/KNIrll1GZbijnd8mZb4RF+TLLN+FrQqfZZNcaeWNFCw==
"@walletconnect/types@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.0.0.tgz#e8083c2fc7c6ee4665e90102dad1f365494008f1"
integrity sha512-Adm+A5cC1+M+aRh3BPzH85v5lbNf2tFKrVVZ1bcl6SuDIsoi7amjIU9IEzOs+F9g53AxFgwLlBVRaqARMOEGkA==
dependencies:
"@walletconnect/events" "1.0.0"
"@walletconnect/heartbeat" "1.0.0"
"@walletconnect/jsonrpc-types" "1.0.1"
"@walletconnect/keyvaluestorage" "1.0.0"
"@walletconnect/keyvaluestorage" "1.0.1-rc.2"
"@walletconnect/types@^1.8.0":
version "1.8.0"
resolved "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz"
integrity sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==
"@walletconnect/utils@2.0.0-rc.4":
version "2.0.0-rc.4"
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.0.0-rc.4.tgz#a6717a26e0734a9708d79c7679f2d08baac39802"
integrity sha512-qg3a924eauH1u/FfgdjEEkJuNlFsKglh2AGosnFXB4bYaAhFBZkMxZfh0W6I2s9GJWU8pyr21qso489YIDWIVw==
"@walletconnect/utils@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.0.0.tgz#f82ea46235cea1d594a6209df28cc3bbd0e1b634"
integrity sha512-WL4gGUp5cGxfWqktSci6j3iowEK/TM4kVENDILYn1pZ57Q6g7CqJ7Ls3p1qDDkhw9dfypqjEx9i0h0mzCyFTIQ==
dependencies:
"@stablelib/chacha20poly1305" "1.0.1"
"@stablelib/hkdf" "1.0.1"
@ -3259,7 +3251,7 @@
"@walletconnect/relay-api" "1.0.6"
"@walletconnect/safe-json" "1.0.0"
"@walletconnect/time" "1.0.1"
"@walletconnect/types" "2.0.0-rc.4"
"@walletconnect/types" "2.0.0"
"@walletconnect/window-getters" "1.0.0"
"@walletconnect/window-metadata" "1.0.0"
detect-browser "5.3.0"

View File

@ -17,8 +17,8 @@
"@nextui-org/react": "1.0.8-beta.5",
"@polkadot/keyring": "^10.1.2",
"@solana/web3.js": "1.43.0",
"@walletconnect/sign-client": "2.0.0-rc.4",
"@walletconnect/utils": "2.0.0-rc.4",
"@walletconnect/sign-client": "2.0.0",
"@walletconnect/utils": "2.0.0",
"bs58": "5.0.0",
"cosmos-wallet": "1.2.0",
"ethers": "5.6.6",
@ -36,7 +36,7 @@
"devDependencies": {
"@types/node": "17.0.35",
"@types/react": "18.0.9",
"@walletconnect/types": "2.0.0-rc.4",
"@walletconnect/types": "2.0.0",
"eslint": "8.15.0",
"eslint-config-next": "12.1.6",
"eslint-config-prettier": "8.5.0",

View File

@ -4,6 +4,7 @@ export let signClient: SignClient
export async function createSignClient(relayerRegionURL: string) {
signClient = await SignClient.init({
logger: 'debug',
projectId: process.env.NEXT_PUBLIC_PROJECT_ID,
relayUrl: relayerRegionURL ?? process.env.NEXT_PUBLIC_RELAYER_URL,
metadata: {

View File

@ -2158,10 +2158,10 @@
"@typescript-eslint/types" "5.26.0"
eslint-visitor-keys "^3.3.0"
"@walletconnect/core@2.0.0-rc.4":
version "2.0.0-rc.4"
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.0.0-rc.4.tgz#2423f48bf7a6df1b1fcfef697f0feeca204374ce"
integrity sha512-DBxKE5cpRvfa/d8LZLhvAXzPn5+Ezax9meV1tR5WAjmCqcRxHC6YFNrwFupt5WZrpSpAhrPTOmL5hGs9zvBzrQ==
"@walletconnect/core@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.0.0.tgz#daffe2a1e46fe97cf7d8519aa3085240e2246a1c"
integrity sha512-cdgeOXormJDMFEgoBcDHxQ3F81H8N/o4rNHFGJjwAahGmdJ+/X3OVJrJMJSgYnByZE0lkJ0NQIncuvVPFwhbQg==
dependencies:
"@walletconnect/heartbeat" "1.0.0"
"@walletconnect/jsonrpc-provider" "1.0.5"
@ -2173,8 +2173,8 @@
"@walletconnect/relay-auth" "1.0.3"
"@walletconnect/safe-json" "1.0.0"
"@walletconnect/time" "1.0.1"
"@walletconnect/types" "2.0.0-rc.4"
"@walletconnect/utils" "2.0.0-rc.4"
"@walletconnect/types" "2.0.0"
"@walletconnect/utils" "2.0.0"
lodash.isequal "4.5.0"
pino "6.7.0"
pino-pretty "4.3.0"
@ -2232,14 +2232,6 @@
"@walletconnect/safe-json" "^1.0.0"
ws "^7.5.1"
"@walletconnect/keyvaluestorage@1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.0.0.tgz#2733fc32c868f534419308f90b079fba0ef7d66e"
integrity sha512-dlIrX/pCjuXMUprkLdy0hw0Ibr3To9nCdG19mPqd/lRdRWsPItBL+79LClVplMxb0cuF3qlTuGTNx/hmUKYmWA==
dependencies:
localStorage "^1.0.4"
safe-json-utils "^1.1.1"
"@walletconnect/keyvaluestorage@1.0.1-rc.2":
version "1.0.1-rc.2"
resolved "https://registry.yarnpkg.com/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.0.1-rc.2.tgz#d1dafec01a0e33fe3b70ed22e24fe5c5f0a09b37"
@ -2278,20 +2270,20 @@
resolved "https://registry.yarnpkg.com/@walletconnect/safe-json/-/safe-json-1.0.0.tgz#12eeb11d43795199c045fafde97e3c91646683b2"
integrity sha512-QJzp/S/86sUAgWY6eh5MKYmSfZaRpIlmCJdi5uG4DJlKkZrHEF7ye7gA+VtbVzvTtpM/gRwO2plQuiooIeXjfg==
"@walletconnect/sign-client@2.0.0-rc.4":
version "2.0.0-rc.4"
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.0.0-rc.4.tgz#d282c29c2f93b17f12e8d2eb2dde5dfae8676591"
integrity sha512-LW38YpEjEblqFyH1J5h0xpn+F7eIfmc5AHECcY/bQYVKywEcQHojdKimxUSNWU2ThMO1iJK4e7VJj6AgTP1vgg==
"@walletconnect/sign-client@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.0.0.tgz#07f932a0e9929c0ecf84414e43ddd7816a459295"
integrity sha512-L+3tgy22jHvojM5BCwUJXIPW0hNjvnaqyzrbObJ/msJKLQZGAh/vK9MYnfEvUDyRaK9QWMOoyCADg84nxHQayA==
dependencies:
"@walletconnect/core" "2.0.0-rc.4"
"@walletconnect/core" "2.0.0"
"@walletconnect/events" "1.0.0"
"@walletconnect/heartbeat" "1.0.0"
"@walletconnect/jsonrpc-provider" "1.0.5"
"@walletconnect/jsonrpc-utils" "1.0.3"
"@walletconnect/logger" "1.0.1"
"@walletconnect/time" "1.0.1"
"@walletconnect/types" "2.0.0-rc.4"
"@walletconnect/utils" "2.0.0-rc.4"
"@walletconnect/types" "2.0.0"
"@walletconnect/utils" "2.0.0"
pino "6.7.0"
pino-pretty "4.3.0"
@ -2300,20 +2292,20 @@
resolved "https://registry.yarnpkg.com/@walletconnect/time/-/time-1.0.1.tgz#645f596887e67c56522edbc2b170d46a97c87ce0"
integrity sha512-LtNtHupTNranehLMh8Z/JN6xVySysSoJNjNCQ0ML+hOUkim5QX/VdvfovSpaX9qA2b95u7bIuTcq0O3UBk7Iyw==
"@walletconnect/types@2.0.0-rc.4":
version "2.0.0-rc.4"
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.0.0-rc.4.tgz#7068df28041f0600b9e0d67a803b2e32456080bf"
integrity sha512-ZNGkwWNVQab85cNKyp5h82pripRoa46loEo5gWlR8H/KNIrll1GZbijnd8mZb4RF+TLLN+FrQqfZZNcaeWNFCw==
"@walletconnect/types@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.0.0.tgz#e8083c2fc7c6ee4665e90102dad1f365494008f1"
integrity sha512-Adm+A5cC1+M+aRh3BPzH85v5lbNf2tFKrVVZ1bcl6SuDIsoi7amjIU9IEzOs+F9g53AxFgwLlBVRaqARMOEGkA==
dependencies:
"@walletconnect/events" "1.0.0"
"@walletconnect/heartbeat" "1.0.0"
"@walletconnect/jsonrpc-types" "1.0.1"
"@walletconnect/keyvaluestorage" "1.0.0"
"@walletconnect/keyvaluestorage" "1.0.1-rc.2"
"@walletconnect/utils@2.0.0-rc.4":
version "2.0.0-rc.4"
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.0.0-rc.4.tgz#a6717a26e0734a9708d79c7679f2d08baac39802"
integrity sha512-qg3a924eauH1u/FfgdjEEkJuNlFsKglh2AGosnFXB4bYaAhFBZkMxZfh0W6I2s9GJWU8pyr21qso489YIDWIVw==
"@walletconnect/utils@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.0.0.tgz#f82ea46235cea1d594a6209df28cc3bbd0e1b634"
integrity sha512-WL4gGUp5cGxfWqktSci6j3iowEK/TM4kVENDILYn1pZ57Q6g7CqJ7Ls3p1qDDkhw9dfypqjEx9i0h0mzCyFTIQ==
dependencies:
"@stablelib/chacha20poly1305" "1.0.1"
"@stablelib/hkdf" "1.0.1"
@ -2324,7 +2316,7 @@
"@walletconnect/relay-api" "1.0.6"
"@walletconnect/safe-json" "1.0.0"
"@walletconnect/time" "1.0.1"
"@walletconnect/types" "2.0.0-rc.4"
"@walletconnect/types" "2.0.0"
"@walletconnect/window-getters" "1.0.0"
"@walletconnect/window-metadata" "1.0.0"
detect-browser "5.3.0"