From 8405e7494cac8268ee1f265bec5272b9f2cae77f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:31:14 +0000 Subject: [PATCH] chore(deps): update dependency viem to ^2.21.55 (#6364) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [viem](https://viem.sh) ([source](https://redirect.github.com/wevm/viem)) | [`^2.21.53` -> `^2.21.55`](https://renovatebot.com/diffs/npm/viem/2.21.53/2.21.55) | [![age](https://developer.mend.io/api/mc/badges/age/npm/viem/2.21.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/viem/2.21.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/viem/2.21.53/2.21.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/viem/2.21.53/2.21.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
wevm/viem (viem) ### [`v2.21.55`](https://redirect.github.com/wevm/viem/releases/tag/viem%402.21.55) [Compare Source](https://redirect.github.com/wevm/viem/compare/viem@2.21.54...viem@2.21.55) ##### Patch Changes - [#​3116](https://redirect.github.com/wevm/viem/pull/3116) [`45d34bbe2a5cd6f56aa5a78856ed141020eb40e1`](https://redirect.github.com/wevm/viem/commit/45d34bbe2a5cd6f56aa5a78856ed141020eb40e1) Thanks [@​RealWooblay](https://redirect.github.com/RealWooblay)! - Added XR One chain. - [#​3103](https://redirect.github.com/wevm/viem/pull/3103) [`42fbfca0056466ef789a0689a4bebe17b60d2aa4`](https://redirect.github.com/wevm/viem/commit/42fbfca0056466ef789a0689a4bebe17b60d2aa4) Thanks [@​iamacook](https://redirect.github.com/iamacook)! - Exported `hashStruct`. - [#​3098](https://redirect.github.com/wevm/viem/pull/3098) [`f960498b3ef2cfe39dc566ff539aab81a4608227`](https://redirect.github.com/wevm/viem/commit/f960498b3ef2cfe39dc566ff539aab81a4608227) Thanks [@​hello-jdj](https://redirect.github.com/hello-jdj)! - Added Daily Network Testnet. - [#​3099](https://redirect.github.com/wevm/viem/pull/3099) [`a8865d589e7919ebe3da99ae09831435f5c24e8f`](https://redirect.github.com/wevm/viem/commit/a8865d589e7919ebe3da99ae09831435f5c24e8f) Thanks [@​hello-jdj](https://redirect.github.com/hello-jdj)! - Added Daily Network Mainnet. - [#​3115](https://redirect.github.com/wevm/viem/pull/3115) [`a94862267239bb0a9ad98fe641a29f8628b6315c`](https://redirect.github.com/wevm/viem/commit/a94862267239bb0a9ad98fe641a29f8628b6315c) Thanks [@​rkalis](https://redirect.github.com/rkalis)! - Added `dataSuffix` parameter to `estimateContractGas`. - [#​3110](https://redirect.github.com/wevm/viem/pull/3110) [`915c6c2b610f5e8a3f47a91d4b99e0a31306b1e0`](https://redirect.github.com/wevm/viem/commit/915c6c2b610f5e8a3f47a91d4b99e0a31306b1e0) Thanks [@​karelvuong](https://redirect.github.com/karelvuong)! - Added `treasure` Mainnet and `treasureTopaz` Testnet. - [#​3119](https://redirect.github.com/wevm/viem/pull/3119) [`ee61159027b73d521e1dd357acbae43e8187fe40`](https://redirect.github.com/wevm/viem/commit/ee61159027b73d521e1dd357acbae43e8187fe40) Thanks [@​0xNikolas](https://redirect.github.com/0xNikolas)! - Add Superseed Sepolia Testnet - [#​3113](https://redirect.github.com/wevm/viem/pull/3113) [`a686dcd8bb5b05b17a3f2486a2beabceeec7bc8c`](https://redirect.github.com/wevm/viem/commit/a686dcd8bb5b05b17a3f2486a2beabceeec7bc8c) Thanks [@​abbas9344](https://redirect.github.com/abbas9344)! - Added multicall3 contract to Sanko. - [`5992d93764abb913e65da3647ac75573f9e9c976`](https://redirect.github.com/wevm/viem/commit/5992d93764abb913e65da3647ac75573f9e9c976) Thanks [@​jxom](https://redirect.github.com/jxom)! - Added Plume Mainnet & Testnet. - [#​3108](https://redirect.github.com/wevm/viem/pull/3108) [`fb9d29267b8f1a9d30b13dce1581504282ffaee6`](https://redirect.github.com/wevm/viem/commit/fb9d29267b8f1a9d30b13dce1581504282ffaee6) Thanks [@​defiboyszn](https://redirect.github.com/defiboyszn)! - Added Creator testnet. - [#​3119](https://redirect.github.com/wevm/viem/pull/3119) [`ee61159027b73d521e1dd357acbae43e8187fe40`](https://redirect.github.com/wevm/viem/commit/ee61159027b73d521e1dd357acbae43e8187fe40) Thanks [@​0xNikolas](https://redirect.github.com/0xNikolas)! - Add Superseed Mainnet - [#​3111](https://redirect.github.com/wevm/viem/pull/3111) [`83ae3e15d2baaaf96c784d7f9020abcb274c5245`](https://redirect.github.com/wevm/viem/commit/83ae3e15d2baaaf96c784d7f9020abcb274c5245) Thanks [@​hello-jdj](https://redirect.github.com/hello-jdj)! - Added Mitosis Testnet. - [#​3107](https://redirect.github.com/wevm/viem/pull/3107) [`f8c002fe7052fce747b3374dda4d15cbfce6a5c4`](https://redirect.github.com/wevm/viem/commit/f8c002fe7052fce747b3374dda4d15cbfce6a5c4) Thanks [@​pk-850](https://redirect.github.com/pk-850)! - Added Sonic mainnet. - [#​3096](https://redirect.github.com/wevm/viem/pull/3096) [`092615f58a19994b6ba01dfb30b9ba0f6ad2902b`](https://redirect.github.com/wevm/viem/commit/092615f58a19994b6ba01dfb30b9ba0f6ad2902b) Thanks [@​jxom](https://redirect.github.com/jxom)! - **Experimental:** Synced ERC-7739 extension to latest spec. ### [`v2.21.54`](https://redirect.github.com/wevm/viem/releases/tag/viem%402.21.54) [Compare Source](https://redirect.github.com/wevm/viem/compare/viem@2.21.53...viem@2.21.54) ##### Patch Changes - [#​3081](https://redirect.github.com/wevm/viem/pull/3081) [`0d9dfcd1d22d82e995abc4a23fb86614244faa54`](https://redirect.github.com/wevm/viem/commit/0d9dfcd1d22d82e995abc4a23fb86614244faa54) Thanks [@​danijelTxFusion](https://redirect.github.com/danijelTxFusion)! - Added ZKSync local hyperchain networks. - [`7c0cce92b904f1771ec9747e7aa6a6482159a87b`](https://redirect.github.com/wevm/viem/commit/7c0cce92b904f1771ec9747e7aa6a6482159a87b) Thanks [@​jxom](https://redirect.github.com/jxom)! - Added assertion for ABI-encoding integer ranges. - [#​3093](https://redirect.github.com/wevm/viem/pull/3093) [`8b70d75b9d81c5eae05e81cb3bf158a25ae4c617`](https://redirect.github.com/wevm/viem/commit/8b70d75b9d81c5eae05e81cb3bf158a25ae4c617) Thanks [@​pk-850](https://redirect.github.com/pk-850)! - Added ADF Chain. - [#​3095](https://redirect.github.com/wevm/viem/pull/3095) [`1d2ae845faadae36a0c25963449bbadc1ff65815`](https://redirect.github.com/wevm/viem/commit/1d2ae845faadae36a0c25963449bbadc1ff65815) Thanks [@​timothyshen](https://redirect.github.com/timothyshen)! - Added Story Odyssey Testnet. - [#​2642](https://redirect.github.com/wevm/viem/pull/2642) [`d1d092c19326fe0045233aee0cde8f6ceaff8633`](https://redirect.github.com/wevm/viem/commit/d1d092c19326fe0045233aee0cde8f6ceaff8633) Thanks [@​0x33dm](https://redirect.github.com/0x33dm)! - Added `ping` option to `fallback` Transport. - [#​3089](https://redirect.github.com/wevm/viem/pull/3089) [`699c854c1250977c2a6209233685a506df9bcd9b`](https://redirect.github.com/wevm/viem/commit/699c854c1250977c2a6209233685a506df9bcd9b) Thanks [@​plusminushalf](https://redirect.github.com/plusminushalf)! - Added `id` to `WebAuthnAccount`. - [#​3085](https://redirect.github.com/wevm/viem/pull/3085) [`acc496adc8d419ce6c593408ee75925c05fb22b6`](https://redirect.github.com/wevm/viem/commit/acc496adc8d419ce6c593408ee75925c05fb22b6) Thanks [@​Zhangnong](https://redirect.github.com/Zhangnong)! - Added multicall3 contract to ThunderCore. - [`feecb7841145e4a92a1968625a832ccfec68a3d7`](https://redirect.github.com/wevm/viem/commit/feecb7841145e4a92a1968625a832ccfec68a3d7) Thanks [@​jxom](https://redirect.github.com/jxom)! - Updated dependencies.
--- ### Configuration 📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone America/Los_Angeles. 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/valora-inc/wallet). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alex Bakoushin --- package.json | 2 +- src/web3/KeychainAccounts.test.ts | 2 +- yarn.lock | 72 ++++++++++++++----------------- 3 files changed, 34 insertions(+), 42 deletions(-) diff --git a/package.json b/package.json index 8c0d45cf653..ec742de6507 100644 --- a/package.json +++ b/package.json @@ -187,7 +187,7 @@ "typed-redux-saga": "^1.5.0", "uuid": "^10.0.0", "victory-native": "^36.9.2", - "viem": "^2.21.53", + "viem": "^2.21.55", "web3-utils": "^4.3.3" }, "devDependencies": { diff --git a/src/web3/KeychainAccounts.test.ts b/src/web3/KeychainAccounts.test.ts index 88a6b315cd1..c747d92e7ae 100644 --- a/src/web3/KeychainAccounts.test.ts +++ b/src/web3/KeychainAccounts.test.ts @@ -119,7 +119,7 @@ describe('KeychainAccounts', () => { it('fails with an invalid private key', async () => { await expect( accounts.addAccount('this is not a valid private key', 'password') - ).rejects.toThrowError('private key must be 32 bytes, hex or bigint, not string') + ).rejects.toThrowError('invalid private key, expected hex or 32 bytes, got string') }) it('fails if the account already exists', async () => { await accounts.addAccount(mockPrivateKey, 'password') diff --git a/yarn.lock b/yarn.lock index 30198204117..9fc1ba0ae9b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2043,12 +2043,12 @@ dependencies: "@noble/hashes" "1.4.0" -"@noble/curves@1.6.0", "@noble/curves@^1.4.0", "@noble/curves@^1.6.0", "@noble/curves@~1.6.0": - version "1.6.0" - resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.6.0.tgz#be5296ebcd5a1730fccea4786d420f87abfeb40b" - integrity sha512-TlaHRXDehJuRNR9TfZDNQ45mMEd5dwUwmicsafcIX4SsNiqnCHKjE/1alYPd/lDRVhxdhUAlv8uEhMCI5zjIJQ== +"@noble/curves@1.7.0", "@noble/curves@^1.4.0", "@noble/curves@^1.6.0", "@noble/curves@~1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.7.0.tgz#0512360622439256df892f21d25b388f52505e45" + integrity sha512-UTMhXK9SeDhFJVrHeUJ5uZlI6ajXg10O6Ddocf9S6GjbSBVZsJo88HzKwXznNfGpMTRDyJkqMjNDPYgf0qFWnw== dependencies: - "@noble/hashes" "1.5.0" + "@noble/hashes" "1.6.0" "@noble/hashes@1.3.2": version "1.3.2" @@ -2060,12 +2060,12 @@ resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== -"@noble/hashes@1.5.0", "@noble/hashes@^1.1.2", "@noble/hashes@^1.4.0", "@noble/hashes@^1.5.0", "@noble/hashes@~1.5.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.5.0.tgz#abadc5ca20332db2b1b2aa3e496e9af1213570b0" - integrity sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA== +"@noble/hashes@1.6.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.6.0.tgz#d4bfb516ad6e7b5111c216a5cc7075f4cf19e6c5" + integrity sha512-YUULf0Uk4/mAA89w+k3+yUYh6NrEvxZa5T6SY3wlMvE2chHkxFUUIDI8/XW1QSC357iA5pSnqt7XEhvFOqmDyQ== -"@noble/hashes@~1.6.0": +"@noble/hashes@1.6.1", "@noble/hashes@^1.1.2", "@noble/hashes@^1.4.0", "@noble/hashes@^1.5.0", "@noble/hashes@~1.6.0": version "1.6.1" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.6.1.tgz#df6e5943edcea504bac61395926d6fd67869a0d5" integrity sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w== @@ -2888,7 +2888,7 @@ redux-thunk "^3.1.0" reselect "^5.1.0" -"@scure/base@~1.1.6", "@scure/base@~1.1.7", "@scure/base@~1.1.8": +"@scure/base@~1.1.6": version "1.1.9" resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.9.tgz#e5e142fbbfe251091f9c5f1dd4c834ac04c3dbd1" integrity sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg== @@ -2907,14 +2907,14 @@ "@noble/hashes" "~1.4.0" "@scure/base" "~1.1.6" -"@scure/bip32@1.5.0", "@scure/bip32@^1.5.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.5.0.tgz#dd4a2e1b8a9da60e012e776d954c4186db6328e6" - integrity sha512-8EnFYkqEQdnkuGBVpCzKxyIwDCBLDVj3oiX0EKUFre/tOjL/Hqba1D6n/8RcmaQy4f95qQFrO2A8Sr6ybh4NRw== +"@scure/bip32@1.6.0", "@scure/bip32@^1.5.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.6.0.tgz#6dbc6b4af7c9101b351f41231a879d8da47e0891" + integrity sha512-82q1QfklrUUdXJzjuRU7iG7D7XiFx5PHYVS0+oeNKhyDLT7WPqs6pBcM2W5ZdwOwKCwoE1Vy1se+DHjcXwCYnA== dependencies: - "@noble/curves" "~1.6.0" - "@noble/hashes" "~1.5.0" - "@scure/base" "~1.1.7" + "@noble/curves" "~1.7.0" + "@noble/hashes" "~1.6.0" + "@scure/base" "~1.2.1" "@scure/bip39@1.3.0": version "1.3.0" @@ -2924,15 +2924,7 @@ "@noble/hashes" "~1.4.0" "@scure/base" "~1.1.6" -"@scure/bip39@1.4.0": - version "1.4.0" - resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.4.0.tgz#664d4f851564e2e1d4bffa0339f9546ea55960a6" - integrity sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw== - dependencies: - "@noble/hashes" "~1.5.0" - "@scure/base" "~1.1.8" - -"@scure/bip39@^1.4.0", "@scure/bip39@^1.5.0": +"@scure/bip39@1.5.0", "@scure/bip39@^1.4.0", "@scure/bip39@^1.5.0": version "1.5.0" resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.5.0.tgz#c8f9533dbd787641b047984356531d84485f19be" integrity sha512-Dop+ASYhnrwm9+HA/HwXg7j2ZqM6yk2fyLWb5znexjctFY3+E+eU8cIWI0Pql0Qx4hPZCijlGq4OL71g+Uz30A== @@ -5150,10 +5142,10 @@ abbrev@1: resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== -abitype@1.0.6, abitype@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.6.tgz#76410903e1d88e34f1362746e2d407513c38565b" - integrity sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A== +abitype@1.0.7, abitype@^1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.7.tgz#876a0005d211e1c9132825d45bcee7b46416b284" + integrity sha512-ZfYYSktDQUwc2eduYu8C4wOs+RDPmnRYMh7zNfzeMtGGgb0U+6tLGjixUic6mXf5xKKCcgT5Qp6cv39tOARVFw== abort-controller@^3.0.0: version "3.0.0" @@ -15553,16 +15545,16 @@ victory@^36.9.2: victory-voronoi-container "^36.9.2" victory-zoom-container "^36.9.2" -viem@^2.21.53: - version "2.21.53" - resolved "https://registry.yarnpkg.com/viem/-/viem-2.21.53.tgz#a5ba6da48e5edded27dde286e431ae97034f4fc4" - integrity sha512-0pY8clBacAwzc59iV1vY4a6U4xvRlA5tAuhClJCKvqA6rXJzmNMMvxQ0EG79lkHr7WtBEruXz8nAmONXwnq4EQ== +viem@^2.21.55: + version "2.21.55" + resolved "https://registry.yarnpkg.com/viem/-/viem-2.21.55.tgz#a57ad31fcf2a0f6c011b1909f02c94421ec4f781" + integrity sha512-PgXew7C11cAuEtOSgRyQx2kJxEOPUwIwZA9dMglRByqJuFVA7wSGZZOOo/93iylAA8E15bEdqy9xulU3oKZ70Q== dependencies: - "@noble/curves" "1.6.0" - "@noble/hashes" "1.5.0" - "@scure/bip32" "1.5.0" - "@scure/bip39" "1.4.0" - abitype "1.0.6" + "@noble/curves" "1.7.0" + "@noble/hashes" "1.6.1" + "@scure/bip32" "1.6.0" + "@scure/bip39" "1.5.0" + abitype "1.0.7" isows "1.0.6" ox "0.1.2" webauthn-p256 "0.0.10"