UNPKG

@coinbase/agentkit

Version:

Coinbase AgentKit core primitives

23 lines (22 loc) 961 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EnsoRouteSchema = void 0; const zod_1 = require("zod"); /** * Input schema for route action. */ exports.EnsoRouteSchema = zod_1.z .object({ tokenIn: zod_1.z .string() .regex(/^0x[a-fA-F0-9]{40}$/, "Invalid Ethereum address format") .describe("Address of the token to swap from. For ETH, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"), tokenOut: zod_1.z .string() .regex(/^0x[a-fA-F0-9]{40}$/, "Invalid Ethereum address format") .describe("Address of the token to swap to, For ETH, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"), amountIn: zod_1.z.string().describe("Amount of tokenIn to swap in whole units (e.g. 100 USDC)"), slippage: zod_1.z.number().optional().describe("Slippage in basis points (1/10000). Default - 50"), }) .strip() .describe("Instructions for routing through Enso API");