linea-mcp
Version:
A Model Context Protocol server for interacting with the Linea blockchain
233 lines • 8.36 kB
TypeScript
import { Erc20BalanceSchema, Erc20TransferSchema } from './schemas.js';
import { erc20Balance, erc20Transfer, listAvailableTokens, getTokenInfo, getTokenPriceHistory } from './handlers.js';
export { erc20Balance, erc20Transfer };
export { Erc20BalanceSchema, Erc20TransferSchema };
export declare const toolMetadata: {
erc20Balance: {
name: string;
description: string;
example: string;
};
erc20Transfer: {
name: string;
description: string;
example: string;
};
};
export declare const tokenTools: ({
name: string;
description: string;
inputSchema: import("zod").ZodObject<{
address: import("zod").ZodOptional<import("zod").ZodString>;
tokenAddress: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
tokenAddress: string;
address?: string | undefined;
}, {
tokenAddress: string;
address?: string | undefined;
}>;
handler: typeof erc20Balance;
outputSchema?: undefined;
} | {
name: string;
description: string;
inputSchema: import("zod").ZodObject<{
tokenAddress: import("zod").ZodString;
destination: import("zod").ZodString;
amount: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
tokenAddress: string;
amount: string;
destination: string;
}, {
tokenAddress: string;
amount: string;
destination: string;
}>;
handler: typeof erc20Transfer;
outputSchema?: undefined;
} | {
name: string;
description: string;
inputSchema: import("zod").ZodObject<{
query: import("zod").ZodOptional<import("zod").ZodString>;
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
includePrice: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
}, "strip", import("zod").ZodTypeAny, {
limit: number;
page: number;
includePrice: boolean;
query?: string | undefined;
}, {
limit?: number | undefined;
query?: string | undefined;
page?: number | undefined;
includePrice?: boolean | undefined;
}>;
outputSchema: import("zod").ZodObject<{
success: import("zod").ZodBoolean;
tokens: import("zod").ZodArray<import("zod").ZodObject<{
address: import("zod").ZodString;
name: import("zod").ZodString;
symbol: import("zod").ZodString;
decimals: import("zod").ZodNumber;
logoURI: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
currentPrice: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
priceChange24h: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
}, "strip", import("zod").ZodTypeAny, {
symbol: string;
name: string;
address: string;
decimals: number;
logoURI?: string | null | undefined;
currentPrice?: number | null | undefined;
priceChange24h?: number | null | undefined;
}, {
symbol: string;
name: string;
address: string;
decimals: number;
logoURI?: string | null | undefined;
currentPrice?: number | null | undefined;
priceChange24h?: number | null | undefined;
}>, "many">;
page: import("zod").ZodNumber;
limit: import("zod").ZodNumber;
total: import("zod").ZodOptional<import("zod").ZodNumber>;
}, "strip", import("zod").ZodTypeAny, {
success: boolean;
limit: number;
page: number;
tokens: {
symbol: string;
name: string;
address: string;
decimals: number;
logoURI?: string | null | undefined;
currentPrice?: number | null | undefined;
priceChange24h?: number | null | undefined;
}[];
total?: number | undefined;
}, {
success: boolean;
limit: number;
page: number;
tokens: {
symbol: string;
name: string;
address: string;
decimals: number;
logoURI?: string | null | undefined;
currentPrice?: number | null | undefined;
priceChange24h?: number | null | undefined;
}[];
total?: number | undefined;
}>;
handler: typeof listAvailableTokens;
} | {
name: string;
description: string;
inputSchema: import("zod").ZodObject<{
contractAddress: import("zod").ZodString;
includePrice: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
}, "strip", import("zod").ZodTypeAny, {
contractAddress: string;
includePrice: boolean;
}, {
contractAddress: string;
includePrice?: boolean | undefined;
}>;
outputSchema: import("zod").ZodObject<{
success: import("zod").ZodBoolean;
token: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
address: import("zod").ZodString;
name: import("zod").ZodString;
symbol: import("zod").ZodString;
decimals: import("zod").ZodNumber;
logoURI: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
currentPrice: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
priceChange24h: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
}, "strip", import("zod").ZodTypeAny, {
symbol: string;
name: string;
address: string;
decimals: number;
logoURI?: string | null | undefined;
currentPrice?: number | null | undefined;
priceChange24h?: number | null | undefined;
}, {
symbol: string;
name: string;
address: string;
decimals: number;
logoURI?: string | null | undefined;
currentPrice?: number | null | undefined;
priceChange24h?: number | null | undefined;
}>>>;
}, "strip", import("zod").ZodTypeAny, {
success: boolean;
token?: {
symbol: string;
name: string;
address: string;
decimals: number;
logoURI?: string | null | undefined;
currentPrice?: number | null | undefined;
priceChange24h?: number | null | undefined;
} | null | undefined;
}, {
success: boolean;
token?: {
symbol: string;
name: string;
address: string;
decimals: number;
logoURI?: string | null | undefined;
currentPrice?: number | null | undefined;
priceChange24h?: number | null | undefined;
} | null | undefined;
}>;
handler: typeof getTokenInfo;
} | {
name: string;
description: string;
inputSchema: import("zod").ZodObject<{
contractAddress: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
contractAddress: string;
}, {
contractAddress: string;
}>;
outputSchema: import("zod").ZodObject<{
success: import("zod").ZodBoolean;
address: import("zod").ZodString;
history: import("zod").ZodArray<import("zod").ZodObject<{
timestamp: import("zod").ZodNumber;
price: import("zod").ZodNumber;
}, "strip", import("zod").ZodTypeAny, {
timestamp: number;
price: number;
}, {
timestamp: number;
price: number;
}>, "many">;
}, "strip", import("zod").ZodTypeAny, {
address: string;
success: boolean;
history: {
timestamp: number;
price: number;
}[];
}, {
address: string;
success: boolean;
history: {
timestamp: number;
price: number;
}[];
}>;
handler: typeof getTokenPriceHistory;
})[];
//# sourceMappingURL=index.d.ts.map