github wevm/viem viem@1.6.0

latest releases: viem@2.21.10, viem@2.21.9, viem@2.21.8...
13 months 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

Don't miss a new viem release

NewReleases is sending notifications on new releases.