Releases: wevm/viem
Release list
[email protected]
Minor Changes
-
#4817
2825f37bd4d9429a312dad378410d63c67feb0f8Thanks @davidperk! - AddeddepositNonceanddepositReceiptVersionto OP Stack transaction receipts. -
#4822
0ef1b5d84abc6f03c4f7573ca5bab851593ccb2fThanks @tmm! - AddedfilterChainsutility for filtering chain definitions by structured criteria.
Patch Changes
-
#4809
c93d355d68f2ac98d5f139c963564651576793deThanks @defiQUG! - Added Defi Oracle Meta Mainnet chain. -
#4818
48324f72c057e5e52545e4672408af6bc9eeb60aThanks @cctdaniel! - Added Robinhood Chain and Robinhood Chain Testnet chains.
[email protected]
Patch Changes
- #4807
f1ac4480d0c1c6f29bf709f116068e903643ecadThanks @jxom! -viem/tempo: Supported calling token.callbuilders without a Client (restores the pre-2.54call signature). When the Client is omitted,tokenmust be a TIP20 token id or contract address, and formatted amounts require explicitdecimals.
[email protected]
Patch Changes
-
#4803
49fa5c885c5478e3e7a92411d7b309785df36974Thanks @jxom! -viem/tempo: Fixed fee-payer sponsorship for native multisig transaction preparation and serialization. -
#4805
5c0aae47181b13f58c7125542c13a2bc82f8662bThanks @jxom! -viem/tempo: Preserved sponsor-returnedfeeTokenvalues frometh_fillTransactionresponses withfeePayerSignature.
[email protected]
Patch Changes
- #4801
8d1db77e6379cfb4028cb8f0742b6633311fce43Thanks @jxom! - AddedgetRawTransactionaction to retrieve a raw, serialized transaction viaeth_getRawTransactionByHash.
[email protected]
Patch Changes
-
#4792
da4f54be6d3b5f5b0741e9ade94055685f9247c1Thanks @jxom! -viem/tempo: Added TIP-1061 multisig gas estimation hints (multisigInit,multisigSignatureCount), and attachedmultisigInitto multisig requests so node-side fill and estimation price bootstrap gas. -
#4792
da4f54be6d3b5f5b0741e9ade94055685f9247c1Thanks @jxom! - Updatedoxto0.14.30. -
#4791
515b637cde2d0338f012abfb501f1983440e4e76Thanks @jxom! - FixedencodeAbiParametersanddecodeAbiParametershandling of zero-width types (zero-length fixed arrays and empty tuples).
[email protected]
Patch Changes
-
#4742
71f8731a4cb0d569f7bc9453bc27e238f3f90c29Thanks @lifeofjer! - Added Mars Credit chain. -
#4790
e5626e3ec72149721d1109a8a638ae9aea982695Thanks @jxom! - Rejected RLP payloads infromRlpwith trailing bytes after the decoded item or list items extending beyond their declared list length. -
#4768
48175663f1bb2b2a2a32d51c8e87100d977b3eb9Thanks @nikhilkumar1612! - FixedestimateUserOperationGasomittingfeesduring User Operation preparation, which caused strict bundlers to reject gas estimation requests. -
#4784
404a11944045b88405fec20b52f8d9b7fa727056Thanks @decofe! - Added Storage Credits (TIP-1060) precompile ABI & address to Tempo exports. -
#4789
1e93747abba0f0d8286e083c6c1ff3f07a640aa6Thanks @jxom! - Added Storage Credits (TIP-1060) precompile selectors to Tempo exports. -
#4786
b4b3cbed4329e1d49887ed5812b07610a84a6b32Thanks @struong! - Addedzone.encryptedDeposit.preparefor Tempo Zone encrypted deposits. -
#4788
74699ef25d0549f020c168a7ff535bee5e50adf0Thanks @jxom! - Updatedwsto8.21.0. -
#4758
0fafede5136b42a5322f8f900961e9b3fe9a526fThanks @decofe! - Added validation rejecting Tempo receive policy claimers that can never claim funds (TIP-1022 virtual addresses, TIP-20 token addresses, and Tempo system precompiles), and exportedAddresses.tip20ChannelReserve.
[email protected]
Patch Changes
-
#4780
7ce10f40e466273fdc6926127394d36d0955c688Thanks @tmm! - Added EURC, USYC, and cirBTC token definitions toviem/tokens. -
#4780
7ce10f40e466273fdc6926127394d36d0955c688Thanks @tmm! - Added USDC token addresses for more supported chains. -
#4782
cf4bdca930df835452a467efd95c59a5e2a4a89fThanks @jxom! - Added atokensexport toviem/tokenswith curated token sets (tokens.all,tokens.popular,tokens.tempo) that can be passed to a Client'stokensproperty.viem/tempo'screateClientnow defaultstokenstotokens.tempo.
[email protected]
Minor Changes
-
#4767
0def05663277a93e645bc28740a78bfc916810ecThanks @jxom! - Breaking (viem/tempo): Changed Tempo token balance and allowance reads to returnAmountobjects.-const balance = await client.token.getBalance({ token }) -// ^? bigint +const balance = await client.token.getBalance({ token }) +// ^? { amount: bigint; decimals: number; formatted: string } -const allowance = await client.token.getAllowance({ account, spender, token }) -// ^? bigint +const allowance = await client.token.getAllowance({ account, spender, token }) +// ^? { amount: bigint; decimals: number; formatted: string }
-
#4767
0def05663277a93e645bc28740a78bfc916810ecThanks @jxom! - Breaking (viem/tempo): Changed Tempo token.callhelpers to take the client before their action arguments.-Actions.token.transfer.call({ token, to, amount }) +Actions.token.transfer.call(client, { token, to, amount }) -Actions.token.getBalance.call({ account, token }) +Actions.token.getBalance.call(client, { account, token })
-
#4767
0def05663277a93e645bc28740a78bfc916810ecThanks @jxom! - Breaking: Changed ERC-20 token actions to resolve token symbols from the Clienttokensarray instead of built-in chaintokensconfig.import { createPublicClient, http } from 'viem' import { mainnet } from 'viem/chains' +import { usdc } from 'viem/tokens' -const client = createPublicClient({ chain: mainnet, transport: http() }) +const client = createPublicClient({ + chain: mainnet, + tokens: [usdc], + transport: http(), +}) const balance = await client.token.getBalance({ account, token: 'usdc' }) -
#4767
0def05663277a93e645bc28740a78bfc916810ecThanks @jxom! - Addedviem/tokensentrypoint.
Patch Changes
-
#4739
cc3c2ff6a50dbca96a665c8fc2ad635f86d94f53Thanks @Equious! - Added BattleChain Mainnet (chainId 626) toviem/chains. -
#4733
1caa5766109309d5fab48f1c4316deff5f504f9cThanks @2wheeh! - Added MarooTestnet chain. -
#4772
b0a0e1ccd158198d56903759d362f22716a6b1e7Thanks @jxom! - Added an RLP depth limit for decoding deeply nested payloads.
[email protected]
Patch Changes
- #4748
ed55a13fbf8af9c587d94a3363f507e642236e93Thanks @jxom! -viem/tempo: AddedcreateClienttoviem/tempowith a default chain, transport, and actions.
[email protected]
Patch Changes
- #4718
1969c01715736de8a16b841cfed81640f0d708c2Thanks @jxom! - Tempo: Set thet5hardfork on the Tempo Testnet (Moderato) chain.