linea-mcp
Version:
A Model Context Protocol server for interacting with the Linea blockchain
94 lines • 2.73 kB
TypeScript
import { z } from 'zod';
/**
* Schema for bridging assets between Ethereum and Linea
*/
export declare const BridgeAssetsSchema: z.ZodObject<{
sourceChain: z.ZodEnum<["ethereum", "linea"]>;
destinationChain: z.ZodEnum<["ethereum", "linea"]>;
assetType: z.ZodEnum<["ETH", "ERC20"]>;
tokenAddress: z.ZodOptional<z.ZodString>;
amount: z.ZodString;
}, "strip", z.ZodTypeAny, {
sourceChain: "linea" | "ethereum";
destinationChain: "linea" | "ethereum";
assetType: "ETH" | "ERC20";
amount: string;
tokenAddress?: string | undefined;
}, {
sourceChain: "linea" | "ethereum";
destinationChain: "linea" | "ethereum";
assetType: "ETH" | "ERC20";
amount: string;
tokenAddress?: string | undefined;
}>;
/**
* Schema for checking bridge transaction status
*/
export declare const BridgeStatusSchema: z.ZodObject<{
transactionHash: z.ZodString;
sourceChain: z.ZodEnum<["ethereum", "linea"]>;
}, "strip", z.ZodTypeAny, {
transactionHash: string;
sourceChain: "linea" | "ethereum";
}, {
transactionHash: string;
sourceChain: "linea" | "ethereum";
}>;
/**
* Schema for claiming bridged funds
*/
export declare const ClaimFundsSchema: z.ZodObject<{
messageHash: z.ZodString;
sourceChain: z.ZodEnum<["ethereum", "linea"]>;
messageDetails: z.ZodObject<{
from: z.ZodString;
to: z.ZodString;
fee: z.ZodNumber;
value: z.ZodNumber;
nonce: z.ZodUnion<[z.ZodNumber, z.ZodBigInt]>;
calldata: z.ZodString;
}, "strip", z.ZodTypeAny, {
value: number;
to: string;
from: string;
nonce: number | bigint;
fee: number;
calldata: string;
}, {
value: number;
to: string;
from: string;
nonce: number | bigint;
fee: number;
calldata: string;
}>;
proof: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
sourceChain: "linea" | "ethereum";
messageHash: string;
messageDetails: {
value: number;
to: string;
from: string;
nonce: number | bigint;
fee: number;
calldata: string;
};
proof: string[];
}, {
sourceChain: "linea" | "ethereum";
messageHash: string;
messageDetails: {
value: number;
to: string;
from: string;
nonce: number | bigint;
fee: number;
calldata: string;
};
proof?: string[] | undefined;
}>;
export type BridgeAssetsParams = z.infer<typeof BridgeAssetsSchema>;
export type BridgeStatusParams = z.infer<typeof BridgeStatusSchema>;
export type ClaimFundsParams = z.infer<typeof ClaimFundsSchema>;
//# sourceMappingURL=schemas.d.ts.map