@iqai/mcp-odos
Version:
Mcp server for Odos access
13 lines (12 loc) • 576 B
TypeScript
import { type Hash } from "viem";
import type { AssembleResponseTxn } from "../types.js";
import type { WalletService } from "./wallet.js";
export declare class ExecuteSwapService {
private readonly NATIVE_TOKEN;
private readonly walletService;
constructor(walletService: WalletService);
private requiresAllowance;
checkAndSetAllowance(tokenAddress: string, amount: bigint, spenderAddress: string): Promise<boolean>;
execute(txn: AssembleResponseTxn): Promise<Hash>;
formatWithConfirmation(txn: AssembleResponseTxn, hash: Hash): Promise<string>;
}