linea-mcp
Version:
A Model Context Protocol server for interacting with the Linea blockchain
46 lines • 1.38 kB
TypeScript
import { BridgeAssetsParams, BridgeStatusParams } from './schemas.js';
/**
* Bridge assets between Ethereum and Linea using viem, with fee estimation and confirmation
* @param params The parameters for bridging assets
* @returns The transaction details or an abort message
*/
export declare function bridgeAssets(params: BridgeAssetsParams): Promise<any>;
/**
* Check the status of a bridge transaction using viem
* @param params The parameters for checking bridge status
* @returns The status of the bridge transaction
*/
export declare function bridgeStatus(params: BridgeStatusParams): Promise<{
success: boolean;
transactionHash: string;
sourceChain: "linea" | "ethereum";
status: string;
message: string;
receipt?: undefined;
destinationChain?: undefined;
} | {
success: boolean;
transactionHash: string;
sourceChain: "linea" | "ethereum";
status: string;
message: string;
receipt: {
blockNumber: string;
gasUsed: string;
status: "reverted";
};
destinationChain?: undefined;
} | {
success: boolean;
transactionHash: string;
sourceChain: "linea" | "ethereum";
destinationChain: string;
status: string;
message: string;
receipt: {
blockNumber: string;
gasUsed: string;
status: "success";
};
}>;
//# sourceMappingURL=handlers.d.ts.map