Skip to content

Latest commit

 

History

History
476 lines (272 loc) · 20.4 KB

CHANGELOG.md

File metadata and controls

476 lines (272 loc) · 20.4 KB

viem

0.1.16

Patch Changes

  • #207 8e5768f Thanks @jxom! - Added assertion in watchBlocks and watchBlockNumber to check that the next block number is higher than the previously seen block number.
  • #209 ae3e0b6 Thanks @jxom! - Added verifyMessage, recoverAddress, recoverMessageAddress, and hashMessage.

0.1.15

Patch Changes

  • #205 36fa97a Thanks @jxom! - Added an assertion to check for existence of an event signature on topics for decodeEventLog

0.1.14

Patch Changes

  • #198 e805e7e Thanks @wighawag! - Added an assertion in decodeEventLog to check for a mismatch between topics + indexed event parameters.

0.1.13

Patch Changes

0.1.12

Patch Changes

0.1.11

Patch Changes

0.1.10

Patch Changes

0.1.9

Patch Changes

  • #170 35a7508 Thanks @jxom! - Added inference for multicall address from client chain.

0.1.8

Patch Changes

  • 36c908c Thanks @jxom! - Fixed an issue where empty strings were not being decoded properly in decodeAbiParameters.

0.1.7

Patch Changes

  • #159 574ae22 Thanks @jxom! - Fixed issue where decoding error logs would break if constructor was in ABI.

0.1.6

Patch Changes

  • #153 bbb998a Thanks @jxom! - Formatted undefined values from RPC as null to conform to EIP-1474.

0.1.5

Patch Changes

0.1.4

Patch Changes

  • #139 304a436 Thanks @jxom! - Added the following chains:

    • baseGoerli
    • boba
    • filecoinCalibration
    • flare
    • flareTestnet
    • harmonyOne
    • moonbaseAlpha
    • moonbeam
    • moonriver
    • okc
    • polygonZkEvmTestnet
    • shardeumSphinx
    • songbird
    • songbirdTestnet
    • telos
    • telosTestnet
    • zhejiang

0.1.3

Patch Changes

  • #136 dcca090 Thanks @jxom! - Fixed ABI encoding for strings larger than 32 bytes.

0.1.2

Patch Changes

0.1.1

Patch Changes

0.1.0

Minor Changes

0.0.1-alpha.39

Patch Changes

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

0.0.1-alpha.38

Patch Changes

0.0.1-alpha.37

Patch Changes

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

0.0.1-alpha.36

Patch Changes

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

    Breaking: Renamed getAccounts Wallet Action to getAddresses

  • #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

0.0.1-alpha.35

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)

0.0.1-alpha.34

Patch Changes

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

0.0.1-alpha.33

Patch Changes

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

0.0.1-alpha.32

Patch Changes

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

0.0.1-alpha.31

Patch Changes

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

0.0.1-alpha.30

Patch Changes

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

0.0.1-alpha.29

Patch Changes

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

0.0.1-alpha.28

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()

0.0.1-alpha.26

Patch Changes

Breaking: Renamed encoding utils.

  • encodeBytes/decodeBytestoBytes/fromBytes
  • encodeHex/decodeHextoHex/fromHex
  • encodeRlp/decodeRlptoRlp/fromRlp

0.0.1-alpha.26

Patch Changes

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

0.0.1-alpha.25

Patch Changes

  • #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.

0.0.1-alpha.24

Patch Changes

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

0.0.1-alpha.23

Patch Changes

0.0.1-alpha.22

Patch Changes

  • #56 3e90197 Thanks @jxom! - - Breaking: Renamed humanMessage to shortMessage in BaseError.
    • Added multicall.
    • Support overloaded contract functions.

0.0.1-alpha.21

Patch Changes

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

0.0.1-alpha.20

Patch Changes

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

0.0.1-alpha.19

Patch Changes

0.0.1-alpha.18

Patch Changes

0.0.1-alpha.17

Patch Changes

  • ac69d16 Thanks @jxom! - Breaking: Replaced callContract with simulateContract.

0.0.1-alpha.16

Patch Changes

0.0.1-alpha.15

Patch Changes

  • a74d643 Thanks @jxom! - Breaking: Removed the viem/actions export in favor of viem/public, viem/test & viem/wallet exports.

0.0.1-alpha.14

Patch Changes

0.0.1-alpha.13

Patch Changes

0.0.1-alpha.12

Patch Changes

0.0.1-alpha.11

Patch Changes

  • 43700d9 Thanks @jxom! - Fixed issue where preinstall/postinstall scripts were being published to NPM.

0.0.1-alpha.10

Patch Changes

0.0.1-alpha.9

Patch Changes

0.0.1-alpha.8

Patch Changes

0.0.1-alpha.7

Patch Changes

0.0.1-alpha.6

Patch Changes

0.0.1-alpha.5

Patch Changes

0.0.1-alpha.4

Patch Changes

0.0.1-alpha.3

Patch Changes

  • 849653f Thanks @jxom! - - Breaking: Renamed encodeFunctionParams to encodeFunctionData.
    • Added decodeFunctionData.

0.0.1-alpha.2

Patch Changes

0.0.1-alpha.1

Patch Changes

  • d722728 Thanks @jxom! - - Breaking: Renamed ethereumProvider Transport to custom.
    • Breaking: Refactored Transport APIs.
    • Breaking: Flattened sendTransaction, call & estimateGas APIs.
    • Added encodeAbi & decodeAbi.
    • Added fallback Transport.
    • Added getFilterLogs.