tensaikit
Version:
An autonomous DeFi AI Agent Kit on Katana enabling AI agents to plan and execute on-chain financial operations.
14 lines (13 loc) • 708 B
TypeScript
import { z } from "zod";
import { EvmWalletProvider } from "../../../walletProviders";
import { QueryGetSushiAllTokens } from "../schemas";
/**
* Fetches a paginated list of tokens from the SushiSwap subgraph for a given chain.
*
* @param args - An object containing pagination parameters:
* - skip: Number of items to skip (for pagination).
* - first: Number of items to fetch.
* @returns A promise resolving to an array of token objects, or a string message if no data is found.
* @throws Throws a formatted error if the subgraph query fails.
*/
export declare const fetchAllTokensFromSubgraph: (walletProvider: EvmWalletProvider, args: z.infer<typeof QueryGetSushiAllTokens>) => Promise<any>;