@gala-chain/launchpad-mcp-server 5.0.3 → 5.0.4-beta.1
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.d.ts.map +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/generated/version.js.map +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 +23 -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/dist/prompts/balances.js
CHANGED
|
@@ -10,6 +10,8 @@ const mcpToolNames_js_1 = require("../constants/mcpToolNames.js");
|
|
|
10
10
|
const validation_js_1 = require("../utils/validation.js");
|
|
11
11
|
const handlerHelpers_js_1 = require("./utils/handlerHelpers.js");
|
|
12
12
|
const textTemplates_js_1 = require("./utils/textTemplates.js");
|
|
13
|
+
const prompt_factories_js_1 = require("./prompt-factories.js");
|
|
14
|
+
const pagination_helpers_js_1 = require("./utils/pagination-helpers.js");
|
|
13
15
|
/**
|
|
14
16
|
* Fetch GALA Balance - GALA balance query
|
|
15
17
|
*/
|
|
@@ -55,6 +57,7 @@ exports.fetchTokenBalancePrompt = {
|
|
|
55
57
|
},
|
|
56
58
|
],
|
|
57
59
|
handler: (args) => {
|
|
60
|
+
(0, validation_js_1.validateTokenName)(args.tokenName, 'tokenName');
|
|
58
61
|
(0, validation_js_1.validateAddress)(args.address);
|
|
59
62
|
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
60
63
|
operation: 'Get balance for specific token.',
|
|
@@ -80,16 +83,7 @@ exports.fetchTokensCreatedPrompt = {
|
|
|
80
83
|
description: 'Wallet address',
|
|
81
84
|
required: true,
|
|
82
85
|
},
|
|
83
|
-
{
|
|
84
|
-
name: 'page',
|
|
85
|
-
description: 'Page number (default: 1)',
|
|
86
|
-
required: false,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: 'limit',
|
|
90
|
-
description: 'Results per page (default: 20)',
|
|
91
|
-
required: false,
|
|
92
|
-
},
|
|
86
|
+
...(0, pagination_helpers_js_1.createPaginationArguments)({ defaultLimit: 20, maxLimit: 100 }),
|
|
93
87
|
{
|
|
94
88
|
name: 'tokenName',
|
|
95
89
|
description: 'Filter by exact token name (optional)',
|
|
@@ -103,15 +97,21 @@ exports.fetchTokensCreatedPrompt = {
|
|
|
103
97
|
],
|
|
104
98
|
handler: (args) => {
|
|
105
99
|
(0, validation_js_1.validateAddress)(args.address);
|
|
100
|
+
if (args.tokenName) {
|
|
101
|
+
(0, validation_js_1.validateTokenName)(args.tokenName, 'tokenName');
|
|
102
|
+
}
|
|
103
|
+
// Build parameters using helpers
|
|
104
|
+
const paginationParams = (0, pagination_helpers_js_1.buildPaginationParameters)(args.page, args.limit, { page: 1, limit: 20 });
|
|
105
|
+
const parameters = (0, prompt_factories_js_1.buildParameterObject)({
|
|
106
|
+
address: `Address: ${args.address}`,
|
|
107
|
+
...paginationParams,
|
|
108
|
+
}, [
|
|
109
|
+
[!!args.tokenName, 'tokenFilter', `Token Name Filter: ${args.tokenName}`],
|
|
110
|
+
[!!args.search, 'searchFilter', `Search Filter: ${args.search}`],
|
|
111
|
+
]);
|
|
106
112
|
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
107
113
|
operation: 'Get tokens created by wallet.',
|
|
108
|
-
parameters
|
|
109
|
-
address: `Address: ${args.address}`,
|
|
110
|
-
page: `Page: ${args.page || 1}`,
|
|
111
|
-
limit: `Limit: ${args.limit || 20}`,
|
|
112
|
-
...(args.tokenName && { tokenFilter: `Token Name Filter: ${args.tokenName}` }),
|
|
113
|
-
...(args.search && { searchFilter: `Search Filter: ${args.search}` }),
|
|
114
|
-
},
|
|
114
|
+
parameters,
|
|
115
115
|
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_TOKENS_CREATED,
|
|
116
116
|
actionDescription: 'retrieve created tokens',
|
|
117
117
|
displayFormat: 'Display the list of tokens created by this wallet.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balances.js","sourceRoot":"","sources":["../../src/prompts/balances.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,kEAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"balances.js","sourceRoot":"","sources":["../../src/prompts/balances.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,kEAAyD;AACzD,0DAAqG;AACrG,iEAAiE;AACjE,+DAAqE;AACrE,+DAA6D;AAC7D,yEAGuC;AAEvC;;GAEG;AACU,QAAA,sBAAsB,GAAc;IAC/C,IAAI,EAAE,wCAAwC;IAC9C,WAAW,EAAE,+BAA+B;IAC5C,SAAS,EAAE;QACT;YACE,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,KAAK;SAChB;KACF;IACD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AAA,cAAc,GAAgB;IACzC,8BAAsB;IACtB,+BAAuB;IACvB,gCAAwB;IACxB,2BAAmB;CACpB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ban Management Prompts
|
|
3
|
+
*
|
|
4
|
+
* Slash commands for user ban/moderation on token streams.
|
|
5
|
+
* Includes creating bans, removing bans, listing banned users,
|
|
6
|
+
* checking ban status, and viewing active users.
|
|
7
|
+
*
|
|
8
|
+
* Refactored to use ban management factory for DRY compliance.
|
|
9
|
+
*
|
|
10
|
+
* @since 5.5.0
|
|
11
|
+
* @since 5.12.0 - Refactored to use createBanManagementPrompts factory
|
|
12
|
+
*/
|
|
13
|
+
import type { MCPPrompt } from '../types/mcp.js';
|
|
14
|
+
/**
|
|
15
|
+
* Get Active Users - View current viewers/participants
|
|
16
|
+
*
|
|
17
|
+
* This is a ban-related prompt not part of the standard ban CRUD pattern.
|
|
18
|
+
* Used for moderation - see who's online before issuing bans.
|
|
19
|
+
*/
|
|
20
|
+
export declare const getActiveUsersPrompt: MCPPrompt;
|
|
21
|
+
export declare const createBanPrompt: MCPPrompt, removeBanPrompt: MCPPrompt, listBansPrompt: MCPPrompt, checkBanStatusPrompt: MCPPrompt;
|
|
22
|
+
export declare const banPrompts: MCPPrompt[];
|
|
23
|
+
//# sourceMappingURL=bans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bans.d.ts","sourceRoot":"","sources":["../../src/prompts/bans.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA6BjD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAoCjC,CAAC;AAGH,eAAO,MACL,eAAe,aACf,eAAe,aACf,cAAc,aACd,oBAAoB,WACJ,CAAC;AAEnB,eAAO,MAAM,UAAU,EAAE,SAAS,EAGjC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Ban Management Prompts
|
|
4
|
+
*
|
|
5
|
+
* Slash commands for user ban/moderation on token streams.
|
|
6
|
+
* Includes creating bans, removing bans, listing banned users,
|
|
7
|
+
* checking ban status, and viewing active users.
|
|
8
|
+
*
|
|
9
|
+
* Refactored to use ban management factory for DRY compliance.
|
|
10
|
+
*
|
|
11
|
+
* @since 5.5.0
|
|
12
|
+
* @since 5.12.0 - Refactored to use createBanManagementPrompts factory
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.banPrompts = exports.checkBanStatusPrompt = exports.listBansPrompt = exports.removeBanPrompt = exports.createBanPrompt = exports.getActiveUsersPrompt = void 0;
|
|
16
|
+
const index_js_1 = require("./factories/index.js");
|
|
17
|
+
// Tool name constant for the extra non-ban prompt
|
|
18
|
+
const BAN_TOOLS = {
|
|
19
|
+
GET_ACTIVE_USERS: 'gala_launchpad_get_active_users',
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Core ban management prompts generated by factory
|
|
23
|
+
*
|
|
24
|
+
* Includes:
|
|
25
|
+
* - create-ban
|
|
26
|
+
* - remove-ban
|
|
27
|
+
* - list-bans
|
|
28
|
+
* - check-ban-status
|
|
29
|
+
*/
|
|
30
|
+
const coreBanPrompts = (0, index_js_1.createBanManagementPrompts)({
|
|
31
|
+
entityName: 'user',
|
|
32
|
+
toolPrefix: 'ban',
|
|
33
|
+
isTokenScoped: true,
|
|
34
|
+
supportsDuration: true,
|
|
35
|
+
targetsUserAddress: true,
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Get Active Users - View current viewers/participants
|
|
39
|
+
*
|
|
40
|
+
* This is a ban-related prompt not part of the standard ban CRUD pattern.
|
|
41
|
+
* Used for moderation - see who's online before issuing bans.
|
|
42
|
+
*/
|
|
43
|
+
exports.getActiveUsersPrompt = (0, index_js_1.createTokenOperationPrompt)({
|
|
44
|
+
name: 'galachain-launchpad:get-active-users',
|
|
45
|
+
description: 'Get currently active viewers or chat participants on a stream',
|
|
46
|
+
requiresTokenName: true,
|
|
47
|
+
toolName: BAN_TOOLS.GET_ACTIVE_USERS,
|
|
48
|
+
actionDescription: 'get active users',
|
|
49
|
+
additionalArguments: [
|
|
50
|
+
{
|
|
51
|
+
name: 'type',
|
|
52
|
+
description: 'User type: viewers or chat_participants (default: viewers)',
|
|
53
|
+
required: false,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'search',
|
|
57
|
+
description: 'Search by address or name (optional)',
|
|
58
|
+
required: false,
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
buildParameters: (args) => (0, index_js_1.buildParameterObject)({
|
|
62
|
+
token: `Token: ${args.tokenName}`,
|
|
63
|
+
}, [
|
|
64
|
+
[!!args.type, 'type', `Type: ${args.type}`],
|
|
65
|
+
[!!args.search, 'search', `Search: ${args.search}`],
|
|
66
|
+
]),
|
|
67
|
+
operationDescription: `Get active users on token "{tokenName}" stream.
|
|
68
|
+
|
|
69
|
+
**User Types:**
|
|
70
|
+
- viewers: All users currently watching the stream
|
|
71
|
+
- chat_participants: Users who have sent chat messages
|
|
72
|
+
|
|
73
|
+
Useful for moderation - see who's online before issuing bans.`,
|
|
74
|
+
displayFormat: 'Display users in a table with columns: Address, Name, Last Active.',
|
|
75
|
+
});
|
|
76
|
+
// Export individual prompts for direct access if needed
|
|
77
|
+
exports.createBanPrompt = coreBanPrompts[0], exports.removeBanPrompt = coreBanPrompts[1], exports.listBansPrompt = coreBanPrompts[2], exports.checkBanStatusPrompt = coreBanPrompts[3];
|
|
78
|
+
exports.banPrompts = [
|
|
79
|
+
...coreBanPrompts,
|
|
80
|
+
exports.getActiveUsersPrompt,
|
|
81
|
+
];
|
|
82
|
+
//# sourceMappingURL=bans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bans.js","sourceRoot":"","s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uBAAe,GAGb,cAAc,KAFhB,sBAAc,GAEZ,cAAc,KADhB,4BAAoB,GAClB,cAAc,IAAC;AAEN,QAAA,UAAU,GAAgB;IACrC,GAAG,cAAc;IACjB,4BAAoB;CACrB,CAAC"}
|
package/dist/prompts/bridge.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Bridge Prompts (Slash Commands)
|
|
3
3
|
*
|
|
4
|
-
* Cross-chain bridging commands for GalaChain
|
|
4
|
+
* Cross-chain bridging commands for GalaChain to Ethereum and GalaChain to Solana.
|
|
5
|
+
* Refactored to use prompt factories for DRY compliance.
|
|
5
6
|
*/
|
|
6
7
|
import type { MCPPrompt } from '../types/mcp.js';
|
|
7
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/prompts/bridge.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/prompts/bridge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAYjD;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,SAgBxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAuCpC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,SAwC5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,SAgC3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,SA4B/B,CAAC;AAOH;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAIvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,SAGxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAIrC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAGtC,CAAC;AAOH;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAItC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAIpC,CAAC;AAEH,eAAO,MAAM,aAAa,EAAE,SAAS,EAcpC,CAAC"}
|
package/dist/prompts/bridge.js
CHANGED
|
@@ -2,20 +2,27 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Bridge Prompts (Slash Commands)
|
|
4
4
|
*
|
|
5
|
-
* Cross-chain bridging commands for GalaChain
|
|
5
|
+
* Cross-chain bridging commands for GalaChain to Ethereum and GalaChain to Solana.
|
|
6
|
+
* Refactored to use prompt factories for DRY compliance.
|
|
6
7
|
*/
|
|
7
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
9
|
exports.bridgePrompts = exports.solanaAllBalancesPrompt = exports.ethereumAllBalancesPrompt = exports.solanaNativeBalancePrompt = exports.solanaTokenBalancePrompt = exports.ethereumNativeBalancePrompt = exports.ethereumTokenBalancePrompt = exports.bridgeStatusPrompt = exports.bridgeInPrompt = exports.bridgeOutPrompt = exports.estimateBridgeFeePrompt = exports.supportedBridgeTokensPrompt = void 0;
|
|
9
10
|
const mcpToolNames_js_1 = require("../constants/mcpToolNames.js");
|
|
10
11
|
const validation_js_1 = require("../utils/validation.js");
|
|
11
|
-
const
|
|
12
|
-
|
|
12
|
+
const index_js_1 = require("./factories/index.js");
|
|
13
|
+
// ============================================================================
|
|
14
|
+
// BRIDGE OPERATION PROMPTS
|
|
15
|
+
// ============================================================================
|
|
13
16
|
/**
|
|
14
17
|
* Get Supported Bridge Tokens - List all tokens supported for cross-chain bridging
|
|
15
18
|
*/
|
|
16
|
-
exports.supportedBridgeTokensPrompt = {
|
|
19
|
+
exports.supportedBridgeTokensPrompt = (0, index_js_1.createSimpleOperationPrompt)({
|
|
17
20
|
name: 'galachain-launchpad:bridge-tokens',
|
|
18
21
|
description: 'List all tokens supported for cross-chain bridging',
|
|
22
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.GET_SUPPORTED_BRIDGE_TOKENS,
|
|
23
|
+
operation: 'List supported bridge tokens and chains.',
|
|
24
|
+
actionDescription: 'fetch all supported tokens',
|
|
25
|
+
displayFormat: 'Display tokens with symbols, decimals, and supported chains.',
|
|
19
26
|
arguments: [
|
|
20
27
|
{
|
|
21
28
|
name: 'chain',
|
|
@@ -23,25 +30,18 @@ exports.supportedBridgeTokensPrompt = {
|
|
|
23
30
|
required: false,
|
|
24
31
|
},
|
|
25
32
|
],
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
29
|
-
operation: 'List supported bridge tokens and chains.',
|
|
30
|
-
parameters: chainFilter ? { chain: `Chain Filter: ${chainFilter}` } : {},
|
|
31
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.GET_SUPPORTED_BRIDGE_TOKENS,
|
|
32
|
-
actionDescription: chainFilter
|
|
33
|
-
? `fetch supported tokens filtered by chain="${chainFilter}"`
|
|
34
|
-
: 'fetch all supported tokens',
|
|
35
|
-
displayFormat: 'Display tokens with symbols, decimals, and supported chains.',
|
|
36
|
-
}));
|
|
37
|
-
},
|
|
38
|
-
};
|
|
33
|
+
buildParameters: (args) => args.chain ? { chain: `Chain Filter: ${args.chain}` } : {},
|
|
34
|
+
});
|
|
39
35
|
/**
|
|
40
36
|
* Estimate Bridge Fee - Estimate fees for bridging tokens to Ethereum or Solana
|
|
41
37
|
*/
|
|
42
|
-
exports.estimateBridgeFeePrompt = {
|
|
38
|
+
exports.estimateBridgeFeePrompt = (0, index_js_1.createSimpleOperationPrompt)({
|
|
43
39
|
name: 'galachain-launchpad:bridge-fee',
|
|
44
40
|
description: 'Estimate fees for bridging tokens to Ethereum or Solana',
|
|
41
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.ESTIMATE_BRIDGE_FEE,
|
|
42
|
+
operation: 'Estimate bridge fees.',
|
|
43
|
+
actionDescription: 'estimate the bridge fee',
|
|
44
|
+
displayFormat: 'Display total fee, gas fee, and bridge fee breakdown.',
|
|
45
45
|
arguments: [
|
|
46
46
|
{
|
|
47
47
|
name: 'tokenSymbol',
|
|
@@ -59,30 +59,32 @@ exports.estimateBridgeFeePrompt = {
|
|
|
59
59
|
required: false,
|
|
60
60
|
},
|
|
61
61
|
],
|
|
62
|
-
|
|
62
|
+
validate: (args) => {
|
|
63
|
+
if (args.amount) {
|
|
64
|
+
(0, validation_js_1.validateNumericAmount)(args.amount, 'amount');
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
buildParameters: (args) => {
|
|
63
68
|
const parameters = {
|
|
64
69
|
token: `Token: ${args.tokenSymbol}`,
|
|
65
70
|
destination: `Destination: ${args.destinationChain}`,
|
|
66
71
|
};
|
|
67
72
|
if (args.amount) {
|
|
68
|
-
(0, validation_js_1.validateNumericAmount)(args.amount, 'amount');
|
|
69
73
|
parameters.amount = `Amount: ${args.amount}`;
|
|
70
74
|
}
|
|
71
|
-
return
|
|
72
|
-
operation: 'Estimate bridge fees.',
|
|
73
|
-
parameters,
|
|
74
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.ESTIMATE_BRIDGE_FEE,
|
|
75
|
-
actionDescription: 'estimate the bridge fee',
|
|
76
|
-
displayFormat: 'Display total fee, gas fee, and bridge fee breakdown.',
|
|
77
|
-
}));
|
|
75
|
+
return parameters;
|
|
78
76
|
},
|
|
79
|
-
};
|
|
77
|
+
});
|
|
80
78
|
/**
|
|
81
79
|
* Bridge Out - Bridge tokens from GalaChain to Ethereum or Solana
|
|
82
80
|
*/
|
|
83
|
-
exports.bridgeOutPrompt = {
|
|
81
|
+
exports.bridgeOutPrompt = (0, index_js_1.createSimpleOperationPrompt)({
|
|
84
82
|
name: 'galachain-launchpad:bridge-out',
|
|
85
83
|
description: 'Bridge tokens from GalaChain to Ethereum or Solana',
|
|
84
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.BRIDGE_OUT,
|
|
85
|
+
operation: 'Bridge tokens from GalaChain to external chain.',
|
|
86
|
+
actionDescription: 'execute the bridge out transaction',
|
|
87
|
+
displayFormat: 'Display transaction hash and status. Note: Bridge operations may take several minutes.',
|
|
86
88
|
arguments: [
|
|
87
89
|
{
|
|
88
90
|
name: 'tokenSymbol',
|
|
@@ -105,30 +107,28 @@ exports.bridgeOutPrompt = {
|
|
|
105
107
|
required: true,
|
|
106
108
|
},
|
|
107
109
|
],
|
|
108
|
-
|
|
110
|
+
validate: (args) => {
|
|
109
111
|
(0, validation_js_1.validateNumericAmount)(args.amount, 'amount');
|
|
110
112
|
// Note: Address validation skipped - backend validates format based on destinationChain
|
|
111
113
|
// (Ethereum: 0x... format, Solana: base58 format)
|
|
112
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
113
|
-
operation: 'Bridge tokens from GalaChain to external chain.',
|
|
114
|
-
parameters: {
|
|
115
|
-
token: `Token: ${args.tokenSymbol}`,
|
|
116
|
-
amount: `Amount: ${args.amount}`,
|
|
117
|
-
destination: `Destination: ${args.destinationChain}`,
|
|
118
|
-
recipient: `Recipient: ${args.recipientAddress}`,
|
|
119
|
-
},
|
|
120
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.BRIDGE_OUT,
|
|
121
|
-
actionDescription: 'execute the bridge out transaction',
|
|
122
|
-
displayFormat: 'Display transaction hash and status. Note: Bridge operations may take several minutes.',
|
|
123
|
-
}));
|
|
124
114
|
},
|
|
125
|
-
|
|
115
|
+
buildParameters: (args) => ({
|
|
116
|
+
token: `Token: ${args.tokenSymbol}`,
|
|
117
|
+
amount: `Amount: ${args.amount}`,
|
|
118
|
+
destination: `Destination: ${args.destinationChain}`,
|
|
119
|
+
recipient: `Recipient: ${args.recipientAddress}`,
|
|
120
|
+
}),
|
|
121
|
+
});
|
|
126
122
|
/**
|
|
127
123
|
* Bridge In - Bridge tokens from Ethereum or Solana to GalaChain
|
|
128
124
|
*/
|
|
129
|
-
exports.bridgeInPrompt = {
|
|
125
|
+
exports.bridgeInPrompt = (0, index_js_1.createSimpleOperationPrompt)({
|
|
130
126
|
name: 'galachain-launchpad:bridge-in',
|
|
131
127
|
description: 'Bridge tokens from Ethereum or Solana to GalaChain',
|
|
128
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.BRIDGE_IN,
|
|
129
|
+
operation: 'Bridge tokens from external chain to GalaChain.',
|
|
130
|
+
actionDescription: 'execute the bridge in transaction',
|
|
131
|
+
displayFormat: 'Display transaction hash and status. Note: Bridge operations may take several minutes.',
|
|
132
132
|
arguments: [
|
|
133
133
|
{
|
|
134
134
|
name: 'tokenSymbol',
|
|
@@ -146,27 +146,25 @@ exports.bridgeInPrompt = {
|
|
|
146
146
|
required: true,
|
|
147
147
|
},
|
|
148
148
|
],
|
|
149
|
-
|
|
149
|
+
validate: (args) => {
|
|
150
150
|
(0, validation_js_1.validateNumericAmount)(args.amount, 'amount');
|
|
151
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
152
|
-
operation: 'Bridge tokens from external chain to GalaChain.',
|
|
153
|
-
parameters: {
|
|
154
|
-
token: `Token: ${args.tokenSymbol}`,
|
|
155
|
-
amount: `Amount: ${args.amount}`,
|
|
156
|
-
source: `Source: ${args.sourceChain}`,
|
|
157
|
-
},
|
|
158
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.BRIDGE_IN,
|
|
159
|
-
actionDescription: 'execute the bridge in transaction',
|
|
160
|
-
displayFormat: 'Display transaction hash and status. Note: Bridge operations may take several minutes.',
|
|
161
|
-
}));
|
|
162
151
|
},
|
|
163
|
-
|
|
152
|
+
buildParameters: (args) => ({
|
|
153
|
+
token: `Token: ${args.tokenSymbol}`,
|
|
154
|
+
amount: `Amount: ${args.amount}`,
|
|
155
|
+
source: `Source: ${args.sourceChain}`,
|
|
156
|
+
}),
|
|
157
|
+
});
|
|
164
158
|
/**
|
|
165
159
|
* Get Bridge Status - Check the status of a bridge transaction
|
|
166
160
|
*/
|
|
167
|
-
exports.bridgeStatusPrompt = {
|
|
161
|
+
exports.bridgeStatusPrompt = (0, index_js_1.createSimpleOperationPrompt)({
|
|
168
162
|
name: 'galachain-launchpad:bridge-status',
|
|
169
163
|
description: 'Check the status of a bridge transaction',
|
|
164
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.GET_BRIDGE_STATUS,
|
|
165
|
+
operation: 'Check bridge transaction status.',
|
|
166
|
+
actionDescription: 'fetch the bridge status',
|
|
167
|
+
displayFormat: 'Display status code, description, and completion state.',
|
|
170
168
|
arguments: [
|
|
171
169
|
{
|
|
172
170
|
name: 'transactionHash',
|
|
@@ -179,204 +177,70 @@ exports.bridgeStatusPrompt = {
|
|
|
179
177
|
required: false,
|
|
180
178
|
},
|
|
181
179
|
],
|
|
182
|
-
|
|
183
|
-
const
|
|
180
|
+
buildParameters: (args) => {
|
|
181
|
+
const params = {
|
|
184
182
|
txHash: `Transaction: ${args.transactionHash}`,
|
|
185
183
|
};
|
|
186
184
|
if (args.chainHint) {
|
|
187
|
-
|
|
185
|
+
params.chain = `Chain Hint: ${args.chainHint}`;
|
|
188
186
|
}
|
|
189
|
-
return
|
|
190
|
-
operation: 'Check bridge transaction status.',
|
|
191
|
-
parameters,
|
|
192
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.GET_BRIDGE_STATUS,
|
|
193
|
-
actionDescription: 'fetch the bridge status',
|
|
194
|
-
displayFormat: 'Display status code, description, and completion state.',
|
|
195
|
-
}));
|
|
187
|
+
return params;
|
|
196
188
|
},
|
|
197
|
-
};
|
|
189
|
+
});
|
|
198
190
|
// ============================================================================
|
|
199
191
|
// SINGLE TOKEN BALANCE PROMPTS (Fast - 1 RPC call each)
|
|
192
|
+
// Using factory pattern for DRY compliance
|
|
200
193
|
// ============================================================================
|
|
201
194
|
/**
|
|
202
195
|
* Fetch Ethereum Token Balance - Get single ERC-20 token balance
|
|
203
196
|
*/
|
|
204
|
-
exports.ethereumTokenBalancePrompt = {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
name: 'symbol',
|
|
210
|
-
description: 'Token symbol (GALA, GWETH, GUSDC, GUSDT, GWTRX, or GWBTC)',
|
|
211
|
-
required: true,
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
name: 'address',
|
|
215
|
-
description: 'Ethereum address (0x format). Defaults to configured wallet.',
|
|
216
|
-
required: false,
|
|
217
|
-
},
|
|
218
|
-
],
|
|
219
|
-
handler: (args) => {
|
|
220
|
-
const parameters = {
|
|
221
|
-
symbol: `Token: ${args.symbol}`,
|
|
222
|
-
};
|
|
223
|
-
if (args.address) {
|
|
224
|
-
parameters.address = `Address: ${args.address}`;
|
|
225
|
-
}
|
|
226
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
227
|
-
operation: 'Fetch single ERC-20 token balance on Ethereum.',
|
|
228
|
-
parameters,
|
|
229
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_ETHEREUM_WALLET_TOKEN_BALANCE,
|
|
230
|
-
actionDescription: 'fetch single Ethereum token balance',
|
|
231
|
-
displayFormat: 'Display token symbol, balance amount, decimals, and contract address.',
|
|
232
|
-
}));
|
|
233
|
-
},
|
|
234
|
-
};
|
|
197
|
+
exports.ethereumTokenBalancePrompt = (0, index_js_1.createChainBalancePrompt)({
|
|
198
|
+
chain: 'ethereum',
|
|
199
|
+
balanceType: 'token',
|
|
200
|
+
supportedTokens: ['GALA', 'GWETH', 'GUSDC', 'GUSDT', 'GWTRX', 'GWBTC'],
|
|
201
|
+
});
|
|
235
202
|
/**
|
|
236
203
|
* Fetch Ethereum Native Balance - Get native ETH balance only
|
|
237
204
|
*/
|
|
238
|
-
exports.ethereumNativeBalancePrompt = {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
{
|
|
243
|
-
name: 'address',
|
|
244
|
-
description: 'Ethereum address (0x format). Defaults to configured wallet.',
|
|
245
|
-
required: false,
|
|
246
|
-
},
|
|
247
|
-
],
|
|
248
|
-
handler: (args) => {
|
|
249
|
-
const parameters = {};
|
|
250
|
-
if (args.address) {
|
|
251
|
-
parameters.address = `Address: ${args.address}`;
|
|
252
|
-
}
|
|
253
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
254
|
-
operation: 'Fetch native ETH balance on Ethereum.',
|
|
255
|
-
parameters,
|
|
256
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_ETHEREUM_WALLET_NATIVE_BALANCE,
|
|
257
|
-
actionDescription: 'fetch native ETH balance',
|
|
258
|
-
displayFormat: 'Display ETH balance with symbol, amount, and decimals.',
|
|
259
|
-
}));
|
|
260
|
-
},
|
|
261
|
-
};
|
|
205
|
+
exports.ethereumNativeBalancePrompt = (0, index_js_1.createChainBalancePrompt)({
|
|
206
|
+
chain: 'ethereum',
|
|
207
|
+
balanceType: 'native',
|
|
208
|
+
});
|
|
262
209
|
/**
|
|
263
210
|
* Fetch Solana Token Balance - Get single SPL token balance
|
|
264
211
|
*/
|
|
265
|
-
exports.solanaTokenBalancePrompt = {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
name: 'symbol',
|
|
271
|
-
description: 'Token symbol (GALA or GSOL)',
|
|
272
|
-
required: true,
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
name: 'address',
|
|
276
|
-
description: 'Solana address (base58 format). Defaults to configured wallet.',
|
|
277
|
-
required: false,
|
|
278
|
-
},
|
|
279
|
-
],
|
|
280
|
-
handler: (args) => {
|
|
281
|
-
const parameters = {
|
|
282
|
-
symbol: `Token: ${args.symbol}`,
|
|
283
|
-
};
|
|
284
|
-
if (args.address) {
|
|
285
|
-
parameters.address = `Address: ${args.address}`;
|
|
286
|
-
}
|
|
287
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
288
|
-
operation: 'Fetch single SPL token balance on Solana.',
|
|
289
|
-
parameters,
|
|
290
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_SOLANA_WALLET_TOKEN_BALANCE,
|
|
291
|
-
actionDescription: 'fetch single Solana token balance',
|
|
292
|
-
displayFormat: 'Display token symbol, balance amount, decimals, and mint address.',
|
|
293
|
-
}));
|
|
294
|
-
},
|
|
295
|
-
};
|
|
212
|
+
exports.solanaTokenBalancePrompt = (0, index_js_1.createChainBalancePrompt)({
|
|
213
|
+
chain: 'solana',
|
|
214
|
+
balanceType: 'token',
|
|
215
|
+
supportedTokens: ['GALA', 'GSOL'],
|
|
216
|
+
});
|
|
296
217
|
/**
|
|
297
218
|
* Fetch Solana Native Balance - Get native SOL balance only
|
|
298
219
|
*/
|
|
299
|
-
exports.solanaNativeBalancePrompt = {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
{
|
|
304
|
-
name: 'address',
|
|
305
|
-
description: 'Solana address (base58 format). Defaults to configured wallet.',
|
|
306
|
-
required: false,
|
|
307
|
-
},
|
|
308
|
-
],
|
|
309
|
-
handler: (args) => {
|
|
310
|
-
const parameters = {};
|
|
311
|
-
if (args.address) {
|
|
312
|
-
parameters.address = `Address: ${args.address}`;
|
|
313
|
-
}
|
|
314
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
315
|
-
operation: 'Fetch native SOL balance on Solana.',
|
|
316
|
-
parameters,
|
|
317
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_SOLANA_WALLET_NATIVE_BALANCE,
|
|
318
|
-
actionDescription: 'fetch native SOL balance',
|
|
319
|
-
displayFormat: 'Display SOL balance with symbol, amount, and decimals.',
|
|
320
|
-
}));
|
|
321
|
-
},
|
|
322
|
-
};
|
|
220
|
+
exports.solanaNativeBalancePrompt = (0, index_js_1.createChainBalancePrompt)({
|
|
221
|
+
chain: 'solana',
|
|
222
|
+
balanceType: 'native',
|
|
223
|
+
});
|
|
323
224
|
// ============================================================================
|
|
324
225
|
// ALL TOKENS BALANCE PROMPTS (Complete portfolio view - multiple RPC calls)
|
|
226
|
+
// Using factory pattern for DRY compliance
|
|
325
227
|
// ============================================================================
|
|
326
228
|
/**
|
|
327
229
|
* Fetch All Ethereum Wallet Balances - Get all supported token balances on Ethereum
|
|
328
230
|
*/
|
|
329
|
-
exports.ethereumAllBalancesPrompt = {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
name: 'address',
|
|
335
|
-
description: 'Ethereum address (0x format). Defaults to configured wallet.',
|
|
336
|
-
required: false,
|
|
337
|
-
},
|
|
338
|
-
],
|
|
339
|
-
handler: (args) => {
|
|
340
|
-
const parameters = {};
|
|
341
|
-
if (args.address) {
|
|
342
|
-
parameters.address = `Address: ${args.address}`;
|
|
343
|
-
}
|
|
344
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
345
|
-
operation: 'Fetch all supported token balances on Ethereum.',
|
|
346
|
-
parameters,
|
|
347
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_ETHEREUM_WALLET_ALL_BALANCES,
|
|
348
|
-
actionDescription: 'fetch all Ethereum wallet balances',
|
|
349
|
-
displayFormat: 'Display native ETH and all supported ERC-20 token balances with symbols, amounts, and decimals.',
|
|
350
|
-
}));
|
|
351
|
-
},
|
|
352
|
-
};
|
|
231
|
+
exports.ethereumAllBalancesPrompt = (0, index_js_1.createChainBalancePrompt)({
|
|
232
|
+
chain: 'ethereum',
|
|
233
|
+
balanceType: 'all',
|
|
234
|
+
supportedTokens: ['GALA', 'GWETH', 'GUSDC', 'GUSDT', 'GWTRX', 'GWBTC'],
|
|
235
|
+
});
|
|
353
236
|
/**
|
|
354
237
|
* Fetch All Solana Wallet Balances - Get all supported token balances on Solana
|
|
355
238
|
*/
|
|
356
|
-
exports.solanaAllBalancesPrompt = {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
name: 'address',
|
|
362
|
-
description: 'Solana address (base58 format). Defaults to configured wallet.',
|
|
363
|
-
required: false,
|
|
364
|
-
},
|
|
365
|
-
],
|
|
366
|
-
handler: (args) => {
|
|
367
|
-
const parameters = {};
|
|
368
|
-
if (args.address) {
|
|
369
|
-
parameters.address = `Address: ${args.address}`;
|
|
370
|
-
}
|
|
371
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
372
|
-
operation: 'Fetch all supported token balances on Solana.',
|
|
373
|
-
parameters,
|
|
374
|
-
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_SOLANA_WALLET_ALL_BALANCES,
|
|
375
|
-
actionDescription: 'fetch all Solana wallet balances',
|
|
376
|
-
displayFormat: 'Display native SOL and all supported SPL token balances with symbols, amounts, and decimals.',
|
|
377
|
-
}));
|
|
378
|
-
},
|
|
379
|
-
};
|
|
239
|
+
exports.solanaAllBalancesPrompt = (0, index_js_1.createChainBalancePrompt)({
|
|
240
|
+
chain: 'solana',
|
|
241
|
+
balanceType: 'all',
|
|
242
|
+
supportedTokens: ['GALA', 'GSOL'],
|
|
243
|
+
});
|
|
380
244
|
exports.bridgePrompts = [
|
|
381
245
|
exports.supportedBridgeTokensPrompt,
|
|
382
246
|
exports.estimateBridgeFeePrompt,
|