Skip to content

Releases: wevm/viem

[email protected]

03 Mar 02:20
c6ae16f
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 68c3816 Thanks @jxom! - Added encodePacked.

  • 68c3816 Thanks @jxom! - Made keccak256 accept a hex value (as well as byte array).

[email protected]

01 Mar 20:36
0136f8c
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

[email protected]

01 Mar 04:58
51281ce
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • e07f212 Thanks @jxom! - Breaking: Renamed formatUnit and parseUnit to formatUnits and parseUnits.

[email protected]

28 Feb 06:48
e3a93cc
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • #100 6bb8ce4 Thanks @jxom! - Breaking: Renamed requestAccounts Wallet Action to requestAddresses

    Breaking: Renamed getAccounts Wallet Action to getAddresses

  • #100 6bb8ce4 Thanks @jxom! - Added support for Externally Owned Accounts.

  • #100 6bb8ce4 Thanks @jxom! - Breaking: The from argument has been removed from Actions in favour of account to distinguish between Account types:

    + import { getAccount } from 'viem'
    
    const [address] = await walletClient.requestAddresses()
    + const account = getAccount(address)
    
    const hash = await walletClient.sendTransaction({
    - from: address,
    + account,
      to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
      value: 1000000000000000000n
    })

    Affected actions:

    • call
    • estimateGas
    • sendTransaction
    • signMessage
    • estimateContractGas
    • multicall
    • readContract
    • simulateContract
    • writeContract

[email protected]

27 Feb 22:33
c38441d
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 057e01e Thanks @jxom! - - testClient.getTxPoolContenttestClient.getTxpoolContent

    • testClient.getTxPoolStatustestClient.getTxpoolStatus
  • #85 2350d1a Thanks @jxom! - Breaking: Renamed encodeAbi & decodeAbi to encodeAbiParameters & decodeAbiParameters, and modified API from named arguments to inplace arguments:

    import {
    - encodeAbi,
    - decodeAbi,
    + encodeAbiParameters,
    + decodeAbiParameters,
    } from 'viem'
    
    -const result = encodeAbi({ params, values })
    +const result = encodeAbiParameters(params, values)
    
    -const result = decodeAbi({ params, data })
    +const result = decodeAbiParameters(params, data)

[email protected]

25 Feb 00:15
446a56e
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • e1634b5 Thanks @jxom! - Fixed ABI encoding dynamic tuple child derivation

[email protected]

24 Feb 03:38
4b8c653
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 1971e6a Thanks @jxom! - Added assertion to check if addresses are valid for sendTransaction, estimateGas & call.

[email protected]

23 Feb 05:55
5d1cfc1
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 7243744 Thanks @jxom! - Added support for 4001 & 4902 RPC error codes.

[email protected]

22 Feb 20:50
dd4c3c6
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • #89 3e45853 Thanks @jxom! - Added fetchOptions to the http transport.

  • #91 0ac32c2 Thanks @jxom! - Breaking: Renamed getFunctionSignature and getEventSignature to getFunctionSelector and getEventSelector.

[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.