viem

TypeScript Interface for Ethereum

OTHER License

Downloads
2.5M
Stars
2K
Committers
391

Bot releases are hidden (Show)

viem - [email protected]

Published by jxom 9 months ago

Patch Changes

viem - [email protected]

Published by jxom about 1 year ago

Patch Changes

  • #1102 0edea858 Thanks @rkalis! - Fixed bug regarding incorrect bigint->bytes32 conversion in hexToSignature
viem -

Published by jxom about 1 year ago

Patch Changes

viem - 1.0.0

Published by jxom over 1 year ago

Migration Guide

Major Changes

  • #576 7d42767 Thanks @jxom! - Breaking (edge case): decodeEventLog no longer attempts to partially decode events. If the log does not conform to the ABI (mismatch between the number of indexed/non-indexed arguments to topics/data), it will throw an error.
  • #576 7d42767 Thanks @jxom! - Breaking: logIndex & transactionIndex on Log now return a number instead of a bigint
  • #576 7d42767 Thanks @jxom! - Breaking: Removed ethersWalletToAccount adapter.

    This adapter was introduced when viem did not have Private Key & HD Accounts. Since 0.2, viem provides all the utilities needed to create and import Private Key & HD Accounts.

    If you still need it, you can copy + paste the old implementation.

Patch Changes

  • #657 af48368 Thanks @izayl! - Fixed getAbiItem from returning mismatched type when overload with different lengths.
  • #576 7d42767 Thanks @jxom! - Upgraded ENS Universal Resolver contract address.
  • #576 7d42767 Thanks @jxom! - Added support for labels larger than 255 bytes when resolving ENS names.
  • #576 7d42767 Thanks @jxom! - Added a strict parameter to getLogs, createEventFilter & createContractEventFilter.

    When strict mode is turned on, only logs that conform to the indexed/non-indexed arguments on the event definition/ABI (event) will be returned.
    When strict mode is turned off (default), logs that do not conform to the indexed/non-indexed arguments on the event definition/ABI (event) will be included, but the args property will be undefined (as we cannot decode these events).

viem -

Published by jxom over 1 year ago

Patch Changes

  • 0d38807 Thanks @jxom! - Fixed batch config in createPublicClient.