UNPKG

@iqai/mcp-odos

Version:
13 lines (12 loc) 576 B
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>; }