@gala-chain/launchpad-mcp-server
Version:
MCP server for Gala Launchpad - 102 tools (pool management, event watchers, GSwap DEX trading, price history, token creation, wallet management, DEX pool discovery, liquidity positions, token locks, locked token queries, composite pool data, cross-chain b
54 lines • 2.14 kB
JavaScript
;
/**
* Fetch All DEX Pools Tool
*
* Convenience tool that fetches all available DEX pools with automatic pagination.
* No page/limit parameters needed - returns ALL pools matching filters.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchAllDexPoolsTool = void 0;
const response_formatter_js_1 = require("../../utils/response-formatter.js");
const error_handler_js_1 = require("../../utils/error-handler.js");
exports.fetchAllDexPoolsTool = {
name: 'gala_launchpad_fetch_all_dex_pools',
description: 'Fetch all DEX pools with automatic pagination. No page/limit parameters needed - returns ALL pools matching filters.',
inputSchema: {
type: 'object',
properties: {
search: {
type: 'string',
minLength: 1,
maxLength: 100,
description: 'Search filter for token symbols in pool pair (e.g., "GALA", "GUSDC")',
},
sortBy: {
type: 'string',
enum: ['tvl', 'volume30d', 'volume1d'],
description: 'Field to sort results by (default: tvl)',
},
sortOrder: {
type: 'string',
enum: ['asc', 'desc'],
description: 'Sort order direction (default: desc)',
},
withPrices: {
type: 'boolean',
description: 'Whether to fetch real-time pricing data for each pool (default: false)',
},
},
},
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
const options = {};
if (args.search)
options.search = args.search;
if (args.sortBy)
options.sortBy = args.sortBy;
if (args.sortOrder)
options.sortOrder = args.sortOrder;
if (args.withPrices !== undefined)
options.withPrices = args.withPrices;
const result = await sdk.fetchAllDexPools(options);
return (0, response_formatter_js_1.formatSuccess)(result);
}),
};
//# sourceMappingURL=fetchAllDexPools.js.map