diff --git a/tkey-web/tkey-react-popup-example/package-lock.json b/tkey-web/tkey-react-popup-example/package-lock.json index b32c6f0e..1935847b 100644 --- a/tkey-web/tkey-react-popup-example/package-lock.json +++ b/tkey-web/tkey-react-popup-example/package-lock.json @@ -11,19 +11,20 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", - "@tkey/default": "^9.0.1", - "@tkey/security-questions": "^9.0.0", - "@tkey/web-storage": "^9.0.0", + "@tkey/default": "^11.0.2", + "@tkey/security-questions": "^11.0.2", + "@tkey/web-storage": "^11.0.2", + "@toruslabs/constants": "^13.0.1", "@types/jest": "^27.5.2", "@types/node": "^17.0.45", "@types/react": "^18.0.25", "@types/react-dom": "^18.0.9", - "@web3auth/ethereum-provider": "^5.2.0", + "@web3auth/ethereum-provider": "^7.0.2", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", "sweetalert": "^2.1.2", - "typescript": "^4.9.3", + "typescript": "^5.2.2", "web-vitals": "^2.1.4", "web3": "^1.8.1", "workbox-background-sync": "^6.5.4", @@ -40,6 +41,7 @@ "workbox-streams": "^6.5.4" }, "devDependencies": { + "buffer": "^6.0.3", "process": "^0.11.10", "react-app-rewired": "^2.2.1" } @@ -1755,16 +1757,21 @@ "license": "MIT" }, "node_modules/@babel/runtime": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.5.tgz", - "integrity": "sha512-8jI69toZqqcsnqGGqwGS4Qb1VwLOEp4hz+CXPywcvjs60u3B4Pom/U/7rm4W8tMOYEB+E9wgD0mW1l3r8qlI9Q==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.15.tgz", + "integrity": "sha512-T0O+aa+4w0u06iNmapipJXMV4HoUir03hpx3/YqXXhu9xim3w+dVphjFWl1OH8NbZHw5Lbm9k45drDkgq2VNNA==", "dependencies": { - "regenerator-runtime": "^0.13.11" + "regenerator-runtime": "^0.14.0" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/runtime/node_modules/regenerator-runtime": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", + "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==" + }, "node_modules/@babel/template": { "version": "7.20.7", "license": "MIT", @@ -1812,40 +1819,6 @@ "version": "0.2.3", "license": "MIT" }, - "node_modules/@chainsafe/as-sha256": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@chainsafe/as-sha256/-/as-sha256-0.4.1.tgz", - "integrity": "sha512-IqeeGwQihK6Y2EYLFofqs2eY2ep1I2MvQXHzOAI+5iQN51OZlUkrLgyAugu2x86xZewDk5xas7lNczkzFzF62w==" - }, - "node_modules/@chainsafe/persistent-merkle-tree": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/@chainsafe/persistent-merkle-tree/-/persistent-merkle-tree-0.6.1.tgz", - "integrity": "sha512-gcENLemRR13+1MED2NeZBMA7FRS0xQPM7L2vhMqvKkjqtFT4YfjSVADq5U0iLuQLhFUJEMVuA8fbv5v+TN6O9A==", - "dependencies": { - "@chainsafe/as-sha256": "^0.4.1", - "@noble/hashes": "^1.3.0" - } - }, - "node_modules/@chainsafe/persistent-merkle-tree/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@chainsafe/ssz": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/@chainsafe/ssz/-/ssz-0.11.1.tgz", - "integrity": "sha512-cB8dBkgGN6ZoeOKuk+rIRHKN0L5i9JLGeC0Lui71QX0TuLcQKwgbfkUexpyJxnGFatWf8yeJxlOjozMn/OTP0g==", - "dependencies": { - "@chainsafe/as-sha256": "^0.4.1", - "@chainsafe/persistent-merkle-tree": "^0.6.1" - } - }, "node_modules/@chaitanyapotti/register-service-worker": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/@chaitanyapotti/register-service-worker/-/register-service-worker-1.7.3.tgz", @@ -2165,41 +2138,40 @@ } }, "node_modules/@ethereumjs/common": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.1.2.tgz", - "integrity": "sha512-YV+bZfRlFhAXg+FfwC5r4UQKVj4OG7vDP5/JvvNXLLbYpNplH5Vca9jD0L+ab8y0YlTYJMQM1ALyHFu3AE3eBA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-4.0.0.tgz", + "integrity": "sha512-eVa0/nC15mpotD8HOq6jB883SCWUkLjibr2jLPmPrx4FfmewXqFeh4drgR2sHjq3qWKxpCLK+5qsSJgtXwIzJQ==", "dependencies": { - "@ethereumjs/util": "^8.0.6", - "crc-32": "^1.2.0" + "@ethereumjs/util": "^9.0.0", + "crc": "^4.3.2" } }, "node_modules/@ethereumjs/rlp": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", - "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-5.0.0.tgz", + "integrity": "sha512-WuS1l7GJmB0n0HsXLozCoEFc9IwYgf3l0gCkKVYgR67puVF1O4OpEaN0hWmm1c+iHUHFCKt1hJrvy5toLg+6ag==", "bin": { "rlp": "bin/rlp" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "node_modules/@ethereumjs/tx": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.1.2.tgz", - "integrity": "sha512-PWWyO9lAFOiLwk7nB9OQisoJUsuvMz2PN2v4/ILbBpzamC5Ug79OddVq9r4rKvIDLPY+bn4NFerxBJg29+sjaA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-5.0.0.tgz", + "integrity": "sha512-bJBC/jHVIbwvZBVsK0Ls70NzxJ8Q3UvPwskG1LO6+ryVGKY0y1bhRreo0/gR3vTkuRjD+x5QTYV6fIY16tswJA==", "dependencies": { - "@chainsafe/ssz": "^0.11.1", - "@ethereumjs/common": "^3.1.2", - "@ethereumjs/rlp": "^4.0.1", - "@ethereumjs/util": "^8.0.6", - "ethereum-cryptography": "^2.0.0" + "@ethereumjs/common": "^4.0.0", + "@ethereumjs/rlp": "^5.0.0", + "@ethereumjs/util": "^9.0.0", + "ethereum-cryptography": "^2.1.2" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { - "c-kzg": "^1.0.8" + "c-kzg": "^2.1.0" }, "peerDependenciesMeta": { "c-kzg": { @@ -2207,124 +2179,24 @@ } } }, - "node_modules/@ethereumjs/tx/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@ethereumjs/tx/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@ethereumjs/tx/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@ethereumjs/tx/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@ethereumjs/util": { - "version": "8.0.6", - "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.0.6.tgz", - "integrity": "sha512-zFLG/gXtF3QUC7iKFn4PT6HCr+DEnlCbwUGKGtXoqjA+64T+e0FuqMjlo4bQIY2ngRzk3EtudKdGYC4g31ehhg==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-9.0.0.tgz", + "integrity": "sha512-V8062I+ZXfFxtFLp7xsPeiT1IxDaVOZaM78nGj1gsWUFeZ8SgADMLDKWehp+muTy1JRbVoXFljZ1qoyv9ji/2g==", "dependencies": { - "@chainsafe/ssz": "^0.11.1", - "@ethereumjs/rlp": "^4.0.1", - "ethereum-cryptography": "^2.0.0", - "micro-ftch": "^0.3.1" + "@ethereumjs/rlp": "^5.0.0", + "ethereum-cryptography": "^2.1.2" }, "engines": { - "node": ">=14" - } - }, - "node_modules/@ethereumjs/util/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@ethereumjs/util/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@ethereumjs/util/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" + "node": ">=18" + }, + "peerDependencies": { + "c-kzg": "^2.1.0" + }, + "peerDependenciesMeta": { + "c-kzg": { + "optional": true } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@ethereumjs/util/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" } }, "node_modules/@ethersproject/abi": { @@ -3092,24 +2964,163 @@ "version": "2.0.4", "license": "MIT" }, + "node_modules/@metamask/abi-utils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@metamask/abi-utils/-/abi-utils-2.0.2.tgz", + "integrity": "sha512-B/A1dY/w4F/t6cDHUscklO6ovb/ztFsrsTXFd8QlqSByk/vyy+QbPE3VVpmmyI/7RX+PA1AJcvBdzCIz+r9dVQ==", + "dependencies": { + "@metamask/utils": "^8.0.0", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/@metamask/eth-sig-util": { - "version": "5.0.2", - "license": "ISC", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@metamask/eth-sig-util/-/eth-sig-util-7.0.0.tgz", + "integrity": "sha512-8KeXZB4SKx3EfNS5ahbjUMegyGvDQYk6Nk3hmM658sXpfAQR5ZlIXBgj+9RF+ZROqsU6EuNVgKt7Fr10re60PQ==", "dependencies": { - "@ethereumjs/util": "^8.0.0", - "bn.js": "^4.11.8", - "ethereum-cryptography": "^1.1.2", + "@ethereumjs/util": "^8.1.0", + "@metamask/abi-utils": "^2.0.2", + "@metamask/utils": "^8.1.0", + "ethereum-cryptography": "^2.1.2", "ethjs-util": "^0.1.6", "tweetnacl": "^1.0.3", "tweetnacl-util": "^0.15.1" }, "engines": { - "node": ">=14.0.0" + "node": "^16.20 || ^18.16 || >=20" } }, - "node_modules/@metamask/eth-sig-util/node_modules/bn.js": { - "version": "4.12.0", - "license": "MIT" + "node_modules/@metamask/eth-sig-util/node_modules/@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "bin": { + "rlp": "bin/rlp" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/eth-sig-util/node_modules/@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "dependencies": { + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/rpc-errors": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@metamask/rpc-errors/-/rpc-errors-6.0.0.tgz", + "integrity": "sha512-sAZwcdmidJDPbZV3XSKcWZC7CSTdjqDNRsDDdb2SstCOLEJtNqHpx32FWgwWB0arqWxUcUxYxgR39edUbsWz7A==", + "dependencies": { + "@metamask/utils": "^8.0.0", + "fast-safe-stringify": "^2.0.6" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/utils": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.1.0.tgz", + "integrity": "sha512-sFNpzBKRicDgM2ZuU6vrPROlqNGm8/jDsjc5WrU1RzCkAMc4Xr3vUUf8p59uQ6B09etUWNb8d2GTCbISdmH/Ug==", + "dependencies": { + "@ethereumjs/tx": "^4.1.2", + "@noble/hashes": "^1.3.1", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.5.4", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/utils/node_modules/@ethereumjs/common": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.2.0.tgz", + "integrity": "sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==", + "dependencies": { + "@ethereumjs/util": "^8.1.0", + "crc-32": "^1.2.0" + } + }, + "node_modules/@metamask/utils/node_modules/@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "bin": { + "rlp": "bin/rlp" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/utils/node_modules/@ethereumjs/tx": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.2.0.tgz", + "integrity": "sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==", + "dependencies": { + "@ethereumjs/common": "^3.2.0", + "@ethereumjs/rlp": "^4.0.1", + "@ethereumjs/util": "^8.1.0", + "ethereum-cryptography": "^2.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/utils/node_modules/@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "dependencies": { + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/utils/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/utils/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/utils/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { "version": "5.1.1-v1", @@ -3137,49 +3148,37 @@ } }, "node_modules/@noble/curves": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.0.0.tgz", - "integrity": "sha512-2upgEu0iLiDVDZkNLeFV2+ht0BAVgQnEmCk6JsOch9Rp8xfkMCbvbAZlA2pBHQc73dbl+vFOXfqkf4uemdn0bw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz", + "integrity": "sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==", "dependencies": { - "@noble/hashes": "1.3.0" + "@noble/hashes": "1.3.1" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@noble/curves/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", + "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@noble/hashes": { - "version": "1.2.0", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT" - }, - "node_modules/@noble/secp256k1": { - "version": "1.7.1", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT" + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", @@ -3332,42 +3331,36 @@ "license": "MIT" }, "node_modules/@scure/base": { - "version": "1.1.1", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.3.tgz", + "integrity": "sha512-/+SgoRjLq7Xlf0CWuLHq2LUZeL/w65kfzAPG5NH9pcmBhs+nunQTn4gvdwgMTIXnt9b2C/1SeL2XiysZEyIC9Q==", + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@scure/bip32": { - "version": "1.1.5", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.1.tgz", + "integrity": "sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==", "dependencies": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", + "@noble/curves": "~1.1.0", + "@noble/hashes": "~1.3.1", "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@scure/bip39": { - "version": "1.1.1", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", + "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", "dependencies": { - "@noble/hashes": "~1.2.0", + "@noble/hashes": "~1.3.0", "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@sinclair/typebox": { @@ -3821,414 +3814,190 @@ } }, "node_modules/@tkey/common-types": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/common-types/-/common-types-9.0.0.tgz", - "integrity": "sha512-+q6MHToZUxsz9ZsDZQ+CXrmkXiPxacbU8yPYavvdXGnYSziOzhCBXXco8Xm4ifP/ydlMCejvAbJOUmRW17uwyA==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/common-types/-/common-types-11.0.2.tgz", + "integrity": "sha512-mc3Spwosrz4wwJgTDB9PYRrIF6MbNcap5lVflb46hSA/o9R5l7/YOLrPERu7Iwx7uG7/PD0GCF2z+vpq9pndew==", "dependencies": { - "@toruslabs/customauth": "^13.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/torus.js": "^8.0.0", + "@toruslabs/customauth": "^16.0.4", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/torus.js": "^11.0.5", "bn.js": "^5.2.1", "elliptic": "^6.5.4", "serialize-error": "^8.1.0", "ts-custom-error": "^3.3.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@tkey/core": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/core/-/core-9.0.0.tgz", - "integrity": "sha512-YRA4G7Ubnzn3ov0Ki+gDpkgVjtU+YIxyhgfIYRdeBBnTeEvjb8F0fw3wBy5gMQ8Ed8XdpovyBDVbIbDQfKAC7A==", - "dependencies": { - "@tkey/common-types": "^9.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "@toruslabs/torus.js": "^8.0.0", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/core/-/core-11.0.2.tgz", + "integrity": "sha512-WjQ/BzpyEjPJASvscw/RmXrVNsJzv2TpM/daskr8hyOR+SWhA9ra1k9EfHdttJmVhlVfG0U0qQkHLzGJANOReA==", + "dependencies": { + "@tkey/common-types": "^11.0.2", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/http-helpers": "^5.0.0", + "@toruslabs/torus.js": "^11.0.5", "bn.js": "^5.2.1", "elliptic": "^6.5.4", "json-stable-stringify": "^1.0.2" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@tkey/core/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, "node_modules/@tkey/default": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@tkey/default/-/default-9.0.1.tgz", - "integrity": "sha512-bpLay6izY//blzccAmC9kDwAQfD74C0KFwEkmunHzAfoxQHKczg7ggtSxlWJPxM/cRDx1gxa8yb2OaM6eU35aw==", - "dependencies": { - "@tkey/common-types": "^9.0.0", - "@tkey/core": "^9.0.0", - "@tkey/security-questions": "^9.0.0", - "@tkey/service-provider-base": "^9.0.0", - "@tkey/service-provider-torus": "^9.0.0", - "@tkey/share-serialization": "^9.0.1", - "@tkey/share-transfer": "^9.0.0", - "@tkey/storage-layer-torus": "^9.0.0", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/default/-/default-11.0.2.tgz", + "integrity": "sha512-S6xXw17y7x2aomgf5aYanzuW+zT2JunNkU8KWQ1/ahDSsufgTyQwGqKIFXCMhPSWBGXjXI/BpkNMih0RY4UBvA==", + "dependencies": { + "@tkey/common-types": "^11.0.2", + "@tkey/core": "^11.0.2", + "@tkey/security-questions": "^11.0.2", + "@tkey/service-provider-base": "^11.0.2", + "@tkey/service-provider-torus": "^11.0.2", + "@tkey/share-serialization": "^11.0.2", + "@tkey/share-transfer": "^11.0.2", + "@tkey/storage-layer-torus": "^11.0.2", "bn.js": "^5.2.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@tkey/security-questions": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/security-questions/-/security-questions-9.0.0.tgz", - "integrity": "sha512-CZAnhlGvbEeORgF28tf9bZqv18SEydqNSrkKg128aGT0Ds50NI0dFQgxqs4zGQgFX4EGczB9xhImPZ1QR+bdUw==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/security-questions/-/security-questions-11.0.2.tgz", + "integrity": "sha512-sU+n4B9F2C7os2deeubYnlaFtx2OOe7D/D+eWjn0AGIxKlQWoYnNyTvj5y1p++Ns/7mDAsem3hguc5hhQ2zBnA==", "dependencies": { - "@tkey/common-types": "^9.0.0", + "@tkey/common-types": "^11.0.2", "bn.js": "^5.2.1", - "ethereum-cryptography": "^2.0.0" + "ethereum-cryptography": "^2.1.2" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@tkey/security-questions/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@tkey/security-questions/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/security-questions/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/security-questions/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@tkey/service-provider-base": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/service-provider-base/-/service-provider-base-9.0.0.tgz", - "integrity": "sha512-8h6pvlYuMkbp5V8s3sl+WzIrhsYz/z+xSymbb3t5vHtF2FrAn7wZIfvDhC5g72ADB2mv1p5Ea3eUXJcCRGVAXQ==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/service-provider-base/-/service-provider-base-11.0.2.tgz", + "integrity": "sha512-qI/osqxc1zUKA0ncYmizKExNqeu7kNZjjlLXPlYygm3Qq6zbAeE+3MXkdkvN63/t2VIMrFV7SAXelq3H9qh8JA==", "dependencies": { - "@tkey/common-types": "^9.0.0", + "@tkey/common-types": "^11.0.2", "bn.js": "^5.2.1", "elliptic": "^6.5.4" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@tkey/service-provider-torus": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/service-provider-torus/-/service-provider-torus-9.0.0.tgz", - "integrity": "sha512-y8aczbJQchxSqgBPgOoejpW2LfWcZ2CL2LW+qCNvndwVhFTT3fIJ2KHzvaXZXrENKb+CTE9A9Lh+Mv3qp7mNNg==", - "dependencies": { - "@tkey/common-types": "^9.0.0", - "@tkey/service-provider-base": "^9.0.0", - "@toruslabs/customauth": "^13.0.0", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/service-provider-torus/-/service-provider-torus-11.0.2.tgz", + "integrity": "sha512-4kaCtMmaK6+tn3sSrAYIuDfUtFkN1sAlw7FoDWxC/aotdnZv1plhA5xvf1yEy5S3OOQCPbTvFGqMn0au3zGBag==", + "dependencies": { + "@tkey/common-types": "^11.0.2", + "@tkey/service-provider-base": "^11.0.2", + "@toruslabs/customauth": "^16.0.4", + "@toruslabs/torus.js": "^11.0.5", "bn.js": "^5.2.1", "elliptic": "^6.5.4" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@tkey/share-serialization": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@tkey/share-serialization/-/share-serialization-9.0.1.tgz", - "integrity": "sha512-1KeHLHaJZbGybCZJoiZflCdDVrr/gV/LvZc5abQ/R01XvORJCI9avaDGVTj1cwkQbwcy/K17CWUNehTyW7WVpA==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/share-serialization/-/share-serialization-11.0.2.tgz", + "integrity": "sha512-lQExLBJlBQfFbDrklCta9fRew+LRnLkDO25EvmtnF+bVJUYqlaqVeoShJKqi8zZnSXqVoiepOJPyIXgTJSQipQ==", "dependencies": { - "@tkey/common-types": "^9.0.0", + "@tkey/common-types": "^11.0.2", "bn.js": "^5.2.1", - "ethereum-cryptography": "^2.0.0" + "ethereum-cryptography": "^2.1.2" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@tkey/share-serialization/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@tkey/share-serialization/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/share-serialization/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/share-serialization/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@tkey/share-transfer": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/share-transfer/-/share-transfer-9.0.0.tgz", - "integrity": "sha512-iitEaRCQrk2cjgmwBwrrG4BlyeNE9DCGT4xDFIElV0tNEHJwwcnDHbbrHpl2rvV/L0aKZfqGqNxEF99eVmwAUw==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/share-transfer/-/share-transfer-11.0.2.tgz", + "integrity": "sha512-FutilvH4/EryChybg5gCZj/Mi5AgSQtO3giMEWk5RXFAZ/cJ+LXVTPl6MPi9fx1wj6hi8PxLFpzu99WqOl7wLQ==", "dependencies": { - "@tkey/common-types": "^9.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", + "@tkey/common-types": "^11.0.2", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/http-helpers": "^5.0.0", "bn.js": "^5.2.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@tkey/share-transfer/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, "node_modules/@tkey/storage-layer-torus": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/storage-layer-torus/-/storage-layer-torus-9.0.0.tgz", - "integrity": "sha512-E7nuQhhceMtswtdaFWp07cH5bmdlZeBVl/lEZLR4ArZXdkYEk6xDNQ2yCw9l2PwUz7bVmGPFTZnVsjU3op8t7A==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/storage-layer-torus/-/storage-layer-torus-11.0.2.tgz", + "integrity": "sha512-teOQHn5rN+2nhHPJJBVIUg5eBUWS0Z9JOuYPoRZEkxfEH9mZrmNqtiTPT1h1KnHzmsN+bBB85Drv98q5R/t+5Q==", "dependencies": { - "@tkey/common-types": "^9.0.0", - "@toruslabs/http-helpers": "^4.0.0", + "@tkey/common-types": "^11.0.2", + "@toruslabs/http-helpers": "^5.0.0", "bn.js": "^5.2.1", - "ethereum-cryptography": "^2.0.0", + "ethereum-cryptography": "^2.1.2", "json-stable-stringify": "^1.0.2" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@tkey/storage-layer-torus/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@tkey/storage-layer-torus/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/storage-layer-torus/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/storage-layer-torus/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, - "node_modules/@tkey/storage-layer-torus/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@tkey/web-storage": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/web-storage/-/web-storage-9.0.0.tgz", - "integrity": "sha512-ha4ExotPsCvdyp6Egi3yHLdFZdJcbaD1DWFqgfk6egWaHgu/zQuZReD0I88sCI7yigjwCQWOORQoaUNfT4itmw==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/web-storage/-/web-storage-11.0.2.tgz", + "integrity": "sha512-c0TpB62twLhBAcbPUQ1dNZp/5G030VdXHw3A3q38QGGLKXloh4jLWWBFhdELaiyo2FqyOH4f/oeoLFCANxj0qw==", "dependencies": { - "@tkey/common-types": "^9.0.0", + "@tkey/common-types": "^11.0.2", "@types/bn.js": "^5.1.1", "bn.js": "^5.2.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" @@ -4242,295 +4011,97 @@ } }, "node_modules/@toruslabs/base-controllers": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/@toruslabs/base-controllers/-/base-controllers-2.9.0.tgz", - "integrity": "sha512-rKc+bR4QB/wdbH0CxLZC5e2PUZcIgkr9yY7TMd3oIffDklaYBnsuC5ES2/rgK1aRUDRWz+qWbTwLqsY6PlT37Q==", - "dependencies": { - "@ethereumjs/util": "^8.0.6", - "@toruslabs/broadcast-channel": "^6.2.0", - "@toruslabs/http-helpers": "^3.3.0", - "@toruslabs/openlogin-jrpc": "^4.0.0", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@toruslabs/base-controllers/-/base-controllers-4.0.1.tgz", + "integrity": "sha512-6r9iUVdNsOR/oW2WSwrGZwPWDrMV4dt6lPOlzUbk+5vu+ijZ56jTlerUMHatcuHXuspISXXsJ9XhW64YoBTpRg==", + "dependencies": { + "@ethereumjs/util": "^9.0.0", + "@metamask/rpc-errors": "^6.0.0", + "@toruslabs/broadcast-channel": "^8.0.0", + "@toruslabs/http-helpers": "^5.0.0", + "@toruslabs/openlogin-jrpc": "^5.0.2", "async-mutex": "^0.4.0", - "bignumber.js": "^9.1.1", + "bignumber.js": "^9.1.2", "bowser": "^2.11.0", - "eth-rpc-errors": "^4.0.3", - "json-rpc-random-id": "^1.0.1", "lodash": "^4.17.21", "loglevel": "^1.8.1" }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@toruslabs/base-controllers/node_modules/@toruslabs/openlogin-jrpc": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-4.2.0.tgz", - "integrity": "sha512-4nyTfwAe9eHlpabZThnY5Sv06lIr4ofuUZjUOnoliPsw40gGkqqxqhiB2QcWVgxJ7X4/0r/r2W3LaGAyuenxBg==", - "dependencies": { - "@toruslabs/openlogin-utils": "^4.2.0", - "end-of-stream": "^1.4.4", - "eth-rpc-errors": "^4.0.3", - "events": "^3.3.0", - "fast-safe-stringify": "^2.1.1", - "once": "^1.4.0", - "pump": "^3.0.0", - "readable-stream": "^4.3.0" - }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/base-controllers/node_modules/@toruslabs/openlogin-utils": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-4.2.0.tgz", - "integrity": "sha512-zIgKpL2MPZ8wjDmxa/YZgZNa6lwXvCRKSEe9QRkifOeEaAKpHXf/iElJ6RcgFBCcZaMAf9H4LQ0ngpETlo+NTQ==", + "node_modules/@toruslabs/base-session-manager": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/base-session-manager/-/base-session-manager-3.0.0.tgz", + "integrity": "sha512-+EqwizmSFkVEczUtaw+swbAxRIIxC/EaFE040rwfgC5fixaQMNLw2cVYXWN67Ra47wC9A7Om6xwQTuGFR+dy4w==", "dependencies": { - "base64url": "^3.0.1" + "@toruslabs/http-helpers": "^5.0.0" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/base-controllers/node_modules/readable-stream": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.0.tgz", - "integrity": "sha512-kDMOq0qLtxV9f/SQv522h8cxZBqNZXuXNyjyezmfAAuribMyVXziljpQ/uQhfE1XLg2/TLTW2DsnoE4VAi/krg==", - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, "node_modules/@toruslabs/broadcast-channel": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/@toruslabs/broadcast-channel/-/broadcast-channel-6.3.1.tgz", - "integrity": "sha512-BEtJQ+9bMfFoGuCsp5NmxyY+C980Ho+3BZIKSiYwRtl5qymJ+jMX5lsoCppoQblcb34dP6FwEjeFw80Y9QC/rw==", - "dependencies": { - "@babel/runtime": "^7.21.0", - "@toruslabs/eccrypto": "^2.1.1", - "@toruslabs/metadata-helpers": "^3.2.0", - "bowser": "^2.11.0", - "loglevel": "^1.8.1", - "oblivious-set": "1.1.1", - "socket.io-client": "^4.6.1", - "unload": "^2.4.1" - } - }, - "node_modules/@toruslabs/broadcast-channel/node_modules/@toruslabs/eccrypto": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-2.2.1.tgz", - "integrity": "sha512-7sviL0wLYsfA5ogEAOIdb0tu/QAOFXfHc9B8ONYtF04x4Mg3Nr89LL35FhjaEm055q8Ru7cUQhEFSiqJqm9GCw==", - "dependencies": { - "elliptic": "^6.5.4" - } - }, - "node_modules/@toruslabs/constants": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-10.0.0.tgz", - "integrity": "sha512-a5HJ8R/Z7cstIqY8qsXZvSVq6zlVSpkxTIOxiU808Qc8kehi9Uzg2B6HCaXSlPFhEKIhOwvEXDltfNkTtCdy9g==", - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@toruslabs/customauth": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/customauth/-/customauth-13.0.0.tgz", - "integrity": "sha512-ZRQpC9mKSqTOxvfJ6t0yN3s0e5YrGuz887ImjMCWY2xhR88U9PA3tmpUdf9dF+oCxFIR/NhAgIMoph1CaBGDjA==", - "dependencies": { - "@chaitanyapotti/register-service-worker": "^1.7.3", - "@toruslabs/broadcast-channel": "^7.0.0", - "@toruslabs/constants": "^10.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/fetch-node-details": "^10.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "@toruslabs/metadata-helpers": "^4.0.0", - "@toruslabs/torus.js": "^8.0.0", - "bowser": "^2.11.0", - "events": "^3.3.0", - "jwt-decode": "^3.1.2", - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, - "node_modules/@toruslabs/customauth/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@toruslabs/customauth/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/customauth/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/customauth/node_modules/@toruslabs/broadcast-channel": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/broadcast-channel/-/broadcast-channel-7.0.0.tgz", - "integrity": "sha512-lyt2Els735qUXczPk743aHbIXZn+TeK/7YqKpUrY+xTyvXs9JyE6RahW+EY4yU90KAJx8+N9ZXZlcJP617T4bg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/broadcast-channel/-/broadcast-channel-8.0.0.tgz", + "integrity": "sha512-qCyWsHVL4Xtx1J6k1+acD7TJKCelJWyUy5Q5zyiWMPxMGFxTv1XdRyqpzV+VgwbcslIqgFN0GewOry2l1jlUQQ==", "dependencies": { - "@babel/runtime": "^7.21.5", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/metadata-helpers": "^4.0.0", + "@babel/runtime": "^7.22.10", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/metadata-helpers": "^5.0.0", "bowser": "^2.11.0", "loglevel": "^1.8.1", "oblivious-set": "1.1.1", - "socket.io-client": "^4.6.1", + "socket.io-client": "^4.7.2", "unload": "^2.4.1" - } - }, - "node_modules/@toruslabs/customauth/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } + "node": ">=18.x", + "npm": ">=9.x" } }, - "node_modules/@toruslabs/customauth/node_modules/@toruslabs/metadata-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/metadata-helpers/-/metadata-helpers-4.0.0.tgz", - "integrity": "sha512-E8wDP9YaeT/Aciq36fLiwykQ1++pKW9AtRa+OMxT+BQWUIDpayI1K/uTwTWsjob6sLpjIHpJMQ66o7s2z54NNQ==", - "dependencies": { - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "elliptic": "^6.5.4", - "ethereum-cryptography": "^2.0.0", - "json-stable-stringify": "^1.0.2" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@toruslabs/customauth/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, - "node_modules/@toruslabs/eccrypto": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-3.0.0.tgz", - "integrity": "sha512-+lFjV+0FZ3S4zH5T/Gnc795HoqpzLLDW28fSkibZRlx1Nx8uwbl3pyJSfya0C0bRHH1/+NTeBogUDijaRJ1NCw==", - "dependencies": { - "elliptic": "^6.5.4" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - } - }, - "node_modules/@toruslabs/fetch-node-details": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/fetch-node-details/-/fetch-node-details-10.0.0.tgz", - "integrity": "sha512-Nf5sRHtU51EmGQjrYk2IpSkROqw0P/i5UUY2qOj16iToiBpgZAU1QR5LbQbaBguQpGyXB6FbNqeXttaXCms2+g==", - "dependencies": { - "@toruslabs/constants": "^10.0.0", - "@toruslabs/fnd-base": "^10.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "loglevel": "^1.8.1" - }, + "node_modules/@toruslabs/constants": { + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-13.0.1.tgz", + "integrity": "sha512-haFppvgyHfKl2uTQKkrWOkgQmLgzbqxhIvaNvRGei4FgFNJNLr5+ju8/PwwbgKhQUi7adkeU0pjwFYITJyHEPw==", "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/fetch-node-details/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", + "node_modules/@toruslabs/customauth": { + "version": "16.0.4", + "resolved": "https://registry.npmjs.org/@toruslabs/customauth/-/customauth-16.0.4.tgz", + "integrity": "sha512-vi4BJQk5J30e/5OoKrl25aYma0diZxcd0EXKz7ywYiN7nMrkCoqqkAls8uHPbpz3YinkNW3TBePUa9pUI7Eb4A==", "dependencies": { + "@chaitanyapotti/register-service-worker": "^1.7.3", + "@toruslabs/broadcast-channel": "^8.0.0", + "@toruslabs/constants": "^13.0.1", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/fetch-node-details": "^13.0.1", + "@toruslabs/http-helpers": "^5.0.0", + "@toruslabs/metadata-helpers": "^5.0.0", + "@toruslabs/torus.js": "^11.0.5", + "bowser": "^2.11.0", + "events": "^3.3.0", + "jwt-decode": "^3.1.2", "lodash.merge": "^4.6.2", "loglevel": "^1.8.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "^7.x", @@ -4542,32 +4113,62 @@ } } }, + "node_modules/@toruslabs/eccrypto": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-4.0.0.tgz", + "integrity": "sha512-Z3EINkbsgJx1t6jCDVIJjLSUEGUtNIeDjhMWmeDGOWcP/+v/yQ1hEvd1wfxEz4q5WqIHhevacmPiVxiJ4DljGQ==", + "dependencies": { + "elliptic": "^6.5.4" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" + } + }, + "node_modules/@toruslabs/fetch-node-details": { + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/@toruslabs/fetch-node-details/-/fetch-node-details-13.0.1.tgz", + "integrity": "sha512-05WfFlrkIibO5VdYdx5+B70owzasXzRMSm19KYF/Iw/ch3jbRIC10tKtQMs2wGfpcMX+ngmGtlRYndUcy1UikA==", + "dependencies": { + "@toruslabs/constants": "^13.0.1", + "@toruslabs/fnd-base": "^13.0.1", + "@toruslabs/http-helpers": "^5.0.0", + "loglevel": "^1.8.1" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" + }, + "peerDependencies": { + "@babel/runtime": "7.x" + } + }, "node_modules/@toruslabs/fnd-base": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/fnd-base/-/fnd-base-10.0.0.tgz", - "integrity": "sha512-MEFpTQVNpwMVfDsHka04oazfXU+8UlPQ3IvkWzRT9LScJCCM9TKThyjMUAJ0npVBnWBcvVLNpEdiQYk2B+Tfqw==", + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/@toruslabs/fnd-base/-/fnd-base-13.0.1.tgz", + "integrity": "sha512-HJE+NAFBWIZmk9DN38n71epbdqulIc2lJDb2UU+RMqYh4YArjab4JRbBew2rye0SDyhCXSIAw4GHjEH9UYi9Zg==", "dependencies": { - "@toruslabs/constants": "^10.0.0" + "@toruslabs/constants": "^13.0.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@toruslabs/http-helpers": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-3.4.0.tgz", - "integrity": "sha512-CoeJSL32mpp0gmYjxv48odu6pfjHk/rbJHDwCtYPcMHAl+qUQ/DTpVOOn9U0fGkD+fYZrQmZbRkXFgLhiT0ajQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-5.0.0.tgz", + "integrity": "sha512-GmezWz9JeF6YyhjLSm+9XDF4YaeICEckY0Jbo43i86SjhfJYgRWqEi63VSiNsaqc/z810Q0FQvEk1TnBRX2tgA==", "dependencies": { "lodash.merge": "^4.6.2", "loglevel": "^1.8.1" }, "engines": { - "node": ">=14.17.0", - "npm": ">=6.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "^7.x", @@ -4580,248 +4181,137 @@ } }, "node_modules/@toruslabs/metadata-helpers": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/metadata-helpers/-/metadata-helpers-3.2.0.tgz", - "integrity": "sha512-2bCc6PNKd9y+aWfZQ1FXd47QmfyT4NmmqPGfsqk+sQS2o+MlxIyLuh9uh7deMgXo4b4qBDX+RQGbIKM1zVk56w==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/metadata-helpers/-/metadata-helpers-5.0.0.tgz", + "integrity": "sha512-ZUFfOHJVJC53c8wJYHjdF3bIgN2ZvfqehbTZ/zJ7oVFfrrd6O66V3gQ1i1zxBjH3yhOvZKQwc0DaMmh3G0NUXQ==", "dependencies": { - "@toruslabs/eccrypto": "^2.1.1", - "@toruslabs/http-helpers": "^3.4.0", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/http-helpers": "^5.0.0", "elliptic": "^6.5.4", - "ethereum-cryptography": "^2.0.0", + "ethereum-cryptography": "^2.1.2", "json-stable-stringify": "^1.0.2" }, "engines": { - "node": ">=14.17.0", - "npm": ">=6.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/metadata-helpers/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@toruslabs/metadata-helpers/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/metadata-helpers/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/metadata-helpers/node_modules/@toruslabs/eccrypto": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-2.2.1.tgz", - "integrity": "sha512-7sviL0wLYsfA5ogEAOIdb0tu/QAOFXfHc9B8ONYtF04x4Mg3Nr89LL35FhjaEm055q8Ru7cUQhEFSiqJqm9GCw==", - "dependencies": { - "elliptic": "^6.5.4" - } - }, - "node_modules/@toruslabs/metadata-helpers/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@toruslabs/openlogin": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin/-/openlogin-3.2.1.tgz", - "integrity": "sha512-yJNj2gn+H6+TjR/xn7nFMED/U05C1YbvD4u9hz7I0YhiVG/chOIeXEvvixkIiH3Om9M7PhshwcLCN/hn1cgW6A==", - "dependencies": { - "@toruslabs/eccrypto": "^2.0.0", - "@toruslabs/http-helpers": "^3.3.0", - "@toruslabs/openlogin-jrpc": "^3.2.0", - "@toruslabs/openlogin-utils": "^3.0.0", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin/-/openlogin-5.0.3.tgz", + "integrity": "sha512-a7wdW/n5UINk1Uxn/hU4majTyIdeCk9XlSnmdr/ob71Dozz2hqPbXm1PFJ+XOMdlIPwqg4fLaOff6AySM1fqHg==", + "dependencies": { + "@toruslabs/broadcast-channel": "^8.0.0", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/metadata-helpers": "^5.0.0", + "@toruslabs/openlogin-session-manager": "^3.0.0", + "@toruslabs/openlogin-utils": "^5.0.2", + "bowser": "^2.11.0", + "events": "^3.3.0", "loglevel": "^1.8.1", - "pump": "^3.0.0" + "ts-custom-error": "^3.3.1" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@toruslabs/openlogin-jrpc": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-3.2.0.tgz", - "integrity": "sha512-G+K0EHyVUaAEyeD4xGsnAZRpn/ner8lQ2HC2+pGKg6oGmzKI2wGMDcw2KMH6+HKlfBGVJ5/VR9AQfC/tZlLDmQ==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-5.0.2.tgz", + "integrity": "sha512-ezpCrQ+oh0wfEuq3GTdjTpANVmfNjG7B/m03IGwnnSpg0NJRWUZBp/sB+z9Q1cOYtUl1Kg1+8mfqdX69eAn8bg==", "dependencies": { - "@toruslabs/openlogin-utils": "^3.0.0", + "@metamask/rpc-errors": "^6.0.0", + "@toruslabs/openlogin-utils": "^5.0.2", "end-of-stream": "^1.4.4", - "eth-rpc-errors": "^4.0.3", "events": "^3.3.0", "fast-safe-stringify": "^2.1.1", "once": "^1.4.0", "pump": "^3.0.0", - "readable-stream": "^3.6.2" + "readable-stream": "^4.4.2" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@toruslabs/openlogin-jrpc/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.2.tgz", + "integrity": "sha512-Lk/fICSyIhodxy1IDK2HazkeGjSmezAWX2egdtJnYhtzKEsBPJowlI6F6LPb5tqIQILrMbx22S5o3GuJavPusA==", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" }, "engines": { - "node": ">= 6" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/@toruslabs/openlogin-utils": { + "node_modules/@toruslabs/openlogin-session-manager": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-3.0.0.tgz", - "integrity": "sha512-T5t29/AIFqXc84x4OoAkZWjd0uoP2Lk6iaFndnIIMzCPu+BwwV0spX/jd/3YYNjZ8Po8D+faEnwAhiqemYeK2w==", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-session-manager/-/openlogin-session-manager-3.0.0.tgz", + "integrity": "sha512-S+nnZQ+Y+XCHvTYaov3ltiV2hAAPpKpwxvB4TmbMvi7KWOZ8BcUJQykSITlIXV4aE5y5BD96rsmjQ3C3MyVtUQ==", "dependencies": { - "base64url": "^3.0.1", - "keccak": "^3.0.3", - "randombytes": "^2.1.0" + "@toruslabs/base-session-manager": "^3.0.0", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/metadata-helpers": "5.0.0" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/openlogin/node_modules/@toruslabs/eccrypto": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-2.2.1.tgz", - "integrity": "sha512-7sviL0wLYsfA5ogEAOIdb0tu/QAOFXfHc9B8ONYtF04x4Mg3Nr89LL35FhjaEm055q8Ru7cUQhEFSiqJqm9GCw==", - "dependencies": { - "elliptic": "^6.5.4" - } - }, - "node_modules/@toruslabs/torus.js": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/torus.js/-/torus.js-8.0.0.tgz", - "integrity": "sha512-jN8Eak8XAjmTzIkaUymdTi+sm09/CXYJkDeY63PeQ7JS6HYKrSXabRcTaEGWSSVopKB0foQzzaU0em363/eZVQ==", + "node_modules/@toruslabs/openlogin-utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-5.0.2.tgz", + "integrity": "sha512-iOYnbowda0kk1Wk7Ax6xwCg5kVG8HDyq9VBKJfiyQeZCnSwiWW03UHL+UTCtiXy8jhBtkd7OEwh2Np2Lm30Tgg==", "dependencies": { - "@toruslabs/constants": "^10.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "bn.js": "^5.2.1", - "elliptic": "^6.5.4", - "ethereum-cryptography": "^2.0.0", - "json-stable-stringify": "^1.0.2", - "loglevel": "^1.8.1" + "@toruslabs/constants": "^13.0.1", + "base64url": "^3.0.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/torus.js/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@toruslabs/torus.js/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/torus.js/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/torus.js/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", + "node_modules/@toruslabs/torus.js": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/@toruslabs/torus.js/-/torus.js-11.0.5.tgz", + "integrity": "sha512-CrC7foZB/2HrvMN5qVI4mEpPbmRAX5/2cdn3pgvgxWpEXQTNnJcxIO8vb2eT7iO6GhBYADnMZyxxWPMdk8S11Q==", "dependencies": { - "lodash.merge": "^4.6.2", + "@toruslabs/constants": "^13.0.1", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/http-helpers": "^5.0.0", + "bn.js": "^5.2.1", + "elliptic": "^6.5.4", + "ethereum-cryptography": "^2.1.2", + "json-stable-stringify": "^1.0.2", "loglevel": "^1.8.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, - "node_modules/@toruslabs/torus.js/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" + "@babel/runtime": "7.x" } }, "node_modules/@trysound/sax": { @@ -4915,6 +4405,14 @@ "@types/node": "*" } }, + "node_modules/@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "dependencies": { + "@types/ms": "*" + } + }, "node_modules/@types/eslint": { "version": "8.21.1", "license": "MIT", @@ -5021,6 +4519,11 @@ "version": "3.0.1", "license": "MIT" }, + "node_modules/@types/ms": { + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", + "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" + }, "node_modules/@types/node": { "version": "17.0.45", "license": "MIT" @@ -5448,19 +4951,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@walletconnect/environment": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz", - "integrity": "sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg==", - "dependencies": { - "tslib": "1.14.1" - } - }, - "node_modules/@walletconnect/environment/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/@walletconnect/events": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@walletconnect/events/-/events-1.0.1.tgz", @@ -5491,9 +4981,9 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/jsonrpc-types": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.2.tgz", - "integrity": "sha512-CZe8tjJX73OWdHjrBHy7HtAapJ2tT0Q3TYhPBhRxi3643lwPIQWC9En45ldY14TZwgSewkbZ0FtGBZK0G7Bbyg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz", + "integrity": "sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw==", "dependencies": { "keyvaluestorage-interface": "^1.0.0", "tslib": "1.14.1" @@ -5504,21 +4994,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, - "node_modules/@walletconnect/jsonrpc-utils": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.7.tgz", - "integrity": "sha512-zJziApzUF/Il4VcwabnaU+0yo1QI4eUkYX99zmCVTHJvZOf2l0zjADf/OpKqWyeNFC3Io56Z/8uJHVtcNVvyFA==", - "dependencies": { - "@walletconnect/environment": "^1.0.1", - "@walletconnect/jsonrpc-types": "^1.0.2", - "tslib": "1.14.1" - } - }, - "node_modules/@walletconnect/jsonrpc-utils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/@walletconnect/keyvaluestorage": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.0.2.tgz", @@ -5608,33 +5083,32 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/types": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.7.3.tgz", - "integrity": "sha512-01U/GwrtokgBfBzLwZQQogkYh/+HBvClO4Oet3bClnyzHZ//Jv3Xf3X9LluNrHaulzPqdc9g7wnFkpjkVqKicQ==", + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.10.1.tgz", + "integrity": "sha512-7pccAhajQdiH2kYywjE1XI64IqRI+4ioyGy0wvz8d0UFQ/DSG3MLKR8jHf5aTOafQQ/HRLz6xvlzN4a7gIVkUQ==", "dependencies": { "@walletconnect/events": "^1.0.1", "@walletconnect/heartbeat": "1.2.1", - "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/jsonrpc-types": "1.0.3", "@walletconnect/keyvaluestorage": "^1.0.2", "@walletconnect/logger": "^2.0.1", "events": "^3.3.0" } }, "node_modules/@walletconnect/utils": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.7.3.tgz", - "integrity": "sha512-ecKnoks3N8CaP5KYIrgJct5YNmvlfp1Ec8BuiXw5Gmta1HFnKpzvjmAG1627XGEfB2UVc9O2Rmbx+UmhuyB5KQ==", + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.10.1.tgz", + "integrity": "sha512-DM0dKgm9O58l7VqJEyV2OVv16XRePhDAReI23let6WdW1dSpw/Y/A89Lp99ZJOjLm2FxyblMRF3YRaZtHwBffw==", "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/jsonrpc-utils": "^1.0.7", "@walletconnect/relay-api": "^1.0.9", "@walletconnect/safe-json": "^1.0.2", "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.7.3", + "@walletconnect/types": "2.10.1", "@walletconnect/window-getters": "^1.0.1", "@walletconnect/window-metadata": "^1.0.1", "detect-browser": "5.3.0", @@ -5695,59 +5169,71 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@web3auth/base": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@web3auth/base/-/base-5.2.0.tgz", - "integrity": "sha512-ZJ2fUJBrCq6rFXXUJZOg3uMhJ07UGU8ibOKQ24HHIx+RRE2btVF3t2xYPjTUlWBrdGN+zlmu04CjSuOt3Z+qUQ==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@web3auth/base/-/base-7.0.1.tgz", + "integrity": "sha512-6ft4XAD37tobOxgkZhideiBMqoVJTpvAvYD0R99IDmpazpIrX8b4RBgwLQ/gIlNmGZhkU1UoTzub19xTWI9h6w==", "dependencies": { - "@toruslabs/http-helpers": "^3.3.0", - "@toruslabs/openlogin": "^3.2.1", - "@toruslabs/openlogin-jrpc": "^3.2.0", + "@toruslabs/http-helpers": "^5.0.0", + "@toruslabs/openlogin": "^5.0.3", + "@toruslabs/openlogin-jrpc": "^5.0.2", + "@toruslabs/openlogin-utils": "^5.0.2", "jwt-decode": "^3.1.2", "loglevel": "^1.8.1", "ts-custom-error": "^3.3.1" }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" + }, "peerDependencies": { "@babel/runtime": "^7.x" } }, "node_modules/@web3auth/base-provider": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@web3auth/base-provider/-/base-provider-5.2.0.tgz", - "integrity": "sha512-FZhaSq8+1o48ZocCGDVKENIioMSDHpQEPLv5yQLG1LgTYXQbFrl33l+/XehyZ1zrVKf2mERLUKeeDSb/qTR+yg==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@web3auth/base-provider/-/base-provider-7.0.1.tgz", + "integrity": "sha512-8ggJtsD/1MbpMEbe+uBSS3mrqE/nqEKpRLyIjuyfobPs4Zu/VI2Exdjz6wcUIzwEB1iYyjFt29/gyIXufMyCgA==", "dependencies": { - "@toruslabs/base-controllers": "^2.8.1", - "@toruslabs/openlogin-jrpc": "^3.2.0", - "@web3auth/base": "^5.2.0", - "eth-rpc-errors": "^4.0.3", + "@metamask/rpc-errors": "^6.0.0", + "@toruslabs/base-controllers": "^4.0.1", + "@toruslabs/openlogin-jrpc": "^5.0.2", + "@web3auth/base": "^7.0.1", "json-rpc-random-id": "^1.0.1" }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" + }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@web3auth/ethereum-provider": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@web3auth/ethereum-provider/-/ethereum-provider-5.2.0.tgz", - "integrity": "sha512-FzwG7R5ZB//rrKuSU/TH79GiUlH3HMgsJ34bw6/iKcumDC3KBFYyxyjJznN7hwCzzzrOHqTujsppwTvubI5DdA==", - "dependencies": { - "@ethereumjs/common": "^3.1.1", - "@ethereumjs/tx": "^4.1.1", - "@ethereumjs/util": "^8.0.5", - "@metamask/eth-sig-util": "^5.0.2", - "@toruslabs/base-controllers": "^2.8.1", - "@toruslabs/http-helpers": "^3.3.0", - "@toruslabs/openlogin-jrpc": "^3.2.0", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@web3auth/ethereum-provider/-/ethereum-provider-7.0.2.tgz", + "integrity": "sha512-Yg1/ZB0eUugiTx5fvLtYeplSF0175PcsBOAhShl/Rd+rLlkycP5lRMGsBSnxdHGE9esRajYoH8xfGNwEUcItjw==", + "dependencies": { + "@ethereumjs/common": "^4.0.0", + "@ethereumjs/tx": "^5.0.0", + "@ethereumjs/util": "^9.0.0", + "@metamask/eth-sig-util": "^7.0.0", + "@metamask/rpc-errors": "^6.0.0", + "@toruslabs/base-controllers": "^4.0.1", + "@toruslabs/http-helpers": "^5.0.0", + "@toruslabs/openlogin-jrpc": "^5.0.2", "@walletconnect/legacy-types": "2.0.0", - "@walletconnect/types": "^2.5.2", - "@walletconnect/utils": "^2.5.2", - "@web3auth/base": "^5.2.0", - "@web3auth/base-provider": "^5.2.0", - "assert": "^2.0.0", - "bignumber.js": "^9.1.1", + "@walletconnect/utils": "^2.10.1", + "@web3auth/base": "^7.0.1", + "@web3auth/base-provider": "^7.0.1", + "assert": "^2.1.0", + "bignumber.js": "^9.1.2", "bn.js": "^5.2.1", - "eth-rpc-errors": "^4.0.3", "jsonschema": "^1.4.1" }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" + }, "peerDependencies": { "@babel/runtime": "7.x" } @@ -6228,13 +5714,15 @@ } }, "node_modules/assert": { - "version": "2.0.0", - "license": "MIT", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/assert/-/assert-2.1.0.tgz", + "integrity": "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==", "dependencies": { - "es6-object-assign": "^1.1.0", - "is-nan": "^1.2.1", - "object-is": "^1.0.1", - "util": "^0.12.0" + "call-bind": "^1.0.2", + "is-nan": "^1.3.2", + "object-is": "^1.1.5", + "object.assign": "^4.1.4", + "util": "^0.12.5" } }, "node_modules/assert-plus": { @@ -6623,8 +6111,9 @@ } }, "node_modules/bignumber.js": { - "version": "9.1.1", - "license": "MIT", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", "engines": { "node": "*" } @@ -6711,7 +6200,8 @@ }, "node_modules/bowser": { "version": "2.11.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" }, "node_modules/brace-expansion": { "version": "1.1.11", @@ -7461,6 +6951,22 @@ "node": ">=10" } }, + "node_modules/crc": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/crc/-/crc-4.3.2.tgz", + "integrity": "sha512-uGDHf4KLLh2zsHa8D8hIQ1H/HtFQhyHrc0uhHBcoKGol/Xnb+MPYfUMw7cvON6ze/GUESTudKayDcJC5HnJv1A==", + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "buffer": ">=6.0.3" + }, + "peerDependenciesMeta": { + "buffer": { + "optional": true + } + } + }, "node_modules/crc-32": { "version": "1.2.2", "license": "Apache-2.0", @@ -8397,13 +7903,13 @@ } }, "node_modules/engine.io-client": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.4.0.tgz", - "integrity": "sha512-GyKPDyoEha+XZ7iEqam49vz6auPnNJ9ZBfy89f+rMMas8AuiMWOZ9PVzu8xb9ZC6rafUqiGHSCfu22ih66E+1g==", + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.2.tgz", + "integrity": "sha512-CQZqbrpEYnrpGqC07a9dJDz4gePZUgTPMU3NKJPSeQOyw27Tst4Pl3FemKoFGAlHzgZmKjoRmiJvbWfhCXUlIg==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1", - "engine.io-parser": "~5.0.3", + "engine.io-parser": "~5.2.1", "ws": "~8.11.0", "xmlhttprequest-ssl": "~2.0.0" } @@ -8429,9 +7935,9 @@ } }, "node_modules/engine.io-parser": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.0.6.tgz", - "integrity": "sha512-tjuoZDMAdEhVnSFleYPCtdL2GXwVTGtNjoeJd9IhIG3C1xs9uwxqRNEu5WpnDZCaozwVlK/nuQhpodhXSIMaxw==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.1.tgz", + "integrity": "sha512-9JktcM3u18nU9N2Lz3bWeBgxVgOKpw7yhRaoxQA3FUDZzzw+9WlA6p4G4u0RixNkg14fH7EfEc/RhpurtiROTQ==", "engines": { "node": ">=10.0.0" } @@ -9309,14 +8815,6 @@ "ultron": "~1.1.0" } }, - "node_modules/eth-rpc-errors": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz", - "integrity": "sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==", - "dependencies": { - "fast-safe-stringify": "^2.0.6" - } - }, "node_modules/ethereum-bloom-filters": { "version": "1.0.10", "license": "MIT", @@ -9325,13 +8823,25 @@ } }, "node_modules/ethereum-cryptography": { - "version": "1.2.0", - "license": "MIT", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", + "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", "dependencies": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" + "@noble/curves": "1.1.0", + "@noble/hashes": "1.3.1", + "@scure/bip32": "1.3.1", + "@scure/bip39": "1.2.1" + } + }, + "node_modules/ethereum-cryptography/node_modules/@noble/hashes": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", + "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/ethereumjs-util": { @@ -9400,7 +8910,8 @@ }, "node_modules/ethjs-util": { "version": "0.1.6", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ethjs-util/-/ethjs-util-0.1.6.tgz", + "integrity": "sha512-CUnVOQq7gSpDHZVVrQW8ExxUETWrnrvXYvYz55wOU8Uj4VCgw56XC2B/fVqQN+f7gmrnRHSLVnFAwsCuNwji8w==", "dependencies": { "is-hex-prefixed": "1.0.0", "strip-hex-prefix": "1.0.0" @@ -9587,9 +9098,9 @@ "license": "MIT" }, "node_modules/fast-redact": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.1.2.tgz", - "integrity": "sha512-+0em+Iya9fKGfEQGcd62Yv6onjBmmhV1uh86XVfOU8VwAe6kaFdQCWI9s0/Nnugx5Vd9tdbZ7e6gE2tR9dzXdw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.3.0.tgz", + "integrity": "sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==", "engines": { "node": ">=6" } @@ -10974,7 +10485,8 @@ }, "node_modules/is-nan": { "version": "1.3.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", + "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", "dependencies": { "call-bind": "^1.0.0", "define-properties": "^1.1.3" @@ -12210,7 +11722,8 @@ }, "node_modules/json-stable-stringify": { "version": "1.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz", + "integrity": "sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==", "dependencies": { "jsonify": "^0.0.1" }, @@ -12248,7 +11761,8 @@ }, "node_modules/jsonify": { "version": "0.0.1", - "license": "Public Domain", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", + "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -12293,7 +11807,8 @@ }, "node_modules/jwt-decode": { "version": "3.1.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", + "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==" }, "node_modules/keccak": { "version": "3.0.3", @@ -12439,7 +11954,8 @@ }, "node_modules/loglevel": { "version": "1.8.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.8.1.tgz", + "integrity": "sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==", "engines": { "node": ">= 0.6.0" }, @@ -13174,7 +12690,8 @@ }, "node_modules/oblivious-set": { "version": "1.1.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/oblivious-set/-/oblivious-set-1.1.1.tgz", + "integrity": "sha512-Oh+8fK09mgGmAshFdH6hSVco6KZmd1tTwNFWj35OvzdmJTMZtAkbn05zar2iG3v6sDs1JLEtOiBGNb6BHwkb2w==" }, "node_modules/oboe": { "version": "2.1.5", @@ -16040,23 +15557,23 @@ } }, "node_modules/socket.io-client": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.6.1.tgz", - "integrity": "sha512-5UswCV6hpaRsNg5kkEHVcbBIXEYoVbMQaHJBXJCyEQ+CiFPV1NIOY0XOFWG4XR4GZcB8Kn6AsRs/9cy9TbqVMQ==", + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.2.tgz", + "integrity": "sha512-vtA0uD4ibrYD793SOIAwlo8cj6haOeMHrGvwPxJsxH7CeIksqJ+3Zc06RvWTIFgiSqx4A3sOnTXpfAEE2Zyz6w==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.2", - "engine.io-client": "~6.4.0", - "socket.io-parser": "~4.2.1" + "engine.io-client": "~6.5.2", + "socket.io-parser": "~4.2.4" }, "engines": { "node": ">=10.0.0" } }, "node_modules/socket.io-parser": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.2.tgz", - "integrity": "sha512-DJtziuKypFkMMHCm2uIshOYC7QaylbtzQwiMYDuCKy3OPkjLzu4B2vAhTlqipRHHzrI0NJeBAizTK7X+6m1jVw==", + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1" @@ -16453,6 +15970,14 @@ "postcss": "^8.2.15" } }, + "node_modules/superstruct": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.3.tgz", + "integrity": "sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg==", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/supports-color": { "version": "7.2.0", "license": "MIT", @@ -17020,7 +16545,8 @@ }, "node_modules/ts-custom-error": { "version": "3.3.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ts-custom-error/-/ts-custom-error-3.3.1.tgz", + "integrity": "sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==", "engines": { "node": ">=14.0.0" } @@ -17085,11 +16611,13 @@ }, "node_modules/tweetnacl": { "version": "1.0.3", - "license": "Unlicense" + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", + "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" }, "node_modules/tweetnacl-util": { "version": "0.15.1", - "license": "Unlicense" + "resolved": "https://registry.npmjs.org/tweetnacl-util/-/tweetnacl-util-0.15.1.tgz", + "integrity": "sha512-RKJBIj8lySrShN4w6i/BonWp2Z/uxwC3h4y7xsRrpP59ZboCd0GpEVsOnMDYLMmKBpYhb5TgHzZXy7wTfYFBRw==" }, "node_modules/type": { "version": "1.2.0", @@ -17153,14 +16681,15 @@ } }, "node_modules/typescript": { - "version": "4.9.5", - "license": "Apache-2.0", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/uint8arrays": { @@ -17239,7 +16768,8 @@ }, "node_modules/unload": { "version": "2.4.1", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/unload/-/unload-2.4.1.tgz", + "integrity": "sha512-IViSAm8Z3sRBYA+9wc0fLQmU9Nrxb16rcDmIiR6Y9LJSZzI7QY5QsDhqPpKOjAn0O9/kfK1TfNEMMAGPTIraPw==", "funding": { "url": "https://github.com/sponsors/pubkey" } diff --git a/tkey-web/tkey-react-popup-example/package.json b/tkey-web/tkey-react-popup-example/package.json index 4d57bc16..9b10cd21 100644 --- a/tkey-web/tkey-react-popup-example/package.json +++ b/tkey-web/tkey-react-popup-example/package.json @@ -6,19 +6,20 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", - "@tkey/default": "^9.0.1", - "@tkey/security-questions": "^9.0.0", - "@tkey/web-storage": "^9.0.0", + "@tkey/default": "^11.0.2", + "@tkey/security-questions": "^11.0.2", + "@tkey/web-storage": "^11.0.2", + "@toruslabs/constants": "^13.0.1", "@types/jest": "^27.5.2", "@types/node": "^17.0.45", "@types/react": "^18.0.25", "@types/react-dom": "^18.0.9", - "@web3auth/ethereum-provider": "^5.2.0", + "@web3auth/ethereum-provider": "^7.0.2", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", "sweetalert": "^2.1.2", - "typescript": "^4.9.3", + "typescript": "^5.2.2", "web-vitals": "^2.1.4", "web3": "^1.8.1", "workbox-background-sync": "^6.5.4", diff --git a/tkey-web/tkey-react-popup-example/src/App.tsx b/tkey-web/tkey-react-popup-example/src/App.tsx index 55ae08d7..ccee2d4d 100644 --- a/tkey-web/tkey-react-popup-example/src/App.tsx +++ b/tkey-web/tkey-react-popup-example/src/App.tsx @@ -61,9 +61,9 @@ function App() { // Triggering Login using Service Provider ==> opens the popup const loginResponse = await (tKey.serviceProvider as any).triggerLogin({ typeOfLogin: 'google', - verifier: 'google-tkey-w3a', + verifier: 'w3a-google-demo', clientId: - '774338308167-q463s7kpvja16l4l0kko3nb925ikds2p.apps.googleusercontent.com', + '519228911939-cri01h55lsjbsia1k7ll6qpalrus75ps.apps.googleusercontent.com', }); setUser(loginResponse.userInfo); setOAuthShare(loginResponse.privateKey); diff --git a/tkey-web/tkey-react-popup-example/src/tkey.ts b/tkey-web/tkey-react-popup-example/src/tkey.ts index 5278345e..6175614b 100644 --- a/tkey-web/tkey-react-popup-example/src/tkey.ts +++ b/tkey-web/tkey-react-popup-example/src/tkey.ts @@ -1,13 +1,9 @@ import ThresholdKey from "@tkey/default"; import WebStorageModule from "@tkey/web-storage"; import SecurityQuestionsModule from "@tkey/security-questions"; +import { TORUS_SAPPHIRE_NETWORK } from "@toruslabs/constants"; // Configuration of Service Provider -const customAuthArgs = { - web3AuthClientId: "BEglQSgt4cUWcj6SKRdu5QkOXTsePmMcusG5EAoyjyOYKlVRjIF1iCNnMOTfpzCiunHRrMui8TIwQPXdkQ8Yxuk", - baseUrl: `${window.location.origin}/serviceworker`, - network: "cyan", // based on the verifier network. -}; // Configuration of Modules const webStorageModule = new WebStorageModule(); const securityQuestionsModule = new SecurityQuestionsModule(); @@ -18,5 +14,9 @@ export const tKey = new ThresholdKey({ webStorage: webStorageModule, securityQuestions: securityQuestionsModule, }, - customAuthArgs: customAuthArgs as any, + customAuthArgs: { + web3AuthClientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", + baseUrl: `${window.location.origin}/serviceworker`, + network: TORUS_SAPPHIRE_NETWORK.SAPPHIRE_MAINNET, + }, }); \ No newline at end of file diff --git a/tkey-web/tkey-react-redirect-example/package-lock.json b/tkey-web/tkey-react-redirect-example/package-lock.json index 8e8ceb86..56552fba 100644 --- a/tkey-web/tkey-react-redirect-example/package-lock.json +++ b/tkey-web/tkey-react-redirect-example/package-lock.json @@ -11,16 +11,17 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", - "@tkey/default": "^9.0.1", - "@tkey/security-questions": "^9.0.0", - "@tkey/service-provider-torus": "^9.0.0", - "@tkey/web-storage": "^9.0.0", + "@tkey/default": "^11.0.2", + "@tkey/security-questions": "^11.0.2", + "@tkey/service-provider-torus": "^11.0.2", + "@tkey/web-storage": "^11.0.2", + "@toruslabs/constants": "^13.0.1", "@types/bn.js": "^5.1.1", "@types/jest": "^27.5.2", "@types/node": "^17.0.45", "@types/react": "^18.0.25", "@types/react-dom": "^18.0.9", - "@web3auth/ethereum-provider": "^5.2.0", + "@web3auth/ethereum-provider": "^7.0.2", "bn.js": "^5.2.1", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -43,6 +44,7 @@ "workbox-streams": "^6.5.4" }, "devDependencies": { + "buffer": "^6.0.3", "process": "^0.11.10", "react-app-rewired": "^2.2.1" } @@ -1891,16 +1893,21 @@ "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" }, "node_modules/@babel/runtime": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.5.tgz", - "integrity": "sha512-8jI69toZqqcsnqGGqwGS4Qb1VwLOEp4hz+CXPywcvjs60u3B4Pom/U/7rm4W8tMOYEB+E9wgD0mW1l3r8qlI9Q==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.15.tgz", + "integrity": "sha512-T0O+aa+4w0u06iNmapipJXMV4HoUir03hpx3/YqXXhu9xim3w+dVphjFWl1OH8NbZHw5Lbm9k45drDkgq2VNNA==", "dependencies": { - "regenerator-runtime": "^0.13.11" + "regenerator-runtime": "^0.14.0" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/runtime/node_modules/regenerator-runtime": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", + "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==" + }, "node_modules/@babel/template": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", @@ -1952,40 +1959,6 @@ "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" }, - "node_modules/@chainsafe/as-sha256": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@chainsafe/as-sha256/-/as-sha256-0.4.1.tgz", - "integrity": "sha512-IqeeGwQihK6Y2EYLFofqs2eY2ep1I2MvQXHzOAI+5iQN51OZlUkrLgyAugu2x86xZewDk5xas7lNczkzFzF62w==" - }, - "node_modules/@chainsafe/persistent-merkle-tree": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/@chainsafe/persistent-merkle-tree/-/persistent-merkle-tree-0.6.1.tgz", - "integrity": "sha512-gcENLemRR13+1MED2NeZBMA7FRS0xQPM7L2vhMqvKkjqtFT4YfjSVADq5U0iLuQLhFUJEMVuA8fbv5v+TN6O9A==", - "dependencies": { - "@chainsafe/as-sha256": "^0.4.1", - "@noble/hashes": "^1.3.0" - } - }, - "node_modules/@chainsafe/persistent-merkle-tree/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@chainsafe/ssz": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/@chainsafe/ssz/-/ssz-0.11.1.tgz", - "integrity": "sha512-cB8dBkgGN6ZoeOKuk+rIRHKN0L5i9JLGeC0Lui71QX0TuLcQKwgbfkUexpyJxnGFatWf8yeJxlOjozMn/OTP0g==", - "dependencies": { - "@chainsafe/as-sha256": "^0.4.1", - "@chainsafe/persistent-merkle-tree": "^0.6.1" - } - }, "node_modules/@chaitanyapotti/register-service-worker": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/@chaitanyapotti/register-service-worker/-/register-service-worker-1.7.3.tgz", @@ -2326,41 +2299,40 @@ } }, "node_modules/@ethereumjs/common": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.1.2.tgz", - "integrity": "sha512-YV+bZfRlFhAXg+FfwC5r4UQKVj4OG7vDP5/JvvNXLLbYpNplH5Vca9jD0L+ab8y0YlTYJMQM1ALyHFu3AE3eBA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-4.0.0.tgz", + "integrity": "sha512-eVa0/nC15mpotD8HOq6jB883SCWUkLjibr2jLPmPrx4FfmewXqFeh4drgR2sHjq3qWKxpCLK+5qsSJgtXwIzJQ==", "dependencies": { - "@ethereumjs/util": "^8.0.6", - "crc-32": "^1.2.0" + "@ethereumjs/util": "^9.0.0", + "crc": "^4.3.2" } }, "node_modules/@ethereumjs/rlp": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", - "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-5.0.0.tgz", + "integrity": "sha512-WuS1l7GJmB0n0HsXLozCoEFc9IwYgf3l0gCkKVYgR67puVF1O4OpEaN0hWmm1c+iHUHFCKt1hJrvy5toLg+6ag==", "bin": { "rlp": "bin/rlp" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "node_modules/@ethereumjs/tx": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.1.2.tgz", - "integrity": "sha512-PWWyO9lAFOiLwk7nB9OQisoJUsuvMz2PN2v4/ILbBpzamC5Ug79OddVq9r4rKvIDLPY+bn4NFerxBJg29+sjaA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-5.0.0.tgz", + "integrity": "sha512-bJBC/jHVIbwvZBVsK0Ls70NzxJ8Q3UvPwskG1LO6+ryVGKY0y1bhRreo0/gR3vTkuRjD+x5QTYV6fIY16tswJA==", "dependencies": { - "@chainsafe/ssz": "^0.11.1", - "@ethereumjs/common": "^3.1.2", - "@ethereumjs/rlp": "^4.0.1", - "@ethereumjs/util": "^8.0.6", - "ethereum-cryptography": "^2.0.0" + "@ethereumjs/common": "^4.0.0", + "@ethereumjs/rlp": "^5.0.0", + "@ethereumjs/util": "^9.0.0", + "ethereum-cryptography": "^2.1.2" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { - "c-kzg": "^1.0.8" + "c-kzg": "^2.1.0" }, "peerDependenciesMeta": { "c-kzg": { @@ -2368,124 +2340,24 @@ } } }, - "node_modules/@ethereumjs/tx/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@ethereumjs/tx/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@ethereumjs/tx/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@ethereumjs/tx/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@ethereumjs/util": { - "version": "8.0.6", - "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.0.6.tgz", - "integrity": "sha512-zFLG/gXtF3QUC7iKFn4PT6HCr+DEnlCbwUGKGtXoqjA+64T+e0FuqMjlo4bQIY2ngRzk3EtudKdGYC4g31ehhg==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-9.0.0.tgz", + "integrity": "sha512-V8062I+ZXfFxtFLp7xsPeiT1IxDaVOZaM78nGj1gsWUFeZ8SgADMLDKWehp+muTy1JRbVoXFljZ1qoyv9ji/2g==", "dependencies": { - "@chainsafe/ssz": "^0.11.1", - "@ethereumjs/rlp": "^4.0.1", - "ethereum-cryptography": "^2.0.0", - "micro-ftch": "^0.3.1" + "@ethereumjs/rlp": "^5.0.0", + "ethereum-cryptography": "^2.1.2" }, "engines": { - "node": ">=14" - } - }, - "node_modules/@ethereumjs/util/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@ethereumjs/util/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@ethereumjs/util/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" + "node": ">=18" + }, + "peerDependencies": { + "c-kzg": "^2.1.0" + }, + "peerDependenciesMeta": { + "c-kzg": { + "optional": true } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@ethereumjs/util/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" } }, "node_modules/@ethersproject/abi": { @@ -3304,26 +3176,163 @@ "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" }, + "node_modules/@metamask/abi-utils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@metamask/abi-utils/-/abi-utils-2.0.2.tgz", + "integrity": "sha512-B/A1dY/w4F/t6cDHUscklO6ovb/ztFsrsTXFd8QlqSByk/vyy+QbPE3VVpmmyI/7RX+PA1AJcvBdzCIz+r9dVQ==", + "dependencies": { + "@metamask/utils": "^8.0.0", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/@metamask/eth-sig-util": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@metamask/eth-sig-util/-/eth-sig-util-5.0.2.tgz", - "integrity": "sha512-RU6fG/H6/UlBol221uBkq5C7w3TwLK611nEZliO2u+kO0vHKGBXnIPlhI0tzKUigjhUeOd9mhCNbNvhh0LKt9Q==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@metamask/eth-sig-util/-/eth-sig-util-7.0.0.tgz", + "integrity": "sha512-8KeXZB4SKx3EfNS5ahbjUMegyGvDQYk6Nk3hmM658sXpfAQR5ZlIXBgj+9RF+ZROqsU6EuNVgKt7Fr10re60PQ==", "dependencies": { - "@ethereumjs/util": "^8.0.0", - "bn.js": "^4.11.8", - "ethereum-cryptography": "^1.1.2", + "@ethereumjs/util": "^8.1.0", + "@metamask/abi-utils": "^2.0.2", + "@metamask/utils": "^8.1.0", + "ethereum-cryptography": "^2.1.2", "ethjs-util": "^0.1.6", "tweetnacl": "^1.0.3", "tweetnacl-util": "^0.15.1" }, "engines": { - "node": ">=14.0.0" + "node": "^16.20 || ^18.16 || >=20" } }, - "node_modules/@metamask/eth-sig-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + "node_modules/@metamask/eth-sig-util/node_modules/@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "bin": { + "rlp": "bin/rlp" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/eth-sig-util/node_modules/@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "dependencies": { + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/rpc-errors": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@metamask/rpc-errors/-/rpc-errors-6.0.0.tgz", + "integrity": "sha512-sAZwcdmidJDPbZV3XSKcWZC7CSTdjqDNRsDDdb2SstCOLEJtNqHpx32FWgwWB0arqWxUcUxYxgR39edUbsWz7A==", + "dependencies": { + "@metamask/utils": "^8.0.0", + "fast-safe-stringify": "^2.0.6" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/utils": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.1.0.tgz", + "integrity": "sha512-sFNpzBKRicDgM2ZuU6vrPROlqNGm8/jDsjc5WrU1RzCkAMc4Xr3vUUf8p59uQ6B09etUWNb8d2GTCbISdmH/Ug==", + "dependencies": { + "@ethereumjs/tx": "^4.1.2", + "@noble/hashes": "^1.3.1", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.5.4", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/utils/node_modules/@ethereumjs/common": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.2.0.tgz", + "integrity": "sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==", + "dependencies": { + "@ethereumjs/util": "^8.1.0", + "crc-32": "^1.2.0" + } + }, + "node_modules/@metamask/utils/node_modules/@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "bin": { + "rlp": "bin/rlp" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/utils/node_modules/@ethereumjs/tx": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.2.0.tgz", + "integrity": "sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==", + "dependencies": { + "@ethereumjs/common": "^3.2.0", + "@ethereumjs/rlp": "^4.0.1", + "@ethereumjs/util": "^8.1.0", + "ethereum-cryptography": "^2.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/utils/node_modules/@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "dependencies": { + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/utils/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/utils/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/utils/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { "version": "5.1.1-v1", @@ -3354,51 +3363,37 @@ } }, "node_modules/@noble/curves": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.0.0.tgz", - "integrity": "sha512-2upgEu0iLiDVDZkNLeFV2+ht0BAVgQnEmCk6JsOch9Rp8xfkMCbvbAZlA2pBHQc73dbl+vFOXfqkf4uemdn0bw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz", + "integrity": "sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==", "dependencies": { - "@noble/hashes": "1.3.0" + "@noble/hashes": "1.3.1" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@noble/curves/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", + "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@noble/secp256k1": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz", - "integrity": "sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", @@ -3561,45 +3556,36 @@ "integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==" }, "node_modules/@scure/base": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", - "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.3.tgz", + "integrity": "sha512-/+SgoRjLq7Xlf0CWuLHq2LUZeL/w65kfzAPG5NH9pcmBhs+nunQTn4gvdwgMTIXnt9b2C/1SeL2XiysZEyIC9Q==", + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@scure/bip32": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", - "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.1.tgz", + "integrity": "sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==", "dependencies": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", + "@noble/curves": "~1.1.0", + "@noble/hashes": "~1.3.1", "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@scure/bip39": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", - "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", + "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", "dependencies": { - "@noble/hashes": "~1.2.0", + "@noble/hashes": "~1.3.0", "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@sinclair/typebox": { @@ -4078,414 +4064,190 @@ } }, "node_modules/@tkey/common-types": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/common-types/-/common-types-9.0.0.tgz", - "integrity": "sha512-+q6MHToZUxsz9ZsDZQ+CXrmkXiPxacbU8yPYavvdXGnYSziOzhCBXXco8Xm4ifP/ydlMCejvAbJOUmRW17uwyA==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/common-types/-/common-types-11.0.2.tgz", + "integrity": "sha512-mc3Spwosrz4wwJgTDB9PYRrIF6MbNcap5lVflb46hSA/o9R5l7/YOLrPERu7Iwx7uG7/PD0GCF2z+vpq9pndew==", "dependencies": { - "@toruslabs/customauth": "^13.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/torus.js": "^8.0.0", + "@toruslabs/customauth": "^16.0.4", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/torus.js": "^11.0.5", "bn.js": "^5.2.1", "elliptic": "^6.5.4", "serialize-error": "^8.1.0", "ts-custom-error": "^3.3.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@tkey/core": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/core/-/core-9.0.0.tgz", - "integrity": "sha512-YRA4G7Ubnzn3ov0Ki+gDpkgVjtU+YIxyhgfIYRdeBBnTeEvjb8F0fw3wBy5gMQ8Ed8XdpovyBDVbIbDQfKAC7A==", - "dependencies": { - "@tkey/common-types": "^9.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "@toruslabs/torus.js": "^8.0.0", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/core/-/core-11.0.2.tgz", + "integrity": "sha512-WjQ/BzpyEjPJASvscw/RmXrVNsJzv2TpM/daskr8hyOR+SWhA9ra1k9EfHdttJmVhlVfG0U0qQkHLzGJANOReA==", + "dependencies": { + "@tkey/common-types": "^11.0.2", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/http-helpers": "^5.0.0", + "@toruslabs/torus.js": "^11.0.5", "bn.js": "^5.2.1", "elliptic": "^6.5.4", "json-stable-stringify": "^1.0.2" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@tkey/core/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, "node_modules/@tkey/default": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@tkey/default/-/default-9.0.1.tgz", - "integrity": "sha512-bpLay6izY//blzccAmC9kDwAQfD74C0KFwEkmunHzAfoxQHKczg7ggtSxlWJPxM/cRDx1gxa8yb2OaM6eU35aw==", - "dependencies": { - "@tkey/common-types": "^9.0.0", - "@tkey/core": "^9.0.0", - "@tkey/security-questions": "^9.0.0", - "@tkey/service-provider-base": "^9.0.0", - "@tkey/service-provider-torus": "^9.0.0", - "@tkey/share-serialization": "^9.0.1", - "@tkey/share-transfer": "^9.0.0", - "@tkey/storage-layer-torus": "^9.0.0", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/default/-/default-11.0.2.tgz", + "integrity": "sha512-S6xXw17y7x2aomgf5aYanzuW+zT2JunNkU8KWQ1/ahDSsufgTyQwGqKIFXCMhPSWBGXjXI/BpkNMih0RY4UBvA==", + "dependencies": { + "@tkey/common-types": "^11.0.2", + "@tkey/core": "^11.0.2", + "@tkey/security-questions": "^11.0.2", + "@tkey/service-provider-base": "^11.0.2", + "@tkey/service-provider-torus": "^11.0.2", + "@tkey/share-serialization": "^11.0.2", + "@tkey/share-transfer": "^11.0.2", + "@tkey/storage-layer-torus": "^11.0.2", "bn.js": "^5.2.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@tkey/security-questions": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/security-questions/-/security-questions-9.0.0.tgz", - "integrity": "sha512-CZAnhlGvbEeORgF28tf9bZqv18SEydqNSrkKg128aGT0Ds50NI0dFQgxqs4zGQgFX4EGczB9xhImPZ1QR+bdUw==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/security-questions/-/security-questions-11.0.2.tgz", + "integrity": "sha512-sU+n4B9F2C7os2deeubYnlaFtx2OOe7D/D+eWjn0AGIxKlQWoYnNyTvj5y1p++Ns/7mDAsem3hguc5hhQ2zBnA==", "dependencies": { - "@tkey/common-types": "^9.0.0", + "@tkey/common-types": "^11.0.2", "bn.js": "^5.2.1", - "ethereum-cryptography": "^2.0.0" + "ethereum-cryptography": "^2.1.2" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@tkey/security-questions/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@tkey/security-questions/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/security-questions/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/security-questions/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@tkey/service-provider-base": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/service-provider-base/-/service-provider-base-9.0.0.tgz", - "integrity": "sha512-8h6pvlYuMkbp5V8s3sl+WzIrhsYz/z+xSymbb3t5vHtF2FrAn7wZIfvDhC5g72ADB2mv1p5Ea3eUXJcCRGVAXQ==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/service-provider-base/-/service-provider-base-11.0.2.tgz", + "integrity": "sha512-qI/osqxc1zUKA0ncYmizKExNqeu7kNZjjlLXPlYygm3Qq6zbAeE+3MXkdkvN63/t2VIMrFV7SAXelq3H9qh8JA==", "dependencies": { - "@tkey/common-types": "^9.0.0", + "@tkey/common-types": "^11.0.2", "bn.js": "^5.2.1", "elliptic": "^6.5.4" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@tkey/service-provider-torus": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/service-provider-torus/-/service-provider-torus-9.0.0.tgz", - "integrity": "sha512-y8aczbJQchxSqgBPgOoejpW2LfWcZ2CL2LW+qCNvndwVhFTT3fIJ2KHzvaXZXrENKb+CTE9A9Lh+Mv3qp7mNNg==", - "dependencies": { - "@tkey/common-types": "^9.0.0", - "@tkey/service-provider-base": "^9.0.0", - "@toruslabs/customauth": "^13.0.0", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/service-provider-torus/-/service-provider-torus-11.0.2.tgz", + "integrity": "sha512-4kaCtMmaK6+tn3sSrAYIuDfUtFkN1sAlw7FoDWxC/aotdnZv1plhA5xvf1yEy5S3OOQCPbTvFGqMn0au3zGBag==", + "dependencies": { + "@tkey/common-types": "^11.0.2", + "@tkey/service-provider-base": "^11.0.2", + "@toruslabs/customauth": "^16.0.4", + "@toruslabs/torus.js": "^11.0.5", "bn.js": "^5.2.1", "elliptic": "^6.5.4" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@tkey/share-serialization": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@tkey/share-serialization/-/share-serialization-9.0.1.tgz", - "integrity": "sha512-1KeHLHaJZbGybCZJoiZflCdDVrr/gV/LvZc5abQ/R01XvORJCI9avaDGVTj1cwkQbwcy/K17CWUNehTyW7WVpA==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/share-serialization/-/share-serialization-11.0.2.tgz", + "integrity": "sha512-lQExLBJlBQfFbDrklCta9fRew+LRnLkDO25EvmtnF+bVJUYqlaqVeoShJKqi8zZnSXqVoiepOJPyIXgTJSQipQ==", "dependencies": { - "@tkey/common-types": "^9.0.0", + "@tkey/common-types": "^11.0.2", "bn.js": "^5.2.1", - "ethereum-cryptography": "^2.0.0" + "ethereum-cryptography": "^2.1.2" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@tkey/share-serialization/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@tkey/share-serialization/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/share-serialization/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/share-serialization/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@tkey/share-transfer": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/share-transfer/-/share-transfer-9.0.0.tgz", - "integrity": "sha512-iitEaRCQrk2cjgmwBwrrG4BlyeNE9DCGT4xDFIElV0tNEHJwwcnDHbbrHpl2rvV/L0aKZfqGqNxEF99eVmwAUw==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/share-transfer/-/share-transfer-11.0.2.tgz", + "integrity": "sha512-FutilvH4/EryChybg5gCZj/Mi5AgSQtO3giMEWk5RXFAZ/cJ+LXVTPl6MPi9fx1wj6hi8PxLFpzu99WqOl7wLQ==", "dependencies": { - "@tkey/common-types": "^9.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", + "@tkey/common-types": "^11.0.2", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/http-helpers": "^5.0.0", "bn.js": "^5.2.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@tkey/share-transfer/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, "node_modules/@tkey/storage-layer-torus": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/storage-layer-torus/-/storage-layer-torus-9.0.0.tgz", - "integrity": "sha512-E7nuQhhceMtswtdaFWp07cH5bmdlZeBVl/lEZLR4ArZXdkYEk6xDNQ2yCw9l2PwUz7bVmGPFTZnVsjU3op8t7A==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/storage-layer-torus/-/storage-layer-torus-11.0.2.tgz", + "integrity": "sha512-teOQHn5rN+2nhHPJJBVIUg5eBUWS0Z9JOuYPoRZEkxfEH9mZrmNqtiTPT1h1KnHzmsN+bBB85Drv98q5R/t+5Q==", "dependencies": { - "@tkey/common-types": "^9.0.0", - "@toruslabs/http-helpers": "^4.0.0", + "@tkey/common-types": "^11.0.2", + "@toruslabs/http-helpers": "^5.0.0", "bn.js": "^5.2.1", - "ethereum-cryptography": "^2.0.0", + "ethereum-cryptography": "^2.1.2", "json-stable-stringify": "^1.0.2" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@tkey/storage-layer-torus/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@tkey/storage-layer-torus/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/storage-layer-torus/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@tkey/storage-layer-torus/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, - "node_modules/@tkey/storage-layer-torus/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@tkey/web-storage": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@tkey/web-storage/-/web-storage-9.0.0.tgz", - "integrity": "sha512-ha4ExotPsCvdyp6Egi3yHLdFZdJcbaD1DWFqgfk6egWaHgu/zQuZReD0I88sCI7yigjwCQWOORQoaUNfT4itmw==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@tkey/web-storage/-/web-storage-11.0.2.tgz", + "integrity": "sha512-c0TpB62twLhBAcbPUQ1dNZp/5G030VdXHw3A3q38QGGLKXloh4jLWWBFhdELaiyo2FqyOH4f/oeoLFCANxj0qw==", "dependencies": { - "@tkey/common-types": "^9.0.0", + "@tkey/common-types": "^11.0.2", "@types/bn.js": "^5.1.1", "bn.js": "^5.2.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" @@ -4500,213 +4262,97 @@ } }, "node_modules/@toruslabs/base-controllers": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/@toruslabs/base-controllers/-/base-controllers-2.9.0.tgz", - "integrity": "sha512-rKc+bR4QB/wdbH0CxLZC5e2PUZcIgkr9yY7TMd3oIffDklaYBnsuC5ES2/rgK1aRUDRWz+qWbTwLqsY6PlT37Q==", - "dependencies": { - "@ethereumjs/util": "^8.0.6", - "@toruslabs/broadcast-channel": "^6.2.0", - "@toruslabs/http-helpers": "^3.3.0", - "@toruslabs/openlogin-jrpc": "^4.0.0", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@toruslabs/base-controllers/-/base-controllers-4.0.1.tgz", + "integrity": "sha512-6r9iUVdNsOR/oW2WSwrGZwPWDrMV4dt6lPOlzUbk+5vu+ijZ56jTlerUMHatcuHXuspISXXsJ9XhW64YoBTpRg==", + "dependencies": { + "@ethereumjs/util": "^9.0.0", + "@metamask/rpc-errors": "^6.0.0", + "@toruslabs/broadcast-channel": "^8.0.0", + "@toruslabs/http-helpers": "^5.0.0", + "@toruslabs/openlogin-jrpc": "^5.0.2", "async-mutex": "^0.4.0", - "bignumber.js": "^9.1.1", + "bignumber.js": "^9.1.2", "bowser": "^2.11.0", - "eth-rpc-errors": "^4.0.3", - "json-rpc-random-id": "^1.0.1", "lodash": "^4.17.21", "loglevel": "^1.8.1" }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@toruslabs/base-controllers/node_modules/@toruslabs/openlogin-jrpc": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-4.2.0.tgz", - "integrity": "sha512-4nyTfwAe9eHlpabZThnY5Sv06lIr4ofuUZjUOnoliPsw40gGkqqxqhiB2QcWVgxJ7X4/0r/r2W3LaGAyuenxBg==", - "dependencies": { - "@toruslabs/openlogin-utils": "^4.2.0", - "end-of-stream": "^1.4.4", - "eth-rpc-errors": "^4.0.3", - "events": "^3.3.0", - "fast-safe-stringify": "^2.1.1", - "once": "^1.4.0", - "pump": "^3.0.0", - "readable-stream": "^4.3.0" - }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/base-controllers/node_modules/@toruslabs/openlogin-utils": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-4.2.0.tgz", - "integrity": "sha512-zIgKpL2MPZ8wjDmxa/YZgZNa6lwXvCRKSEe9QRkifOeEaAKpHXf/iElJ6RcgFBCcZaMAf9H4LQ0ngpETlo+NTQ==", + "node_modules/@toruslabs/base-session-manager": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/base-session-manager/-/base-session-manager-3.0.0.tgz", + "integrity": "sha512-+EqwizmSFkVEczUtaw+swbAxRIIxC/EaFE040rwfgC5fixaQMNLw2cVYXWN67Ra47wC9A7Om6xwQTuGFR+dy4w==", "dependencies": { - "base64url": "^3.0.1" + "@toruslabs/http-helpers": "^5.0.0" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/base-controllers/node_modules/readable-stream": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.0.tgz", - "integrity": "sha512-kDMOq0qLtxV9f/SQv522h8cxZBqNZXuXNyjyezmfAAuribMyVXziljpQ/uQhfE1XLg2/TLTW2DsnoE4VAi/krg==", - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, "node_modules/@toruslabs/broadcast-channel": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/@toruslabs/broadcast-channel/-/broadcast-channel-6.3.1.tgz", - "integrity": "sha512-BEtJQ+9bMfFoGuCsp5NmxyY+C980Ho+3BZIKSiYwRtl5qymJ+jMX5lsoCppoQblcb34dP6FwEjeFw80Y9QC/rw==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/broadcast-channel/-/broadcast-channel-8.0.0.tgz", + "integrity": "sha512-qCyWsHVL4Xtx1J6k1+acD7TJKCelJWyUy5Q5zyiWMPxMGFxTv1XdRyqpzV+VgwbcslIqgFN0GewOry2l1jlUQQ==", "dependencies": { - "@babel/runtime": "^7.21.0", - "@toruslabs/eccrypto": "^2.1.1", - "@toruslabs/metadata-helpers": "^3.2.0", + "@babel/runtime": "^7.22.10", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/metadata-helpers": "^5.0.0", "bowser": "^2.11.0", "loglevel": "^1.8.1", "oblivious-set": "1.1.1", - "socket.io-client": "^4.6.1", + "socket.io-client": "^4.7.2", "unload": "^2.4.1" - } - }, - "node_modules/@toruslabs/broadcast-channel/node_modules/@toruslabs/eccrypto": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-2.2.1.tgz", - "integrity": "sha512-7sviL0wLYsfA5ogEAOIdb0tu/QAOFXfHc9B8ONYtF04x4Mg3Nr89LL35FhjaEm055q8Ru7cUQhEFSiqJqm9GCw==", - "dependencies": { - "elliptic": "^6.5.4" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" } }, "node_modules/@toruslabs/constants": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-10.0.0.tgz", - "integrity": "sha512-a5HJ8R/Z7cstIqY8qsXZvSVq6zlVSpkxTIOxiU808Qc8kehi9Uzg2B6HCaXSlPFhEKIhOwvEXDltfNkTtCdy9g==", + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-13.0.1.tgz", + "integrity": "sha512-haFppvgyHfKl2uTQKkrWOkgQmLgzbqxhIvaNvRGei4FgFNJNLr5+ju8/PwwbgKhQUi7adkeU0pjwFYITJyHEPw==", "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@toruslabs/customauth": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/customauth/-/customauth-13.0.0.tgz", - "integrity": "sha512-ZRQpC9mKSqTOxvfJ6t0yN3s0e5YrGuz887ImjMCWY2xhR88U9PA3tmpUdf9dF+oCxFIR/NhAgIMoph1CaBGDjA==", + "version": "16.0.4", + "resolved": "https://registry.npmjs.org/@toruslabs/customauth/-/customauth-16.0.4.tgz", + "integrity": "sha512-vi4BJQk5J30e/5OoKrl25aYma0diZxcd0EXKz7ywYiN7nMrkCoqqkAls8uHPbpz3YinkNW3TBePUa9pUI7Eb4A==", "dependencies": { "@chaitanyapotti/register-service-worker": "^1.7.3", - "@toruslabs/broadcast-channel": "^7.0.0", - "@toruslabs/constants": "^10.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/fetch-node-details": "^10.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "@toruslabs/metadata-helpers": "^4.0.0", - "@toruslabs/torus.js": "^8.0.0", - "bowser": "^2.11.0", - "events": "^3.3.0", - "jwt-decode": "^3.1.2", - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, - "node_modules/@toruslabs/customauth/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@toruslabs/customauth/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/customauth/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/customauth/node_modules/@toruslabs/broadcast-channel": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/broadcast-channel/-/broadcast-channel-7.0.0.tgz", - "integrity": "sha512-lyt2Els735qUXczPk743aHbIXZn+TeK/7YqKpUrY+xTyvXs9JyE6RahW+EY4yU90KAJx8+N9ZXZlcJP617T4bg==", - "dependencies": { - "@babel/runtime": "^7.21.5", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/metadata-helpers": "^4.0.0", - "bowser": "^2.11.0", - "loglevel": "^1.8.1", - "oblivious-set": "1.1.1", - "socket.io-client": "^4.6.1", - "unload": "^2.4.1" - } - }, - "node_modules/@toruslabs/customauth/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { + "@toruslabs/broadcast-channel": "^8.0.0", + "@toruslabs/constants": "^13.0.1", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/fetch-node-details": "^13.0.1", + "@toruslabs/http-helpers": "^5.0.0", + "@toruslabs/metadata-helpers": "^5.0.0", + "@toruslabs/torus.js": "^11.0.5", + "bowser": "^2.11.0", + "events": "^3.3.0", + "jwt-decode": "^3.1.2", "lodash.merge": "^4.6.2", "loglevel": "^1.8.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "^7.x", @@ -4718,114 +4364,62 @@ } } }, - "node_modules/@toruslabs/customauth/node_modules/@toruslabs/metadata-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/metadata-helpers/-/metadata-helpers-4.0.0.tgz", - "integrity": "sha512-E8wDP9YaeT/Aciq36fLiwykQ1++pKW9AtRa+OMxT+BQWUIDpayI1K/uTwTWsjob6sLpjIHpJMQ66o7s2z54NNQ==", - "dependencies": { - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "elliptic": "^6.5.4", - "ethereum-cryptography": "^2.0.0", - "json-stable-stringify": "^1.0.2" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@toruslabs/customauth/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@toruslabs/eccrypto": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-3.0.0.tgz", - "integrity": "sha512-+lFjV+0FZ3S4zH5T/Gnc795HoqpzLLDW28fSkibZRlx1Nx8uwbl3pyJSfya0C0bRHH1/+NTeBogUDijaRJ1NCw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-4.0.0.tgz", + "integrity": "sha512-Z3EINkbsgJx1t6jCDVIJjLSUEGUtNIeDjhMWmeDGOWcP/+v/yQ1hEvd1wfxEz4q5WqIHhevacmPiVxiJ4DljGQ==", "dependencies": { "elliptic": "^6.5.4" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" } }, "node_modules/@toruslabs/fetch-node-details": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/fetch-node-details/-/fetch-node-details-10.0.0.tgz", - "integrity": "sha512-Nf5sRHtU51EmGQjrYk2IpSkROqw0P/i5UUY2qOj16iToiBpgZAU1QR5LbQbaBguQpGyXB6FbNqeXttaXCms2+g==", + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/@toruslabs/fetch-node-details/-/fetch-node-details-13.0.1.tgz", + "integrity": "sha512-05WfFlrkIibO5VdYdx5+B70owzasXzRMSm19KYF/Iw/ch3jbRIC10tKtQMs2wGfpcMX+ngmGtlRYndUcy1UikA==", "dependencies": { - "@toruslabs/constants": "^10.0.0", - "@toruslabs/fnd-base": "^10.0.0", - "@toruslabs/http-helpers": "^4.0.0", + "@toruslabs/constants": "^13.0.1", + "@toruslabs/fnd-base": "^13.0.1", + "@toruslabs/http-helpers": "^5.0.0", "loglevel": "^1.8.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/fetch-node-details/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, "node_modules/@toruslabs/fnd-base": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/fnd-base/-/fnd-base-10.0.0.tgz", - "integrity": "sha512-MEFpTQVNpwMVfDsHka04oazfXU+8UlPQ3IvkWzRT9LScJCCM9TKThyjMUAJ0npVBnWBcvVLNpEdiQYk2B+Tfqw==", + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/@toruslabs/fnd-base/-/fnd-base-13.0.1.tgz", + "integrity": "sha512-HJE+NAFBWIZmk9DN38n71epbdqulIc2lJDb2UU+RMqYh4YArjab4JRbBew2rye0SDyhCXSIAw4GHjEH9UYi9Zg==", "dependencies": { - "@toruslabs/constants": "^10.0.0" + "@toruslabs/constants": "^13.0.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@toruslabs/http-helpers": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-3.4.0.tgz", - "integrity": "sha512-CoeJSL32mpp0gmYjxv48odu6pfjHk/rbJHDwCtYPcMHAl+qUQ/DTpVOOn9U0fGkD+fYZrQmZbRkXFgLhiT0ajQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-5.0.0.tgz", + "integrity": "sha512-GmezWz9JeF6YyhjLSm+9XDF4YaeICEckY0Jbo43i86SjhfJYgRWqEi63VSiNsaqc/z810Q0FQvEk1TnBRX2tgA==", "dependencies": { "lodash.merge": "^4.6.2", "loglevel": "^1.8.1" }, "engines": { - "node": ">=14.17.0", - "npm": ">=6.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "^7.x", @@ -4838,248 +4432,137 @@ } }, "node_modules/@toruslabs/metadata-helpers": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/metadata-helpers/-/metadata-helpers-3.2.0.tgz", - "integrity": "sha512-2bCc6PNKd9y+aWfZQ1FXd47QmfyT4NmmqPGfsqk+sQS2o+MlxIyLuh9uh7deMgXo4b4qBDX+RQGbIKM1zVk56w==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/metadata-helpers/-/metadata-helpers-5.0.0.tgz", + "integrity": "sha512-ZUFfOHJVJC53c8wJYHjdF3bIgN2ZvfqehbTZ/zJ7oVFfrrd6O66V3gQ1i1zxBjH3yhOvZKQwc0DaMmh3G0NUXQ==", "dependencies": { - "@toruslabs/eccrypto": "^2.1.1", - "@toruslabs/http-helpers": "^3.4.0", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/http-helpers": "^5.0.0", "elliptic": "^6.5.4", - "ethereum-cryptography": "^2.0.0", + "ethereum-cryptography": "^2.1.2", "json-stable-stringify": "^1.0.2" }, "engines": { - "node": ">=14.17.0", - "npm": ">=6.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/metadata-helpers/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@toruslabs/metadata-helpers/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/metadata-helpers/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/metadata-helpers/node_modules/@toruslabs/eccrypto": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-2.2.1.tgz", - "integrity": "sha512-7sviL0wLYsfA5ogEAOIdb0tu/QAOFXfHc9B8ONYtF04x4Mg3Nr89LL35FhjaEm055q8Ru7cUQhEFSiqJqm9GCw==", - "dependencies": { - "elliptic": "^6.5.4" - } - }, - "node_modules/@toruslabs/metadata-helpers/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" - } - }, "node_modules/@toruslabs/openlogin": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin/-/openlogin-3.2.1.tgz", - "integrity": "sha512-yJNj2gn+H6+TjR/xn7nFMED/U05C1YbvD4u9hz7I0YhiVG/chOIeXEvvixkIiH3Om9M7PhshwcLCN/hn1cgW6A==", - "dependencies": { - "@toruslabs/eccrypto": "^2.0.0", - "@toruslabs/http-helpers": "^3.3.0", - "@toruslabs/openlogin-jrpc": "^3.2.0", - "@toruslabs/openlogin-utils": "^3.0.0", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin/-/openlogin-5.0.3.tgz", + "integrity": "sha512-a7wdW/n5UINk1Uxn/hU4majTyIdeCk9XlSnmdr/ob71Dozz2hqPbXm1PFJ+XOMdlIPwqg4fLaOff6AySM1fqHg==", + "dependencies": { + "@toruslabs/broadcast-channel": "^8.0.0", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/metadata-helpers": "^5.0.0", + "@toruslabs/openlogin-session-manager": "^3.0.0", + "@toruslabs/openlogin-utils": "^5.0.2", + "bowser": "^2.11.0", + "events": "^3.3.0", "loglevel": "^1.8.1", - "pump": "^3.0.0" + "ts-custom-error": "^3.3.1" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@toruslabs/openlogin-jrpc": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-3.2.0.tgz", - "integrity": "sha512-G+K0EHyVUaAEyeD4xGsnAZRpn/ner8lQ2HC2+pGKg6oGmzKI2wGMDcw2KMH6+HKlfBGVJ5/VR9AQfC/tZlLDmQ==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-5.0.2.tgz", + "integrity": "sha512-ezpCrQ+oh0wfEuq3GTdjTpANVmfNjG7B/m03IGwnnSpg0NJRWUZBp/sB+z9Q1cOYtUl1Kg1+8mfqdX69eAn8bg==", "dependencies": { - "@toruslabs/openlogin-utils": "^3.0.0", + "@metamask/rpc-errors": "^6.0.0", + "@toruslabs/openlogin-utils": "^5.0.2", "end-of-stream": "^1.4.4", - "eth-rpc-errors": "^4.0.3", "events": "^3.3.0", "fast-safe-stringify": "^2.1.1", "once": "^1.4.0", "pump": "^3.0.0", - "readable-stream": "^3.6.2" + "readable-stream": "^4.4.2" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@toruslabs/openlogin-jrpc/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.2.tgz", + "integrity": "sha512-Lk/fICSyIhodxy1IDK2HazkeGjSmezAWX2egdtJnYhtzKEsBPJowlI6F6LPb5tqIQILrMbx22S5o3GuJavPusA==", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" }, "engines": { - "node": ">= 6" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/@toruslabs/openlogin-utils": { + "node_modules/@toruslabs/openlogin-session-manager": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-3.0.0.tgz", - "integrity": "sha512-T5t29/AIFqXc84x4OoAkZWjd0uoP2Lk6iaFndnIIMzCPu+BwwV0spX/jd/3YYNjZ8Po8D+faEnwAhiqemYeK2w==", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-session-manager/-/openlogin-session-manager-3.0.0.tgz", + "integrity": "sha512-S+nnZQ+Y+XCHvTYaov3ltiV2hAAPpKpwxvB4TmbMvi7KWOZ8BcUJQykSITlIXV4aE5y5BD96rsmjQ3C3MyVtUQ==", "dependencies": { - "base64url": "^3.0.1", - "keccak": "^3.0.3", - "randombytes": "^2.1.0" + "@toruslabs/base-session-manager": "^3.0.0", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/metadata-helpers": "5.0.0" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/openlogin/node_modules/@toruslabs/eccrypto": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-2.2.1.tgz", - "integrity": "sha512-7sviL0wLYsfA5ogEAOIdb0tu/QAOFXfHc9B8ONYtF04x4Mg3Nr89LL35FhjaEm055q8Ru7cUQhEFSiqJqm9GCw==", - "dependencies": { - "elliptic": "^6.5.4" - } - }, - "node_modules/@toruslabs/torus.js": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/torus.js/-/torus.js-8.0.0.tgz", - "integrity": "sha512-jN8Eak8XAjmTzIkaUymdTi+sm09/CXYJkDeY63PeQ7JS6HYKrSXabRcTaEGWSSVopKB0foQzzaU0em363/eZVQ==", + "node_modules/@toruslabs/openlogin-utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-5.0.2.tgz", + "integrity": "sha512-iOYnbowda0kk1Wk7Ax6xwCg5kVG8HDyq9VBKJfiyQeZCnSwiWW03UHL+UTCtiXy8jhBtkd7OEwh2Np2Lm30Tgg==", "dependencies": { - "@toruslabs/constants": "^10.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "bn.js": "^5.2.1", - "elliptic": "^6.5.4", - "ethereum-cryptography": "^2.0.0", - "json-stable-stringify": "^1.0.2", - "loglevel": "^1.8.1" + "@toruslabs/constants": "^13.0.1", + "base64url": "^3.0.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/torus.js/node_modules/@noble/hashes": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.0.tgz", - "integrity": "sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@toruslabs/torus.js/node_modules/@scure/bip32": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", - "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/curves": "~1.0.0", - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/torus.js/node_modules/@scure/bip39": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", - "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/@toruslabs/torus.js/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", + "node_modules/@toruslabs/torus.js": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/@toruslabs/torus.js/-/torus.js-11.0.5.tgz", + "integrity": "sha512-CrC7foZB/2HrvMN5qVI4mEpPbmRAX5/2cdn3pgvgxWpEXQTNnJcxIO8vb2eT7iO6GhBYADnMZyxxWPMdk8S11Q==", "dependencies": { - "lodash.merge": "^4.6.2", + "@toruslabs/constants": "^13.0.1", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/http-helpers": "^5.0.0", + "bn.js": "^5.2.1", + "elliptic": "^6.5.4", + "ethereum-cryptography": "^2.1.2", + "json-stable-stringify": "^1.0.2", "loglevel": "^1.8.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, - "node_modules/@toruslabs/torus.js/node_modules/ethereum-cryptography": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.0.0.tgz", - "integrity": "sha512-g25m4EtfQGjstWgVE1aIz7XYYjf3kH5kG17ULWVB5dH6uLahsoltOhACzSxyDV+fhn4gbR4xRrOXGe6r2uh4Bg==", - "dependencies": { - "@noble/curves": "1.0.0", - "@noble/hashes": "1.3.0", - "@scure/bip32": "1.3.0", - "@scure/bip39": "1.2.0" + "@babel/runtime": "7.x" } }, "node_modules/@trysound/sax": { @@ -5185,6 +4668,14 @@ "@types/node": "*" } }, + "node_modules/@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "dependencies": { + "@types/ms": "*" + } + }, "node_modules/@types/eslint": { "version": "8.21.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.21.1.tgz", @@ -5308,6 +4799,11 @@ "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==" }, + "node_modules/@types/ms": { + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", + "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" + }, "node_modules/@types/node": { "version": "17.0.45", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", @@ -5780,19 +5276,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@walletconnect/environment": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz", - "integrity": "sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg==", - "dependencies": { - "tslib": "1.14.1" - } - }, - "node_modules/@walletconnect/environment/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/@walletconnect/events": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@walletconnect/events/-/events-1.0.1.tgz", @@ -5823,9 +5306,9 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/jsonrpc-types": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.2.tgz", - "integrity": "sha512-CZe8tjJX73OWdHjrBHy7HtAapJ2tT0Q3TYhPBhRxi3643lwPIQWC9En45ldY14TZwgSewkbZ0FtGBZK0G7Bbyg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz", + "integrity": "sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw==", "dependencies": { "keyvaluestorage-interface": "^1.0.0", "tslib": "1.14.1" @@ -5836,21 +5319,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, - "node_modules/@walletconnect/jsonrpc-utils": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.7.tgz", - "integrity": "sha512-zJziApzUF/Il4VcwabnaU+0yo1QI4eUkYX99zmCVTHJvZOf2l0zjADf/OpKqWyeNFC3Io56Z/8uJHVtcNVvyFA==", - "dependencies": { - "@walletconnect/environment": "^1.0.1", - "@walletconnect/jsonrpc-types": "^1.0.2", - "tslib": "1.14.1" - } - }, - "node_modules/@walletconnect/jsonrpc-utils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/@walletconnect/keyvaluestorage": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.0.2.tgz", @@ -5940,33 +5408,32 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@walletconnect/types": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.7.3.tgz", - "integrity": "sha512-01U/GwrtokgBfBzLwZQQogkYh/+HBvClO4Oet3bClnyzHZ//Jv3Xf3X9LluNrHaulzPqdc9g7wnFkpjkVqKicQ==", + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.10.1.tgz", + "integrity": "sha512-7pccAhajQdiH2kYywjE1XI64IqRI+4ioyGy0wvz8d0UFQ/DSG3MLKR8jHf5aTOafQQ/HRLz6xvlzN4a7gIVkUQ==", "dependencies": { "@walletconnect/events": "^1.0.1", "@walletconnect/heartbeat": "1.2.1", - "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/jsonrpc-types": "1.0.3", "@walletconnect/keyvaluestorage": "^1.0.2", "@walletconnect/logger": "^2.0.1", "events": "^3.3.0" } }, "node_modules/@walletconnect/utils": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.7.3.tgz", - "integrity": "sha512-ecKnoks3N8CaP5KYIrgJct5YNmvlfp1Ec8BuiXw5Gmta1HFnKpzvjmAG1627XGEfB2UVc9O2Rmbx+UmhuyB5KQ==", + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.10.1.tgz", + "integrity": "sha512-DM0dKgm9O58l7VqJEyV2OVv16XRePhDAReI23let6WdW1dSpw/Y/A89Lp99ZJOjLm2FxyblMRF3YRaZtHwBffw==", "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/jsonrpc-utils": "^1.0.7", "@walletconnect/relay-api": "^1.0.9", "@walletconnect/safe-json": "^1.0.2", "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.7.3", + "@walletconnect/types": "2.10.1", "@walletconnect/window-getters": "^1.0.1", "@walletconnect/window-metadata": "^1.0.1", "detect-browser": "5.3.0", @@ -6027,59 +5494,71 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@web3auth/base": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@web3auth/base/-/base-5.2.0.tgz", - "integrity": "sha512-ZJ2fUJBrCq6rFXXUJZOg3uMhJ07UGU8ibOKQ24HHIx+RRE2btVF3t2xYPjTUlWBrdGN+zlmu04CjSuOt3Z+qUQ==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@web3auth/base/-/base-7.0.1.tgz", + "integrity": "sha512-6ft4XAD37tobOxgkZhideiBMqoVJTpvAvYD0R99IDmpazpIrX8b4RBgwLQ/gIlNmGZhkU1UoTzub19xTWI9h6w==", "dependencies": { - "@toruslabs/http-helpers": "^3.3.0", - "@toruslabs/openlogin": "^3.2.1", - "@toruslabs/openlogin-jrpc": "^3.2.0", + "@toruslabs/http-helpers": "^5.0.0", + "@toruslabs/openlogin": "^5.0.3", + "@toruslabs/openlogin-jrpc": "^5.0.2", + "@toruslabs/openlogin-utils": "^5.0.2", "jwt-decode": "^3.1.2", "loglevel": "^1.8.1", "ts-custom-error": "^3.3.1" }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" + }, "peerDependencies": { "@babel/runtime": "^7.x" } }, "node_modules/@web3auth/base-provider": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@web3auth/base-provider/-/base-provider-5.2.0.tgz", - "integrity": "sha512-FZhaSq8+1o48ZocCGDVKENIioMSDHpQEPLv5yQLG1LgTYXQbFrl33l+/XehyZ1zrVKf2mERLUKeeDSb/qTR+yg==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@web3auth/base-provider/-/base-provider-7.0.1.tgz", + "integrity": "sha512-8ggJtsD/1MbpMEbe+uBSS3mrqE/nqEKpRLyIjuyfobPs4Zu/VI2Exdjz6wcUIzwEB1iYyjFt29/gyIXufMyCgA==", "dependencies": { - "@toruslabs/base-controllers": "^2.8.1", - "@toruslabs/openlogin-jrpc": "^3.2.0", - "@web3auth/base": "^5.2.0", - "eth-rpc-errors": "^4.0.3", + "@metamask/rpc-errors": "^6.0.0", + "@toruslabs/base-controllers": "^4.0.1", + "@toruslabs/openlogin-jrpc": "^5.0.2", + "@web3auth/base": "^7.0.1", "json-rpc-random-id": "^1.0.1" }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" + }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@web3auth/ethereum-provider": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@web3auth/ethereum-provider/-/ethereum-provider-5.2.0.tgz", - "integrity": "sha512-FzwG7R5ZB//rrKuSU/TH79GiUlH3HMgsJ34bw6/iKcumDC3KBFYyxyjJznN7hwCzzzrOHqTujsppwTvubI5DdA==", - "dependencies": { - "@ethereumjs/common": "^3.1.1", - "@ethereumjs/tx": "^4.1.1", - "@ethereumjs/util": "^8.0.5", - "@metamask/eth-sig-util": "^5.0.2", - "@toruslabs/base-controllers": "^2.8.1", - "@toruslabs/http-helpers": "^3.3.0", - "@toruslabs/openlogin-jrpc": "^3.2.0", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@web3auth/ethereum-provider/-/ethereum-provider-7.0.2.tgz", + "integrity": "sha512-Yg1/ZB0eUugiTx5fvLtYeplSF0175PcsBOAhShl/Rd+rLlkycP5lRMGsBSnxdHGE9esRajYoH8xfGNwEUcItjw==", + "dependencies": { + "@ethereumjs/common": "^4.0.0", + "@ethereumjs/tx": "^5.0.0", + "@ethereumjs/util": "^9.0.0", + "@metamask/eth-sig-util": "^7.0.0", + "@metamask/rpc-errors": "^6.0.0", + "@toruslabs/base-controllers": "^4.0.1", + "@toruslabs/http-helpers": "^5.0.0", + "@toruslabs/openlogin-jrpc": "^5.0.2", "@walletconnect/legacy-types": "2.0.0", - "@walletconnect/types": "^2.5.2", - "@walletconnect/utils": "^2.5.2", - "@web3auth/base": "^5.2.0", - "@web3auth/base-provider": "^5.2.0", - "assert": "^2.0.0", - "bignumber.js": "^9.1.1", + "@walletconnect/utils": "^2.10.1", + "@web3auth/base": "^7.0.1", + "@web3auth/base-provider": "^7.0.1", + "assert": "^2.1.0", + "bignumber.js": "^9.1.2", "bn.js": "^5.2.1", - "eth-rpc-errors": "^4.0.3", "jsonschema": "^1.4.1" }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" + }, "peerDependencies": { "@babel/runtime": "7.x" } @@ -6613,14 +6092,15 @@ } }, "node_modules/assert": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-2.0.0.tgz", - "integrity": "sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/assert/-/assert-2.1.0.tgz", + "integrity": "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==", "dependencies": { - "es6-object-assign": "^1.1.0", - "is-nan": "^1.2.1", - "object-is": "^1.0.1", - "util": "^0.12.0" + "call-bind": "^1.0.2", + "is-nan": "^1.3.2", + "object-is": "^1.1.5", + "object.assign": "^4.1.4", + "util": "^0.12.5" } }, "node_modules/assert-plus": { @@ -7044,9 +6524,9 @@ } }, "node_modules/bignumber.js": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", - "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", "engines": { "node": "*" } @@ -7984,6 +7464,22 @@ "node": ">=10" } }, + "node_modules/crc": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/crc/-/crc-4.3.2.tgz", + "integrity": "sha512-uGDHf4KLLh2zsHa8D8hIQ1H/HtFQhyHrc0uhHBcoKGol/Xnb+MPYfUMw7cvON6ze/GUESTudKayDcJC5HnJv1A==", + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "buffer": ">=6.0.3" + }, + "peerDependenciesMeta": { + "buffer": { + "optional": true + } + } + }, "node_modules/crc-32": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", @@ -9018,13 +8514,13 @@ } }, "node_modules/engine.io-client": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.4.0.tgz", - "integrity": "sha512-GyKPDyoEha+XZ7iEqam49vz6auPnNJ9ZBfy89f+rMMas8AuiMWOZ9PVzu8xb9ZC6rafUqiGHSCfu22ih66E+1g==", + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.2.tgz", + "integrity": "sha512-CQZqbrpEYnrpGqC07a9dJDz4gePZUgTPMU3NKJPSeQOyw27Tst4Pl3FemKoFGAlHzgZmKjoRmiJvbWfhCXUlIg==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1", - "engine.io-parser": "~5.0.3", + "engine.io-parser": "~5.2.1", "ws": "~8.11.0", "xmlhttprequest-ssl": "~2.0.0" } @@ -9050,9 +8546,9 @@ } }, "node_modules/engine.io-parser": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.0.6.tgz", - "integrity": "sha512-tjuoZDMAdEhVnSFleYPCtdL2GXwVTGtNjoeJd9IhIG3C1xs9uwxqRNEu5WpnDZCaozwVlK/nuQhpodhXSIMaxw==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.1.tgz", + "integrity": "sha512-9JktcM3u18nU9N2Lz3bWeBgxVgOKpw7yhRaoxQA3FUDZzzw+9WlA6p4G4u0RixNkg14fH7EfEc/RhpurtiROTQ==", "engines": { "node": ">=10.0.0" } @@ -10005,14 +9501,6 @@ "ultron": "~1.1.0" } }, - "node_modules/eth-rpc-errors": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz", - "integrity": "sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==", - "dependencies": { - "fast-safe-stringify": "^2.0.6" - } - }, "node_modules/ethereum-bloom-filters": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz", @@ -10022,14 +9510,25 @@ } }, "node_modules/ethereum-cryptography": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", - "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", + "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", "dependencies": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" + "@noble/curves": "1.1.0", + "@noble/hashes": "1.3.1", + "@scure/bip32": "1.3.1", + "@scure/bip39": "1.2.1" + } + }, + "node_modules/ethereum-cryptography/node_modules/@noble/hashes": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", + "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/ethereumjs-util": { @@ -10310,9 +9809,9 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "node_modules/fast-redact": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.1.2.tgz", - "integrity": "sha512-+0em+Iya9fKGfEQGcd62Yv6onjBmmhV1uh86XVfOU8VwAe6kaFdQCWI9s0/Nnugx5Vd9tdbZ7e6gE2tR9dzXdw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.3.0.tgz", + "integrity": "sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==", "engines": { "node": ">=6" } @@ -17378,23 +16877,23 @@ } }, "node_modules/socket.io-client": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.6.1.tgz", - "integrity": "sha512-5UswCV6hpaRsNg5kkEHVcbBIXEYoVbMQaHJBXJCyEQ+CiFPV1NIOY0XOFWG4XR4GZcB8Kn6AsRs/9cy9TbqVMQ==", + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.2.tgz", + "integrity": "sha512-vtA0uD4ibrYD793SOIAwlo8cj6haOeMHrGvwPxJsxH7CeIksqJ+3Zc06RvWTIFgiSqx4A3sOnTXpfAEE2Zyz6w==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.2", - "engine.io-client": "~6.4.0", - "socket.io-parser": "~4.2.1" + "engine.io-client": "~6.5.2", + "socket.io-parser": "~4.2.4" }, "engines": { "node": ">=10.0.0" } }, "node_modules/socket.io-parser": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.2.tgz", - "integrity": "sha512-DJtziuKypFkMMHCm2uIshOYC7QaylbtzQwiMYDuCKy3OPkjLzu4B2vAhTlqipRHHzrI0NJeBAizTK7X+6m1jVw==", + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.1" @@ -17832,6 +17331,14 @@ "postcss": "^8.2.15" } }, + "node_modules/superstruct": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.3.tgz", + "integrity": "sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg==", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", diff --git a/tkey-web/tkey-react-redirect-example/package.json b/tkey-web/tkey-react-redirect-example/package.json index 39e51b3a..42228920 100644 --- a/tkey-web/tkey-react-redirect-example/package.json +++ b/tkey-web/tkey-react-redirect-example/package.json @@ -6,16 +6,17 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", - "@tkey/default": "^9.0.1", - "@tkey/security-questions": "^9.0.0", - "@tkey/service-provider-torus": "^9.0.0", - "@tkey/web-storage": "^9.0.0", + "@tkey/default": "^11.0.2", + "@tkey/security-questions": "^11.0.2", + "@tkey/service-provider-torus": "^11.0.2", + "@tkey/web-storage": "^11.0.2", + "@toruslabs/constants": "^13.0.1", "@types/bn.js": "^5.1.1", "@types/jest": "^27.5.2", "@types/node": "^17.0.45", "@types/react": "^18.0.25", "@types/react-dom": "^18.0.9", - "@web3auth/ethereum-provider": "^5.2.0", + "@web3auth/ethereum-provider": "^7.0.2", "bn.js": "^5.2.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/tkey-web/tkey-react-redirect-example/src/App.tsx b/tkey-web/tkey-react-redirect-example/src/App.tsx index 38ff3cfe..3ee30cbd 100644 --- a/tkey-web/tkey-react-redirect-example/src/App.tsx +++ b/tkey-web/tkey-react-redirect-example/src/App.tsx @@ -6,7 +6,7 @@ import {tKey} from "./tkey" import { EthereumPrivateKeyProvider } from "@web3auth/ethereum-provider"; import Web3 from "web3"; import BN from 'bn.js'; - +import { TorusServiceProvider } from "@tkey/service-provider-torus"; function App() { const [user, setUser] = useState(null); @@ -22,7 +22,7 @@ function App() { // Init is required for Redirect Flow but skip fetching sw.js and redirect.html ) (tKey.serviceProvider as any).init({skipInit: true}); if ( window.location.pathname === "/auth" && window.location.hash.includes("#state") ) { - let result = await (tKey.serviceProvider as any).directWeb.getRedirectResult(); + let result = await (tKey.serviceProvider as TorusServiceProvider).customAuthInstance.getRedirectResult(); tKey.serviceProvider.postboxKey = new BN ( (result.result as any).privateKey! , "hex"); setUser( (result.result as any).userInfo); setOAuthShare((result.result as any).privateKey); @@ -73,9 +73,9 @@ function App() { // Triggering Login using Service Provider ==> redirects the user to google login page const loginResponse = await (tKey.serviceProvider as any).triggerLogin({ typeOfLogin: 'google', - verifier: 'google-tkey-w3a', + verifier: 'w3a-google-demo', clientId: - '774338308167-q463s7kpvja16l4l0kko3nb925ikds2p.apps.googleusercontent.com', + '519228911939-cri01h55lsjbsia1k7ll6qpalrus75ps.apps.googleusercontent.com', }); setUser(loginResponse.userInfo); setOAuthShare(loginResponse.privateKey); diff --git a/tkey-web/tkey-react-redirect-example/src/tkey.ts b/tkey-web/tkey-react-redirect-example/src/tkey.ts index 60870e35..956d01ec 100644 --- a/tkey-web/tkey-react-redirect-example/src/tkey.ts +++ b/tkey-web/tkey-react-redirect-example/src/tkey.ts @@ -1,16 +1,8 @@ import ThresholdKey from "@tkey/default"; import WebStorageModule from "@tkey/web-storage"; import SecurityQuestionsModule from "@tkey/security-questions"; +import { TORUS_SAPPHIRE_NETWORK } from "@toruslabs/constants"; -// Configuration of Service Provider -const customAuthArgs = { - web3AuthClientId: "BEglQSgt4cUWcj6SKRdu5QkOXTsePmMcusG5EAoyjyOYKlVRjIF1iCNnMOTfpzCiunHRrMui8TIwQPXdkQ8Yxuk", - baseUrl: window.location.origin, - redirectPathName: "auth", - enableLogging: true, - uxMode: "redirect", - network: "cyan", // based on the verifier network. -}; // Configuration of Modules const webStorageModule = new WebStorageModule(); const securityQuestionsModule = new SecurityQuestionsModule(); @@ -21,6 +13,13 @@ export const tKey = new ThresholdKey({ webStorage: webStorageModule, securityQuestions: securityQuestionsModule, }, - customAuthArgs: customAuthArgs as any, + customAuthArgs: { + web3AuthClientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", + baseUrl: window.location.origin, + redirectPathName: "auth", + enableLogging: true, + uxMode: "redirect", + network: TORUS_SAPPHIRE_NETWORK.SAPPHIRE_MAINNET, + }, });