UNPKG

@owlprotocol/contracts-account-abstraction

Version:

ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.

11 lines (10 loc) 258 B
import { z } from "zod"; const hexPattern = /^0x[0-9a-f]*$/; const targetCallResultSchema = z.object({ gasUsed: z.bigint(), success: z.boolean(), returnData: z.string().regex(hexPattern).transform((val) => val) }); export { targetCallResultSchema };