Repository navigation
Releases
[email protected]
Patch Changes
- #5675
c667e59568348de4ff07e09ff788d1dcdfb72445Thanks @jxom! -viem/tempo: Added hash-only approvals of stored configurable account transactions, where the owner account is passed asaccount(or hoisted on the client) and Viem infers the configurable account from the operation.
[email protected]
Patch Changes
-
#5653
7a949ed6a8f05b7c8a1460101fbc190f6f1993e8Thanks @abhijitkrm! - Added Primium Testnet (Chain ID: 1234571) to the supported chains. -
#5654
9562ba0587f0e2b4b1b255ee6509004483f900f8Thanks @VenomekPL! - Added TSX Horizon (Chain ID: 455), TSX Bastion (Chain ID: 454) and TSX Testnet (Chain ID: 445) to the supported chains. -
#5672
64aef962b516c2d29d77c13f5c37df7de907871cThanks @jxom! -viem/tempo: Coordinated owner-approved transactions through any transport that serves theaccount_*methods, such ashttpto a relay withRelay.accounts, instead of only throughwithRelay. -
#5656
68291acb8c951ee8e5edafdddec59338f47c4dfcThanks @mortezashojaei! - Added the ERC-20 metadata functionsname,symbol, anddecimalsthat ERC-4626 vaults must implement toerc4626Abi.
[email protected]
Patch Changes
-
#5645
1c54cdc0d4f0af851f5b5aad86a88aaba3a8408fThanks @mortezashojaei! - FixedserializeErc8010Signaturethrowing for authorizations that have avbut noyParity. -
#5647
e3f5dc93aad8996ba2623b69ad8952820310da57Thanks @mortezashojaei! - AddedrequestsHash(EIP-7685) to theBlockandRpcBlocktypes returned bygetBlock. -
#5650
4079b5dc8589d3da8326395782b114be7556f9acThanks @mortezashojaei! - Fixederc721Abideclaring the ERC721EnumerabletokenOfOwnerByIndexfunction as atokenByIndexoverload and added the ERC-165supportsInterfacefunction that ERC-721 requires.
[email protected]
Patch Changes
- #5625
4357826238423ab3e18e7bc52a7952308ae224f0Thanks @jxom! - Fixedviem/op-stackwithdrawals on chains that move to a sharedDisputeGameFactoryin OP Stack Upgrade 22 (Lagoon) by reading the factory from the portal, treatedZK_DISPUTE_GAME(game type10) as a super-root game, and formatted theopGasRefundreceipt field.
[email protected]
Patch Changes
-
#5614
b4be930334b5a3eadc100abf1ad0d923f477f081Thanks @mortezashojaei! - FixedccipRequestto include the gateway's EIP-3668 errormessageinHttpRequestErrordetails instead of only the HTTP status text. -
#5622
0715fb19ac6b35f0e45509d506b60c394dc9a677Thanks @mortezashojaei! - FixedparseTransactioninviem/celodropping the signature (r,s,v, andyParity) of signed CIP-42 and CIP-64 transactions. -
#5613
9381167dfe73db732d979c6076301559a689e81fThanks @jxom! - Passed the latest block to the chainfees.estimateFeesPerGasandfees.baseFeeMultiplierhooks whenestimateFeesPerGasis called without a block. -
#5620
2395eba0946d3b2f666c9487f4a6ba5e8efce46fThanks @mortezashojaei! - DecodedsimulateBlocksandsimulateCallscontract call results with the overload matching the call'sargs. -
#5621
8a96a9980464492d69295a8e3303bb86410af9ffThanks @HereForTheTechNFT! - FixedvalidateSiweMessageto assume thehttpsscheme when the message omitsscheme, per EIP-4361. -
#5604
d90ffc7db962baf69bd0d620fa140ca440c70b1aThanks @mortezashojaei! - ThrewAccountStateConflictErrorwhen a state override set the same account more than once with different address casing.
[email protected]
Patch Changes
-
#5601
bc5f35549f5e01fc6ea87571dd257cb7ad57a525Thanks @jxom! - Stripped a trailing slash from a custom Arweave gateway whengetEnsAvatarrewriteshttps://arweave.netavatar URLs. -
#5609
c1f59aff0923c65cc23aa9bcdaeb7efb591761ffThanks @jxom! - Rejected CR, LF, U+2028, and U+2029 in SIWE statements inparseSiweMessageandcreateSiweMessage, and anchored the parsed suffix to a line start so long inputs no longer take quadratic time. -
#5606
b5df58607b511825e47a99faaf4f6d3318ea67e7Thanks @legion2002! -viem/tempo: Renamed theSignerSnapshotCachedevent onAbis.tip20ChannelReservetoOpeningCommitmentRecordedto match the TIP-1166 precompile, which no longer emits the old event, and addedverifyVoucherto the ABI with achannel.verifyVoucheraction.
[email protected]
Patch Changes
-
#5588
bdf936497e28d307be7a139e34727a3fbcac39faThanks @mortezashojaei! - AddedChainNotConfiguredErrorTypeandTransportNotConfiguredErrorTypesocreateClientResolver.ErrorTypenarrows on the namespaced error names. -
#5519
cf1071fb3fa469c7bcc61a29f3908f54ec9fb397Thanks @gomesalexandre! - Updated unavailable default RPC URLs for Klaytn, Klaytn Baobab, Metis, Shibarium, Puppynet Shibarium, TAC, TAC SPB Testnet, Mezo and Areon Network, and deprecatedareonNetworkin favor ofareum. -
#5579
ffdd25af4acd334b7f7f5c940d4c9195a36c69cdThanks @jxom! - UpdatedbaseandbaseSepoliablockTimeto 200 ms to match Base's 200 ms blocks, which lowers their defaultpollingIntervalto 500 ms. -
#5578
be73ffa779e69817ef9aea1a4db03f25ab6ad654Thanks @tydavid5! - Fixed the HTTP transport resolving withundefinedwhen the server replied to a request with an empty body, it now throws anHttpRequestErrorinstead. -
#5572
cb14298d7ecaca45a359b6a2fa68c1c35cfdc5caThanks @yinbowen-dc! - Fixed truncated ABI parameter heads being decoded from a stale position after a dynamic read. -
#5558
90e59ebbd05f331bc64047617e398f464dfa2b63Thanks @jxom! - FixedEIP1193ProviderRpcErrorto set its documentednameof'ProviderRpcError'(was'Error'). -
#5595
0f738319d08625218dfa52b26fc9537d375b14edThanks @jxom! - Fixedfallbackranking so that a failing Transport no longer stays first when every sampled latency is 0 ms. -
#5586
d8cac52afda6574e276d1b99c6607448baab4d33Thanks @jxom! - Fixed malformed JSON from theipctransport escaping the socket data listener instead of rejecting pending requests. -
#5573
a44ad6cf1bf555ca3f13ef8f8e4045e3c9519de2Thanks @yinbowen-dc! - Fixed IPC framing being permanently desynchronized by stray closing braces between messages. -
#5582
591c7b91cbf3890f373f8f71befac60f4a9f6344Thanks @jxom! - Fixedipctransport subscriptions hanging and skippingonErrorwhen the socket closed or errored. -
#5581
612cea0e633236149fcf64d51860f28af6fb88e2Thanks @jxom! - Fixed Multicall3blockCreatedfor Core Dao (6988931), BOB (0), Shape (0), Shape Sepolia (0), Soneium (0), Soneium Minato (0), Celo Sepolia (0), and XDC Apothem (84333000). -
#5571
515d5a5fe6c0acc90fe82eede8593b6531a3cd60Thanks @yinbowen-dc! - Fixed right-side hex trimming to remove whole zero bytes without shifting nonzero nibbles. -
#5597
6c3e120f9b2132c1518995dd41650ff5e33d5eaaThanks @jxom! - Fixed socket clients so that dropping a client that will not reconnect closes its socket, and a failed request is no longer reported again on later disconnects. -
#5584
c8b2a59799dcb908e11691dc78c646f4311b098bThanks @jxom! - Fixed WebSocket and IPC unsubscribe requests hanging on socket failures or missing responses, without raising unhandled rejections when the result is not awaited. -
#5594
9d4822539a2029b0e024e73f0bf2521870b75944Thanks @jxom! - Fixedhttptransport batches to match replies to requests by id (also when the server echoes a numeric id as a string), so a reply withid: nullno longer gives other requests the wrong results. -
#5520
43f4b879c2fa78bb1f00301f8bcd827707ba6051Thanks @gomesalexandre! - Updated HPP Sepolia and Orderly Sepolia default RPC URLs and the Orderly Sepolia block explorer URL, and removed unusable HPP default WebSocket URLs. -
#5580
8a2bf7bf6d3059c383737b8d50b171149bfe33deThanks @jxom! - FixedcreateSiweMessageaccepting arequestIdwith a line break, which let it append fields such asResourcesto the signed message; it now throwsSiweInvalidMessageFieldError. -
#5583
53184e3c4164b7cb89f5dd7da30f2a8ec2056a56Thanks @jxom! - FixedwrapTypedDataSignatureand the ERC-7739signTypedDataaction producing signatures that ERC-7739 accounts rejected when a nested type sorted before the primary type. -
#5590
66b6f1f458ae1e8dde977984a5a1258836352d48Thanks @jxom! - FixeddecodeAbiParameters,hexToString, andbytesToStringdropping a leading U+FEFF (byte order mark) from decoded strings. -
#5556
4febd2254b53b9ebd692b1c7ed38e42558d3489cThanks @jxom! - FixedvalidateTypedData(and sohashTypedData,signTypedData,verifyTypedDataandrecoverTypedDataAddress) accepting a fixed-length array field such asuint256[2]whose value has a different number of elements, in any dimension or inside a struct array; it now throwsAbiEncodingArrayLengthMismatchError. -
#5587
26e438a2b7f64f38e559d1625a41a30ff35010b2Thanks @jxom! - Added the error types of the actions and helpers called internally toGetL1TokenBalanceErrorTypeandIsWithdrawalFinalizedErrorType, so propagated contract and RPC failures are described by those unions.
[email protected]
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 [
73f5149b38fcf82975bc1bf8fdbab9b613db1476](https://github.com/wevm/vi...
[email protected]
Patch Changes
-
#5499
018d5605fb23612e0395f453dabd2c917e763ca4Thanks @jxom! - Updatedoxto0.14.67, which parses Tempo WebAuthn signatures in linear time and refuses those above 2048 bytes, refuses a keychain signature nested in a keychain signature, a key authorization scope withrecipientsand noselector, a compressed public key where a Tempo address is derived, and a Tempo transaction with avalidBeforeorvalidAfterthat is not a non-negative safe integer number, achainIdthat is not a positive safe integer, or a fee payer signatureyParityother than0or1, hashes the payload inSecp256k1.verifyofviem/tempowhenhash: trueis used withaddress, and refuses calldatawith an odd number of hex digits inviem/experimental/erc7821. -
#5512
fb861e2d3a0f576843a7e51070b8e91da0a0137eThanks @wavebyrd! - Fixed Multicall3blockCreatedfor Darwinia (251739) and Flow EVM Mainnet (968659). -
#5508
4b122ec322497536e77f8411d50636723aa971daThanks @erkancamli! - FixedgetTypesForEIP712Domainto include every domain field that is present (notundefinedornull), so that a domain with a stringchainId(e.g. from a JSON payload) is no longer hashed and signed withoutchainId. -
#5504
c05ab61850ffe305e12e85c2be154156ac39e8f7Thanks @jxom! - Fixed batchedhttpand multicall requests flushing beforewaitelapsed after an earlier batch was split atbatchSize. -
#5515
fb1687aa92faf11ae95d4bc6a98c08c0a5c23de7Thanks @jxom! - FixedpublicKeyToAddresssilently returning a wrong address for public keys that are not uncompressed (65 bytes with a0x04prefix), such as compressed keys; it now throwsInvalidPublicKeyError. -
#5514
9677703fc287efc59ef227f45332dc4f7d60e48aThanks @jxom! - CachedchecksumAddressresults by the lowercase address, so differently cased inputs no longer recompute the hash, and skipped theisAddresscache for checks that do not need a checksum. -
#5505
8d3f29e03333d40283811dc69dbd02cdee2bd354Thanks @jxom! - Fetched the nonce, block, and priority fee concurrently inprepareTransactionRequestwhen the chain has no fee hooks. -
#5511
5f60d1d8a604cf65b54f8ce0b8ac3ce6d3f4b6e6Thanks @backseats! - Replaced runtimeparseAbicalls incallwith literal ABIs, removing the human-readable ABI parser from bundles that only read contracts. -
#5513
1759adf32ddbfc68060e7cb3b05c889075b1d10dThanks @jxom! - FixedfromRlpaccepting non-minimal RLP length prefixes and length-prefixed single bytes below0x80, which now throwRlpNonCanonicalError.
[email protected]
Patch Changes
-
#5498
e87e3ec03457c503377648548628180881974035Thanks @jxom! - Fixed the TempoverifyHashhook accepting a signature of a root key that a config commitment retired, which madeverifyHash,verifyMessage, andverifySiweMessageread the account's config commitment for a signature that recovers to the account, in everymode. -
#5496
a0ddd34678563d1bab367357eae5d4ab4553115fThanks @jxom! - FixedRelay.create(...).fetchnever answering 413 for a body over 16 MiB when the request had an unread clone. -
#5498
e87e3ec03457c503377648548628180881974035Thanks @jxom! - FixedActions.accounts.getConfigCommitmentinviem/temporejecting on chains without the configurable account precompile, where it now returns the zero commitment. -
#5494
0fee300f54aa6da04e4d2094c5f169ae1909fd1fThanks @mortezashojaei! - FixedInvalidDomainErrorandInvalidPrimaryTypeErrorto set theirname, and correctedTxHashNotFoundInLogsErrorTypeto describeTxHashNotFoundInLogsError. -
#5490
1e117b1a6cf13fb0fb06ac6e002759fc0a66570bThanks @fmrmf! - Added Kinetiq Elysium and Kinetiq Elysium Testnet chains. -
#5495
f3fe670de4c8df551462602291caf28ff8f5dfb1Thanks @jxom! - Resolved the actions called bydeployContract,getDelegation,sendCalls, andsignAuthorizationthroughgetAction, so overrides of those actions on the client are used. -
#5493
cd91b17b229be5c06c02c57cb80a6188cf10fd0dThanks @mortezashojaei! - Appended the genericErrorTypetoGetFeeHistoryErrorType,GetEnsTextErrorType, andPrepareTransactionRequestErrorTypeso unexpected throw sites are assignable. -
#5488
5c6a920eb5ce88d50f64e22f1d848b29818c48d7Thanks @brendanjryan! - AddedchainIdtoResolvedToken, so a token resolved withtoken(chainId)records the chain it was resolved for, and added the Tempo Moderato address toousd.