@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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bridgeable Token Tool Factory
|
|
3
|
+
*
|
|
4
|
+
* Creates network-specific MCP tools for bridgeable token discovery.
|
|
5
|
+
* Consolidates DRY violations across 4 similar tools into factory functions.
|
|
6
|
+
*
|
|
7
|
+
* Tool Categories Created:
|
|
8
|
+
* - fetchAllTokensBridgeable: Auto-paginated list of all bridgeable tokens for a network
|
|
9
|
+
* - isTokenBridgeable: Check if specific token is bridgeable to a network
|
|
10
|
+
*
|
|
11
|
+
* @since 6.11.0
|
|
12
|
+
*/
|
|
13
|
+
import type { MCPTool } from '../../../types/mcp.js';
|
|
14
|
+
/**
|
|
15
|
+
* Supported external blockchain networks for bridgeable token operations.
|
|
16
|
+
*/
|
|
17
|
+
export type BridgeableNetwork = 'Ethereum' | 'Solana';
|
|
18
|
+
/**
|
|
19
|
+
* Configuration for network-specific bridgeable tool generation.
|
|
20
|
+
*/
|
|
21
|
+
export interface BridgeableNetworkConfig {
|
|
22
|
+
/** Full network name for display */
|
|
23
|
+
networkName: BridgeableNetwork;
|
|
24
|
+
/** Lowercase network identifier for tool names */
|
|
25
|
+
networkLower: string;
|
|
26
|
+
/** Address type returned (contract address vs mint address) */
|
|
27
|
+
addressType: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Pre-configured network settings for Ethereum and Solana bridgeable tools.
|
|
31
|
+
* Single source of truth for network-specific configuration.
|
|
32
|
+
*/
|
|
33
|
+
export declare const BRIDGEABLE_NETWORK_CONFIG: Record<BridgeableNetwork, BridgeableNetworkConfig>;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a fetchAllTokensBridgeable tool for a specific network.
|
|
36
|
+
*
|
|
37
|
+
* Generates MCP tool definition for fetching all bridgeable tokens with
|
|
38
|
+
* auto-pagination and caching. No arguments required.
|
|
39
|
+
*
|
|
40
|
+
* @param network - Target network ('Ethereum' or 'Solana')
|
|
41
|
+
* @returns MCPTool definition for fetching all bridgeable tokens
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* const ethTool = createFetchAllBridgeableTool('Ethereum');
|
|
45
|
+
* // Creates: gala_launchpad_fetch_all_tokens_bridgeable_to_ethereum
|
|
46
|
+
*/
|
|
47
|
+
export declare function createFetchAllBridgeableTool(network: BridgeableNetwork): MCPTool;
|
|
48
|
+
/**
|
|
49
|
+
* Creates an isTokenBridgeable tool for a specific network.
|
|
50
|
+
*
|
|
51
|
+
* Generates MCP tool definition for checking if a token is bridgeable
|
|
52
|
+
* to a specific network. Returns bridgeability status and address if available.
|
|
53
|
+
*
|
|
54
|
+
* @param network - Target network ('Ethereum' or 'Solana')
|
|
55
|
+
* @returns MCPTool definition for checking token bridgeability
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* const solTool = createIsTokenBridgeableTool('Solana');
|
|
59
|
+
* // Creates: gala_launchpad_is_token_bridgeable_to_solana
|
|
60
|
+
*/
|
|
61
|
+
export declare function createIsTokenBridgeableTool(network: BridgeableNetwork): MCPTool;
|
|
62
|
+
/**
|
|
63
|
+
* Creates both bridgeable token tools for a network.
|
|
64
|
+
*
|
|
65
|
+
* Convenience function that generates the complete set of bridgeable tools:
|
|
66
|
+
* - fetchAll: Auto-paginated list of all bridgeable tokens
|
|
67
|
+
* - isTokenBridgeable: Check single token bridgeability
|
|
68
|
+
*
|
|
69
|
+
* @param network - Target network ('Ethereum' or 'Solana')
|
|
70
|
+
* @returns Object containing both tool definitions
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* const { fetchAll, isTokenBridgeable } = createBridgeableTokenTools('Ethereum');
|
|
74
|
+
*/
|
|
75
|
+
export declare function createBridgeableTokenTools(network: BridgeableNetwork): {
|
|
76
|
+
fetchAll: MCPTool;
|
|
77
|
+
isTokenBridgeable: MCPTool;
|
|
78
|
+
};
|
|
79
|
+
export declare const fetchAllTokensBridgeableToEthereumTool: MCPTool;
|
|
80
|
+
export declare const fetchAllTokensBridgeableToSolanaTool: MCPTool;
|
|
81
|
+
export declare const isTokenBridgeableToEthereumTool: MCPTool;
|
|
82
|
+
export declare const isTokenBridgeableToSolanaTool: MCPTool;
|
|
83
|
+
/**
|
|
84
|
+
* All network-specific bridgeable token tools (4 total: 2 Ethereum + 2 Solana)
|
|
85
|
+
*/
|
|
86
|
+
export declare const bridgeableTokenTools: MCPTool[];
|
|
87
|
+
//# sourceMappingURL=bridgeable-token-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridgeable-token-tools.d.ts","sourceRoot":"","sources":["../../../../src/tools/bridge/helpers/bridgeable-token-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAKrD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,oCAAoC;IACpC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,kDAAkD;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,iBAAiB,EAAE,uBAAuB,CAWxF,CAAC;AAQF;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAchF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAiB/E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,iBAAiB,GAAG;IACtE,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAKA;AAGD,eAAO,MAAM,sCAAsC,SAA2C,CAAC;AAC/F,eAAO,MAAM,oCAAoC,SAAyC,CAAC;AAE3F,eAAO,MAAM,+BAA+B,SAA0C,CAAC;AACvF,eAAO,MAAM,6BAA6B,SAAwC,CAAC;AAEnF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,EAKzC,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Bridgeable Token Tool Factory
|
|
4
|
+
*
|
|
5
|
+
* Creates network-specific MCP tools for bridgeable token discovery.
|
|
6
|
+
* Consolidates DRY violations across 4 similar tools into factory functions.
|
|
7
|
+
*
|
|
8
|
+
* Tool Categories Created:
|
|
9
|
+
* - fetchAllTokensBridgeable: Auto-paginated list of all bridgeable tokens for a network
|
|
10
|
+
* - isTokenBridgeable: Check if specific token is bridgeable to a network
|
|
11
|
+
*
|
|
12
|
+
* @since 6.11.0
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.bridgeableTokenTools = exports.isTokenBridgeableToSolanaTool = exports.isTokenBridgeableToEthereumTool = exports.fetchAllTokensBridgeableToSolanaTool = exports.fetchAllTokensBridgeableToEthereumTool = exports.BRIDGEABLE_NETWORK_CONFIG = void 0;
|
|
16
|
+
exports.createFetchAllBridgeableTool = createFetchAllBridgeableTool;
|
|
17
|
+
exports.createIsTokenBridgeableTool = createIsTokenBridgeableTool;
|
|
18
|
+
exports.createBridgeableTokenTools = createBridgeableTokenTools;
|
|
19
|
+
const common_schemas_js_1 = require("../../../schemas/common-schemas.js");
|
|
20
|
+
const handler_factories_js_1 = require("../../handler-factories.js");
|
|
21
|
+
/**
|
|
22
|
+
* Pre-configured network settings for Ethereum and Solana bridgeable tools.
|
|
23
|
+
* Single source of truth for network-specific configuration.
|
|
24
|
+
*/
|
|
25
|
+
exports.BRIDGEABLE_NETWORK_CONFIG = {
|
|
26
|
+
Ethereum: {
|
|
27
|
+
networkName: 'Ethereum',
|
|
28
|
+
networkLower: 'ethereum',
|
|
29
|
+
addressType: 'contract address',
|
|
30
|
+
},
|
|
31
|
+
Solana: {
|
|
32
|
+
networkName: 'Solana',
|
|
33
|
+
networkLower: 'solana',
|
|
34
|
+
addressType: 'mint address',
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
// Alias for TOKEN_ID_SCHEMA within bridge context
|
|
38
|
+
const TOKEN_ID_SCHEMA = {
|
|
39
|
+
...common_schemas_js_1.FLEXIBLE_TOKEN_ID_SCHEMA,
|
|
40
|
+
description: 'Token identifier in flexible format (string or object)',
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Creates a fetchAllTokensBridgeable tool for a specific network.
|
|
44
|
+
*
|
|
45
|
+
* Generates MCP tool definition for fetching all bridgeable tokens with
|
|
46
|
+
* auto-pagination and caching. No arguments required.
|
|
47
|
+
*
|
|
48
|
+
* @param network - Target network ('Ethereum' or 'Solana')
|
|
49
|
+
* @returns MCPTool definition for fetching all bridgeable tokens
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* const ethTool = createFetchAllBridgeableTool('Ethereum');
|
|
53
|
+
* // Creates: gala_launchpad_fetch_all_tokens_bridgeable_to_ethereum
|
|
54
|
+
*/
|
|
55
|
+
function createFetchAllBridgeableTool(network) {
|
|
56
|
+
const config = exports.BRIDGEABLE_NETWORK_CONFIG[network];
|
|
57
|
+
const sdkMethod = `fetchAllTokensBridgeableTo${network}`;
|
|
58
|
+
return {
|
|
59
|
+
name: `gala_launchpad_fetch_all_tokens_bridgeable_to_${config.networkLower}`,
|
|
60
|
+
description: `Fetch all tokens that can be bridged to ${config.networkName}. Convenience method with auto-pagination and caching.`,
|
|
61
|
+
inputSchema: {
|
|
62
|
+
type: 'object',
|
|
63
|
+
properties: {},
|
|
64
|
+
},
|
|
65
|
+
handler: (0, handler_factories_js_1.createConvenienceFetcher)(sdkMethod),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Creates an isTokenBridgeable tool for a specific network.
|
|
70
|
+
*
|
|
71
|
+
* Generates MCP tool definition for checking if a token is bridgeable
|
|
72
|
+
* to a specific network. Returns bridgeability status and address if available.
|
|
73
|
+
*
|
|
74
|
+
* @param network - Target network ('Ethereum' or 'Solana')
|
|
75
|
+
* @returns MCPTool definition for checking token bridgeability
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* const solTool = createIsTokenBridgeableTool('Solana');
|
|
79
|
+
* // Creates: gala_launchpad_is_token_bridgeable_to_solana
|
|
80
|
+
*/
|
|
81
|
+
function createIsTokenBridgeableTool(network) {
|
|
82
|
+
const config = exports.BRIDGEABLE_NETWORK_CONFIG[network];
|
|
83
|
+
const sdkMethod = `isTokenBridgeableTo${network}`;
|
|
84
|
+
return {
|
|
85
|
+
name: `gala_launchpad_is_token_bridgeable_to_${config.networkLower}`,
|
|
86
|
+
description: `Check if a token is bridgeable to ${config.networkName}. Returns bridgeability status and ${config.addressType} if bridgeable.`,
|
|
87
|
+
inputSchema: {
|
|
88
|
+
type: 'object',
|
|
89
|
+
properties: {
|
|
90
|
+
tokenId: TOKEN_ID_SCHEMA,
|
|
91
|
+
},
|
|
92
|
+
required: ['tokenId'],
|
|
93
|
+
},
|
|
94
|
+
handler: (0, handler_factories_js_1.createConvenienceFetcher)(sdkMethod, (args) => args.tokenId),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Creates both bridgeable token tools for a network.
|
|
99
|
+
*
|
|
100
|
+
* Convenience function that generates the complete set of bridgeable tools:
|
|
101
|
+
* - fetchAll: Auto-paginated list of all bridgeable tokens
|
|
102
|
+
* - isTokenBridgeable: Check single token bridgeability
|
|
103
|
+
*
|
|
104
|
+
* @param network - Target network ('Ethereum' or 'Solana')
|
|
105
|
+
* @returns Object containing both tool definitions
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* const { fetchAll, isTokenBridgeable } = createBridgeableTokenTools('Ethereum');
|
|
109
|
+
*/
|
|
110
|
+
function createBridgeableTokenTools(network) {
|
|
111
|
+
return {
|
|
112
|
+
fetchAll: createFetchAllBridgeableTool(network),
|
|
113
|
+
isTokenBridgeable: createIsTokenBridgeableTool(network),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
// Pre-created tools for direct export (maintains backward compatibility)
|
|
117
|
+
exports.fetchAllTokensBridgeableToEthereumTool = createFetchAllBridgeableTool('Ethereum');
|
|
118
|
+
exports.fetchAllTokensBridgeableToSolanaTool = createFetchAllBridgeableTool('Solana');
|
|
119
|
+
exports.isTokenBridgeableToEthereumTool = createIsTokenBridgeableTool('Ethereum');
|
|
120
|
+
exports.isTokenBridgeableToSolanaTool = createIsTokenBridgeableTool('Solana');
|
|
121
|
+
/**
|
|
122
|
+
* All network-specific bridgeable token tools (4 total: 2 Ethereum + 2 Solana)
|
|
123
|
+
*/
|
|
124
|
+
exports.bridgeableTokenTools = [
|
|
125
|
+
exports.fetchAllTokensBridgeableToEthereumTool,
|
|
126
|
+
exports.fetchAllTokensBridgeableToSolanaTool,
|
|
127
|
+
exports.isTokenBridgeableToEthereumTool,
|
|
128
|
+
exports.isTokenBridgeableToSolanaTool,
|
|
129
|
+
];
|
|
130
|
+
//# sourceMappingURL=bridgeable-token-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridgeable-token-tools.js","sourceRoot":"","sources":["../../../../src/tools/bridge/helpers/bridgeable-token-tools.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AA4DH,oEAcC;AAeD,kEAiBC;AAeD,gEAQC;AA7HD,0EAA8E;AAC9E,qEAAsE;AAmBtE;;;GAGG;AACU,QAAA,yBAAyB,GAAuD;IAC3F,QAAQ,EAAE;QACR,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,UAAU;QACxB,WAAW,EAAE,kBAAkB;KAChC;IACD,MAAM,EAAE;QACN,WAAW,EAAE,QAAQ;QACrB,YAAY,EAAE,QAAQ;QACtB,WAAW,EAAE,cAAc;KAC5B;CACF,CAAC;AAEF,kDAAkD;AAClD,MAAM,eAAe,GAAG;IACtB,GAAG,4CAAwB;IAC3B,WAAW,EAAE,wDAAwD;CACtE,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,SAAgB,4BAA4B,CAAC,OAA0B;IACrE,MAAM,MAAM,GAAG,iCAAyB,CAA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A+B,GAAG,2BAA2B,CAAC,UAAU,CAAC,CAAC;AAC1E,QAAA,6BAA6B,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;AAEnF;;GAEG;AACU,QAAA,oBAAoB,GAAc;IAC7C,8CAAsC;IACtC,4CAAoC;IACpC,uCAA+B;IAC/B,qCAA6B;CAC9B,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External Chain Balance Tool Factory
|
|
3
|
+
*
|
|
4
|
+
* Creates balance-related MCP tools for external chains (Ethereum, Solana).
|
|
5
|
+
* Consolidates DRY violations across 6 similar balance tools into a single factory.
|
|
6
|
+
*
|
|
7
|
+
* Tool Categories Created:
|
|
8
|
+
* - Token Balance: Single ERC-20/SPL token balance (requires symbol)
|
|
9
|
+
* - Native Balance: Native currency balance (ETH/SOL)
|
|
10
|
+
* - All Balances: Complete portfolio (native + all supported tokens)
|
|
11
|
+
*
|
|
12
|
+
* @since 6.5.0
|
|
13
|
+
*/
|
|
14
|
+
import type { MCPTool } from '../../../types/mcp.js';
|
|
15
|
+
import { type ExternalChain } from '../../handler-factories.js';
|
|
16
|
+
/**
|
|
17
|
+
* Creates a token balance tool for an external chain.
|
|
18
|
+
*
|
|
19
|
+
* Generates MCP tool definition for fetching single ERC-20/SPL token balance.
|
|
20
|
+
* Uses shared chain configuration for consistent descriptions.
|
|
21
|
+
*
|
|
22
|
+
* @param chain - Target chain ('Ethereum' or 'Solana')
|
|
23
|
+
* @returns MCPTool definition for token balance
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const ethTokenBalanceTool = createExternalTokenBalanceTool('Ethereum');
|
|
27
|
+
* // Creates: gala_launchpad_fetch_ethereum_wallet_token_balance
|
|
28
|
+
*/
|
|
29
|
+
export declare function createExternalTokenBalanceTool(chain: ExternalChain): MCPTool;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a native balance tool for an external chain.
|
|
32
|
+
*
|
|
33
|
+
* Generates MCP tool definition for fetching native currency balance (ETH/SOL).
|
|
34
|
+
* Uses shared chain configuration for consistent descriptions.
|
|
35
|
+
*
|
|
36
|
+
* @param chain - Target chain ('Ethereum' or 'Solana')
|
|
37
|
+
* @returns MCPTool definition for native balance
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* const solNativeBalanceTool = createExternalNativeBalanceTool('Solana');
|
|
41
|
+
* // Creates: gala_launchpad_fetch_solana_wallet_native_balance
|
|
42
|
+
*/
|
|
43
|
+
export declare function createExternalNativeBalanceTool(chain: ExternalChain): MCPTool;
|
|
44
|
+
/**
|
|
45
|
+
* Creates an all-balances tool for an external chain.
|
|
46
|
+
*
|
|
47
|
+
* Generates MCP tool definition for fetching complete token portfolio.
|
|
48
|
+
* Returns native currency + all supported token balances.
|
|
49
|
+
*
|
|
50
|
+
* @param chain - Target chain ('Ethereum' or 'Solana')
|
|
51
|
+
* @returns MCPTool definition for all balances
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const ethAllBalancesTool = createExternalAllBalancesTool('Ethereum');
|
|
55
|
+
* // Creates: gala_launchpad_fetch_ethereum_wallet_all_balances
|
|
56
|
+
*/
|
|
57
|
+
export declare function createExternalAllBalancesTool(chain: ExternalChain): MCPTool;
|
|
58
|
+
/**
|
|
59
|
+
* Creates all three balance tools for an external chain.
|
|
60
|
+
*
|
|
61
|
+
* Convenience function that generates the complete set of balance tools:
|
|
62
|
+
* - tokenBalance: Single token lookup
|
|
63
|
+
* - nativeBalance: Native currency lookup
|
|
64
|
+
* - allBalances: Complete portfolio
|
|
65
|
+
*
|
|
66
|
+
* @param chain - Target chain ('Ethereum' or 'Solana')
|
|
67
|
+
* @returns Object containing all three tool definitions
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* const { tokenBalance, nativeBalance, allBalances } = createExternalChainBalanceTools('Ethereum');
|
|
71
|
+
*/
|
|
72
|
+
export declare function createExternalChainBalanceTools(chain: ExternalChain): {
|
|
73
|
+
tokenBalance: MCPTool;
|
|
74
|
+
nativeBalance: MCPTool;
|
|
75
|
+
allBalances: MCPTool;
|
|
76
|
+
};
|
|
77
|
+
export declare const fetchEthereumWalletTokenBalanceTool: MCPTool;
|
|
78
|
+
export declare const fetchEthereumWalletNativeBalanceTool: MCPTool;
|
|
79
|
+
export declare const fetchEthereumWalletAllBalancesTool: MCPTool;
|
|
80
|
+
export declare const fetchSolanaWalletTokenBalanceTool: MCPTool;
|
|
81
|
+
export declare const fetchSolanaWalletNativeBalanceTool: MCPTool;
|
|
82
|
+
export declare const fetchSolanaWalletAllBalancesTool: MCPTool;
|
|
83
|
+
/**
|
|
84
|
+
* All external chain balance tools (6 total: 3 Ethereum + 3 Solana)
|
|
85
|
+
*/
|
|
86
|
+
export declare const externalChainBalanceTools: MCPTool[];
|
|
87
|
+
//# sourceMappingURL=external-chain-balance-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-chain-balance-tools.d.ts","sourceRoot":"","sources":["../../../../src/tools/bridge/helpers/external-chain-balance-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;GAYG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAwB5E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAkB7E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAuB3E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,aAAa,GAAG;IACrE,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;CACtB,CAMA;AAGD,eAAO,MAAM,mCAAmC,SAA6C,CAAC;AAC9F,eAAO,MAAM,oCAAoC,SAA8C,CAAC;AAChG,eAAO,MAAM,kCAAkC,SAA4C,CAAC;AAE5F,eAAO,MAAM,iCAAiC,SAA2C,CAAC;AAC1F,eAAO,MAAM,kCAAkC,SAA4C,CAAC;AAC5F,eAAO,MAAM,gCAAgC,SAA0C,CAAC;AAExF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,OAAO,EAS9C,CAAC"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* External Chain Balance Tool Factory
|
|
4
|
+
*
|
|
5
|
+
* Creates balance-related MCP tools for external chains (Ethereum, Solana).
|
|
6
|
+
* Consolidates DRY violations across 6 similar balance tools into a single factory.
|
|
7
|
+
*
|
|
8
|
+
* Tool Categories Created:
|
|
9
|
+
* - Token Balance: Single ERC-20/SPL token balance (requires symbol)
|
|
10
|
+
* - Native Balance: Native currency balance (ETH/SOL)
|
|
11
|
+
* - All Balances: Complete portfolio (native + all supported tokens)
|
|
12
|
+
*
|
|
13
|
+
* @since 6.5.0
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.externalChainBalanceTools = exports.fetchSolanaWalletAllBalancesTool = exports.fetchSolanaWalletNativeBalanceTool = exports.fetchSolanaWalletTokenBalanceTool = exports.fetchEthereumWalletAllBalancesTool = exports.fetchEthereumWalletNativeBalanceTool = exports.fetchEthereumWalletTokenBalanceTool = void 0;
|
|
17
|
+
exports.createExternalTokenBalanceTool = createExternalTokenBalanceTool;
|
|
18
|
+
exports.createExternalNativeBalanceTool = createExternalNativeBalanceTool;
|
|
19
|
+
exports.createExternalAllBalancesTool = createExternalAllBalancesTool;
|
|
20
|
+
exports.createExternalChainBalanceTools = createExternalChainBalanceTools;
|
|
21
|
+
const common_schemas_js_1 = require("../../../schemas/common-schemas.js");
|
|
22
|
+
const handler_factories_js_1 = require("../../handler-factories.js");
|
|
23
|
+
/**
|
|
24
|
+
* Creates a token balance tool for an external chain.
|
|
25
|
+
*
|
|
26
|
+
* Generates MCP tool definition for fetching single ERC-20/SPL token balance.
|
|
27
|
+
* Uses shared chain configuration for consistent descriptions.
|
|
28
|
+
*
|
|
29
|
+
* @param chain - Target chain ('Ethereum' or 'Solana')
|
|
30
|
+
* @returns MCPTool definition for token balance
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* const ethTokenBalanceTool = createExternalTokenBalanceTool('Ethereum');
|
|
34
|
+
* // Creates: gala_launchpad_fetch_ethereum_wallet_token_balance
|
|
35
|
+
*/
|
|
36
|
+
function createExternalTokenBalanceTool(chain) {
|
|
37
|
+
const config = handler_factories_js_1.EXTERNAL_CHAIN_CONFIG[chain];
|
|
38
|
+
const chainLower = chain.toLowerCase();
|
|
39
|
+
const tokenType = chain === 'Ethereum' ? 'ERC-20' : 'SPL';
|
|
40
|
+
return {
|
|
41
|
+
name: `gala_launchpad_fetch_${chainLower}_wallet_token_balance`,
|
|
42
|
+
description: `Get a single ${tokenType} token balance on ${chain} (${config.tokenSymbols.join(', ')}). Fast: only 1 RPC call.`,
|
|
43
|
+
inputSchema: {
|
|
44
|
+
type: 'object',
|
|
45
|
+
properties: {
|
|
46
|
+
symbol: {
|
|
47
|
+
...common_schemas_js_1.TOKEN_SYMBOL_SCHEMA,
|
|
48
|
+
description: `Token symbol (${config.tokenSymbols.join(', ')})`,
|
|
49
|
+
},
|
|
50
|
+
address: {
|
|
51
|
+
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
52
|
+
description: `${chain} address (${config.addressFormat}). Defaults to configured wallet address.`,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
required: ['symbol'],
|
|
56
|
+
},
|
|
57
|
+
handler: (0, handler_factories_js_1.createExternalTokenBalanceHandler)(chain),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Creates a native balance tool for an external chain.
|
|
62
|
+
*
|
|
63
|
+
* Generates MCP tool definition for fetching native currency balance (ETH/SOL).
|
|
64
|
+
* Uses shared chain configuration for consistent descriptions.
|
|
65
|
+
*
|
|
66
|
+
* @param chain - Target chain ('Ethereum' or 'Solana')
|
|
67
|
+
* @returns MCPTool definition for native balance
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* const solNativeBalanceTool = createExternalNativeBalanceTool('Solana');
|
|
71
|
+
* // Creates: gala_launchpad_fetch_solana_wallet_native_balance
|
|
72
|
+
*/
|
|
73
|
+
function createExternalNativeBalanceTool(chain) {
|
|
74
|
+
const config = handler_factories_js_1.EXTERNAL_CHAIN_CONFIG[chain];
|
|
75
|
+
const chainLower = chain.toLowerCase();
|
|
76
|
+
return {
|
|
77
|
+
name: `gala_launchpad_fetch_${chainLower}_wallet_native_balance`,
|
|
78
|
+
description: `Get native ${config.nativeSymbol} balance on ${chain}. Fast: only 1 RPC call.`,
|
|
79
|
+
inputSchema: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: {
|
|
82
|
+
address: {
|
|
83
|
+
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
84
|
+
description: `${chain} address (${config.addressFormat}). Defaults to configured wallet address.`,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
handler: (0, handler_factories_js_1.createExternalNativeBalanceHandler)(chain),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Creates an all-balances tool for an external chain.
|
|
93
|
+
*
|
|
94
|
+
* Generates MCP tool definition for fetching complete token portfolio.
|
|
95
|
+
* Returns native currency + all supported token balances.
|
|
96
|
+
*
|
|
97
|
+
* @param chain - Target chain ('Ethereum' or 'Solana')
|
|
98
|
+
* @returns MCPTool definition for all balances
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* const ethAllBalancesTool = createExternalAllBalancesTool('Ethereum');
|
|
102
|
+
* // Creates: gala_launchpad_fetch_ethereum_wallet_all_balances
|
|
103
|
+
*/
|
|
104
|
+
function createExternalAllBalancesTool(chain) {
|
|
105
|
+
const config = handler_factories_js_1.EXTERNAL_CHAIN_CONFIG[chain];
|
|
106
|
+
const chainLower = chain.toLowerCase();
|
|
107
|
+
const tokenType = chain === 'Ethereum' ? 'ERC-20' : 'SPL';
|
|
108
|
+
const allTokens = [config.nativeSymbol, ...config.tokenSymbols].join(', ');
|
|
109
|
+
return {
|
|
110
|
+
name: `gala_launchpad_fetch_${chainLower}_wallet_all_balances`,
|
|
111
|
+
description: `Get ALL supported token balances on ${chain} for a wallet (${allTokens}). ` +
|
|
112
|
+
`Returns native ${config.nativeSymbol} and all supported ${tokenType} token balances. ` +
|
|
113
|
+
`Note: Makes ${config.allBalancesRpcCount} RPC calls.`,
|
|
114
|
+
inputSchema: {
|
|
115
|
+
type: 'object',
|
|
116
|
+
properties: {
|
|
117
|
+
address: {
|
|
118
|
+
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
119
|
+
description: `${chain} address (${config.addressFormat}). Defaults to configured wallet address.`,
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
handler: (0, handler_factories_js_1.createExternalAllBalancesHandler)(chain),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Creates all three balance tools for an external chain.
|
|
128
|
+
*
|
|
129
|
+
* Convenience function that generates the complete set of balance tools:
|
|
130
|
+
* - tokenBalance: Single token lookup
|
|
131
|
+
* - nativeBalance: Native currency lookup
|
|
132
|
+
* - allBalances: Complete portfolio
|
|
133
|
+
*
|
|
134
|
+
* @param chain - Target chain ('Ethereum' or 'Solana')
|
|
135
|
+
* @returns Object containing all three tool definitions
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* const { tokenBalance, nativeBalance, allBalances } = createExternalChainBalanceTools('Ethereum');
|
|
139
|
+
*/
|
|
140
|
+
function createExternalChainBalanceTools(chain) {
|
|
141
|
+
return {
|
|
142
|
+
tokenBalance: createExternalTokenBalanceTool(chain),
|
|
143
|
+
nativeBalance: createExternalNativeBalanceTool(chain),
|
|
144
|
+
allBalances: createExternalAllBalancesTool(chain),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
// Pre-created tools for direct export (maintains backward compatibility)
|
|
148
|
+
exports.fetchEthereumWalletTokenBalanceTool = createExternalTokenBalanceTool('Ethereum');
|
|
149
|
+
exports.fetchEthereumWalletNativeBalanceTool = createExternalNativeBalanceTool('Ethereum');
|
|
150
|
+
exports.fetchEthereumWalletAllBalancesTool = createExternalAllBalancesTool('Ethereum');
|
|
151
|
+
exports.fetchSolanaWalletTokenBalanceTool = createExternalTokenBalanceTool('Solana');
|
|
152
|
+
exports.fetchSolanaWalletNativeBalanceTool = createExternalNativeBalanceTool('Solana');
|
|
153
|
+
exports.fetchSolanaWalletAllBalancesTool = createExternalAllBalancesTool('Solana');
|
|
154
|
+
/**
|
|
155
|
+
* All external chain balance tools (6 total: 3 Ethereum + 3 Solana)
|
|
156
|
+
*/
|
|
157
|
+
exports.externalChainBalanceTools = [
|
|
158
|
+
// Ethereum balance tools
|
|
159
|
+
exports.fetchEthereumWalletTokenBalanceTool,
|
|
160
|
+
exports.fetchEthereumWalletNativeBalanceTool,
|
|
161
|
+
exports.fetchEthereumWalletAllBalancesTool,
|
|
162
|
+
// Solana balance tools
|
|
163
|
+
exports.fetchSolanaWalletTokenBalanceTool,
|
|
164
|
+
exports.fetchSolanaWalletNativeBalanceTool,
|
|
165
|
+
exports.fetchSolanaWalletAllBalancesTool,
|
|
166
|
+
];
|
|
167
|
+
//# sourceMappingURL=external-chain-balance-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-chain-balance-tools.js","sourceRoot":"","sources":["../../../../src/tools/bridge/helpers/external-chain-balance-tools.ts"],"names":[],"mappings":";AAAA;;;;;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E,+BAA+B,CAAC,KAAK,CAAC;QACrD,WAAW,EAAE,6BAA6B,CAAC,KAAK,CAAC;KAClD,CAAC;AACJ,CAAC;AAED,yEAAyE;AAC5D,QAAA,mCAAmC,GAAG,8BAA8B,CAAC,UAAU,CAAC,CAAC;AACjF,QAAA,oCAAoC,GAAG,+BAA+B,CAAC,UAAU,CAAC,CAAC;AACnF,QAAA,kCAAkC,GAAG,6BAA6B,CAAC,UAAU,CAAC,CAAC;AAE/E,QAAA,iCAAiC,GAAG,8BAA8B,CAAC,QAAQ,CAAC,CAAC;AAC7E,QAAA,kCAAkC,GAAG,+BAA+B,CAAC,QAAQ,CAAC,CAAC;AAC/E,QAAA,gCAAgC,GAAG,6BAA6B,CAAC,QAAQ,CAAC,CAAC;AAExF;;GAEG;AACU,QAAA,yBAAyB,GAAc;IAClD,yBAAyB;IACzB,2CAAmC;IACnC,4CAAoC;IACpC,0CAAkC;IAClC,uBAAuB;IACvB,yCAAiC;IACjC,0CAAkC;IAClC,wCAAgC;CACjC,CAAC"}
|
|
@@ -4,17 +4,13 @@
|
|
|
4
4
|
* Cross-chain bridging tools for GalaChain ↔ Ethereum and GalaChain ↔ Solana.
|
|
5
5
|
*/
|
|
6
6
|
import type { MCPTool } from '../../types/mcp.js';
|
|
7
|
+
import { fetchEthereumWalletTokenBalanceTool, fetchEthereumWalletNativeBalanceTool, fetchEthereumWalletAllBalancesTool, fetchSolanaWalletTokenBalanceTool, fetchSolanaWalletNativeBalanceTool, fetchSolanaWalletAllBalancesTool } from './helpers/external-chain-balance-tools.js';
|
|
8
|
+
export { fetchEthereumWalletTokenBalanceTool, fetchEthereumWalletNativeBalanceTool, fetchEthereumWalletAllBalancesTool, fetchSolanaWalletTokenBalanceTool, fetchSolanaWalletNativeBalanceTool, fetchSolanaWalletAllBalancesTool, };
|
|
7
9
|
export declare const estimateBridgeFeeTool: MCPTool;
|
|
8
10
|
export declare const bridgeOutTool: MCPTool;
|
|
9
11
|
export declare const bridgeInTool: MCPTool;
|
|
10
12
|
export declare const getBridgeStatusTool: MCPTool;
|
|
11
13
|
export declare const getSupportedBridgeTokensTool: MCPTool;
|
|
12
|
-
export declare const fetchEthereumWalletTokenBalanceTool: MCPTool;
|
|
13
|
-
export declare const fetchEthereumWalletNativeBalanceTool: MCPTool;
|
|
14
|
-
export declare const fetchSolanaWalletTokenBalanceTool: MCPTool;
|
|
15
|
-
export declare const fetchSolanaWalletNativeBalanceTool: MCPTool;
|
|
16
|
-
export declare const fetchEthereumWalletAllBalancesTool: MCPTool;
|
|
17
|
-
export declare const fetchSolanaWalletAllBalancesTool: MCPTool;
|
|
18
14
|
export declare const fetchBridgeableTokensByNetworkTool: MCPTool;
|
|
19
15
|
export declare const fetchAllBridgeableTokensByNetworkTool: MCPTool;
|
|
20
16
|
export declare const fetchAllTokensBridgeableToEthereumTool: MCPTool;
|
|
@@ -36,7 +32,7 @@ export declare const estimateWrapFeeTool: MCPTool;
|
|
|
36
32
|
export declare const estimateUnwrapFeeTool: MCPTool;
|
|
37
33
|
export declare const getWrapStatusTool: MCPTool;
|
|
38
34
|
/**
|
|
39
|
-
* All bridge tools (
|
|
35
|
+
* All bridge tools (31 tools)
|
|
40
36
|
*/
|
|
41
37
|
export declare const bridgeTools: MCPTool[];
|
|
42
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/bridge/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/bridge/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAkBlD,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,kCAAkC,EAClC,iCAAiC,EACjC,kCAAk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