From 62155a84deda234fd9b03790be62cbc04528fbc7 Mon Sep 17 00:00:00 2001 From: Maharshi Mishra Date: Thu, 29 Feb 2024 07:40:49 +0530 Subject: [PATCH] Fixed vue-app to work with v8 --- demo/vue-app/package-lock.json | 151 ++++++++++---------- demo/vue-app/package.json | 2 +- demo/vue-app/src/chains/binance.vue | 70 +++++---- demo/vue-app/src/chains/ethereum.vue | 94 ++++-------- demo/vue-app/src/chains/matic.vue | 66 ++++++--- demo/vue-app/src/chains/solana.vue | 70 ++++----- demo/vue-app/src/customUi/openlogin.vue | 50 +++++-- demo/vue-app/src/customUi/walletConnect.vue | 48 ++++++- demo/vue-app/src/default/defaultModal.vue | 49 +++++-- demo/vue-app/src/whitelabel/whitelabel.vue | 26 +++- 10 files changed, 367 insertions(+), 259 deletions(-) diff --git a/demo/vue-app/package-lock.json b/demo/vue-app/package-lock.json index ab804680c..bb7b720be 100644 --- a/demo/vue-app/package-lock.json +++ b/demo/vue-app/package-lock.json @@ -62,11 +62,11 @@ }, "../../packages/adapters/base-evm-adapter": { "name": "@web3auth/base-evm-adapter", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^5.4.0", - "@web3auth/base": "^8.0.0-alpha.15" + "@toruslabs/base-controllers": "^5.5.0", + "@web3auth/base": "^8.0.0" }, "engines": { "node": ">=18.x", @@ -78,11 +78,11 @@ }, "../../packages/adapters/base-solana-adapter": { "name": "@web3auth/base-solana-adapter", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^5.4.0", - "@web3auth/base": "^8.0.0-alpha.15", + "@toruslabs/base-controllers": "^5.5.0", + "@web3auth/base": "^8.0.0", "bs58": "^5.0.0" }, "devDependencies": { @@ -98,12 +98,12 @@ }, "../../packages/adapters/metamask-adapter": { "name": "@web3auth/metamask-adapter", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { "@metamask/detect-provider": "^2.0.0", - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-evm-adapter": "^8.0.0-alpha.15" + "@web3auth/base": "^8.0.0", + "@web3auth/base-evm-adapter": "^8.0.0" }, "engines": { "node": ">=18.x", @@ -115,13 +115,13 @@ }, "../../packages/adapters/openlogin-adapter": { "name": "@web3auth/openlogin-adapter", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { - "@toruslabs/openlogin": "^7.0.3", - "@toruslabs/openlogin-utils": "^7.0.3", - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-provider": "^8.0.0-alpha.15", + "@toruslabs/openlogin": "^7.0.4", + "@toruslabs/openlogin-utils": "^7.0.4", + "@web3auth/base": "^8.0.0", + "@web3auth/base-provider": "^8.0.0", "lodash.merge": "^4.6.2" }, "devDependencies": { @@ -153,13 +153,13 @@ }, "../../packages/adapters/phantom-adapter": { "name": "@web3auth/phantom-adapter", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-provider": "^8.0.0-alpha.15", - "@web3auth/base-solana-adapter": "^8.0.0-alpha.15", - "@web3auth/solana-provider": "^8.0.0-alpha.15", + "@web3auth/base": "^8.0.0", + "@web3auth/base-provider": "^8.0.0", + "@web3auth/base-solana-adapter": "^8.0.0", + "@web3auth/solana-provider": "^8.0.0", "bn.js": "^5.2.1" }, "engines": { @@ -173,13 +173,13 @@ }, "../../packages/adapters/slope-adapter": { "name": "@web3auth/slope-adapter", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-provider": "^8.0.0-alpha.15", - "@web3auth/base-solana-adapter": "^8.0.0-alpha.15", - "@web3auth/solana-provider": "^8.0.0-alpha.15", + "@web3auth/base": "^8.0.0", + "@web3auth/base-provider": "^8.0.0", + "@web3auth/base-solana-adapter": "^8.0.0", + "@web3auth/solana-provider": "^8.0.0", "bn.js": "^5.2.1" }, "engines": { @@ -193,13 +193,13 @@ }, "../../packages/adapters/solflare-adapter": { "name": "@web3auth/solflare-adapter", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-provider": "^8.0.0-alpha.15", - "@web3auth/base-solana-adapter": "^8.0.0-alpha.15", - "@web3auth/solana-provider": "^8.0.0-alpha.15", + "@web3auth/base": "^8.0.0", + "@web3auth/base-provider": "^8.0.0", + "@web3auth/base-solana-adapter": "^8.0.0", + "@web3auth/solana-provider": "^8.0.0", "bn.js": "^5.2.1" }, "devDependencies": { @@ -218,12 +218,12 @@ }, "../../packages/adapters/torus-evm-adapter": { "name": "@web3auth/torus-evm-adapter", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { "@toruslabs/torus-embed": "^4.1.3", - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-evm-adapter": "^8.0.0-alpha.15" + "@web3auth/base": "^8.0.0", + "@web3auth/base-evm-adapter": "^8.0.0" }, "engines": { "node": ">=18.x", @@ -235,14 +235,14 @@ }, "../../packages/adapters/torus-solana-adapter": { "name": "@web3auth/torus-solana-adapter", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { "@toruslabs/solana-embed": "^2.0.0", - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-provider": "^8.0.0-alpha.15", - "@web3auth/base-solana-adapter": "^8.0.0-alpha.15", - "@web3auth/solana-provider": "^8.0.0-alpha.15" + "@web3auth/base": "^8.0.0", + "@web3auth/base-provider": "^8.0.0", + "@web3auth/base-solana-adapter": "^8.0.0", + "@web3auth/solana-provider": "^8.0.0" }, "engines": { "node": ">=18.x", @@ -256,12 +256,12 @@ "../../packages/adapters/wallet-connect-v1-adapter": {}, "../../packages/adapters/wallet-connect-v2-adapter": { "name": "@web3auth/wallet-connect-v2-adapter", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-evm-adapter": "^8.0.0-alpha.15", - "@web3auth/ethereum-provider": "^8.0.0-alpha.15", + "@web3auth/base": "^8.0.0", + "@web3auth/base-evm-adapter": "^8.0.0", + "@web3auth/ethereum-provider": "^8.0.0", "lodash.merge": "^4.6.2" }, "devDependencies": { @@ -283,13 +283,13 @@ }, "../../packages/base": { "name": "@web3auth/base", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { "@toruslabs/http-helpers": "^6.0.0", - "@toruslabs/openlogin": "^7.0.3", + "@toruslabs/openlogin": "^7.0.4", "@toruslabs/openlogin-jrpc": "^7.0.0", - "@toruslabs/openlogin-utils": "^7.0.3", + "@toruslabs/openlogin-utils": "^7.0.4", "jwt-decode": "^4.0.0", "loglevel": "^1.9.1", "ts-custom-error": "^3.3.1" @@ -354,24 +354,23 @@ }, "../../packages/modal": { "name": "@web3auth/modal", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-provider": "^8.0.0-alpha.15", - "@web3auth/no-modal": "^8.0.0-alpha.15", - "@web3auth/openlogin-adapter": "^8.0.0-alpha.15", - "@web3auth/ui": "^8.0.0-alpha.15" + "@web3auth/base": "^8.0.0", + "@web3auth/base-provider": "^8.0.0", + "@web3auth/no-modal": "^8.0.0", + "@web3auth/openlogin-adapter": "^8.0.0", + "@web3auth/ui": "^8.0.0" }, "devDependencies": { "@svgr/webpack": "^8.1.0", "@toruslabs/isomorphic-style-loader": "^5.3.3", - "@toruslabs/openlogin-utils": "^7.0.3", - "@web3auth/wallet-connect-v2-adapter": "^8.0.0-alpha.15", + "@toruslabs/openlogin-utils": "^7.0.4", + "@web3auth/wallet-connect-v2-adapter": "^8.0.0", "css-loader": "^6.10.0", "postcss-prefix-selector": "^1.16.0", "style-loader": "^3.3.4", - "tailwindcss": "^3.4.1", "url-loader": "^4.1.1" }, "engines": { @@ -407,19 +406,19 @@ }, "../../packages/no-modal": { "name": "@web3auth/no-modal", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { - "@toruslabs/openlogin": "^7.0.3", + "@toruslabs/openlogin": "^7.0.4", "@toruslabs/openlogin-jrpc": "^7.0.0", - "@toruslabs/openlogin-utils": "^7.0.3", - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-plugin": "^8.0.0-alpha.15", - "@web3auth/base-provider": "^8.0.0-alpha.15" + "@toruslabs/openlogin-utils": "^7.0.4", + "@web3auth/base": "^8.0.0", + "@web3auth/base-plugin": "^8.0.0", + "@web3auth/base-provider": "^8.0.0" }, "devDependencies": { - "@web3auth/openlogin-adapter": "^8.0.0-alpha.15", - "@web3auth/wallet-connect-v2-adapter": "^8.0.0-alpha.15" + "@web3auth/openlogin-adapter": "^8.0.0", + "@web3auth/wallet-connect-v2-adapter": "^8.0.0" }, "engines": { "node": ">=18.x", @@ -491,13 +490,13 @@ }, "../../packages/plugins/solana-wallet-connector-plugin": { "name": "@web3auth/solana-wallet-connector-plugin", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { "@toruslabs/solana-embed": "^2.0.0", - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-plugin": "^8.0.0-alpha.15", - "@web3auth/no-modal": "^8.0.0-alpha.15", + "@web3auth/base": "^8.0.0", + "@web3auth/base-plugin": "^8.0.0", + "@web3auth/no-modal": "^8.0.0", "loglevel": "^1.9.1" }, "devDependencies": { @@ -515,20 +514,20 @@ "../../packages/plugins/wallet-services-connector-plugin": {}, "../../packages/providers/ethereum-provider": { "name": "@web3auth/ethereum-provider", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { - "@ethereumjs/common": "^4.1.0", - "@ethereumjs/tx": "^5.1.0", - "@ethereumjs/util": "^9.0.1", + "@ethereumjs/common": "^4.2.0", + "@ethereumjs/tx": "^5.2.1", + "@ethereumjs/util": "^9.0.2", "@metamask/eth-sig-util": "^7.0.1", "@metamask/rpc-errors": "^6.1.0", - "@toruslabs/base-controllers": "^5.4.0", + "@toruslabs/base-controllers": "^5.5.0", "@toruslabs/http-helpers": "^6.0.0", "@toruslabs/openlogin-jrpc": "^7.0.0", "@walletconnect/utils": "^2.11.1", - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-provider": "^8.0.0-alpha.15", + "@web3auth/base": "^8.0.0", + "@web3auth/base-provider": "^8.0.0", "assert": "^2.1.0", "bignumber.js": "^9.1.2", "bn.js": "^5.2.1", @@ -583,16 +582,16 @@ }, "../../packages/providers/solana-provider": { "name": "@web3auth/solana-provider", - "version": "8.0.0-alpha.15", + "version": "8.0.0", "license": "ISC", "dependencies": { "@metamask/rpc-errors": "^6.1.0", - "@toruslabs/base-controllers": "^5.4.0", + "@toruslabs/base-controllers": "^5.5.0", "@toruslabs/openlogin-ed25519": "^7.0.0", "@toruslabs/openlogin-jrpc": "^7.0.0", "@toruslabs/tweetnacl-js": "^1.0.4", - "@web3auth/base": "^8.0.0-alpha.15", - "@web3auth/base-provider": "^8.0.0-alpha.15", + "@web3auth/base": "^8.0.0", + "@web3auth/base-provider": "^8.0.0", "bn.js": "^5.2.1", "bs58": "^5.0.0", "json-rpc-random-id": "^1.0.1" diff --git a/demo/vue-app/package.json b/demo/vue-app/package.json index 0b1da1632..da02573f0 100644 --- a/demo/vue-app/package.json +++ b/demo/vue-app/package.json @@ -16,6 +16,7 @@ "@web3auth/base": "file:../../packages/base", "@web3auth/base-evm-adapter": "file:../../packages/adapters/base-evm-adapter", "@web3auth/base-solana-adapter": "file:../../packages/adapters/base-solana-adapter", + "@web3auth/ethereum-provider": "file:../../packages/providers/ethereum-provider", "@web3auth/metamask-adapter": "file:../../packages/adapters/metamask-adapter", "@web3auth/modal": "file:../../packages/modal", "@web3auth/no-modal": "file:../../packages/no-modal", @@ -31,7 +32,6 @@ "@web3auth/wallet-connect-v1-adapter": "file:../../packages/adapters/wallet-connect-v1-adapter", "@web3auth/wallet-connect-v2-adapter": "file:../../packages/adapters/wallet-connect-v2-adapter", "@web3auth/wallet-services-connector-plugin": "file:../../packages/plugins/wallet-services-connector-plugin", - "@web3auth/ethereum-provider": "file:../../packages/providers/ethereum-provider", "lodash.merge": "^4.6.2", "ts-custom-error": "^3.3.1", "vue": "^3.3.13", diff --git a/demo/vue-app/src/chains/binance.vue b/demo/vue-app/src/chains/binance.vue index 7fd61be04..17997f251 100644 --- a/demo/vue-app/src/chains/binance.vue +++ b/demo/vue-app/src/chains/binance.vue @@ -17,10 +17,12 @@