Repository navigation
Patch Changes
-
#5395
c60ca26e030706610bcf61689331008a30a3db2aThanks @jxom! -viem/tempo:gatewayActionspaid in the Gateway currency the Client account held most of, threwGateway.InsufficientFundsError(with the account's balances) when it couldn't pay, and explained how to pay inGateway.PaymentRequiredError. -
#5392
9348d386a9f62fd6713124e25360d6040e4a34cfThanks @gakonst! - Stopped retrying JSON-RPC method-not-found (-32601) and method-not-supported (-32004) errors from non-2xx HTTP responses, since a retry gets the same refusal. -
#5392
9348d386a9f62fd6713124e25360d6040e4a34cfThanks @gakonst! - Reduced per-request overhead of thehttp,webSocketandipctransports by building theonFetchRequestRequestonly when the hook is set and theTimeoutErroronly when a request times out, and fetched the withdrawal receipt once in the ZKsyncfinalizeWithdrawalandisWithdrawalFinalizedactions. -
#5392
9348d386a9f62fd6713124e25360d6040e4a34cfThanks @gakonst! - Cached signature hashes intoSignatureHash, so selector lookups indecodeFunctionData,decodeEventLog,decodeErrorResultandencodeFunctionDatano longer hash every ABI item on each call. -
#5391
721d6824516514195c0a98971731c6d81b2f9032Thanks @jxom! -viem/tempo: Added experimentalGatewayandgatewayActions(client.ai,client.bucket,client.compute,client.kv), with standaloneActions.ai,Actions.bucket,Actions.compute, andActions.kv, withclient.gateway.getCapabilities,Actions.gateway.getCapabilitiesand defaults for every option (gatewayActions()), for wallet-paid inference (including streamed text), object storage, metered and streamed CPU and GPU compute, and key-value state on a Tempo Gateway paid with a local Client account through the optionalmppxpeer dependency, with Tempo Wallet through the Accounts SDK, or with an app-supplied payment-awarefetch.