chore(deps): update v2 dapp/wallet to latest @walletconnect/* deps

This commit is contained in:
Ben Kremer 2023-02-22 17:08:00 +01:00
parent 9347d1a20e
commit 8de8339179
6 changed files with 66 additions and 57 deletions

View File

@ -17,9 +17,9 @@
"@polkadot/util-crypto": "^10.1.2", "@polkadot/util-crypto": "^10.1.2",
"@solana/web3.js": "^1.36.0", "@solana/web3.js": "^1.36.0",
"@walletconnect/encoding": "^1.0.1", "@walletconnect/encoding": "^1.0.1",
"@walletconnect/sign-client": "2.4.4", "@walletconnect/sign-client": "2.4.5",
"@walletconnect/types": "2.4.4", "@walletconnect/types": "2.4.5",
"@walletconnect/utils": "2.4.4", "@walletconnect/utils": "2.4.5",
"@web3modal/standalone": "2.1.1", "@web3modal/standalone": "2.1.1",
"axios": "^0.21.1", "axios": "^0.21.1",
"blockies-ts": "^1.0.0", "blockies-ts": "^1.0.0",

View File

@ -3319,10 +3319,10 @@
"@typescript-eslint/types" "5.43.0" "@typescript-eslint/types" "5.43.0"
eslint-visitor-keys "^3.3.0" eslint-visitor-keys "^3.3.0"
"@walletconnect/core@2.4.4": "@walletconnect/core@2.4.5":
version "2.4.4" version "2.4.5"
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.4.4.tgz#5f22fd2e9a13c3995c164530f5e77b671bb40850" resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.4.5.tgz#7f8055341022ab0026eb6863a4055d75284726e9"
integrity sha512-tdMmPNGgpTrk95hG8H5V6Du59HA4e3tVdvGngZjcja6VnmkfZdW4fGCWaJWyKYkrQQknDug4dH47/HZ6cAxj/g== integrity sha512-xN0XWupUdHf15rEvATen2r1NNs81RPX3s2vO0kopnfmNGBkXPkPsF/VFbWpcsYVSo1189H+7prX7IM76TdxclQ==
dependencies: dependencies:
"@walletconnect/heartbeat" "1.2.0" "@walletconnect/heartbeat" "1.2.0"
"@walletconnect/jsonrpc-provider" "^1.0.6" "@walletconnect/jsonrpc-provider" "^1.0.6"
@ -3334,8 +3334,8 @@
"@walletconnect/relay-auth" "^1.0.4" "@walletconnect/relay-auth" "^1.0.4"
"@walletconnect/safe-json" "^1.0.1" "@walletconnect/safe-json" "^1.0.1"
"@walletconnect/time" "^1.0.2" "@walletconnect/time" "^1.0.2"
"@walletconnect/types" "2.4.4" "@walletconnect/types" "2.4.5"
"@walletconnect/utils" "2.4.4" "@walletconnect/utils" "2.4.5"
events "^3.3.0" events "^3.3.0"
lodash.isequal "4.5.0" lodash.isequal "4.5.0"
pino "7.11.0" pino "7.11.0"
@ -3454,20 +3454,20 @@
dependencies: dependencies:
tslib "1.14.1" tslib "1.14.1"
"@walletconnect/sign-client@2.4.4": "@walletconnect/sign-client@2.4.5":
version "2.4.4" version "2.4.5"
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.4.4.tgz#8c1109de277452356094961c45e819c8575b51aa" resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.4.5.tgz#1283f396ecfe268ac51fd368e2fcf173f8f9614a"
integrity sha512-ByF1Qi+r7EAZ8HX++aiHekSxiruIlUg3KWfXvki5n4PQNv9Ldad/RaMswk7CB7ESCZuHc7ylKcT3SwOJjHOopg== integrity sha512-8CCiXBkp8crHW+dix28l8ZzvLqO2LK1UR2akP3jxPidNFXwB+N+wLJpE0Ey8OyXDbM7T3ZpNcQvnn7bdlOBkUA==
dependencies: dependencies:
"@walletconnect/core" "2.4.4" "@walletconnect/core" "2.4.5"
"@walletconnect/events" "^1.0.1" "@walletconnect/events" "^1.0.1"
"@walletconnect/heartbeat" "1.2.0" "@walletconnect/heartbeat" "1.2.0"
"@walletconnect/jsonrpc-provider" "^1.0.6" "@walletconnect/jsonrpc-provider" "^1.0.6"
"@walletconnect/jsonrpc-utils" "^1.0.4" "@walletconnect/jsonrpc-utils" "^1.0.4"
"@walletconnect/logger" "^2.0.1" "@walletconnect/logger" "^2.0.1"
"@walletconnect/time" "^1.0.2" "@walletconnect/time" "^1.0.2"
"@walletconnect/types" "2.4.4" "@walletconnect/types" "2.4.5"
"@walletconnect/utils" "2.4.4" "@walletconnect/utils" "2.4.5"
events "^3.3.0" events "^3.3.0"
pino "7.11.0" pino "7.11.0"
@ -3478,10 +3478,10 @@
dependencies: dependencies:
tslib "1.14.1" tslib "1.14.1"
"@walletconnect/types@2.4.4": "@walletconnect/types@2.4.5":
version "2.4.4" version "2.4.5"
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.4.4.tgz#f2edb02f70e7dfb0f4265d78b0b745a776eb0dae" resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.4.5.tgz#4481672b365791070d086557c01b13bc9dcb7c0b"
integrity sha512-4XndBOlB0qbhaJvzcBZCfR69rfU5rV0U5b3YbJ1AmtxcJSJAIg68WDP7o4BE4w1LHzdsEWvbXHRYL+KsA+uG3w== integrity sha512-/MNubZ0K39DvZfA4kL1nZNpvRUJAWZwNq8ySfCYR/EMQMGfAemRi/Ckv1wNo6jGtDMRLuTxT5px2xJUBOBAEPQ==
dependencies: dependencies:
"@walletconnect/events" "^1.0.1" "@walletconnect/events" "^1.0.1"
"@walletconnect/heartbeat" "1.2.0" "@walletconnect/heartbeat" "1.2.0"
@ -3490,10 +3490,10 @@
"@walletconnect/logger" "^2.0.1" "@walletconnect/logger" "^2.0.1"
events "^3.3.0" events "^3.3.0"
"@walletconnect/utils@2.4.4", "@walletconnect/utils@^2.4.4": "@walletconnect/utils@2.4.5":
version "2.4.4" version "2.4.5"
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.4.4.tgz#1ee72172c7fb28f096c600fde19b12b770aa44df" resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.4.5.tgz#04c5624d36c6e75dd003aa65afb711bd9e598715"
integrity sha512-PM4biwrvi5OwXIroLHDxtCOXlvZGCGNvbYS0Jkb6ZmP1EbGjVz1xA1hnp/lC3eGFQArSyvS7EHD6XQQpymZ2jA== integrity sha512-TehHlHZL8KLWeVNyfMF+GCNcPOO0z+wiiFDVmVuS8GJWWi4xJOcLJAD8w0KMGc6K4n74cuw5yXiRpBpJN2FIlQ==
dependencies: dependencies:
"@stablelib/chacha20poly1305" "1.0.1" "@stablelib/chacha20poly1305" "1.0.1"
"@stablelib/hkdf" "1.0.1" "@stablelib/hkdf" "1.0.1"
@ -3504,7 +3504,7 @@
"@walletconnect/relay-api" "^1.0.7" "@walletconnect/relay-api" "^1.0.7"
"@walletconnect/safe-json" "^1.0.1" "@walletconnect/safe-json" "^1.0.1"
"@walletconnect/time" "^1.0.2" "@walletconnect/time" "^1.0.2"
"@walletconnect/types" "2.4.4" "@walletconnect/types" "2.4.5"
"@walletconnect/window-getters" "^1.0.1" "@walletconnect/window-getters" "^1.0.1"
"@walletconnect/window-metadata" "^1.0.1" "@walletconnect/window-metadata" "^1.0.1"
detect-browser "5.3.0" detect-browser "5.3.0"

View File

@ -22,8 +22,8 @@
"@solana/web3.js": "1.43.0", "@solana/web3.js": "1.43.0",
"@walletconnect/client": "1.8.0", "@walletconnect/client": "1.8.0",
"@walletconnect/legacy-types": "^2.0.0-rc.0", "@walletconnect/legacy-types": "^2.0.0-rc.0",
"@walletconnect/sign-client": "2.3.3", "@walletconnect/sign-client": "2.4.5",
"@walletconnect/utils": "2.3.3", "@walletconnect/utils": "2.4.5",
"bs58": "5.0.0", "bs58": "5.0.0",
"cosmos-wallet": "1.2.0", "cosmos-wallet": "1.2.0",
"ethers": "5.6.6", "ethers": "5.6.6",
@ -42,7 +42,7 @@
"devDependencies": { "devDependencies": {
"@types/node": "17.0.35", "@types/node": "17.0.35",
"@types/react": "18.0.9", "@types/react": "18.0.9",
"@walletconnect/types": "2.3.3", "@walletconnect/types": "2.4.5",
"eslint": "8.15.0", "eslint": "8.15.0",
"eslint-config-next": "12.1.6", "eslint-config-next": "12.1.6",
"eslint-config-prettier": "8.5.0", "eslint-config-prettier": "8.5.0",

View File

@ -39,7 +39,7 @@ interface IProps {
export default function SessionProposalChainCard({ requiredNamespace }: IProps) { export default function SessionProposalChainCard({ requiredNamespace }: IProps) {
return ( return (
<Fragment> <Fragment>
{requiredNamespace.chains.map(chainId => { {requiredNamespace.chains?.map(chainId => {
// @ts-expect-error // @ts-expect-error
const rgb = CHAIN_METADATA[chainId]?.rgb const rgb = CHAIN_METADATA[chainId]?.rgb

View File

@ -64,7 +64,7 @@ export default function SessionProposalModal() {
const namespaces: SessionTypes.Namespaces = {} const namespaces: SessionTypes.Namespaces = {}
Object.keys(requiredNamespaces).forEach(key => { Object.keys(requiredNamespaces).forEach(key => {
const accounts: string[] = [] const accounts: string[] = []
requiredNamespaces[key].chains.map(chain => { requiredNamespaces[key].chains?.map(chain => {
selectedAccounts[key].map(acc => accounts.push(`${chain}:${acc}`)) selectedAccounts[key].map(acc => accounts.push(`${chain}:${acc}`))
}) })
namespaces[key] = { namespaces[key] = {

View File

@ -2390,23 +2390,23 @@
"@walletconnect/types" "^1.8.0" "@walletconnect/types" "^1.8.0"
"@walletconnect/utils" "^1.8.0" "@walletconnect/utils" "^1.8.0"
"@walletconnect/core@2.3.3": "@walletconnect/core@2.4.5":
version "2.3.3" version "2.4.5"
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.3.3.tgz#28ab50cd7d2457f638fd66e2e4d741eecfefa626" resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.4.5.tgz#7f8055341022ab0026eb6863a4055d75284726e9"
integrity sha512-pkPG3f0Mb9WcWMeLtRS8+RSV9gpnAGrU0y291LNXjggDupg5H7I1hFtcj5HI0kmpk4suAS4RKqYAxPzy4MgFRQ== integrity sha512-xN0XWupUdHf15rEvATen2r1NNs81RPX3s2vO0kopnfmNGBkXPkPsF/VFbWpcsYVSo1189H+7prX7IM76TdxclQ==
dependencies: dependencies:
"@walletconnect/heartbeat" "1.2.0" "@walletconnect/heartbeat" "1.2.0"
"@walletconnect/jsonrpc-provider" "^1.0.6" "@walletconnect/jsonrpc-provider" "^1.0.6"
"@walletconnect/jsonrpc-utils" "^1.0.4" "@walletconnect/jsonrpc-utils" "^1.0.4"
"@walletconnect/jsonrpc-ws-connection" "^1.0.6" "@walletconnect/jsonrpc-ws-connection" "^1.0.7"
"@walletconnect/keyvaluestorage" "^1.0.2" "@walletconnect/keyvaluestorage" "^1.0.2"
"@walletconnect/logger" "^2.0.1" "@walletconnect/logger" "^2.0.1"
"@walletconnect/relay-api" "^1.0.7" "@walletconnect/relay-api" "^1.0.7"
"@walletconnect/relay-auth" "^1.0.4" "@walletconnect/relay-auth" "^1.0.4"
"@walletconnect/safe-json" "^1.0.1" "@walletconnect/safe-json" "^1.0.1"
"@walletconnect/time" "^1.0.2" "@walletconnect/time" "^1.0.2"
"@walletconnect/types" "2.3.3" "@walletconnect/types" "2.4.5"
"@walletconnect/utils" "2.3.3" "@walletconnect/utils" "2.4.5"
events "^3.3.0" events "^3.3.0"
lodash.isequal "4.5.0" lodash.isequal "4.5.0"
pino "7.11.0" pino "7.11.0"
@ -2522,12 +2522,21 @@
"@walletconnect/jsonrpc-types" "^1.0.2" "@walletconnect/jsonrpc-types" "^1.0.2"
tslib "1.14.1" tslib "1.14.1"
"@walletconnect/jsonrpc-ws-connection@^1.0.6": "@walletconnect/jsonrpc-utils@^1.0.6":
version "1.0.6" version "1.0.6"
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.6.tgz#8ef6747ddf9347f4b61c136d06fcdae6c7efad39" resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.6.tgz#7fa58e6671247e64e189828103282e6258f5330f"
integrity sha512-WFu8uTXbIDgxFfyax9uNcqFYtexUq/OdCA3SBsOqIipsnJFbjXK8OaR8WCoec4tkJbDRQO9mrr1KpA0ZlIcnCQ== integrity sha512-snp0tfkjPiDLQp/jrBewI+9SM33GPV4+Gjgldod6XQ7rFyQ5FZjnBxUkY4xWH0+arNxzQSi6v5iDXjCjSaorpg==
dependencies: dependencies:
"@walletconnect/jsonrpc-utils" "^1.0.4" "@walletconnect/environment" "^1.0.1"
"@walletconnect/jsonrpc-types" "^1.0.2"
tslib "1.14.1"
"@walletconnect/jsonrpc-ws-connection@^1.0.7":
version "1.0.9"
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.9.tgz#38e089818e490cf52cfad9f98300949a74de9fdd"
integrity sha512-x1COaW6hhMLEo+ND5zF/siBGg5SEwC/gHjeRbJtK1CRiq9atkg/XR7JwtSNfMvYX/O3PRCVmuc5SP0RQio9JUw==
dependencies:
"@walletconnect/jsonrpc-utils" "^1.0.6"
"@walletconnect/safe-json" "^1.0.1" "@walletconnect/safe-json" "^1.0.1"
events "^3.3.0" events "^3.3.0"
tslib "1.14.1" tslib "1.14.1"
@ -2597,20 +2606,20 @@
dependencies: dependencies:
tslib "1.14.1" tslib "1.14.1"
"@walletconnect/sign-client@2.3.3": "@walletconnect/sign-client@2.4.5":
version "2.3.3" version "2.4.5"
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.3.3.tgz#62bf395f8817e289d42dc77549f885d834c4b78b" resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.4.5.tgz#1283f396ecfe268ac51fd368e2fcf173f8f9614a"
integrity sha512-Q+KiqYYecf9prJoQWLIV7zJcEPa69XBzwrad4sQPcDD1BZMWa1f8OZUH3HmlmuCzopqEr4mgXU6v6yFHOasADw== integrity sha512-8CCiXBkp8crHW+dix28l8ZzvLqO2LK1UR2akP3jxPidNFXwB+N+wLJpE0Ey8OyXDbM7T3ZpNcQvnn7bdlOBkUA==
dependencies: dependencies:
"@walletconnect/core" "2.3.3" "@walletconnect/core" "2.4.5"
"@walletconnect/events" "^1.0.1" "@walletconnect/events" "^1.0.1"
"@walletconnect/heartbeat" "1.2.0" "@walletconnect/heartbeat" "1.2.0"
"@walletconnect/jsonrpc-provider" "^1.0.6" "@walletconnect/jsonrpc-provider" "^1.0.6"
"@walletconnect/jsonrpc-utils" "^1.0.4" "@walletconnect/jsonrpc-utils" "^1.0.4"
"@walletconnect/logger" "^2.0.1" "@walletconnect/logger" "^2.0.1"
"@walletconnect/time" "^1.0.2" "@walletconnect/time" "^1.0.2"
"@walletconnect/types" "2.3.3" "@walletconnect/types" "2.4.5"
"@walletconnect/utils" "2.3.3" "@walletconnect/utils" "2.4.5"
events "^3.3.0" events "^3.3.0"
pino "7.11.0" pino "7.11.0"
@ -2630,10 +2639,10 @@
dependencies: dependencies:
tslib "1.14.1" tslib "1.14.1"
"@walletconnect/types@2.3.3": "@walletconnect/types@2.4.5":
version "2.3.3" version "2.4.5"
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.3.3.tgz#0d22b325dd854533790226cee8f1b93966fecc47" resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.4.5.tgz#4481672b365791070d086557c01b13bc9dcb7c0b"
integrity sha512-g2x27MloGElcRTwYM9Md/1E2RQ5ifYBCFZ/sfnpQrZPVxK3NzSMHJlcV6qrQm9ST82i+UrLEce9RkDgvjKk7+w== integrity sha512-/MNubZ0K39DvZfA4kL1nZNpvRUJAWZwNq8ySfCYR/EMQMGfAemRi/Ckv1wNo6jGtDMRLuTxT5px2xJUBOBAEPQ==
dependencies: dependencies:
"@walletconnect/events" "^1.0.1" "@walletconnect/events" "^1.0.1"
"@walletconnect/heartbeat" "1.2.0" "@walletconnect/heartbeat" "1.2.0"
@ -2647,10 +2656,10 @@
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-1.8.0.tgz#3f5e85b2d6b149337f727ab8a71b8471d8d9a195" resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-1.8.0.tgz#3f5e85b2d6b149337f727ab8a71b8471d8d9a195"
integrity sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg== integrity sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==
"@walletconnect/utils@2.3.3": "@walletconnect/utils@2.4.5":
version "2.3.3" version "2.4.5"
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.3.3.tgz#7775ae536cc1ac37e14211eb4fc6b07cbb75f9d9" resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.4.5.tgz#04c5624d36c6e75dd003aa65afb711bd9e598715"
integrity sha512-wS9ptLlT30c7m7zme3/y3cNjKXztZeKIulqBD1K/VxSxWEA4mK9mmXEACdmahjiX4EHZWtdHvEIu2rLDhkrrvQ== integrity sha512-TehHlHZL8KLWeVNyfMF+GCNcPOO0z+wiiFDVmVuS8GJWWi4xJOcLJAD8w0KMGc6K4n74cuw5yXiRpBpJN2FIlQ==
dependencies: dependencies:
"@stablelib/chacha20poly1305" "1.0.1" "@stablelib/chacha20poly1305" "1.0.1"
"@stablelib/hkdf" "1.0.1" "@stablelib/hkdf" "1.0.1"
@ -2661,7 +2670,7 @@
"@walletconnect/relay-api" "^1.0.7" "@walletconnect/relay-api" "^1.0.7"
"@walletconnect/safe-json" "^1.0.1" "@walletconnect/safe-json" "^1.0.1"
"@walletconnect/time" "^1.0.2" "@walletconnect/time" "^1.0.2"
"@walletconnect/types" "2.3.3" "@walletconnect/types" "2.4.5"
"@walletconnect/window-getters" "^1.0.1" "@walletconnect/window-getters" "^1.0.1"
"@walletconnect/window-metadata" "^1.0.1" "@walletconnect/window-metadata" "^1.0.1"
detect-browser "5.3.0" detect-browser "5.3.0"