linea-mcp
Version:
A Model Context Protocol server for interacting with the Linea blockchain
81 lines • 2.28 kB
TypeScript
import { z } from 'zod';
/**
* Schema for swapping tokens
*/
export declare const SwapTokensSchema: z.ZodObject<{
fromToken: z.ZodString;
toToken: z.ZodString;
amount: z.ZodString;
slippageTolerance: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
amount: string;
fromToken: string;
toToken: string;
slippageTolerance: number;
}, {
amount: string;
fromToken: string;
toToken: string;
slippageTolerance?: number | undefined;
}>;
/**
* Schema for getting liquidity pool information
*/
export declare const LiquidityPoolsSchema: z.ZodObject<{
poolAddress: z.ZodOptional<z.ZodString>;
tokenA: z.ZodOptional<z.ZodString>;
tokenB: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
poolAddress?: string | undefined;
tokenA?: string | undefined;
tokenB?: string | undefined;
}, {
poolAddress?: string | undefined;
tokenA?: string | undefined;
tokenB?: string | undefined;
}>;
/**
* Schema for staking LP tokens in a SyncSwap farm
*/
export declare const StakeLpTokensSchema: z.ZodObject<{
amount: z.ZodString;
poolId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
amount: string;
poolId: number;
}, {
amount: string;
poolId: number;
}>;
/**
* Schema for unstaking LP tokens from a SyncSwap farm
*/
export declare const UnstakeLpTokensSchema: z.ZodObject<{
amount: z.ZodString;
poolId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
amount: string;
poolId: number;
}, {
amount: string;
poolId: number;
}>;
/**
* Schema for getting yield farming information for a user
*/
export declare const GetYieldInfoSchema: z.ZodObject<{
userAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
poolId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
poolId: number;
userAddress: `0x${string}`;
}, {
poolId: number;
userAddress: string;
}>;
export type SwapTokensParams = z.infer<typeof SwapTokensSchema>;
export type LiquidityPoolsParams = z.infer<typeof LiquidityPoolsSchema>;
export type StakeLpTokensParams = z.infer<typeof StakeLpTokensSchema>;
export type UnstakeLpTokensParams = z.infer<typeof UnstakeLpTokensSchema>;
export type GetYieldInfoParams = z.infer<typeof GetYieldInfoSchema>;
//# sourceMappingURL=schemas.d.ts.map