UNPKG

tensaikit

Version:

An autonomous DeFi AI Agent Kit on Katana enabling AI agents to plan and execute on-chain financial operations.

33 lines (32 loc) 1.46 kB
export declare const SUSHI_ENDPOINT = "https://api.sushi.com"; export declare const SUSHI_QUOTE_ENDPOINT: string; export declare const SUSHI_TOKEN_ENDPOINT: string; export declare const SUSHI_LIQUIDITY_ENDPOINT: string; export declare const DEFAULT_MAX_SLIPPAGE = 0.005; /** * Dynamically imports Sushi SDK and exposes primary swap utilities. * Lazy-loaded to optimize bundle size. */ export declare const SushiSwapModule: () => Promise<{ price: typeof import("sushi", { with: { "resolution-mode": "import" } }).getPrice; prices: typeof import("sushi", { with: { "resolution-mode": "import" } }).getPrices; getSwap: typeof import("sushi", { with: { "resolution-mode": "import" } }).getSwap; }>; /** * Gets the appropriate SushiSwap router/spender address for a given chain ID. * * @param chainId - The EVM chain ID * @returns A spender address to use for token approvals */ export declare const getSpender: (chainId: number) => `0x${string}`; /** * Returns the subgraph endpoint URL for querying Sushi protocol data * from The Graph on a supported chain. * * @param chainId - The numeric Chain ID of the network * @returns The Graph subgraph URL * @throws If the chain ID is not supported for subgraph access */ export declare const subGraphUrlByChainId: (chainId: number) => string; export declare const SUSHI_SWAP_GRAPH_URL = "https://production.data-gcp.sushi.com/graphql"; export declare const SUSHISWAP_SUPPORTED_NETWORK: string[];