Releases: wevm/viem
[email protected]
Patch Changes
-
#4188
0e589b25a209943ea939f6ca6e4c5376c89d8e10Thanks @jenpaff! - Fixed tempo formatter for access keys -
53f280a72534259d2f6c06d411b10b9077dd0bffThanks @jxom! - Restored behavior wherechainwas not passed as a return value of `prepareTransactionRequest. -
6f0e7c2bb902d0f7eff7ffcc0cf0997be9c15c45Thanks @tmm! - Updated tempo chain config
[email protected]
Patch Changes
-
e3a110394b9775ee2eb4141526b274a5480b25fbThanks @jxom! - Updated Ox. -
5087f50f98b3bd74e5bb9483c7e2c46418395a2dThanks @jxom! - Fixed JSON-RPC account formatting for Tempo transactions. -
#4173
0e8149f9275a6453d52d9847dd02176e7089ce4eThanks @sandyup! - Added Apollo mainnet. -
#4181
cb2bb89abf311eb2de7b506418e28d500087ca91Thanks @albertov19! - Updated Moonbeam/Moonriver RPC URLs. -
#4179
0c10bf7a50b7eabf97cd23c88263122c79f775cdThanks @findmytrueself! - Added HPP Mainnet & Sepolia -
#4180
f983ce9ad4eb4d53fd9d952e7e1cff4053ae7100Thanks @BigtoMantraDev! - rename MANTRA DuKong native coin
[email protected]
Patch Changes
28cc8934f1cb9003addb37be681be902a752fa3cThanks @tmm! - Updated internal types for named tuples inference
[email protected]
Minor Changes
-
#4107
b423fc17eba4f9f0648f72f5358a8e5ed9d5f092Thanks @tmm! - Added experimental named tuple support for contract-related actions and utilities. -
#4147
734d99d9da4b76f9aa985a800213b4ba581607dfThanks @jxom! - Added first-class support and extension for Tempo.
Attaching a Tempo chain to your client grants your transaction actions with Tempo superpowers like batched calls and external fee payer capabilities.
import { createClient, http } from "viem"; import { privateKeyToAccount } from "viem/accounts"; import { tempoTestnet } from "viem/chains"; const client = createClient({ account: privateKeyToAccount("0x…"), chain: tempoTestnet.extend({ feeToken: "0x20c00000000000000000000000000000000000fa", }), transport: http(), }); const receipt = client.sendTransactionSync({ calls: [ { data: "0x…", to: "0x…" }, { data: "0x…", to: "0x…" }, { data: "0x…", to: "0x…" }, ], feePayer: privateKeyToAccount("0x…"), });
You can also use Tempo Actions to call to enshrined protocol features like the Stablecoin Token Factory:
import { createClient, http } from "viem"; import { privateKeyToAccount } from "viem/accounts"; import { tempoTestnet } from "viem/chains"; import { tempoActions } from "viem/tempo"; const client = createClient({ account: privateKeyToAccount("0x…"), chain: tempoTestnet, transport: http(), }).extend(tempoActions()); const { receipt, token } = await client.token.createSync({ currency: "USD", name: "My Company USD", symbol: "CUSD", });
Patch Changes
-
#4168
3ff6c2f19350dcbe49017e2b3d5a2cf761ab9070Thanks @albertov19! - Added DataHaven Testnet chain. -
aa19d02951f5af26bdcfb472901d940ba446672bThanks @jxom! - Added missing /#PURE/ annotations to chains. -
e0ccf5ba210a14ee17df49db90da2b37aa592222Thanks @jxom! - Added support for EntryPoint 0.9 ontoSimple7702SmartAccount. -
#4172
9b7d6734c2ac4b6b26f7284842eb685c92a85e8eThanks @richiedunk! - Added Somnia network. -
#4167
bf53fd1d78de1f5b5658e6d9242a348d1667c565Thanks @manuelbarbas! - Added New SKALE Base Chains (Testnet and Mainnet) -
4f7db6a9e9eacd4152ddf89c84f019e4b93b70f0Thanks @jxom! - AddeddefineChain#verifyHashfor chain-specific signature verification.
[email protected]
Patch Changes
-
#4162
8f665cdbeae06528b83cdbf9804d621eb0231b82Thanks @jxom! - Fixed WebSocket subscriptions being duplicated after reconnection when unwatching and rewatching. -
#4164
85b4f81fc73bb3217c4ad1e25e75c147ff2aa037Thanks @jxom! - FixedcreateCursorthrowing whenbytes.bufferis undefined in React Native environments. -
#4149
3b91dc2624780eef4798485f3b44ac9e46c69906Thanks @vriveraPeersyst! - Added XRPL EVM. -
b01e624f67c3cfa5205dbf09be14f86892529b26Thanks @jxom! - FixedwaitForUserOperationReceipttimeout not being respected. -
#4155
ea6805fd92757cec795d47cd04b24310464508ddThanks @sanketsaagar! - Fixed Polygon Amoy and Mainnet explorer API URLs. -
#4157
8105d1e10a96c1f608ec10ed333433ac766a7615Thanks @jxom! - AddedblockTimestamptoLogtype.
[email protected]
Minor Changes
-
#4134
d9d666beeccf748157d1292849f5a0d18768baf7Thanks @mikelxc! - Added EntryPoint v0.9 support for Account Abstraction (ERC-4337).- Added
entryPoint09AbiandentryPoint09Addressconstants - Added
'0.9'toEntryPointVersiontype - Added
UserOperation<'0.9'>with newpaymasterSignaturefield for parallelizable paymaster signing - Updated
getUserOperationHashto support v0.9 (uses EIP-712 typed data like v0.8) - Updated
toPackedUserOperationto handlepaymasterSignature - Updated
prepareUserOperationtype definitions for v0.9
- Added
Patch Changes
-
#4145
6104df73f8f38b55dc04174523ade8f25436f6daThanks @myronrotter! - Added Taiko Hoodi Testnet. -
#4144
6e6543861d95f8ebf6167a077dce39f1fe6febfaThanks @chawyehsu! - Add Stable Testnet -
#4137
97cec97451ff88ddaebf3b2a2a10fdb81e28b0daThanks @akitothemoon! - Added Henesys network. -
#4138
cf7bcc86422c32d70023e196dc2a85f6ad690b27Thanks @ihooni! - Support preconf for GIWA testnet
[email protected]
Patch Changes
be9879ff69eb9b7526878b18c32ead9eeb9f5335Thanks @jxom! - Added preference to use chain-specific prepared transaction nonce.
[email protected]
Minor Changes
fee56f5e9f0f66dc3c6cb52b891e933dde044410Thanks @jxom! - Addedchain.prepareTransactionRequestconfig that allows chain-specifc transaction preparation logic.
Patch Changes
1bda14ca5dd5d4bdcf0e0a9117ccc34ea7da64c9Thanks @jxom! - Added optimization to check ifeth_fillTransactionneeds to be called.e6cfa651b28c2c059f42cd250f7191262d121fbeThanks @jxom! - Removed redundant OP Stack gas estimations
[email protected]
Patch Changes
-
#3950
f73a2c959ff215856b7b56f60b4093e430d81e44Thanks @Kemperino! - Added estimateOperatorFee action for OP Stack chains -
#4125
a73183f305e9ea5f45a3f3742d110f34501a79acThanks @sandyup! - Added Reactive Lasna Testnet.
[email protected]
Patch Changes
- #4119
9b89137fa523fb0a7ab5afcef477375b6de9a86dThanks @jxom! - Fixed an issue where anonceManagerwould unexpectedly consume a nonce ifeth_fillTransactionis not supported.