Skip to content

Releases: wevm/viem

[email protected]

22 Feb 03:25
874867c
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • #81 eb572b0 Thanks @jxom! - Improved transaction & contract error messaging & coalesce error messages from nodes.

[email protected]

21 Feb 21:14
6e9b7d4
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 6bdee9c Thanks @jxom! - Fixed issue where fallback transport was not falling back on timeouts

[email protected]

20 Feb 20:28
aea95eb
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 8ef068b Thanks @jxom! - Added 502, 503 and 504 error codes as "non-deterministic" errors for fallback transport & retries.

  • #79 db9caa9 Thanks @jxom! - Added timeout as a config option to the http and webSocket Transports.

  • #77 d6a29f5 Thanks @jxom! - Decorated Clients with their respective Actions.

    Example:

    import { createPublicClient, http } from 'viem'
    import { mainnet } from 'viem/chains'
    -import { getBlockNumber } from 'viem/public'
    
    const client = createPublicClient({
      chain: mainnet,
      transport: http(),
    })
    
    - const blockNumber = await getBlockNumber(client)
    + const blockNumber = await client.getBlockNumber()

[email protected]

14 Feb 05:50
853e13f
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 7d9a241 Thanks @jxom! - Added estimateContractGas.

  • 7d9a241 Thanks @jxom! - Added retryCount and retryDelay config to Transports.

[email protected]

11 Feb 10:54
4daa8c8
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 6c902f8 Thanks @jxom! - Added decodeEventLog.

  • #68 1be77b3 Thanks @jxom! - Breaking: Removed all public/wallet/test actions & utils from the viem entrypoint to their respective entrypoints:

    • viem = Clients & Transport exports
    • viem/chains = Chains exports
    • viem/contract = Contract Actions & Utils exports
    • viem/ens = ENS Actions & Utils exports
    • viem/public = Public Actions exports
    • viem/test = Test Actions exports
    • viem/utils = Utils exports
    • viem/wallet = Wallet Actions exports
  • #66 f19fc32 Thanks @tmm! - Added ENS actions getEnsAddress and getEnsName.

[email protected]

09 Feb 19:58
9b2faa0
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • #63 7473582 Thanks @tmm! - Exported missing watchContractEvent and watchEvent actions.

[email protected]

09 Feb 16:42
7513820
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

[email protected]

09 Feb 00:58
5e26410
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • #57 40c76e3 Thanks @jxom! - support Panic & custom contract errors

  • #56 3e90197 Thanks @jxom! - - Breaking: Renamed humanMessage to shortMessage in BaseError.

    • Added multicall.
    • Support overloaded contract functions.

[email protected]

07 Feb 01:50
3b0f7a4
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 5a6bdf8 Thanks @jxom! - Fixed an issue where encodeAbi couldn't encode dynamic bytes larger than 32 bytes"

[email protected]

06 Feb 02:09
c3d740a
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • ebf1dc8 Thanks @jxom! - Added watchEvent

  • ebf1dc8 Thanks @jxom! - Added watchContractEvent

  • ae90357 Thanks @jxom! - Made watchBlocks more type safe with the includeTransactions arg.