viem@2.58.0

Release 7 reads

Version
viem@2.58.0
Repository
wevm/viem

Release notes

Minor Changes

• 1f9d4ea9f581e4cd94662b900966c4345f7053b8 Thanks @ampagent! - Implemented performance improvements across ABI encoding and decoding, event logs, RLP, hex and data utilities, formatters, request batching, IPC, multicall, and transaction preparation.

Patch Changes

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Bounded the withCache caches and the EIP-1559 network cache in prepareTransactionRequest, which grew by one entry per client.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Rejected pending IPC requests when the node closes the connection, and shared one IPC socket between requests and subscriptions when reconnect is set.

#5546 ffbbc7eb9b4cee8b81b9e3031d654d75a6bc514b Thanks @gomesalexandre! - Fixed the Celo block formatter leaving type undefined on CIP-64 and deposit transactions, and mint unparsed on deposits, when includeTransactions is set.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Sped up formatLog by assigning args and eventName instead of spreading them into the formatted log.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Read the dispute game and the finalized state concurrently with the proof submitter in getWithdrawalStatus.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Estimated the priority fee concurrently with the block that detects the transaction type in prepareTransactionRequest when the chain has no fee hooks.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Sped up decodeAbiParameters by parsing parameters once per call, reading offsets, lengths and integers straight from the data, and tracking re-reads with a bitset.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Sped up encodeAbiParameters and encodeFunctionData by parsing parameters once per call, building the hex output in one pass, and caching function selectors per ABI item.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Sped up formatTransaction and the OP Stack, Celo, and zkSync block formatters by building transactions without delete and formatting each block transaction once.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Sped up padBytes, padHex, concatHex, trim, sliceHex and size by copying bytes with Uint8Array.set, comparing characters by char code and stripping the 0x prefix with slice.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Sped up parseEventLogs and decodeEventLog by preparing each event once per call, looking events up by selector, and reading address, uint and bytesN topics directly.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Sped up numberToHex for unsigned values, hexToNumber for safe integers, bytesToNumber and bytesToBigInt for unsigned values of up to 6 significant bytes, and signed hexToBigInt for negative values.

#5524 10d4ee2c6fb1b14d3e449ca186fab00cbde0dfe2 Thanks @mortezashojaei! - Fixed InvalidAbiEncodingTypeError, InvalidAbiDecodingTypeError, and InvalidSerializedTransactionTypeError to set their documented name.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Sped up toRlp, fromRlp, serializeTransaction and parseTransaction by encoding and decoding hex RLP directly from strings instead of converting through bytes.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Stopped requesting the latest block for legacy fees in prepareTransactionRequest when the chain has no fee hooks.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Queued batched requests in place and tracked a running batch size for split checks, so scheduling n requests in one batch no longer copies the queue n times.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom! - Kept IPC message framing state across data events and concatenated each message once, so large IPC responses are no longer rescanned and copied on every chunk.

#5543 79966ad2370800a546b10150f192c79b81370321 Thanks @jxom!…

Full release on GitHub ↗

Release viem

viem@2.58.4

Patch Changes • #5625 4357826238423ab3e18e7bc52a7952308ae224f0 Thanks @jxom! - Fixed viem/op-stack withdrawals on chains that move to a shared DisputeGameFactory in OP Stack Upgrade 22...

Release viem

viem@2.58.3

Patch Changes #5614 b4be930334b5a3eadc100abf1ad0d923f477f081 Thanks @mortezashojaei! - Fixed ccipRequest to include the gateway's EIP-3668 error message in HttpRequestError details...

Release Sui

Sui mainnet-v1.84.2

Sui v1.84.2: mainnet hotfix Sui Protocol Version in this release: 142 Validators • Fixes a fork in the address-balance funds withdraw scheduler. This only affects validators, and only...

Release viem

viem@2.58.2

Patch Changes #5601 bc5f35549f5e01fc6ea87571dd257cb7ad57a525 Thanks @jxom! - Stripped a trailing slash from a custom Arweave gateway when getEnsAvatar rewrites https://arweave.net...