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

36 lines 1.54 kB
"use strict"; /** * Retrieve From Faucet Tool * * Retrieves GALA from the faucet to a wallet address. * Backend provides a fixed amount (5 GALA) regardless of amount parameter. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.retrieveFromFaucetTool = void 0; const error_handler_js_1 = require("../../utils/error-handler.js"); const response_formatter_js_1 = require("../../utils/response-formatter.js"); const common_schemas_js_1 = require("../../schemas/common-schemas.js"); exports.retrieveFromFaucetTool = { name: 'gala_launchpad_retrieve_from_faucet', description: 'Retrieve GALA from faucet to wallet. Backend provides a fixed amount (5 GALA). Useful for testing and development.', inputSchema: { type: 'object', properties: { walletAddress: { ...common_schemas_js_1.ADDRESS_SCHEMA, description: 'Optional wallet address override (defaults to SDK authenticated wallet). Format: "eth|0x..." or "0x..."', }, }, }, handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => { const walletAddress = args?.walletAddress; await sdk.retrieveGalaFromFaucet(walletAddress); return (0, response_formatter_js_1.formatSuccess)({ message: 'Successfully retrieved 5 GALA from faucet', walletAddress: walletAddress || sdk.getAddress(), amount: '5', token: 'GALA', }); }), }; //# sourceMappingURL=retrieveFromFaucet.js.map