viem@2.58.0
- 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!…