UNPKG

kirapay-axelar-sdk

Version:

TypeScript SDK for cross-chain swaps with CCIP and Axelar bridges

23 lines (22 loc) 910 B
import { ConfigManager } from "../core/config"; import { type DexService as IDexService, type QuoteParams, type RouteQuote } from "./types"; /** * DexService is a facade for various DEX implementations * It uses Smart Order Router for optimal routing and Universal Router for building transactions */ export declare class DexService implements IDexService { private configManager; private smartOrderRouterService; constructor(configManager: ConfigManager); /** * Get a quote for a swap using Smart Order Router * @param params Quote parameters * @param slippageBps Slippage tolerance in basis points (1 = 0.01%), defaults to 50 (0.5%) * @returns The estimated output amount, optimal route, and full quote object */ quoteExactIn(params: QuoteParams, slippageBps?: number): Promise<{ value: bigint; route: RouteQuote; quote: any; }>; }