UNPKG

@hyperlane-xyz/registry

Version:

A collection of configs, artifacts, and schemas for Hyperlane

18 lines (17 loc) 563 B
import { ChainMetadataSchema, } from '@hyperlane-xyz/sdk'; import { z } from 'zod'; export const ChainAddressesSchema = z.record(z.string()); /** * Schema for warp route filter parameters. * This serves as the single source of truth for both TypeScript types and validation. */ export const WarpRouteFilterSchema = z .object({ symbol: z.string().optional(), label: z.string().optional(), }) .strict(); export const UpdateChainSchema = z.object({ metadata: ChainMetadataSchema.optional(), addresses: ChainAddressesSchema.optional(), });