Minor Changes
1f9d4ea9f581e4cd94662b900966c4345f7053b8Thanks @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
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Bounded thewithCachecaches and the EIP-1559 network cache inprepareTransactionRequest, which grew by one entry per client. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Rejected pending IPC requests when the node closes the connection, and shared one IPC socket between requests and subscriptions whenreconnectis set. -
#5546
ffbbc7eb9b4cee8b81b9e3031d654d75a6bc514bThanks @gomesalexandre! - Fixed the Celo block formatter leavingtypeundefined on CIP-64 and deposit transactions, andmintunparsed on deposits, whenincludeTransactionsis set. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped upformatLogby assigningargsandeventNameinstead of spreading them into the formatted log. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Read the dispute game and the finalized state concurrently with the proof submitter ingetWithdrawalStatus. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Estimated the priority fee concurrently with the block that detects the transaction type inprepareTransactionRequestwhen the chain has no fee hooks. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped updecodeAbiParametersby parsing parameters once per call, reading offsets, lengths and integers straight from the data, and tracking re-reads with a bitset. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped upencodeAbiParametersandencodeFunctionDataby parsing parameters once per call, building the hex output in one pass, and caching function selectors per ABI item. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped upformatTransactionand the OP Stack, Celo, and zkSync block formatters by building transactions withoutdeleteand formatting each block transaction once. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped uppadBytes,padHex,concatHex,trim,sliceHexandsizeby copying bytes withUint8Array.set, comparing characters by char code and stripping the0xprefix withslice. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped upparseEventLogsanddecodeEventLogby preparing each event once per call, looking events up by selector, and readingaddress,uintandbytesNtopics directly. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped upnumberToHexfor unsigned values,hexToNumberfor safe integers,bytesToNumberandbytesToBigIntfor unsigned values of up to 6 significant bytes, and signedhexToBigIntfor negative values. -
#5524
10d4ee2c6fb1b14d3e449ca186fab00cbde0dfe2Thanks @mortezashojaei! - FixedInvalidAbiEncodingTypeError,InvalidAbiDecodingTypeError, andInvalidSerializedTransactionTypeErrorto set their documentedname. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped uptoRlp,fromRlp,serializeTransactionandparseTransactionby encoding and decoding hex RLP directly from strings instead of converting through bytes. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Stopped requesting the latest block for legacy fees inprepareTransactionRequestwhen the chain has no fee hooks. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Queued batched requests in place and tracked a running batch size for split checks, so schedulingnrequests in one batch no longer copies the queuentimes. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Kept IPC message framing state acrossdataevents and concatenated each message once, so large IPC responses are no longer rescanned and copied on every chunk. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Appended calls tomulticallchunks in place instead of copying the chunk for every call, making chunking linear in the number of calls. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped uphashTypedDataandhashStructby computing each struct type hash once per call. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped upbytesToHexby using the nativeUint8Array.prototype.toHexwhen the runtime has it, andstringToHexandstringToBytesby skippingTextEncoderfor ASCII strings of up to 64 characters. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Awaited the nonce from anonceManagertogether with the other parameters inprepareTransactionRequest, while still consuming it in call order. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Read the bridge addresses, fees, and token metadata concurrently in the ZKsyncdepositAction, and reused the bridge addresses instead of requesting them twice. -
#5548
2970f8c74816bdf25ef248c08edb648680195b4aThanks @gomesalexandre! - FixedgetGamesand the OP Stack actions built on it (getWithdrawalStatus,waitToProve,getTimeToProve,getGame,getL2Output) throwing aTypeErroron fault-proof chains that do not definedisputeGameFactory, by reading the factory address from the portal instead. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped upbytesToStringandhexToStringby reusing oneTextDecoder,normalizeSignatureby comparing characters directly, andformatUnitsby trimming trailing zeros without a regular expression. -
#5521
c368d8393edae7cb7f7bcdc09711bfc9e102bff2Thanks @jxom! - Looked up the in-flight request cache once instead of twice on deduplicated cache hits, halving the LRU refreshes per hit. -
#5547
73f5149b38fcf82975bc1bf8fdbab9b613db1476Thanks @gomesalexandre! - AddeddisputeGameFactoryto 10 OP Stack chains whose portals use fault proofs and updated Superseed's stale one, which fixed the withdrawal status actions on those chains. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - StoppedwaitForTransactionReceiptfrom starting to poll when itstimeoutfired during the first receipt lookup. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - GeneratedgenerateSiweNoncenonces fromcrypto.getRandomValues, since consecutive nonces previously shared 95 of their 96 characters. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Kept WebSocket and IPC clients reconnecting after a failed attempt, and dropped a client whose attempts ran out so the next request opens a new socket. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Requested the block and the priority fee concurrently inestimateFeesPerGaswhen the chain has no fee hooks, and stopped requesting the unused block for legacy fees. -
#5543
79966ad2370800a546b10150f192c79b81370321Thanks @jxom! - Sped uphexToBytesby decoding through a nibble lookup table straight into the output, andtoBytesby decoding0xstrings in one pass instead of checking them withisHexfirst. -
#5550
4bd026ac8088650fd98679c30de99641b75b9345Thanks @jxom! -viem/tempo: Added thet15hardfork toHardfork. -
#5545
076464179ad0a1c17576dc23f8c5695470e31219Thanks @brendanjryan! - Added TIP-1166 support toviem/tempochannels: theSignerSnapshotCachedevent andSignerConfigChangedandSaltNotSignerCommitmenterrors on the channel reserve ABI,channel.getOpenSalt, typedChannelSignerConfigChangedErrorandChannelSaltNotSignerCommitmentError, and a defaultsaltforchannel.openset to the voucher signer's configuration commitment when the signer is a configurable account or an access key of one. -
#5544
f390caa499468231e7b282400e683df9f79081d2Thanks @dmytrozahumennov-wb! - Added OP Stack config towhitechainand deprecatedwhitechainTestnet.