Skip to content

viem@2.56.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Aug 21:27
· 1 commit to main since this release
063faa5

Minor Changes

  • #5040 c73282bfa7309a5017f684b8001ec5c13fda4194 Thanks @jxom! - Breaking (viem/tempo): Renamed Abis.abis to Abis.all and expanded the aggregate with Earn and Zone ABIs.

    -const abis = Abis.abis
    +const abis = Abis.all
  • #5040 c73282bfa7309a5017f684b8001ec5c13fda4194 Thanks @jxom! - Breaking (viem/tempo): Moved Zone exports from viem/tempo/zones into viem/tempo.

    -import { Abis, Addresses, http, zoneModerato } from 'viem/tempo/zones'
    +import { Abis, Addresses, http, Zone } from 'viem/tempo'
  • #5040 c73282bfa7309a5017f684b8001ec5c13fda4194 Thanks @jxom! - Breaking (viem/tempo): Replaced curried Zone network factories with built-in Zone definitions and Zone.from for custom chains.

    -const zone = zoneModerato(6)
    +const zone = Zone.a
  • #5040 c73282bfa7309a5017f684b8001ec5c13fda4194 Thanks @jxom! - Breaking (viem/tempo): Replaced chain-specific Zone portal registries with deterministic Addresses.zonePortal(id) resolution for Zone IDs and chain IDs.

    -import { getPortalAddress } from 'viem/tempo/zones'
    +import { Addresses, Zone } from 'viem/tempo'
    
    -const portal = getPortalAddress(42_431, 7)
    +const portal = Addresses.zonePortal(Zone.b.id)
  • #5040 c73282bfa7309a5017f684b8001ec5c13fda4194 Thanks @jxom! - Added selector maps for Zone portal, outbox, messenger, and verifier ABIs.

    import { Selectors } from "viem/tempo";
    
    const selector = Selectors.zonePortal.admin;

Patch Changes