From 5bfe0104859778c5c2044735e31f82251ae8a6dd Mon Sep 17 00:00:00 2001 From: Tomas Rawski Date: Tue, 30 Apr 2024 17:12:36 -0300 Subject: [PATCH 1/6] update packages --- demo/react-app/package-lock.json | 582 +++++++++++++++---------------- demo/react-app/package.json | 10 +- 2 files changed, 282 insertions(+), 310 deletions(-) diff --git a/demo/react-app/package-lock.json b/demo/react-app/package-lock.json index 1699037aa..d8f8472f1 100644 --- a/demo/react-app/package-lock.json +++ b/demo/react-app/package-lock.json @@ -8,10 +8,10 @@ "name": "react-test", "version": "0.1.0", "dependencies": { - "@solana/web3.js": "^1.87.3", - "@taquito/signer": "^14.0.0", - "@taquito/taquito": "^14.2.0", - "@taquito/utils": "^13.0.1", + "@solana/web3.js": "^1.91.7", + "@taquito/signer": "^19.2.0", + "@taquito/taquito": "^19.2.0", + "@taquito/utils": "^19.2.0", "@tezos-core-tools/crypto-utils": "^0.0.7", "@web3auth/base": "file:../../packages/base", "@web3auth/ethereum-provider": "file:../../packages/providers/ethereum-provider", @@ -21,7 +21,7 @@ "@web3auth/wallet-services-plugin": "file:../../packages/plugins/wallet-services-plugin", "react": "^18.2.0", "react-dom": "^18.2.0", - "web3": "^4.2.1" + "web3": "^4.8.0" }, "devDependencies": { "@types/node": "^20.8.10", @@ -37,13 +37,13 @@ }, "../../packages/adapters/openlogin-adapter": { "name": "@web3auth/openlogin-adapter", - "version": "8.3.0", + "version": "8.4.0", "license": "ISC", "dependencies": { "@toruslabs/openlogin": "^8.1.0", "@toruslabs/openlogin-utils": "^8.1.0", - "@web3auth/base": "^8.3.0", - "@web3auth/base-provider": "^8.3.0", + "@web3auth/base": "^8.4.0", + "@web3auth/base-provider": "^8.4.0", "lodash.merge": "^4.6.2" }, "devDependencies": { @@ -59,10 +59,10 @@ }, "../../packages/base": { "name": "@web3auth/base", - "version": "8.3.0", + "version": "8.4.0", "license": "ISC", "dependencies": { - "@toruslabs/constants": "^13.2.0", + "@toruslabs/constants": "^13.3.0", "@toruslabs/http-helpers": "^6.1.1", "@toruslabs/openlogin": "^8.1.0", "@toruslabs/openlogin-jrpc": "^8.1.1", @@ -81,14 +81,14 @@ }, "../../packages/modal": { "name": "@web3auth/modal", - "version": "8.3.0", + "version": "8.4.0", "license": "ISC", "dependencies": { - "@web3auth/base": "^8.3.0", - "@web3auth/base-provider": "^8.3.0", - "@web3auth/no-modal": "^8.3.0", - "@web3auth/openlogin-adapter": "^8.3.0", - "@web3auth/ui": "^8.3.0", + "@web3auth/base": "^8.4.0", + "@web3auth/base-provider": "^8.4.0", + "@web3auth/no-modal": "^8.4.0", + "@web3auth/openlogin-adapter": "^8.4.0", + "@web3auth/ui": "^8.4.0", "lodash.clonedeep": "^4.5.0", "lodash.merge": "^4.6.2" }, @@ -96,9 +96,9 @@ "@svgr/webpack": "^8.1.0", "@toruslabs/isomorphic-style-loader": "^5.3.3", "@toruslabs/openlogin-utils": "^8.1.0", - "@web3auth/wallet-connect-v2-adapter": "^8.3.0", + "@web3auth/wallet-connect-v2-adapter": "^8.4.0", "css-loader": "^7.1.1", - "postcss-prefix-selector": "^1.16.0", + "postcss-prefix-selector": "^1.16.1", "style-loader": "^4.0.0", "url-loader": "^4.1.1" }, @@ -121,19 +121,19 @@ }, "../../packages/plugins/wallet-services-plugin": { "name": "@web3auth/wallet-services-plugin", - "version": "8.3.0", + "version": "8.4.0", "license": "ISC", "dependencies": { - "@toruslabs/ethereum-controllers": "^5.5.6", + "@toruslabs/ethereum-controllers": "^5.5.7", "@toruslabs/openlogin-jrpc": "^8.1.1", - "@web3auth/base": "^8.3.0", - "@web3auth/no-modal": "^8.3.0", + "@web3auth/base": "^8.4.0", + "@web3auth/no-modal": "^8.4.0", "@web3auth/ws-embed": "^1.2.0", "loglevel": "^1.9.1" }, "devDependencies": { "@metamask/rpc-errors": "^6.2.1", - "@web3auth/openlogin-adapter": "^8.3.0" + "@web3auth/openlogin-adapter": "^8.4.0" }, "engines": { "node": ">=18.x", @@ -180,7 +180,7 @@ }, "../../packages/providers/ethereum-provider": { "name": "@web3auth/ethereum-provider", - "version": "8.3.0", + "version": "8.4.0", "license": "ISC", "dependencies": { "@ethereumjs/common": "^4.3.0", @@ -192,8 +192,8 @@ "@toruslabs/http-helpers": "^6.1.1", "@toruslabs/openlogin-jrpc": "^8.1.1", "@walletconnect/utils": "^2.12.2", - "@web3auth/base": "^8.3.0", - "@web3auth/base-provider": "^8.3.0", + "@web3auth/base": "^8.4.0", + "@web3auth/base-provider": "^8.4.0", "assert": "^2.1.0", "bignumber.js": "^9.1.2", "bn.js": "^5.2.1", @@ -214,7 +214,7 @@ }, "../../packages/providers/solana-provider": { "name": "@web3auth/solana-provider", - "version": "8.3.0", + "version": "8.4.0", "license": "ISC", "dependencies": { "@metamask/rpc-errors": "^6.2.1", @@ -222,14 +222,14 @@ "@toruslabs/openlogin-ed25519": "^8.1.0", "@toruslabs/openlogin-jrpc": "^8.1.1", "@toruslabs/tweetnacl-js": "^1.0.4", - "@web3auth/base": "^8.3.0", - "@web3auth/base-provider": "^8.3.0", + "@web3auth/base": "^8.4.0", + "@web3auth/base-provider": "^8.4.0", "bn.js": "^5.2.1", "bs58": "^5.0.0", "json-rpc-random-id": "^1.0.1" }, "devDependencies": { - "@solana/web3.js": "^1.91.4", + "@solana/web3.js": "^1.91.7", "@solflare-wallet/sdk": "^1.4.2", "@types/bn.js": "^5.1.5", "@types/bs58": "^4.0.4", @@ -253,8 +253,9 @@ } }, "node_modules/@adraffy/ens-normalize": { - "version": "1.10.0", - "license": "MIT" + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz", + "integrity": "sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==" }, "node_modules/@alloc/quick-lru": { "version": "5.2.0", @@ -2073,8 +2074,9 @@ "license": "MIT" }, "node_modules/@babel/runtime": { - "version": "7.23.2", - "license": "MIT", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.5.tgz", + "integrity": "sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -3285,10 +3287,22 @@ } }, "node_modules/@noble/curves": { - "version": "1.2.0", - "license": "MIT", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.0.tgz", + "integrity": "sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==", "dependencies": { - "@noble/hashes": "1.3.2" + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/curves/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" }, "funding": { "url": "https://paulmillr.com/funding/" @@ -3551,14 +3565,15 @@ } }, "node_modules/@solana/web3.js": { - "version": "1.87.3", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.23.2", - "@noble/curves": "^1.2.0", - "@noble/hashes": "^1.3.1", - "@solana/buffer-layout": "^4.0.0", - "agentkeepalive": "^4.3.0", + "version": "1.91.7", + "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.91.7.tgz", + "integrity": "sha512-HqljZKDwk6Z4TajKRGhGLlRsbGK4S8EY27DA7v1z6yakewiUY3J7ZKDZRxcqz2MYV/ZXRrJ6wnnpiHFkPdv0WA==", + "dependencies": { + "@babel/runtime": "^7.23.4", + "@noble/curves": "^1.4.0", + "@noble/hashes": "^1.3.3", + "@solana/buffer-layout": "^4.0.1", + "agentkeepalive": "^4.5.0", "bigint-buffer": "^1.1.5", "bn.js": "^5.2.1", "borsh": "^0.7.0", @@ -3566,11 +3581,22 @@ "buffer": "6.0.3", "fast-stable-stringify": "^1.0.0", "jayson": "^4.1.0", - "node-fetch": "^2.6.12", + "node-fetch": "^2.7.0", "rpc-websockets": "^7.5.1", "superstruct": "^0.14.2" } }, + "node_modules/@solana/web3.js/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@stablelib/binary": { "version": "1.0.1", "license": "MIT", @@ -3580,7 +3606,8 @@ }, "node_modules/@stablelib/blake2b": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@stablelib/blake2b/-/blake2b-1.0.1.tgz", + "integrity": "sha512-B3KyKoBAjkIFeH7romcF96i+pVFYk7K2SBQ1pZvaxV+epSBXJ+n0C66esUhyz6FF+5FbdQVm77C5fzGFcEZpKA==", "dependencies": { "@stablelib/binary": "^1.0.1", "@stablelib/hash": "^1.0.1", @@ -3597,7 +3624,8 @@ }, "node_modules/@stablelib/ed25519": { "version": "1.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@stablelib/ed25519/-/ed25519-1.0.3.tgz", + "integrity": "sha512-puIMWaX9QlRsbhxfDc5i+mNPMY+0TmQEskunY1rZEBPi1acBCVQAhnsk/1Hk50DGPtVsZtAWQg4NHGlVaO9Hqg==", "dependencies": { "@stablelib/random": "^1.0.2", "@stablelib/sha512": "^1.0.1", @@ -3676,7 +3704,8 @@ }, "node_modules/@stablelib/sha512": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@stablelib/sha512/-/sha512-1.0.1.tgz", + "integrity": "sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw==", "dependencies": { "@stablelib/binary": "^1.0.1", "@stablelib/hash": "^1.0.1", @@ -3924,8 +3953,9 @@ } }, "node_modules/@taquito/core": { - "version": "19.0.0", - "license": "Apache-2.0", + "version": "19.1.0", + "resolved": "https://registry.npmjs.org/@taquito/core/-/core-19.1.0.tgz", + "integrity": "sha512-gW7rQCXnznCsTaVNF04ilS6jgzxfJWRiDm7BDC0U5FrEHxIfiRXj6dDbVtOLvcai2xBmfCghFL79lCsToVYztQ==", "dependencies": { "json-stringify-safe": "^5.0.1" }, @@ -3934,10 +3964,11 @@ } }, "node_modules/@taquito/http-utils": { - "version": "19.0.0", - "license": "Apache-2.0", + "version": "19.2.0", + "resolved": "https://registry.npmjs.org/@taquito/http-utils/-/http-utils-19.2.0.tgz", + "integrity": "sha512-iju4dYCEVpJ7x6HyIDbH58VvpMTkLqmGMgSlmkjQSPblCO6cTRlubepe4QPJ/ZKyVo1+4KUa8CBqZ9CDMRXOIA==", "dependencies": { - "@taquito/core": "^19.0.0", + "@taquito/core": "^19.1.0", "node-fetch": "^2.7.0" }, "engines": { @@ -3945,137 +3976,110 @@ } }, "node_modules/@taquito/local-forging": { - "version": "19.0.0", - "license": "Apache-2.0", + "version": "19.2.0", + "resolved": "https://registry.npmjs.org/@taquito/local-forging/-/local-forging-19.2.0.tgz", + "integrity": "sha512-QqamfNVQOcoVXeWM92EnWo6wkpvXlBrgog8J70vv6PNtdU1geKQMmCIy7sz3qkKwCfPksUTgcROv3CS5fCUyFQ==", "dependencies": { - "@taquito/core": "^19.0.0", - "@taquito/utils": "^19.0.0", + "@taquito/core": "^19.1.0", + "@taquito/utils": "^19.2.0", "bignumber.js": "^9.1.2" }, "engines": { "node": ">=18" } }, - "node_modules/@taquito/local-forging/node_modules/@taquito/utils": { - "version": "19.0.0", - "license": "Apache-2.0", + "node_modules/@taquito/michel-codec": { + "version": "19.2.0", + "resolved": "https://registry.npmjs.org/@taquito/michel-codec/-/michel-codec-19.2.0.tgz", + "integrity": "sha512-vdbeUyQ4iDajYdnWxYYIJ9Q1ucg7Kz3okwMDG/A2TickX9i3jSBhGDkeu37FWPQrYZQG1kpJ25FobtFF1IGsJQ==", "dependencies": { - "@stablelib/blake2b": "^1.0.1", - "@stablelib/ed25519": "^1.0.3", - "@taquito/core": "^19.0.0", - "@types/bs58check": "^2.1.0", - "bignumber.js": "^9.1.2", - "blakejs": "^1.2.1", - "bs58check": "^3.0.1", - "buffer": "^6.0.3", - "elliptic": "^6.5.4", - "typedarray-to-buffer": "^4.0.0" + "@taquito/core": "^19.1.0" }, "engines": { "node": ">=18" } }, - "node_modules/@taquito/local-forging/node_modules/base-x": { - "version": "4.0.0", - "license": "MIT" - }, - "node_modules/@taquito/local-forging/node_modules/bs58": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "base-x": "^4.0.0" - } - }, - "node_modules/@taquito/local-forging/node_modules/bs58check": { - "version": "3.0.1", - "license": "MIT", - "dependencies": { - "@noble/hashes": "^1.2.0", - "bs58": "^5.0.0" - } - }, - "node_modules/@taquito/michel-codec": { - "version": "19.0.0", - "license": "MIT", + "node_modules/@taquito/michelson-encoder": { + "version": "19.2.0", + "resolved": "https://registry.npmjs.org/@taquito/michelson-encoder/-/michelson-encoder-19.2.0.tgz", + "integrity": "sha512-yJZxc5H0WSI3rNQi1/GctfEKEUIGnIp67RJT63FYgxfAbBmhXdR6zsEUfAG8NUQ9BShMWY+uos0yHN3GKMRYFg==", "dependencies": { - "@taquito/core": "^19.0.0" + "@taquito/core": "^19.1.0", + "@taquito/rpc": "^19.2.0", + "@taquito/utils": "^19.2.0", + "bignumber.js": "^9.1.2", + "fast-json-stable-stringify": "^2.1.0" }, "engines": { "node": ">=18" } }, - "node_modules/@taquito/michelson-encoder": { - "version": "19.0.0", - "license": "Apache-2.0", + "node_modules/@taquito/rpc": { + "version": "19.2.0", + "resolved": "https://registry.npmjs.org/@taquito/rpc/-/rpc-19.2.0.tgz", + "integrity": "sha512-FvpsASz4mULSC6EWcTLPWQZhKP1x2szf0NUWx5pCqcxOmw1b1rZHzZ4oxG9MBSVmVrJR6Wq1HB1ZKrE3uIjarQ==", "dependencies": { - "@taquito/core": "^19.0.0", - "@taquito/rpc": "^19.0.0", - "@taquito/utils": "^19.0.0", - "bignumber.js": "^9.1.2", - "fast-json-stable-stringify": "^2.1.0" + "@taquito/core": "^19.1.0", + "@taquito/http-utils": "^19.2.0", + "@taquito/utils": "^19.2.0", + "bignumber.js": "^9.1.2" }, "engines": { "node": ">=18" } }, - "node_modules/@taquito/michelson-encoder/node_modules/@taquito/utils": { - "version": "19.0.0", - "license": "Apache-2.0", + "node_modules/@taquito/signer": { + "version": "19.2.0", + "resolved": "https://registry.npmjs.org/@taquito/signer/-/signer-19.2.0.tgz", + "integrity": "sha512-cbVrkycOwz18ovOrX5X4ROVN+srcBwmojUtQRctpTd6fsnHKNtBt5gxpumH2XDjvrlTOYozGA6z0tQkf+GbfJg==", "dependencies": { "@stablelib/blake2b": "^1.0.1", "@stablelib/ed25519": "^1.0.3", - "@taquito/core": "^19.0.0", - "@types/bs58check": "^2.1.0", - "bignumber.js": "^9.1.2", - "blakejs": "^1.2.1", - "bs58check": "^3.0.1", - "buffer": "^6.0.3", + "@stablelib/hmac": "^1.0.1", + "@stablelib/nacl": "^1.0.4", + "@stablelib/pbkdf2": "^1.0.1", + "@stablelib/sha512": "^1.0.1", + "@taquito/core": "^19.1.0", + "@taquito/taquito": "^19.2.0", + "@taquito/utils": "^19.2.0", + "@types/bn.js": "^5.1.2", + "bip39": "3.1.0", "elliptic": "^6.5.4", + "pbkdf2": "^3.1.2", "typedarray-to-buffer": "^4.0.0" }, "engines": { "node": ">=18" } }, - "node_modules/@taquito/michelson-encoder/node_modules/base-x": { - "version": "4.0.0", - "license": "MIT" - }, - "node_modules/@taquito/michelson-encoder/node_modules/bs58": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "base-x": "^4.0.0" - } - }, - "node_modules/@taquito/michelson-encoder/node_modules/bs58check": { - "version": "3.0.1", - "license": "MIT", - "dependencies": { - "@noble/hashes": "^1.2.0", - "bs58": "^5.0.0" - } - }, - "node_modules/@taquito/rpc": { - "version": "19.0.0", - "license": "Apache-2.0", + "node_modules/@taquito/taquito": { + "version": "19.2.0", + "resolved": "https://registry.npmjs.org/@taquito/taquito/-/taquito-19.2.0.tgz", + "integrity": "sha512-Y6/lSgfkHDh1lQFKTxdakDPI8WZWDWL6GXkwwILXIUGYvG9ZNoFSJzqYK3BAxpuNg/7uupwR8gpAy7qj/bZjmA==", + "hasInstallScript": true, "dependencies": { - "@taquito/core": "^19.0.0", - "@taquito/http-utils": "^19.0.0", - "@taquito/utils": "^19.0.0", - "bignumber.js": "^9.1.2" + "@taquito/core": "^19.1.0", + "@taquito/http-utils": "^19.2.0", + "@taquito/local-forging": "^19.2.0", + "@taquito/michel-codec": "^19.2.0", + "@taquito/michelson-encoder": "^19.2.0", + "@taquito/rpc": "^19.2.0", + "@taquito/utils": "^19.2.0", + "bignumber.js": "^9.1.2", + "rxjs": "^7.8.1" }, "engines": { "node": ">=18" } }, - "node_modules/@taquito/rpc/node_modules/@taquito/utils": { - "version": "19.0.0", - "license": "Apache-2.0", + "node_modules/@taquito/utils": { + "version": "19.2.0", + "resolved": "https://registry.npmjs.org/@taquito/utils/-/utils-19.2.0.tgz", + "integrity": "sha512-7KfcCpkXmdaQs3A3ZuMfBTy8jrbExlil4zXeP5iKvJ2aKuW4/JfWYmVF72GwR68omr2YvD/qSrpu9D7bUB3joQ==", "dependencies": { "@stablelib/blake2b": "^1.0.1", "@stablelib/ed25519": "^1.0.3", - "@taquito/core": "^19.0.0", + "@taquito/core": "^19.1.0", "@types/bs58check": "^2.1.0", "bignumber.js": "^9.1.2", "blakejs": "^1.2.1", @@ -4088,82 +4092,28 @@ "node": ">=18" } }, - "node_modules/@taquito/rpc/node_modules/base-x": { + "node_modules/@taquito/utils/node_modules/base-x": { "version": "4.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", + "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==" }, - "node_modules/@taquito/rpc/node_modules/bs58": { + "node_modules/@taquito/utils/node_modules/bs58": { "version": "5.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", + "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", "dependencies": { "base-x": "^4.0.0" } }, - "node_modules/@taquito/rpc/node_modules/bs58check": { + "node_modules/@taquito/utils/node_modules/bs58check": { "version": "3.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-3.0.1.tgz", + "integrity": "sha512-hjuuJvoWEybo7Hn/0xOrczQKKEKD63WguEjlhLExYs2wUBcebDC1jDNK17eEAD2lYfw82d5ASC1d7K3SWszjaQ==", "dependencies": { "@noble/hashes": "^1.2.0", "bs58": "^5.0.0" } }, - "node_modules/@taquito/signer": { - "version": "14.2.0", - "license": "MIT", - "dependencies": { - "@stablelib/blake2b": "^1.0.1", - "@stablelib/ed25519": "^1.0.3", - "@stablelib/hmac": "^1.0.1", - "@stablelib/nacl": "^1.0.4", - "@stablelib/pbkdf2": "^1.0.1", - "@stablelib/sha512": "^1.0.1", - "@taquito/taquito": "*", - "@taquito/utils": "*", - "@types/bn.js": "^5.1.1", - "bip39": "^3.0.4", - "elliptic": "^6.5.4", - "pbkdf2": "^3.1.2", - "typedarray-to-buffer": "^4.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@taquito/taquito": { - "version": "14.2.0", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "@taquito/http-utils": "*", - "@taquito/local-forging": "*", - "@taquito/michel-codec": "*", - "@taquito/michelson-encoder": "*", - "@taquito/rpc": "*", - "@taquito/utils": "*", - "bignumber.js": "^9.1.0", - "rxjs": "^6.6.3" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@taquito/utils": { - "version": "13.0.1", - "license": "MIT", - "dependencies": { - "@stablelib/blake2b": "^1.0.1", - "@stablelib/ed25519": "^1.0.2", - "@types/bs58check": "^2.1.0", - "blakejs": "^1.2.1", - "bs58check": "^2.1.2", - "buffer": "^6.0.3", - "elliptic": "^6.5.4", - "typedarray-to-buffer": "^4.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@tezos-core-tools/crypto-utils": { "version": "0.0.7", "license": "MIT", @@ -4255,7 +4205,8 @@ }, "node_modules/@types/bs58check": { "version": "2.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@types/bs58check/-/bs58check-2.1.2.tgz", + "integrity": "sha512-xpXaQlOIY1KoXlA/ytHGHpEIU87PJt+g9SH7nC6HdCgaBwT2IEZIwBMHbjuX6BpnfbiUMlmwqurdLDwXpcdmSA==", "dependencies": { "@types/node": "*" } @@ -5006,7 +4957,8 @@ }, "node_modules/abitype": { "version": "0.7.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-0.7.1.tgz", + "integrity": "sha512-VBkRHTDZf9Myaek/dO3yMmOzB/y2s3Zo6nVU7yaw1G+TvCHAjwaJzNGN9yo4K5D8bU/VZXKP1EJpRhFr862PlQ==", "peerDependencies": { "typescript": ">=4.9.4", "zod": "^3 >=3.19.1" @@ -5851,7 +5803,8 @@ }, "node_modules/bignumber.js": { "version": "9.1.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", "engines": { "node": "*" } @@ -5993,7 +5946,8 @@ }, "node_modules/brorand": { "version": "1.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" }, "node_modules/browser-process-hrtime": { "version": "1.0.0", @@ -7420,8 +7374,9 @@ "license": "ISC" }, "node_modules/elliptic": { - "version": "6.5.4", - "license": "MIT", + "version": "6.5.5", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.5.tgz", + "integrity": "sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw==", "dependencies": { "bn.js": "^4.11.9", "brorand": "^1.1.0", @@ -7434,7 +7389,8 @@ }, "node_modules/elliptic/node_modules/bn.js": { "version": "4.12.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" }, "node_modules/emittery": { "version": "0.8.1", @@ -9334,7 +9290,8 @@ }, "node_modules/hash.js": { "version": "1.1.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", "dependencies": { "inherits": "^2.0.3", "minimalistic-assert": "^1.0.1" @@ -9350,7 +9307,8 @@ }, "node_modules/hmac-drbg": { "version": "1.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", "dependencies": { "hash.js": "^1.0.3", "minimalistic-assert": "^1.0.0", @@ -13002,7 +12960,8 @@ }, "node_modules/minimalistic-crypto-utils": { "version": "1.0.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" }, "node_modules/minimatch": { "version": "3.1.2", @@ -15960,19 +15919,13 @@ } }, "node_modules/rxjs": { - "version": "6.6.7", - "license": "Apache-2.0", + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", "dependencies": { - "tslib": "^1.9.0" - }, - "engines": { - "npm": ">=2.0.0" + "tslib": "^2.1.0" } }, - "node_modules/rxjs/node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, "node_modules/safe-array-concat": { "version": "1.0.1", "dev": true, @@ -17280,7 +17233,6 @@ }, "node_modules/tslib": { "version": "2.6.2", - "dev": true, "license": "0BSD" }, "node_modules/tsutils": { @@ -17418,6 +17370,8 @@ }, "node_modules/typedarray-to-buffer": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-4.0.0.tgz", + "integrity": "sha512-6dOYeZfS3O9RtRD1caom0sMxgK59b27+IwoNy8RDPsmslSGOyU+mpTamlaIW7aNKi90ZQZ9DFaZL3YRoiSCULQ==", "funding": [ { "type": "github", @@ -17431,8 +17385,7 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/typescript": { "version": "5.2.2", @@ -17720,25 +17673,26 @@ } }, "node_modules/web3": { - "version": "4.2.1", - "license": "LGPL-3.0", - "dependencies": { - "web3-core": "^4.3.0", - "web3-errors": "^1.1.3", - "web3-eth": "^4.3.1", - "web3-eth-abi": "^4.1.4", - "web3-eth-accounts": "^4.1.0", - "web3-eth-contract": "^4.1.2", - "web3-eth-ens": "^4.0.8", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/web3/-/web3-4.8.0.tgz", + "integrity": "sha512-kQSF2NlHk8yjS3SRiJW3S+U5ibkEmVRhB4/GYsVwGvdAkFC2b+EIE1Ob7J56OmqW9VBZgkx1+SuWqo5JTIJSYQ==", + "dependencies": { + "web3-core": "^4.3.2", + "web3-errors": "^1.1.4", + "web3-eth": "^4.6.0", + "web3-eth-abi": "^4.2.1", + "web3-eth-accounts": "^4.1.2", + "web3-eth-contract": "^4.4.0", + "web3-eth-ens": "^4.2.0", "web3-eth-iban": "^4.0.7", "web3-eth-personal": "^4.0.8", "web3-net": "^4.0.7", "web3-providers-http": "^4.1.0", "web3-providers-ws": "^4.0.7", - "web3-rpc-methods": "^1.1.3", - "web3-types": "^1.3.0", - "web3-utils": "^4.0.7", - "web3-validator": "^2.0.3" + "web3-rpc-methods": "^1.2.0", + "web3-types": "^1.6.0", + "web3-utils": "^4.2.3", + "web3-validator": "^2.0.5" }, "engines": { "node": ">=14.0.0", @@ -17746,15 +17700,17 @@ } }, "node_modules/web3-core": { - "version": "4.3.0", - "license": "LGPL-3.0", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/web3-core/-/web3-core-4.3.2.tgz", + "integrity": "sha512-uIMVd/j4BgOnwfpY8ZT+QKubOyM4xohEhFZXz9xB8wimXWMMlYVlIK/TbfHqFolS9uOerdSGhsMbcK9lETae8g==", "dependencies": { - "web3-errors": "^1.1.3", + "web3-errors": "^1.1.4", + "web3-eth-accounts": "^4.1.0", "web3-eth-iban": "^4.0.7", "web3-providers-http": "^4.1.0", "web3-providers-ws": "^4.0.7", - "web3-types": "^1.3.0", - "web3-utils": "^4.0.7", + "web3-types": "^1.3.1", + "web3-utils": "^4.1.0", "web3-validator": "^2.0.3" }, "engines": { @@ -17766,10 +17722,11 @@ } }, "node_modules/web3-errors": { - "version": "1.1.3", - "license": "LGPL-3.0", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/web3-errors/-/web3-errors-1.1.4.tgz", + "integrity": "sha512-WahtszSqILez+83AxGecVroyZsMuuRT+KmQp4Si5P4Rnqbczno1k748PCrZTS1J4UCPmXMG2/Vt+0Bz2zwXkwQ==", "dependencies": { - "web3-types": "^1.3.0" + "web3-types": "^1.3.1" }, "engines": { "node": ">=14", @@ -17777,20 +17734,21 @@ } }, "node_modules/web3-eth": { - "version": "4.3.1", - "license": "LGPL-3.0", + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/web3-eth/-/web3-eth-4.6.0.tgz", + "integrity": "sha512-8KtxlGsomovoFULqEpfixgmCpaJ2YIJGxbXUfezh2coXHjVgEopQhARYtKGClyV5kkdCIqwHS8Gvsm6TVNqH6Q==", "dependencies": { "setimmediate": "^1.0.5", - "web3-core": "^4.3.0", - "web3-errors": "^1.1.3", - "web3-eth-abi": "^4.1.4", - "web3-eth-accounts": "^4.1.0", + "web3-core": "^4.3.2", + "web3-errors": "^1.1.4", + "web3-eth-abi": "^4.2.1", + "web3-eth-accounts": "^4.1.2", "web3-net": "^4.0.7", "web3-providers-ws": "^4.0.7", - "web3-rpc-methods": "^1.1.3", - "web3-types": "^1.3.0", - "web3-utils": "^4.0.7", - "web3-validator": "^2.0.3" + "web3-rpc-methods": "^1.2.0", + "web3-types": "^1.6.0", + "web3-utils": "^4.2.3", + "web3-validator": "^2.0.5" }, "engines": { "node": ">=14", @@ -17798,14 +17756,15 @@ } }, "node_modules/web3-eth-abi": { - "version": "4.1.4", - "license": "LGPL-3.0", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/web3-eth-abi/-/web3-eth-abi-4.2.1.tgz", + "integrity": "sha512-IE91WUhhiDpBtbkl/DHUoZz7z7T5FXvl3zPLkrxT+dNlOT+wni+US/67jQCLvJRbqf9ApQ26lVYry0bovFgyqA==", "dependencies": { "abitype": "0.7.1", - "web3-errors": "^1.1.3", - "web3-types": "^1.3.0", - "web3-utils": "^4.0.7", - "web3-validator": "^2.0.3" + "web3-errors": "^1.1.4", + "web3-types": "^1.6.0", + "web3-utils": "^4.2.3", + "web3-validator": "^2.0.5" }, "engines": { "node": ">=14", @@ -17813,16 +17772,17 @@ } }, "node_modules/web3-eth-accounts": { - "version": "4.1.0", - "license": "LGPL-3.0", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/web3-eth-accounts/-/web3-eth-accounts-4.1.2.tgz", + "integrity": "sha512-y0JynDeTDnclyuE9mShXLeEj+BCrPHxPHOyPCgTchUBQsALF9+0OhP7WiS3IqUuu0Hle5bjG2f5ddeiPtNEuLg==", "dependencies": { "@ethereumjs/rlp": "^4.0.1", "crc-32": "^1.2.2", "ethereum-cryptography": "^2.0.0", - "web3-errors": "^1.1.3", - "web3-types": "^1.3.0", - "web3-utils": "^4.0.7", - "web3-validator": "^2.0.3" + "web3-errors": "^1.1.4", + "web3-types": "^1.6.0", + "web3-utils": "^4.2.3", + "web3-validator": "^2.0.5" }, "engines": { "node": ">=14", @@ -17830,16 +17790,17 @@ } }, "node_modules/web3-eth-contract": { - "version": "4.1.2", - "license": "LGPL-3.0", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/web3-eth-contract/-/web3-eth-contract-4.4.0.tgz", + "integrity": "sha512-pZ/w6Lb6ZDUUs7f5GCKXiHDAGGvt2tdwiHkvgmQTRnq9b0MEsUpteDyPYspHxKzQWLgbeK37jPb8zbQe4kE/Hg==", "dependencies": { - "web3-core": "^4.3.0", - "web3-errors": "^1.1.3", - "web3-eth": "^4.3.1", - "web3-eth-abi": "^4.1.4", - "web3-types": "^1.3.0", - "web3-utils": "^4.0.7", - "web3-validator": "^2.0.3" + "web3-core": "^4.3.2", + "web3-errors": "^1.1.4", + "web3-eth": "^4.6.0", + "web3-eth-abi": "^4.2.1", + "web3-types": "^1.6.0", + "web3-utils": "^4.2.3", + "web3-validator": "^2.0.5" }, "engines": { "node": ">=14", @@ -17847,18 +17808,19 @@ } }, "node_modules/web3-eth-ens": { - "version": "4.0.8", - "license": "LGPL-3.0", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/web3-eth-ens/-/web3-eth-ens-4.2.0.tgz", + "integrity": "sha512-qYj34te2UctoObt8rlEIY/t2MuTMiMiiHhO2JAHRGqSLCQ7b8DM3RpvkiiSB0N0ZyEn+CetZqJCTYb8DNKBS/g==", "dependencies": { "@adraffy/ens-normalize": "^1.8.8", - "web3-core": "^4.3.0", - "web3-errors": "^1.1.3", - "web3-eth": "^4.3.1", - "web3-eth-contract": "^4.1.2", + "web3-core": "^4.3.2", + "web3-errors": "^1.1.4", + "web3-eth": "^4.5.0", + "web3-eth-contract": "^4.3.0", "web3-net": "^4.0.7", - "web3-types": "^1.3.0", - "web3-utils": "^4.0.7", - "web3-validator": "^2.0.3" + "web3-types": "^1.5.0", + "web3-utils": "^4.2.2", + "web3-validator": "^2.0.5" }, "engines": { "node": ">=14", @@ -17987,12 +17949,13 @@ } }, "node_modules/web3-rpc-methods": { - "version": "1.1.3", - "license": "LGPL-3.0", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/web3-rpc-methods/-/web3-rpc-methods-1.2.0.tgz", + "integrity": "sha512-CWJ/g4I4WyYvLkf21wCZAehdhU/VjX/OAPHnqF5/FPDJlogOsOnGXHqi1Z5AP+ocdt395PNubd8jyMMJoYGSBA==", "dependencies": { - "web3-core": "^4.3.0", - "web3-types": "^1.3.0", - "web3-validator": "^2.0.3" + "web3-core": "^4.3.2", + "web3-types": "^1.5.0", + "web3-validator": "^2.0.4" }, "engines": { "node": ">=14", @@ -18000,35 +17963,44 @@ } }, "node_modules/web3-types": { - "version": "1.3.0", - "license": "LGPL-3.0", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/web3-types/-/web3-types-1.6.0.tgz", + "integrity": "sha512-qgOtADqlD5hw+KPKBUGaXAcdNLL0oh6qTeVgXwewCfbL/lG9R+/GrgMQB1gbTJ3cit8hMwtH8KX2Em6OwO0HRw==", "engines": { "node": ">=14", "npm": ">=6.12.0" } }, "node_modules/web3-utils": { - "version": "4.0.7", - "license": "LGPL-3.0", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-4.2.3.tgz", + "integrity": "sha512-m5plKTC2YtQntHITQRyIePw52UVP1IrShhmA2FACtn4zmc5ADmrXOlQWiPzxFP/18eRJsAaUAw2+CQn1u4WPxQ==", "dependencies": { "ethereum-cryptography": "^2.0.0", - "web3-errors": "^1.1.3", - "web3-types": "^1.3.0", - "web3-validator": "^2.0.3" + "eventemitter3": "^5.0.1", + "web3-errors": "^1.1.4", + "web3-types": "^1.6.0", + "web3-validator": "^2.0.5" }, "engines": { "node": ">=14", "npm": ">=6.12.0" } }, + "node_modules/web3-utils/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + }, "node_modules/web3-validator": { - "version": "2.0.3", - "license": "LGPL-3.0", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/web3-validator/-/web3-validator-2.0.5.tgz", + "integrity": "sha512-2gLOSW8XqEN5pw5jVUm20EB7A8SbQiekpAtiI0JBmCIV0a2rp97v8FgWY5E3UEqnw5WFfEqvcDVW92EyynDTyQ==", "dependencies": { "ethereum-cryptography": "^2.0.0", "util": "^0.12.5", - "web3-errors": "^1.1.3", - "web3-types": "^1.3.0", + "web3-errors": "^1.1.4", + "web3-types": "^1.5.0", "zod": "^3.21.4" }, "engines": { diff --git a/demo/react-app/package.json b/demo/react-app/package.json index 104cc13cc..1b5320ace 100644 --- a/demo/react-app/package.json +++ b/demo/react-app/package.json @@ -3,10 +3,10 @@ "version": "0.1.0", "private": true, "dependencies": { - "@solana/web3.js": "^1.87.3", - "@taquito/signer": "^14.0.0", - "@taquito/taquito": "^14.2.0", - "@taquito/utils": "^13.0.1", + "@solana/web3.js": "^1.91.7", + "@taquito/signer": "^19.2.0", + "@taquito/taquito": "^19.2.0", + "@taquito/utils": "^19.2.0", "@tezos-core-tools/crypto-utils": "^0.0.7", "@web3auth/base": "file:../../packages/base", "@web3auth/openlogin-adapter": "file:../../packages/adapters/openlogin-adapter", @@ -16,7 +16,7 @@ "@web3auth/wallet-services-plugin": "file:../../packages/plugins/wallet-services-plugin", "react": "^18.2.0", "react-dom": "^18.2.0", - "web3": "^4.2.1" + "web3": "^4.8.0" }, "scripts": { "start": "react-app-rewired start", From 37eea79b3f7e560e45851260a8985f2eced36e37 Mon Sep 17 00:00:00 2001 From: Tomas Rawski Date: Tue, 30 Apr 2024 17:13:18 -0300 Subject: [PATCH 2/6] fix wallet error when not loaded --- demo/react-app/src/services/web3auth.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demo/react-app/src/services/web3auth.tsx b/demo/react-app/src/services/web3auth.tsx index d258711f8..01c00deed 100644 --- a/demo/react-app/src/services/web3auth.tsx +++ b/demo/react-app/src/services/web3auth.tsx @@ -399,6 +399,11 @@ export const Web3AuthProvider: FunctionComponent = ({ children, uiConsole("walletServicesPlugin not initialized yet"); return; } + if (web3Auth !=null && web3Auth.status !== "connected") { + console.log("web3Auth not initialized yet"); + uiConsole("web3Auth not initialized yet"); + return; + } await walletServicesPlugin.showWalletConnectScanner(); }; From 050ec1f2c4c326cc11a3ab07ef145fe253ffe658 Mon Sep 17 00:00:00 2001 From: Tomas Rawski Date: Tue, 30 Apr 2024 17:14:26 -0300 Subject: [PATCH 3/6] mumbai -> amoy and fix solana and delete goerli --- demo/react-app/src/config/chainConfig.ts | 28 ++++++++---------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/demo/react-app/src/config/chainConfig.ts b/demo/react-app/src/config/chainConfig.ts index 0c284aa77..44f567fff 100644 --- a/demo/react-app/src/config/chainConfig.ts +++ b/demo/react-app/src/config/chainConfig.ts @@ -12,10 +12,10 @@ export const CHAIN_CONFIG = { chainNamespace: CHAIN_NAMESPACES.EIP155, } as CustomChainConfig, solana: { - rpcTarget: "https://api.mainnet-beta.solana.com", - blockExplorerUrl: "https://explorer.solana.com/", - chainId: "0x1", - displayName: "Solana", + rpcTarget: "https://rpc.ankr.com/solana_devnet", + blockExplorerUrl: "https://explorer.solana.com/?cluster=devnet", + chainId: "0x3", + displayName: "Solana Devnet", ticker: "SOL", tickerName: "Solana", logo: "https://images.toruswallet.io/sol.svg", @@ -31,26 +31,16 @@ export const CHAIN_CONFIG = { logo: "https://images.toruswallet.io/matic.svg", chainNamespace: CHAIN_NAMESPACES.EIP155, } as CustomChainConfig, - "polygon-mumbai": { - rpcTarget: "https://rpc.ankr.com/polygon_mumbai", - blockExplorerUrl: "https://mumbai.polygonscan.com/", - chainId: "0x13881", - displayName: "Polygon Mumbai", + "polygon-amoy": { + rpcTarget: "https://rpc.ankr.com/polygon_amoy", + blockExplorerUrl: "https://amoy.polygonscan.com/", + chainId: "0x13882", + displayName: "Polygon Amoy Testnet", ticker: "matic", tickerName: "Matic", logo: "https://images.toruswallet.io/matic.svg", chainNamespace: CHAIN_NAMESPACES.EIP155, } as CustomChainConfig, - goerli: { - rpcTarget: "https://rpc.ankr.com/eth_goerli", - blockExplorerUrl: "https://goerli.etherscan.io/", - chainId: "0x5", - displayName: "Goerli Testnet", - ticker: "eth", - tickerName: "Eth", - logo: "https://images.toruswallet.io/eth.svg", - chainNamespace: CHAIN_NAMESPACES.EIP155, - } as CustomChainConfig, sepolia: { chainId: "0xaa36a7", rpcTarget: "https://rpc.ankr.com/eth_sepolia", From f4b485194b239f3d277f761a0ac113e100b48f7b Mon Sep 17 00:00:00 2001 From: Tomas Rawski Date: Tue, 30 Apr 2024 17:20:37 -0300 Subject: [PATCH 4/6] Add storage smart contract ABI and update ethProvider to interact with it --- demo/react-app/src/config/abi.ts | 29 ++++++++++ demo/react-app/src/services/ethProvider.ts | 62 ++++++++++++++++++---- 2 files changed, 80 insertions(+), 11 deletions(-) diff --git a/demo/react-app/src/config/abi.ts b/demo/react-app/src/config/abi.ts index a7b14273a..50fe475ea 100644 --- a/demo/react-app/src/config/abi.ts +++ b/demo/react-app/src/config/abi.ts @@ -232,3 +232,32 @@ export const randomContractAbi = [ type: "function", }, ] as const; + +export const storageSCAbi = [ + { + "inputs": [ + { + "internalType": "uint256", + "name": "num", + "type": "uint256" + } + ], + "name": "store", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "retrieve", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + } +] as const; \ No newline at end of file diff --git a/demo/react-app/src/services/ethProvider.ts b/demo/react-app/src/services/ethProvider.ts index f5930df0a..dbeab1e70 100644 --- a/demo/react-app/src/services/ethProvider.ts +++ b/demo/react-app/src/services/ethProvider.ts @@ -1,10 +1,41 @@ import { IProvider } from "@web3auth/base"; import Web3 from "web3"; import { IWalletProvider } from "./walletProvider"; -import { erc20Abi, randomContractAbi } from "../config/abi"; -const tokenAddress = "0x655F2166b0709cd575202630952D71E2bB0d61Af"; +import { erc20Abi, storageSCAbi } from "../config/abi"; const ethProvider = (provider: IProvider, uiConsole: (...args: unknown[]) => void): IWalletProvider => { + + const getTokenAddress = () => { + switch (provider.chainId) { + case "0x1": + case "0x89": + return "0x655F2166b0709cd575202630952D71E2bB0d61Af"; + case "0x13882": // amoy + return "0x0Fd9e8d3aF1aaee056EB9e802c3A762a667b1904" + case "0xaa36a7": // sepolia + return "0x779877A7B0D9E8603169DdbD7836e478b4624789"; + case "0x66eee": // arbitrum + return "0x3a12ea1bEa9b04f5541affBe1F6Dd83a72a9bbd7"; + default: + return ""; + } + } + + const getStorageAddress = () => { + // simple default storage smart contract from remix.ethereum.org + switch (provider.chainId) { + case "0x1": + case "0x89": + return ""; + case "0x13882": // amoy + case "0xaa36a7": // sepolia + case "0x66eee": // arbitrum + return "0xAD2709105e2b755b29DA45859d4E42A69cfADa12"; + default: + return ""; + } + } + const getAccounts = async () => { try { const web3 = new Web3(provider); @@ -32,9 +63,13 @@ const ethProvider = (provider: IProvider, uiConsole: (...args: unknown[]) => voi try { const web3 = new Web3(provider); const accounts = await web3.eth.getAccounts(); - const contract = new web3.eth.Contract(erc20Abi, tokenAddress); - const balance = await contract.methods.balanceOf(accounts[0]).call(); - uiConsole("Token balance", balance); + const tokenAddress = getTokenAddress(); + if (tokenAddress !== "") { + const contract = new web3.eth.Contract(JSON.parse(JSON.stringify(erc20Abi)), tokenAddress); + const balance = await contract.methods.balanceOf(accounts[0]).call(); + uiConsole("Token balance", balance); + } else uiConsole("No Token Address for this blockchain"); + } catch (error) { console.error("Error", error); uiConsole("error", error); @@ -79,9 +114,9 @@ const ethProvider = (provider: IProvider, uiConsole: (...args: unknown[]) => voi try { const web3 = new Web3(provider as any); const accounts = await web3.eth.getAccounts(); - const contract = new web3.eth.Contract(erc20Abi, tokenAddress); + const contract = new web3.eth.Contract(erc20Abi, getTokenAddress()); const txRes = await contract.methods - .transfer("0x3E2a1F4f6b6b5d281Ee9a9B36Bb33F7FBf0614C3", web3.utils.toWei("0.01", "ether")) + .transfer("0x3E2a1F4f6b6b5d281Ee9a9B36Bb33F7FBf0614C3", web3.utils.toWei("0.002", "ether")) .send({ from: accounts[0] }); uiConsole("txRes", txRes); } catch (error) { @@ -93,10 +128,15 @@ const ethProvider = (provider: IProvider, uiConsole: (...args: unknown[]) => voi const randomContractInteraction = async () => { try { const web3 = new Web3(provider as any); - const accounts = await web3.eth.getAccounts(); - const contract = new web3.eth.Contract(randomContractAbi, "0x04cA407965D60C2B39d892a1DFB1d1d9C30d0334", { dataInputFill: "data" }); - const txRes = await contract.methods.update(`Hello world ${Math.random().toString(36).substring(1, 5)}`).send({ from: accounts[0] }); - uiConsole("txRes", txRes); + // get address for the storage smart contract for actual chain + let storageAddress = getStorageAddress(); + + if (storageAddress !== "") { + const contract = new web3.eth.Contract(storageSCAbi, storageAddress); + const txRes = await contract.methods.store(Math.floor(Math.random() * 10)); + uiConsole("txRes", txRes); + } else uiConsole("No Smart Contract for this blockchain."); + } catch (error) { console.log("error", error); uiConsole("error", error); From 3ca707a15d6ebd7d6c3936959dcca0f4d1c02dc3 Mon Sep 17 00:00:00 2001 From: Tomas Rawski Date: Tue, 30 Apr 2024 17:38:12 -0300 Subject: [PATCH 5/6] Add logo for Arbitrum chain --- demo/react-app/src/config/chainConfig.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/demo/react-app/src/config/chainConfig.ts b/demo/react-app/src/config/chainConfig.ts index 44f567fff..c80aabfc0 100644 --- a/demo/react-app/src/config/chainConfig.ts +++ b/demo/react-app/src/config/chainConfig.ts @@ -59,6 +59,7 @@ export const CHAIN_CONFIG = { ticker: "eth", tickerName: "Eth", chainNamespace: CHAIN_NAMESPACES.EIP155, + logo: "https://images.toruswallet.io/arbitrum.svg", } as CustomChainConfig, } as const; From 1931be8992eaf86f8a87ef0fd448cc7d88e8d154 Mon Sep 17 00:00:00 2001 From: Mohammad Shahbaz Alam Date: Tue, 14 May 2024 14:25:09 +0530 Subject: [PATCH 6/6] nit for testing in prod mode --- demo/react-app/package-lock.json | 174 ++++++----------------- demo/react-app/src/services/web3auth.tsx | 4 +- 2 files changed, 48 insertions(+), 130 deletions(-) diff --git a/demo/react-app/package-lock.json b/demo/react-app/package-lock.json index d8f8472f1..b5c9dd062 100644 --- a/demo/react-app/package-lock.json +++ b/demo/react-app/package-lock.json @@ -116,9 +116,6 @@ } } }, - "../../packages/plugins/base-plugin": { - "extraneous": true - }, "../../packages/plugins/wallet-services-plugin": { "name": "@web3auth/wallet-services-plugin", "version": "8.4.0", @@ -144,40 +141,6 @@ "@web3auth/openlogin-adapter": "^8.x" } }, - "../../packages/plugins/wallet-services-plugin/node_modules/@toruslabs/openlogin-jrpc": { - "version": "7.0.0", - "license": "ISC", - "dependencies": { - "@metamask/rpc-errors": "^6.1.0", - "end-of-stream": "^1.4.4", - "events": "^3.3.0", - "fast-safe-stringify": "^2.1.1", - "once": "^1.4.0", - "pump": "^3.0.0", - "readable-stream": "^4.5.2" - }, - "engines": { - "node": ">=18.x", - "npm": ">=9.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "../../packages/plugins/wallet-services-plugin/node_modules/readable-stream": { - "version": "4.5.2", - "license": "MIT", - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, "../../packages/providers/ethereum-provider": { "name": "@web3auth/ethereum-provider", "version": "8.4.0", @@ -254,8 +217,7 @@ }, "node_modules/@adraffy/ens-normalize": { "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz", - "integrity": "sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==" + "license": "MIT" }, "node_modules/@alloc/quick-lru": { "version": "5.2.0", @@ -2075,8 +2037,7 @@ }, "node_modules/@babel/runtime": { "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.5.tgz", - "integrity": "sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==", + "license": "MIT", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -3288,8 +3249,7 @@ }, "node_modules/@noble/curves": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.0.tgz", - "integrity": "sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==", + "license": "MIT", "dependencies": { "@noble/hashes": "1.4.0" }, @@ -3299,8 +3259,7 @@ }, "node_modules/@noble/curves/node_modules/@noble/hashes": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "license": "MIT", "engines": { "node": ">= 16" }, @@ -3566,8 +3525,7 @@ }, "node_modules/@solana/web3.js": { "version": "1.91.7", - "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.91.7.tgz", - "integrity": "sha512-HqljZKDwk6Z4TajKRGhGLlRsbGK4S8EY27DA7v1z6yakewiUY3J7ZKDZRxcqz2MYV/ZXRrJ6wnnpiHFkPdv0WA==", + "license": "MIT", "dependencies": { "@babel/runtime": "^7.23.4", "@noble/curves": "^1.4.0", @@ -3588,8 +3546,7 @@ }, "node_modules/@solana/web3.js/node_modules/@noble/hashes": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "license": "MIT", "engines": { "node": ">= 16" }, @@ -3606,8 +3563,7 @@ }, "node_modules/@stablelib/blake2b": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/blake2b/-/blake2b-1.0.1.tgz", - "integrity": "sha512-B3KyKoBAjkIFeH7romcF96i+pVFYk7K2SBQ1pZvaxV+epSBXJ+n0C66esUhyz6FF+5FbdQVm77C5fzGFcEZpKA==", + "license": "MIT", "dependencies": { "@stablelib/binary": "^1.0.1", "@stablelib/hash": "^1.0.1", @@ -3624,8 +3580,7 @@ }, "node_modules/@stablelib/ed25519": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stablelib/ed25519/-/ed25519-1.0.3.tgz", - "integrity": "sha512-puIMWaX9QlRsbhxfDc5i+mNPMY+0TmQEskunY1rZEBPi1acBCVQAhnsk/1Hk50DGPtVsZtAWQg4NHGlVaO9Hqg==", + "license": "MIT", "dependencies": { "@stablelib/random": "^1.0.2", "@stablelib/sha512": "^1.0.1", @@ -3704,8 +3659,7 @@ }, "node_modules/@stablelib/sha512": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/sha512/-/sha512-1.0.1.tgz", - "integrity": "sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw==", + "license": "MIT", "dependencies": { "@stablelib/binary": "^1.0.1", "@stablelib/hash": "^1.0.1", @@ -3954,8 +3908,7 @@ }, "node_modules/@taquito/core": { "version": "19.1.0", - "resolved": "https://registry.npmjs.org/@taquito/core/-/core-19.1.0.tgz", - "integrity": "sha512-gW7rQCXnznCsTaVNF04ilS6jgzxfJWRiDm7BDC0U5FrEHxIfiRXj6dDbVtOLvcai2xBmfCghFL79lCsToVYztQ==", + "license": "Apache-2.0", "dependencies": { "json-stringify-safe": "^5.0.1" }, @@ -3965,8 +3918,7 @@ }, "node_modules/@taquito/http-utils": { "version": "19.2.0", - "resolved": "https://registry.npmjs.org/@taquito/http-utils/-/http-utils-19.2.0.tgz", - "integrity": "sha512-iju4dYCEVpJ7x6HyIDbH58VvpMTkLqmGMgSlmkjQSPblCO6cTRlubepe4QPJ/ZKyVo1+4KUa8CBqZ9CDMRXOIA==", + "license": "Apache-2.0", "dependencies": { "@taquito/core": "^19.1.0", "node-fetch": "^2.7.0" @@ -3977,8 +3929,7 @@ }, "node_modules/@taquito/local-forging": { "version": "19.2.0", - "resolved": "https://registry.npmjs.org/@taquito/local-forging/-/local-forging-19.2.0.tgz", - "integrity": "sha512-QqamfNVQOcoVXeWM92EnWo6wkpvXlBrgog8J70vv6PNtdU1geKQMmCIy7sz3qkKwCfPksUTgcROv3CS5fCUyFQ==", + "license": "Apache-2.0", "dependencies": { "@taquito/core": "^19.1.0", "@taquito/utils": "^19.2.0", @@ -3990,8 +3941,7 @@ }, "node_modules/@taquito/michel-codec": { "version": "19.2.0", - "resolved": "https://registry.npmjs.org/@taquito/michel-codec/-/michel-codec-19.2.0.tgz", - "integrity": "sha512-vdbeUyQ4iDajYdnWxYYIJ9Q1ucg7Kz3okwMDG/A2TickX9i3jSBhGDkeu37FWPQrYZQG1kpJ25FobtFF1IGsJQ==", + "license": "MIT", "dependencies": { "@taquito/core": "^19.1.0" }, @@ -4001,8 +3951,7 @@ }, "node_modules/@taquito/michelson-encoder": { "version": "19.2.0", - "resolved": "https://registry.npmjs.org/@taquito/michelson-encoder/-/michelson-encoder-19.2.0.tgz", - "integrity": "sha512-yJZxc5H0WSI3rNQi1/GctfEKEUIGnIp67RJT63FYgxfAbBmhXdR6zsEUfAG8NUQ9BShMWY+uos0yHN3GKMRYFg==", + "license": "Apache-2.0", "dependencies": { "@taquito/core": "^19.1.0", "@taquito/rpc": "^19.2.0", @@ -4016,8 +3965,7 @@ }, "node_modules/@taquito/rpc": { "version": "19.2.0", - "resolved": "https://registry.npmjs.org/@taquito/rpc/-/rpc-19.2.0.tgz", - "integrity": "sha512-FvpsASz4mULSC6EWcTLPWQZhKP1x2szf0NUWx5pCqcxOmw1b1rZHzZ4oxG9MBSVmVrJR6Wq1HB1ZKrE3uIjarQ==", + "license": "Apache-2.0", "dependencies": { "@taquito/core": "^19.1.0", "@taquito/http-utils": "^19.2.0", @@ -4030,8 +3978,7 @@ }, "node_modules/@taquito/signer": { "version": "19.2.0", - "resolved": "https://registry.npmjs.org/@taquito/signer/-/signer-19.2.0.tgz", - "integrity": "sha512-cbVrkycOwz18ovOrX5X4ROVN+srcBwmojUtQRctpTd6fsnHKNtBt5gxpumH2XDjvrlTOYozGA6z0tQkf+GbfJg==", + "license": "Apache-2.0", "dependencies": { "@stablelib/blake2b": "^1.0.1", "@stablelib/ed25519": "^1.0.3", @@ -4054,9 +4001,8 @@ }, "node_modules/@taquito/taquito": { "version": "19.2.0", - "resolved": "https://registry.npmjs.org/@taquito/taquito/-/taquito-19.2.0.tgz", - "integrity": "sha512-Y6/lSgfkHDh1lQFKTxdakDPI8WZWDWL6GXkwwILXIUGYvG9ZNoFSJzqYK3BAxpuNg/7uupwR8gpAy7qj/bZjmA==", "hasInstallScript": true, + "license": "Apache-2.0", "dependencies": { "@taquito/core": "^19.1.0", "@taquito/http-utils": "^19.2.0", @@ -4074,8 +4020,7 @@ }, "node_modules/@taquito/utils": { "version": "19.2.0", - "resolved": "https://registry.npmjs.org/@taquito/utils/-/utils-19.2.0.tgz", - "integrity": "sha512-7KfcCpkXmdaQs3A3ZuMfBTy8jrbExlil4zXeP5iKvJ2aKuW4/JfWYmVF72GwR68omr2YvD/qSrpu9D7bUB3joQ==", + "license": "Apache-2.0", "dependencies": { "@stablelib/blake2b": "^1.0.1", "@stablelib/ed25519": "^1.0.3", @@ -4094,21 +4039,18 @@ }, "node_modules/@taquito/utils/node_modules/base-x": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", - "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==" + "license": "MIT" }, "node_modules/@taquito/utils/node_modules/bs58": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", - "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", + "license": "MIT", "dependencies": { "base-x": "^4.0.0" } }, "node_modules/@taquito/utils/node_modules/bs58check": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-3.0.1.tgz", - "integrity": "sha512-hjuuJvoWEybo7Hn/0xOrczQKKEKD63WguEjlhLExYs2wUBcebDC1jDNK17eEAD2lYfw82d5ASC1d7K3SWszjaQ==", + "license": "MIT", "dependencies": { "@noble/hashes": "^1.2.0", "bs58": "^5.0.0" @@ -4205,8 +4147,7 @@ }, "node_modules/@types/bs58check": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@types/bs58check/-/bs58check-2.1.2.tgz", - "integrity": "sha512-xpXaQlOIY1KoXlA/ytHGHpEIU87PJt+g9SH7nC6HdCgaBwT2IEZIwBMHbjuX6BpnfbiUMlmwqurdLDwXpcdmSA==", + "license": "MIT", "dependencies": { "@types/node": "*" } @@ -4957,8 +4898,7 @@ }, "node_modules/abitype": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/abitype/-/abitype-0.7.1.tgz", - "integrity": "sha512-VBkRHTDZf9Myaek/dO3yMmOzB/y2s3Zo6nVU7yaw1G+TvCHAjwaJzNGN9yo4K5D8bU/VZXKP1EJpRhFr862PlQ==", + "license": "MIT", "peerDependencies": { "typescript": ">=4.9.4", "zod": "^3 >=3.19.1" @@ -5803,8 +5743,7 @@ }, "node_modules/bignumber.js": { "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", + "license": "MIT", "engines": { "node": "*" } @@ -5946,8 +5885,7 @@ }, "node_modules/brorand": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" + "license": "MIT" }, "node_modules/browser-process-hrtime": { "version": "1.0.0", @@ -7375,8 +7313,7 @@ }, "node_modules/elliptic": { "version": "6.5.5", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.5.tgz", - "integrity": "sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw==", + "license": "MIT", "dependencies": { "bn.js": "^4.11.9", "brorand": "^1.1.0", @@ -7389,8 +7326,7 @@ }, "node_modules/elliptic/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==" + "license": "MIT" }, "node_modules/emittery": { "version": "0.8.1", @@ -9290,8 +9226,7 @@ }, "node_modules/hash.js": { "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "minimalistic-assert": "^1.0.1" @@ -9307,8 +9242,7 @@ }, "node_modules/hmac-drbg": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "license": "MIT", "dependencies": { "hash.js": "^1.0.3", "minimalistic-assert": "^1.0.0", @@ -12960,8 +12894,7 @@ }, "node_modules/minimalistic-crypto-utils": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" + "license": "MIT" }, "node_modules/minimatch": { "version": "3.1.2", @@ -15920,8 +15853,7 @@ }, "node_modules/rxjs": { "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "license": "Apache-2.0", "dependencies": { "tslib": "^2.1.0" } @@ -17370,8 +17302,6 @@ }, "node_modules/typedarray-to-buffer": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-4.0.0.tgz", - "integrity": "sha512-6dOYeZfS3O9RtRD1caom0sMxgK59b27+IwoNy8RDPsmslSGOyU+mpTamlaIW7aNKi90ZQZ9DFaZL3YRoiSCULQ==", "funding": [ { "type": "github", @@ -17385,7 +17315,8 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/typescript": { "version": "5.2.2", @@ -17674,8 +17605,7 @@ }, "node_modules/web3": { "version": "4.8.0", - "resolved": "https://registry.npmjs.org/web3/-/web3-4.8.0.tgz", - "integrity": "sha512-kQSF2NlHk8yjS3SRiJW3S+U5ibkEmVRhB4/GYsVwGvdAkFC2b+EIE1Ob7J56OmqW9VBZgkx1+SuWqo5JTIJSYQ==", + "license": "LGPL-3.0", "dependencies": { "web3-core": "^4.3.2", "web3-errors": "^1.1.4", @@ -17701,8 +17631,7 @@ }, "node_modules/web3-core": { "version": "4.3.2", - "resolved": "https://registry.npmjs.org/web3-core/-/web3-core-4.3.2.tgz", - "integrity": "sha512-uIMVd/j4BgOnwfpY8ZT+QKubOyM4xohEhFZXz9xB8wimXWMMlYVlIK/TbfHqFolS9uOerdSGhsMbcK9lETae8g==", + "license": "LGPL-3.0", "dependencies": { "web3-errors": "^1.1.4", "web3-eth-accounts": "^4.1.0", @@ -17723,8 +17652,7 @@ }, "node_modules/web3-errors": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/web3-errors/-/web3-errors-1.1.4.tgz", - "integrity": "sha512-WahtszSqILez+83AxGecVroyZsMuuRT+KmQp4Si5P4Rnqbczno1k748PCrZTS1J4UCPmXMG2/Vt+0Bz2zwXkwQ==", + "license": "LGPL-3.0", "dependencies": { "web3-types": "^1.3.1" }, @@ -17735,8 +17663,7 @@ }, "node_modules/web3-eth": { "version": "4.6.0", - "resolved": "https://registry.npmjs.org/web3-eth/-/web3-eth-4.6.0.tgz", - "integrity": "sha512-8KtxlGsomovoFULqEpfixgmCpaJ2YIJGxbXUfezh2coXHjVgEopQhARYtKGClyV5kkdCIqwHS8Gvsm6TVNqH6Q==", + "license": "LGPL-3.0", "dependencies": { "setimmediate": "^1.0.5", "web3-core": "^4.3.2", @@ -17757,8 +17684,7 @@ }, "node_modules/web3-eth-abi": { "version": "4.2.1", - "resolved": "https://registry.npmjs.org/web3-eth-abi/-/web3-eth-abi-4.2.1.tgz", - "integrity": "sha512-IE91WUhhiDpBtbkl/DHUoZz7z7T5FXvl3zPLkrxT+dNlOT+wni+US/67jQCLvJRbqf9ApQ26lVYry0bovFgyqA==", + "license": "LGPL-3.0", "dependencies": { "abitype": "0.7.1", "web3-errors": "^1.1.4", @@ -17773,8 +17699,7 @@ }, "node_modules/web3-eth-accounts": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/web3-eth-accounts/-/web3-eth-accounts-4.1.2.tgz", - "integrity": "sha512-y0JynDeTDnclyuE9mShXLeEj+BCrPHxPHOyPCgTchUBQsALF9+0OhP7WiS3IqUuu0Hle5bjG2f5ddeiPtNEuLg==", + "license": "LGPL-3.0", "dependencies": { "@ethereumjs/rlp": "^4.0.1", "crc-32": "^1.2.2", @@ -17791,8 +17716,7 @@ }, "node_modules/web3-eth-contract": { "version": "4.4.0", - "resolved": "https://registry.npmjs.org/web3-eth-contract/-/web3-eth-contract-4.4.0.tgz", - "integrity": "sha512-pZ/w6Lb6ZDUUs7f5GCKXiHDAGGvt2tdwiHkvgmQTRnq9b0MEsUpteDyPYspHxKzQWLgbeK37jPb8zbQe4kE/Hg==", + "license": "LGPL-3.0", "dependencies": { "web3-core": "^4.3.2", "web3-errors": "^1.1.4", @@ -17809,8 +17733,7 @@ }, "node_modules/web3-eth-ens": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/web3-eth-ens/-/web3-eth-ens-4.2.0.tgz", - "integrity": "sha512-qYj34te2UctoObt8rlEIY/t2MuTMiMiiHhO2JAHRGqSLCQ7b8DM3RpvkiiSB0N0ZyEn+CetZqJCTYb8DNKBS/g==", + "license": "LGPL-3.0", "dependencies": { "@adraffy/ens-normalize": "^1.8.8", "web3-core": "^4.3.2", @@ -17950,8 +17873,7 @@ }, "node_modules/web3-rpc-methods": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/web3-rpc-methods/-/web3-rpc-methods-1.2.0.tgz", - "integrity": "sha512-CWJ/g4I4WyYvLkf21wCZAehdhU/VjX/OAPHnqF5/FPDJlogOsOnGXHqi1Z5AP+ocdt395PNubd8jyMMJoYGSBA==", + "license": "LGPL-3.0", "dependencies": { "web3-core": "^4.3.2", "web3-types": "^1.5.0", @@ -17964,8 +17886,7 @@ }, "node_modules/web3-types": { "version": "1.6.0", - "resolved": "https://registry.npmjs.org/web3-types/-/web3-types-1.6.0.tgz", - "integrity": "sha512-qgOtADqlD5hw+KPKBUGaXAcdNLL0oh6qTeVgXwewCfbL/lG9R+/GrgMQB1gbTJ3cit8hMwtH8KX2Em6OwO0HRw==", + "license": "LGPL-3.0", "engines": { "node": ">=14", "npm": ">=6.12.0" @@ -17973,8 +17894,7 @@ }, "node_modules/web3-utils": { "version": "4.2.3", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-4.2.3.tgz", - "integrity": "sha512-m5plKTC2YtQntHITQRyIePw52UVP1IrShhmA2FACtn4zmc5ADmrXOlQWiPzxFP/18eRJsAaUAw2+CQn1u4WPxQ==", + "license": "LGPL-3.0", "dependencies": { "ethereum-cryptography": "^2.0.0", "eventemitter3": "^5.0.1", @@ -17989,13 +17909,11 @@ }, "node_modules/web3-utils/node_modules/eventemitter3": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", - "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + "license": "MIT" }, "node_modules/web3-validator": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/web3-validator/-/web3-validator-2.0.5.tgz", - "integrity": "sha512-2gLOSW8XqEN5pw5jVUm20EB7A8SbQiekpAtiI0JBmCIV0a2rp97v8FgWY5E3UEqnw5WFfEqvcDVW92EyynDTyQ==", + "license": "LGPL-3.0", "dependencies": { "ethereum-cryptography": "^2.0.0", "util": "^0.12.5", diff --git a/demo/react-app/src/services/web3auth.tsx b/demo/react-app/src/services/web3auth.tsx index 01c00deed..1a3a35955 100644 --- a/demo/react-app/src/services/web3auth.tsx +++ b/demo/react-app/src/services/web3auth.tsx @@ -168,7 +168,7 @@ export const Web3AuthProvider: FunctionComponent = ({ children, mfaLevel: "optional", }, adapterSettings: { - buildEnv: "testing", + buildEnv: "production", // uxMode: "redirect", // "redirect" | "popup" whiteLabel: { logoLight: "https://web3auth.io/images/web3auth-logo.svg", @@ -399,7 +399,7 @@ export const Web3AuthProvider: FunctionComponent = ({ children, uiConsole("walletServicesPlugin not initialized yet"); return; } - if (web3Auth !=null && web3Auth.status !== "connected") { + if (web3Auth != null && web3Auth.status !== "connected") { console.log("web3Auth not initialized yet"); uiConsole("web3Auth not initialized yet"); return;