diff --git a/demo/vue-app-new/package-lock.json b/demo/vue-app-new/package-lock.json index 3e8fb1cab..10d3058ac 100644 --- a/demo/vue-app-new/package-lock.json +++ b/demo/vue-app-new/package-lock.json @@ -35,6 +35,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", @@ -57,12 +58,12 @@ }, "../../packages/adapters/auth-adapter": { "name": "@web3auth/auth-adapter", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/auth": "^9.5.0", - "@web3auth/base": "^9.4.0", - "@web3auth/base-provider": "^9.4.0", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/base-provider": "^9.4.5", "deepmerge": "^4.3.1" }, "engines": { @@ -75,11 +76,11 @@ }, "../../packages/adapters/base-evm-adapter": { "name": "@web3auth/base-evm-adapter", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.2.4", - "@web3auth/base": "^9.4.0" + "@toruslabs/base-controllers": "^6.3.2", + "@web3auth/base": "^9.4.5" }, "engines": { "node": ">=18.x", @@ -91,11 +92,11 @@ }, "../../packages/adapters/base-solana-adapter": { "name": "@web3auth/base-solana-adapter", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.2.4", - "@web3auth/base": "^9.4.0", + "@toruslabs/base-controllers": "^6.3.2", + "@web3auth/base": "^9.4.5", "bs58": "^5.0.0" }, "devDependencies": { @@ -111,14 +112,14 @@ }, "../../packages/adapters/coinbase-adapter": { "name": "@web3auth/coinbase-adapter", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/base": "^9.4.0", - "@web3auth/base-evm-adapter": "^9.4.0" + "@web3auth/base": "^9.4.5", + "@web3auth/base-evm-adapter": "^9.4.5" }, "devDependencies": { - "@coinbase/wallet-sdk": "^4.2.2" + "@coinbase/wallet-sdk": "^4.2.3" }, "engines": { "node": ">=18.x", @@ -131,12 +132,12 @@ }, "../../packages/adapters/default-evm-adapter": { "name": "@web3auth/default-evm-adapter", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/base": "^9.4.0", - "@web3auth/base-evm-adapter": "^9.4.0", - "@web3auth/wallet-connect-v2-adapter": "^9.4.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": { @@ -149,19 +150,19 @@ }, "../../packages/adapters/default-solana-adapter": { "name": "@web3auth/default-solana-adapter", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { "@solana/wallet-standard-features": "^1.2.0", - "@solana/web3.js": "^1.95.4", + "@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.0", - "@web3auth/base": "^9.4.0", - "@web3auth/base-solana-adapter": "^9.4.0", - "@web3auth/solana-provider": "^9.4.0", - "@web3auth/wallet-connect-v2-adapter": "^9.4.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": { @@ -174,12 +175,12 @@ }, "../../packages/adapters/torus-evm-adapter": { "name": "@web3auth/torus-evm-adapter", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { "@toruslabs/torus-embed": "^5.0.0", - "@web3auth/base": "^9.4.0", - "@web3auth/base-evm-adapter": "^9.4.0" + "@web3auth/base": "^9.4.5", + "@web3auth/base-evm-adapter": "^9.4.5" }, "engines": { "node": ">=18.x", @@ -191,14 +192,14 @@ }, "../../packages/adapters/torus-solana-adapter": { "name": "@web3auth/torus-solana-adapter", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { "@toruslabs/solana-embed": "^2.1.0", - "@web3auth/base": "^9.4.0", - "@web3auth/base-provider": "^9.4.0", - "@web3auth/base-solana-adapter": "^9.4.0", - "@web3auth/solana-provider": "^9.4.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", @@ -211,19 +212,19 @@ }, "../../packages/adapters/wallet-connect-v2-adapter": { "name": "@web3auth/wallet-connect-v2-adapter", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@solana/web3.js": "^1.95.4", - "@toruslabs/base-controllers": "^6.2.4", + "@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.0", - "@web3auth/base": "^9.4.0", - "@web3auth/base-provider": "^9.4.0", - "@web3auth/ethereum-provider": "^9.4.0", - "@web3auth/solana-provider": "^9.4.0", + "@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" }, @@ -240,13 +241,13 @@ }, "../../packages/base": { "name": "@web3auth/base", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.2.4", - "@toruslabs/constants": "^14.1.1", + "@toruslabs/base-controllers": "^6.3.2", + "@toruslabs/constants": "^14.2.0", "@toruslabs/http-helpers": "^7.0.0", - "@web3auth/auth": "^9.5.0", + "@web3auth/auth": "^9.5.3", "jwt-decode": "^4.0.0", "loglevel": "^1.9.2", "ts-custom-error": "^3.3.1" @@ -261,15 +262,15 @@ }, "../../packages/composables/modal-vue-composables": { "name": "@web3auth/modal-vue-composables", - "version": "9.4.1", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/base": "^9.4.0", - "@web3auth/modal": "^9.4.1" + "@web3auth/base": "^9.4.5", + "@web3auth/modal": "^9.4.5" }, "devDependencies": { - "@web3auth/auth": "^9.5.0", - "@web3auth/auth-adapter": "^9.4.0" + "@web3auth/auth": "^9.5.3", + "@web3auth/auth-adapter": "^9.4.5" }, "engines": { "node": ">=18.x", @@ -282,22 +283,22 @@ }, "../../packages/modal": { "name": "@web3auth/modal", - "version": "9.4.1", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/auth-adapter": "^9.4.0", - "@web3auth/base": "^9.4.0", - "@web3auth/base-provider": "^9.4.0", - "@web3auth/no-modal": "^9.4.0", - "@web3auth/ui": "^9.4.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.4.0", - "@web3auth/auth": "^9.5.0", - "@web3auth/wallet-connect-v2-adapter": "^9.4.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", @@ -319,18 +320,18 @@ }, "../../packages/no-modal": { "name": "@web3auth/no-modal", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@web3auth/auth": "^9.5.0", - "@web3auth/base": "^9.4.0", - "@web3auth/base-provider": "^9.4.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.4.0", - "@web3auth/auth-adapter": "^9.4.0", - "@web3auth/wallet-connect-v2-adapter": "^9.4.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", @@ -370,13 +371,13 @@ }, "../../packages/plugins/solana-wallet-connector-plugin": { "name": "@web3auth/solana-wallet-connector-plugin", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { "@toruslabs/solana-embed": "^2.1.0", - "@web3auth/auth": "^9.5.0", - "@web3auth/base": "^9.4.0", - "@web3auth/no-modal": "^9.4.0", + "@web3auth/auth": "^9.5.3", + "@web3auth/base": "^9.4.5", + "@web3auth/no-modal": "^9.4.5", "loglevel": "^1.9.2" }, "engines": { @@ -389,17 +390,18 @@ }, "../../packages/plugins/wallet-services-plugin": { "name": "@web3auth/wallet-services-plugin", - "version": "9.4.0", + "version": "9.5.0-alpha.0", "license": "ISC", "dependencies": { - "@web3auth/auth": "^9.5.0", - "@web3auth/base": "^9.4.0", - "@web3auth/no-modal": "^9.4.0", - "@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.4" + "@toruslabs/ethereum-controllers": "^6.3.2" }, "engines": { "node": ">=18.x", @@ -411,18 +413,18 @@ }, "../../packages/providers/account-abstraction-provider": { "name": "@web3auth/account-abstraction-provider", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { "@ethereumjs/util": "^9.1.0", - "@toruslabs/base-controllers": "^6.2.4", - "@web3auth/auth": "^9.5.0", - "@web3auth/base": "^9.4.0", - "@web3auth/base-provider": "^9.4.0", - "@web3auth/ethereum-provider": "^9.4.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.43" + "permissionless": "^0.2.20", + "viem": "^2.21.52" }, "engines": { "node": ">=18.x", @@ -496,12 +498,12 @@ }, "../../packages/providers/base-provider": { "name": "@web3auth/base-provider", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.2.4", - "@web3auth/auth": "^9.5.0", - "@web3auth/base": "^9.4.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": { @@ -517,16 +519,16 @@ }, "../../packages/providers/ethereum-provider": { "name": "@web3auth/ethereum-provider", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { "@ethereumjs/util": "^9.1.0", - "@toruslabs/base-controllers": "^6.2.4", + "@toruslabs/base-controllers": "^6.3.2", "@toruslabs/eccrypto": "^5.0.4", "@toruslabs/http-helpers": "^7.0.0", - "@web3auth/auth": "^9.5.0", - "@web3auth/base": "^9.4.0", - "@web3auth/base-provider": "^9.4.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", @@ -548,20 +550,20 @@ }, "../../packages/providers/solana-provider": { "name": "@web3auth/solana-provider", - "version": "9.4.0", + "version": "9.4.5", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.2.4", + "@toruslabs/base-controllers": "^6.3.2", "@toruslabs/tweetnacl-js": "^1.0.4", - "@web3auth/auth": "^9.5.0", - "@web3auth/base": "^9.4.0", - "@web3auth/base-provider": "^9.4.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" @@ -1057,13 +1059,12 @@ } }, "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" ], - "license": "MIT", "optional": true, "os": [ "linux" @@ -1244,13 +1245,12 @@ ] }, "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" ], - "license": "MIT", "optional": true, "os": [ "linux" @@ -1496,8 +1496,9 @@ } }, "node_modules/@toruslabs/constants": { - "version": "14.0.0", - "license": "MIT", + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-14.2.0.tgz", + "integrity": "sha512-Mb5EfYNSPyvvw5s1JXnpZwritCgp4NmLni1imTqrSKGV3yikYhUn1ufyLMAHGnBBgv4AuMIXBIe3EpJJ+SpA0g==", "engines": { "node": ">=18.x", "npm": ">=9.x" @@ -1633,11 +1634,11 @@ } }, "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==", - "license": "MIT", + "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==", "dependencies": { + "@toruslabs/constants": "^14.1.1", "@toruslabs/eccrypto": "^5.0.0", "@toruslabs/http-helpers": "^7.0.0", "@toruslabs/metadata-helpers": "^6.0.0", @@ -1653,11 +1654,11 @@ } }, "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==", - "license": "MIT", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@toruslabs/session-manager/-/session-manager-3.2.0.tgz", + "integrity": "sha512-t+EGFZhn8pxZ5Gjhxr99qNmK20zZD/RYEMRROBuwsETyy/QU17H6dKhqIb306GjmwUPkz2VKKTtJcOg9Ifijuw==", "dependencies": { + "@toruslabs/constants": "^14.1.1", "@toruslabs/eccrypto": "^5.0.4", "@toruslabs/http-helpers": "^7.0.0", "@toruslabs/metadata-helpers": "^6.0.0" @@ -1667,21 +1668,20 @@ "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==", - "license": "MIT", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@toruslabs/starkware-crypto/-/starkware-crypto-4.0.1.tgz", + "integrity": "sha512-AhnXUscFN2+oLeQuOEbi8vvrQnxUKnE0USWpg7eFHmqUBV8kg6+PAFiWsvJ01+GMQPTMKhKZHyMysxW5AFHc6Q==", "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": { @@ -1761,8 +1761,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.5.4", - "license": "MIT", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", "dependencies": { "undici-types": "~6.19.2" } @@ -2458,18 +2459,17 @@ "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==", - "license": "MIT", + "version": "9.5.3", + "resolved": "https://registry.npmjs.org/@web3auth/auth/-/auth-9.5.3.tgz", + "integrity": "sha512-774DFBzuq/mO9y5Zf0ICdK9pZ/YgYgnRVo3CYiayuknA4/wTxosK+xvhlcP6fGRKVgoaYa6bP+gBGmqoFCGUzQ==", "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", @@ -2481,9 +2481,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" @@ -2493,8 +2493,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" @@ -2589,6 +2589,99 @@ "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==", + "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==", + "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==", + "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==", + "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", @@ -2855,7 +2948,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/assert/-/assert-2.1.0.tgz", "integrity": "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "is-nan": "^1.3.2", @@ -3019,7 +3111,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/bip39/-/bip39-3.1.0.tgz", "integrity": "sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A==", - "license": "ISC", "dependencies": { "@noble/hashes": "^1.2.0" } @@ -3577,10 +3668,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==", - "license": "MIT", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", "dependencies": { "bn.js": "^4.11.9", "brorand": "^1.1.0", @@ -3605,7 +3695,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/enc-utils/-/enc-utils-3.0.0.tgz", "integrity": "sha512-e57t/Z2HzWOLwOp7DZcV0VMEY8t7ptWwsxyp6kM2b2zrk6JqIpXxzkruHAMiBsy5wg9jp/183GdiRXCvBtzsYg==", - "license": "MIT", "dependencies": { "is-typedarray": "1.0.0", "typedarray-to-buffer": "3.1.5" @@ -4745,9 +4834,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", @@ -4758,14 +4847,13 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], - "license": "MIT", "dependencies": { "@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": { @@ -4792,14 +4880,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", @@ -4849,7 +4929,6 @@ }, "node_modules/fast-deep-equal": { "version": "3.1.3", - "dev": true, "license": "MIT" }, "node_modules/fast-diff": { @@ -5601,7 +5680,6 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", - "license": "MIT", "dependencies": { "call-bind": "^1.0.0", "define-properties": "^1.1.3" @@ -5737,8 +5815,7 @@ "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", - "license": "MIT" + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" }, "node_modules/is-weakmap": { "version": "2.0.2", @@ -5792,6 +5869,20 @@ "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" + } + ], + "peerDependencies": { + "ws": "*" + } + }, "node_modules/iterator.prototype": { "version": "1.1.2", "dev": true, @@ -6393,6 +6484,103 @@ "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" + } + ], + "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==", + "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==", + "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==", + "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==", + "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==", + "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==", + "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, @@ -6490,6 +6678,14 @@ "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==", + "peerDependencies": { + "viem": "^2.21.22" + } + }, "node_modules/picocolors": { "version": "1.1.0", "license": "ISC" @@ -7744,7 +7940,6 @@ "version": "3.1.5", "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "license": "MIT", "dependencies": { "is-typedarray": "^1.0.0" } @@ -7841,7 +8036,6 @@ "version": "0.12.5", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "is-arguments": "^1.0.4", @@ -7864,6 +8058,81 @@ "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" + } + ], + "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==", + "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==", + "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==", + "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", @@ -8007,6 +8276,21 @@ "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" + } + ], + "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 d2849e9e6..8b5c9fcff 100644 --- a/demo/vue-app-new/package.json +++ b/demo/vue-app-new/package.json @@ -37,6 +37,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 8f97afa1c..8ad131a4f 100644 --- a/demo/vue-app-new/src/MainView.vue +++ b/demo/vue-app-new/src/MainView.vue @@ -45,9 +45,12 @@ const walletPlugins = computed(() => { plugins.push(nftCheckoutPlugin); } if (formData.walletPlugin.enable) { - 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, + }, }); plugins.push(walletServicesPlugin); } diff --git a/demo/vue-app-new/src/components/AppDashboard.vue b/demo/vue-app-new/src/components/AppDashboard.vue index 05af3dcfb..b46020680 100644 --- a/demo/vue-app-new/src/components/AppDashboard.vue +++ b/demo/vue-app-new/src/components/AppDashboard.vue @@ -18,6 +18,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" }); @@ -53,27 +59,6 @@ const isDisplay = (name: string): boolean => { } }; -const showPaidMintNFTCheckout = async () => { - const nftCheckoutPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.NFT_CHECKOUT) as NFTCheckoutPlugin; - nftCheckoutPlugin.show({ contractId: NFT_CHECKOUT_CONTRACT_ID.PAID_MINT }); -}; -const showFreeMintNFTCheckout = async () => { - const nftCheckoutPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.NFT_CHECKOUT) as NFTCheckoutPlugin; - nftCheckoutPlugin.show({ contractId: NFT_CHECKOUT_CONTRACT_ID.FREE_MINT }); -}; -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"); @@ -104,6 +89,43 @@ 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); +}; + +// NFT Checkout +const showPaidMintNFTCheckout = async () => { + const nftCheckoutPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.NFT_CHECKOUT) as NFTCheckoutPlugin; + nftCheckoutPlugin.show({ contractId: NFT_CHECKOUT_CONTRACT_ID.PAID_MINT }); +}; +const showFreeMintNFTCheckout = async () => { + const nftCheckoutPlugin = web3Auth.value?.getPlugin(WALLET_PLUGINS.NFT_CHECKOUT) as NFTCheckoutPlugin; + nftCheckoutPlugin.show({ contractId: NFT_CHECKOUT_CONTRACT_ID.FREE_MINT }); +}; + +// Ethereum Provider const onGetUserInfo = async () => { printToConsole("User Info", userInfo.value); }; @@ -219,6 +241,13 @@ const onSignPersonalMsg = async () => { + + +
NFT Checkout Service
diff --git a/demo/vue-app-new/src/components/AppSettings.vue b/demo/vue-app-new/src/components/AppSettings.vue index 1cdf72e1b..d6b556e2b 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; @@ -356,6 +364,15 @@ const onChainNamespaceChange = (value: string) => { :placeholder="$t('app.walletPlugin.logoDark')" class="sm:col-span-2" /> +