diff --git a/.github/workflows/pr-status-checks.yml b/.github/workflows/pr-status-checks.yml new file mode 100644 index 000000000..deafb6fe8 --- /dev/null +++ b/.github/workflows/pr-status-checks.yml @@ -0,0 +1,32 @@ +name: PR Status Checks + +on: + # Allows it to be manually triggered, used primarily for debugging + workflow_dispatch: + pull_request: + branches: + - v2-web3-onboard-develop + +jobs: + checks: + name: "Checks" + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Nodejs and yarn + uses: actions/setup-node@v2 + with: + node-version: "16" + cache: yarn + + - name: Install dependencies + run: yarn + + - name: Check that it builds + run: yarn build + + - name: Check formatting and types + run: yarn check diff --git a/examples/with-ledger/package.json b/examples/with-ledger/package.json index f0870d1f3..f54680019 100644 --- a/examples/with-ledger/package.json +++ b/examples/with-ledger/package.json @@ -11,7 +11,7 @@ "dependencies": { "@web3-onboard/ledger": "^2.1.6", "@web3-onboard/react": "^2.2.4", - "next": "12.2.3", + "next": "12.2.4", "react": "18.2.0", "react-dom": "18.2.0" }, diff --git a/examples/with-ledger/yarn.lock b/examples/with-ledger/yarn.lock index 56e5a8a62..1222fb075 100644 --- a/examples/with-ledger/yarn.lock +++ b/examples/with-ledger/yarn.lock @@ -888,10 +888,10 @@ tweetnacl "^1.0.3" tweetnacl-util "^0.15.1" -"@next/env@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/env/-/env-12.2.3.tgz#64f210e74c137d3d9feea738795b055a7f8aebe2" - integrity sha512-2lWKP5Xcvnor70NaaROZXBvU8z9mFReePCG8NhZw6NyNGnPvC+8s+Cre/63LAB1LKzWw/e9bZJnQUg0gYFRb2Q== +"@next/env@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/env/-/env-12.2.4.tgz#5ba9bed9970be4113773233148b4539691bfc4fe" + integrity sha512-/gApFXWk5CCLFQJL5IYJXxPQuG5tz5nPX4l27A9Zm/+wJxiwFrRSP54AopDxIv4JRp/rGwcgk/lZS/0Clw8jYA== "@next/eslint-plugin-next@12.2.3": version "12.2.3" @@ -900,70 +900,70 @@ dependencies: glob "7.1.7" -"@next/swc-android-arm-eabi@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.2.3.tgz#91388c8ec117d59ee80d2c1d4dc65fdfd267d2d4" - integrity sha512-JxmCW9XB5PYnkGE67BdnBTdqW0SW6oMCiPMHLdjeRi4T3U4JJKJGnjQld99+6TPOfPWigtw3W7Cijp5gc+vJ/w== - -"@next/swc-android-arm64@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.2.3.tgz#9be33553861f6494616b910a23abd5a1b0d7fb4b" - integrity sha512-3l4zXpWnzy0fqoedsFRxzMy/eGlMMqn6IwPEuBmtEQ4h7srmQFHyT+Bk+eVHb0o1RQ7/TloAa+mu8JX5tz/5tA== - -"@next/swc-darwin-arm64@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.2.3.tgz#ce1a5a7320936b2644b765ace3283e5d1676b6a0" - integrity sha512-eutDO/RH6pf7+8zHo3i2GKLhF0qaMtxWpY8k3Oa1k+CyrcJ0IxwkfH/x3f75jTMeCrThn6Uu8j3WeZOxvhto1Q== - -"@next/swc-darwin-x64@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.2.3.tgz#f70ce07016501c6f823035bc67296b8f80201145" - integrity sha512-lve+lnTiddXbcT3Lh2ujOFywQSEycTYQhuf6j6JrPu9oLQGS01kjIqqSj3/KMmSoppEnXo3BxkgYu+g2+ecHkA== - -"@next/swc-freebsd-x64@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.2.3.tgz#ccc6fa4588dadec85458091aa19c17bc3e99a10d" - integrity sha512-V4bZU1qBFkULTPW53phY8ypioh3EERzHu9YKAasm9RxU4dj+8c/4s60y+kbFkFEEpIUgEU6yNuYZRR4lHHbUGA== - -"@next/swc-linux-arm-gnueabihf@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.2.3.tgz#d7a481d3ede14dee85707d0807b4a05cd2300950" - integrity sha512-MWxS/i+XSEKdQE0ZmdYkPPrWKBi4JwMVaXdOW9J/T/sZJsHsLlSC9ErBcNolKAJEVka+tnw9oPRyRCKOj+q0sw== - -"@next/swc-linux-arm64-gnu@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.2.3.tgz#6d105c971cc0957c25563aa98af475291b4cd8aa" - integrity sha512-ikXkqAmvEcWTzIQFDdmrUHLWzdDAF5s2pVsSpQn9rk/gK1i9webH1GRQd2bSM7JLuPBZSaYrNGvDTyHZdSEYlg== - -"@next/swc-linux-arm64-musl@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.2.3.tgz#bebfe490130e3cb8746a03d35a5a9e23ac0e6f9b" - integrity sha512-wE45gGFkeLLLnCoveKaBrdpYkkypl3qwNF2YhnfvfVK7etuu1O679LwClhCWinDVBr+KOkmyHok00Z+0uI1ycg== - -"@next/swc-linux-x64-gnu@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.2.3.tgz#84a3d99f9d656fbc139f3a19f9b1baf73877d18f" - integrity sha512-MbFI6413VSXiREzHwYD8YAJLTknBaC+bmjXgdHEEdloeOuBFQGE3NWn3izOCTy8kV+s98VDQO8au7EKKs+bW0g== - -"@next/swc-linux-x64-musl@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.2.3.tgz#a283431f8c6c830b4bd61147094f150ea7deeb6e" - integrity sha512-jMBD0Va6fInbPih/dNySlNY2RpjkK6MXS+UGVEvuTswl1MZr+iahvurmshwGKpjaRwVU4DSFMD8+gfWxsTFs1Q== - -"@next/swc-win32-arm64-msvc@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.2.3.tgz#bab9ba8736d81db128badb70024268469eaa9b34" - integrity sha512-Cq8ToPdc0jQP2C7pjChYctAsEe7+lO/B826ZCK5xFzobuHPiCyJ2Mzx/nEQwCY4SpYkeJQtCbwlCz5iyGW5zGg== - -"@next/swc-win32-ia32-msvc@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.2.3.tgz#feea6ada1ba3e897f39ded9f2de5006f4e1c928b" - integrity sha512-BtFq4c8IpeB0sDhJMHJFgm86rPkOvmYI8k3De8Y2kgNVWSeLQ0Q929PWf7e+GqcX1015ei/gEB41ZH8Iw49NzA== - -"@next/swc-win32-x64-msvc@12.2.3": - version "12.2.3" - resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.2.3.tgz#403e1575a84c31cbd7f3c0ecd51b61bc25b7f808" - integrity sha512-huSNb98KSG77Kl96CoPgCwom28aamuUsPpRmn/4s9L0RNbbHVSkp9E6HA4yOAykZCEuWcdNsRLbVVuAbt8rtIw== +"@next/swc-android-arm-eabi@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.2.4.tgz#5c7f508f93baec810c96bf60128b7c1f2109bee2" + integrity sha512-P4YSFNpmXXSnn3P1qsOAqz+MX3On9fHrlc8ovb/CFJJoU+YLCR53iCEwfw39e0IZEgDA7ttgr108plF8mxaX0g== + +"@next/swc-android-arm64@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.2.4.tgz#f86411e0513419f027d16b2d4d823a3ca631a634" + integrity sha512-4o2n14E18O+8xHlf6dgJsWPXN9gmSmfIe2Z0EqKDIPBBkFt/2CyrH0+vwHnL2l7xkDHhOGfZYcYIWVUR5aNu0A== + +"@next/swc-darwin-arm64@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.2.4.tgz#23db172f02f5cf0ceca5e0934cfde21f30cc7461" + integrity sha512-DcUO6MGBL9E3jj5o86MUnTOy4WawIJJhyCcFYO4f51sbl7+uPIYIx40eo98A6NwJEXazCqq1hLeqOaNTAIvDiQ== + +"@next/swc-darwin-x64@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.2.4.tgz#820125d2a4d35cd9c807156a403a447360b5923f" + integrity sha512-IUlFMqeLjdIzDorrGC2Dt+2Ae3DbKQbRzCzmDq4/CP1+jJGeDXo/2AHnlE+WYnwQAC4KtAz6pbVnd3KstZWsVA== + +"@next/swc-freebsd-x64@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.2.4.tgz#81ccd262c7ea3f7ed2de136c3402fc28cd103ce8" + integrity sha512-475vwyWcjnyDVDWLgAATP0HI8W1rwByc+uXk1B6KkAVFhkoDgH387LW0uNqxavK+VxCzj3avQXX/58XDvxtSlg== + +"@next/swc-linux-arm-gnueabihf@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.2.4.tgz#5b543e461696adcb60c64b56fc81eaa9e3cfcdd8" + integrity sha512-qZW+L3iG3XSGtlOPmD5RRWXyk6ZNdscLV0BQjuDvP+exTg+uixqHXOHz0/GVATIJEBQOF0Kew7jAXVXEP+iRTQ== + +"@next/swc-linux-arm64-gnu@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.2.4.tgz#f83b824d112494db41df69e2c456950a57deacba" + integrity sha512-fEPRjItWYaKyyG9N+2HIA59OBHIhk7WC+Rh+LwXsh0pQe870Ykpek3KQs0umjsrEGe57NyMomq3f80/N8taDvA== + +"@next/swc-linux-arm64-musl@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.2.4.tgz#a7e575970fcd6166c7b506fd25121927c13349ee" + integrity sha512-rnCTzXII0EBCcFn9P5s/Dho2kPUMSX/bP0iOAj8wEI/IxUEfEElbin89zJoNW30cycHu19xY8YP4K2+hzciPzQ== + +"@next/swc-linux-x64-gnu@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.2.4.tgz#4dd2ad1c72c160430199265e74b6d7037f2be4f5" + integrity sha512-PhXX6NSuIuhHInxPY2VkG2Bl7VllsD3Cjx+pQcS1wTym7Zt7UoLvn05PkRrkiyIkvR+UXnqPUM3TYiSbnemXEw== + +"@next/swc-linux-x64-musl@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.2.4.tgz#15415b1e6b92ca19453c4c6113496685167b05d4" + integrity sha512-GmC/QROiUZpFirHRfPQqMyCXZ+5+ndbBZrMvL74HtQB/CKXB8K1VM+rvy9Gp/5OaU8Rxp48IcX79NOfI2LiXlA== + +"@next/swc-win32-arm64-msvc@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.2.4.tgz#48344aded1702e321bef0fdefc3fb9f763c2ba25" + integrity sha512-9XKoCXbNZuaMRPtcKQz3+hgVpkMosaLlcxHFXT8/j4w61k7/qvEbrkMDS9WHNrD/xVcLycwhPRgXcns2K1BdBQ== + +"@next/swc-win32-ia32-msvc@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.2.4.tgz#e040fbf292205716c2c1d69d51c1c98fa59825ff" + integrity sha512-hEyRieZKH9iw4AzvXaQ+Fyb98k0G/o9QcRGxA1/O/O/elf1+Qvuwb15phT8GbVtIeNziy66XTPOhKKfdr8KyUg== + +"@next/swc-win32-x64-msvc@12.2.4": + version "12.2.4" + resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.2.4.tgz#0134c4cd5df39033347614ce5fc26af485ac9048" + integrity sha512-5Pl1tdMJWLy4rvzU1ecx0nHWgDPqoYuvYoXE/5X0Clu9si/yOuBIj573F2kOTY7mu0LX2wgCJVSnyK0abHBxIw== "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -2584,31 +2584,31 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -next@12.2.3: - version "12.2.3" - resolved "https://registry.yarnpkg.com/next/-/next-12.2.3.tgz#c29d235ce480e589894dfab3120dade25d015a22" - integrity sha512-TA0tmSA6Dk6S6kfvCNbF7CWYW8468gZUxr/3/30z4KvAQbXnl2ASYZElVe7q/hBW/1F1ee0tSBlHa4/sn+ZIBw== +next@12.2.4: + version "12.2.4" + resolved "https://registry.yarnpkg.com/next/-/next-12.2.4.tgz#88f7a7a4cd76063704cda28b3b07c4217b8928b0" + integrity sha512-b1xlxEozmAWokAXzXsi5vlmU/IfJcFNIJA8dpU5UdkFbyDPio8wwb8mAQ/Y7rGtfTgG/t/u49BiyEA+xAgFvow== dependencies: - "@next/env" "12.2.3" + "@next/env" "12.2.4" "@swc/helpers" "0.4.3" caniuse-lite "^1.0.30001332" postcss "8.4.14" styled-jsx "5.0.2" use-sync-external-store "1.2.0" optionalDependencies: - "@next/swc-android-arm-eabi" "12.2.3" - "@next/swc-android-arm64" "12.2.3" - "@next/swc-darwin-arm64" "12.2.3" - "@next/swc-darwin-x64" "12.2.3" - "@next/swc-freebsd-x64" "12.2.3" - "@next/swc-linux-arm-gnueabihf" "12.2.3" - "@next/swc-linux-arm64-gnu" "12.2.3" - "@next/swc-linux-arm64-musl" "12.2.3" - "@next/swc-linux-x64-gnu" "12.2.3" - "@next/swc-linux-x64-musl" "12.2.3" - "@next/swc-win32-arm64-msvc" "12.2.3" - "@next/swc-win32-ia32-msvc" "12.2.3" - "@next/swc-win32-x64-msvc" "12.2.3" + "@next/swc-android-arm-eabi" "12.2.4" + "@next/swc-android-arm64" "12.2.4" + "@next/swc-darwin-arm64" "12.2.4" + "@next/swc-darwin-x64" "12.2.4" + "@next/swc-freebsd-x64" "12.2.4" + "@next/swc-linux-arm-gnueabihf" "12.2.4" + "@next/swc-linux-arm64-gnu" "12.2.4" + "@next/swc-linux-arm64-musl" "12.2.4" + "@next/swc-linux-x64-gnu" "12.2.4" + "@next/swc-linux-x64-musl" "12.2.4" + "@next/swc-win32-arm64-msvc" "12.2.4" + "@next/swc-win32-ia32-msvc" "12.2.4" + "@next/swc-win32-x64-msvc" "12.2.4" node-addon-api@^2.0.0: version "2.0.2" diff --git a/package.json b/package.json index c93ada7c7..6bcd66880 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "web3-onboard-monorepo", - "version": "2.9.0", + "version": "2.10.0", "private": true, - "workspaces": [ - "./packages/*" - ], + "workspaces": { + "packages": ["./packages/*"], + "nohoist": ["**/react", "**/react-dom", "**/csstype"] + }, "description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -51,7 +52,7 @@ "format": "prettier --write 'packages/**/*.ts'", "dev": "yarn wsrun dev", "build": "yarn wsrun --serial build", - "type-check": "yarn wsrun type-check" + "check": "yarn wsrun type-check" }, "devDependencies": { "prettier": "^2.4.1", diff --git a/packages/coinbase/package.json b/packages/coinbase/package.json index 8bcb316a7..09b9256ab 100644 --- a/packages/coinbase/package.json +++ b/packages/coinbase/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/coinbase", - "version": "2.1.1", + "version": "2.1.2", "description": "Coinbase SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -59,6 +59,6 @@ }, "dependencies": { "@coinbase/wallet-sdk": "^3.0.5", - "@web3-onboard/common": "^2.2.1" + "@web3-onboard/common": "^2.2.2" } } diff --git a/packages/common/package.json b/packages/common/package.json index a4a78d98d..c706eedf2 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/common", - "version": "2.2.1", + "version": "2.2.2", "description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", diff --git a/packages/common/src/types.ts b/packages/common/src/types.ts index 10d46bfd3..95889241b 100644 --- a/packages/common/src/types.ts +++ b/packages/common/src/types.ts @@ -372,7 +372,8 @@ export enum ProviderRpcErrorCode { DISCONNECTED = 4900, CHAIN_DISCONNECTED = 4901, CHAIN_NOT_ADDED = 4902, - DOES_NOT_EXIST = -32601 + DOES_NOT_EXIST = -32601, + UNRECOGNIZED_CHAIN_ID = -32603 } export interface Chain { diff --git a/packages/core/.eslintrc.cjs b/packages/core/.eslintrc.cjs index a579a991d..dbbeea2ae 100644 --- a/packages/core/.eslintrc.cjs +++ b/packages/core/.eslintrc.cjs @@ -38,6 +38,7 @@ module.exports = { } ], 'object-curly-spacing': ['error', 'always'], - '@typescript-eslint/no-empty-function': 'off' + '@typescript-eslint/no-empty-function': 'off', + quotes: ['error', 'single', { allowTemplateLiterals: true }] } } diff --git a/packages/core/package.json b/packages/core/package.json index 799d1fb92..9bc043bd7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/core", - "version": "2.8.1", + "version": "2.8.2", "description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -82,7 +82,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "bignumber.js": "^9.0.0", "bnc-sdk": "^4.4.1", "bowser": "^2.11.0", diff --git a/packages/core/src/chain.ts b/packages/core/src/chain.ts index da26b849d..7fbb0d52a 100644 --- a/packages/core/src/chain.ts +++ b/packages/core/src/chain.ts @@ -67,7 +67,10 @@ async function setChain(options: { map(() => false) ) - if (code === ProviderRpcErrorCode.CHAIN_NOT_ADDED) { + if ( + code === ProviderRpcErrorCode.CHAIN_NOT_ADDED || + code === ProviderRpcErrorCode.UNRECOGNIZED_CHAIN_ID + ) { // chain has not been added to wallet try { await addNewChain(wallet.provider, chain) diff --git a/packages/core/src/replacement.ts b/packages/core/src/replacement.ts index 4f4d1a3d1..378e452f5 100644 --- a/packages/core/src/replacement.ts +++ b/packages/core/src/replacement.ts @@ -12,7 +12,8 @@ const WALLETS_SUPPORT_REPLACEMENT: WalletState['label'][] = [ 'Ledger', 'Trezor', 'Keystone', - 'Keepkey' + 'KeepKey', + `D'CENT` ] export const actionableEventCode = (eventCode: string): boolean => diff --git a/packages/dcent/README.md b/packages/dcent/README.md index 3f7fc4fa4..9d996d725 100644 --- a/packages/dcent/README.md +++ b/packages/dcent/README.md @@ -25,3 +25,48 @@ const onboard = Onboard({ const connectedWallets = await onboard.connectWallet() console.log(connectedWallets) ``` + +### Filtering Platforms + +You may decide that on certain platforms you do not want to display this wallet as a selectable option. To do that you can use the `filter` init option which is an array of platforms that you would like this wallet to **not** be displayed to the end user: + +```typescript +import Onboard from '@web3-onboard/core' +import dcentModule from '@web3-onboard/dcent' + +const dcent = dcentModule({ filter: ['Safari'] }) + +const onboard = Onboard({ + // ... other Onboard options + wallets: [ + dcent + //... other wallets + ] +}) + +const connectedWallets = await onboard.connectWallet() +console.log(connectedWallets) +``` + +The following is a list of the platforms that can be filtered: + +```typescript +type Platform = + | 'Windows Phone' + | 'Windows' + | 'macOS' + | 'iOS' + | 'Android' + | 'Linux' + | 'Chrome OS' + | 'Android Browser' + | 'Chrome' + | 'Chromium' + | 'Firefox' + | 'Microsoft Edge' + | 'Opera' + | 'Safari' + | 'desktop' + | 'mobile' + | 'tablet' +``` diff --git a/packages/dcent/package.json b/packages/dcent/package.json index e0ef98fad..4292d42e3 100644 --- a/packages/dcent/package.json +++ b/packages/dcent/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/dcent", - "version": "2.1.1", + "version": "2.2.0", "description": "D'CENT wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -56,7 +56,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "@web3-onboard/hw-common": "^2.0.1", "@ethereumjs/tx": "^3.4.0", "@ethersproject/providers": "^5.5.0", diff --git a/packages/dcent/src/index.ts b/packages/dcent/src/index.ts index be0e4fb43..68dcba486 100644 --- a/packages/dcent/src/index.ts +++ b/packages/dcent/src/index.ts @@ -1,4 +1,10 @@ -import type { Chain, WalletInit, EIP1193Provider } from '@web3-onboard/common' +import type { + Chain, + WalletInit, + EIP1193Provider, + Platform +} from '@web3-onboard/common' + import type { providers } from 'ethers' import type { @@ -51,15 +57,24 @@ const generateAccounts = async ( } function dcent({ - customNetwork + customNetwork, + filter }: { customNetwork?: CustomNetwork + filter?: Platform[] } = {}): WalletInit { const getIcon = async () => (await import('./icon.js')).default - return helpers => { - const { device } = helpers + + return ({ device }) => { + const filtered = + Array.isArray(filter) && + (filter.includes(device.type) || filter.includes(device.os.name)) + + if (filtered) return null + const isMobile = device.type === 'mobile' let accounts: Account[] | undefined + return { label: "D'CENT", getIcon, diff --git a/packages/demo/package.json b/packages/demo/package.json index 3e2cf1200..f7b03eeb6 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -22,23 +22,23 @@ "webpack-dev-server": "4.7.4" }, "dependencies": { - "@web3-onboard/coinbase": "^2.1.1", - "@web3-onboard/core": "^2.8.1", - "@web3-onboard/dcent": "^2.1.1", - "@web3-onboard/fortmatic": "^2.0.12", - "@web3-onboard/gas": "^2.1.1", - "@web3-onboard/gnosis": "^2.1.1", - "@web3-onboard/injected-wallets": "^2.2.0", - "@web3-onboard/keepkey": "^2.2.1", - "@web3-onboard/keystone": "^2.2.1", - "@web3-onboard/ledger": "^2.2.1", - "@web3-onboard/magic": "^2.1.1", - "@web3-onboard/portis": "^2.1.1", - "@web3-onboard/sequence": "^2.0.0", - "@web3-onboard/torus": "^2.1.1", - "@web3-onboard/trezor": "^2.2.1", - "@web3-onboard/walletconnect": "^2.1.1", - "@web3-onboard/web3auth": "^2.1.1", + "@web3-onboard/coinbase": "^2.1.2", + "@web3-onboard/core": "^2.8.2", + "@web3-onboard/dcent": "^2.2.0", + "@web3-onboard/fortmatic": "^2.0.13", + "@web3-onboard/gas": "^2.1.2", + "@web3-onboard/gnosis": "^2.1.2", + "@web3-onboard/injected-wallets": "^2.2.1", + "@web3-onboard/keepkey": "^2.3.0", + "@web3-onboard/keystone": "^2.3.0", + "@web3-onboard/ledger": "^2.3.0", + "@web3-onboard/magic": "^2.1.2", + "@web3-onboard/portis": "^2.1.2", + "@web3-onboard/sequence": "^2.0.1", + "@web3-onboard/torus": "^2.1.2", + "@web3-onboard/trezor": "^2.3.0", + "@web3-onboard/walletconnect": "^2.1.2", + "@web3-onboard/web3auth": "^2.1.2", "vconsole": "^3.9.5" }, "license": "MIT", diff --git a/packages/fortmatic/package.json b/packages/fortmatic/package.json index d0859456a..d50a8f515 100644 --- a/packages/fortmatic/package.json +++ b/packages/fortmatic/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/fortmatic", - "version": "2.0.12", + "version": "2.0.13", "description": "Fortmatic wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -58,7 +58,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "fortmatic": "^2.2.1" } } diff --git a/packages/gas/package.json b/packages/gas/package.json index 455eef5f9..8d6460908 100644 --- a/packages/gas/package.json +++ b/packages/gas/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/gas", - "version": "2.1.1", + "version": "2.1.2", "description": "Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.", "keywords": [ "gas", @@ -30,7 +30,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "rxjs": "^7.5.2", "joi": "^17.4.2" } diff --git a/packages/gnosis/package.json b/packages/gnosis/package.json index 51dd2ad71..39c6eb4b1 100644 --- a/packages/gnosis/package.json +++ b/packages/gnosis/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/gnosis", - "version": "2.1.1", + "version": "2.1.2", "description": "Gnosis Safe module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -59,6 +59,6 @@ "dependencies": { "@gnosis.pm/safe-apps-provider": "^0.9.2", "@gnosis.pm/safe-apps-sdk": "^6.1.1", - "@web3-onboard/common": "^2.2.1" + "@web3-onboard/common": "^2.2.2" } } diff --git a/packages/hw-common/package.json b/packages/hw-common/package.json index db16e1f53..bae9e52d8 100644 --- a/packages/hw-common/package.json +++ b/packages/hw-common/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/hw-common", - "version": "2.0.1", + "version": "2.0.2", "description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -81,7 +81,7 @@ }, "dependencies": { "@ethereumjs/common": "2.6.2", - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "ethers": "5.5.4", "joi": "^17.4.2", "rxjs": "^7.5.2" diff --git a/packages/injected/package.json b/packages/injected/package.json index 585f8d9cb..7c9ef3814 100644 --- a/packages/injected/package.json +++ b/packages/injected/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/injected-wallets", - "version": "2.2.0", + "version": "2.2.1", "description": "Injected wallet module for connecting browser extension and mobile wallets to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -62,7 +62,7 @@ "window": "^4.2.7" }, "dependencies": { - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "joi": "^17.4.2", "lodash.uniqby": "^4.7.0" } diff --git a/packages/keepkey/README.md b/packages/keepkey/README.md index 2091a83dc..c1685ac8c 100644 --- a/packages/keepkey/README.md +++ b/packages/keepkey/README.md @@ -25,3 +25,48 @@ const onboard = Onboard({ const connectedWallets = await onboard.connectWallet() console.log(connectedWallets) ``` + +### Filtering Platforms + +You may decide that on certain platforms you do not want to display this wallet as a selectable option. To do that you can use the `filter` init option which is an array of platforms that you would like this wallet to **not** be displayed to the end user: + +```typescript +import Onboard from '@web3-onboard/core' +import keepkeyModule from '@web3-onboard/keepkey' + +const keepkey = keepkeyModule({ filter: ['Safari'] }) + +const onboard = Onboard({ + // ... other Onboard options + wallets: [ + keepkey + //... other wallets + ] +}) + +const connectedWallets = await onboard.connectWallet() +console.log(connectedWallets) +``` + +The following is a list of the platforms that can be filtered: + +```typescript +type Platform = + | 'Windows Phone' + | 'Windows' + | 'macOS' + | 'iOS' + | 'Android' + | 'Linux' + | 'Chrome OS' + | 'Android Browser' + | 'Chrome' + | 'Chromium' + | 'Firefox' + | 'Microsoft Edge' + | 'Opera' + | 'Safari' + | 'desktop' + | 'mobile' + | 'tablet' +``` diff --git a/packages/keepkey/package.json b/packages/keepkey/package.json index 6cc404744..80693104c 100644 --- a/packages/keepkey/package.json +++ b/packages/keepkey/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/keepkey", - "version": "2.2.1", + "version": "2.3.0", "description": "KeepKey hardware wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -63,7 +63,7 @@ "@ethersproject/providers": "^5.5.0", "@shapeshiftoss/hdwallet-core": "^1.15.2", "@shapeshiftoss/hdwallet-keepkey-webusb": "^1.15.2", - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "@web3-onboard/hw-common": "^2.0.1", "ethereumjs-util": "^7.1.3" } diff --git a/packages/keepkey/src/index.ts b/packages/keepkey/src/index.ts index 2aaef3da9..f14495bf9 100644 --- a/packages/keepkey/src/index.ts +++ b/packages/keepkey/src/index.ts @@ -1,4 +1,4 @@ -import type { Chain, WalletInit } from '@web3-onboard/common' +import type { Chain, Platform, WalletInit } from '@web3-onboard/common' import type { StaticJsonRpcProvider } from '@ethersproject/providers' import type { ETHAccountPath } from '@shapeshiftoss/hdwallet-core' import type { KeepKeyHDWallet } from '@shapeshiftoss/hdwallet-keepkey' @@ -36,12 +36,18 @@ const errorMessages = { type ErrorCode = 'busy' | 'pairing' -function keepkey(): WalletInit { +function keepkey({ filter }: { filter?: Platform[] } = {}): WalletInit { const getIcon = async () => (await import('./icon.js')).default - return () => { + return ({ device }) => { let accounts: Account[] | undefined + const filtered = + Array.isArray(filter) && + (filter.includes(device.type) || filter.includes(device.os.name)) + + if (filtered) return null + return { label: 'KeepKey', getIcon, diff --git a/packages/keystone/README.md b/packages/keystone/README.md index 9e8b6139b..cdd20a94b 100644 --- a/packages/keystone/README.md +++ b/packages/keystone/README.md @@ -65,3 +65,48 @@ const onboard = Onboard({ const connectedWallets = await onboard.connectWallet() console.log(connectedWallets) ``` + +### Filtering Platforms + +You may decide that on certain platforms you do not want to display this wallet as a selectable option. To do that you can use the `filter` init option which is an array of platforms that you would like this wallet to **not** be displayed to the end user: + +```typescript +import Onboard from '@web3-onboard/core' +import keystoneModule from '@web3-onboard/keystone' + +const keystone = keystoneModule({ filter: ['Safari'] }) + +const onboard = Onboard({ + // ... other Onboard options + wallets: [ + keystone + //... other wallets + ] +}) + +const connectedWallets = await onboard.connectWallet() +console.log(connectedWallets) +``` + +The following is a list of the platforms that can be filtered: + +```typescript +type Platform = + | 'Windows Phone' + | 'Windows' + | 'macOS' + | 'iOS' + | 'Android' + | 'Linux' + | 'Chrome OS' + | 'Android Browser' + | 'Chrome' + | 'Chromium' + | 'Firefox' + | 'Microsoft Edge' + | 'Opera' + | 'Safari' + | 'desktop' + | 'mobile' + | 'tablet' +``` diff --git a/packages/keystone/package.json b/packages/keystone/package.json index 8eb9d1fa9..b4f2ee785 100644 --- a/packages/keystone/package.json +++ b/packages/keystone/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/keystone", - "version": "2.2.1", + "version": "2.3.0", "description": "Keystone hardware wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -58,7 +58,7 @@ "@ethereumjs/tx": "^3.4.0", "@ethersproject/providers": "^5.5.0", "@keystonehq/eth-keyring": "^0.14.0-alpha.10.3", - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "@web3-onboard/hw-common": "^2.0.1" } } diff --git a/packages/keystone/src/index.ts b/packages/keystone/src/index.ts index a75ef6c65..cae0f6b75 100644 --- a/packages/keystone/src/index.ts +++ b/packages/keystone/src/index.ts @@ -1,4 +1,10 @@ -import type { Chain, CustomNetwork, WalletInit } from '@web3-onboard/common' +import type { + Chain, + CustomNetwork, + Platform, + WalletInit +} from '@web3-onboard/common' + import type { Account, ScanAccountsOptions } from '@web3-onboard/hw-common' import type { StaticJsonRpcProvider } from '@ethersproject/providers' @@ -58,13 +64,23 @@ const generateAccounts = async ( } function keystone({ - customNetwork + customNetwork, + filter }: { customNetwork?: CustomNetwork + filter?: Platform[] } = {}): WalletInit { const getIcon = async () => (await import('./icon.js')).default - return () => { + + return ({ device }) => { let accounts: Account[] | undefined + + const filtered = + Array.isArray(filter) && + (filter.includes(device.type) || filter.includes(device.os.name)) + + if (filtered) return null + return { label: 'Keystone', getIcon, diff --git a/packages/ledger/README.md b/packages/ledger/README.md index 1e476db4a..f6950c09c 100644 --- a/packages/ledger/README.md +++ b/packages/ledger/README.md @@ -65,3 +65,48 @@ const onboard = Onboard({ const connectedWallets = await onboard.connectWallet() console.log(connectedWallets) ``` + +### Filtering Platforms + +You may decide that on certain platforms you do not want to display this wallet as a selectable option. To do that you can use the `filter` init option which is an array of platforms that you would like this wallet to **not** be displayed to the end user: + +```typescript +import Onboard from '@web3-onboard/core' +import ledgerModule from '@web3-onboard/ledger' + +const ledger = ledgerModule({ filter: ['Safari'] }) + +const onboard = Onboard({ + // ... other Onboard options + wallets: [ + ledger + //... other wallets + ] +}) + +const connectedWallets = await onboard.connectWallet() +console.log(connectedWallets) +``` + +The following is a list of the platforms that can be filtered: + +```typescript +type Platform = + | 'Windows Phone' + | 'Windows' + | 'macOS' + | 'iOS' + | 'Android' + | 'Linux' + | 'Chrome OS' + | 'Android Browser' + | 'Chrome' + | 'Chromium' + | 'Firefox' + | 'Microsoft Edge' + | 'Opera' + | 'Safari' + | 'desktop' + | 'mobile' + | 'tablet' +``` diff --git a/packages/ledger/package.json b/packages/ledger/package.json index dddf15fcb..5f9d653f2 100644 --- a/packages/ledger/package.json +++ b/packages/ledger/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/ledger", - "version": "2.2.1", + "version": "2.3.0", "description": "Ledger hardare wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -65,7 +65,7 @@ "@ledgerhq/hw-transport-u2f": "^5.36.0-deprecated", "@ledgerhq/hw-transport-webusb": "^6.19.0", "@metamask/eth-sig-util": "^4.0.0", - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "@web3-onboard/hw-common": "^2.0.1", "buffer": "^6.0.3", "ethereumjs-util": "^7.1.3" diff --git a/packages/ledger/src/index.ts b/packages/ledger/src/index.ts index 5ec441824..d12f031bf 100644 --- a/packages/ledger/src/index.ts +++ b/packages/ledger/src/index.ts @@ -7,7 +7,8 @@ import type Eth from '@ledgerhq/hw-app-eth' import type { Chain, WalletInit, - GetInterfaceHelpers + GetInterfaceHelpers, + Platform } from '@web3-onboard/common' import type { @@ -108,13 +109,23 @@ const getAddresses = async ( } function ledger({ - customNetwork + customNetwork, + filter }: { customNetwork?: CustomNetwork + filter?: Platform[] } = {}): WalletInit { const getIcon = async () => (await import('./icon.js')).default - return () => { + + return ({ device }) => { let accounts: Account[] | undefined + + const filtered = + Array.isArray(filter) && + (filter.includes(device.type) || filter.includes(device.os.name)) + + if (filtered) return null + return { label: 'Ledger', getIcon, diff --git a/packages/magic/package.json b/packages/magic/package.json index 06ee8b08d..efc89d14b 100644 --- a/packages/magic/package.json +++ b/packages/magic/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/magic", - "version": "2.1.1", + "version": "2.1.2", "description": "Magic SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -80,7 +80,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "joi": "^17.4.2", "magic-sdk": "^8.1.0", "rxjs": "^7.5.2" diff --git a/packages/mew/package.json b/packages/mew/package.json index a80b38838..41e34c2a2 100644 --- a/packages/mew/package.json +++ b/packages/mew/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/mew", - "version": "2.1.1", + "version": "2.1.2", "description": "MEW (My Ether Wallet) SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -59,7 +59,7 @@ "@myetherwallet/mewconnect-web-client": "^2.2.0-beta.14" }, "dependencies": { - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "rxjs": "^7.5.2" } } diff --git a/packages/portis/package.json b/packages/portis/package.json index 85c6fbf44..3dc5a117f 100644 --- a/packages/portis/package.json +++ b/packages/portis/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/portis", - "version": "2.1.1", + "version": "2.1.2", "description": "Portis SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -57,6 +57,6 @@ }, "dependencies": { "@portis/web3": "^4.0.6", - "@web3-onboard/common": "^2.2.1" + "@web3-onboard/common": "^2.2.2" } } diff --git a/packages/react/package.json b/packages/react/package.json index e1b5ab183..28a2f107d 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/react", - "version": "2.3.1", + "version": "2.3.2", "description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -62,8 +62,8 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/core": "^2.8.1", - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/core": "^2.8.2", + "@web3-onboard/common": "^2.2.2", "use-sync-external-store": "1.0.0" }, "peerDependencies": { diff --git a/packages/sequence/package.json b/packages/sequence/package.json index 45e3f2628..b88c0070c 100644 --- a/packages/sequence/package.json +++ b/packages/sequence/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/sequence", - "version": "2.0.0", + "version": "2.0.1", "description": "Sequence is the smartest Web3 wallet. Easy, fun and secure.", "keywords": [ "Ethereum", @@ -56,7 +56,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.1.7", + "@web3-onboard/common": "^2.2.2", "0xsequence": "^0.40.5" } } diff --git a/packages/torus/package.json b/packages/torus/package.json index 53c1440a7..86e28fe9c 100644 --- a/packages/torus/package.json +++ b/packages/torus/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/torus", - "version": "2.1.1", + "version": "2.1.2", "description": "Torus SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -56,7 +56,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@toruslabs/torus-embed": "^1.18.3", - "@web3-onboard/common": "^2.2.1" + "@toruslabs/torus-embed": "1.27.3", + "@web3-onboard/common": "^2.2.2" } } diff --git a/packages/trezor/README.md b/packages/trezor/README.md index 65c189990..fef2c4388 100644 --- a/packages/trezor/README.md +++ b/packages/trezor/README.md @@ -13,6 +13,7 @@ type TrezorOptions = { email: string appUrl: string customNetwork?: CustomNetwork + filter?: Platform[] } interface CustomNetwork { @@ -70,3 +71,52 @@ const onboard = Onboard({ const connectedWallets = await onboard.connectWallet() console.log(connectedWallets) ``` + +### Filtering Platforms + +You may decide that on certain platforms you do not want to display this wallet as a selectable option. To do that you can use the `filter` init option which is an array of platforms that you would like this wallet to **not** be displayed to the end user: + +```typescript +import Onboard from '@web3-onboard/core' +import trezorModule from '@web3-onboard/trezor' + +const trezor = trezorModule({ + email: '', + appUrl: '', + filter: ['Safari'] // do not display on Safari +}) + +const onboard = Onboard({ + // ... other Onboard options + wallets: [ + trezor + //... other wallets + ] +}) + +const connectedWallets = await onboard.connectWallet() +console.log(connectedWallets) +``` + +The following is a list of the platforms that can be filtered: + +```typescript +type Platform = + | 'Windows Phone' + | 'Windows' + | 'macOS' + | 'iOS' + | 'Android' + | 'Linux' + | 'Chrome OS' + | 'Android Browser' + | 'Chrome' + | 'Chromium' + | 'Firefox' + | 'Microsoft Edge' + | 'Opera' + | 'Safari' + | 'desktop' + | 'mobile' + | 'tablet' +``` diff --git a/packages/trezor/package.json b/packages/trezor/package.json index ebe29fa93..9273761f4 100644 --- a/packages/trezor/package.json +++ b/packages/trezor/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/trezor", - "version": "2.2.1", + "version": "2.3.0", "description": "Trezor hardware wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -60,12 +60,12 @@ "dependencies": { "@ethereumjs/tx": "^3.4.0", "@ethersproject/providers": "^5.5.0", - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "@web3-onboard/hw-common": "^2.0.1", "buffer": "^6.0.3", "eth-crypto": "^2.1.0", "ethereumjs-util": "^7.1.3", "hdkey": "^2.0.1", - "trezor-connect": "^8.2.6" + "trezor-connect": "^8.2.11" } } diff --git a/packages/trezor/src/index.ts b/packages/trezor/src/index.ts index 1049b338f..4f25d9125 100644 --- a/packages/trezor/src/index.ts +++ b/packages/trezor/src/index.ts @@ -1,6 +1,12 @@ import { Account, Asset, ScanAccountsOptions } from '@web3-onboard/hw-common' import type { StaticJsonRpcProvider } from '@ethersproject/providers' import type { TransactionRequest } from '@ethersproject/providers' +import type { + FeeMarketEIP1559TxData, + TxData, + FeeMarketEIP1559Transaction, + Transaction +} from '@ethereumjs/tx' // cannot be dynamically imported import { Buffer } from 'buffer' @@ -8,6 +14,7 @@ import { Buffer } from 'buffer' import type { Chain, CustomNetwork, + Platform, TransactionObject, WalletInit } from '@web3-onboard/common' @@ -16,6 +23,7 @@ interface TrezorOptions { email: string appUrl: string customNetwork?: CustomNetwork + filter?: Platform[] } const TREZOR_DEFAULT_PATH = "m/44'/60'/0'/0" @@ -107,14 +115,32 @@ const getAddresses = async ( function trezor(options: TrezorOptions): WalletInit { const getIcon = async () => (await import('./icon.js')).default - return () => { + + return ({ device }) => { + const { email, appUrl, customNetwork, filter } = options || {} + + if (!email || !appUrl) { + throw new Error( + 'Email and AppUrl required in Trezor options for Trezor Wallet Connection' + ) + } + + const filtered = + Array.isArray(filter) && + (filter.includes(device.type) || filter.includes(device.os.name)) + + if (filtered) return null + let accounts: Account[] | undefined + return { label: 'Trezor', getIcon, getInterface: async ({ EventEmitter, chains }) => { const { default: Trezor } = await import('trezor-connect') - const { Transaction } = await import('@ethereumjs/tx') + const { Transaction, FeeMarketEIP1559Transaction } = await import( + '@ethereumjs/tx' + ) const { createEIP1193Provider, ProviderRpcError } = await import( '@web3-onboard/common' @@ -135,14 +161,6 @@ function trezor(options: TrezorOptions): WalletInit { '@ethersproject/providers' ) - if (!options || !options.email || !options.appUrl) { - throw new Error( - 'Email and AppUrl required in Trezor options for Trezor Wallet Connection' - ) - } - - const { email, appUrl, customNetwork } = options - // @ts-ignore const TrezorConnect = Trezor.default || Trezor @@ -283,7 +301,7 @@ function trezor(options: TrezorOptions): WalletInit { ) { return { to: transactionData.to!, - value: transactionData.value!, + value: transactionData.value || '', gasLimit: gasLimit!, maxFeePerGas: transactionData.maxFeePerGas!, maxPriorityFeePerGas: transactionData.maxPriorityFeePerGas!, @@ -296,7 +314,7 @@ function trezor(options: TrezorOptions): WalletInit { } return { to: transactionData.to!, - value: transactionData.value!, + value: transactionData.value || '', gasPrice: transactionData.gasPrice!, gasLimit: gasLimit!, nonce: transactionData.nonce!, @@ -370,11 +388,11 @@ function trezor(options: TrezorOptions): WalletInit { const updateBigNumberFields = bigNumberFieldsToStrings(populatedTransaction) - // Set the `from` field to the currently selected account const transactionData = createTrezorTransactionObject( updateBigNumberFields as TransactionObject ) + transactionData.from = address const chainId = currentChain.hasOwnProperty('id') ? Number(currentChain.id) : 1 @@ -394,26 +412,27 @@ function trezor(options: TrezorOptions): WalletInit { throw new Error(message) } - const { r, s } = trezorResult.payload - let v = trezorResult.payload.v - - // EIP155 support. check/recalc signature v value. - const rv = parseInt(v, 16) - let cv = Number(currentChain.id) * 2 + 35 - if (rv !== cv && (rv & cv) !== rv) { - cv += 1 // add signature v bit. + let signedTx: FeeMarketEIP1559Transaction | Transaction + if ( + transactionData!.maxFeePerGas || + transactionData!.maxPriorityFeePerGas + ) { + signedTx = FeeMarketEIP1559Transaction.fromTxData( + { + ...(transactionData as FeeMarketEIP1559TxData), + ...trezorResult.payload + }, + { common } + ) + } else { + signedTx = Transaction.fromTxData( + { + ...(transactionData as TxData), + ...trezorResult.payload + }, + { common } + ) } - v = cv.toString(16) - - const signedTx = Transaction.fromTxData( - { - ...populatedTransaction, - v: `0x${v}`, - r: r, - s: s - }, - { common } - ) return signedTx ? `0x${signedTx.serialize().toString('hex')}` : '' } diff --git a/packages/vue/package.json b/packages/vue/package.json index cd97ff2b1..5ca80b3c7 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/vue", - "version": "2.2.1", + "version": "2.2.2", "description": "A collection of Vue Composables for integrating Web3-Onboard in to a Vue or Nuxt project. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -62,8 +62,8 @@ "dependencies": { "@vueuse/core": "^8.4.2", "@vueuse/rxjs": "^8.2.0", - "@web3-onboard/common": "^2.2.1", - "@web3-onboard/core": "^2.8.1", + "@web3-onboard/common": "^2.2.2", + "@web3-onboard/core": "^2.8.2", "vue-demi": "^0.12.4" }, "peerDependencies": { diff --git a/packages/walletconnect/package.json b/packages/walletconnect/package.json index fc8e778f6..d37cd29b8 100644 --- a/packages/walletconnect/package.json +++ b/packages/walletconnect/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/walletconnect", - "version": "2.1.1", + "version": "2.1.2", "description": "WalletConnect SDK module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -61,7 +61,7 @@ "@ethersproject/providers": "^5.5.0", "@walletconnect/client": "^1.7.1", "@walletconnect/qrcode-modal": "^1.7.1", - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "rxjs": "^7.5.2" } } diff --git a/packages/walletlink/package.json b/packages/walletlink/package.json index ebeeafe13..cac455de9 100644 --- a/packages/walletlink/package.json +++ b/packages/walletlink/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/walletlink", - "version": "2.1.1", + "version": "2.1.2", "description": "(DEPRECATED. Use @web3-onboard/coinbase instead) WalletLink SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -58,7 +58,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "walletlink": "^2.5.0" } } diff --git a/packages/web3auth/package.json b/packages/web3auth/package.json index 274ad7109..1565be9ba 100644 --- a/packages/web3auth/package.json +++ b/packages/web3auth/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/web3auth", - "version": "2.1.1", + "version": "2.1.2", "description": "Web3Auth SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -56,7 +56,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.2.1", + "@web3-onboard/common": "^2.2.2", "@web3auth/web3auth": "^1.0.0" } } diff --git a/pull_request_template.md b/pull_request_template.md index 22aaad028..bed4cff1d 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -5,5 +5,5 @@ - [ ] The version field in `package.json` is incremented following [semantic versioning](https://semver.org/) - [ ] The box that allows repo maintainers to update this PR is checked - [ ] I tested locally to make sure this feature/fix works -- [ ] I have run `yarn type-check` & `yarn build` to confirm there are not any associated errors +- [ ] I have run `yarn check` & `yarn build` to confirm there are not any associated errors - [ ] This PR passes the Circle CI checks diff --git a/yarn.lock b/yarn.lock index d5ffcf361..a0fda2dc6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1939,14 +1939,6 @@ optionalDependencies: secp256k1 "^3.8.0" -"@toruslabs/fetch-node-details@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@toruslabs/fetch-node-details/-/fetch-node-details-4.0.2.tgz#8c6862110bbfafa5e2af475a4cd91d5e18fe20dc" - integrity sha512-xzWvfY93mE/FP4yqYdhLcFGUE4bHyvbfLvQrC/Ujja958Zh+BxWdE6nfVqPP6O/424cm+f3vNixRkl680R+9ig== - dependencies: - web3-eth-contract "^1.6.1" - web3-utils "^1.6.1" - "@toruslabs/fetch-node-details@^6.0.1": version "6.0.1" resolved "https://registry.yarnpkg.com/@toruslabs/fetch-node-details/-/fetch-node-details-6.0.1.tgz#f060524446456aeca02c163b5619a126d55d3790" @@ -1955,13 +1947,13 @@ web3-eth-contract "^1.7.3" web3-utils "^1.7.3" -"@toruslabs/http-helpers@^2.1.4": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@toruslabs/http-helpers/-/http-helpers-2.2.0.tgz#c494984701ff60eb93c0eaef279daa93b5bcea81" - integrity sha512-xkzZZuE+DmWmJBTYneCrMJY24izNQCOdoJMpsXKQx20Va/rTQvNPbdkpx9LBf/pisk8jOwETNAfFQ8YTBc/bZw== +"@toruslabs/fetch-node-details@^7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@toruslabs/fetch-node-details/-/fetch-node-details-7.0.2.tgz#6267f8fb943e5cb5366531ff4f9d4f394d6deed0" + integrity sha512-k4Ep4Gh56CCVWuHwO3zjh4Mq2cp/6JGV7tWafi3DIers2TIAI9Vdz8syTxi+jMVvSj2a9csJZF737ynqtZCkzw== dependencies: - lodash.merge "^4.6.2" - loglevel "^1.8.0" + web3-eth-contract "^1.7.4" + web3-utils "^1.7.4" "@toruslabs/http-helpers@^3.0.0": version "3.0.0" @@ -1971,6 +1963,14 @@ lodash.merge "^4.6.2" loglevel "^1.8.0" +"@toruslabs/http-helpers@^3.1.0": + version "3.2.0" + resolved "https://registry.yarnpkg.com/@toruslabs/http-helpers/-/http-helpers-3.2.0.tgz#9e33dd23936ef90852133372c831f03b7a8badc5" + integrity sha512-fCfvBHfYzd7AyOYlBo7wihh5nj6+4Ik6V5+nI7H63oiKICjMlByTXSauTUa/qm2mjZJn/OmVYeV5guPIgxoW1w== + dependencies: + lodash.merge "^4.6.2" + loglevel "^1.8.0" + "@toruslabs/metadata-helpers@^3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@toruslabs/metadata-helpers/-/metadata-helpers-3.0.0.tgz#ebc613bcd05ed7cfcf4ac1eb01e9558500a2e590" @@ -1989,19 +1989,6 @@ dependencies: "@toruslabs/tweetnacl-js" "^1.0.3" -"@toruslabs/openlogin-jrpc@^1.3.3": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-1.5.0.tgz#d264ff98492078cde52d26cc7fde61c24ca7bafb" - integrity sha512-jfcQdJg1pzI8xppgQu37Ys4D6vJG9hjDpNy8lKFnyxs8CAwsuvx5BXcK7oC5qyMLo3Afo4IC1sEVzqVoG7eCHg== - dependencies: - "@toruslabs/openlogin-utils" "^1.5.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 "^3.6.0" - "@toruslabs/openlogin-jrpc@^2.0.0", "@toruslabs/openlogin-jrpc@^2.1.0": version "2.1.0" resolved "https://registry.yarnpkg.com/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-2.1.0.tgz#b9ea1fe827389fcf4985143223f5e5b17c38f7c2" @@ -2016,15 +2003,6 @@ pump "^3.0.0" readable-stream "^3.6.0" -"@toruslabs/openlogin-utils@^1.5.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@toruslabs/openlogin-utils/-/openlogin-utils-1.5.0.tgz#912ede8862796e1fde129c208419c19f526ddd82" - integrity sha512-dKZKBJ7UHSwyO+T1SrCRAKRb1YwzzVznallFvTUSBp05wnUF+7oHaP/+YSAMsl/DwJOGO/2Qu3Gkhq9y7ggWxw== - dependencies: - base64url "^3.0.1" - keccak "^3.0.2" - randombytes "^2.1.0" - "@toruslabs/openlogin-utils@^2.1.0": version "2.1.0" resolved "https://registry.yarnpkg.com/@toruslabs/openlogin-utils/-/openlogin-utils-2.1.0.tgz#ae77dd4611970cbeb1222d90c3f4f37b3d94b407" @@ -2063,22 +2041,22 @@ loglevel "^1.8.0" pump "^3.0.0" -"@toruslabs/torus-embed@^1.18.3": - version "1.20.4" - resolved "https://registry.yarnpkg.com/@toruslabs/torus-embed/-/torus-embed-1.20.4.tgz#d1ec55bd4071ab8dcd1809e63e09211fc5e6830d" - integrity sha512-s5mxLA2ZIY4YeadS4EQReXK1oKnJgVmdaZjJAprnDzSAIOLJnd5GRdbHgq5wNH1pBk+T5hrppv6fWBR1pXNlXw== +"@toruslabs/torus-embed@1.27.3": + version "1.27.3" + resolved "https://registry.yarnpkg.com/@toruslabs/torus-embed/-/torus-embed-1.27.3.tgz#cd9d30375fcc434a22666e73cc72128a0052028f" + integrity sha512-biVRAdmOFcema3Gn9zJYTw9ZIIkgZuUEJgULujbGUplIUqU37zZpsacnNpn76cqTKbLFI56vqwjIDbKt3+qbpw== dependencies: "@metamask/obs-store" "^7.0.0" - "@toruslabs/fetch-node-details" "^4.0.2" - "@toruslabs/http-helpers" "^2.1.4" - "@toruslabs/openlogin-jrpc" "^1.3.3" - "@toruslabs/torus.js" "^4.2.3" + "@toruslabs/fetch-node-details" "^7.0.2" + "@toruslabs/http-helpers" "^3.1.0" + "@toruslabs/openlogin-jrpc" "^2.1.0" + "@toruslabs/torus.js" "^6.1.0" create-hash "^1.2.0" end-of-stream "^1.4.4" eth-rpc-errors "^4.0.3" events "^3.3.0" fast-deep-equal "^3.1.3" - is-stream "^3.0.0" + is-stream "^2.0.1" lodash.merge "^4.6.2" loglevel "^1.8.0" once "^1.4.0" @@ -2105,23 +2083,24 @@ once "^1.4.0" pump "^3.0.0" -"@toruslabs/torus.js@^4.2.3": - version "4.2.6" - resolved "https://registry.yarnpkg.com/@toruslabs/torus.js/-/torus.js-4.2.6.tgz#c206f53357541f45b94579abc27572e9482adb7e" - integrity sha512-DN84qHN+maIO5ZlblcIivKQwONibGKJg9vTifb3G7cr5QmTkWpnzwEcLT+w7fRnj7BhbzBeEhjeYzLOBpiE+6Q== +"@toruslabs/torus.js@^6.0.0": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@toruslabs/torus.js/-/torus.js-6.0.1.tgz#550e71e46eb1a65be523e5ca15faba63ee61c5a2" + integrity sha512-ceJO+URHCCqDLeTyNIYVknwmQmuVJhJL11wfuRI2USZs+LMjVPqH1N3T17Yv8JINr1VPZrrkq0MTtCf0YvjH8g== dependencies: "@toruslabs/eccrypto" "^1.1.8" - "@toruslabs/http-helpers" "^2.1.4" - bn.js "^5.2.0" + "@toruslabs/http-helpers" "^3.0.0" + bn.js "^5.2.1" elliptic "^6.5.4" json-stable-stringify "^1.0.1" + keccak "^3.0.2" loglevel "^1.8.0" - web3-utils "^1.6.1" + web3-utils "^1.7.3" -"@toruslabs/torus.js@^6.0.0": - version "6.0.1" - resolved "https://registry.yarnpkg.com/@toruslabs/torus.js/-/torus.js-6.0.1.tgz#550e71e46eb1a65be523e5ca15faba63ee61c5a2" - integrity sha512-ceJO+URHCCqDLeTyNIYVknwmQmuVJhJL11wfuRI2USZs+LMjVPqH1N3T17Yv8JINr1VPZrrkq0MTtCf0YvjH8g== +"@toruslabs/torus.js@^6.1.0": + version "6.1.0" + resolved "https://registry.yarnpkg.com/@toruslabs/torus.js/-/torus.js-6.1.0.tgz#cc8e8192964664b99c7442309d78fd961ea5ace8" + integrity sha512-HI6zShOcG44pV382dHyhvdNawUxHtdP/HD9IE3ofasIrL308n/Wa/VuTS/VlaoYuQoBtPQZ1HYrKxlyIy2vXLA== dependencies: "@toruslabs/eccrypto" "^1.1.8" "@toruslabs/http-helpers" "^3.0.0" @@ -2130,7 +2109,7 @@ json-stable-stringify "^1.0.1" keccak "^3.0.2" loglevel "^1.8.0" - web3-utils "^1.7.3" + web3-utils "^1.7.4" "@toruslabs/tweetnacl-js@^1.0.3": version "1.0.3" @@ -3300,6 +3279,11 @@ abbrev@1: resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== +abortcontroller-polyfill@^1.7.3: + version "1.7.3" + resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz#1b5b487bd6436b5b764fd52a612509702c3144b5" + integrity sha512-zetDJxd89y3X99Kvo4qFx8GKlt6GsvN3UcRZHwU6iFA/0KiOmhkTVhe8oRoTBiTVPZu09x3vCra47+w8Yz1+2Q== + abstract-leveldown@~2.6.0: version "2.6.3" resolved "https://registry.yarnpkg.com/abstract-leveldown/-/abstract-leveldown-2.6.3.tgz#1c5e8c6a5ef965ae8c35dfb3a8770c476b82c4b8" @@ -7069,11 +7053,6 @@ is-stream@^2.0.0, is-stream@^2.0.1: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== -is-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac" - integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== - is-string@^1.0.5, is-string@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" @@ -10275,13 +10254,13 @@ tr46@~0.0.3: resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o= -trezor-connect@^8.2.6: - version "8.2.6" - resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-8.2.6.tgz#2731f9af2837116307672aeba747cf29c02b6229" - integrity sha512-ioa/NkwtFHY94VI95q4JPdoDU3HaQFFIqdS47751zHa5q8qVBzwf5vgUrNS+q3vJ2ZNE7mTk/r4FjURtDB1xjA== +trezor-connect@^8.2.11: + version "8.2.11" + resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-8.2.11.tgz#6484a52f1e492748939f01a891ab9b2df28950c1" + integrity sha512-08yQrFJjZ/PjB4ZaHSnEwahG7cnc4FDndDxIen6kQ3hlpHmnu+J2V/ldUs5FOlZx22XDg5bhTKuIqytZrj9B0w== dependencies: "@babel/runtime" "^7.15.4" - cross-fetch "^3.1.4" + cross-fetch "^3.1.5" events "^3.3.0" ts-custom-error@^3.2.0: @@ -10696,14 +10675,6 @@ web3-core-helpers@1.5.2: web3-eth-iban "1.5.2" web3-utils "1.5.2" -web3-core-helpers@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-core-helpers/-/web3-core-helpers-1.7.0.tgz#0eaef7bc55ff7ec5ba726181d0e8529be5d60903" - integrity sha512-kFiqsZFHJliKF8VKZNjt2JvKu3gu7h3N1/ke3EPhdp9Li/rLmiyzFVr6ApryZ1FSjbSx6vyOkibG3m6xQ5EHJA== - dependencies: - web3-eth-iban "1.7.0" - web3-utils "1.7.0" - web3-core-helpers@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-core-helpers/-/web3-core-helpers-1.7.3.tgz#9a8d7830737d0e9c48694b244f4ce0f769ba67b9" @@ -10712,6 +10683,14 @@ web3-core-helpers@1.7.3: web3-eth-iban "1.7.3" web3-utils "1.7.3" +web3-core-helpers@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-core-helpers/-/web3-core-helpers-1.7.5.tgz#e97b3ecac787ade4b9390807a86aca78ed97872b" + integrity sha512-lDDjTks6Q6aNUO87RYrY2xub3UWTKr/RIWxpHJODEqkLxZS1dWdyliJ6aIx3031VQwsNT5HE7NvABe/t0p3iDQ== + dependencies: + web3-eth-iban "1.7.5" + web3-utils "1.7.5" + web3-core-method@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.5.0.tgz#1940e4da7def63d00f9141b84c4d0d66d25428a7" @@ -10735,17 +10714,6 @@ web3-core-method@1.5.2: web3-core-subscriptions "1.5.2" web3-utils "1.5.2" -web3-core-method@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.7.0.tgz#5e98030ac9e0d96c6ff1ba93fde1292a332b1b81" - integrity sha512-43Om+kZX8wU5u1pJ28TltF9e9pSTRph6b8wrOb6wgXAfPHqMulq6UTBJWjXXIRVN46Eiqv0nflw35hp9bbgnbA== - dependencies: - "@ethersproject/transactions" "^5.0.0-beta.135" - web3-core-helpers "1.7.0" - web3-core-promievent "1.7.0" - web3-core-subscriptions "1.7.0" - web3-utils "1.7.0" - web3-core-method@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.7.3.tgz#eb2a4f140448445c939518c0fa6216b3d265c5e9" @@ -10757,6 +10725,17 @@ web3-core-method@1.7.3: web3-core-subscriptions "1.7.3" web3-utils "1.7.3" +web3-core-method@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.7.5.tgz#ffe8883c169468f0e4d13509377f2d8876d9b7be" + integrity sha512-ApTvq1Llzlbxmy0n4L7QaE6NodIsR80VJqk8qN4kLg30SGznt/pNJFebryLI2kpyDmxSgj1TjEWzmHJBp6FhYg== + dependencies: + "@ethersproject/transactions" "^5.6.2" + web3-core-helpers "1.7.5" + web3-core-promievent "1.7.5" + web3-core-subscriptions "1.7.5" + web3-utils "1.7.5" + web3-core-promievent@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.5.0.tgz#fab9fe72520e46d8fee73ccf8d2f15243e4bc4fd" @@ -10771,13 +10750,6 @@ web3-core-promievent@1.5.2: dependencies: eventemitter3 "4.0.4" -web3-core-promievent@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.7.0.tgz#e2c6c38f29b912cc549a2a3f806636a3393983eb" - integrity sha512-xPH66XeC0K0k29GoRd0vyPQ07yxERPRd4yVPrbMzGAz/e9E4M3XN//XK6+PdfGvGw3fx8VojS+tNIMiw+PujbQ== - dependencies: - eventemitter3 "4.0.4" - web3-core-promievent@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.7.3.tgz#2d0eeef694569b61355054c721578f67df925b80" @@ -10785,6 +10757,13 @@ web3-core-promievent@1.7.3: dependencies: eventemitter3 "4.0.4" +web3-core-promievent@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.7.5.tgz#56a9b06a20e20a0a89d2ab7f88d44c8ae01d5b62" + integrity sha512-uZ1VRErVuhiLtHlyt3oEH/JSvAf6bWPndChHR9PG7i1Zfqm6ZVCeM91ICTPmiL8ddsGQOxASpnJk4vhApcTIww== + dependencies: + eventemitter3 "4.0.4" + web3-core-requestmanager@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.5.0.tgz#126427fb29efe15bbac090d3aad09b3842c6dbf6" @@ -10807,17 +10786,6 @@ web3-core-requestmanager@1.5.2: web3-providers-ipc "1.5.2" web3-providers-ws "1.5.2" -web3-core-requestmanager@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.7.0.tgz#5b62b413471d6d2a789ee33d587d280178979c7e" - integrity sha512-rA3dBTBPrt+eIfTAQ2/oYNTN/2wbZaYNR3pFZGqG8+2oCK03+7oQyz4sWISKy/nYQhURh4GK01rs9sN4o/Tq9w== - dependencies: - util "^0.12.0" - web3-core-helpers "1.7.0" - web3-providers-http "1.7.0" - web3-providers-ipc "1.7.0" - web3-providers-ws "1.7.0" - web3-core-requestmanager@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.7.3.tgz#226f79d16e546c9157d00908de215e984cae84e9" @@ -10829,6 +10797,17 @@ web3-core-requestmanager@1.7.3: web3-providers-ipc "1.7.3" web3-providers-ws "1.7.3" +web3-core-requestmanager@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.7.5.tgz#be18fc99642689aeb2e016fa43fb47bb9e8c94ce" + integrity sha512-3KpfxW/wVH4mgwWEsSJGHKrtRVoijWlDxtUrm17xgtqRNZ2mFolifKnHAUKa0fY48C9CrxmcCiMIi3W4G6WYRw== + dependencies: + util "^0.12.0" + web3-core-helpers "1.7.5" + web3-providers-http "1.7.5" + web3-providers-ipc "1.7.5" + web3-providers-ws "1.7.5" + web3-core-subscriptions@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.5.0.tgz#c7f77fc0db061cd9290987b08540f91e9d4b8bca" @@ -10845,14 +10824,6 @@ web3-core-subscriptions@1.5.2: eventemitter3 "4.0.4" web3-core-helpers "1.5.2" -web3-core-subscriptions@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.7.0.tgz#30475d8ed5f51a170e5df02085f721925622a795" - integrity sha512-6giF8pyJrPmWrRpc2WLoVCvQdMMADp20ZpAusEW72axauZCNlW1XfTjs0i4QHQBfdd2lFp65qad9IuATPhuzrQ== - dependencies: - eventemitter3 "4.0.4" - web3-core-helpers "1.7.0" - web3-core-subscriptions@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.7.3.tgz#ca456dfe2c219a0696c5cf34c13b03c3599ec5d5" @@ -10861,6 +10832,14 @@ web3-core-subscriptions@1.7.3: eventemitter3 "4.0.4" web3-core-helpers "1.7.3" +web3-core-subscriptions@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.7.5.tgz#c0e25610768ea9d9f9107b4ac74b6b6573125e00" + integrity sha512-YK6utQ7Wwjbe4XZOIA8quWGBPi1lFDS1A+jQYwxKKrCvm6BloBNc3FhvrcSYlDhLe/kOy8+2Je8i9amndgT4ww== + dependencies: + eventemitter3 "4.0.4" + web3-core-helpers "1.7.5" + web3-core@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.5.0.tgz#46c09283bcfe197df0c543dbe751650cea157a7f" @@ -10887,19 +10866,6 @@ web3-core@1.5.2: web3-core-requestmanager "1.5.2" web3-utils "1.5.2" -web3-core@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.7.0.tgz#67b7839130abd19476e7f614ea6ec4c64d08eb00" - integrity sha512-U/CRL53h3T5KHl8L3njzCBT7fCaHkbE6BGJe3McazvFldRbfTDEHXkUJCyM30ZD0RoLi3aDfTVeFIusmEyCctA== - dependencies: - "@types/bn.js" "^4.11.5" - "@types/node" "^12.12.6" - bignumber.js "^9.0.0" - web3-core-helpers "1.7.0" - web3-core-method "1.7.0" - web3-core-requestmanager "1.7.0" - web3-utils "1.7.0" - web3-core@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.7.3.tgz#2ef25c4cc023997f43af9f31a03b571729ff3cda" @@ -10913,6 +10879,19 @@ web3-core@1.7.3: web3-core-requestmanager "1.7.3" web3-utils "1.7.3" +web3-core@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.7.5.tgz#8ee2ca490230a30ca970cb9f308eb65b76405e1d" + integrity sha512-UgOWXZr1fR/3cUQJKWbfMwRxj1/N7o6RSd/dHqdXBlOD+62EjNZItFmLRg5veq5kp9YfXzrNw9bnDkXfsL+nKQ== + dependencies: + "@types/bn.js" "^5.1.0" + "@types/node" "^12.12.6" + bignumber.js "^9.0.0" + web3-core-helpers "1.7.5" + web3-core-method "1.7.5" + web3-core-requestmanager "1.7.5" + web3-utils "1.7.5" + web3-eth-abi@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.5.0.tgz#10a4bf11ec2302c6cf313b5de4e2e12d9620d648" @@ -10921,14 +10900,6 @@ web3-eth-abi@1.5.0: "@ethersproject/abi" "5.0.7" web3-utils "1.5.0" -web3-eth-abi@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.7.0.tgz#4fac9c7d9e5a62b57f8884b37371f515c766f3f4" - integrity sha512-heqR0bWxgCJwjWIhq2sGyNj9bwun5+Xox/LdZKe+WMyTSy0cXDXEAgv3XKNkXC4JqdDt/ZlbTEx4TWak4TRMSg== - dependencies: - "@ethersproject/abi" "5.0.7" - web3-utils "1.7.0" - web3-eth-abi@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.7.3.tgz#2a1123c7252c37100eecd0b1fb2fb2c51366071f" @@ -10937,6 +10908,14 @@ web3-eth-abi@1.7.3: "@ethersproject/abi" "5.0.7" web3-utils "1.7.3" +web3-eth-abi@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.7.5.tgz#db9d6dbcc043a6e922252f3228686e9bbd50d7c9" + integrity sha512-qWHvF7sayxql9BD1yqK9sZRLBQ66eJzGeaU53Y1PRq2iFPrhY6NUWxQ3c3ps0rg+dyObvRbloviWpKXcS4RE/A== + dependencies: + "@ethersproject/abi" "^5.6.3" + web3-utils "1.7.5" + web3-eth-accounts@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-eth-accounts/-/web3-eth-accounts-1.5.0.tgz#1a71e12758440884450f4939290569ff82976cc3" @@ -10968,20 +10947,6 @@ web3-eth-contract@1.5.0: web3-eth-abi "1.5.0" web3-utils "1.5.0" -web3-eth-contract@^1.6.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.7.0.tgz#3795767a65d7b87bd22baea3e18aafdd928d5313" - integrity sha512-2LY1Xwxu5rx468nqHuhvupQAIpytxIUj3mGL9uexszkhrQf05THVe3i4OnUCzkeN6B2cDztNOqLT3j9SSnVQDg== - dependencies: - "@types/bn.js" "^4.11.5" - web3-core "1.7.0" - web3-core-helpers "1.7.0" - web3-core-method "1.7.0" - web3-core-promievent "1.7.0" - web3-core-subscriptions "1.7.0" - web3-eth-abi "1.7.0" - web3-utils "1.7.0" - web3-eth-contract@^1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.7.3.tgz#c4efc118ed7adafbc1270b633f33e696a39c7fc7" @@ -10996,6 +10961,20 @@ web3-eth-contract@^1.7.3: web3-eth-abi "1.7.3" web3-utils "1.7.3" +web3-eth-contract@^1.7.4: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.7.5.tgz#a032419579bcec062513a3d089ad0e89ac63d731" + integrity sha512-qab7NPJRKRlTs58ozsqK8YIEwWpxIm3vD/okSIKBGkFx5gIHWW+vGmMh5PDSfefLJM9rCd+T+Lc0LYvtME7uqg== + dependencies: + "@types/bn.js" "^5.1.0" + web3-core "1.7.5" + web3-core-helpers "1.7.5" + web3-core-method "1.7.5" + web3-core-promievent "1.7.5" + web3-core-subscriptions "1.7.5" + web3-eth-abi "1.7.5" + web3-utils "1.7.5" + web3-eth-ens@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-eth-ens/-/web3-eth-ens-1.5.0.tgz#f92ce19a541e42a0da4b8b04f7161d7a20ad3e86" @@ -11026,14 +11005,6 @@ web3-eth-iban@1.5.2: bn.js "^4.11.9" web3-utils "1.5.2" -web3-eth-iban@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.7.0.tgz#b56cd58587457d3339730e0cb42772a37141b434" - integrity sha512-1PFE/Og+sPZaug+M9TqVUtjOtq0HecE+SjDcsOOysXSzslNC2CItBGkcRwbvUcS+LbIkA7MFsuqYxOL0IV/gyA== - dependencies: - bn.js "^4.11.9" - web3-utils "1.7.0" - web3-eth-iban@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.7.3.tgz#47433a73380322bba04e17b91fccd4a0e63a390a" @@ -11042,6 +11013,14 @@ web3-eth-iban@1.7.3: bn.js "^4.11.9" web3-utils "1.7.3" +web3-eth-iban@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.7.5.tgz#1a50efa42cabf1b731396d38bef6a8bf92b5ee1f" + integrity sha512-mn2W5t/1IpL8OZvzAabLKT4kvwRnZSJ9K0tctndl9sDNWkfITYQibEEhUaNNA50Q5fJKgVudHI/m0gwIVTyG8Q== + dependencies: + bn.js "^5.2.1" + web3-utils "1.7.5" + web3-eth-personal@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-eth-personal/-/web3-eth-personal-1.5.0.tgz#79e604f38439fbb7a9d4dcb20094359d20d3d388" @@ -11125,14 +11104,6 @@ web3-providers-http@1.5.2: web3-core-helpers "1.5.2" xhr2-cookies "1.1.0" -web3-providers-http@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-1.7.0.tgz#0661261eace122a0ed5853f8be5379d575a9130c" - integrity sha512-Y9reeEiApfvQKLUUtrU4Z0c+H6b7BMWcsxjgoXndI1C5NB297mIUfltXxfXsh5C/jk5qn4Q3sJp3SwQTyVjH7Q== - dependencies: - web3-core-helpers "1.7.0" - xhr2-cookies "1.1.0" - web3-providers-http@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-1.7.3.tgz#8ea5e39f6ceee0b5bc4e45403fae75cad8ff4cf7" @@ -11141,6 +11112,16 @@ web3-providers-http@1.7.3: web3-core-helpers "1.7.3" xhr2-cookies "1.1.0" +web3-providers-http@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-1.7.5.tgz#144bb0c29007d1b766bafb0e20f80be050c7aa80" + integrity sha512-vPgr4Kzy0M3CHtoP/Bh7qwK/D9h2fhjpoqctdMWVJseOfeTgfOphCKN0uwV8w2VpZgDPXA8aeTdBx5OjmDdStA== + dependencies: + abortcontroller-polyfill "^1.7.3" + cross-fetch "^3.1.4" + es6-promise "^4.2.8" + web3-core-helpers "1.7.5" + web3-providers-ipc@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.5.0.tgz#69d9b3a23f6bfd52f649f3bfbfa6696b159fa80a" @@ -11157,14 +11138,6 @@ web3-providers-ipc@1.5.2: oboe "2.1.5" web3-core-helpers "1.5.2" -web3-providers-ipc@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.7.0.tgz#152dc1231eb4f17426498d4d5d973c865eab03d9" - integrity sha512-U5YLXgu6fvAK4nnMYqo9eoml3WywgTym0dgCdVX/n1UegLIQ4nctTubBAuWQEJzmAzwh+a6ValGcE7ZApTRI7Q== - dependencies: - oboe "2.1.5" - web3-core-helpers "1.7.0" - web3-providers-ipc@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.7.3.tgz#a34872103a8d37a03795fa2f9b259e869287dcaa" @@ -11173,6 +11146,14 @@ web3-providers-ipc@1.7.3: oboe "2.1.5" web3-core-helpers "1.7.3" +web3-providers-ipc@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.7.5.tgz#5b0f9b4f7340416953b8816d2e42e3f548d47372" + integrity sha512-aNHx+RAROzO+apDEzy8Zncj78iqWBadIXtpmFDg7uiTn8i+oO+IcP1Yni7jyzkltsysVJHgHWG4kPx50ANCK3Q== + dependencies: + oboe "2.1.5" + web3-core-helpers "1.7.5" + web3-providers-ws@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.5.0.tgz#c78253af17dfdcd4f8a4c3a8ac1a684a73886ae7" @@ -11191,15 +11172,6 @@ web3-providers-ws@1.5.2: web3-core-helpers "1.5.2" websocket "^1.0.32" -web3-providers-ws@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.7.0.tgz#99c2de9f6b5ac56e926794ef9074c7442d937372" - integrity sha512-0a8+lVV3JBf+eYnGOsdzOpftK1kis5X7s35QAdoaG5SDapnEylXFlR4xDSSSU88ZwMwvse8hvng2xW6A7oeWxw== - dependencies: - eventemitter3 "4.0.4" - web3-core-helpers "1.7.0" - websocket "^1.0.32" - web3-providers-ws@1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.7.3.tgz#87564facc47387c9004a043a6686e4881ed6acfe" @@ -11209,6 +11181,15 @@ web3-providers-ws@1.7.3: web3-core-helpers "1.7.3" websocket "^1.0.32" +web3-providers-ws@1.7.5: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.7.5.tgz#196b9e56a4a48f9bee54def56875ea53dec7c711" + integrity sha512-9uJNVVkIGC8PmM9kNbgPth56HDMSSsxZh3ZEENdwO3LNWemaADiQYUDCsD/dMVkn0xsGLHP5dgAy4Q5msqySLg== + dependencies: + eventemitter3 "4.0.4" + web3-core-helpers "1.7.5" + websocket "^1.0.32" + web3-shh@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/web3-shh/-/web3-shh-1.5.0.tgz#eabf7c346605b107f51dfe5e6df9643a4b5eb7aa" @@ -11245,10 +11226,10 @@ web3-utils@1.5.2: randombytes "^2.1.0" utf8 "3.0.0" -web3-utils@1.7.0, web3-utils@^1.6.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.7.0.tgz#c59f0fd43b2449357296eb54541810b99b1c771c" - integrity sha512-O8Tl4Ky40Sp6pe89Olk2FsaUkgHyb5QAXuaKo38ms3CxZZ4d3rPGfjP9DNKGm5+IUgAZBNpF1VmlSmNCqfDI1w== +web3-utils@1.7.3, web3-utils@^1.7.3: + version "1.7.3" + resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.7.3.tgz#b214d05f124530d8694ad364509ac454d05f207c" + integrity sha512-g6nQgvb/bUpVUIxJE+ezVN+rYwYmlFyMvMIRSuqpi1dk6ApDD00YNArrk7sPcZnjvxOJ76813Xs2vIN2rgh4lg== dependencies: bn.js "^4.11.9" ethereum-bloom-filters "^1.0.6" @@ -11258,12 +11239,12 @@ web3-utils@1.7.0, web3-utils@^1.6.1: randombytes "^2.1.0" utf8 "3.0.0" -web3-utils@1.7.3, web3-utils@^1.7.3: - version "1.7.3" - resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.7.3.tgz#b214d05f124530d8694ad364509ac454d05f207c" - integrity sha512-g6nQgvb/bUpVUIxJE+ezVN+rYwYmlFyMvMIRSuqpi1dk6ApDD00YNArrk7sPcZnjvxOJ76813Xs2vIN2rgh4lg== +web3-utils@1.7.5, web3-utils@^1.7.4: + version "1.7.5" + resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.7.5.tgz#081a952ac6e0322e25ac97b37358a43c7372ef6a" + integrity sha512-9AqNOziQky4wNQadEwEfHiBdOZqopIHzQQVzmvvv6fJwDSMhP+khqmAZC7YTiGjs0MboyZ8tWNivqSO1699XQw== dependencies: - bn.js "^4.11.9" + bn.js "^5.2.1" ethereum-bloom-filters "^1.0.6" ethereumjs-util "^7.1.0" ethjs-unit "0.1.6"