UNPKG

@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

47 lines 1.63 kB
"use strict"; /** * Fetch Pools Tool */ Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchPoolsTool = void 0; const response_formatter_js_1 = require("../../utils/response-formatter.js"); const error_handler_js_1 = require("../../utils/error-handler.js"); exports.fetchPoolsTool = { name: 'gala_launchpad_fetch_pools', description: 'Fetch token pools from Gala Launchpad with filtering and pagination', inputSchema: { type: 'object', properties: { type: { type: 'string', enum: ['recent', 'popular'], description: 'Type of pools to fetch (default: recent)', }, creatorAddress: { type: 'string', pattern: '^(0x[a-fA-F0-9]{40}|eth\\|[a-fA-F0-9]{40})$', description: 'Filter by creator address (optional)', }, page: { type: 'number', minimum: 1, description: 'Page number (default: 1)', }, limit: { type: 'number', minimum: 1, maximum: 100, description: 'Results per page (default: 20)', }, }, }, handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => { const result = await sdk.fetchPools({ type: args.type || 'recent', page: args.page || 1, limit: args.limit || 20, }); return (0, response_formatter_js_1.formatSuccess)(result); }), }; //# sourceMappingURL=fetchPools.js.map