diff --git a/package-lock.json b/package-lock.json index e24f61087..6dc802f87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "core-js": "^3.35.0", "crypto-js": "4.1.1", "ethers": "^6.9.2", - "hashconnect": "^0.1.10", + "hashconnect": "^3.0.0", "vue": "^3.3.4", "vue-router": "^4.2.5", "web3-utils": "1.10.0" @@ -3198,6 +3198,10 @@ "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" }, + "node_modules/@hashgraph/walletconnect": { + "resolved": "node_modules/hashconnect/walletconnect", + "link": true + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.13", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", @@ -5303,6 +5307,29 @@ "integrity": "sha512-CPuIReonid9+zOG/CGTT05FXrPYATEqoDGNrEaqS4hwcw5BUNM2FguC0mOwJD4Jr16UpRVl9N0pY3P+srIbqmg==", "dev": true }, + "node_modules/@walletconnect/auth-client": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-2.1.2.tgz", + "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" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/@walletconnect/core": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.11.0.tgz", @@ -7382,11 +7409,6 @@ "node": "*" } }, - "node_modules/crypto-es": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/crypto-es/-/crypto-es-1.2.7.tgz", - "integrity": "sha512-UUqiVJ2gUuZFmbFsKmud3uuLcNP2+Opt+5ysmljycFCyhA0+T16XJmo1ev/t5kMChMqWh7IEvURNCqsg+SjZGQ==" - }, "node_modules/crypto-js": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", @@ -9716,42 +9738,132 @@ } }, "node_modules/hashconnect": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/hashconnect/-/hashconnect-0.1.10.tgz", - "integrity": "sha512-w4lxJLDZk9cJ+x9OXEVZjt4JRY38tVOKkzMrBfyJoWw+Dyx+6GUSgW4k3XUFzqk8p0/ZKlf3ficu8/nPL1FSwQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hashconnect/-/hashconnect-3.0.0.tgz", + "integrity": "sha512-AvXfrdQMO2ivuQYJD2yoW4xBVwRpMx3iWenCM6C25cot7CggIoybXuMbEt9NubHMMuoQfU77GgpCpvHVyj1rgw==", "dependencies": { - "@hashgraph/sdk": "^2.14.2", - "buffer": "^6.0.3", - "crypto-es": "^1.2.7", - "crypto-js": "^4.1.1", - "i": "^0.3.7", - "protons": "^2.0.3", - "simple-crypto-js": "^3.0.1", - "ts-typed-events": "3.0.0", - "uuid": "^8.3.2", - "ws": "^8.5.0" + "@hashgraph/cryptography": "1.4.7", + "@hashgraph/sdk": "2.39.0", + "@hashgraph/walletconnect": "./walletconnect", + "@walletconnect/auth-client": "2.1.2", + "@walletconnect/modal": "2.6.2", + "@walletconnect/sign-client": "2.10.6", + "@walletconnect/types": "2.10.6", + "buffer": "6.0.3", + "ts-typed-events": "3.0.0" } }, - "node_modules/hashconnect/node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "node_modules/hashconnect/node_modules/@hashgraph/cryptography": { + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/@hashgraph/cryptography/-/cryptography-1.4.7.tgz", + "integrity": "sha512-DrwZxIw3AM01JINaINTBmFEJVn9lzTHHf343zYXzpu+MrUJbZzuGyzd5bW6DmGGvFqTF/xDo0S/XiO2StdhVgg==", + "dependencies": { + "asn1js": "^3.0.5", + "bignumber.js": "^9.1.1", + "bn.js": "^5.1.1", + "buffer": "^6.0.3", + "crypto-js": "^4.1.1", + "elliptic": "^6.5.4", + "js-base64": "^3.7.4", + "node-forge": "^1.3.1", + "spark-md5": "^3.0.2", + "tweetnacl": "^1.0.3", + "utf8": "^3.0.0" + }, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" + "expo": "^45.0.3", + "expo-crypto": "^10.1.2", + "expo-random": "^12.1.2" }, "peerDependenciesMeta": { - "bufferutil": { + "expo": { "optional": true }, - "utf-8-validate": { + "expo-crypto": { + "optional": true + }, + "expo-random": { "optional": true } } }, + "node_modules/hashconnect/node_modules/@walletconnect/core": { + "version": "2.10.6", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.10.6.tgz", + "integrity": "sha512-Z4vh4ZdfcoQjgPEOxeuF9HUZCVLtV3MgRbS/awLIj/omDrFnOwlBhxi5Syr4Y8muVGC0ocRetQYHae0/gX5crQ==", + "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.10.6", + "@walletconnect/utils": "2.10.6", + "events": "^3.3.0", + "lodash.isequal": "4.5.0", + "uint8arrays": "^3.1.0" + } + }, + "node_modules/hashconnect/node_modules/@walletconnect/sign-client": { + "version": "2.10.6", + "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.10.6.tgz", + "integrity": "sha512-EvUWjaZBQu2yKnH5/5F2qzbuiIuUN9ZgrNKgvXkw5z1Dq5RJCks0S9/MFlKH/ZSGqXnLl7uAzBXtoX4sMgbCMA==", + "dependencies": { + "@walletconnect/core": "2.10.6", + "@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.10.6", + "@walletconnect/utils": "2.10.6", + "events": "^3.3.0" + } + }, + "node_modules/hashconnect/node_modules/@walletconnect/types": { + "version": "2.10.6", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.10.6.tgz", + "integrity": "sha512-WgHfiTG1yakmxheaBRiXhUdEmgxwrvsAdOIWaMf/spvrzVKYh6sHI3oyEEky5qj5jjiMiyQBeB57QamzCotbcQ==", + "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" + } + }, + "node_modules/hashconnect/node_modules/@walletconnect/utils": { + "version": "2.10.6", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.10.6.tgz", + "integrity": "sha512-oRsWWhN2+hi3aiDXrQEOfysz6FHQJGXLsNQPVt+WIBJplO6Szmdau9dbleD88u1iiT4GKPqE0R9FOYvvPm1H/w==", + "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.10.6", + "@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" + } + }, + "node_modules/hashconnect/walletconnect": {}, "node_modules/hasown": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", @@ -9882,14 +9994,6 @@ "node": ">=8.12.0" } }, - "node_modules/i": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/i/-/i-0.3.7.tgz", - "integrity": "sha512-FYz4wlXgkQwIPqhzC5TdNMLSE5+GS1IIDJZY/1ZiEPCT2S3COUVZeT5OW4BmW4r5LHLQuOosSwsvnroG9GR59Q==", - "engines": { - "node": ">=0.4" - } - }, "node_modules/iconv-lite": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", @@ -13200,22 +13304,6 @@ "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, - "node_modules/protocol-buffers-schema": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.6.0.tgz", - "integrity": "sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw==" - }, - "node_modules/protons": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/protons/-/protons-2.0.3.tgz", - "integrity": "sha512-j6JikP/H7gNybNinZhAHMN07Vjr1i4lVupg598l4I9gSTjJqOvKnwjzYX2PzvBTSVf2eZ2nWv4vG+mtW8L6tpA==", - "dependencies": { - "protocol-buffers-schema": "^3.3.1", - "signed-varint": "^2.0.1", - "uint8arrays": "^3.0.0", - "varint": "^5.0.0" - } - }, "node_modules/proxy-compare": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.5.1.tgz", @@ -14286,22 +14374,6 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" }, - "node_modules/signed-varint": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/signed-varint/-/signed-varint-2.0.1.tgz", - "integrity": "sha512-abgDPg1106vuZZOvw7cFwdCABddfJRz5akcCcchzTbhyhYnsG31y4AlZEgp315T7W3nQq5P4xeOm186ZiPVFzw==", - "dependencies": { - "varint": "~5.0.0" - } - }, - "node_modules/simple-crypto-js": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/simple-crypto-js/-/simple-crypto-js-3.0.1.tgz", - "integrity": "sha512-dKhe6jT0WETtXX6NQn9GUTyD6Fp5F9X0ZcUI4XEqZ9dvt4/2h5QxkIl2d+2jH9SXrTBu9m7EsxC8CRaIS8i/dQ==", - "dependencies": { - "crypto-js": "^4.1.1" - } - }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -15645,6 +15717,7 @@ "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, "bin": { "uuid": "dist/bin/uuid" } @@ -15697,11 +15770,6 @@ } } }, - "node_modules/varint": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/varint/-/varint-5.0.2.tgz", - "integrity": "sha512-lKxKYG6H03yCZUpAGOPOsMcGxd1RHCu1iKvEHYDPmTyq2HueGhD73ssNBqqQWfvYs04G9iUFRvmAVLW20Jw6ow==" - }, "node_modules/verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", diff --git a/package.json b/package.json index c9bd97ef8..be9245582 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "core-js": "^3.35.0", "crypto-js": "4.1.1", "ethers": "^6.9.2", - "hashconnect": "^0.1.10", + "hashconnect": "^3.0.0", "vue": "^3.3.4", "vue-router": "^4.2.5", "web3-utils": "1.10.0"