diff --git a/demo/vue-app-new/package-lock.json b/demo/vue-app-new/package-lock.json index 386ddab07..1c03e1c72 100644 --- a/demo/vue-app-new/package-lock.json +++ b/demo/vue-app-new/package-lock.json @@ -34,6 +34,7 @@ "@web3auth/torus-solana-adapter": "file:../../packages/adapters/torus-solana-adapter", "@web3auth/wallet-connect-v2-adapter": "file:../../packages/adapters/wallet-connect-v2-adapter", "@web3auth/wallet-services-plugin": "file:../../packages/plugins/wallet-services-plugin", + "@web3auth/ws-embed": "^3.2.1", "bs58": "^5.0.0", "ethers": "^6.13.3", "vue": "^3.5.11", @@ -56,12 +57,12 @@ }, "../../packages/adapters/auth-adapter": { "name": "@web3auth/auth-adapter", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.3.0", - "@web3auth/base-provider": "^9.3.0", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/base-provider": "^9.4.5", "deepmerge": "^4.3.1" }, "engines": { @@ -74,11 +75,11 @@ }, "../../packages/adapters/base-evm-adapter": { "name": "@web3auth/base-evm-adapter", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.2.2", - "@web3auth/base": "^9.3.0" + "@toruslabs/base-controllers": "^6.3.2", + "@web3auth/base": "^9.4.5" }, "engines": { "node": ">=18.x", @@ -90,11 +91,11 @@ }, "../../packages/adapters/base-solana-adapter": { "name": "@web3auth/base-solana-adapter", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.2.2", - "@web3auth/base": "^9.3.0", + "@toruslabs/base-controllers": "^6.3.2", + "@web3auth/base": "^9.4.5", "bs58": "^5.0.0" }, "devDependencies": { @@ -110,14 +111,14 @@ }, "../../packages/adapters/coinbase-adapter": { "name": "@web3auth/coinbase-adapter", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/base": "^9.3.0", - "@web3auth/base-evm-adapter": "^9.3.0" + "@web3auth/base": "^9.4.5", + "@web3auth/base-evm-adapter": "^9.4.5" }, "devDependencies": { - "@coinbase/wallet-sdk": "^4.1.0" + "@coinbase/wallet-sdk": "^4.2.3" }, "engines": { "node": ">=18.x", @@ -130,12 +131,12 @@ }, "../../packages/adapters/default-evm-adapter": { "name": "@web3auth/default-evm-adapter", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/base": "^9.3.0", - "@web3auth/base-evm-adapter": "^9.3.0", - "@web3auth/wallet-connect-v2-adapter": "^9.3.0", + "@web3auth/base": "^9.4.5", + "@web3auth/base-evm-adapter": "^9.4.5", + "@web3auth/wallet-connect-v2-adapter": "^9.4.5", "mipd": "^0.0.7" }, "engines": { @@ -148,19 +149,19 @@ }, "../../packages/adapters/default-solana-adapter": { "name": "@web3auth/default-solana-adapter", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { "@solana/wallet-standard-features": "^1.2.0", - "@solana/web3.js": "^1.95.4", - "@wallet-standard/app": "^1.0.1", - "@wallet-standard/base": "^1.0.1", - "@wallet-standard/features": "^1.0.3", - "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.3.0", - "@web3auth/base-solana-adapter": "^9.3.0", - "@web3auth/solana-provider": "^9.3.0", - "@web3auth/wallet-connect-v2-adapter": "^9.3.0", + "@solana/web3.js": "^1.95.5", + "@wallet-standard/app": "^1.1.0", + "@wallet-standard/base": "^1.1.0", + "@wallet-standard/features": "^1.1.0", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/base-solana-adapter": "^9.4.5", + "@web3auth/solana-provider": "^9.4.5", + "@web3auth/wallet-connect-v2-adapter": "^9.4.5", "bn.js": "^5.2.1" }, "engines": { @@ -173,12 +174,12 @@ }, "../../packages/adapters/torus-evm-adapter": { "name": "@web3auth/torus-evm-adapter", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { "@toruslabs/torus-embed": "^5.0.0", - "@web3auth/base": "^9.3.0", - "@web3auth/base-evm-adapter": "^9.3.0" + "@web3auth/base": "^9.4.5", + "@web3auth/base-evm-adapter": "^9.4.5" }, "engines": { "node": ">=18.x", @@ -190,14 +191,14 @@ }, "../../packages/adapters/torus-solana-adapter": { "name": "@web3auth/torus-solana-adapter", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { "@toruslabs/solana-embed": "^2.1.0", - "@web3auth/base": "^9.3.0", - "@web3auth/base-provider": "^9.3.0", - "@web3auth/base-solana-adapter": "^9.3.0", - "@web3auth/solana-provider": "^9.3.0" + "@web3auth/base": "^9.4.5", + "@web3auth/base-provider": "^9.4.5", + "@web3auth/base-solana-adapter": "^9.4.5", + "@web3auth/solana-provider": "^9.4.5" }, "engines": { "node": ">=18.x", @@ -210,19 +211,19 @@ }, "../../packages/adapters/wallet-connect-v2-adapter": { "name": "@web3auth/wallet-connect-v2-adapter", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@solana/web3.js": "^1.95.4", - "@toruslabs/base-controllers": "^6.2.2", - "@walletconnect/sign-client": "^2.17.1", - "@walletconnect/types": "^2.17.1", - "@walletconnect/utils": "^2.17.1", - "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.3.0", - "@web3auth/base-provider": "^9.3.0", - "@web3auth/ethereum-provider": "^9.3.0", - "@web3auth/solana-provider": "^9.3.0", + "@solana/web3.js": "^1.95.5", + "@toruslabs/base-controllers": "^6.3.2", + "@walletconnect/sign-client": "^2.17.2", + "@walletconnect/types": "^2.17.2", + "@walletconnect/utils": "^2.17.2", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/base-provider": "^9.4.5", + "@web3auth/ethereum-provider": "^9.4.5", + "@web3auth/solana-provider": "^9.4.5", "bs58": "^5.0.0", "deepmerge": "^4.3.1" }, @@ -239,13 +240,13 @@ }, "../../packages/base": { "name": "@web3auth/base", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.2.2", - "@toruslabs/constants": "^14.0.0", + "@toruslabs/base-controllers": "^6.3.2", + "@toruslabs/constants": "^14.2.0", "@toruslabs/http-helpers": "^7.0.0", - "@web3auth/auth": "^9.4.1", + "@web3auth/auth": "^9.5.3", "jwt-decode": "^4.0.0", "loglevel": "^1.9.2", "ts-custom-error": "^3.3.1" @@ -260,15 +261,15 @@ }, "../../packages/composables/modal-vue-composables": { "name": "@web3auth/modal-vue-composables", - "version": "9.3.1", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/base": "^9.3.0", - "@web3auth/modal": "^9.3.1" + "@web3auth/base": "^9.4.5", + "@web3auth/modal": "^9.4.5" }, "devDependencies": { - "@web3auth/auth": "^9.4.1", - "@web3auth/auth-adapter": "^9.3.0" + "@web3auth/auth": "^9.5.3", + "@web3auth/auth-adapter": "^9.4.5" }, "engines": { "node": ">=18.x", @@ -281,22 +282,22 @@ }, "../../packages/modal": { "name": "@web3auth/modal", - "version": "9.3.1", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/auth-adapter": "^9.3.0", - "@web3auth/base": "^9.3.0", - "@web3auth/base-provider": "^9.3.0", - "@web3auth/no-modal": "^9.3.1", - "@web3auth/ui": "^9.3.1", + "@web3auth/auth-adapter": "^9.4.5", + "@web3auth/base": "^9.4.5", + "@web3auth/base-provider": "^9.4.5", + "@web3auth/no-modal": "^9.4.5", + "@web3auth/ui": "^9.4.5", "deepmerge": "^4.3.1" }, "devDependencies": { "@svgr/webpack": "^8.1.0", "@toruslabs/isomorphic-style-loader": "^5.3.3", - "@web3auth/account-abstraction-provider": "^9.3.1", - "@web3auth/auth": "^9.4.1", - "@web3auth/wallet-connect-v2-adapter": "^9.3.0", + "@web3auth/account-abstraction-provider": "^9.4.5", + "@web3auth/auth": "^9.5.3", + "@web3auth/wallet-connect-v2-adapter": "^9.4.5", "css-loader": "^7.1.2", "postcss-prefix-selector": "^2.1.0", "style-loader": "^4.0.0", @@ -318,18 +319,18 @@ }, "../../packages/no-modal": { "name": "@web3auth/no-modal", - "version": "9.3.1", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.3.0", - "@web3auth/base-provider": "^9.3.0", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/base-provider": "^9.4.5", "deepmerge": "^4.3.1" }, "devDependencies": { - "@web3auth/account-abstraction-provider": "^9.3.1", - "@web3auth/auth-adapter": "^9.3.0", - "@web3auth/wallet-connect-v2-adapter": "^9.3.0" + "@web3auth/account-abstraction-provider": "^9.4.5", + "@web3auth/auth-adapter": "^9.4.5", + "@web3auth/wallet-connect-v2-adapter": "^9.4.5" }, "engines": { "node": ">=18.x", @@ -351,13 +352,13 @@ }, "../../packages/plugins/solana-wallet-connector-plugin": { "name": "@web3auth/solana-wallet-connector-plugin", - "version": "9.3.1", + "version": "9.4.5", "license": "ISC", "dependencies": { "@toruslabs/solana-embed": "^2.1.0", - "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.3.0", - "@web3auth/no-modal": "^9.3.1", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/no-modal": "^9.4.5", "loglevel": "^1.9.2" }, "engines": { @@ -370,17 +371,18 @@ }, "../../packages/plugins/wallet-services-plugin": { "name": "@web3auth/wallet-services-plugin", - "version": "9.3.1", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.3.0", - "@web3auth/no-modal": "^9.3.1", - "@web3auth/ws-embed": "^3.1.0", + "@web3auth/account-abstraction-provider": "^9.3.1", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/no-modal": "^9.4.5", + "@web3auth/ws-embed": "^3.2.1", "loglevel": "^1.9.2" }, "devDependencies": { - "@toruslabs/ethereum-controllers": "^6.2.2" + "@toruslabs/ethereum-controllers": "^6.3.2" }, "engines": { "node": ">=18.x", @@ -392,18 +394,18 @@ }, "../../packages/providers/account-abstraction-provider": { "name": "@web3auth/account-abstraction-provider", - "version": "9.3.1", + "version": "9.4.5", "license": "ISC", "dependencies": { "@ethereumjs/util": "^9.1.0", - "@toruslabs/base-controllers": "^6.2.2", - "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.3.0", - "@web3auth/base-provider": "^9.3.0", - "@web3auth/ethereum-provider": "^9.3.0", + "@toruslabs/base-controllers": "^6.3.2", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/base-provider": "^9.4.5", + "@web3auth/ethereum-provider": "^9.4.5", "ethers": "^6.13.4", - "permissionless": "^0.2.15", - "viem": "^2.21.40" + "permissionless": "^0.2.20", + "viem": "^2.21.52" }, "engines": { "node": ">=18.x", @@ -477,12 +479,12 @@ }, "../../packages/providers/base-provider": { "name": "@web3auth/base-provider", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.2.2", - "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.3.0", + "@toruslabs/base-controllers": "^6.3.2", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", "json-rpc-random-id": "^1.0.1" }, "devDependencies": { @@ -498,16 +500,16 @@ }, "../../packages/providers/ethereum-provider": { "name": "@web3auth/ethereum-provider", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { "@ethereumjs/util": "^9.1.0", - "@toruslabs/base-controllers": "^6.2.2", + "@toruslabs/base-controllers": "^6.3.2", "@toruslabs/eccrypto": "^5.0.4", "@toruslabs/http-helpers": "^7.0.0", - "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.3.0", - "@web3auth/base-provider": "^9.3.0", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/base-provider": "^9.4.5", "assert": "^2.1.0", "bignumber.js": "^9.1.2", "bn.js": "^5.2.1", @@ -517,7 +519,7 @@ "devDependencies": { "@types/bn.js": "^5.1.6", "@types/json-rpc-random-id": "^1.0.3", - "@walletconnect/types": "^2.17.1" + "@walletconnect/types": "^2.17.2" }, "engines": { "node": ">=18.x", @@ -529,20 +531,20 @@ }, "../../packages/providers/solana-provider": { "name": "@web3auth/solana-provider", - "version": "9.3.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.2.2", + "@toruslabs/base-controllers": "^6.3.2", "@toruslabs/tweetnacl-js": "^1.0.4", - "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.3.0", - "@web3auth/base-provider": "^9.3.0", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/base-provider": "^9.4.5", "bn.js": "^5.2.1", "bs58": "^5.0.0", "json-rpc-random-id": "^1.0.1" }, "devDependencies": { - "@solana/web3.js": "^1.95.4", + "@solana/web3.js": "^1.95.5", "@types/bn.js": "^5.1.6", "@types/bs58": "^4.0.4", "@types/json-rpc-random-id": "^1.0.3" @@ -1038,9 +1040,9 @@ } }, "node_modules/@nx/nx-linux-x64-gnu": { - "version": "19.8.4", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-19.8.4.tgz", - "integrity": "sha512-XcRBNe0ws7KB0PMcUlpQqzzjjxMP8VdqirBz7CfB2XQ8xKmP3370p0cDvqs/4oKDHK4PCkmvVFX60tzakutylA==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-20.1.4.tgz", + "integrity": "sha512-vaWV37ZayfyckVI/faWdQWIV9XQb06ZT8jHQnwgSd9tKbGz37vN30eYtgZlFL0P4bHfhjtmMXnLvADmfyO/KOw==", "cpu": [ "x64" ], @@ -1225,9 +1227,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.24.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.24.0.tgz", - "integrity": "sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A==", + "version": "4.28.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.28.0.tgz", + "integrity": "sha512-Nl4KIzteVEKE9BdAvYoTkW19pa7LR/RBrT6F1dJCV/3pbjwDcaOq+edkP0LXuJ9kflW/xOK414X78r+K84+msw==", "cpu": [ "x64" ], @@ -1477,7 +1479,9 @@ } }, "node_modules/@toruslabs/constants": { - "version": "14.0.0", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-14.2.0.tgz", + "integrity": "sha512-Mb5EfYNSPyvvw5s1JXnpZwritCgp4NmLni1imTqrSKGV3yikYhUn1ufyLMAHGnBBgv4AuMIXBIe3EpJJ+SpA0g==", "license": "MIT", "engines": { "node": ">=18.x", @@ -1614,11 +1618,12 @@ } }, "node_modules/@toruslabs/secure-pub-sub": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/secure-pub-sub/-/secure-pub-sub-1.0.0.tgz", - "integrity": "sha512-Xv8SExIJ4/DBw5QHcSN+EGPMddZ2du4NcI9jztLde1K/0Hfnurqw6CcAniU6zpKVRVCRwjiauYCNYIRPBi2M4g==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@toruslabs/secure-pub-sub/-/secure-pub-sub-1.1.0.tgz", + "integrity": "sha512-OFN0Zsa37+c9aStHd4wzau+IYPY+gve9fBPDuPSIuS06cz/bov39DvCP0LaTQUKxK4eQMZENcPu6PeyBvQYQQA==", "license": "MIT", "dependencies": { + "@toruslabs/constants": "^14.1.1", "@toruslabs/eccrypto": "^5.0.0", "@toruslabs/http-helpers": "^7.0.0", "@toruslabs/metadata-helpers": "^6.0.0", @@ -1634,11 +1639,12 @@ } }, "node_modules/@toruslabs/session-manager": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@toruslabs/session-manager/-/session-manager-3.1.0.tgz", - "integrity": "sha512-VTaYjTTGTqpUm14YWRsSmY0Tt5z7evC0aOdVW7Ahw/jzyb1witNL4Va2+7XzunziEkLJS3luH+LkziHx67jyQg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@toruslabs/session-manager/-/session-manager-3.2.0.tgz", + "integrity": "sha512-t+EGFZhn8pxZ5Gjhxr99qNmK20zZD/RYEMRROBuwsETyy/QU17H6dKhqIb306GjmwUPkz2VKKTtJcOg9Ifijuw==", "license": "MIT", "dependencies": { + "@toruslabs/constants": "^14.1.1", "@toruslabs/eccrypto": "^5.0.4", "@toruslabs/http-helpers": "^7.0.0", "@toruslabs/metadata-helpers": "^6.0.0" @@ -1648,21 +1654,21 @@ "npm": ">=9.x" }, "optionalDependencies": { - "@rollup/rollup-linux-x64-gnu": "^4.22.4" + "@rollup/rollup-linux-x64-gnu": "^4.24.4" } }, "node_modules/@toruslabs/starkware-crypto": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/starkware-crypto/-/starkware-crypto-4.0.0.tgz", - "integrity": "sha512-oEvcwEulCkLbOfRq3Rz3wS1DgSYV5oCh4N4YNWYDQhz1WoQe3S87hJlVUPvRQHHqhp9vBM0qDUVi0Ez7ibYhMA==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@toruslabs/starkware-crypto/-/starkware-crypto-4.0.1.tgz", + "integrity": "sha512-AhnXUscFN2+oLeQuOEbi8vvrQnxUKnE0USWpg7eFHmqUBV8kg6+PAFiWsvJ01+GMQPTMKhKZHyMysxW5AFHc6Q==", "license": "MIT", "dependencies": { "assert": "^2.1.0", "bip39": "^3.1.0", "bn.js": "^5.2.1", - "elliptic": "~6.5.5", + "elliptic": "^6.6.1", "enc-utils": "^3.0.0", - "ethereum-cryptography": "^2.2.0", + "ethereum-cryptography": "^2.2.1", "hash.js": "^1.1.7" }, "engines": { @@ -1742,7 +1748,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.5.4", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", "license": "MIT", "dependencies": { "undici-types": "~6.19.2" @@ -2439,18 +2447,18 @@ "link": true }, "node_modules/@web3auth/auth": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/@web3auth/auth/-/auth-9.4.1.tgz", - "integrity": "sha512-V5JNBc7VeHDmP+9VN4obAIav/NbkyZXEVJ3rD9C4SdbO/ZF3Hc+G8SdVPymJlR2JrBCsuPJiFsUatBl1hx+FSg==", + "version": "9.5.3", + "resolved": "https://registry.npmjs.org/@web3auth/auth/-/auth-9.5.3.tgz", + "integrity": "sha512-774DFBzuq/mO9y5Zf0ICdK9pZ/YgYgnRVo3CYiayuknA4/wTxosK+xvhlcP6fGRKVgoaYa6bP+gBGmqoFCGUzQ==", "license": "MIT", "dependencies": { "@ethereumjs/util": "^9.1.0", - "@toruslabs/constants": "^14.0.0", + "@toruslabs/constants": "^14.1.1", "@toruslabs/ffjavascript": "^4.0.0", "@toruslabs/metadata-helpers": "^6.0.0", - "@toruslabs/secure-pub-sub": "^1.0.0", - "@toruslabs/session-manager": "^3.0.0", - "@toruslabs/starkware-crypto": "^4.0.0", + "@toruslabs/secure-pub-sub": "^1.1.0", + "@toruslabs/session-manager": "^3.2.0", + "@toruslabs/starkware-crypto": "^4.0.1", "@toruslabs/tweetnacl-js": "^1.0.4", "base64url": "^3.0.1", "bip39": "^3.1.0", @@ -2462,9 +2470,9 @@ "events": "^3.3.0", "fast-safe-stringify": "^2.1.1", "json-stable-stringify": "^1.1.1", - "loglevel": "^1.9.1", + "loglevel": "^1.9.2", "once": "^1.4.0", - "pump": "^3.0.0", + "pump": "^3.0.2", "readable-stream": "^4.5.2", "ts-custom-error": "^3.3.1", "typed-emitter": "^2.1.0" @@ -2474,8 +2482,8 @@ "npm": ">=9.x" }, "optionalDependencies": { - "@nx/nx-linux-x64-gnu": "^19.6.3", - "@rollup/rollup-linux-x64-gnu": "^4.21.1" + "@nx/nx-linux-x64-gnu": "^20.1.2", + "@rollup/rollup-linux-x64-gnu": "^4.27.3" }, "peerDependencies": { "@babel/runtime": "7.x" @@ -2566,6 +2574,103 @@ "resolved": "../../packages/plugins/wallet-services-plugin", "link": true }, + "node_modules/@web3auth/ws-embed": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@web3auth/ws-embed/-/ws-embed-3.2.1.tgz", + "integrity": "sha512-se2wuHqKQDyYHYIY92lqjVISLYBZWVua2hgGsdos3xKdCjgyE1uZNr4hXE+uvTB14Ib+THYz4ECLq20lDI/wDA==", + "license": "ISC", + "dependencies": { + "@toruslabs/base-controllers": "^7.0.0-alpha.1", + "@toruslabs/ethereum-controllers": "^7.0.0-alpha.3", + "@web3auth/auth": "^9.5.3", + "fast-deep-equal": "^3.1.3", + "loglevel": "^1.9.2", + "pump": "^3.0.2", + "readable-stream": "^4.5.2" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" + }, + "peerDependencies": { + "@babel/runtime": "7.x" + } + }, + "node_modules/@web3auth/ws-embed/node_modules/@toruslabs/base-controllers": { + "version": "7.0.0-alpha.1", + "resolved": "https://registry.npmjs.org/@toruslabs/base-controllers/-/base-controllers-7.0.0-alpha.1.tgz", + "integrity": "sha512-n6WdDvAs9DujysZFnhdya8oRL0zTawrTT/Dg1hgrxtbM3YbZK0AhZxqvEX4SnfqGaIrSgC72jBrCUcxFHeCTVw==", + "license": "ISC", + "dependencies": { + "@ethereumjs/util": "^9.1.0", + "@toruslabs/broadcast-channel": "^11.0.0", + "@toruslabs/http-helpers": "^7.0.0", + "@web3auth/auth": "^9.5.2", + "async-mutex": "^0.5.0", + "bignumber.js": "^9.1.2", + "bowser": "^2.11.0", + "jwt-decode": "^4.0.0", + "loglevel": "^1.9.2" + }, + "engines": { + "node": ">=18.x", + "npm": ">=9.x" + }, + "peerDependencies": { + "@babel/runtime": "7.x" + } + }, + "node_modules/@web3auth/ws-embed/node_modules/@toruslabs/ethereum-controllers": { + "version": "7.0.0-alpha.3", + "resolved": "https://registry.npmjs.org/@toruslabs/ethereum-controllers/-/ethereum-controllers-7.0.0-alpha.3.tgz", + "integrity": "sha512-m5wrB0hs2FDuh6W2wJ3b93e+LTBU89lHHrIlrH3sbNuK0REi19FJkZn6q66bVPGa6Tj8NeF91FO6phOff5dPZw==", + "license": "ISC", + "dependencies": { + "@ethereumjs/util": "^9.1.0", + "@toruslabs/base-controllers": "^7.0.0-alpha.1", + "@toruslabs/http-helpers": "^7.0.0", + "@web3auth/auth": "^9.5.2", + "async-mutex": "^0.5.0", + "bignumber.js": "^9.1.2", + "bn.js": "^5.2.1", + "deepmerge": "^4.3.1", + "ethers": "^6.13.4", + "fast-json-patch": "^3.1.1", + "fast-safe-stringify": "^2.1.1", + "jsonschema": "^1.4.1", + "loglevel": "^1.9.2", + "permissionless": "^0.2.14", + "viem": "^2.21.40" + }, + "engines": { + "node": ">=16.18.1", + "npm": ">=8.x" + }, + "peerDependencies": { + "@babel/runtime": "7.x" + } + }, + "node_modules/abitype": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.6.tgz", + "integrity": "sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "typescript": ">=5.0.4", + "zod": "^3 >=3.22.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", @@ -3554,9 +3659,9 @@ "license": "ISC" }, "node_modules/elliptic": { - "version": "6.5.7", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.7.tgz", - "integrity": "sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", "license": "MIT", "dependencies": { "bn.js": "^4.11.9", @@ -4722,9 +4827,9 @@ } }, "node_modules/ethers": { - "version": "6.13.3", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.3.tgz", - "integrity": "sha512-/DzbZOLVtoO4fKvvQwpEucHAQgIwBGWuRvBdwE/lMXgXvvHHTSkn7XqAQ2b+gjJzZDJjWA9OD05bVceVOsBHbg==", + "version": "6.13.4", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.4.tgz", + "integrity": "sha512-21YtnZVg4/zKkCQPjrDj38B1r4nQvTZLopUGMLQ1ePU2zV/joCfDC3t3iKQjWRzjjjbzR+mdAIoikeBRNkdllA==", "funding": [ { "type": "individual", @@ -4740,9 +4845,9 @@ "@adraffy/ens-normalize": "1.10.1", "@noble/curves": "1.2.0", "@noble/hashes": "1.3.2", - "@types/node": "18.15.13", + "@types/node": "22.7.5", "aes-js": "4.0.0-beta.5", - "tslib": "2.4.0", + "tslib": "2.7.0", "ws": "8.17.1" }, "engines": { @@ -4769,14 +4874,6 @@ "url": "https://paulmillr.com/funding/" } }, - "node_modules/ethers/node_modules/@types/node": { - "version": "18.15.13", - "license": "MIT" - }, - "node_modules/ethers/node_modules/tslib": { - "version": "2.4.0", - "license": "0BSD" - }, "node_modules/ethers/node_modules/ws": { "version": "8.17.1", "license": "MIT", @@ -4826,7 +4923,6 @@ }, "node_modules/fast-deep-equal": { "version": "3.1.3", - "dev": true, "license": "MIT" }, "node_modules/fast-diff": { @@ -5769,6 +5865,21 @@ "ws": "*" } }, + "node_modules/isows": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.6.tgz", + "integrity": "sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "peerDependencies": { + "ws": "*" + } + }, "node_modules/iterator.prototype": { "version": "1.1.2", "dev": true, @@ -6370,6 +6481,110 @@ "node": ">= 0.8.0" } }, + "node_modules/ox": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.1.2.tgz", + "integrity": "sha512-ak/8K0Rtphg9vnRJlbOdaX9R7cmxD2MiSthjWGaQdMk3D7hrAlDoM+6Lxn7hN52Za3vrXfZ7enfke/5WjolDww==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "dependencies": { + "@adraffy/ens-normalize": "^1.10.1", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0", + "@scure/bip32": "^1.5.0", + "@scure/bip39": "^1.4.0", + "abitype": "^1.0.6", + "eventemitter3": "5.0.1" + }, + "peerDependencies": { + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/ox/node_modules/@noble/curves": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.7.0.tgz", + "integrity": "sha512-UTMhXK9SeDhFJVrHeUJ5uZlI6ajXg10O6Ddocf9S6GjbSBVZsJo88HzKwXznNfGpMTRDyJkqMjNDPYgf0qFWnw==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "1.6.0" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@noble/curves/node_modules/@noble/hashes": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.6.0.tgz", + "integrity": "sha512-YUULf0Uk4/mAA89w+k3+yUYh6NrEvxZa5T6SY3wlMvE2chHkxFUUIDI8/XW1QSC357iA5pSnqt7XEhvFOqmDyQ==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@noble/hashes": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.6.1.tgz", + "integrity": "sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/base": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.1.tgz", + "integrity": "sha512-DGmGtC8Tt63J5GfHgfl5CuAXh96VF/LD8K9Hr/Gv0J2lAoRGlPOMpqMpMbCTOoOJMZCk2Xt+DskdDyn6dEFdzQ==", + "license": "MIT", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/bip32": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.0.tgz", + "integrity": "sha512-82q1QfklrUUdXJzjuRU7iG7D7XiFx5PHYVS0+oeNKhyDLT7WPqs6pBcM2W5ZdwOwKCwoE1Vy1se+DHjcXwCYnA==", + "license": "MIT", + "dependencies": { + "@noble/curves": "~1.7.0", + "@noble/hashes": "~1.6.0", + "@scure/base": "~1.2.1" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/bip39": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.0.tgz", + "integrity": "sha512-Dop+ASYhnrwm9+HA/HwXg7j2ZqM6yk2fyLWb5znexjctFY3+E+eU8cIWI0Pql0Qx4hPZCijlGq4OL71g+Uz30A==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "~1.6.0", + "@scure/base": "~1.2.1" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/p-limit": { "version": "3.1.0", "dev": true, @@ -6467,6 +6682,15 @@ "node": ">=8" } }, + "node_modules/permissionless": { + "version": "0.2.21", + "resolved": "https://registry.npmjs.org/permissionless/-/permissionless-0.2.21.tgz", + "integrity": "sha512-hNrRR/I5InbqkKgRBLhXQY5R0j9biqp688ECBxsW5AO99jOv9HPjz82EdRT87OG4XkCjO4AY20hi4ZPoc+XjRg==", + "license": "MIT", + "peerDependencies": { + "viem": "^2.21.22" + } + }, "node_modules/picocolors": { "version": "1.1.0", "license": "ISC" @@ -7841,6 +8065,85 @@ "node_modules/valid-url": { "version": "1.0.9" }, + "node_modules/viem": { + "version": "2.21.53", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.21.53.tgz", + "integrity": "sha512-0pY8clBacAwzc59iV1vY4a6U4xvRlA5tAuhClJCKvqA6rXJzmNMMvxQ0EG79lkHr7WtBEruXz8nAmONXwnq4EQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "dependencies": { + "@noble/curves": "1.6.0", + "@noble/hashes": "1.5.0", + "@scure/bip32": "1.5.0", + "@scure/bip39": "1.4.0", + "abitype": "1.0.6", + "isows": "1.0.6", + "ox": "0.1.2", + "webauthn-p256": "0.0.10", + "ws": "8.18.0" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/viem/node_modules/@scure/bip32": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.5.0.tgz", + "integrity": "sha512-8EnFYkqEQdnkuGBVpCzKxyIwDCBLDVj3oiX0EKUFre/tOjL/Hqba1D6n/8RcmaQy4f95qQFrO2A8Sr6ybh4NRw==", + "license": "MIT", + "dependencies": { + "@noble/curves": "~1.6.0", + "@noble/hashes": "~1.5.0", + "@scure/base": "~1.1.7" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@scure/bip39": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.4.0.tgz", + "integrity": "sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "~1.5.0", + "@scure/base": "~1.1.8" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/ws": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/vite": { "version": "5.4.8", "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.8.tgz", @@ -7984,6 +8287,22 @@ "typescript": ">=5.0.0" } }, + "node_modules/webauthn-p256": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/webauthn-p256/-/webauthn-p256-0.0.10.tgz", + "integrity": "sha512-EeYD+gmIT80YkSIDb2iWq0lq2zbHo1CxHlQTeJ+KkCILWpVy3zASH3ByD4bopzfk0uCwXxLqKGLqp2W4O28VFA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "dependencies": { + "@noble/curves": "^1.4.0", + "@noble/hashes": "^1.4.0" + } + }, "node_modules/webidl-conversions": { "version": "3.0.1", "license": "BSD-2-Clause" diff --git a/demo/vue-app-new/package.json b/demo/vue-app-new/package.json index 895ec478e..0850a0535 100644 --- a/demo/vue-app-new/package.json +++ b/demo/vue-app-new/package.json @@ -36,6 +36,7 @@ "@web3auth/torus-solana-adapter": "file:../../packages/adapters/torus-solana-adapter", "@web3auth/wallet-connect-v2-adapter": "file:../../packages/adapters/wallet-connect-v2-adapter", "@web3auth/wallet-services-plugin": "file:../../packages/plugins/wallet-services-plugin", + "@web3auth/ws-embed": "^3.2.1", "bs58": "^5.0.0", "ethers": "^6.13.3", "vue": "^3.5.11", diff --git a/demo/vue-app-new/src/MainView.vue b/demo/vue-app-new/src/MainView.vue index 639732177..17b8551c7 100644 --- a/demo/vue-app-new/src/MainView.vue +++ b/demo/vue-app-new/src/MainView.vue @@ -36,9 +36,12 @@ const externalAdapters = ref[]>([]); const walletPlugins = computed(() => { if (formData.chainNamespace !== CHAIN_NAMESPACES.EIP155 || !formData.walletPlugin.enable) return []; - const { logoDark, logoLight } = formData.walletPlugin; + const { logoDark, logoLight, confirmationStrategy } = formData.walletPlugin; const walletServicesPlugin = new WalletServicesPlugin({ - walletInitOptions: { whiteLabel: { showWidgetButton: true, logoDark: logoDark || "logo", logoLight: logoLight || "logo" } }, + walletInitOptions: { + whiteLabel: { showWidgetButton: true, logoDark: logoDark || "logo", logoLight: logoLight || "logo" }, + confirmationStrategy, + }, }); return [walletServicesPlugin]; }); diff --git a/demo/vue-app-new/src/components/AppDashboard.vue b/demo/vue-app-new/src/components/AppDashboard.vue index 9fb7387a2..61c103285 100644 --- a/demo/vue-app-new/src/components/AppDashboard.vue +++ b/demo/vue-app-new/src/components/AppDashboard.vue @@ -16,6 +16,12 @@ import { signTypedMessage, } from "../services/ethHandlers"; import { signAllTransactions, signAndSendTransaction, signMessage, signTransaction as signSolTransaction } from "../services/solHandlers"; +import { + walletSendEth, + walletSignPersonalMessage, + walletSignTransaction as walletSignEthTransaction, + walletSignTypedMessage, +} from "../services/walletServiceHandlers"; import { formDataStore } from "../store/form"; const { t } = useI18n({ useScope: "global" }); @@ -48,19 +54,6 @@ const isDisplay = (name: string): boolean => { } }; -const showWalletUI = async () => { - const walletPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.WALLET_SERVICES) as WalletServicesPlugin; - await walletPlugin.showWalletUi(); -}; -const showCheckout = async () => { - const walletPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.WALLET_SERVICES) as WalletServicesPlugin; - await walletPlugin.showCheckout(); -}; -const showWalletConnectScanner = async () => { - const walletPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.WALLET_SERVICES) as WalletServicesPlugin; - await walletPlugin.showWalletConnectScanner(); -}; - const clearConsole = () => { const el = document.querySelector("#console>pre"); const h1 = document.querySelector("#console>h1"); @@ -91,6 +84,33 @@ const printToConsole = (...args: unknown[]) => { } }; +// Wallet Services +const showWalletUI = async () => { + const walletPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.WALLET_SERVICES) as WalletServicesPlugin; + await walletPlugin.showWalletUi(); +}; +const showCheckout = async () => { + const walletPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.WALLET_SERVICES) as WalletServicesPlugin; + await walletPlugin.showCheckout(); +}; +const showWalletConnectScanner = async () => { + const walletPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.WALLET_SERVICES) as WalletServicesPlugin; + await walletPlugin.showWalletConnectScanner(); +}; +const onWalletSignPersonalMessage = async () => { + const walletPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.WALLET_SERVICES) as WalletServicesPlugin; + await walletSignPersonalMessage(walletPlugin.wsEmbedInstance.provider, printToConsole); +}; +const onWalletSignTypedData_v4 = async () => { + const walletPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.WALLET_SERVICES) as WalletServicesPlugin; + await walletSignTypedMessage(walletPlugin.wsEmbedInstance.provider, printToConsole); +}; +const onWalletSendEth = async () => { + const walletPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.WALLET_SERVICES) as WalletServicesPlugin; + await walletSendEth(walletPlugin.wsEmbedInstance.provider, printToConsole); +}; + +// Ethereum Provider const onGetUserInfo = async () => { printToConsole("User Info", userInfo.value); }; @@ -206,6 +226,13 @@ const onSignPersonalMsg = async () => { + + +
Sample Transaction
diff --git a/demo/vue-app-new/src/components/AppSettings.vue b/demo/vue-app-new/src/components/AppSettings.vue index 465fc8d42..c87e75f6e 100644 --- a/demo/vue-app-new/src/components/AppSettings.vue +++ b/demo/vue-app-new/src/components/AppSettings.vue @@ -4,7 +4,15 @@ import { ADAPTER_STATUS, CHAIN_NAMESPACES, ChainNamespaceType, log } from "@web3 import { useWeb3Auth } from "@web3auth/modal-vue-composables"; import { computed, InputHTMLAttributes, ref } from "vue"; -import { chainConfigs, chainNamespaceOptions, languageOptions, loginProviderOptions, networkOptions, SmartAccountOptions } from "../config"; +import { + chainConfigs, + chainNamespaceOptions, + confirmationStrategyOptions, + languageOptions, + loginProviderOptions, + networkOptions, + SmartAccountOptions, +} from "../config"; import { formDataStore } from "../store/form"; const formData = formDataStore; @@ -350,6 +358,15 @@ const onChainNamespaceChange = (value: string) => { :placeholder="$t('app.walletPlugin.logoDark')" class="sm:col-span-2" /> +