viem

TypeScript Interface for Ethereum

OTHER License

Downloads
2.5M
Stars
2K
Committers
391

Bot releases are visible (Hide)

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • #1177 8d05e410 Thanks @jxom! - Fixed an issue where some environments would throw WebSocket.default is not a constructor.
viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • bf2f7ee1 Thanks @jxom! - Updated dependencies:

    • @adraffy/ens-normalize
    • @noble/curves
    • @noble/hashes
    • @scure/bip32
    • @scure/bip39
    • abitype
    • isomorphic-ws
    • ws
viem - [email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

Patch Changes

  • #1137 4159c997 Thanks @jxom! - Fixed an issue where non-standard "user rejected" errors where being coalesced into an UnknownNodeError.

  • 8605c1f1 Thanks @jxom! - Handle -32603 RPC error codes when deriving a ContractFunctionRevertedError.

  • #1109 0a242120 Thanks @jxom! - Removed hardcoded defaultPriorityFee on OP Stack chains in favor of fetching it from eth_maxPriorityFeePerGas.

  • #1112 7da52244 Thanks @RexCloud! - Added multicall3 for Scroll Sepolia

  • #1139 86230caf Thanks @jxom! - Fixed VerifyMessageParameters to accept a raw property.

  • #1138 101c94f2 Thanks @jxom! - Amended Base chain nativeCurreny.name to "Ether".

  • #1048 f33086ef Thanks @brianathere! - Converted isomorphic-ws to a synchronous import.

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 - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • #1087 ac3b7eab Thanks @jxom! - Append errors from aggregate3 to return results if allowFailure=true instead of throwing an error.
viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 0b0167ef Thanks @jxom! - Fixed PrepareTransactionRequestReturnType type.
viem - [email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • e14eeb3b Thanks @jxom! - Migrated @wagmi/chains into viem and removed the @wagmi/chains dependency.
viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • #1058 533b5900 Thanks @jxom! - Added prepareTransactionRequest, signTransaction, and sendRawTransaction.
viem - [email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • #1044 3daedbf5 Thanks @jxom! - Added estimateFeesPerGas & estimateMaxPriorityFeesPerGas Actions.

  • #1044 3daedbf5 Thanks @jxom! - Added estimateFeesPerGas & baseFeeMultiplier to the Chain Fees configuration (chain.fees).

viem -

Published by jxom about 1 year ago

Patch Changes

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • #1040 1e5bd4a0 Thanks @jxom! - Made value optional on writeContract/simulateContract for payable functions.

  • #1022 2eb56bc7 Thanks @Songkeys! - Fixed an issue where waitForTransactionReceipt would be infinitely pending when an error is thrown after a transaction has been replaced.

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • #984 e1032c7b Thanks @holic! - Added signTransaction & privateKeyToAddress exports to viem/accounts entrypoint.

  • #1006 7311e201 Thanks @jxom! - Added fees to chain config that includes a defaultPriorityFee for setting a default priority fee (maxPriorityFeePerGas) for a chain.

    import type { Chain } from 'viem'
    
    export const example = {
      // ...
      fees: {
        defaultPriorityFee: 1_000_000n, // 0.001 gwei
        // or
        async defaultPriorityFee() {
          // ... some async behavior to derive the fee.
        }
      },
      // ...
    } as const satifies Chain
    
  • #886 fef66bfb Thanks @jxom! - Added formatter for Optimism transaction receipts (format l1GasPrice, l1GasUsed, etc).

  • #886 fef66bfb Thanks @jxom! - Added entrypoints for chain utilities (viem/chains/utils) with exports for chain-specific chains, formatters, serializers, and types.

    Examples:

    import {
      type CeloBlock,
      type CeloTransaction,
      type OptimismBlock,
      type OptimismTransaction,
      serializeTransactionCelo,
    } from 'viem/chains/utils'
    

Patch Changes

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • #1000 4bdbf15b Thanks @jxom! - Fixed docsPath value in estimateContractGas.

  • #999 de94d81f Thanks @jxom! - Support passing gasPrice for chains that include baseFeePerGas but do not support EIP-1559 Transactions (e.g. BSC).

viem - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • ae4ab844 Thanks @jxom! - Fixed performance bottleneck in ABI encoding for dynamic bytes.