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.