UNPKG

@iqai/mcp-atp

Version:

Mcp server for ATP (IQAI's Agent Tokenization Platform) access

23 lines (22 loc) 616 B
import { type Address } from "viem"; import type { WalletService } from "./wallet.js"; export declare class SwapService { private walletService; private routerAddress; private baseTokenAddress; private routerAbi; constructor(walletService: WalletService); private approveTokenAllowance; buy({ tokenContract, amount, }: { tokenContract: Address; amount: string; }): Promise<{ txHash: `0x${string}`; }>; sell({ tokenContract, amount, }: { tokenContract: Address; amount: string; }): Promise<{ txHash: `0x${string}`; }>; }