github wevm/viem viem@2.26.0

latest releases: viem@2.28.1, viem@2.28.0, viem@2.27.3...
24 days ago

Minor Changes

  • #3542 082c3d0fcc2e376954116d380c65c6ac95293681 Thanks @jxom! - Breaking (Experimental): Updated EIP-5792 to the latest spec changes. The following APIs have been updated:

    getCallsStatus

    const result = await client.getCallsStatus({ id })
    //    ^?
          {
    +       atomic: boolean
    +       chainId: number
    +       id: string
            receipts: Receipt[]
    -       status: 'PENDING' | 'CONFIRMED'
    +       status: 'pending' | 'success' | 'failure' | undefined
    +       statusCode: number
    +       version: string
    }

    sendCalls

    const result = await client.sendCalls({ calls })
    //    ^?
    -     string
    +     { id: string, capabilities?: Capabilities }

    waitForCallsStatus

    const result = await client.waitForCallsStatus({ id })
    //    ^?
          {
    +       atomic: boolean
    +       chainId: number
    +       id: string
            receipts: Receipt[]
    -       status: 'PENDING' | 'CONFIRMED'
    +       status: 'pending' | 'success' | 'failure' | undefined
    +       statusCode: number
    +       version: string
    }

Patch Changes

Don't miss a new viem release

NewReleases is sending notifications on new releases.