Releases: wevm/viem
[email protected]
Minor Changes
-
#3542
082c3d0fcc2e376954116d380c65c6ac95293681
Thanks @jxom! - Breaking (Experimental): Updated EIP-5792 to the latest spec changes. The following APIs have been updated:getCallsStatus
const result = await client.getCallsStatus({ id }) // ^? { + atomic: boolean + chainId: number + id: string receipts: Receipt[] - status: 'PENDING' | 'CONFIRMED' + status: 'pending' | 'success' | 'failure' | undefined + statusCode: number + version: string }
sendCalls
const result = await client.sendCalls({ calls }) // ^? - string + { id: string, capabilities?: Capabilities }
waitForCallsStatus
const result = await client.waitForCallsStatus({ id }) // ^? { + atomic: boolean + chainId: number + id: string receipts: Receipt[] - status: 'PENDING' | 'CONFIRMED' + status: 'pending' | 'success' | 'failure' | undefined + statusCode: number + version: string }
Patch Changes
- #3542
082c3d0fcc2e376954116d380c65c6ac95293681
Thanks @jxom! - Experimental: AddedforceAtomic
andid
parameters tosendCalls
[email protected]
Minor Changes
- #3540
48cffbc3175f02c0f3835230b8945802e34a1220
Thanks @jxom! - AddedensTlds
chain config option.
Patch Changes
-
58db8b90d72983814664b12bd27bcd2bdf0f15f3
Thanks @jxom! - OP Stack: Fixed unhandledwaiting-to-prove
case. -
#3537
e367fdb4b0e866bd31e8240032632b6512c9a422
Thanks @alainncls! - Added ENS contracts to Linea Sepolia and Mainnet.
[email protected]
Patch Changes
-
#3508
cd5fb433a1f90bce39ae5846cb58770066c4ed10
Thanks @noface-infinex! - Added megaeth testnet multicall3 address. -
#3522
bc2fbdeac97c2958f9b0d21c01167e23604fbfdf
Thanks @petermetz! - Ensured that thekeepAlive
andreconnect
parameters are passed through to
the underlying implementation (getWebSocketRpcClient()
) when the top level
webSocket()
transport factory function is called with them specified. -
#3510
d8f2ab6236346c02da511c7b310cdcc660773576
Thanks @jeanregisser! - Celo: Removed check for L2 in fee estimation following the successful hardfork. -
#3514
3ca83a8cd985eb2bee462e74eb09d0a759b3b0d9
Thanks @darwintree! - Updated ConfluxScan links -
#3523
3af11a52f25578fc72248879c3090d38c94fdf8b
Thanks @biruichen! - Added Swellchain Testnet. -
#3529
77a0938552cbcce6ff8aac4ff4ae57c3fa3a45df
Thanks @abs3ntdev! - Added Westend Asset Hub network -
#3530
cf58f89206df56aba82a52302a43846ea58fdfae
Thanks @jxom! - Optimized OP Stack gas & fee estimation, and resolved #3513.
[email protected]
Patch Changes
- #3517
3032dca3e57f5f7c5647ddc9fdbdbc6c7ec8f694
Thanks @jxom! - Added missing deprecatedviem/experimental
exports.
[email protected]
Patch Changes
f988a5762f7ffdd0d1c3bab7de1f4e706bab59ae
Thanks @jxom! - FixedAuthorization
type.
[email protected]
Minor Changes
-
#3427
2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7
Thanks @jxom! - Stabilized EIP-7702.- Added
prepareAuthorization
andsignAuthorization
Actions to the Wallet Client. - Added
hashAuthorization
,recoverAuthorizationAddress
, andverifyAuthorization
Utilities. - Renamed
account.experimental_signAuthorization
toaccount.signAuthorization
.
- Added
-
#3427
2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7
Thanks @jxom! - BREAKING (Experimental): Removed deprecatedwalletActionsEip5792
export. Useeip5792Actions
instead. -
#3427
2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7
Thanks @jxom! - BREAKING (Experimental): Removed deprecated ERC-6492 exports inviem/experimental
. These are no longer experimental. Use exports fromviem
instead. -
#3427
2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7
Thanks @jxom! - BREAKING (Experimental): Removed deprecatedwalletActionsErc7715
export. Useerc7715Actions
instead. -
#3427
2a5ded4eab7febcf2b77a88cfe3c34a621d4dfe7
Thanks @jxom! - BREAKING (Experimental):Removed EIP-7702 exports in
viem/experimental
. These are no longer experimental. Use exports fromviem
orviem/utils
instead.Note, there is also a behavioral change in the stable EIP-7702
signAuthorization
function. Previously, it was assumed that the signer of the Authorization was also the executor of the Transaction. This is no longer the case.If the signer of the Authorization is NOT the executor of the Transaction, you no longer need to pass a
sponsor
parameter.const eoa = privateKeyToAccount('0x...') const relay = privateKeyToAccount('0x...') const authorization = await client.signAuthorization({ account: eoa, contractAddress: '0x...', - sponsor: true }) const transaction = await client.sendTransaction({ account: relay, authorizationList: [authorization], })
If the signer of the Authorization is ALSO the executor of the Transaction, you will now need to pass the
executor
parameter with a value of'self'
.const eoa = privateKeyToAccount('0x...') - const relay = privateKeyToAccount('0x...') const authorization = await client.signAuthorization({ account: eoa, contractAddress: '0x...', + executor: 'self', }) const transaction = await client.sendTransaction({ - account: relay, + account: eoa, authorizationList: [authorization], })
Patch Changes
-
#3469
3f00c5f28e8a4eec0ee60fe3bb9acdc5e828d1c7
Thanks @danijelTxFusion! - ZKSync Extension: Addeddeposit
action. -
#3497
512ee19fdaf309d2ec607e024ecdb08ffbde5f68
Thanks @DiRaiks! - Changed Hoodi block explorer to Etherscan. -
#3505
c0f36abc39df5fc230c41871da1e7ba6a74d25eb
Thanks @clemlak! - Added Multicall3 address to Ink Mainnet. -
#3506
bce50f08acaa8355b11462487317929d958eb408
Thanks @CruzMolina! - add Multicall3 address to Ink Sepolia
[email protected]
Patch Changes
-
#3490
48851a1e76dd4b5ad6501e1b8c1675005baf0735
Thanks @biruichen! - Added DBK chain. -
#3492
35842cf8581e558f456d38f629db97184d96f10f
Thanks @falcoda! - add all Juneo primary supernet chains -
#3493
7a3c20fbcf47d83776dc7f7a8140709b032b1ad9
Thanks @Nish0483! - Added edeXa testnet and mainnet
[email protected]
Patch Changes
-
#3484
7054ecdcfdc20f6223b59aad5a1036c10ac8e53e
Thanks @falcoda! - Update Juneo Chain Name -
#3471
68c3ab7c38d0533a4d4a9c260a5e914a82f1ac03
Thanks @GuillermoEscobero! - Added Garfield Testnet, added primary RPCs for Zircuit Mainnet and legacy Testnet -
#3479
7765eec035995f5ea474aa6394b7f8c38987978e
Thanks @Volchunovich! - Added Hoodi Testnet. -
#3486
82c565a956fdd1ea29598ec5aeddf00adf014816
Thanks @vriveraPeersyst! - Added XRPL EVM Devnet. -
#3481
e3ac382801897615e45a11d095d390d205511edf
Thanks @Pochetes! - Added multicall3 contract to Sonic Blaze Testnet. -
#3485
251858c8cf3787263be0f16220a2e89514052845
Thanks @vriveraPeersyst! - Added XRPL EVM Testnet. -
#3482
60dbabe8c84a263aef166c969e8062fd1bed89f3
Thanks @falcoda! - Add Socotra JUNE-Chain definition
[email protected]
Patch Changes
-
#3461
18e56ccdc52ad1c51f60ba15ca2771694df44a0a
Thanks @Yutaro-Mori-eng! - Added Merlin Erigon Testnet. -
#3458
df2b898d1e48a19634032220ddef9ff2a39aa062
Thanks @MicahZoltu! - Added missing re-exports. -
#3475
cc47bba9fcfb8aa36dc923dbd167db6b27b0fe63
Thanks @tmm! - Swapped defunct Ankr RPC URLs for Thirdweb
[email protected]
Patch Changes
-
#3449
265c681bd2ceb7507cb3f81e0546fc8f98bbc78a
Thanks @adraffy! - Lowercasedsender
in CCIP-read. -
#3456
6a2b130a7213acfc347a1a804f0fb46106e6361d
Thanks @ly0va! - ZKsync Extension: Fixed nullish data encoding. -
#3455
e4dc49916fc155425ecb3962ca3399c52154bf21
Thanks @orenyomtov! - Fixed leading zero hex encoding for EIP-7702 transactions. -
#3457
8560051705a67d1921ab06b0c68bdbd3b6b0ab6c
Thanks @aodhgan! - Updated Happychain Testnet URLs. -
#3379
09d61c3f9b4237b696afb5f89b8f489009239e5c
Thanks @danijelTxFusion! - ZKSync Extension: AddedisWithdrawalFinalized
action. -
#3452
f6a253aff9c9ae70a29fdffb15ae778349699f8e
Thanks @charlenenicer! - Added basecamp testnet chain. -
#3450
26e8a782ef60f18dcf5469e7dd5a125f7b10d039
Thanks @emmaodia! - Added Somnia Testnet chain -
8527569ed4b9704b380c24a11aece9e0475f6b73
Thanks @jxom! - Experimental (EIP-5792): AddedwaitForCallsStatus
Action.