Auto-Detect — Identifies function signatures and applies repair overrides automatically. Removes the need for users to write parameterModifier. /
/**
* Auto-Detect — Identifies function signatures and applies repair overrides automatically.
* Removes the need for users to write parameterModifier.
*/
export type AmountShape = 'number' | 'numeric-string' | 'string' | 'array' | 'object' | 'undefined';
export interface DetectedSignature {
type: 'viem-tx' | 'fetch' | 'generic-payment' | 'unknown';
paramIndex: number;
/**
* Shape of the payment amount field, when detectable. Determines whether a
* strategy may safely apply scalar arithmetic (halve, split) to it. Only
* 'number' and 'numeric-string' are safe; arrays/objects/ambiguous strings
* are NOT (e.g. Circle's `amount: string[]`). Optional for backward-compat
* with callers that construct DetectedSignature directly; detectSignature
* always populates it.
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key