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

90 lines (80 loc) 4.03 kB
"use strict"; /** * Advanced Pool Management Prompts * * Slash commands for detailed pool analysis and bonding curve operations */ Object.defineProperty(exports, "__esModule", { value: true }); exports.advancedPoolPrompts = exports.fetchPoolDetailsPrompt = void 0; const mcpToolNames_js_1 = require("../constants/mcpToolNames.js"); const validation_js_1 = require("../utils/validation.js"); const handlerHelpers_js_1 = require("./utils/handlerHelpers.js"); /** * Fetch Pool Details - Complete bonding curve pool data * * Retrieves comprehensive pool analytics including supply metrics, graduation status, * fee structure, and historical performance data */ exports.fetchPoolDetailsPrompt = { name: 'galachain-launchpad:fetch-pool-details', description: 'Get detailed bonding curve pool analytics including supply, fees, graduation status, and performance metrics', arguments: [ { name: 'tokenName', description: 'Token name to analyze (e.g., anime, test216253)', required: true, }, ], handler: (args) => { (0, validation_js_1.validateTokenName)(args.tokenName); return (0, handlerHelpers_js_1.createPromptResponse)(`Fetch comprehensive bonding curve pool details for ${args.tokenName}. **Pool Analysis:** Get complete bonding curve pool data for trading decisions, graduation planning, and pool health assessment. **Data Retrieved:** - **Supply Metrics**: Current supply, max supply, remaining tokens, graduation progress - **Pool Status**: Active, graduated, or pending - **Fee Structure**: Transaction fees, reverse bonding curve fees, creator fees - **Vault Information**: GalaChain vault address and balances - **Creator Details**: Token creator address and initial configuration - **Trading Status**: Whether pool is active for trading - **Graduation Metrics**: Percentage complete, tokens remaining until graduation **Workflow:** 1. Query GalaChain for pool state 2. Calculate derived metrics (graduation %, supply ratios) 3. Retrieve fee configuration 4. Get vault and creator information 5. Compile comprehensive pool analysis **Use Cases:** 1. **Pre-Trade Analysis**: Verify pool is active and has sufficient liquidity 2. **Graduation Planning**: Calculate how many tokens needed to graduate 3. **Fee Assessment**: Understand transaction costs before trading 4. **Pool Health Check**: Monitor supply levels and trading status 5. **Investment Research**: Analyze pool fundamentals before buying **Key Metrics Explained:** - **currentSupply**: Tokens currently in circulation (includes bonding curve + user wallets) - **maxSupply**: Total tokens that will exist when fully graduated - **remainingTokens**: Tokens still locked in bonding curve - **graduationProgress**: Percentage toward graduation (currentSupply / maxSupply) **Difference from fetch-pool-details-for-calculation:** - This tool provides FULL pool data including vault info, creator details, status - fetch-pool-details-for-calculation provides ONLY data needed for bonding curve math - Use this for comprehensive analysis; use calculation variant for price quotes **Related Tools:** - Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_POOL_DETAILS_FOR_CALCULATION} for lightweight bonding curve calculations - Use ${mcpToolNames_js_1.MCP_TOOLS.CALCULATE_BUY_AMOUNT_FOR_GRADUATION} to plan graduation cost - Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_TOKEN_DISTRIBUTION} to analyze holder concentration **Important Notes:** - Pool details are cached briefly for performance - Supply metrics update in real-time after each trade - Graduated pools return historical bonding curve data - Fee structures can vary by token creator configuration Please use the following MCP tool: - ${mcpToolNames_js_1.MCP_TOOLS.FETCH_POOL_DETAILS}: Retrieve comprehensive pool details Proceed with fetching pool details.`); }, }; /** * Export all advanced pool prompts */ exports.advancedPoolPrompts = [exports.fetchPoolDetailsPrompt]; //# sourceMappingURL=advanced-pools.js.map