@gala-chain/launchpad-mcp-server 5.0.2-beta.1 → 5.0.4-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -21
- package/dist/ai-docs.json +7357 -0
- package/dist/constants/mcpToolNames.d.ts +3 -1
- package/dist/constants/mcpToolNames.d.ts.map +1 -1
- package/dist/constants/mcpToolNames.js +2 -1
- package/dist/constants/mcpToolNames.js.map +1 -1
- package/dist/explain-sdk-usage-ai.json +3445 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/prompts/account.d.ts +24 -0
- package/dist/prompts/account.d.ts.map +1 -0
- package/dist/prompts/account.js +89 -0
- package/dist/prompts/account.js.map +1 -0
- package/dist/prompts/api-keys.d.ts +36 -0
- package/dist/prompts/api-keys.d.ts.map +1 -0
- package/dist/prompts/api-keys.js +251 -0
- package/dist/prompts/api-keys.js.map +1 -0
- package/dist/prompts/auth.d.ts +29 -0
- package/dist/prompts/auth.d.ts.map +1 -0
- package/dist/prompts/auth.js +127 -0
- package/dist/prompts/auth.js.map +1 -0
- package/dist/prompts/balances.d.ts.map +1 -1
- package/dist/prompts/balances.js +17 -17
- package/dist/prompts/balances.js.map +1 -1
- package/dist/prompts/bans.d.ts +23 -0
- package/dist/prompts/bans.d.ts.map +1 -0
- package/dist/prompts/bans.js +82 -0
- package/dist/prompts/bans.js.map +1 -0
- package/dist/prompts/bridge.d.ts +2 -1
- package/dist/prompts/bridge.d.ts.map +1 -1
- package/dist/prompts/bridge.js +91 -227
- package/dist/prompts/bridge.js.map +1 -1
- package/dist/prompts/burns.d.ts +30 -0
- package/dist/prompts/burns.d.ts.map +1 -0
- package/dist/prompts/burns.js +127 -0
- package/dist/prompts/burns.js.map +1 -0
- package/dist/prompts/chat-messages.d.ts +21 -0
- package/dist/prompts/chat-messages.d.ts.map +1 -0
- package/dist/prompts/chat-messages.js +103 -0
- package/dist/prompts/chat-messages.js.map +1 -0
- package/dist/prompts/chat.d.ts +67 -0
- package/dist/prompts/chat.d.ts.map +1 -0
- package/dist/prompts/chat.js +355 -0
- package/dist/prompts/chat.js.map +1 -0
- package/dist/prompts/comments.d.ts +29 -0
- package/dist/prompts/comments.d.ts.map +1 -0
- package/dist/prompts/comments.js +133 -0
- package/dist/prompts/comments.js.map +1 -0
- package/dist/prompts/content-flags.d.ts +29 -0
- package/dist/prompts/content-flags.d.ts.map +1 -0
- package/dist/prompts/content-flags.js +248 -0
- package/dist/prompts/content-flags.js.map +1 -0
- package/dist/prompts/content-reactions.d.ts +29 -0
- package/dist/prompts/content-reactions.d.ts.map +1 -0
- package/dist/prompts/content-reactions.js +77 -0
- package/dist/prompts/content-reactions.js.map +1 -0
- package/dist/prompts/create-token.d.ts.map +1 -1
- package/dist/prompts/create-token.js +11 -18
- package/dist/prompts/create-token.js.map +1 -1
- package/dist/prompts/dex-trading.d.ts.map +1 -1
- package/dist/prompts/dex-trading.js +11 -42
- package/dist/prompts/dex-trading.js.map +1 -1
- package/dist/prompts/discover-tokens.d.ts.map +1 -1
- package/dist/prompts/discover-tokens.js +11 -26
- package/dist/prompts/discover-tokens.js.map +1 -1
- package/dist/prompts/event-subscriptions.d.ts +45 -0
- package/dist/prompts/event-subscriptions.d.ts.map +1 -0
- package/dist/prompts/event-subscriptions.js +330 -0
- package/dist/prompts/event-subscriptions.js.map +1 -0
- package/dist/prompts/explore-dex-pools.d.ts +2 -0
- package/dist/prompts/explore-dex-pools.d.ts.map +1 -1
- package/dist/prompts/explore-dex-pools.js +26 -104
- package/dist/prompts/explore-dex-pools.js.map +1 -1
- package/dist/prompts/factories/balance-prompt-factory.d.ts +102 -0
- package/dist/prompts/factories/balance-prompt-factory.d.ts.map +1 -0
- package/dist/prompts/factories/balance-prompt-factory.js +176 -0
- package/dist/prompts/factories/balance-prompt-factory.js.map +1 -0
- package/dist/prompts/factories/ban-management-factory.d.ts +90 -0
- package/dist/prompts/factories/ban-management-factory.d.ts.map +1 -0
- package/dist/prompts/factories/ban-management-factory.js +330 -0
- package/dist/prompts/factories/ban-management-factory.js.map +1 -0
- package/dist/prompts/factories/calculation-prompt-factory.d.ts +119 -0
- package/dist/prompts/factories/calculation-prompt-factory.d.ts.map +1 -0
- package/dist/prompts/factories/calculation-prompt-factory.js +183 -0
- package/dist/prompts/factories/calculation-prompt-factory.js.map +1 -0
- package/dist/prompts/factories/discovery-prompt-factory.d.ts +135 -0
- package/dist/prompts/factories/discovery-prompt-factory.d.ts.map +1 -0
- package/dist/prompts/factories/discovery-prompt-factory.js +240 -0
- package/dist/prompts/factories/discovery-prompt-factory.js.map +1 -0
- package/dist/prompts/factories/event-subscription-factory.d.ts +177 -0
- package/dist/prompts/factories/event-subscription-factory.d.ts.map +1 -0
- package/dist/prompts/factories/event-subscription-factory.js +329 -0
- package/dist/prompts/factories/event-subscription-factory.js.map +1 -0
- package/dist/prompts/factories/filtered-list-prompt-factory.d.ts +95 -0
- package/dist/prompts/factories/filtered-list-prompt-factory.d.ts.map +1 -0
- package/dist/prompts/factories/filtered-list-prompt-factory.js +147 -0
- package/dist/prompts/factories/filtered-list-prompt-factory.js.map +1 -0
- package/dist/prompts/factories/index.d.ts +33 -0
- package/dist/prompts/factories/index.d.ts.map +1 -0
- package/dist/prompts/factories/index.js +91 -0
- package/dist/prompts/factories/index.js.map +1 -0
- package/dist/prompts/factories/invite-management-factory.d.ts +88 -0
- package/dist/prompts/factories/invite-management-factory.d.ts.map +1 -0
- package/dist/prompts/factories/invite-management-factory.js +262 -0
- package/dist/prompts/factories/invite-management-factory.js.map +1 -0
- package/dist/prompts/factories/reaction-prompt-factory.d.ts +81 -0
- package/dist/prompts/factories/reaction-prompt-factory.d.ts.map +1 -0
- package/dist/prompts/factories/reaction-prompt-factory.js +188 -0
- package/dist/prompts/factories/reaction-prompt-factory.js.map +1 -0
- package/dist/prompts/factories/simple-operation-factory.d.ts +166 -0
- package/dist/prompts/factories/simple-operation-factory.d.ts.map +1 -0
- package/dist/prompts/factories/simple-operation-factory.js +218 -0
- package/dist/prompts/factories/simple-operation-factory.js.map +1 -0
- package/dist/prompts/index.d.ts +31 -6
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +136 -5
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/locks.d.ts.map +1 -1
- package/dist/prompts/locks.js +32 -56
- package/dist/prompts/locks.js.map +1 -1
- package/dist/prompts/moderators.d.ts +22 -0
- package/dist/prompts/moderators.d.ts.map +1 -0
- package/dist/prompts/moderators.js +62 -0
- package/dist/prompts/moderators.js.map +1 -0
- package/dist/prompts/monitoring.d.ts +3 -1
- package/dist/prompts/monitoring.d.ts.map +1 -1
- package/dist/prompts/monitoring.js +52 -140
- package/dist/prompts/monitoring.js.map +1 -1
- package/dist/prompts/overseers.d.ts +34 -0
- package/dist/prompts/overseers.d.ts.map +1 -0
- package/dist/prompts/overseers.js +117 -0
- package/dist/prompts/overseers.js.map +1 -0
- package/dist/prompts/pools.d.ts +22 -20
- package/dist/prompts/pools.d.ts.map +1 -1
- package/dist/prompts/pools.js +150 -251
- package/dist/prompts/pools.js.map +1 -1
- package/dist/prompts/portfolio.d.ts.map +1 -1
- package/dist/prompts/portfolio.js +1 -9
- package/dist/prompts/portfolio.js.map +1 -1
- package/dist/prompts/prompt-factories.d.ts +179 -0
- package/dist/prompts/prompt-factories.d.ts.map +1 -0
- package/dist/prompts/prompt-factories.js +230 -0
- package/dist/prompts/prompt-factories.js.map +1 -0
- package/dist/prompts/referrals.d.ts +27 -0
- package/dist/prompts/referrals.d.ts.map +1 -0
- package/dist/prompts/referrals.js +176 -0
- package/dist/prompts/referrals.js.map +1 -0
- package/dist/prompts/streaming.d.ts +84 -0
- package/dist/prompts/streaming.d.ts.map +1 -0
- package/dist/prompts/streaming.js +411 -0
- package/dist/prompts/streaming.js.map +1 -0
- package/dist/prompts/tier1-bridge-operations.d.ts +30 -0
- package/dist/prompts/tier1-bridge-operations.d.ts.map +1 -0
- package/dist/prompts/tier1-bridge-operations.js +634 -0
- package/dist/prompts/tier1-bridge-operations.js.map +1 -0
- package/dist/prompts/tier1-liquidity-management.d.ts +30 -0
- package/dist/prompts/tier1-liquidity-management.d.ts.map +1 -0
- package/dist/prompts/tier1-liquidity-management.js +560 -0
- package/dist/prompts/tier1-liquidity-management.js.map +1 -0
- package/dist/prompts/tier1-pool-discovery.d.ts +30 -0
- package/dist/prompts/tier1-pool-discovery.d.ts.map +1 -0
- package/dist/prompts/tier1-pool-discovery.js +221 -0
- package/dist/prompts/tier1-pool-discovery.js.map +1 -0
- package/dist/prompts/tier1-price-history.d.ts +30 -0
- package/dist/prompts/tier1-price-history.d.ts.map +1 -0
- package/dist/prompts/tier1-price-history.js +429 -0
- package/dist/prompts/tier1-price-history.js.map +1 -0
- package/dist/prompts/tier1-token-analysis.d.ts +30 -0
- package/dist/prompts/tier1-token-analysis.d.ts.map +1 -0
- package/dist/prompts/tier1-token-analysis.js +376 -0
- package/dist/prompts/tier1-token-analysis.js.map +1 -0
- package/dist/prompts/tier2-account-setup.d.ts +24 -0
- package/dist/prompts/tier2-account-setup.d.ts.map +1 -0
- package/dist/prompts/tier2-account-setup.js +206 -0
- package/dist/prompts/tier2-account-setup.js.map +1 -0
- package/dist/prompts/tier2-advanced-liquidity.d.ts +24 -0
- package/dist/prompts/tier2-advanced-liquidity.d.ts.map +1 -0
- package/dist/prompts/tier2-advanced-liquidity.js +298 -0
- package/dist/prompts/tier2-advanced-liquidity.js.map +1 -0
- package/dist/prompts/tier2-asset-management.d.ts +25 -0
- package/dist/prompts/tier2-asset-management.d.ts.map +1 -0
- package/dist/prompts/tier2-asset-management.js +246 -0
- package/dist/prompts/tier2-asset-management.js.map +1 -0
- package/dist/prompts/tier2-token-lifecycle.d.ts +25 -0
- package/dist/prompts/tier2-token-lifecycle.d.ts.map +1 -0
- package/dist/prompts/tier2-token-lifecycle.js +241 -0
- package/dist/prompts/tier2-token-lifecycle.js.map +1 -0
- package/dist/prompts/tier3-community-engagement.d.ts +26 -0
- package/dist/prompts/tier3-community-engagement.d.ts.map +1 -0
- package/dist/prompts/tier3-community-engagement.js +610 -0
- package/dist/prompts/tier3-community-engagement.js.map +1 -0
- package/dist/prompts/tier3-moderation-workflows.d.ts +31 -0
- package/dist/prompts/tier3-moderation-workflows.d.ts.map +1 -0
- package/dist/prompts/tier3-moderation-workflows.js +511 -0
- package/dist/prompts/tier3-moderation-workflows.js.map +1 -0
- package/dist/prompts/tier3-streaming-management.d.ts +26 -0
- package/dist/prompts/tier3-streaming-management.d.ts.map +1 -0
- package/dist/prompts/tier3-streaming-management.js +797 -0
- package/dist/prompts/tier3-streaming-management.js.map +1 -0
- package/dist/prompts/token-bans.d.ts +27 -0
- package/dist/prompts/token-bans.d.ts.map +1 -0
- package/dist/prompts/token-bans.js +77 -0
- package/dist/prompts/token-bans.js.map +1 -0
- package/dist/prompts/trades.d.ts +22 -0
- package/dist/prompts/trades.d.ts.map +1 -0
- package/dist/prompts/trades.js +107 -0
- package/dist/prompts/trades.js.map +1 -0
- package/dist/prompts/trading-calculations.d.ts +3 -1
- package/dist/prompts/trading-calculations.d.ts.map +1 -1
- package/dist/prompts/trading-calculations.js +134 -270
- package/dist/prompts/trading-calculations.js.map +1 -1
- package/dist/prompts/trading.d.ts +10 -1
- package/dist/prompts/trading.d.ts.map +1 -1
- package/dist/prompts/trading.js +128 -2
- package/dist/prompts/trading.js.map +1 -1
- package/dist/prompts/transfers.d.ts +2 -1
- package/dist/prompts/transfers.d.ts.map +1 -1
- package/dist/prompts/transfers.js +26 -30
- package/dist/prompts/transfers.js.map +1 -1
- package/dist/prompts/uploads.d.ts +19 -0
- package/dist/prompts/uploads.d.ts.map +1 -0
- package/dist/prompts/uploads.js +114 -0
- package/dist/prompts/uploads.js.map +1 -0
- package/dist/prompts/utility-tools.d.ts.map +1 -1
- package/dist/prompts/utility-tools.js +27 -18
- package/dist/prompts/utility-tools.js.map +1 -1
- package/dist/prompts/utils/index.d.ts +21 -0
- package/dist/prompts/utils/index.d.ts.map +1 -0
- package/dist/prompts/utils/index.js +38 -0
- package/dist/prompts/utils/index.js.map +1 -0
- package/dist/prompts/utils/pagination-helpers.d.ts +95 -0
- package/dist/prompts/utils/pagination-helpers.d.ts.map +1 -0
- package/dist/prompts/utils/pagination-helpers.js +121 -0
- package/dist/prompts/utils/pagination-helpers.js.map +1 -0
- package/dist/prompts/utils/workflowTemplates.d.ts.map +1 -1
- package/dist/prompts/utils/workflowTemplates.js +4 -3
- package/dist/prompts/utils/workflowTemplates.js.map +1 -1
- package/dist/prompts/wallet.d.ts +24 -0
- package/dist/prompts/wallet.d.ts.map +1 -0
- package/dist/prompts/wallet.js +139 -0
- package/dist/prompts/wallet.js.map +1 -0
- package/dist/schemas/common-schemas.d.ts +890 -0
- package/dist/schemas/common-schemas.d.ts.map +1 -1
- package/dist/schemas/common-schemas.js +853 -1
- package/dist/schemas/common-schemas.js.map +1 -1
- package/dist/server.d.ts +31 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +68 -7
- package/dist/server.js.map +1 -1
- package/dist/tools/api-keys/index.d.ts +41 -0
- package/dist/tools/api-keys/index.d.ts.map +1 -0
- package/dist/tools/api-keys/index.js +245 -0
- package/dist/tools/api-keys/index.js.map +1 -0
- package/dist/tools/auth/index.d.ts +19 -0
- package/dist/tools/auth/index.d.ts.map +1 -0
- package/dist/tools/auth/index.js +138 -0
- package/dist/tools/auth/index.js.map +1 -0
- package/dist/tools/balance/helpers/format-balance.d.ts +86 -0
- package/dist/tools/balance/helpers/format-balance.d.ts.map +1 -0
- package/dist/tools/balance/helpers/format-balance.js +87 -0
- package/dist/tools/balance/helpers/format-balance.js.map +1 -0
- package/dist/tools/balance/index.d.ts +4 -4
- package/dist/tools/balance/index.d.ts.map +1 -1
- package/dist/tools/balance/index.js +64 -176
- package/dist/tools/balance/index.js.map +1 -1
- package/dist/tools/ban/index.d.ts +37 -0
- package/dist/tools/ban/index.d.ts.map +1 -0
- package/dist/tools/ban/index.js +206 -0
- package/dist/tools/ban/index.js.map +1 -0
- package/dist/tools/bridge/helpers/bridgeable-token-tools.d.ts +87 -0
- package/dist/tools/bridge/helpers/bridgeable-token-tools.d.ts.map +1 -0
- package/dist/tools/bridge/helpers/bridgeable-token-tools.js +130 -0
- package/dist/tools/bridge/helpers/bridgeable-token-tools.js.map +1 -0
- package/dist/tools/bridge/helpers/external-chain-balance-tools.d.ts +87 -0
- package/dist/tools/bridge/helpers/external-chain-balance-tools.d.ts.map +1 -0
- package/dist/tools/bridge/helpers/external-chain-balance-tools.js +167 -0
- package/dist/tools/bridge/helpers/external-chain-balance-tools.js.map +1 -0
- package/dist/tools/bridge/index.d.ts +3 -7
- package/dist/tools/bridge/index.d.ts.map +1 -1
- package/dist/tools/bridge/index.js +89 -371
- package/dist/tools/bridge/index.js.map +1 -1
- package/dist/tools/burns/index.d.ts.map +1 -1
- package/dist/tools/burns/index.js +8 -36
- package/dist/tools/burns/index.js.map +1 -1
- package/dist/tools/chat/getPinnedChatMessage.d.ts +15 -0
- package/dist/tools/chat/getPinnedChatMessage.d.ts.map +1 -0
- package/dist/tools/chat/getPinnedChatMessage.js +37 -0
- package/dist/tools/chat/getPinnedChatMessage.js.map +1 -0
- package/dist/tools/chat/index.d.ts +73 -0
- package/dist/tools/chat/index.d.ts.map +1 -0
- package/dist/tools/chat/index.js +359 -0
- package/dist/tools/chat/index.js.map +1 -0
- package/dist/tools/chat/pinChatMessage.d.ts +16 -0
- package/dist/tools/chat/pinChatMessage.d.ts.map +1 -0
- package/dist/tools/chat/pinChatMessage.js +51 -0
- package/dist/tools/chat/pinChatMessage.js.map +1 -0
- package/dist/tools/chat/unpinChatMessage.d.ts +16 -0
- package/dist/tools/chat/unpinChatMessage.d.ts.map +1 -0
- package/dist/tools/chat/unpinChatMessage.js +39 -0
- package/dist/tools/chat/unpinChatMessage.js.map +1 -0
- package/dist/tools/chat-messages/index.d.ts +35 -0
- package/dist/tools/chat-messages/index.d.ts.map +1 -0
- package/dist/tools/chat-messages/index.js +165 -0
- package/dist/tools/chat-messages/index.js.map +1 -0
- package/dist/tools/comments/index.d.ts +44 -0
- package/dist/tools/comments/index.d.ts.map +1 -0
- package/dist/tools/comments/index.js +171 -0
- package/dist/tools/comments/index.js.map +1 -0
- package/dist/tools/content-flags/index.d.ts +38 -0
- package/dist/tools/content-flags/index.d.ts.map +1 -0
- package/dist/tools/content-flags/index.js +282 -0
- package/dist/tools/content-flags/index.js.map +1 -0
- package/dist/tools/content-reactions/index.d.ts +43 -0
- package/dist/tools/content-reactions/index.d.ts.map +1 -0
- package/dist/tools/content-reactions/index.js +135 -0
- package/dist/tools/content-reactions/index.js.map +1 -0
- package/dist/tools/creation/index.d.ts.map +1 -1
- package/dist/tools/creation/index.js +2 -5
- package/dist/tools/creation/index.js.map +1 -1
- package/dist/tools/dex/fetchAllDexPools.d.ts.map +1 -1
- package/dist/tools/dex/fetchAllDexPools.js +5 -21
- package/dist/tools/dex/fetchAllDexPools.js.map +1 -1
- package/dist/tools/dex/fetchDexPools.d.ts.map +1 -1
- package/dist/tools/dex/fetchDexPools.js +11 -28
- package/dist/tools/dex/fetchDexPools.js.map +1 -1
- package/dist/tools/dex/helpers.d.ts +479 -0
- package/dist/tools/dex/helpers.d.ts.map +1 -0
- package/dist/tools/dex/helpers.js +570 -0
- package/dist/tools/dex/helpers.js.map +1 -0
- package/dist/tools/dex/index.d.ts +50 -11
- package/dist/tools/dex/index.d.ts.map +1 -1
- package/dist/tools/dex/index.js +124 -486
- package/dist/tools/dex/index.js.map +1 -1
- package/dist/tools/dex/leaderboard.d.ts.map +1 -1
- package/dist/tools/dex/leaderboard.js +5 -70
- package/dist/tools/dex/leaderboard.js.map +1 -1
- package/dist/tools/dex/liquidity-positions.d.ts.map +1 -1
- package/dist/tools/dex/liquidity-positions.js +20 -91
- package/dist/tools/dex/liquidity-positions.js.map +1 -1
- package/dist/tools/dex/volume.d.ts.map +1 -1
- package/dist/tools/dex/volume.js +6 -21
- package/dist/tools/dex/volume.js.map +1 -1
- package/dist/tools/dex-analytics/index.d.ts +48 -0
- package/dist/tools/dex-analytics/index.d.ts.map +1 -0
- package/dist/tools/dex-analytics/index.js +111 -0
- package/dist/tools/dex-analytics/index.js.map +1 -0
- package/dist/tools/dex-liquidity/index.d.ts +22 -0
- package/dist/tools/dex-liquidity/index.d.ts.map +1 -0
- package/dist/tools/dex-liquidity/index.js +384 -0
- package/dist/tools/dex-liquidity/index.js.map +1 -0
- package/dist/tools/dex-pools/index.d.ts +60 -0
- package/dist/tools/dex-pools/index.d.ts.map +1 -0
- package/dist/tools/dex-pools/index.js +231 -0
- package/dist/tools/dex-pools/index.js.map +1 -0
- package/dist/tools/handler-factories.d.ts +1401 -0
- package/dist/tools/handler-factories.d.ts.map +1 -0
- package/dist/tools/handler-factories.js +1680 -0
- package/dist/tools/handler-factories.js.map +1 -0
- package/dist/tools/index.d.ts +1 -11
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +171 -27
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/locks/index.d.ts +2 -0
- package/dist/tools/locks/index.d.ts.map +1 -1
- package/dist/tools/locks/index.js +9 -86
- package/dist/tools/locks/index.js.map +1 -1
- package/dist/tools/moderators/index.d.ts +53 -0
- package/dist/tools/moderators/index.d.ts.map +1 -0
- package/dist/tools/moderators/index.js +258 -0
- package/dist/tools/moderators/index.js.map +1 -0
- package/dist/tools/overseers/getOverseerUserSummary.d.ts +15 -0
- package/dist/tools/overseers/getOverseerUserSummary.d.ts.map +1 -0
- package/dist/tools/overseers/getOverseerUserSummary.js +40 -0
- package/dist/tools/overseers/getOverseerUserSummary.js.map +1 -0
- package/dist/tools/overseers/index.d.ts +58 -0
- package/dist/tools/overseers/index.d.ts.map +1 -0
- package/dist/tools/overseers/index.js +325 -0
- package/dist/tools/overseers/index.js.map +1 -0
- package/dist/tools/overseers/listOverseerUsers.d.ts +15 -0
- package/dist/tools/overseers/listOverseerUsers.d.ts.map +1 -0
- package/dist/tools/overseers/listOverseerUsers.js +76 -0
- package/dist/tools/overseers/listOverseerUsers.js.map +1 -0
- package/dist/tools/pagination-handler-factory.d.ts +131 -0
- package/dist/tools/pagination-handler-factory.d.ts.map +1 -0
- package/dist/tools/pagination-handler-factory.js +159 -0
- package/dist/tools/pagination-handler-factory.js.map +1 -0
- package/dist/tools/pools/checkPoolExists.d.ts +16 -0
- package/dist/tools/pools/checkPoolExists.d.ts.map +1 -0
- package/dist/tools/pools/checkPoolExists.js +48 -0
- package/dist/tools/pools/checkPoolExists.js.map +1 -0
- package/dist/tools/pools/fetchAllPools.d.ts.map +1 -1
- package/dist/tools/pools/fetchAllPools.js +51 -11
- package/dist/tools/pools/fetchAllPools.js.map +1 -1
- package/dist/tools/pools/fetchAllPriceHistory.d.ts.map +1 -1
- package/dist/tools/pools/fetchAllPriceHistory.js +11 -51
- package/dist/tools/pools/fetchAllPriceHistory.js.map +1 -1
- package/dist/tools/pools/fetchPoolDetails.d.ts.map +1 -1
- package/dist/tools/pools/fetchPoolDetails.js +4 -11
- package/dist/tools/pools/fetchPoolDetails.js.map +1 -1
- package/dist/tools/pools/fetchPools.d.ts.map +1 -1
- package/dist/tools/pools/fetchPools.js +40 -20
- package/dist/tools/pools/fetchPools.js.map +1 -1
- package/dist/tools/pools/fetchPriceHistory.d.ts.map +1 -1
- package/dist/tools/pools/fetchPriceHistory.js +10 -51
- package/dist/tools/pools/fetchPriceHistory.js.map +1 -1
- package/dist/tools/pools/fetchTokenDetails.d.ts.map +1 -1
- package/dist/tools/pools/fetchTokenDetails.js +4 -35
- package/dist/tools/pools/fetchTokenDetails.js.map +1 -1
- package/dist/tools/pools/index.d.ts +2 -0
- package/dist/tools/pools/index.d.ts.map +1 -1
- package/dist/tools/pools/index.js +103 -35
- package/dist/tools/pools/index.js.map +1 -1
- package/dist/tools/pools/onDexPoolCreation.d.ts +1 -2
- package/dist/tools/pools/onDexPoolCreation.d.ts.map +1 -1
- package/dist/tools/pools/onDexPoolCreation.js +14 -48
- package/dist/tools/pools/onDexPoolCreation.js.map +1 -1
- package/dist/tools/pools/onLaunchpadTokenCreation.d.ts +1 -2
- package/dist/tools/pools/onLaunchpadTokenCreation.d.ts.map +1 -1
- package/dist/tools/pools/onLaunchpadTokenCreation.js +9 -42
- package/dist/tools/pools/onLaunchpadTokenCreation.js.map +1 -1
- package/dist/tools/pools/priceHistoryFactory.d.ts +44 -0
- package/dist/tools/pools/priceHistoryFactory.d.ts.map +1 -0
- package/dist/tools/pools/priceHistoryFactory.js +154 -0
- package/dist/tools/pools/priceHistoryFactory.js.map +1 -0
- package/dist/tools/pools/updateTokenSocials.d.ts +16 -0
- package/dist/tools/pools/updateTokenSocials.d.ts.map +1 -0
- package/dist/tools/pools/updateTokenSocials.js +84 -0
- package/dist/tools/pools/updateTokenSocials.js.map +1 -0
- package/dist/tools/referrals/index.d.ts +12 -0
- package/dist/tools/referrals/index.d.ts.map +1 -0
- package/dist/tools/referrals/index.js +110 -0
- package/dist/tools/referrals/index.js.map +1 -0
- package/dist/tools/streaming/index.d.ts +94 -0
- package/dist/tools/streaming/index.d.ts.map +1 -0
- package/dist/tools/streaming/index.js +549 -0
- package/dist/tools/streaming/index.js.map +1 -0
- package/dist/tools/streaming/setNextLiveStreamCountdown.d.ts +16 -0
- package/dist/tools/streaming/setNextLiveStreamCountdown.d.ts.map +1 -0
- package/dist/tools/streaming/setNextLiveStreamCountdown.js +62 -0
- package/dist/tools/streaming/setNextLiveStreamCountdown.js.map +1 -0
- package/dist/tools/token-ban/index.d.ts +39 -0
- package/dist/tools/token-ban/index.d.ts.map +1 -0
- package/dist/tools/token-ban/index.js +177 -0
- package/dist/tools/token-ban/index.js.map +1 -0
- package/dist/tools/tool-factory.d.ts +84 -0
- package/dist/tools/tool-factory.d.ts.map +1 -0
- package/dist/tools/tool-factory.js +135 -0
- package/dist/tools/tool-factory.js.map +1 -0
- package/dist/tools/trades/index.d.ts +20 -0
- package/dist/tools/trades/index.d.ts.map +1 -0
- package/dist/tools/trades/index.js +113 -0
- package/dist/tools/trades/index.js.map +1 -0
- package/dist/tools/trading/helpers/arg-extractors.d.ts +128 -0
- package/dist/tools/trading/helpers/arg-extractors.d.ts.map +1 -0
- package/dist/tools/trading/helpers/arg-extractors.js +215 -0
- package/dist/tools/trading/helpers/arg-extractors.js.map +1 -0
- package/dist/tools/trading/helpers/index.d.ts +8 -0
- package/dist/tools/trading/helpers/index.d.ts.map +1 -0
- package/dist/tools/trading/helpers/index.js +24 -0
- package/dist/tools/trading/helpers/index.js.map +1 -0
- package/dist/tools/trading/helpers/trading-schemas.d.ts +276 -0
- package/dist/tools/trading/helpers/trading-schemas.d.ts.map +1 -0
- package/dist/tools/trading/helpers/trading-schemas.js +310 -0
- package/dist/tools/trading/helpers/trading-schemas.js.map +1 -0
- package/dist/tools/trading/index.d.ts +2 -0
- package/dist/tools/trading/index.d.ts.map +1 -1
- package/dist/tools/trading/index.js +148 -371
- package/dist/tools/trading/index.js.map +1 -1
- package/dist/tools/transfers/index.d.ts +3 -0
- package/dist/tools/transfers/index.d.ts.map +1 -1
- package/dist/tools/transfers/index.js +72 -52
- package/dist/tools/transfers/index.js.map +1 -1
- package/dist/tools/utils/cleanup.d.ts.map +1 -1
- package/dist/tools/utils/cleanup.js +2 -9
- package/dist/tools/utils/cleanup.js.map +1 -1
- package/dist/tools/utils/clearCache.d.ts.map +1 -1
- package/dist/tools/utils/clearCache.js +5 -7
- package/dist/tools/utils/clearCache.js.map +1 -1
- package/dist/tools/utils/explainSdkUsage.d.ts +52 -0
- package/dist/tools/utils/explainSdkUsage.d.ts.map +1 -1
- package/dist/tools/utils/explainSdkUsage.js +1905 -93
- package/dist/tools/utils/explainSdkUsage.js.map +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.d.ts.map +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js +2 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js.map +1 -1
- package/dist/tools/utils/index.d.ts +2 -0
- package/dist/tools/utils/index.d.ts.map +1 -1
- package/dist/tools/utils/index.js +2 -12
- package/dist/tools/utils/index.js.map +1 -1
- package/dist/tools/wallet/index.d.ts +7 -0
- package/dist/tools/wallet/index.d.ts.map +1 -0
- package/dist/tools/wallet/index.js +24 -0
- package/dist/tools/wallet/index.js.map +1 -0
- package/dist/utils/date-converter.d.ts +58 -0
- package/dist/utils/date-converter.d.ts.map +1 -0
- package/dist/utils/date-converter.js +83 -0
- package/dist/utils/date-converter.js.map +1 -0
- package/dist/utils/pool-filter-builder.d.ts +78 -0
- package/dist/utils/pool-filter-builder.d.ts.map +1 -0
- package/dist/utils/pool-filter-builder.js +130 -0
- package/dist/utils/pool-filter-builder.js.map +1 -0
- package/dist/utils/safe-parsers.d.ts +87 -0
- package/dist/utils/safe-parsers.d.ts.map +1 -0
- package/dist/utils/safe-parsers.js +134 -0
- package/dist/utils/safe-parsers.js.map +1 -0
- package/dist/utils/validation.d.ts +5 -5
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +24 -21
- package/dist/utils/validation.js.map +1 -1
- package/package.json +23 -15
- package/.env.example +0 -21
- package/.eslintrc.json +0 -88
- package/CHANGELOG.md +0 -2161
- package/DOCS_AUDIT_REPORT.md +0 -189
- package/DRY_REFACTORING_GUIDE.md +0 -271
- package/MCP_COVERAGE_REPORT.md +0 -164
- package/MCP_TEST_ANALYSIS.md +0 -317
- package/jest.integration.config.js +0 -70
- package/scripts/inject-version.ts +0 -31
- package/scripts/validate-mcp-test-analysis.ts +0 -250
package/CHANGELOG.md
DELETED
|
@@ -1,2161 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 1.25.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- Add event watcher tools for real-time pool and token discovery:
|
|
8
|
-
|
|
9
|
-
**New MCP Tools:**
|
|
10
|
-
- `gala_launchpad_on_dex_pool_creation` - Watch for new DEX pool creation with filtering
|
|
11
|
-
- Parameters: minTVL (optional), tokens (optional), intervalMs (optional), durationSeconds
|
|
12
|
-
(optional)
|
|
13
|
-
- Returns: poolsDetected count, durationSeconds, and array of detected pools
|
|
14
|
-
- `gala_launchpad_on_launchpad_token_creation` - Watch for new launchpad token creation with
|
|
15
|
-
filtering
|
|
16
|
-
- Parameters: creatorAddress (optional), intervalMs (optional), durationSeconds (optional)
|
|
17
|
-
- Returns: tokensDetected count, durationSeconds, and array of detected tokens
|
|
18
|
-
|
|
19
|
-
**Updates:**
|
|
20
|
-
- Tool registry updated from 74 to 76 tools
|
|
21
|
-
- Pool tools category increased from 17 to 19 tools
|
|
22
|
-
- Updated SDK dependency to @gala-chain/launchpad-sdk@^3.29.0
|
|
23
|
-
|
|
24
|
-
🧠 Generated with [Claude Code](https://claude.com/claude-code)
|
|
25
|
-
|
|
26
|
-
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
27
|
-
|
|
28
|
-
### Patch Changes
|
|
29
|
-
|
|
30
|
-
- Updated dependencies
|
|
31
|
-
- @gala-chain/launchpad-sdk@3.29.0
|
|
32
|
-
|
|
33
|
-
## 1.24.1
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- fix: Update tool registry validation count from 72 to 74
|
|
38
|
-
- Fixed hard-coded tool count validation that was preventing v1.24.0 from starting
|
|
39
|
-
- Updated from 72 tools to 74 tools to account for 2 new DEX pool discovery tools
|
|
40
|
-
- Updated registry documentation to reflect correct tool distribution
|
|
41
|
-
|
|
42
|
-
## 1.24.0
|
|
43
|
-
|
|
44
|
-
### Minor Changes
|
|
45
|
-
|
|
46
|
-
- feat: Add DEX Pool Discovery MCP tools and prompts
|
|
47
|
-
- 2 new MCP tools: `gala_launchpad_fetch_dex_pools`, `gala_launchpad_fetch_all_dex_pools`
|
|
48
|
-
- 2 new slash commands: `/fetch-dex-pools`, `/fetch-all-dex-pools`
|
|
49
|
-
- Full support for GalaSwap liquidity pool exploration via MCP
|
|
50
|
-
- Integration with new SDK v3.28.0 DEX Pool Discovery feature
|
|
51
|
-
- Complete test coverage with 586 tests passing
|
|
52
|
-
|
|
53
|
-
## 1.23.0
|
|
54
|
-
|
|
55
|
-
### Minor Changes
|
|
56
|
-
|
|
57
|
-
- 2bab95b: feat: Add 50 new slash commands to achieve complete 1:1 MCP tool-to-command mapping
|
|
58
|
-
|
|
59
|
-
Complete implementation of user requirement: "every MCP tool should have a corresponding slash
|
|
60
|
-
command."
|
|
61
|
-
|
|
62
|
-
## Changes
|
|
63
|
-
|
|
64
|
-
### New Slash Commands (50 total)
|
|
65
|
-
|
|
66
|
-
**Pool Management (15 commands):**
|
|
67
|
-
- fetch-pools, fetch-all-pools, fetch-pool-details, fetch-pool-details-for-calculation
|
|
68
|
-
- fetch-token-details, fetch-token-distribution, fetch-token-badges, fetch-volume-data
|
|
69
|
-
- fetch-gala-spot-price, fetch-token-spot-price, fetch-launchpad-token-spot-price
|
|
70
|
-
- fetch-price-history, fetch-all-price-history
|
|
71
|
-
- check-token-name, check-token-symbol, resolve-vault-address, resolve-token-class-key
|
|
72
|
-
|
|
73
|
-
**Trading Calculations (11 commands):**
|
|
74
|
-
- calculate-buy-amount, calculate-sell-amount, fetch-trades, calculate-initial-buy
|
|
75
|
-
- get-bundler-transaction-result, calculate-graduation-cost
|
|
76
|
-
- calculate-buy-amount-local, calculate-buy-amount-external
|
|
77
|
-
- calculate-sell-amount-local, calculate-sell-amount-external
|
|
78
|
-
- is-token-graduated
|
|
79
|
-
|
|
80
|
-
**Balance & Portfolio (4 commands):**
|
|
81
|
-
- fetch-gala-balance, fetch-token-balance, fetch-tokens-created, update-profile
|
|
82
|
-
|
|
83
|
-
**Creation Utilities (3 commands):**
|
|
84
|
-
- upload-profile-image, upload-token-image, fetch-launch-token-fee
|
|
85
|
-
|
|
86
|
-
**Social & Comments (2 commands):**
|
|
87
|
-
- post-comment, fetch-comments
|
|
88
|
-
|
|
89
|
-
**Token Transfers (2 commands):**
|
|
90
|
-
- transfer-gala, transfer-token
|
|
91
|
-
|
|
92
|
-
**Utility & System (12 commands):**
|
|
93
|
-
- create-wallet, get-address, get-ethereum-address, get-config
|
|
94
|
-
- get-url-by-token-name, explain-sdk-usage, get-cache-info, clear-cache
|
|
95
|
-
- has-wallet, get-wallet, set-wallet, get-environment
|
|
96
|
-
|
|
97
|
-
### Tool Constants
|
|
98
|
-
|
|
99
|
-
**Updated `src/constants/mcpToolNames.ts`:**
|
|
100
|
-
- Added 14 new tool constants to POOL_TOOLS (moved FETCH_TOKEN_DETAILS, FETCH_PRICE_HISTORY,
|
|
101
|
-
FETCH_ALL_PRICE_HISTORY, and resolved vault/token class key tools)
|
|
102
|
-
- Expanded UTILITY_TOOLS from 6 to 14 tools (added cache management, wallet management,
|
|
103
|
-
environment/version tools)
|
|
104
|
-
- Updated comments to reflect "72 tools across 8 categories"
|
|
105
|
-
|
|
106
|
-
### New Prompt Files
|
|
107
|
-
|
|
108
|
-
Created 7 new prompt files with comprehensive handler functions:
|
|
109
|
-
- `src/prompts/pools.ts` - Pool management commands
|
|
110
|
-
- `src/prompts/trading-calculations.ts` - Trading calculation commands
|
|
111
|
-
- `src/prompts/balances.ts` - Balance query commands
|
|
112
|
-
- `src/prompts/creation-utils.ts` - Creation utility commands
|
|
113
|
-
- `src/prompts/social.ts` - Social/comments commands
|
|
114
|
-
- `src/prompts/transfers.ts` - Token transfer commands
|
|
115
|
-
- `src/prompts/utility-tools.ts` - Utility and system commands
|
|
116
|
-
|
|
117
|
-
### Documentation Updates
|
|
118
|
-
|
|
119
|
-
**Updated `packages/mcp-server/README.md`:**
|
|
120
|
-
- Updated tool count from 70 to 72 across all sections
|
|
121
|
-
- Updated slash command count from 23 to 72 (was only 18 original commands + 24 new ones = 42
|
|
122
|
-
documented, now 72 total)
|
|
123
|
-
- Added comprehensive documentation for all 48 new slash commands organized by category
|
|
124
|
-
- Added emphasis on "1:1 tool-to-command mapping" - core design philosophy
|
|
125
|
-
- Complete tool listings now include all utility tools (cache, wallet, environment management)
|
|
126
|
-
|
|
127
|
-
### Architecture Achievement
|
|
128
|
-
|
|
129
|
-
The implementation completes the core design goal: **Every MCP tool now has exactly one
|
|
130
|
-
corresponding slash command**, enabling users to interact with all backend functionality through
|
|
131
|
-
the familiar slash command interface.
|
|
132
|
-
|
|
133
|
-
**Tool-to-Command Mapping:**
|
|
134
|
-
- 72 MCP tools → 72 slash commands (perfect 1:1 ratio)
|
|
135
|
-
- 9 tool categories → 9 command category sections in documentation
|
|
136
|
-
- Consistent naming patterns for easy discovery (tool names match command names)
|
|
137
|
-
|
|
138
|
-
### Code Organization Improvements
|
|
139
|
-
|
|
140
|
-
**Updated MCP_TOOLS spread operator order in `src/constants/mcpToolNames.ts`:**
|
|
141
|
-
- Reordered to place UTILITY_TOOLS before DEX_TOOLS and LIQUIDITY_TOOLS
|
|
142
|
-
- New order: POOL → TRADING → BALANCE → CREATION → SOCIAL → TRANSFER → UTILITY → DEX → LIQUIDITY
|
|
143
|
-
- Improves code consistency and follows logical category ordering
|
|
144
|
-
|
|
145
|
-
### Validation Improvements
|
|
146
|
-
|
|
147
|
-
Fixed validation function calls in all new prompt files to use correct function signatures:
|
|
148
|
-
- `validateTokenName(name, fieldName)` - Added fieldName parameter
|
|
149
|
-
- `validateAddress(address, fieldName)` - Added fieldName parameter
|
|
150
|
-
- `validateNumericAmount(amount, fieldName)` - Added required fieldName parameter
|
|
151
|
-
- Improved error messages when validation fails
|
|
152
|
-
|
|
153
|
-
### Test Coverage
|
|
154
|
-
|
|
155
|
-
All tests passing:
|
|
156
|
-
- TypeScript compilation: 0 errors
|
|
157
|
-
- Jest test suite: 1401 tests across 30 test suites
|
|
158
|
-
- ESLint: 0 linting issues
|
|
159
|
-
- Registry tests: Validates all 72 prompts are registered and discoverable
|
|
160
|
-
|
|
161
|
-
## Why This Matters
|
|
162
|
-
|
|
163
|
-
User's explicit requirement: _"why would a functionality be worth of a 'tool' that the mcp can
|
|
164
|
-
use, but not a / command I can use? It just seems like slashes should be mainly for exposing mcp
|
|
165
|
-
tools for quick consumption"_
|
|
166
|
-
|
|
167
|
-
This implementation fulfills that philosophy by ensuring complete parity between available tools
|
|
168
|
-
and available commands. Users never encounter a capability they can't access from the slash
|
|
169
|
-
command interface.
|
|
170
|
-
|
|
171
|
-
## 1.22.4
|
|
172
|
-
|
|
173
|
-
### Patch Changes
|
|
174
|
-
|
|
175
|
-
- 096a518: feat: add environment switching tools, prompts, and comprehensive test coverage for MCP
|
|
176
|
-
server
|
|
177
|
-
|
|
178
|
-
**New Tools:**
|
|
179
|
-
- Added gala_launchpad_get_environment tool to query current environment (production, development,
|
|
180
|
-
or testing)
|
|
181
|
-
- Added gala_launchpad_switch_environment tool to dynamically switch environments while preserving
|
|
182
|
-
wallet configuration
|
|
183
|
-
|
|
184
|
-
**New Prompts:**
|
|
185
|
-
- Added /galachain-launchpad:switch-environment slash command for guided environment switching
|
|
186
|
-
workflow
|
|
187
|
-
|
|
188
|
-
**Enhancements:**
|
|
189
|
-
- Enhanced gala_launchpad_get_config to include mcpServerEnvironment field showing current
|
|
190
|
-
environment state
|
|
191
|
-
- Implemented server-level tool support via new createServerLevelTool factory function
|
|
192
|
-
- Updated MCP tool handler signature to accept optional server parameter (backward compatible)
|
|
193
|
-
- Modified LaunchpadMCPServer to track currentEnvironment and currentPrivateKey state
|
|
194
|
-
- Added switchEnvironment() and getEnvironment() methods to LaunchpadMCPServer class with
|
|
195
|
-
fail-safe error handling
|
|
196
|
-
|
|
197
|
-
**Bug Fixes:**
|
|
198
|
-
- Fixed version mismatch in server.ts: now uses dynamically injected MCP_SERVER_VERSION instead of
|
|
199
|
-
hardcoded value
|
|
200
|
-
- Fixed error handling in switchEnvironment(): now creates new SDK before destroying old one to
|
|
201
|
-
prevent broken state on failure
|
|
202
|
-
|
|
203
|
-
**Tests:**
|
|
204
|
-
- Added 23 comprehensive server contract tests covering environment switching, state management,
|
|
205
|
-
error handling, and type safety
|
|
206
|
-
- Updated prompt registry tests to reflect 24 prompts (was 23)
|
|
207
|
-
- All 278 MCP server unit tests passing (was 255), total suite 1401+ tests
|
|
208
|
-
|
|
209
|
-
**Documentation:**
|
|
210
|
-
- Updated tool registry documentation: 72 tools total (pools: 17, trading: 13, dex: 13, balance:
|
|
211
|
-
6, creation: 4, social: 2, transfers: 2, utils: 15)
|
|
212
|
-
- Updated CLAUDE.md with comprehensive environment switching documentation
|
|
213
|
-
|
|
214
|
-
## 1.22.3
|
|
215
|
-
|
|
216
|
-
### Patch Changes
|
|
217
|
-
|
|
218
|
-
- fix: return raw price impact values with full precision instead of rounding to 2 decimals
|
|
219
|
-
|
|
220
|
-
Changed price impact return format from `.toFixed(2)` to `.toString()` to preserve the full
|
|
221
|
-
precision of GSwap SDK's price impact calculations. This allows consumers to see the actual price
|
|
222
|
-
impact values without rounding loss.
|
|
223
|
-
|
|
224
|
-
- Updated dependencies
|
|
225
|
-
- @gala-chain/launchpad-sdk@3.27.3
|
|
226
|
-
|
|
227
|
-
## 1.22.2
|
|
228
|
-
|
|
229
|
-
### Patch Changes
|
|
230
|
-
|
|
231
|
-
- fix: use GSwap SDK's native price impact calculation instead of custom formula
|
|
232
|
-
|
|
233
|
-
The custom price impact calculation was inaccurate. The GSwap SDK already provides a correct
|
|
234
|
-
`priceImpact` field in its quote responses that accounts for the actual exchange rate and pool
|
|
235
|
-
slippage. We now use that directly instead of computing our own formula.
|
|
236
|
-
|
|
237
|
-
This fixes issues where small swaps incorrectly showed 0% impact and large swaps showed incorrect
|
|
238
|
-
values.
|
|
239
|
-
|
|
240
|
-
- Updated dependencies
|
|
241
|
-
- @gala-chain/launchpad-sdk@3.27.2
|
|
242
|
-
|
|
243
|
-
## 1.22.1
|
|
244
|
-
|
|
245
|
-
### Patch Changes
|
|
246
|
-
|
|
247
|
-
- Redeploy with latest price impact fix
|
|
248
|
-
- Updated dependencies
|
|
249
|
-
- @gala-chain/launchpad-sdk@3.27.1
|
|
250
|
-
|
|
251
|
-
## 1.22.0
|
|
252
|
-
|
|
253
|
-
### Minor Changes
|
|
254
|
-
|
|
255
|
-
- 0a49faf: **GalaSwap Liquidity Position Management (v3.25.0 SDK / v1.20.0 MCP)**
|
|
256
|
-
|
|
257
|
-
Comprehensive liquidity position management for concentrated liquidity provision on GalaSwap DEX.
|
|
258
|
-
Liquidity providers can now earn passive trading fees by providing liquidity within specific price
|
|
259
|
-
ranges.
|
|
260
|
-
|
|
261
|
-
### 8 New SDK Methods (LaunchpadSDK)
|
|
262
|
-
1. **getSwapUserLiquidityPositions(ownerAddress, limit?, bookmark?)** - View all open positions
|
|
263
|
-
for a wallet with pagination support
|
|
264
|
-
2. **getSwapLiquidityPositionById(ownerAddress, positionId)** - Get specific position by UUID
|
|
265
|
-
3. **getSwapLiquidityPosition(ownerAddress, position)** - Get position by token pair and tick
|
|
266
|
-
range
|
|
267
|
-
4. **addSwapLiquidityByPrice(args)** - Create position using user-friendly price ranges (e.g.,
|
|
268
|
-
min: 0.95, max: 1.05)
|
|
269
|
-
5. **addSwapLiquidityByTicks(args)** - Create position using precise tick boundaries (advanced)
|
|
270
|
-
6. **getSwapEstimateRemoveLiquidity(args)** - Preview amounts and fees before executing removal
|
|
271
|
-
7. **removeSwapLiquidity(args)** - Close or reduce position with slippage protection
|
|
272
|
-
8. **collectSwapPositionFees(args)** - Harvest accumulated trading fees without closing position
|
|
273
|
-
|
|
274
|
-
### 8 New MCP Tools
|
|
275
|
-
|
|
276
|
-
All SDK methods exposed as MCP tools with full type validation and privateKey override support:
|
|
277
|
-
- `gala_launchpad_get_user_liquidity_positions` - List positions with pagination
|
|
278
|
-
- `gala_launchpad_get_liquidity_position_by_id` - Get by position ID
|
|
279
|
-
- `gala_launchpad_get_liquidity_position` - Get by token pair
|
|
280
|
-
- `gala_launchpad_add_liquidity_by_price` - Create position (price-based)
|
|
281
|
-
- `gala_launchpad_add_liquidity_by_ticks` - Create position (tick-based)
|
|
282
|
-
- `gala_launchpad_estimate_remove_liquidity` - Estimate removal amounts
|
|
283
|
-
- `gala_launchpad_remove_liquidity` - Execute removal
|
|
284
|
-
- `gala_launchpad_collect_position_fees` - Collect accumulated fees
|
|
285
|
-
|
|
286
|
-
### 4 New Slash Commands (Prompts)
|
|
287
|
-
|
|
288
|
-
Quick-access workflows for Claude Desktop users:
|
|
289
|
-
- `/galachain-launchpad:my-positions` - View all liquidity positions
|
|
290
|
-
- `/galachain-launchpad:add-liquidity` - Create new position (guided workflow)
|
|
291
|
-
- `/galachain-launchpad:remove-liquidity` - Close position (with estimates)
|
|
292
|
-
- `/galachain-launchpad:collect-fees` - Harvest accumulated fees
|
|
293
|
-
|
|
294
|
-
### Key Features
|
|
295
|
-
|
|
296
|
-
**Fee Tiers**: Support for standard GalaSwap fee tiers (500 bps = 0.05%, 3000 bps = 0.30%, 10000
|
|
297
|
-
bps = 1.00%)
|
|
298
|
-
|
|
299
|
-
**Price Range Creation**: User-friendly price range interface (0.95 - 1.05) automatically converts
|
|
300
|
-
to precise tick boundaries
|
|
301
|
-
|
|
302
|
-
**Tick-Based Creation**: Advanced users can create positions using exact tick boundaries for
|
|
303
|
-
precise capital management
|
|
304
|
-
|
|
305
|
-
**Fee Collection**: Harvest passive trading fees without closing position
|
|
306
|
-
|
|
307
|
-
**Estimation**: Preview exact amounts and fees before executing any transaction
|
|
308
|
-
|
|
309
|
-
**Slippage Protection**: Built-in slippage tolerance for all operations
|
|
310
|
-
|
|
311
|
-
**Pagination**: Efficient position listing with bookmark support for large portfolios
|
|
312
|
-
|
|
313
|
-
### Documentation & Examples
|
|
314
|
-
- **Demo Script**: `packages/sdk/examples/demo-liquidity-positions.ts` - Complete workflow
|
|
315
|
-
demonstration
|
|
316
|
-
- **SDK Docs**: `explain_sdk_usage` tool includes `liquidity-positions` topic with runnable
|
|
317
|
-
examples
|
|
318
|
-
- **Integration Guide**: CLAUDE.md includes comprehensive LP integration section
|
|
319
|
-
|
|
320
|
-
### Test Coverage
|
|
321
|
-
- **54 SDK Unit Tests**: Complete test coverage for all 8 methods with edge cases
|
|
322
|
-
- **39 MCP Tool Tests**: Full validation of all 8 MCP tools and input schemas
|
|
323
|
-
- **1401 Total Tests**: Full regression test suite passing
|
|
324
|
-
|
|
325
|
-
### Version Updates
|
|
326
|
-
- SDK: 3.24.2 → 3.25.0 (minor version bump)
|
|
327
|
-
- MCP Server: 1.19.2 → 1.20.0 (minor version bump)
|
|
328
|
-
|
|
329
|
-
### Patch Changes
|
|
330
|
-
|
|
331
|
-
- Updated dependencies [0a49faf]
|
|
332
|
-
- Updated dependencies
|
|
333
|
-
- @gala-chain/launchpad-sdk@3.27.0
|
|
334
|
-
|
|
335
|
-
## 1.19.0
|
|
336
|
-
|
|
337
|
-
### Minor Changes
|
|
338
|
-
|
|
339
|
-
- 683396d: **New Slash Commands for Token Creation & Discovery (v1.19.0)**
|
|
340
|
-
|
|
341
|
-
Added two powerful new slash commands to the MCP server for guided token workflows:
|
|
342
|
-
|
|
343
|
-
### `/galachain-launchpad:create-token` - Token Creation Workflow
|
|
344
|
-
- **Purpose**: Guided, step-by-step token creation with validation and image upload
|
|
345
|
-
- **Arguments**:
|
|
346
|
-
- `tokenName` (required) - 3-20 alphanumeric characters with hyphens/underscores
|
|
347
|
-
- `tokenSymbol` (required) - 1-8 uppercase letters only
|
|
348
|
-
- `description` (required) - Token description
|
|
349
|
-
- `websiteUrl`, `twitterUrl`, `telegramUrl` (optional) - Social links (at least one required)
|
|
350
|
-
- `imagePath` (optional) - Path to token image file
|
|
351
|
-
- `preBuyGala` (optional) - Pre-buy amount in GALA
|
|
352
|
-
- **Validation**: Token name/symbol availability, URL format validation, required social links
|
|
353
|
-
- **Workflow Steps**:
|
|
354
|
-
1. Validate token name and symbol
|
|
355
|
-
2. Check name/symbol availability
|
|
356
|
-
3. Upload token image (optional)
|
|
357
|
-
4. Calculate pre-buy token quantity
|
|
358
|
-
5. Display launch fee
|
|
359
|
-
6. Guide through transaction execution
|
|
360
|
-
|
|
361
|
-
### `/galachain-launchpad:discover-tokens` - Token Discovery & Filtering
|
|
362
|
-
- **Purpose**: Discover and filter tokens with advanced search capabilities
|
|
363
|
-
- **Arguments**:
|
|
364
|
-
- `type` (optional) - Filter type: `recent` (default), `popular`, or `near-graduation`
|
|
365
|
-
- `limit` (optional, default: 10) - Max results (1-50)
|
|
366
|
-
- `minProgress` (optional) - Minimum graduation progress percentage (0-100)
|
|
367
|
-
- `maxPrice` (optional) - Maximum USD price filter
|
|
368
|
-
- **Use Cases**:
|
|
369
|
-
- Find new tokens: `type=recent limit=20`
|
|
370
|
-
- Find trending tokens: `type=popular limit=10`
|
|
371
|
-
- Find near-graduation pools: `type=near-graduation minProgress=85 limit=10`
|
|
372
|
-
- Find cheap tokens: `maxPrice=1.00 limit=20`
|
|
373
|
-
- **Workflow Steps**:
|
|
374
|
-
1. Filter pools by type and criteria
|
|
375
|
-
2. Calculate graduation progress for each
|
|
376
|
-
3. Fetch current prices
|
|
377
|
-
4. Display sortable results with metrics
|
|
378
|
-
5. Provide links for detailed analysis
|
|
379
|
-
|
|
380
|
-
### Implementation Details
|
|
381
|
-
- **Total Prompts**: 18 slash commands (4 trading, 5 portfolio, 6 analysis, 2 creation/discovery,
|
|
382
|
-
1 utility)
|
|
383
|
-
- **Test Coverage**: Updated all prompt structure and registry tests to validate 18 commands
|
|
384
|
-
- **Validation**: Comprehensive input validation for all arguments with clear error messages
|
|
385
|
-
- **Documentation**: Full documentation in README.md and CLAUDE.md with usage examples
|
|
386
|
-
|
|
387
|
-
### Test Results
|
|
388
|
-
- ✅ 146 unit tests passing
|
|
389
|
-
- ✅ All prompt structure validations passing
|
|
390
|
-
- ✅ Backward compatible with existing slash commands
|
|
391
|
-
- ✅ Build verification complete
|
|
392
|
-
|
|
393
|
-
### What's Included
|
|
394
|
-
- New prompt definitions with full argument validation
|
|
395
|
-
- Workflow template generation for both commands
|
|
396
|
-
- Integration with existing MCP tools
|
|
397
|
-
- Comprehensive documentation and examples
|
|
398
|
-
|
|
399
|
-
- 683396d: # v3.23.0: GalaSwap DEX Integration & Documentation
|
|
400
|
-
|
|
401
|
-
**🚀 Major Feature Release: Complete GalaSwap DEX Integration**
|
|
402
|
-
|
|
403
|
-
## Features
|
|
404
|
-
|
|
405
|
-
### GalaSwap DEX Trading Integration (v3.23.0+)
|
|
406
|
-
|
|
407
|
-
**5 New High-Level SDK Methods for DEX Trading:**
|
|
408
|
-
- `getSwapQuoteExactInput(fromToken, toToken, amount)` - Get quote for known spending
|
|
409
|
-
- `getSwapQuoteExactOutput(fromToken, toToken, amount)` - Get quote for known output
|
|
410
|
-
- `executeSwap(fromToken, toToken, inputAmount, estimatedOutput, feeTier, slippageTolerance)` -
|
|
411
|
-
Execute swaps with slippage protection
|
|
412
|
-
- `getSwapUserAssets(walletAddress)` - Query user token balances
|
|
413
|
-
- `getSwapPoolInfo(tokenA, tokenB)` - Get pool liquidity and fee information
|
|
414
|
-
|
|
415
|
-
**Architecture:**
|
|
416
|
-
- Three-layer design: LaunchpadSDK → GSwapService (wrapper) → @gala-chain/gswap-sdk (core)
|
|
417
|
-
- Automatic token format conversion (simple: "GALA" ↔ full: "GALA|Unit|none|none")
|
|
418
|
-
- Real-time WebSocket event monitoring for transaction confirmation
|
|
419
|
-
- Comprehensive slippage protection (configurable tolerance: 0.0001 to 1.0)
|
|
420
|
-
- Support for three fee tiers per pool: 500 (0.05%), 3000 (0.30%), 10000 (1.00%)
|
|
421
|
-
|
|
422
|
-
### 5 New MCP Tools
|
|
423
|
-
- `gala_launchpad_get_swap_quote_exact_input` - Get swap quote with known input
|
|
424
|
-
- `gala_launchpad_get_swap_quote_exact_output` - Get swap quote with known output
|
|
425
|
-
- `gala_launchpad_execute_swap` - Execute DEX swap with slippage protection
|
|
426
|
-
- `gala_launchpad_get_swap_user_assets` - Query wallet token balances
|
|
427
|
-
- `gala_launchpad_get_swap_pool_info` - Get DEX pool information
|
|
428
|
-
|
|
429
|
-
### 1 New MCP Slash Command
|
|
430
|
-
- `/galachain-launchpad:dex-swap tokenName=GALA toToken=GUSDC amount=100 slippage=1` - Guided DEX
|
|
431
|
-
swap workflow
|
|
432
|
-
|
|
433
|
-
### Comprehensive Test Coverage
|
|
434
|
-
- **gswap-service.test.ts** (45+ test cases) - Full GSwapService integration tests with mocked
|
|
435
|
-
GSwap SDK
|
|
436
|
-
- **token-format-converter.test.ts** (67+ test cases) - Bidirectional token format conversion
|
|
437
|
-
tests
|
|
438
|
-
- **dex-tools.test.ts** (40+ test cases per tool) - MCP tool configuration and schema validation
|
|
439
|
-
- **200+ total test cases** covering edge cases, error handling, and real-world scenarios
|
|
440
|
-
|
|
441
|
-
### Complete Documentation
|
|
442
|
-
|
|
443
|
-
**API.md (450+ lines):**
|
|
444
|
-
- Comprehensive API reference for all SDK methods
|
|
445
|
-
- DEX trading methods with examples
|
|
446
|
-
- Type definitions and error handling patterns
|
|
447
|
-
- Complete installation and usage guide
|
|
448
|
-
|
|
449
|
-
**CLAUDE.md Updates (250+ lines):**
|
|
450
|
-
- GalaSwap DEX Trading Methods section with architecture diagram
|
|
451
|
-
- Complete trading workflow examples
|
|
452
|
-
- Real-time monitoring via WebSocket
|
|
453
|
-
- Error handling patterns
|
|
454
|
-
- Performance characteristics
|
|
455
|
-
|
|
456
|
-
**gswap-integration.md (400+ lines):**
|
|
457
|
-
- Complete DEX integration guide
|
|
458
|
-
- Architecture overview with three-layer design
|
|
459
|
-
- 4 usage patterns: simple swap, pool info, portfolio tracking, real-time monitoring
|
|
460
|
-
- Token format handling and conversion
|
|
461
|
-
- Slippage protection strategies
|
|
462
|
-
- Fee tier analysis and optimization
|
|
463
|
-
- Troubleshooting and advanced topics
|
|
464
|
-
|
|
465
|
-
## Technical Improvements
|
|
466
|
-
|
|
467
|
-
### Token Format Converter Enhancement
|
|
468
|
-
|
|
469
|
-
Fixed edge cases revealed by comprehensive tests:
|
|
470
|
-
- Proper handling of already-formatted tokens (no double-processing)
|
|
471
|
-
- Object input support with TokenClassKey parsing
|
|
472
|
-
- Graceful null/undefined input handling
|
|
473
|
-
- Backward compatibility with old/new token formats
|
|
474
|
-
|
|
475
|
-
### Bundle Size Optimization
|
|
476
|
-
|
|
477
|
-
All formats remain well under 50 kB limit:
|
|
478
|
-
- ESM: 38.79 kB gzipped
|
|
479
|
-
- CommonJS: 38.89 kB gzipped
|
|
480
|
-
- UMD: 39.01 kB gzipped
|
|
481
|
-
|
|
482
|
-
GSwap SDK marked as external dependency (<1 KB bundle impact)
|
|
483
|
-
|
|
484
|
-
## Breaking Changes
|
|
485
|
-
|
|
486
|
-
None - fully backward compatible with v3.22.x
|
|
487
|
-
|
|
488
|
-
## Migration Guide
|
|
489
|
-
|
|
490
|
-
No migration needed. New methods are additive:
|
|
491
|
-
|
|
492
|
-
```typescript
|
|
493
|
-
import { createLaunchpadSDK } from '@gala-chain/launchpad-sdk';
|
|
494
|
-
|
|
495
|
-
const sdk = createLaunchpadSDK({ privateKey: process.env.PRIVATE_KEY });
|
|
496
|
-
|
|
497
|
-
// New DEX trading methods available
|
|
498
|
-
const quote = await sdk.getSwapQuoteExactInput('GALA', 'GUSDC', '100');
|
|
499
|
-
const result = await sdk.executeSwap(...);
|
|
500
|
-
|
|
501
|
-
// All existing bonding curve methods still work
|
|
502
|
-
await sdk.buyTokens('anime', '100', ...);
|
|
503
|
-
```
|
|
504
|
-
|
|
505
|
-
## Dependencies
|
|
506
|
-
- Added: @gala-chain/gswap-sdk@0.0.7 (marked as external)
|
|
507
|
-
- No breaking dependency changes
|
|
508
|
-
|
|
509
|
-
## Next Steps
|
|
510
|
-
- Try the new `/galachain-launchpad:dex-swap` slash command in Claude Desktop
|
|
511
|
-
- Explore 5 new DEX trading tools in MCP server
|
|
512
|
-
- Reference API.md for complete method signatures
|
|
513
|
-
- See gswap-integration.md for integration patterns
|
|
514
|
-
|
|
515
|
-
### Patch Changes
|
|
516
|
-
|
|
517
|
-
- Updated dependencies [683396d]
|
|
518
|
-
- @gala-chain/launchpad-sdk@3.24.0
|
|
519
|
-
|
|
520
|
-
## 1.18.0
|
|
521
|
-
|
|
522
|
-
### Minor Changes
|
|
523
|
-
|
|
524
|
-
- **BREAKING CHANGE:** Default environment changed from `development` to `production`
|
|
525
|
-
|
|
526
|
-
All SDK and MCP initialization now defaults to production environment
|
|
527
|
-
(`lpad-backend-prod1.defi.gala.com`) instead of development. To use development environment,
|
|
528
|
-
explicitly set `env: 'DEVELOPMENT'` or `ENVIRONMENT=development`.
|
|
529
|
-
|
|
530
|
-
Changes include:
|
|
531
|
-
- SDK `AgentConfig.detectEnvironment()` defaults to 'production'
|
|
532
|
-
- MCP Server environment defaults to 'production'
|
|
533
|
-
- All examples and documentation updated to show production as default
|
|
534
|
-
- All installation instructions updated accordingly
|
|
535
|
-
|
|
536
|
-
Users relying on implicit development environment must now explicitly set the environment
|
|
537
|
-
variable.
|
|
538
|
-
|
|
539
|
-
### Patch Changes
|
|
540
|
-
|
|
541
|
-
- Updated dependencies
|
|
542
|
-
- @gala-chain/launchpad-sdk@3.23.0
|
|
543
|
-
|
|
544
|
-
## 1.17.7
|
|
545
|
-
|
|
546
|
-
### Patch Changes
|
|
547
|
-
|
|
548
|
-
- Bump SDK dependency to v3.22.7 which includes the new read-only operations example
|
|
549
|
-
|
|
550
|
-
## 1.18.0
|
|
551
|
-
|
|
552
|
-
### Minor Changes
|
|
553
|
-
|
|
554
|
-
- feat: Implement optional wallet support with 3 new wallet management tools (57 tools across
|
|
555
|
-
read-only and full-access modes)
|
|
556
|
-
|
|
557
|
-
## Overview
|
|
558
|
-
|
|
559
|
-
PRIVATE_KEY environment variable is now optional, enabling two distinct operational modes:
|
|
560
|
-
- **Read-Only Mode**: Query pools, prices, token details without wallet (40+ tools available)
|
|
561
|
-
- **Full-Access Mode**: Execute trades, create tokens, sign transactions with wallet (17+
|
|
562
|
-
additional tools)
|
|
563
|
-
|
|
564
|
-
## New Wallet Management Tools
|
|
565
|
-
- **`gala_launchpad_has_wallet`** - Check if MCP server wallet is currently configured
|
|
566
|
-
- **`gala_launchpad_get_wallet`** - Retrieve the configured wallet address (GalaChain and Ethereum
|
|
567
|
-
formats)
|
|
568
|
-
- **`gala_launchpad_set_wallet`** - Configure wallet for signing operations dynamically
|
|
569
|
-
|
|
570
|
-
## Installation
|
|
571
|
-
|
|
572
|
-
**Full-Access Mode (with wallet):**
|
|
573
|
-
|
|
574
|
-
```bash
|
|
575
|
-
claude mcp add "galachain-launchpad" -- \
|
|
576
|
-
env PRIVATE_KEY=<YOUR_KEY> ENVIRONMENT=production \
|
|
577
|
-
npx -y @gala-chain/launchpad-mcp-server@latest
|
|
578
|
-
```
|
|
579
|
-
|
|
580
|
-
**Read-Only Mode (no wallet):**
|
|
581
|
-
|
|
582
|
-
```bash
|
|
583
|
-
claude mcp add "galachain-launchpad" -- \
|
|
584
|
-
env ENVIRONMENT=production \
|
|
585
|
-
npx -y @gala-chain/launchpad-mcp-server@latest
|
|
586
|
-
```
|
|
587
|
-
|
|
588
|
-
## Key Features
|
|
589
|
-
- **Optional PRIVATE_KEY**: Omit `PRIVATE_KEY` environment variable for read-only mode
|
|
590
|
-
- **Progressive Enhancement**: Start with read-only queries, upgrade by setting wallet dynamically
|
|
591
|
-
- **Smart Tool Availability**: Tools requiring wallet automatically disabled in read-only mode
|
|
592
|
-
- **Seamless Claude Desktop Integration**: Full compatibility with Claude Desktop MCP server setup
|
|
593
|
-
- **Type Safety**: Wallet validation matches SDK implementation for consistency
|
|
594
|
-
- **Backward Compatible**: Existing installations with PRIVATE_KEY continue to work unchanged
|
|
595
|
-
|
|
596
|
-
## Tool Categories (57 Total)
|
|
597
|
-
- **Pool Management & Pricing** (17 tools) - Fetch pools, details, distributions, badges, prices
|
|
598
|
-
- **Price History & Analysis** (4 tools) - Historical price data and trends
|
|
599
|
-
- **Trading Operations** (13 tools) - Buy/sell calculations, token trades, graduation
|
|
600
|
-
- **Balance & Portfolio** (6 tools) - Token balances, holdings, profiles
|
|
601
|
-
- **Token Creation & Management** (4 tools) - Launch tokens, upload images, manage metadata
|
|
602
|
-
- **Wallet Management** (3 tools) - Check, get, set wallet configuration
|
|
603
|
-
- **Utility & Social** (10 tools) - Comments, transfers, configuration, URL generation
|
|
604
|
-
|
|
605
|
-
## SDK Dependency Update
|
|
606
|
-
- Updated @gala-chain/launchpad-sdk to 3.23.0
|
|
607
|
-
- Incorporates 4 new wallet management methods (hasWallet, getWallet, setWallet, validateWallet)
|
|
608
|
-
- All MCP tools leverage SDK's new optional wallet support
|
|
609
|
-
|
|
610
|
-
## Test Coverage
|
|
611
|
-
- Unit tests for optional wallet mode detection and tool filtering
|
|
612
|
-
- Integration tests for read-only mode MCP operations (pool queries, price fetches)
|
|
613
|
-
- Integration tests for full-access mode with wallet operations (trades, transfers, creation)
|
|
614
|
-
- Tool availability verification for both operational modes
|
|
615
|
-
|
|
616
|
-
## 1.17.5
|
|
617
|
-
|
|
618
|
-
### Patch Changes
|
|
619
|
-
|
|
620
|
-
- Fix: Remove 7 unnecessary escape characters (\$) in SDK usage examples - $ does not need escaping
|
|
621
|
-
in template literals when not part of ${} Fix: Remove 3 unused imports in SDK and diagnostic
|
|
622
|
-
scripts
|
|
623
|
-
- Updated dependencies
|
|
624
|
-
- @gala-chain/launchpad-sdk@3.22.5
|
|
625
|
-
|
|
626
|
-
## 1.17.4
|
|
627
|
-
|
|
628
|
-
### Patch Changes
|
|
629
|
-
|
|
630
|
-
- Add intelligent DEX fallback for ungraduated tokens in fetchTokenSpotPrice. When querying spot
|
|
631
|
-
prices with tokenId format for ungraduated tokens (which return 400/404 from DEX API), the SDK now
|
|
632
|
-
intelligently extracts the token name from GalaChain metadata and falls back to launchpad pricing.
|
|
633
|
-
This provides seamless support for both graduated (DEX) and ungraduated (launchpad) tokens via the
|
|
634
|
-
same tokenId parameter.
|
|
635
|
-
- Updated dependencies
|
|
636
|
-
- @gala-chain/launchpad-sdk@3.22.4
|
|
637
|
-
|
|
638
|
-
## 1.17.3
|
|
639
|
-
|
|
640
|
-
### Patch Changes
|
|
641
|
-
|
|
642
|
-
- docs: update changelogs for v3.22.2 and v1.17.2 releases
|
|
643
|
-
- Updated dependencies
|
|
644
|
-
- @gala-chain/launchpad-sdk@3.22.3
|
|
645
|
-
|
|
646
|
-
## 1.17.2
|
|
647
|
-
|
|
648
|
-
### Patch Changes
|
|
649
|
-
|
|
650
|
-
- Dependency bump: @gala-chain/launchpad-sdk@3.22.2
|
|
651
|
-
|
|
652
|
-
Includes fix for GalaChain FetchTokenClasses endpoint authentication issue. The endpoint is public
|
|
653
|
-
but rejects authenticated requests. SDK now uses unauthenticated axios for public token metadata
|
|
654
|
-
queries.
|
|
655
|
-
|
|
656
|
-
**Result:**
|
|
657
|
-
- Token details now fetch correctly for all token types
|
|
658
|
-
- Launchpad token metadata queries no longer fail with 404 errors
|
|
659
|
-
- All 1131 SDK tests passing
|
|
660
|
-
|
|
661
|
-
## 1.17.1
|
|
662
|
-
|
|
663
|
-
### Patch Changes
|
|
664
|
-
|
|
665
|
-
- Dependency bump: @gala-chain/launchpad-sdk@3.22.1
|
|
666
|
-
|
|
667
|
-
Includes fix for GalaChainService response parsing. The FetchTokenClasses endpoint returns
|
|
668
|
-
`Data: TokenClass[]` directly, not `Data: { results: TokenClass[] }`.
|
|
669
|
-
|
|
670
|
-
**Result:**
|
|
671
|
-
- Token metadata queries return correct data instead of "Token not found" errors
|
|
672
|
-
- All 1131 SDK tests passing
|
|
673
|
-
|
|
674
|
-
## 1.17.0
|
|
675
|
-
|
|
676
|
-
### Minor Changes
|
|
677
|
-
|
|
678
|
-
- d5371ff: feat: Implement symbol caching in DexService and TokenMetadataCache for optimized spot
|
|
679
|
-
price queries
|
|
680
|
-
|
|
681
|
-
## Changes
|
|
682
|
-
- **TokenMetadataCache Extension**: Added tokenId-based caching methods (getByTokenId,
|
|
683
|
-
setByTokenId, hasByTokenId) to support caching immutable token symbols from DEX API metadata
|
|
684
|
-
- **DexService Symbol Caching**: Implemented cache-first pattern in \_fetchDexTokenSpotPrice() to
|
|
685
|
-
eliminate redundant `/v1/tokens` API calls on repeated spot price queries
|
|
686
|
-
- **LaunchpadSDK Integration**: Instantiated TokenMetadataCache and wired it through DexService
|
|
687
|
-
constructor for transparent symbol caching across all spot price operations
|
|
688
|
-
- **Performance**: First spot price query ~100-300ms (API call + cache), subsequent queries
|
|
689
|
-
~50-150ms (cache hit, ~50% faster)
|
|
690
|
-
- **Backward Compatibility**: Cache is optional (undefined cache parameter continues to work,
|
|
691
|
-
falling back to fallback symbol from tokenInstance.type)
|
|
692
|
-
|
|
693
|
-
## Implementation Details
|
|
694
|
-
|
|
695
|
-
### Cache Key Format
|
|
696
|
-
|
|
697
|
-
Token symbols cached using pipe-delimited format with `token:` prefix to distinguish from
|
|
698
|
-
tokenName entries:
|
|
699
|
-
- Example: `token:GUSDC|Unit|none|eth:0x...`
|
|
700
|
-
|
|
701
|
-
### Symbol Immutability
|
|
702
|
-
|
|
703
|
-
Symbols are guaranteed immutable based on DEX API contract - cached symbols never change, enabling
|
|
704
|
-
simple caching without TTL
|
|
705
|
-
|
|
706
|
-
### Error Handling
|
|
707
|
-
|
|
708
|
-
Symbol fetch failures gracefully fall back to tokenInstance.type.toUpperCase() without affecting
|
|
709
|
-
cache or price calculation
|
|
710
|
-
|
|
711
|
-
## Test Coverage
|
|
712
|
-
- 9 new unit tests for TokenMetadataCache tokenId methods
|
|
713
|
-
- 8 new integration tests for DexService symbol caching
|
|
714
|
-
- All 1133 tests passing
|
|
715
|
-
- Focus on: cache hits/misses, multiple token handling, metadata merging, backward compatibility
|
|
716
|
-
|
|
717
|
-
### Patch Changes
|
|
718
|
-
|
|
719
|
-
- Replace DEX API /v1/tokens with GalaChain native FetchTokenClasses API for authoritative token
|
|
720
|
-
metadata
|
|
721
|
-
|
|
722
|
-
**Summary:**
|
|
723
|
-
- Migrated token details fetching from DEX API to GalaChain native API
|
|
724
|
-
- Fixes bug where GALA spot price returned symbol "NONE" instead of "GALA"
|
|
725
|
-
- Removes obsolete dexApiHttp parameter from DexService
|
|
726
|
-
- Improves token metadata accuracy by using blockchain source of truth
|
|
727
|
-
|
|
728
|
-
**Changes:**
|
|
729
|
-
- Added `fetchTokenClassFromChain()` method to GalaChainService for native token metadata queries
|
|
730
|
-
- Updated DexService to use GalaChainService instead of DEX API for token details
|
|
731
|
-
- Wired GalaChainService through LaunchpadSDK to DexService
|
|
732
|
-
- Updated all tests to use GalaChainService mocks instead of DEX API mocks
|
|
733
|
-
- Removed unused HttpClient import and type definitions from DexService
|
|
734
|
-
- Removed unused dexApiHttp parameter from DexService constructor
|
|
735
|
-
|
|
736
|
-
**Technical Details:**
|
|
737
|
-
- GalaChain API endpoint: `/api/asset/token-contract/FetchTokenClasses`
|
|
738
|
-
- Source of truth: GalaChain native blockchain API (includes all tokens: native and wrapped)
|
|
739
|
-
- Backward compatibility: All existing APIs remain unchanged
|
|
740
|
-
- Test coverage: All 1131 tests passing
|
|
741
|
-
|
|
742
|
-
- Updated dependencies
|
|
743
|
-
- Updated dependencies [d5371ff]
|
|
744
|
-
- @gala-chain/launchpad-sdk@3.22.0
|
|
745
|
-
|
|
746
|
-
## 1.16.4
|
|
747
|
-
|
|
748
|
-
### Patch Changes
|
|
749
|
-
|
|
750
|
-
- Fetch token symbol metadata from DEX API instead of deriving from type field
|
|
751
|
-
|
|
752
|
-
Instead of trusting the type field for token symbols (which doesn't always align with actual token
|
|
753
|
-
symbols), now properly fetch token metadata from /v1/tokens endpoint to get the correct symbol.
|
|
754
|
-
Includes graceful fallback to type field if metadata fetch fails.
|
|
755
|
-
|
|
756
|
-
- Updated dependencies
|
|
757
|
-
- @gala-chain/launchpad-sdk@3.21.4
|
|
758
|
-
|
|
759
|
-
## 1.16.3
|
|
760
|
-
|
|
761
|
-
### Patch Changes
|
|
762
|
-
|
|
763
|
-
- Fix GALA token symbol display in DEX pricing
|
|
764
|
-
|
|
765
|
-
When fetching GALA price from DEX Backend API, the symbol was showing as 'NONE' instead of 'GALA'
|
|
766
|
-
because the type field is 'none'. Added special handling to use the collection name as the symbol
|
|
767
|
-
for GALA tokens.
|
|
768
|
-
|
|
769
|
-
- Updated dependencies
|
|
770
|
-
- @gala-chain/launchpad-sdk@3.21.3
|
|
771
|
-
|
|
772
|
-
## 1.16.2
|
|
773
|
-
|
|
774
|
-
### Patch Changes
|
|
775
|
-
|
|
776
|
-
- Fix GALA token ID format for DEX Backend API pricing
|
|
777
|
-
|
|
778
|
-
The GALA token ID was using incorrect format `GALA|Unit|Unit|none` when the DEX Backend API
|
|
779
|
-
expects `GALA|Unit|none|none`. This caused all GALA price queries to fail with 400 "Token Not
|
|
780
|
-
found" errors. Corrected the type field from 'Unit' to 'none' in both DexService and LaunchpadSDK.
|
|
781
|
-
|
|
782
|
-
- Updated dependencies
|
|
783
|
-
- @gala-chain/launchpad-sdk@3.21.2
|
|
784
|
-
|
|
785
|
-
## 1.16.1
|
|
786
|
-
|
|
787
|
-
### Patch Changes
|
|
788
|
-
|
|
789
|
-
- Fix MCP tool registry validation to prevent server initialization failure
|
|
790
|
-
|
|
791
|
-
The tool registry was validating for 57 tools but only 54 exist, causing the MCP server to fail
|
|
792
|
-
during startup. Corrected the validation count to match actual tool count.
|
|
793
|
-
|
|
794
|
-
- Updated dependencies
|
|
795
|
-
- @gala-chain/launchpad-sdk@3.21.1
|
|
796
|
-
|
|
797
|
-
## 1.16.0
|
|
798
|
-
|
|
799
|
-
### Minor Changes
|
|
800
|
-
|
|
801
|
-
- Implement unified smart router for token spot price queries
|
|
802
|
-
|
|
803
|
-
**Breaking Changes (v3.21.0 -> v4.0.0):**
|
|
804
|
-
- `fetchTokenSpotPrice()` signature changed: now accepts `FetchTokenSpotPriceParams` object with
|
|
805
|
-
`tokenName` or `tokenId` (mutually exclusive), not `string | string[]` for symbols
|
|
806
|
-
- `fetchLaunchpadTokenSpotPrice()` marked as deprecated - use `fetchTokenSpotPrice({ tokenName })`
|
|
807
|
-
instead
|
|
808
|
-
|
|
809
|
-
**Non-Breaking Changes (v3.21.0):**
|
|
810
|
-
- New smart router: `fetchTokenSpotPrice({ tokenName? | tokenId? })` automatically routes between
|
|
811
|
-
launchpad and DEX tokens
|
|
812
|
-
- New type: `FetchTokenSpotPriceParams` with flexible token identification
|
|
813
|
-
- Consolidated three separate endpoints into one intelligent router:
|
|
814
|
-
- `tokenName` → Launchpad tokens with graduation detection (bonding curve or DEX pricing)
|
|
815
|
-
- `tokenId` → DEX Backend API `/v1/trade/price` (direct pricing)
|
|
816
|
-
- DexService now validates parameters and routes tokenId to DEX Backend API
|
|
817
|
-
- LaunchpadSDK handles smart routing logic between tokenName and tokenId cases
|
|
818
|
-
- Deprecated `fetchTokenSpotPrice()` for symbol array queries
|
|
819
|
-
- Fixed GALA token ID format:
|
|
820
|
-
`collection: 'GALA', category: 'Unit', type: 'Unit', additionalKey: 'none'`
|
|
821
|
-
|
|
822
|
-
**Migration Guide:**
|
|
823
|
-
|
|
824
|
-
```typescript
|
|
825
|
-
// OLD (still works in v3.21.0, deprecated)
|
|
826
|
-
const prices = await sdk.fetchTokenSpotPrice(['GALA', 'SILK']);
|
|
827
|
-
const launchpadPrice = await sdk.fetchLaunchpadTokenSpotPrice('galadog');
|
|
828
|
-
|
|
829
|
-
// NEW (recommended)
|
|
830
|
-
const galaPrice = await sdk.fetchTokenSpotPrice({ tokenId: 'GALA|Unit|Unit|none' });
|
|
831
|
-
const launchpadPrice = await sdk.fetchTokenSpotPrice({ tokenName: 'galadog' });
|
|
832
|
-
const dexPrice = await sdk.fetchTokenSpotPrice({ tokenId: 'Token|Unit|GDOG|eth:...' });
|
|
833
|
-
```
|
|
834
|
-
|
|
835
|
-
**Testing:**
|
|
836
|
-
- Added 16 comprehensive tests for smart router pattern
|
|
837
|
-
- All 1118 SDK tests pass
|
|
838
|
-
- Backward compatibility verified for deprecated methods
|
|
839
|
-
|
|
840
|
-
### Patch Changes
|
|
841
|
-
|
|
842
|
-
- Updated dependencies
|
|
843
|
-
- @gala-chain/launchpad-sdk@3.21.0
|
|
844
|
-
|
|
845
|
-
## 1.15.1
|
|
846
|
-
|
|
847
|
-
### Patch Changes
|
|
848
|
-
|
|
849
|
-
- Fix isGraduated flag calculation to use correct saleStatus value
|
|
850
|
-
|
|
851
|
-
**Bug Fix:**
|
|
852
|
-
- Fixed `GalaChainService` calculation of `isGraduated` flag
|
|
853
|
-
- Was: `isGraduated = response.Data.saleStatus === 'Completed'` ❌
|
|
854
|
-
- Now: `isGraduated = response.Data.saleStatus === 'Finished'` ✅
|
|
855
|
-
- Backend actually returns `saleStatus: "Finished"` for graduated tokens, not `"Completed"`
|
|
856
|
-
- `DexService` now correctly uses reliable `isGraduated` flag for graduation detection
|
|
857
|
-
|
|
858
|
-
**Impact:**
|
|
859
|
-
- `fetchLaunchpadTokenSpotPrice()` now correctly identifies graduated tokens using `isGraduated`
|
|
860
|
-
- Tokens with `isGraduated: true` (saleStatus: "Finished") use `/v1/trade/price` DEX endpoint
|
|
861
|
-
- Ensures accurate spot pricing for graduated launchpad tokens like GALADOG
|
|
862
|
-
- No breaking changes - behavior corrected to match backend state progression
|
|
863
|
-
|
|
864
|
-
**Result:**
|
|
865
|
-
- GALADOG: `isGraduated: true` (saleStatus: "Finished") → Uses DEX endpoint ✅
|
|
866
|
-
- Other tokens: `isGraduated: false` (saleStatus: "Ongoing") → Uses bonding curve ✅
|
|
867
|
-
|
|
868
|
-
- Updated dependencies
|
|
869
|
-
- @gala-chain/launchpad-sdk@3.20.1
|
|
870
|
-
|
|
871
|
-
## 1.15.0
|
|
872
|
-
|
|
873
|
-
### Minor Changes
|
|
874
|
-
|
|
875
|
-
- Add tokenName parameter support to fetchPriceHistory and fetchAllPriceHistory (v3.20.0+)
|
|
876
|
-
|
|
877
|
-
**Features:**
|
|
878
|
-
- New optional `tokenName` parameter enables simple token names (e.g., "demonkpop") with automatic
|
|
879
|
-
resolution to full tokenId
|
|
880
|
-
- Mutual exclusivity validation: use exactly one of `tokenName` OR `tokenId` (not both, not
|
|
881
|
-
neither)
|
|
882
|
-
- Full backward compatibility with existing tokenId parameter usage (string and object formats)
|
|
883
|
-
- New helper method `fetchTokenClassKeyByTokenName()` for token name resolution
|
|
884
|
-
- Enhanced JSDoc with comprehensive examples for all three token identification methods
|
|
885
|
-
|
|
886
|
-
**SDK Changes:**
|
|
887
|
-
- `PriceHistoryService`: Added tokenName parameter support with auto-resolution via
|
|
888
|
-
TokenResolverService
|
|
889
|
-
- `LaunchpadSDK`: Wired TokenResolverService to PriceHistoryService for automatic name resolution
|
|
890
|
-
- Updated type definitions with optional `tokenName?: string` parameter
|
|
891
|
-
- Added comprehensive validation for mutual exclusivity
|
|
892
|
-
|
|
893
|
-
**MCP Server Changes:**
|
|
894
|
-
- `gala_launchpad_fetch_price_history`: Updated schema to support optional tokenName parameter
|
|
895
|
-
- `gala_launchpad_fetch_all_price_history`: Updated schema to support optional tokenName parameter
|
|
896
|
-
- Both tools now accept flexible token identification (tokenName or tokenId, choose one)
|
|
897
|
-
|
|
898
|
-
**Documentation:**
|
|
899
|
-
- Updated SDK README with new usage patterns and examples
|
|
900
|
-
- Updated CLAUDE.md Price History Patterns section
|
|
901
|
-
- Added complete section in complete-sdk-demo.ts demonstrating tokenName parameter
|
|
902
|
-
- Enhanced JSDoc comments for all methods with practical examples
|
|
903
|
-
|
|
904
|
-
**Testing:**
|
|
905
|
-
- Added 33 comprehensive unit tests covering:
|
|
906
|
-
- Token name to token class key resolution
|
|
907
|
-
- Mutual exclusivity validation
|
|
908
|
-
- Error handling for invalid inputs
|
|
909
|
-
- Integration with both fetchPriceHistory and fetchAllPriceHistory
|
|
910
|
-
- All test suites passing (1102 total tests)
|
|
911
|
-
|
|
912
|
-
**Breaking Changes:** None - fully backward compatible
|
|
913
|
-
|
|
914
|
-
**Migration Guide:** Instead of: `sdk.fetchPriceHistory({ tokenId: 'Token|Unit|DKP|eth:...' })`
|
|
915
|
-
You can now use: `sdk.fetchPriceHistory({ tokenName: 'demonkpop' })`
|
|
916
|
-
|
|
917
|
-
### Patch Changes
|
|
918
|
-
|
|
919
|
-
- Fix token format conversion and add DEX spot pricing for graduated launchpad tokens
|
|
920
|
-
|
|
921
|
-
**Bug Fixes:**
|
|
922
|
-
- **CRITICAL**: Fixed PriceHistoryService token format conversion that was losing Ethereum
|
|
923
|
-
addresses for launchpad tokens
|
|
924
|
-
- Was converting: `Token|Unit|GDOG|eth:902...` → `GDOG$Unit$none$none` ❌
|
|
925
|
-
- Now converts: `Token|Unit|GDOG|eth:902...` → `Token$Unit$GDOG$eth:902...` ✅
|
|
926
|
-
- Impact: All launchpad token price history queries now return data instead of empty results
|
|
927
|
-
- Affected methods: `fetchPriceHistory()`, `fetchAllPriceHistory()`
|
|
928
|
-
- Updated test expectations in `price-history-service.test.ts` to validate correct token format
|
|
929
|
-
- All 1,102 unit tests passing
|
|
930
|
-
|
|
931
|
-
**Features:**
|
|
932
|
-
- New method `DexService.fetchDexTokenSpotPrice(tokenId)` for real-time DEX market prices
|
|
933
|
-
- Uses `/v1/trade/price` endpoint for accurate graduated token pricing
|
|
934
|
-
- Supports both pipe-delimited and object token ID formats
|
|
935
|
-
- Perfect for tokens trading on the DEX post-graduation
|
|
936
|
-
- Enhanced `fetchLaunchpadTokenSpotPrice()` to intelligently select price source:
|
|
937
|
-
- Active pool tokens: Uses bonding curve calculation
|
|
938
|
-
- Graduated tokens: Uses `/v1/trade/price` endpoint for real DEX market prices
|
|
939
|
-
- Optional `fetchPoolDetails` parameter enables automatic graduation detection
|
|
940
|
-
- Gracefully falls back to bonding curve if graduation check unavailable
|
|
941
|
-
|
|
942
|
-
**SDK Changes:**
|
|
943
|
-
- `PriceHistoryService.ts`: Fixed token format converter to use `pipeFormatToDollarFormat()`
|
|
944
|
-
utility
|
|
945
|
-
- `DexService.ts`: Added `fetchDexTokenSpotPrice()` method with full documentation
|
|
946
|
-
- `DexService.ts`: Enhanced `fetchLaunchpadTokenSpotPrice()` with graduation detection
|
|
947
|
-
- Added import of `pipeFormatToDollarFormat` to DexService
|
|
948
|
-
|
|
949
|
-
**Test Results:**
|
|
950
|
-
- All price history service tests passing (33 tests)
|
|
951
|
-
- All SDK tests passing (1102 total tests)
|
|
952
|
-
- No regressions detected
|
|
953
|
-
|
|
954
|
-
**Breaking Changes:** None - both are enhancements/bug fixes
|
|
955
|
-
|
|
956
|
-
**Example Usage (Graduated Token):**
|
|
957
|
-
|
|
958
|
-
```typescript
|
|
959
|
-
// Graduated token now returns real DEX market price
|
|
960
|
-
const price = await sdk.fetchLaunchpadTokenSpotPrice(
|
|
961
|
-
'galadog',
|
|
962
|
-
calculateBuyAmount,
|
|
963
|
-
fetchPoolDetails // Optional - enables automatic DEX pricing
|
|
964
|
-
);
|
|
965
|
-
// Returns: { symbol: 'GALADOG', price: 0.019110 } (real market price)
|
|
966
|
-
```
|
|
967
|
-
|
|
968
|
-
**Example Usage (Direct DEX Pricing):**
|
|
969
|
-
|
|
970
|
-
```typescript
|
|
971
|
-
// Query DEX directly for any trading token
|
|
972
|
-
const price = await dexService.fetchDexTokenSpotPrice(
|
|
973
|
-
'Token|Unit|GDOG|eth:902Ef7566c8A8bEe5517FdEC0D7b5d1157942830'
|
|
974
|
-
);
|
|
975
|
-
// Returns: { symbol: 'GDOG', price: 0.019110 }
|
|
976
|
-
```
|
|
977
|
-
|
|
978
|
-
- Updated dependencies
|
|
979
|
-
- Updated dependencies
|
|
980
|
-
- @gala-chain/launchpad-sdk@3.20.0
|
|
981
|
-
|
|
982
|
-
## 1.14.3
|
|
983
|
-
|
|
984
|
-
### Patch Changes
|
|
985
|
-
|
|
986
|
-
- fix: correct fetchPools tool enum values to match SDK (recent/popular instead of
|
|
987
|
-
recent/trending/user)
|
|
988
|
-
|
|
989
|
-
## 1.14.2
|
|
990
|
-
|
|
991
|
-
### Patch Changes
|
|
992
|
-
|
|
993
|
-
- feat: enhance MCP SDK usage documentation with 200+ code examples
|
|
994
|
-
- Add price-history topic with fetchPriceHistory and fetchAllPriceHistory examples
|
|
995
|
-
- Add token-details topic with token metadata retrieval and validation
|
|
996
|
-
- Add profile-management topic with user profile workflows
|
|
997
|
-
- Enhance fetch-pools topic with 9 advanced examples and 11 tool equivalents
|
|
998
|
-
- Enhance balances topic with additional methods (fetchTokensCreated, fetchProfile)
|
|
999
|
-
- Expand mcp-to-sdk-mapping with 15+ missing tools across multiple sections
|
|
1000
|
-
- Fix error-handling topic syntax error
|
|
1001
|
-
|
|
1002
|
-
- Updated dependencies
|
|
1003
|
-
- @gala-chain/launchpad-sdk@3.19.2
|
|
1004
|
-
|
|
1005
|
-
## 1.14.0
|
|
1006
|
-
|
|
1007
|
-
### Breaking Changes
|
|
1008
|
-
|
|
1009
|
-
- **Remove MySQL-dependent MCP tools**
|
|
1010
|
-
|
|
1011
|
-
**BREAKING:** Removed MCP tools that relied on MySQL database. Tool count reduced from 56 to 54.
|
|
1012
|
-
|
|
1013
|
-
**Removed MCP Tools:**
|
|
1014
|
-
- `gala_launchpad_fetch_prices` - Latest token prices (use DEX Backend API in future)
|
|
1015
|
-
- `gala_launchpad_fetch_all_prices` - All latest token prices (use DEX Backend API in future)
|
|
1016
|
-
|
|
1017
|
-
**Environment Variables:**
|
|
1018
|
-
- Removed: `MYSQL_CONNECTION_STRING` (no longer used)
|
|
1019
|
-
|
|
1020
|
-
**Migration Path:**
|
|
1021
|
-
- For historical price data: Use `gala_launchpad_fetch_price_history` (DEX Backend API)
|
|
1022
|
-
- For all historical data: Use `gala_launchpad_fetch_all_price_history` (with auto-pagination)
|
|
1023
|
-
- Latest prices feature: Coming soon to DEX Backend API in future releases
|
|
1024
|
-
|
|
1025
|
-
**Added:**
|
|
1026
|
-
- `gala_launchpad_fetch_all_price_history` - Auto-paginated historical price snapshots
|
|
1027
|
-
- `gala_launchpad_fetch_token_details` - Comprehensive token metadata query
|
|
1028
|
-
|
|
1029
|
-
**Configuration Changes:**
|
|
1030
|
-
- No MySQL configuration needed anymore
|
|
1031
|
-
- DEX Backend API is automatically configured from environment
|
|
1032
|
-
|
|
1033
|
-
## 1.13.6
|
|
1034
|
-
|
|
1035
|
-
### Patch Changes
|
|
1036
|
-
|
|
1037
|
-
- Add fetchTokenDetails() method for comprehensive token metadata queries
|
|
1038
|
-
|
|
1039
|
-
**New Feature:** Implement fetchTokenDetails() method that queries the DEX API platform to
|
|
1040
|
-
retrieve complete token metadata including images, decimals, descriptions, verification status,
|
|
1041
|
-
network information, and trading capabilities.
|
|
1042
|
-
|
|
1043
|
-
**SDK Changes (v3.18.0):**
|
|
1044
|
-
- Add TokenDetails DTO interface with 15+ metadata fields
|
|
1045
|
-
- Implement DexService.fetchTokenDetails(tokenId) with flexible token ID support
|
|
1046
|
-
- Add flat API method to LaunchpadSDK.fetchTokenDetails()
|
|
1047
|
-
- Export TokenDetails type from SDK public API
|
|
1048
|
-
- Comprehensive unit tests (14 tests covering success/error/edge cases)
|
|
1049
|
-
|
|
1050
|
-
**Features:**
|
|
1051
|
-
- Flexible Token ID support: String format ('GUSDC|Unit|none|eth:0x...') or object format
|
|
1052
|
-
- Comprehensive metadata: Returns symbol, name, decimals, image, verification status, network info
|
|
1053
|
-
- DEX API Integration: Queries /v1/tokens endpoint with URL-encoded token class keys
|
|
1054
|
-
- Proper error handling: Validates token existence and format
|
|
1055
|
-
- Performance: Single API request, no pagination required
|
|
1056
|
-
|
|
1057
|
-
**MCP Server Changes (v1.13.6):**
|
|
1058
|
-
- Create gala_launchpad_fetch_token_details MCP tool
|
|
1059
|
-
- Register tool in poolTools with flexible tokenId input schema
|
|
1060
|
-
- Add integration tests for tool handler
|
|
1061
|
-
- Update tool count from 55 to 56 tools
|
|
1062
|
-
- Update documentation in CLAUDE.md with usage examples
|
|
1063
|
-
- Add tool reference to MCP server features list
|
|
1064
|
-
|
|
1065
|
-
**Documentation:**
|
|
1066
|
-
- Add comprehensive pattern documentation to CLAUDE.md
|
|
1067
|
-
- Include usage examples for string and object formats
|
|
1068
|
-
- Document common use cases (token validation, pre-trading checks, network verification)
|
|
1069
|
-
- Add error handling patterns and response structure reference
|
|
1070
|
-
- Update SDK README.md with method signature and return type
|
|
1071
|
-
- Update MCP server version and tool count references
|
|
1072
|
-
|
|
1073
|
-
- Updated dependencies
|
|
1074
|
-
- @gala-chain/launchpad-sdk@3.18.0
|
|
1075
|
-
|
|
1076
|
-
## 1.13.5
|
|
1077
|
-
|
|
1078
|
-
### Patch Changes
|
|
1079
|
-
|
|
1080
|
-
- Simplify price history response structure with tokenId field
|
|
1081
|
-
|
|
1082
|
-
Replace individual token class fields (collection, category, type, additionalKey) with a single
|
|
1083
|
-
pipe-delimited tokenId field in PriceSnapshot responses.
|
|
1084
|
-
|
|
1085
|
-
Changes:
|
|
1086
|
-
- PriceSnapshot interface now has tokenId: string instead of separate fields
|
|
1087
|
-
- Both fetchPriceHistory and fetchPrices return simplified snapshots
|
|
1088
|
-
- Updated response transformation logic to construct tokenId from API data
|
|
1089
|
-
- Made httpClient optional in PriceHistoryService constructor (only required when using
|
|
1090
|
-
fetchPriceHistory, not for MySQL-only methods)
|
|
1091
|
-
|
|
1092
|
-
Example response change:
|
|
1093
|
-
- Before: { price: '0.166', ..., collection: 'GALA', category: 'Unit', type: 'none',
|
|
1094
|
-
additionalKey: 'none' }
|
|
1095
|
-
- After: { price: '0.166', ..., tokenId: 'GALA|Unit|none|none' }
|
|
1096
|
-
|
|
1097
|
-
- Updated dependencies
|
|
1098
|
-
- @gala-chain/launchpad-sdk@3.17.0
|
|
1099
|
-
|
|
1100
|
-
## 1.13.4
|
|
1101
|
-
|
|
1102
|
-
### Patch Changes
|
|
1103
|
-
|
|
1104
|
-
- ## Fix: Support Both GalaChain Token Format Variants (v3.16.4)
|
|
1105
|
-
|
|
1106
|
-
Enhanced token format handling to support both GalaChain token ID formats seamlessly.
|
|
1107
|
-
|
|
1108
|
-
GalaChain supports two token ID format variants:
|
|
1109
|
-
|
|
1110
|
-
**Format 1: Standard (collection="Token")**
|
|
1111
|
-
|
|
1112
|
-
```
|
|
1113
|
-
Token|Unit|BENE|none → GALA$Unit$none$none
|
|
1114
|
-
Token|Unit|SILK|none → SILK$Unit$none$none
|
|
1115
|
-
```
|
|
1116
|
-
|
|
1117
|
-
**Format 2: Direct (collection=token name)**
|
|
1118
|
-
|
|
1119
|
-
```
|
|
1120
|
-
GALA|Unit|none|none → GALA$Unit$none$none
|
|
1121
|
-
SILK|Unit|none|none → SILK$Unit$none$none
|
|
1122
|
-
```
|
|
1123
|
-
|
|
1124
|
-
Both are now handled correctly by detecting which field contains the token name and extracting it
|
|
1125
|
-
appropriately for the DEX Backend API.
|
|
1126
|
-
|
|
1127
|
-
Changes:
|
|
1128
|
-
- Detect token name location based on collection field
|
|
1129
|
-
- Extract from `type` field if collection="Token", otherwise from `collection` field
|
|
1130
|
-
- Build API format consistently: `{TOKEN_NAME}$Unit$none$none`
|
|
1131
|
-
- Both token format variants now work identically
|
|
1132
|
-
|
|
1133
|
-
- Updated dependencies
|
|
1134
|
-
- @gala-chain/launchpad-sdk@3.16.4
|
|
1135
|
-
|
|
1136
|
-
## 1.13.3
|
|
1137
|
-
|
|
1138
|
-
### Patch Changes
|
|
1139
|
-
|
|
1140
|
-
- ## Fix: Correct Token Format Conversion for Price History (v3.16.3)
|
|
1141
|
-
|
|
1142
|
-
Simplified token format conversion - removed overly strict validation and corrected the format
|
|
1143
|
-
transformation logic.
|
|
1144
|
-
|
|
1145
|
-
The API expects simple pipe-to-dollar conversion:
|
|
1146
|
-
- Input: `GALA|Unit|none|none`
|
|
1147
|
-
- Output: `GALA$Unit$none$none`
|
|
1148
|
-
|
|
1149
|
-
Changed PriceHistoryService to:
|
|
1150
|
-
- Use existing token normalization utilities
|
|
1151
|
-
- Apply simple pipe-to-dollar format conversion
|
|
1152
|
-
- Remove overly strict token format validation that was incorrectly rejecting valid formats
|
|
1153
|
-
|
|
1154
|
-
- Updated dependencies
|
|
1155
|
-
- @gala-chain/launchpad-sdk@3.16.3
|
|
1156
|
-
|
|
1157
|
-
## 1.13.2
|
|
1158
|
-
|
|
1159
|
-
### Patch Changes
|
|
1160
|
-
|
|
1161
|
-
- ## Enhancement: Token Format Validation for Price History (v3.16.2)
|
|
1162
|
-
|
|
1163
|
-
**Added validation** to ensure correct token ID format for DEX Backend API compatibility.
|
|
1164
|
-
|
|
1165
|
-
The price history API requires tokens to follow GalaChain's standard format where the token name
|
|
1166
|
-
is stored in the `type` field:
|
|
1167
|
-
|
|
1168
|
-
### Valid Formats
|
|
1169
|
-
|
|
1170
|
-
✅ String format: `Token|Unit|{TOKEN_NAME}|{additionalKey}`
|
|
1171
|
-
|
|
1172
|
-
```typescript
|
|
1173
|
-
sdk.fetchPriceHistory({ tokenId: 'Token|Unit|BENE|none' });
|
|
1174
|
-
sdk.fetchPriceHistory({ tokenId: 'Token|Unit|SILK|none' });
|
|
1175
|
-
```
|
|
1176
|
-
|
|
1177
|
-
✅ Object format:
|
|
1178
|
-
`{ collection: "Token", category: "Unit", type: "{TOKEN_NAME}", additionalKey: "{key}" }`
|
|
1179
|
-
|
|
1180
|
-
```typescript
|
|
1181
|
-
sdk.fetchPriceHistory({
|
|
1182
|
-
tokenId: { collection: 'GALA', category: 'Unit', type: 'none', additionalKey: 'none' },
|
|
1183
|
-
});
|
|
1184
|
-
```
|
|
1185
|
-
|
|
1186
|
-
### Invalid Formats (Now Rejected)
|
|
1187
|
-
|
|
1188
|
-
❌ `GALA|Unit|none|none` - Token name in first field instead of third ❌ `Gala|Unit|none|none` -
|
|
1189
|
-
Mixed case, ambiguous format ❌
|
|
1190
|
-
`{ collection: 'GALA', category: 'Unit', type: 'none', additionalKey: 'none' }` - Wrong field
|
|
1191
|
-
mapping
|
|
1192
|
-
|
|
1193
|
-
### Error Messages
|
|
1194
|
-
|
|
1195
|
-
When invalid format is provided, users now get clear guidance:
|
|
1196
|
-
|
|
1197
|
-
```
|
|
1198
|
-
Invalid tokenId format for price history. Expected format: "Token|Unit|{TOKEN_NAME}|{additionalKey}"
|
|
1199
|
-
(e.g., "Token|Unit|BENE|none"). Received: "GALA|Unit|none|none".
|
|
1200
|
-
The token name must be in the third field (type), not the first field (collection).
|
|
1201
|
-
```
|
|
1202
|
-
|
|
1203
|
-
### Changes
|
|
1204
|
-
- Added comprehensive token format validation in `PriceHistoryService.validateOptions()`
|
|
1205
|
-
- Validates both string and object token ID formats
|
|
1206
|
-
- Provides clear error messages with examples
|
|
1207
|
-
- Prevents silent failures from incorrect token format mapping
|
|
1208
|
-
- Ensures DEX Backend API receives correctly formatted token identifiers
|
|
1209
|
-
|
|
1210
|
-
This prevents subtle bugs where tokens like `GALA|Unit|none|none` would be silently converted to
|
|
1211
|
-
`none$Unit$none$none` (wrong).
|
|
1212
|
-
|
|
1213
|
-
- Updated dependencies
|
|
1214
|
-
- @gala-chain/launchpad-sdk@3.16.2
|
|
1215
|
-
|
|
1216
|
-
## 1.13.1
|
|
1217
|
-
|
|
1218
|
-
### Patch Changes
|
|
1219
|
-
|
|
1220
|
-
- ## Fix: Price History Token Format Mapping (v3.16.1)
|
|
1221
|
-
|
|
1222
|
-
**Critical Fix:** Corrects token ID format conversion for DEX Backend API.
|
|
1223
|
-
|
|
1224
|
-
The DEX Backend API uses a different token format than GalaChain:
|
|
1225
|
-
- API format: `tokenName$Unit$none$none` (e.g., `GALA$Unit$none$none`)
|
|
1226
|
-
- SDK format: `collection|category|type|additionalKey` (e.g., `Token|Unit|BENE|none`)
|
|
1227
|
-
|
|
1228
|
-
### Changes
|
|
1229
|
-
|
|
1230
|
-
**PriceHistoryService.ts:**
|
|
1231
|
-
- Fixed token format conversion when calling DEX Backend API
|
|
1232
|
-
- Now correctly maps GalaChain TokenInstanceKey fields to API format
|
|
1233
|
-
- Token name is extracted from the `type` field (where it's stored in GalaChain)
|
|
1234
|
-
- API always receives properly formatted: `{tokenName}$Unit$none$none`
|
|
1235
|
-
|
|
1236
|
-
### Impact
|
|
1237
|
-
- `fetchPriceHistory()` now returns historical price data correctly
|
|
1238
|
-
- MCP tool `gala_launchpad_fetch_price_history` now works as expected
|
|
1239
|
-
- All 30,000+ price snapshots now accessible for supported tokens
|
|
1240
|
-
|
|
1241
|
-
### Before
|
|
1242
|
-
|
|
1243
|
-
```typescript
|
|
1244
|
-
// Input: Token|Unit|BENE|none
|
|
1245
|
-
// Converted to: Token$Unit$GALA$none (WRONG - API expected GALA$Unit$none$none)
|
|
1246
|
-
// Result: Empty response, no historical data
|
|
1247
|
-
```
|
|
1248
|
-
|
|
1249
|
-
### After
|
|
1250
|
-
|
|
1251
|
-
```typescript
|
|
1252
|
-
// Input: Token|Unit|BENE|none
|
|
1253
|
-
// Converted to: GALA$Unit$none$none (CORRECT)
|
|
1254
|
-
// Result: Returns all 30,862 GALA price snapshots
|
|
1255
|
-
```
|
|
1256
|
-
|
|
1257
|
-
This is a critical fix for price history functionality.
|
|
1258
|
-
|
|
1259
|
-
- Updated dependencies
|
|
1260
|
-
- @gala-chain/launchpad-sdk@3.16.1
|
|
1261
|
-
|
|
1262
|
-
## 1.13.0
|
|
1263
|
-
|
|
1264
|
-
### Minor Changes
|
|
1265
|
-
|
|
1266
|
-
- ## Price History API Migration (v3.16.0)
|
|
1267
|
-
|
|
1268
|
-
Migrate `fetchPriceHistory` and `fetchAllPriceHistory` methods from MySQL database backend to DEX
|
|
1269
|
-
Backend API for improved performance and real-time data availability.
|
|
1270
|
-
|
|
1271
|
-
### SDK Changes (@gala-chain/launchpad-sdk)
|
|
1272
|
-
- **New**: Added `tokenFormatConverter` utility (`src/utils/tokenFormatConverter.ts`)
|
|
1273
|
-
- Convert between pipe-delimited (`GUSDC|Unit|none|eth:...`) and dollar-delimited token formats
|
|
1274
|
-
- Convert sort order from SDK format (uppercase) to API format (lowercase)
|
|
1275
|
-
- **Updated**: `environments.ts` - Added separate `dexBackendBaseUrl` configuration for DEX
|
|
1276
|
-
Backend service
|
|
1277
|
-
- Production: `https://dex-backend-prod1.defi.gala.com`
|
|
1278
|
-
- Stage: `https://dex-backend-dev1.defi.gala.com`
|
|
1279
|
-
- **Updated**: `PriceHistoryService` - Migrated to DEX Backend API
|
|
1280
|
-
- `fetchPriceHistory()` now uses `/price-oracle/fetch-price` endpoint
|
|
1281
|
-
- `fetchAllPriceHistory()` uses automatic pagination over API
|
|
1282
|
-
- Automatic token format conversion (pipe → dollar delimited)
|
|
1283
|
-
- Automatic sort order conversion (uppercase → lowercase)
|
|
1284
|
-
- `fetchPrices()` and `fetchAllPrices()` remain MySQL-based for latest price queries
|
|
1285
|
-
- **Updated**: `LaunchpadSDK` - Added `dexBackendHttp` client initialization with
|
|
1286
|
-
`dexBackendBaseUrl`
|
|
1287
|
-
- **Updated**: Type definitions - Added `DexPriceOracleResponse` interface for API response
|
|
1288
|
-
mapping
|
|
1289
|
-
- **Updated**: Tests - Updated to mock HTTP client instead of MySQL connections
|
|
1290
|
-
- Added tests for token format conversion
|
|
1291
|
-
- Added tests for sort order conversion
|
|
1292
|
-
- Added tests for API error handling
|
|
1293
|
-
|
|
1294
|
-
### MCP Changes (@gala-chain/launchpad-mcp-server)
|
|
1295
|
-
- **Updated**: `fetchPriceHistory` tool description
|
|
1296
|
-
- Reflects new DEX Backend API endpoint usage
|
|
1297
|
-
- Removes MySQL configuration requirements
|
|
1298
|
-
- Adds endpoint reference (`/price-oracle/fetch-price`)
|
|
1299
|
-
- **Updated**: `fetchAllPriceHistory` tool description
|
|
1300
|
-
- Updated for API-based implementation
|
|
1301
|
-
- Reflects automatic pagination handling
|
|
1302
|
-
|
|
1303
|
-
### Documentation
|
|
1304
|
-
- **Updated**: `CLAUDE.md` - Comprehensive price history patterns documentation
|
|
1305
|
-
- Dual-backend architecture explanation
|
|
1306
|
-
- API vs MySQL comparison
|
|
1307
|
-
- Configuration examples for both methods
|
|
1308
|
-
- Performance characteristics for each approach
|
|
1309
|
-
- Important notes for API-based queries
|
|
1310
|
-
|
|
1311
|
-
### Backward Compatibility
|
|
1312
|
-
|
|
1313
|
-
✅ Fully backward compatible - SDK interfaces unchanged ✅ Automatic format conversion handles
|
|
1314
|
-
token format differences ✅ Dual-backend support maintains MySQL for price sheet queries
|
|
1315
|
-
|
|
1316
|
-
### Performance Improvements
|
|
1317
|
-
- ✅ API-based queries typically <500ms per request
|
|
1318
|
-
- ✅ Real-time data availability
|
|
1319
|
-
- ✅ No database connection overhead
|
|
1320
|
-
- ✅ Improved scalability for high-volume queries
|
|
1321
|
-
|
|
1322
|
-
### Patch Changes
|
|
1323
|
-
|
|
1324
|
-
- Updated dependencies
|
|
1325
|
-
- @gala-chain/launchpad-sdk@3.16.0
|
|
1326
|
-
|
|
1327
|
-
## 1.12.4
|
|
1328
|
-
|
|
1329
|
-
### Patch Changes
|
|
1330
|
-
|
|
1331
|
-
- docs: comprehensive documentation updates for price history methods
|
|
1332
|
-
|
|
1333
|
-
### SDK Documentation Updates
|
|
1334
|
-
- Added complete documentation for all 4 price history methods in README.md
|
|
1335
|
-
- fetchPriceHistory (paginated)
|
|
1336
|
-
- fetchAllPriceHistory (auto-paginated)
|
|
1337
|
-
- fetchPrices (paginated latest prices)
|
|
1338
|
-
- fetchAllPrices (auto-paginated latest prices)
|
|
1339
|
-
- Added comprehensive examples showing usage patterns, configuration, and workflows
|
|
1340
|
-
- Updated MySQL configuration section with code examples for all 4 methods
|
|
1341
|
-
- Added price history patterns documentation to CLAUDE.md
|
|
1342
|
-
- Added latest token price queries section to CLAUDE.md with detailed examples
|
|
1343
|
-
- Created comprehensive fetch-all-price-history-demo.ts example script
|
|
1344
|
-
- Demonstrates statistical analysis, trend calculation, moving averages
|
|
1345
|
-
- Shows CSV export, time period comparison, and multi-token analysis
|
|
1346
|
-
- Includes volatility calculation and price statistics
|
|
1347
|
-
|
|
1348
|
-
### MCP Server Documentation Updates
|
|
1349
|
-
- Updated tool count from 52 to 55 in README (includes 4 price history tools)
|
|
1350
|
-
- Added "Price History & Analysis" section documenting 4 price history tools
|
|
1351
|
-
- Updated MCP installation version references (1.12.3, SDK 3.15.3)
|
|
1352
|
-
- Added complete price history tool descriptions with use cases and examples
|
|
1353
|
-
|
|
1354
|
-
### Agent Documentation Updates
|
|
1355
|
-
- Updated @agent-galachain-launchpad-developer.md
|
|
1356
|
-
- Updated SDK method count: 46 → 50 (includes price history)
|
|
1357
|
-
- Updated MCP tool count: 51 → 55 (includes 4 price history tools)
|
|
1358
|
-
- Updated version references: v3.11.0+ → v3.15.3+
|
|
1359
|
-
- Added "Price History & Analysis" section to Complete Method Reference
|
|
1360
|
-
- Updated service architecture to include PriceHistoryService
|
|
1361
|
-
- Updated support section with latest version information
|
|
1362
|
-
|
|
1363
|
-
- Updated dependencies
|
|
1364
|
-
- @gala-chain/launchpad-sdk@3.15.4
|
|
1365
|
-
|
|
1366
|
-
## 1.12.3
|
|
1367
|
-
|
|
1368
|
-
### Patch Changes
|
|
1369
|
-
|
|
1370
|
-
- Bump SDK dependency to v3.15.3 with pool connection fix
|
|
1371
|
-
|
|
1372
|
-
Updates @gala-chain/launchpad-sdk from ^3.15.2 to ^3.15.3 to include the fix for fetchPrices pool
|
|
1373
|
-
initialization.
|
|
1374
|
-
|
|
1375
|
-
## 1.12.2
|
|
1376
|
-
|
|
1377
|
-
### Patch Changes
|
|
1378
|
-
|
|
1379
|
-
- Bump SDK dependency to v3.15.2 with fetchPrices fix
|
|
1380
|
-
|
|
1381
|
-
Updates @gala-chain/launchpad-sdk from ^3.15.1 to ^3.15.2 to include the fix for fetchPrices and
|
|
1382
|
-
fetchAllPrices methods.
|
|
1383
|
-
|
|
1384
|
-
## 1.12.1
|
|
1385
|
-
|
|
1386
|
-
### Patch Changes
|
|
1387
|
-
|
|
1388
|
-
- Add comprehensive test coverage and example scripts for fetchPrices and fetchAllPrices methods
|
|
1389
|
-
|
|
1390
|
-
**SDK Changes:**
|
|
1391
|
-
- Added 11 unit tests for fetchPrices and fetchAllPrices validation in
|
|
1392
|
-
price-history-service.test.ts
|
|
1393
|
-
- Added 19 integration tests for fetchPrices and fetchAllPrices functionality in
|
|
1394
|
-
price-history-service.integration.ts
|
|
1395
|
-
- Improved PriceHistoryService test coverage from 31.44% to 51.57% (+20.13 percentage points)
|
|
1396
|
-
- All 1096 tests passing
|
|
1397
|
-
|
|
1398
|
-
**Example Scripts:**
|
|
1399
|
-
- Added examples/validate-fetch-prices.ts: Validates methods without MySQL setup, shows signatures
|
|
1400
|
-
and usage
|
|
1401
|
-
- Added examples/fetch-prices-demo.ts: Full demonstration with 5 use cases (pagination, sorting,
|
|
1402
|
-
auto-pagination, statistics)
|
|
1403
|
-
|
|
1404
|
-
**Test Coverage Details:**
|
|
1405
|
-
- Unit Tests: Parameter validation, error handling, edge cases
|
|
1406
|
-
- Integration Tests: Empty results, latest price selection, multiple tokens, pagination, sorting,
|
|
1407
|
-
large datasets, auto-pagination combining
|
|
1408
|
-
|
|
1409
|
-
- Updated dependencies
|
|
1410
|
-
- @gala-chain/launchpad-sdk@3.15.1
|
|
1411
|
-
|
|
1412
|
-
## 1.12.0
|
|
1413
|
-
|
|
1414
|
-
### Minor Changes
|
|
1415
|
-
|
|
1416
|
-
- Add fetchPrices() and fetchAllPrices() methods for fetching latest token prices
|
|
1417
|
-
|
|
1418
|
-
Implements methods to fetch the most recent price snapshot for all unique tokens in the database,
|
|
1419
|
-
useful for market overviews and bulk price comparisons.
|
|
1420
|
-
|
|
1421
|
-
Changes:
|
|
1422
|
-
- Added FetchPricesOptions and PricesResult types to priceHistory.dto.ts
|
|
1423
|
-
- Added fetchPrices() method to PriceHistoryService with pagination support
|
|
1424
|
-
- Added fetchAllPrices() convenience method with automatic pagination
|
|
1425
|
-
- Exposed both methods from LaunchpadSDK wrapper class
|
|
1426
|
-
- Created MCP tools: gala_launchpad_fetch_prices and gala_launchpad_fetch_all_prices
|
|
1427
|
-
- Updated tool count from 53 to 55 (pools category now has 18 tools)
|
|
1428
|
-
- Uses window function (ROW_NUMBER) for optimal database query performance
|
|
1429
|
-
|
|
1430
|
-
### Patch Changes
|
|
1431
|
-
|
|
1432
|
-
- Updated dependencies
|
|
1433
|
-
- @gala-chain/launchpad-sdk@3.15.0
|
|
1434
|
-
|
|
1435
|
-
## 1.11.0
|
|
1436
|
-
|
|
1437
|
-
### Minor Changes
|
|
1438
|
-
|
|
1439
|
-
- Add fetchAllPriceHistory convenience method for automatic pagination
|
|
1440
|
-
|
|
1441
|
-
Implements automatic pagination convenience method for price history queries, following the
|
|
1442
|
-
established fetchAllPools pattern for consistency.
|
|
1443
|
-
|
|
1444
|
-
Changes:
|
|
1445
|
-
- Added fetchAllPriceHistory method to LaunchpadSDK wrapper class that handles pagination
|
|
1446
|
-
automatically
|
|
1447
|
-
- Created MCP tool gala_launchpad_fetch_all_price_history with automatic pagination support
|
|
1448
|
-
- Updated tool count from 52 to 53 (pools category now has 16 tools)
|
|
1449
|
-
- Follows established fetchAllPools pattern for API consistency
|
|
1450
|
-
|
|
1451
|
-
### Patch Changes
|
|
1452
|
-
|
|
1453
|
-
- Updated dependencies
|
|
1454
|
-
- @gala-chain/launchpad-sdk@3.14.0
|
|
1455
|
-
|
|
1456
|
-
## 1.10.0
|
|
1457
|
-
|
|
1458
|
-
### Minor Changes
|
|
1459
|
-
|
|
1460
|
-
- b45e5e0: Add: Integrate `fetchPriceHistory` MCP tool for historical token price analysis
|
|
1461
|
-
|
|
1462
|
-
The MCP server now includes a new tool (`gala_launchpad_fetch_price_history`) for querying
|
|
1463
|
-
historical price snapshots from the MySQL database. This enables AI agents to perform historical
|
|
1464
|
-
price analysis, trend identification, and volatility assessment. The tool supports flexible token
|
|
1465
|
-
ID formats, date range filtering, pagination, and sort options.
|
|
1466
|
-
|
|
1467
|
-
**Key Features:**
|
|
1468
|
-
- Flexible token ID support (string and object formats)
|
|
1469
|
-
- Date range filtering with optional start/end dates
|
|
1470
|
-
- Efficient pagination (max 100 items per page)
|
|
1471
|
-
- Ascending/descending sort order control
|
|
1472
|
-
- MySQL connection string configuration via environment variable
|
|
1473
|
-
|
|
1474
|
-
**Configuration:**
|
|
1475
|
-
- Added `MYSQL_CONNECTION_STRING` environment variable support
|
|
1476
|
-
- MySQL connection string passed to SDK via AgentConfig config passthrough
|
|
1477
|
-
- Extended AgentSDKConfig interface for optional SDK configuration merging
|
|
1478
|
-
|
|
1479
|
-
**Updates:**
|
|
1480
|
-
- Updated SDK dependency from @gala-chain/launchpad-sdk@^3.12.8 to
|
|
1481
|
-
@gala-chain/launchpad-sdk@^3.13.0
|
|
1482
|
-
- Total tools: 51 → 52 (pool management tools: 14 → 15)
|
|
1483
|
-
|
|
1484
|
-
## 1.8.2
|
|
1485
|
-
|
|
1486
|
-
### Patch Changes
|
|
1487
|
-
|
|
1488
|
-
- Fix SDK version detection by using build-time version injection instead of runtime file reading.
|
|
1489
|
-
The SDK now generates a version constant during build, ensuring it works in all environments
|
|
1490
|
-
(Node.js, browser, bundled). Additionally, added a `/version` slash command to the MCP server for
|
|
1491
|
-
easy version checking.
|
|
1492
|
-
|
|
1493
|
-
### Changes:
|
|
1494
|
-
- **SDK**: Implement build-time version injection via `scripts/inject-version.ts`, matching the
|
|
1495
|
-
MCP server pattern
|
|
1496
|
-
- **SDK**: Update `packages/sdk/package.json` to run `build:version` before compilation
|
|
1497
|
-
- **MCP Server**: Add new `utility` prompt category with `/version` command to fetch and display
|
|
1498
|
-
SDK/MCP server versions
|
|
1499
|
-
|
|
1500
|
-
- Updated dependencies
|
|
1501
|
-
- @gala-chain/launchpad-sdk@3.12.8
|
|
1502
|
-
|
|
1503
|
-
## 1.8.1
|
|
1504
|
-
|
|
1505
|
-
### Patch Changes
|
|
1506
|
-
|
|
1507
|
-
- Fix: Pin MCP to SDK v3.12.7 (latest stable with bug fixes)
|
|
1508
|
-
|
|
1509
|
-
Updated SDK dependency from flexible `*` to pinned `^3.12.7`.
|
|
1510
|
-
|
|
1511
|
-
**Rationale:**
|
|
1512
|
-
- Pinning ensures deliberate, tested updates instead of automatic surprises
|
|
1513
|
-
- Provides stability and prevents accidental breaking changes
|
|
1514
|
-
- v3.12.7 includes critical bug fixes (File polyfill, version detection)
|
|
1515
|
-
- The pin MUST be updated immediately when SDK releases critical fixes
|
|
1516
|
-
- Prevents users from falling behind on essential bug fixes
|
|
1517
|
-
|
|
1518
|
-
**Discipline required:** Every SDK release cycle, update the MCP pin. No lagging behind.
|
|
1519
|
-
|
|
1520
|
-
## 1.8.0
|
|
1521
|
-
|
|
1522
|
-
### Minor Changes
|
|
1523
|
-
|
|
1524
|
-
- Update: Use flexible SDK version constraint instead of pinned version
|
|
1525
|
-
|
|
1526
|
-
Changed SDK dependency from pinned `^3.12.4` to flexible `*` (any version).
|
|
1527
|
-
|
|
1528
|
-
**Rationale:**
|
|
1529
|
-
- Overly restrictive version pinning prevents automatic SDK updates
|
|
1530
|
-
- MCP server should always use the latest stable SDK without requiring manual version bumps
|
|
1531
|
-
- Using `*` allows npm to automatically fetch the latest published SDK version
|
|
1532
|
-
- This ensures bug fixes, security patches, and new features in SDK are immediately available
|
|
1533
|
-
- Reduces maintenance burden of manually updating version constraints after each SDK release
|
|
1534
|
-
|
|
1535
|
-
**Impact:**
|
|
1536
|
-
- MCP server will now automatically use the latest SDK version available on npm
|
|
1537
|
-
- Bug fixes (like the File polyfill fix in v3.12.6 and version detection fix in v3.12.7) are now
|
|
1538
|
-
available immediately
|
|
1539
|
-
- Users get security updates and improvements without waiting for explicit MCP server releases
|
|
1540
|
-
|
|
1541
|
-
This is the correct pattern for stable, production-ready packages where the dependency is actively
|
|
1542
|
-
maintained and semantically versioned.
|
|
1543
|
-
|
|
1544
|
-
## 1.7.15
|
|
1545
|
-
|
|
1546
|
-
### Patch Changes
|
|
1547
|
-
|
|
1548
|
-
- chore: update SDK dependency to v3.12.4 (fixes Node.js File API issue)
|
|
1549
|
-
|
|
1550
|
-
Updates SDK dependency to v3.12.4 which fixes the CommonJS File API ReferenceError in Node.js 18+
|
|
1551
|
-
by using the official web-file-polyfill package.
|
|
1552
|
-
|
|
1553
|
-
## 1.7.12
|
|
1554
|
-
|
|
1555
|
-
### Patch Changes
|
|
1556
|
-
|
|
1557
|
-
- Update to SDK v3.12.3 which fixes CommonJS File API ReferenceError in Node.js 18+
|
|
1558
|
-
|
|
1559
|
-
## 1.7.11
|
|
1560
|
-
|
|
1561
|
-
### Patch Changes
|
|
1562
|
-
|
|
1563
|
-
- Add dynamic version tools and fix CommonJS uuid bundling conflict
|
|
1564
|
-
|
|
1565
|
-
**SDK Changes:**
|
|
1566
|
-
- Added `getVersion()` method to LaunchpadSDK class that returns the SDK version dynamically read
|
|
1567
|
-
from package.json
|
|
1568
|
-
- Created `src/constants/version.ts` with SDK_VERSION constant that reads from package.json at
|
|
1569
|
-
module load
|
|
1570
|
-
- Version is read using require() with proper error handling for different environments
|
|
1571
|
-
- **Fixed CommonJS build**: Updated `rollup.config.mjs` to bundle uuid only in CommonJS format
|
|
1572
|
-
- Conditional externals: uuid excluded from CJS externals but included in ESM/UMD externals
|
|
1573
|
-
- Resolves "ERR_REQUIRE_ESM" error when requiring uuid v13.0.0 (ESM-only package) in CommonJS
|
|
1574
|
-
environments
|
|
1575
|
-
- UMD/ESM bundles remain optimized with uuid external (~34KB)
|
|
1576
|
-
- CJS bundle includes uuid (~44KB) for complete self-contained CommonJS compatibility
|
|
1577
|
-
|
|
1578
|
-
**MCP Server Changes:**
|
|
1579
|
-
- Created version injection script (`scripts/inject-version.ts`) that runs as a prebuild step
|
|
1580
|
-
- Added `build:version` npm script that injects MCP server version into `src/generated/version.ts`
|
|
1581
|
-
- Updated `.gitignore` to exclude auto-generated version file
|
|
1582
|
-
- Created `getVersionTool` MCP tool that returns both SDK and MCP server versions with timestamp
|
|
1583
|
-
|
|
1584
|
-
Both versions are now dynamically read from their respective package.json files, ensuring they
|
|
1585
|
-
always stay in sync without manual version management in code. The CommonJS bundle now
|
|
1586
|
-
self-contains uuid to resolve ESM-only module conflicts in Node.js require() scenarios.
|
|
1587
|
-
|
|
1588
|
-
- Updated dependencies
|
|
1589
|
-
- @gala-chain/launchpad-sdk@3.12.2
|
|
1590
|
-
|
|
1591
|
-
## 1.7.10
|
|
1592
|
-
|
|
1593
|
-
### Patch Changes
|
|
1594
|
-
|
|
1595
|
-
- Comprehensive documentation for CommonJS support and module formats
|
|
1596
|
-
|
|
1597
|
-
**SDK Updates:**
|
|
1598
|
-
- Document all three module formats (ESM, CommonJS, UMD)
|
|
1599
|
-
- Add module resolution table showing automatic format selection
|
|
1600
|
-
- Clarify when to use each format with concrete examples
|
|
1601
|
-
- Explain package.json exports configuration
|
|
1602
|
-
|
|
1603
|
-
**MCP Server Updates:**
|
|
1604
|
-
- Document CommonJS module format
|
|
1605
|
-
- Explain integration with SDK's multi-format support
|
|
1606
|
-
- Clarify automatic format selection by Node.js
|
|
1607
|
-
|
|
1608
|
-
**Project Configuration (CLAUDE.md):**
|
|
1609
|
-
- Enhanced Build System section with detailed format breakdown
|
|
1610
|
-
- Added comprehensive "Launchpad SDK Module Formats (v3.12.0+)" section
|
|
1611
|
-
- Include size monitoring metrics for all three bundles
|
|
1612
|
-
|
|
1613
|
-
- Updated dependencies
|
|
1614
|
-
- @gala-chain/launchpad-sdk@3.12.1
|
|
1615
|
-
|
|
1616
|
-
## 1.7.9
|
|
1617
|
-
|
|
1618
|
-
### Patch Changes
|
|
1619
|
-
|
|
1620
|
-
- Fix: Update STAGE environment launchpadFrontendUrl from lpad-frontend-dev1 to lpad-frontend-test1
|
|
1621
|
-
to correct MCP tool URL generation for token frontend links
|
|
1622
|
-
- Updated dependencies
|
|
1623
|
-
- @gala-chain/launchpad-sdk@3.11.8
|
|
1624
|
-
|
|
1625
|
-
## 1.7.8
|
|
1626
|
-
|
|
1627
|
-
### Patch Changes
|
|
1628
|
-
|
|
1629
|
-
- Add token-distribution topic to explainSdkUsage tool
|
|
1630
|
-
- New topic: 'token-distribution' - Analyze token holder distribution and concentration
|
|
1631
|
-
- Includes complete code examples for analyzing holder distribution
|
|
1632
|
-
- Added Gini coefficient calculation example for wealth distribution analysis
|
|
1633
|
-
- Added whale detection and concentration risk analysis patterns
|
|
1634
|
-
- Shows how to identify top holders and calculate ownership percentages
|
|
1635
|
-
- Updated tool description and enum to include new topic
|
|
1636
|
-
|
|
1637
|
-
## 1.7.7
|
|
1638
|
-
|
|
1639
|
-
### Patch Changes
|
|
1640
|
-
|
|
1641
|
-
- Update documentation across all files to reference correct SDK and MCP versions (3.11.7 and 1.7.7)
|
|
1642
|
-
- Add comprehensive Token Distribution Patterns section to CLAUDE.md
|
|
1643
|
-
- Update explainSdkUsage tool to show v3.11.7
|
|
1644
|
-
|
|
1645
|
-
## 1.7.6
|
|
1646
|
-
|
|
1647
|
-
### Patch Changes
|
|
1648
|
-
|
|
1649
|
-
- Update SDK dependency to v3.11.6 with TypeScript declaration file fixes
|
|
1650
|
-
- Fixed TypeScript declaration file output structure by restoring correct tsconfig.json
|
|
1651
|
-
configuration
|
|
1652
|
-
|
|
1653
|
-
## 1.7.5
|
|
1654
|
-
|
|
1655
|
-
### Patch Changes
|
|
1656
|
-
|
|
1657
|
-
- Update SDK dependency to v3.11.4 with complete type safety improvements
|
|
1658
|
-
|
|
1659
|
-
## 1.7.4
|
|
1660
|
-
|
|
1661
|
-
### Patch Changes
|
|
1662
|
-
|
|
1663
|
-
- Fix demo script failures caused by missing tokenName field in poolDetails response.
|
|
1664
|
-
|
|
1665
|
-
**Root Causes:**
|
|
1666
|
-
- GalaChainService response transformation broke property access after Phase 2 type safety changes
|
|
1667
|
-
- fetchPoolDetails didn't include tokenName field that demo code expects
|
|
1668
|
-
|
|
1669
|
-
**Changes:**
|
|
1670
|
-
- Add tokenName field to fetchPoolDetails return value for convenience
|
|
1671
|
-
- Fix GalaChainService response transformation to preserve structure using type assertion patterns
|
|
1672
|
-
- Maintain type safety throughout with proper TypeScript patterns
|
|
1673
|
-
|
|
1674
|
-
**Impact:**
|
|
1675
|
-
- Resolves 9 failing demo scenarios with "Token name is required" validation errors
|
|
1676
|
-
- All calculation methods (calculateBuyAmountLocal, calculateSellAmountLocal, calculateBuyAmount)
|
|
1677
|
-
now work correctly
|
|
1678
|
-
- Demo script runs without validation errors
|
|
1679
|
-
|
|
1680
|
-
- Updated dependencies
|
|
1681
|
-
- @gala-chain/launchpad-sdk@3.11.3
|
|
1682
|
-
|
|
1683
|
-
## 1.7.3
|
|
1684
|
-
|
|
1685
|
-
### Patch Changes
|
|
1686
|
-
|
|
1687
|
-
- chore: Update SDK dependency to 3.11.2
|
|
1688
|
-
|
|
1689
|
-
## 1.7.1 - 2025-10-11
|
|
1690
|
-
|
|
1691
|
-
### Fixed
|
|
1692
|
-
|
|
1693
|
-
- **Tool registry validation error** - Fixed hardcoded tool count mismatch
|
|
1694
|
-
- Registry was expecting 49 tools but actual count was 50 tools
|
|
1695
|
-
- Added 2 tools from cache feature (getCacheInfo, clearCache) not accounted for in v1.7.0
|
|
1696
|
-
- Updated tool registry validation from 49 to 50
|
|
1697
|
-
- Fixed all documentation to reflect correct tool counts (48→50)
|
|
1698
|
-
- Fixed Pool Management tool count (10→14) to match actual code
|
|
1699
|
-
|
|
1700
|
-
### Changed
|
|
1701
|
-
|
|
1702
|
-
- Updated package.json description from "48 tools" to "50 tools"
|
|
1703
|
-
- Updated MCP README tool counts (48→50 total, 10→14 pool tools)
|
|
1704
|
-
- Updated SDK README MCP tool reference (48→50)
|
|
1705
|
-
- Updated agent definition file tool counts
|
|
1706
|
-
- Added missing 4 pool tools to README list (spot price and resolution tools)
|
|
1707
|
-
- Removed duplicate "Pricing & Spot Price" section from README
|
|
1708
|
-
- Updated Utility Tools count (3→9) with complete tool list
|
|
1709
|
-
|
|
1710
|
-
### Context
|
|
1711
|
-
|
|
1712
|
-
v1.7.0 was published with incorrect tool counts due to not accounting for cache management tools
|
|
1713
|
-
added in v1.6.0. The registry validation expected 49 tools but 50 were actually registered, causing
|
|
1714
|
-
the MCP server to crash on startup with "Tool registry validation failed: Tool count mismatch:
|
|
1715
|
-
expected 49, got 50".
|
|
1716
|
-
|
|
1717
|
-
## 1.7.0 - 2025-10-11
|
|
1718
|
-
|
|
1719
|
-
### Added
|
|
1720
|
-
|
|
1721
|
-
- **fetchAllPools tool** - Auto-pagination for complete pool queries
|
|
1722
|
-
- `gala_launchpad_fetch_all_pools` - Fetch all available pools without manual pagination
|
|
1723
|
-
- Automatically fetches all pages concurrently (up to 5 parallel requests)
|
|
1724
|
-
- Supports search filtering and type filters (recent/popular)
|
|
1725
|
-
- Returns complete pool dataset in single response
|
|
1726
|
-
- No page/limit parameters needed - returns ALL matching pools
|
|
1727
|
-
|
|
1728
|
-
- **fetchAllPools slash command** - Guided workflow for bulk pool analysis
|
|
1729
|
-
- `galachain-launchpad:fetch-all-pools` - AI-guided complete pool fetching
|
|
1730
|
-
- Provides summary statistics and pool categorization
|
|
1731
|
-
- Suggests next actions based on pool data
|
|
1732
|
-
|
|
1733
|
-
### Changed
|
|
1734
|
-
|
|
1735
|
-
- Updated SDK dependency from ^3.10.0 to ^3.11.0
|
|
1736
|
-
- Tool count increased from 49 to 50 tools (NOTE: v1.6.0 added 2 cache tools, bringing count from 47
|
|
1737
|
-
to 49)
|
|
1738
|
-
- Pool Management tools increased from 13 to 14 tools
|
|
1739
|
-
- Benefits from SDK v3.11.0 auto-pagination with 5x performance improvement
|
|
1740
|
-
|
|
1741
|
-
### Benefits
|
|
1742
|
-
|
|
1743
|
-
- ✅ Zero configuration - fetch all pools in one call
|
|
1744
|
-
- ✅ 5x performance improvement via concurrent requests
|
|
1745
|
-
- ✅ Eliminates manual pagination loops in AI agents
|
|
1746
|
-
- ✅ Simplified pool discovery and analysis workflows
|
|
1747
|
-
|
|
1748
|
-
## 1.2.20 - 2025-10-02
|
|
1749
|
-
|
|
1750
|
-
### Changed
|
|
1751
|
-
|
|
1752
|
-
- Updated SDK dependency from ^3.7.5 to ^3.7.6
|
|
1753
|
-
- Inherits graduation calculation documentation improvements from SDK v3.7.6
|
|
1754
|
-
|
|
1755
|
-
## 1.2.19 - 2025-10-02
|
|
1756
|
-
|
|
1757
|
-
### Documentation
|
|
1758
|
-
|
|
1759
|
-
- **Critical graduation calculation clarification** - Added comprehensive documentation to prevent
|
|
1760
|
-
misinterpretation of `calculateBuyAmountForGraduation` results
|
|
1761
|
-
- Updated MCP README with "Understanding Graduation Calculations" section
|
|
1762
|
-
- Added amount field reference table showing what each calculation method returns
|
|
1763
|
-
- Clarified that `amount` field represents **GALA cost** (e.g., "1594263.419" = 1.59 million
|
|
1764
|
-
GALA), NOT token quantity
|
|
1765
|
-
- Added real-world examples showing wrong vs correct interpretation
|
|
1766
|
-
- Updated CLAUDE.md with "Token Graduation Patterns" section and complete workflow examples
|
|
1767
|
-
- Emphasized that graduation amounts are typically hundreds of thousands to millions of GALA
|
|
1768
|
-
|
|
1769
|
-
### Benefits
|
|
1770
|
-
|
|
1771
|
-
- ✅ AI agents will correctly interpret graduation costs as GALA amounts
|
|
1772
|
-
- ✅ Prevents confusion between GALA cost and token quantity
|
|
1773
|
-
- ✅ Clear reference table for all calculation method return values
|
|
1774
|
-
- ✅ Better understanding of bonding curve graduation mechanics
|
|
1775
|
-
|
|
1776
|
-
## 1.2.15
|
|
1777
|
-
|
|
1778
|
-
### Patch Changes
|
|
1779
|
-
|
|
1780
|
-
- Fix memory leaks and enable incremental builds
|
|
1781
|
-
- Fix WebSocket onAny listener cleanup
|
|
1782
|
-
- Fix HTTP interceptor cleanup
|
|
1783
|
-
- Enable incremental TypeScript builds (50% faster rebuilds)
|
|
1784
|
-
- Add comprehensive performance documentation
|
|
1785
|
-
|
|
1786
|
-
- Updated dependencies
|
|
1787
|
-
- @gala-chain/launchpad-sdk@3.7.1
|
|
1788
|
-
|
|
1789
|
-
All notable changes to the Gala Launchpad MCP Server will be documented in this file.
|
|
1790
|
-
|
|
1791
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project
|
|
1792
|
-
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
1793
|
-
|
|
1794
|
-
## [1.2.4] - 2025-10-02
|
|
1795
|
-
|
|
1796
|
-
### Changed
|
|
1797
|
-
|
|
1798
|
-
- **Internal code quality improvements** - Schema consolidation across all 37 MCP tools
|
|
1799
|
-
- Created centralized `common-schemas.ts` with 15+ reusable schema definitions
|
|
1800
|
-
- Updated all tools to use shared schemas (TOKEN_NAME_SCHEMA, PRIVATE_KEY_SCHEMA, etc.)
|
|
1801
|
-
- Added `createLimitSchema()` function for operation-specific pagination constraints
|
|
1802
|
-
- Eliminated ~50+ inline schema repetitions across 7 tool categories
|
|
1803
|
-
- No breaking changes - 100% backward compatible with all AI agents
|
|
1804
|
-
- Updated SDK dependency from ^3.5.1 to ^3.5.2
|
|
1805
|
-
|
|
1806
|
-
### Benefits
|
|
1807
|
-
|
|
1808
|
-
- ✅ Improved code maintainability and consistency
|
|
1809
|
-
- ✅ Single source of truth for all schema definitions
|
|
1810
|
-
- ✅ Easier to maintain and update validation rules
|
|
1811
|
-
- ✅ All tools tested and working with Claude Desktop
|
|
1812
|
-
|
|
1813
|
-
## [1.2.3] - 2025-10-01
|
|
1814
|
-
|
|
1815
|
-
### Documentation
|
|
1816
|
-
|
|
1817
|
-
- **Enhanced trading workflow documentation** - Critical updates to prevent transaction failures
|
|
1818
|
-
- Added new Gotcha #1: Missing reverseBondingCurveFee Parameter with real-world failure examples
|
|
1819
|
-
- Updated trading workflows (buy & sell) to emphasize BOTH expectedAmount AND
|
|
1820
|
-
reverseBondingCurveFee requirements
|
|
1821
|
-
- Updated tool descriptions for `gala_launchpad_buy_tokens` and `gala_launchpad_sell_tokens`
|
|
1822
|
-
- Changed `maxAcceptableReverseBondingCurveFee` description from "Optional" to "RECOMMENDED"
|
|
1823
|
-
- Added explicit warning: "Omitting this may cause transaction failures"
|
|
1824
|
-
- Renumbered existing gotchas to accommodate new critical gotcha
|
|
1825
|
-
- Fixed type parameter references from 'token' to 'exact' throughout documentation
|
|
1826
|
-
|
|
1827
|
-
### Benefits
|
|
1828
|
-
|
|
1829
|
-
- ✅ AI agents will now include reverseBondingCurveFee parameter by default
|
|
1830
|
-
- ✅ Reduced transaction failures due to missing fee parameter
|
|
1831
|
-
- ✅ Clearer workflow examples with complete parameter extraction
|
|
1832
|
-
- ✅ Better troubleshooting guidance with real failure examples
|
|
1833
|
-
|
|
1834
|
-
### Context
|
|
1835
|
-
|
|
1836
|
-
This update addresses a recurring issue where AI agents forgot to pass the `reverseBondingCurveFee`
|
|
1837
|
-
parameter, causing "FAILED" transaction statuses. The documentation now treats this parameter as
|
|
1838
|
-
critical rather than optional.
|
|
1839
|
-
|
|
1840
|
-
## [1.2.2] - 2025-10-01
|
|
1841
|
-
|
|
1842
|
-
### Changed
|
|
1843
|
-
|
|
1844
|
-
- **Tool parameter standardization** - Renamed `walletAddress` to `address` in 6 MCP tools
|
|
1845
|
-
- Updated tools: `gala_launchpad_fetch_gala_balance`, `gala_launchpad_fetch_token_balance`,
|
|
1846
|
-
`gala_launchpad_fetch_profile`, `gala_launchpad_update_profile`,
|
|
1847
|
-
`gala_launchpad_upload_profile_image`
|
|
1848
|
-
- All tools now accept both `0x...` (Ethereum) and `eth|...` (GalaChain) formats
|
|
1849
|
-
- Address formats automatically normalized by SDK
|
|
1850
|
-
- Error messages updated to reference `address` field
|
|
1851
|
-
- Updated SDK dependency from ^3.5.0 to ^3.5.1
|
|
1852
|
-
|
|
1853
|
-
### Documentation
|
|
1854
|
-
|
|
1855
|
-
- Updated AI-AGENT-PATTERNS.md with new `address` parameter examples
|
|
1856
|
-
- Updated validation patterns table with address auto-normalization info
|
|
1857
|
-
- Error handler now references `address` instead of `walletAddress`
|
|
1858
|
-
|
|
1859
|
-
### Benefits
|
|
1860
|
-
|
|
1861
|
-
- ✅ AI agents can use natural `0x...` addresses without manual conversion
|
|
1862
|
-
- ✅ Consistent parameter naming across all tools
|
|
1863
|
-
- ✅ Better developer experience with automatic format handling
|
|
1864
|
-
|
|
1865
|
-
## [1.2.0] - 2025-10-01
|
|
1866
|
-
|
|
1867
|
-
### Added
|
|
1868
|
-
|
|
1869
|
-
- **Multi-wallet support via privateKey override** - All signing operations now accept optional
|
|
1870
|
-
`privateKey` parameter
|
|
1871
|
-
- Enables AI agents to execute operations from different wallets without restarting the MCP server
|
|
1872
|
-
- Added `privateKey` parameter to 9 MCP tools:
|
|
1873
|
-
- Trading: `gala_launchpad_buy_tokens`, `gala_launchpad_sell_tokens`
|
|
1874
|
-
- Token Creation: `gala_launchpad_launch_token`, `gala_launchpad_upload_token_image`,
|
|
1875
|
-
`gala_launchpad_upload_profile_image`
|
|
1876
|
-
- Transfers: `gala_launchpad_transfer_gala`, `gala_launchpad_transfer_token`
|
|
1877
|
-
- Social & Profile: `gala_launchpad_post_comment`, `gala_launchpad_update_profile`
|
|
1878
|
-
- `privateKey` must be in format: `'0x' + 64 hexadecimal characters`
|
|
1879
|
-
- If provided, operation uses specified wallet instead of default MCP server wallet
|
|
1880
|
-
- Powered by SDK v3.5.0 multi-wallet support
|
|
1881
|
-
|
|
1882
|
-
### Changed
|
|
1883
|
-
|
|
1884
|
-
- Updated SDK dependency from ^3.3.4 to ^3.5.0
|
|
1885
|
-
|
|
1886
|
-
### Benefits
|
|
1887
|
-
|
|
1888
|
-
- ✅ Test multi-wallet trading scenarios in AI agents
|
|
1889
|
-
- ✅ Build multi-user trading bots with Claude Desktop
|
|
1890
|
-
- ✅ Simulate different user behaviors without server restart
|
|
1891
|
-
- ✅ Create automated market maker systems
|
|
1892
|
-
- ✅ Operate multiple wallets from single MCP server instance
|
|
1893
|
-
|
|
1894
|
-
### Documentation
|
|
1895
|
-
|
|
1896
|
-
- Added comprehensive multi-wallet section to MCP README
|
|
1897
|
-
- Included security considerations for privateKey usage
|
|
1898
|
-
- Added multi-wallet trading scenario examples
|
|
1899
|
-
|
|
1900
|
-
## [1.1.11] - 2025-10-01
|
|
1901
|
-
|
|
1902
|
-
### Changed
|
|
1903
|
-
|
|
1904
|
-
- **Disabled auto-validation on startup** - Removed unnecessary GALA balance check when MCP server
|
|
1905
|
-
starts
|
|
1906
|
-
- Changed `autoValidate: false` to prevent startup warnings for wallets with zero balance
|
|
1907
|
-
- SDK still functions perfectly for all read operations (pools, prices, comments, etc.)
|
|
1908
|
-
- Validation only needed when performing transactions (which require GALA anyway)
|
|
1909
|
-
- Eliminates confusing "SDK not ready" warnings on server initialization
|
|
1910
|
-
|
|
1911
|
-
### Fixed
|
|
1912
|
-
|
|
1913
|
-
- Misleading "Failed to fetch GALA balance: No balance returned" warning on startup
|
|
1914
|
-
- Now only validates balance when actually needed for transactions
|
|
1915
|
-
- Cleaner startup experience for read-only MCP usage
|
|
1916
|
-
|
|
1917
|
-
## [1.1.10] - 2025-10-01
|
|
1918
|
-
|
|
1919
|
-
### Changed
|
|
1920
|
-
|
|
1921
|
-
- Updated SDK dependency from ^3.3.3 to ^3.3.4
|
|
1922
|
-
- Benefits from SDK v3.3.4 launchpad token precision fixes (18 decimals preserved)
|
|
1923
|
-
|
|
1924
|
-
## [1.1.9] - 2025-09-30
|
|
1925
|
-
|
|
1926
|
-
### Added
|
|
1927
|
-
|
|
1928
|
-
- **Token Class Key Resolution Tool** - GalaChain utility for direct blockchain operations
|
|
1929
|
-
- `gala_launchpad_resolve_token_class_key` - Convert token name to GalaChain TokenClassKey
|
|
1930
|
-
- Returns complete TokenClassKey structure: `{collection, category, type, additionalKey}`
|
|
1931
|
-
- Essential for direct GalaChain API operations outside SDK abstractions
|
|
1932
|
-
- Complements existing `gala_launchpad_resolve_vault_address` tool
|
|
1933
|
-
- AI agents can now access both utility methods for complete GalaChain integration
|
|
1934
|
-
|
|
1935
|
-
### Changed
|
|
1936
|
-
|
|
1937
|
-
- Updated SDK dependency from ^3.3.1 to ^3.3.2
|
|
1938
|
-
- Tool count increased from 31 to 32 tools
|
|
1939
|
-
- Pool tools increased from 11 to 12 tools
|
|
1940
|
-
|
|
1941
|
-
### Documentation
|
|
1942
|
-
|
|
1943
|
-
- SDK v3.3.2 now exports TokenClassKey types for downstream consumers
|
|
1944
|
-
- Both `resolveTokenClassKey()` and `resolveVaultAddress()` are official public SDK APIs
|
|
1945
|
-
|
|
1946
|
-
## [1.1.8] - 2025-09-30
|
|
1947
|
-
|
|
1948
|
-
### Added
|
|
1949
|
-
|
|
1950
|
-
- **Spot Price Tools** - Complete price discovery for tokens (3 new tools)
|
|
1951
|
-
- `gala_launchpad_fetch_token_spot_price` - General DEX tokens (single or array)
|
|
1952
|
-
- Fetch USD spot prices for tokens like GALA, SILK, MUSIC, etc.
|
|
1953
|
-
- Accepts single symbol string or array of symbols
|
|
1954
|
-
- Returns `TokenSpotPrice[]` with `{ symbol: string, price: number }`
|
|
1955
|
-
- `gala_launchpad_fetch_gala_spot_price` - GALA convenience method
|
|
1956
|
-
- Fetch current GALA USD price without parameters
|
|
1957
|
-
- Returns single `TokenSpotPrice` object
|
|
1958
|
-
- `gala_launchpad_fetch_launchpad_token_spot_price` - Launchpad tokens by name
|
|
1959
|
-
- Fetch USD spot price for launchpad tokens (e.g., "dragnrkti", "rocketri")
|
|
1960
|
-
- Returns `TokenSpotPrice` with symbol and price
|
|
1961
|
-
- AI agents can now make price-informed trading decisions
|
|
1962
|
-
|
|
1963
|
-
### Changed
|
|
1964
|
-
|
|
1965
|
-
- Updated SDK dependency from ^3.3.0 to ^3.3.1
|
|
1966
|
-
- Tool count increased from 28 to 31 tools
|
|
1967
|
-
- Pool tools increased from 8 to 11 tools
|
|
1968
|
-
|
|
1969
|
-
### Fixed
|
|
1970
|
-
|
|
1971
|
-
- **fetchPoolDetails response** - Now returns clean data structure
|
|
1972
|
-
- SDK v3.3.1 fix removes Status wrapper from response
|
|
1973
|
-
- MCP now receives `PoolDetailsData` directly instead of `{ Status: 1, Data: {...} }`
|
|
1974
|
-
- Cleaner response format for AI agent consumption
|
|
1975
|
-
|
|
1976
|
-
## [1.1.7] - 2025-09-30
|
|
1977
|
-
|
|
1978
|
-
### Fixed
|
|
1979
|
-
|
|
1980
|
-
- **BREAKING:** Trading type parameter values corrected from 'token' to 'exact'
|
|
1981
|
-
- SDK expects `type: 'native' | 'exact'` but MCP was using `'native' | 'token'`
|
|
1982
|
-
- Affected tools: calculateBuyAmount, calculateSellAmount, buy, sell, calculateInitialBuy
|
|
1983
|
-
- Now imports TRADING_TYPES constant from SDK for single source of truth
|
|
1984
|
-
|
|
1985
|
-
- **BREAKING:** Pool type parameter values corrected
|
|
1986
|
-
- SDK supports `type: 'recent' | 'popular'` but MCP was using `'recent' | 'trending' | 'user'`
|
|
1987
|
-
- Removed invalid 'trending' and 'user' options
|
|
1988
|
-
- Now imports POOL_TYPES constant from SDK for single source of truth
|
|
1989
|
-
- Affected tool: fetchPools
|
|
1990
|
-
|
|
1991
|
-
### Changed
|
|
1992
|
-
|
|
1993
|
-
- Updated SDK dependency from ^3.2.0 to ^3.3.0
|
|
1994
|
-
- All type enums now use `Object.values(TRADING_TYPES)` and `Object.values(POOL_TYPES)`
|
|
1995
|
-
- Ensures MCP tool schemas always match SDK type definitions
|
|
1996
|
-
|
|
1997
|
-
### Benefits
|
|
1998
|
-
|
|
1999
|
-
- Type safety via SDK constants import
|
|
2000
|
-
- Prevents future type mismatches
|
|
2001
|
-
- Auto-completion shows correct values
|
|
2002
|
-
- Single source of truth pattern
|
|
2003
|
-
|
|
2004
|
-
## [1.1.6] - 2025-09-30
|
|
2005
|
-
|
|
2006
|
-
### Fixed
|
|
2007
|
-
|
|
2008
|
-
- **postComment tool response** - Fixed MCP response validation error
|
|
2009
|
-
- SDK's `postComment()` returns `Promise<void>` (no data)
|
|
2010
|
-
- Handler was passing `undefined` to `formatSuccess()`
|
|
2011
|
-
- This created invalid MCP response: `{ content: [{ type: 'text', text: undefined }] }`
|
|
2012
|
-
- MCP SDK requires `text` field to be a string, not undefined
|
|
2013
|
-
- Now returns explicit success message:
|
|
2014
|
-
`{ success: true, message: 'Comment posted successfully' }`
|
|
2015
|
-
- Resolves: "Required" validation error on `content[0].text` path
|
|
2016
|
-
|
|
2017
|
-
## [1.1.5] - 2025-09-30
|
|
2018
|
-
|
|
2019
|
-
### Fixed
|
|
2020
|
-
|
|
2021
|
-
- **postComment tool** - Renamed parameter from "content" to "message"
|
|
2022
|
-
- **BREAKING CHANGE:** Parameter renamed to avoid MCP reserved word collision
|
|
2023
|
-
- MCP SDK treats "content" as special parameter requiring content blocks format
|
|
2024
|
-
- New signature: `postComment(tokenName: string, message: string)`
|
|
2025
|
-
- Old signature: `postComment(tokenName: string, content: string)` ❌
|
|
2026
|
-
- Internal: MCP parameter "message" maps to SDK parameter "content"
|
|
2027
|
-
|
|
2028
|
-
### Migration
|
|
2029
|
-
|
|
2030
|
-
```typescript
|
|
2031
|
-
// Before (v1.1.4 and earlier)
|
|
2032
|
-
gala_launchpad_post_comment({ tokenName: 'anime', content: 'Great token!' });
|
|
2033
|
-
|
|
2034
|
-
// After (v1.1.5+)
|
|
2035
|
-
gala_launchpad_post_comment({ tokenName: 'anime', message: 'Great token!' });
|
|
2036
|
-
```
|
|
2037
|
-
|
|
2038
|
-
## [1.1.4] - 2025-09-30
|
|
2039
|
-
|
|
2040
|
-
### Changed
|
|
2041
|
-
|
|
2042
|
-
- Version bump for update verification (no code changes)
|
|
2043
|
-
|
|
2044
|
-
## [1.1.3] - 2025-09-30
|
|
2045
|
-
|
|
2046
|
-
### Fixed
|
|
2047
|
-
|
|
2048
|
-
- **postComment tool** - Simplified to use standard MCP tool parameter pattern
|
|
2049
|
-
- Tool parameters should be simple JSON Schema types (string, not content blocks)
|
|
2050
|
-
- Content blocks format is for tool results/prompts/resources, not input parameters
|
|
2051
|
-
- Removed unnecessary content extraction logic from handler
|
|
2052
|
-
- Clean, simple implementation: string parameter → SDK string parameter
|
|
2053
|
-
|
|
2054
|
-
## [1.1.2] - 2025-09-30 [DEPRECATED]
|
|
2055
|
-
|
|
2056
|
-
### Fixed (Incorrect Approach)
|
|
2057
|
-
|
|
2058
|
-
- ~~postComment tool schema - Used overly complex oneOf schema~~ (reverted in 1.1.3)
|
|
2059
|
-
|
|
2060
|
-
## [1.1.1] - 2025-09-30
|
|
2061
|
-
|
|
2062
|
-
### Fixed
|
|
2063
|
-
|
|
2064
|
-
- **postComment tool** - Fixed content format handling for MCP protocol
|
|
2065
|
-
- Now correctly extracts text from MCP content blocks array
|
|
2066
|
-
- Handles both direct string and MCP content blocks format
|
|
2067
|
-
- Fixes "validation error" when posting comments
|
|
2068
|
-
- **SDK dependency** - Updated to ^3.2.0 to include getUrlByTokenName method
|
|
2069
|
-
- Fixes "method not found" error on getUrlByTokenName tool
|
|
2070
|
-
- Ensures all 28 MCP tools are functional
|
|
2071
|
-
|
|
2072
|
-
### Dependencies
|
|
2073
|
-
|
|
2074
|
-
- Updated `@gala-chain/launchpad-sdk` from ^3.1.0 to ^3.2.0
|
|
2075
|
-
|
|
2076
|
-
## [1.1.0] - 2025-09-30
|
|
2077
|
-
|
|
2078
|
-
### Added
|
|
2079
|
-
|
|
2080
|
-
- **AI-AGENT-PATTERNS.md** - Comprehensive AI agent guide with common workflows, gotchas, and best
|
|
2081
|
-
practices
|
|
2082
|
-
- **CONSTRAINTS-REFERENCE.md** - Technical reference for SDK-to-MCP constraint mappings
|
|
2083
|
-
- **Central constraints utility** (`src/utils/constraints.ts`) - Single source of truth for
|
|
2084
|
-
pagination limits
|
|
2085
|
-
- **AI-friendly error messages** - Enhanced error handler with contextual tips for common errors
|
|
2086
|
-
- **Workflow documentation** - Added detailed workflow comments to trading and creation tools
|
|
2087
|
-
|
|
2088
|
-
### Fixed
|
|
2089
|
-
|
|
2090
|
-
- **BREAKING:** Fixed constraint mismatches between MCP tool schemas and SDK validation
|
|
2091
|
-
- `fetchTrades`: Reduced limit from 100 → 20 (matches `TRADE_CONSTRAINTS.PAGINATION.MAX_LIMIT`)
|
|
2092
|
-
- `fetchTokensHeld`: Reduced limit from 100 → 20 (matches `USER_CONSTRAINTS.PAGINATION.MAX_LIMIT`)
|
|
2093
|
-
- `fetchTokensCreated`: Reduced limit from 100 → 20 (matches
|
|
2094
|
-
`USER_CONSTRAINTS.PAGINATION.MAX_LIMIT`)
|
|
2095
|
-
- `fetchComments`: Reduced limit from 100 → 50 (matches
|
|
2096
|
-
`COMMENT_CONSTRAINTS.PAGINATION.MAX_LIMIT`)
|
|
2097
|
-
- `fetchPools`: Verified limit 100 is correct (matches `PAGINATION_CONSTRAINTS.MAX_LIMIT`)
|
|
2098
|
-
|
|
2099
|
-
### Improved
|
|
2100
|
-
|
|
2101
|
-
- **expectedAmount parameter documentation** - Added critical warnings and workflow examples to
|
|
2102
|
-
prevent confusion
|
|
2103
|
-
- Clarified that `expectedAmount` must be `result.amount` from calculate functions, NOT input
|
|
2104
|
-
amount
|
|
2105
|
-
- Added step-by-step workflow examples with actual values
|
|
2106
|
-
- Included common mistake examples with corrections
|
|
2107
|
-
- **Type parameter clarity** - Enhanced 'native' vs 'token' documentation with use-case examples
|
|
2108
|
-
- 'native': For GALA amount (most common)
|
|
2109
|
-
- 'token': For exact token amount
|
|
2110
|
-
- **Error handling** - AI agents now receive helpful tips for common errors including:
|
|
2111
|
-
- Limit validation errors (with correct constraint values)
|
|
2112
|
-
- Token name/symbol validation errors (with pattern examples)
|
|
2113
|
-
- Wallet address format errors (with conversion examples)
|
|
2114
|
-
- WebSocket timeout errors (with trading workflow guidance)
|
|
2115
|
-
- Type parameter confusion (with usage examples)
|
|
2116
|
-
|
|
2117
|
-
### Documentation
|
|
2118
|
-
|
|
2119
|
-
- Enhanced inline comments throughout tool schemas linking to SDK constraint sources
|
|
2120
|
-
- Added comprehensive API documentation for AI agents
|
|
2121
|
-
- Created quick reference cards for common patterns
|
|
2122
|
-
- Documented all constraint mappings with source file line numbers
|
|
2123
|
-
|
|
2124
|
-
### Developer Experience
|
|
2125
|
-
|
|
2126
|
-
- AI agents can now self-diagnose and fix common errors using enhanced error messages
|
|
2127
|
-
- Reduced trial-and-error cycles with upfront workflow documentation
|
|
2128
|
-
- Improved discoverability with centralized documentation
|
|
2129
|
-
- Better maintainability with single source of truth for constraints
|
|
2130
|
-
|
|
2131
|
-
## [1.0.4] - 2025-09-18
|
|
2132
|
-
|
|
2133
|
-
### Added
|
|
2134
|
-
|
|
2135
|
-
- Initial release with 28 MCP tools for Gala Launchpad
|
|
2136
|
-
- Support for trading, balance queries, pool management, and token creation
|
|
2137
|
-
- Integration with `@gala-chain/launchpad-sdk` v3.1.0
|
|
2138
|
-
|
|
2139
|
-
---
|
|
2140
|
-
|
|
2141
|
-
**Migration Guide v1.0.4 → v1.1.0:**
|
|
2142
|
-
|
|
2143
|
-
⚠️ **Breaking Changes:**
|
|
2144
|
-
|
|
2145
|
-
- If your code uses `limit` values > 20 for `fetchTrades`, `fetchTokensHeld`, or
|
|
2146
|
-
`fetchTokensCreated`, reduce to ≤ 20
|
|
2147
|
-
- If your code uses `limit` values > 50 for `fetchComments`, reduce to ≤ 50
|
|
2148
|
-
- These limits now match the SDK's actual validation constraints
|
|
2149
|
-
|
|
2150
|
-
✅ **Recommended Actions:**
|
|
2151
|
-
|
|
2152
|
-
1. Update any hardcoded `limit` values to respect new constraints
|
|
2153
|
-
2. Review trading workflows to ensure `expectedAmount` uses calculated `result.amount`
|
|
2154
|
-
3. Consult `docs/AI-AGENT-PATTERNS.md` for updated best practices
|
|
2155
|
-
4. Leverage enhanced error messages for faster debugging
|
|
2156
|
-
|
|
2157
|
-
📚 **New Documentation:**
|
|
2158
|
-
|
|
2159
|
-
- `docs/AI-AGENT-PATTERNS.md` - AI agent guide
|
|
2160
|
-
- `docs/CONSTRAINTS-REFERENCE.md` - Constraint mappings
|
|
2161
|
-
- `src/utils/constraints.ts` - Constraint constants
|