UNPKG

edwin-sdk

Version:

SDK for integrating AI agents with DeFi protocols

23 lines (19 loc) 888 B
import { z } from 'zod'; import { createParameterSchema } from '../../core/utils/createParameterSchema'; export const SupplyParametersSchema = createParameterSchema( z.object({ chain: z.string().min(1).describe('The chain to supply assets on'), asset: z.string().min(1).describe('The asset to supply'), amount: z.number().positive().describe('The amount to supply'), }) ); export const WithdrawParametersSchema = createParameterSchema( z.object({ chain: z.string().min(1).describe('The chain to withdraw assets from'), asset: z.string().min(1).describe('The asset to withdraw'), amount: z.number().positive().describe('The amount to withdraw'), }) ); // Export clean parameter types export type SupplyParameters = typeof SupplyParametersSchema.type; export type WithdrawParameters = typeof WithdrawParametersSchema.type;