linea-mcp
Version:
A Model Context Protocol server for interacting with the Linea blockchain
56 lines • 1.93 kB
TypeScript
import { SwapTokensParams, LiquidityPoolsParams } from './schemas.js';
import { StakeLpTokensParams, UnstakeLpTokensParams, GetYieldInfoParams } from './schemas.js';
/**
* Swap tokens on a DEX using viem, with fee estimation and confirmation
* @param params The parameters for swapping tokens
* @returns The transaction details or an abort message
*/
export declare function swapTokens(params: SwapTokensParams): Promise<any>;
/**
* Get information about liquidity pools using viem
* @param params The parameters for getting liquidity pool information
* @returns The liquidity pool information
*/
export declare function liquidityPools(params: LiquidityPoolsParams): Promise<{
success: boolean;
pool: {
address: `0x${string}`;
token0: {
address: `0x${string}`;
symbol: string;
name: string;
decimals: number;
reserve: string;
};
token1: {
address: `0x${string}`;
symbol: string;
name: string;
decimals: number;
reserve: string;
};
totalSupply: string;
prices: {
[x: string]: number;
};
lastUpdatedTimestamp: number;
};
} | {
success: boolean;
pools: never[];
message: string;
}>;
/**
* Stake LP tokens into a SyncSwap MasterChef farm.
* Requires prior approval of the MasterChef contract by the user to spend the LP tokens.
*/
export declare function stakeLpTokens(params: StakeLpTokensParams): Promise<any>;
/**
* Unstake LP tokens from a SyncSwap MasterChef farm.
*/
export declare function unstakeLpTokens(params: UnstakeLpTokensParams): Promise<any>;
/**
* Get yield farming information (staked amount, pending rewards) for a user in a specific SyncSwap pool.
*/
export declare function getYieldInfo(params: GetYieldInfoParams): Promise<any>;
//# sourceMappingURL=handlers.d.ts.map