Releases: wevm/viem
[email protected]
Patch Changes
973d88ea66192c8a73410ca2dea2034e6a2c96a1
Thanks @jxom! - Experimental (EIP-5792): FixedgetCallsStatus
return value
[email protected]
Patch Changes
f736d9b2a6711a739a1fbae8c3c18fb694b407a4
Thanks @jxom! - ExportedwithCache
.
[email protected]
Patch Changes
- #3545
33a01b96554759bb9fa60d3c4bfc1c2cd5974ddc
Thanks @bmzig! - OP Stack: FixedUnproven
case.
[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