@iqai/mcp-odos
Version:
Mcp server for Odos access
46 lines (45 loc) • 1.47 kB
TypeScript
import { z } from "zod";
declare const swapParamsSchema: z.ZodObject<{
chain: z.ZodDefault<z.ZodOptional<z.ZodString>>;
fromToken: z.ZodEffects<z.ZodString, `0x${string}`, string>;
toToken: z.ZodEffects<z.ZodString, `0x${string}`, string>;
amount: z.ZodString;
prettyFormat: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
chain: string;
fromToken: `0x${string}`;
toToken: `0x${string}`;
amount: string;
prettyFormat: boolean;
}, {
fromToken: string;
toToken: string;
amount: string;
chain?: string | undefined;
prettyFormat?: boolean | undefined;
}>;
export declare const swapTool: {
name: string;
description: string;
parameters: z.ZodObject<{
chain: z.ZodDefault<z.ZodOptional<z.ZodString>>;
fromToken: z.ZodEffects<z.ZodString, `0x${string}`, string>;
toToken: z.ZodEffects<z.ZodString, `0x${string}`, string>;
amount: z.ZodString;
prettyFormat: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
chain: string;
fromToken: `0x${string}`;
toToken: `0x${string}`;
amount: string;
prettyFormat: boolean;
}, {
fromToken: string;
toToken: string;
amount: string;
chain?: string | undefined;
prettyFormat?: boolean | undefined;
}>;
execute: (args: z.infer<typeof swapParamsSchema>) => Promise<string>;
};
export {};