Skip to content
docs

validateEvmTypedOrder

validateEvmTypedOrder(td, expected): asserts td is { domain: { chainId: string | number; verifyingContract: string }; message: Record<string, unknown>; primaryType: string; types: Record<string, { name: string; type: string }[]> }

Defined in: protocol-swap2-omniston/src/provider.ts:1040

The EVM order checks the provider runs on every build, exported so an app that holds the quote’s settlement data can run them itself (scan 2026-10-27 modules, F4): the 1inch Limit Order Protocol v4 domain on the settlement contract and chain, the exact Order schema, this owner as maker, the resolver as receiver, the input asset and amount, single-fill traits, the salt committing the order extension and the expiry at the trade-start deadline. Throws when any of it does not hold.

unknown

number

string

string

Uint8Array

string

number

string

string

string

number

asserts td is { domain: { chainId: string | number; verifyingContract: string }; message: Record<string, unknown>; primaryType: string; types: Record<string, { name: string; type: string }[]> }