@gala-chain/launchpad-mcp-server 5.0.5-beta.2 → 5.0.5-beta.9
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/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/prompts/advanced-pools.d.ts +1 -7
- package/dist/prompts/advanced-pools.d.ts.map +1 -1
- package/dist/prompts/advanced-pools.js +4 -79
- package/dist/prompts/advanced-pools.js.map +1 -1
- package/dist/prompts/analysis.d.ts +0 -4
- package/dist/prompts/analysis.d.ts.map +1 -1
- package/dist/prompts/analysis.js +2 -67
- package/dist/prompts/analysis.js.map +1 -1
- package/dist/prompts/balances.js.map +1 -1
- package/dist/prompts/bridge.d.ts +0 -8
- package/dist/prompts/bridge.d.ts.map +1 -1
- package/dist/prompts/bridge.js +3 -54
- package/dist/prompts/bridge.js.map +1 -1
- package/dist/prompts/comments.js.map +1 -1
- package/dist/prompts/factories/filtered-list-prompt-factory.js.map +1 -1
- package/dist/prompts/factories/invite-management-factory.js +2 -2
- package/dist/prompts/factories/invite-management-factory.js.map +1 -1
- package/dist/prompts/liquidity-positions.d.ts +0 -12
- package/dist/prompts/liquidity-positions.d.ts.map +1 -1
- package/dist/prompts/liquidity-positions.js +2 -98
- package/dist/prompts/liquidity-positions.js.map +1 -1
- package/dist/prompts/manifest.d.ts +33 -0
- package/dist/prompts/manifest.d.ts.map +1 -0
- package/dist/prompts/manifest.js +2062 -0
- package/dist/prompts/manifest.js.map +1 -0
- package/dist/prompts/overseers.d.ts.map +1 -1
- package/dist/prompts/overseers.js +17 -2
- package/dist/prompts/overseers.js.map +1 -1
- package/dist/prompts/pools.d.ts +0 -20
- package/dist/prompts/pools.d.ts.map +1 -1
- package/dist/prompts/pools.js +4 -162
- package/dist/prompts/pools.js.map +1 -1
- package/dist/prompts/referrals.js.map +1 -1
- package/dist/prompts/trading.d.ts +0 -8
- package/dist/prompts/trading.d.ts.map +1 -1
- package/dist/prompts/trading.js +3 -51
- package/dist/prompts/trading.js.map +1 -1
- package/dist/prompts/utility-tools.js.map +1 -1
- package/dist/prompts/utils/pagination-helpers.d.ts +10 -24
- package/dist/prompts/utils/pagination-helpers.d.ts.map +1 -1
- package/dist/prompts/utils/pagination-helpers.js +11 -32
- package/dist/prompts/utils/pagination-helpers.js.map +1 -1
- package/dist/prompts/utils/workflowTemplates.d.ts.map +1 -1
- package/dist/prompts/utils/workflowTemplates.js +4 -2
- package/dist/prompts/utils/workflowTemplates.js.map +1 -1
- package/dist/prompts/validate-manifest.d.ts +42 -0
- package/dist/prompts/validate-manifest.d.ts.map +1 -0
- package/dist/prompts/validate-manifest.js +157 -0
- package/dist/prompts/validate-manifest.js.map +1 -0
- package/dist/schemas/common-schemas.d.ts +32 -39
- package/dist/schemas/common-schemas.d.ts.map +1 -1
- package/dist/schemas/common-schemas.js +109 -116
- package/dist/schemas/common-schemas.js.map +1 -1
- package/dist/scripts/test-all-prompts.d.ts +1 -17
- package/dist/scripts/test-all-prompts.d.ts.map +1 -1
- package/dist/scripts/test-all-prompts.js +16 -6
- package/dist/scripts/test-all-prompts.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/setup.d.ts +7 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +33 -0
- package/dist/setup.js.map +1 -0
- package/dist/tools/api-keys/index.js +13 -13
- package/dist/tools/api-keys/index.js.map +1 -1
- package/dist/tools/auth/index.js +4 -4
- package/dist/tools/auth/index.js.map +1 -1
- package/dist/tools/balance/helpers/format-balance.js +1 -1
- package/dist/tools/balance/helpers/format-balance.js.map +1 -1
- package/dist/tools/balance/index.js +9 -9
- package/dist/tools/balance/index.js.map +1 -1
- package/dist/tools/ban/index.d.ts.map +1 -1
- package/dist/tools/ban/index.js +23 -18
- package/dist/tools/ban/index.js.map +1 -1
- package/dist/tools/ban/onBanEnforcement.d.ts +9 -0
- package/dist/tools/ban/onBanEnforcement.d.ts.map +1 -0
- package/dist/tools/ban/onBanEnforcement.js +54 -0
- package/dist/tools/ban/onBanEnforcement.js.map +1 -0
- package/dist/tools/bridge/helpers/external-chain-balance-tools.js +4 -4
- package/dist/tools/bridge/helpers/external-chain-balance-tools.js.map +1 -1
- package/dist/tools/bridge/index.d.ts +10 -0
- package/dist/tools/bridge/index.d.ts.map +1 -1
- package/dist/tools/bridge/index.js +47 -39
- package/dist/tools/bridge/index.js.map +1 -1
- package/dist/tools/chat/index.d.ts +3 -2
- package/dist/tools/chat/index.d.ts.map +1 -1
- package/dist/tools/chat/index.js +12 -18
- package/dist/tools/chat/index.js.map +1 -1
- package/dist/tools/chat/pinChatMessage.js +2 -2
- package/dist/tools/chat/pinChatMessage.js.map +1 -1
- package/dist/tools/chat/unpinChatMessage.js +1 -1
- package/dist/tools/chat/unpinChatMessage.js.map +1 -1
- package/dist/tools/chat-messages/index.js +11 -11
- package/dist/tools/chat-messages/index.js.map +1 -1
- package/dist/tools/comments/index.d.ts +1 -1
- package/dist/tools/comments/index.d.ts.map +1 -1
- package/dist/tools/comments/index.js +13 -11
- package/dist/tools/comments/index.js.map +1 -1
- package/dist/tools/comments/onCommentCreated.d.ts +9 -0
- package/dist/tools/comments/onCommentCreated.d.ts.map +1 -0
- package/dist/tools/comments/onCommentCreated.js +50 -0
- package/dist/tools/comments/onCommentCreated.js.map +1 -0
- package/dist/tools/content-flags/index.js +14 -14
- package/dist/tools/content-flags/index.js.map +1 -1
- package/dist/tools/content-reactions/index.js +6 -6
- package/dist/tools/content-reactions/index.js.map +1 -1
- package/dist/tools/creation/index.js +14 -14
- package/dist/tools/creation/index.js.map +1 -1
- package/dist/tools/dex/helpers.d.ts +1 -1
- package/dist/tools/dex/helpers.js +1 -1
- package/dist/tools/dex/index.js +9 -9
- package/dist/tools/dex/index.js.map +1 -1
- package/dist/tools/dex-analytics/index.d.ts.map +1 -1
- package/dist/tools/dex-analytics/index.js +6 -6
- package/dist/tools/dex-analytics/index.js.map +1 -1
- package/dist/tools/dex-liquidity/index.d.ts.map +1 -1
- package/dist/tools/dex-liquidity/index.js +30 -30
- package/dist/tools/dex-liquidity/index.js.map +1 -1
- package/dist/tools/dex-pools/index.d.ts.map +1 -1
- package/dist/tools/dex-pools/index.js +17 -18
- package/dist/tools/dex-pools/index.js.map +1 -1
- package/dist/tools/handler-factories.d.ts +22 -48
- package/dist/tools/handler-factories.d.ts.map +1 -1
- package/dist/tools/handler-factories.js +15 -35
- package/dist/tools/handler-factories.js.map +1 -1
- package/dist/tools/holders/index.d.ts +55 -0
- package/dist/tools/holders/index.d.ts.map +1 -0
- package/dist/tools/holders/index.js +269 -0
- package/dist/tools/holders/index.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +86 -65
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/manifest.d.ts +33 -0
- package/dist/tools/manifest.d.ts.map +1 -0
- package/dist/tools/manifest.js +2945 -0
- package/dist/tools/manifest.js.map +1 -0
- package/dist/tools/messages/createMessage.d.ts +16 -0
- package/dist/tools/messages/createMessage.d.ts.map +1 -0
- package/dist/tools/messages/createMessage.js +79 -0
- package/dist/tools/messages/createMessage.js.map +1 -0
- package/dist/tools/messages/deleteMessage.d.ts +16 -0
- package/dist/tools/messages/deleteMessage.d.ts.map +1 -0
- package/dist/tools/messages/deleteMessage.js +45 -0
- package/dist/tools/messages/deleteMessage.js.map +1 -0
- package/dist/tools/messages/fetchMessages.d.ts +17 -0
- package/dist/tools/messages/fetchMessages.d.ts.map +1 -0
- package/dist/tools/messages/fetchMessages.js +82 -0
- package/dist/tools/messages/fetchMessages.js.map +1 -0
- package/dist/tools/messages/getPinnedMessage.d.ts +15 -0
- package/dist/tools/messages/getPinnedMessage.d.ts.map +1 -0
- package/dist/tools/messages/getPinnedMessage.js +42 -0
- package/dist/tools/messages/getPinnedMessage.js.map +1 -0
- package/dist/tools/messages/index.d.ts +38 -0
- package/dist/tools/messages/index.d.ts.map +1 -0
- package/dist/tools/messages/index.js +56 -0
- package/dist/tools/messages/index.js.map +1 -0
- package/dist/tools/messages/pinMessage.d.ts +15 -0
- package/dist/tools/messages/pinMessage.d.ts.map +1 -0
- package/dist/tools/messages/pinMessage.js +44 -0
- package/dist/tools/messages/pinMessage.js.map +1 -0
- package/dist/tools/messages/unpinMessage.d.ts +15 -0
- package/dist/tools/messages/unpinMessage.d.ts.map +1 -0
- package/dist/tools/messages/unpinMessage.js +43 -0
- package/dist/tools/messages/unpinMessage.js.map +1 -0
- package/dist/tools/messages/updateMessage.d.ts +16 -0
- package/dist/tools/messages/updateMessage.d.ts.map +1 -0
- package/dist/tools/messages/updateMessage.js +55 -0
- package/dist/tools/messages/updateMessage.js.map +1 -0
- package/dist/tools/moderators/getActiveModerators.d.ts +10 -0
- package/dist/tools/moderators/getActiveModerators.d.ts.map +1 -0
- package/dist/tools/moderators/getActiveModerators.js +44 -0
- package/dist/tools/moderators/getActiveModerators.js.map +1 -0
- package/dist/tools/moderators/index.d.ts.map +1 -1
- package/dist/tools/moderators/index.js +25 -17
- package/dist/tools/moderators/index.js.map +1 -1
- package/dist/tools/moderators/onModeratorChanged.d.ts +9 -0
- package/dist/tools/moderators/onModeratorChanged.d.ts.map +1 -0
- package/dist/tools/moderators/onModeratorChanged.js +49 -0
- package/dist/tools/moderators/onModeratorChanged.js.map +1 -0
- package/dist/tools/nft/index.js +21 -21
- package/dist/tools/nft/index.js.map +1 -1
- package/dist/tools/overseers/getOverseerUserSummary.js +2 -2
- package/dist/tools/overseers/getOverseerUserSummary.js.map +1 -1
- package/dist/tools/overseers/index.d.ts.map +1 -1
- package/dist/tools/overseers/index.js +26 -24
- package/dist/tools/overseers/index.js.map +1 -1
- package/dist/tools/overseers/listOverseerUsers.d.ts +1 -0
- package/dist/tools/overseers/listOverseerUsers.d.ts.map +1 -1
- package/dist/tools/overseers/listOverseerUsers.js +16 -11
- package/dist/tools/overseers/listOverseerUsers.js.map +1 -1
- package/dist/tools/pagination-handler-factory.d.ts +30 -28
- package/dist/tools/pagination-handler-factory.d.ts.map +1 -1
- package/dist/tools/pagination-handler-factory.js +42 -36
- package/dist/tools/pagination-handler-factory.js.map +1 -1
- package/dist/tools/pools/checkPoolExists.js +3 -3
- package/dist/tools/pools/checkPoolExists.js.map +1 -1
- package/dist/tools/pools/fetchAllPools.js +5 -5
- package/dist/tools/pools/fetchAllPools.js.map +1 -1
- package/dist/tools/pools/fetchAllPriceHistory.js +3 -3
- package/dist/tools/pools/fetchAllPriceHistory.js.map +1 -1
- package/dist/tools/pools/fetchPoolDetails.js +1 -1
- 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 +10 -11
- package/dist/tools/pools/fetchPools.js.map +1 -1
- package/dist/tools/pools/fetchPriceHistory.js +7 -7
- package/dist/tools/pools/fetchPriceHistory.js.map +1 -1
- package/dist/tools/pools/fetchTokenDetails.js +1 -1
- package/dist/tools/pools/fetchTokenDetails.js.map +1 -1
- package/dist/tools/pools/getPoolRealtimeState.d.ts +10 -0
- package/dist/tools/pools/getPoolRealtimeState.d.ts.map +1 -0
- package/dist/tools/pools/getPoolRealtimeState.js +45 -0
- package/dist/tools/pools/getPoolRealtimeState.js.map +1 -0
- package/dist/tools/pools/index.d.ts.map +1 -1
- package/dist/tools/pools/index.js +37 -27
- package/dist/tools/pools/index.js.map +1 -1
- package/dist/tools/pools/onDexPoolCreation.js +3 -3
- package/dist/tools/pools/onDexPoolCreation.js.map +1 -1
- package/dist/tools/pools/onHolderCountChanged.d.ts +9 -0
- package/dist/tools/pools/onHolderCountChanged.d.ts.map +1 -0
- package/dist/tools/pools/onHolderCountChanged.js +44 -0
- package/dist/tools/pools/onHolderCountChanged.js.map +1 -0
- package/dist/tools/pools/onLaunchpadTokenCreation.js +2 -2
- package/dist/tools/pools/onLaunchpadTokenCreation.js.map +1 -1
- package/dist/tools/pools/onPoolUpdated.d.ts +9 -0
- package/dist/tools/pools/onPoolUpdated.d.ts.map +1 -0
- package/dist/tools/pools/onPoolUpdated.js +44 -0
- package/dist/tools/pools/onPoolUpdated.js.map +1 -0
- package/dist/tools/pools/updateTokenConfig.d.ts +15 -0
- package/dist/tools/pools/updateTokenConfig.d.ts.map +1 -0
- package/dist/tools/pools/updateTokenConfig.js +61 -0
- package/dist/tools/pools/updateTokenConfig.js.map +1 -0
- package/dist/tools/pools/updateTokenSocials.js +9 -9
- package/dist/tools/pools/updateTokenSocials.js.map +1 -1
- package/dist/tools/pools/validateToken.d.ts +8 -0
- package/dist/tools/pools/validateToken.d.ts.map +1 -0
- package/dist/tools/pools/validateToken.js +42 -0
- package/dist/tools/pools/validateToken.js.map +1 -0
- package/dist/tools/recordings/index.d.ts +28 -0
- package/dist/tools/recordings/index.d.ts.map +1 -0
- package/dist/tools/recordings/index.js +113 -0
- package/dist/tools/recordings/index.js.map +1 -0
- package/dist/tools/referrals/index.js +9 -9
- package/dist/tools/referrals/index.js.map +1 -1
- package/dist/tools/restricted-names/getRestrictedNames.d.ts +16 -0
- package/dist/tools/restricted-names/getRestrictedNames.d.ts.map +1 -0
- package/dist/tools/restricted-names/getRestrictedNames.js +47 -0
- package/dist/tools/restricted-names/getRestrictedNames.js.map +1 -0
- package/dist/tools/restricted-names/index.d.ts +22 -0
- package/dist/tools/restricted-names/index.d.ts.map +1 -0
- package/dist/tools/restricted-names/index.js +28 -0
- package/dist/tools/restricted-names/index.js.map +1 -0
- package/dist/tools/restricted-names/updateRestrictedNames.d.ts +16 -0
- package/dist/tools/restricted-names/updateRestrictedNames.d.ts.map +1 -0
- package/dist/tools/restricted-names/updateRestrictedNames.js +56 -0
- package/dist/tools/restricted-names/updateRestrictedNames.js.map +1 -0
- package/dist/tools/simulcasts/index.d.ts +25 -0
- package/dist/tools/simulcasts/index.d.ts.map +1 -0
- package/dist/tools/simulcasts/index.js +143 -0
- package/dist/tools/simulcasts/index.js.map +1 -0
- package/dist/tools/streaming/index.d.ts +4 -37
- package/dist/tools/streaming/index.d.ts.map +1 -1
- package/dist/tools/streaming/index.js +7 -240
- package/dist/tools/streaming/index.js.map +1 -1
- package/dist/tools/streaming/setNextLiveStreamCountdown.js +2 -2
- package/dist/tools/streaming/setNextLiveStreamCountdown.js.map +1 -1
- package/dist/tools/token-ban/index.d.ts.map +1 -1
- package/dist/tools/token-ban/index.js +14 -12
- package/dist/tools/token-ban/index.js.map +1 -1
- package/dist/tools/token-ban/onTokenBanChanged.d.ts +9 -0
- package/dist/tools/token-ban/onTokenBanChanged.d.ts.map +1 -0
- package/dist/tools/token-ban/onTokenBanChanged.js +43 -0
- package/dist/tools/token-ban/onTokenBanChanged.js.map +1 -0
- package/dist/tools/tool-factory.d.ts +6 -6
- package/dist/tools/tool-factory.js +8 -8
- package/dist/tools/tool-factory.js.map +1 -1
- package/dist/tools/trades/getRecentTrades.d.ts +10 -0
- package/dist/tools/trades/getRecentTrades.d.ts.map +1 -0
- package/dist/tools/trades/getRecentTrades.js +57 -0
- package/dist/tools/trades/getRecentTrades.js.map +1 -0
- package/dist/tools/trades/index.d.ts +1 -1
- package/dist/tools/trades/index.d.ts.map +1 -1
- package/dist/tools/trades/index.js +18 -14
- package/dist/tools/trades/index.js.map +1 -1
- package/dist/tools/trades/onTradeExecuted.d.ts +9 -0
- package/dist/tools/trades/onTradeExecuted.d.ts.map +1 -0
- package/dist/tools/trades/onTradeExecuted.js +52 -0
- package/dist/tools/trades/onTradeExecuted.js.map +1 -0
- package/dist/tools/trading/helpers/arg-extractors.d.ts +5 -5
- package/dist/tools/trading/helpers/arg-extractors.d.ts.map +1 -1
- package/dist/tools/trading/helpers/arg-extractors.js +1 -1
- package/dist/tools/trading/helpers/arg-extractors.js.map +1 -1
- package/dist/tools/trading/helpers/trading-schemas.d.ts +1 -1
- package/dist/tools/trading/helpers/trading-schemas.js +13 -13
- package/dist/tools/trading/helpers/trading-schemas.js.map +1 -1
- package/dist/tools/trading/index.d.ts.map +1 -1
- package/dist/tools/trading/index.js +20 -17
- package/dist/tools/trading/index.js.map +1 -1
- package/dist/tools/transfers/index.js +2 -2
- package/dist/tools/transfers/index.js.map +1 -1
- package/dist/tools/utils/clearCache.d.ts.map +1 -1
- package/dist/tools/utils/clearCache.js +1 -1
- package/dist/tools/utils/clearCache.js.map +1 -1
- package/dist/tools/utils/explainSdkUsage.d.ts.map +1 -1
- package/dist/tools/utils/explainSdkUsage.js +171 -585
- package/dist/tools/utils/explainSdkUsage.js.map +1 -1
- package/dist/tools/utils/explainWebSocketEvents.d.ts +10 -0
- package/dist/tools/utils/explainWebSocketEvents.d.ts.map +1 -0
- package/dist/tools/utils/explainWebSocketEvents.js +97 -0
- package/dist/tools/utils/explainWebSocketEvents.js.map +1 -0
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js.map +1 -1
- package/dist/tools/utils/getEventSchema.d.ts +10 -0
- package/dist/tools/utils/getEventSchema.d.ts.map +1 -0
- package/dist/tools/utils/getEventSchema.js +168 -0
- package/dist/tools/utils/getEventSchema.js.map +1 -0
- package/dist/tools/utils/getPlatformStatus.d.ts +10 -0
- package/dist/tools/utils/getPlatformStatus.d.ts.map +1 -0
- package/dist/tools/utils/getPlatformStatus.js +35 -0
- package/dist/tools/utils/getPlatformStatus.js.map +1 -0
- package/dist/tools/utils/getPublicKeyFromPrivateKey.js +1 -1
- package/dist/tools/utils/getPublicKeyFromPrivateKey.js.map +1 -1
- package/dist/tools/utils/index.d.ts.map +1 -1
- package/dist/tools/utils/index.js +6 -0
- package/dist/tools/utils/index.js.map +1 -1
- package/dist/tools/utils/setWallet.js +1 -1
- package/dist/tools/utils/setWallet.js.map +1 -1
- package/dist/tools/utils/switchEnvironment.js +1 -1
- package/dist/tools/utils/switchEnvironment.js.map +1 -1
- package/dist/tools/validate-manifest.d.ts +35 -0
- package/dist/tools/validate-manifest.d.ts.map +1 -0
- package/dist/tools/validate-manifest.js +122 -0
- package/dist/tools/validate-manifest.js.map +1 -0
- package/dist/utils/default-values.d.ts +0 -40
- package/dist/utils/default-values.d.ts.map +1 -1
- package/dist/utils/default-values.js +2 -45
- package/dist/utils/default-values.js.map +1 -1
- package/dist/utils/handler-args.d.ts +8 -0
- package/dist/utils/handler-args.d.ts.map +1 -0
- package/dist/utils/handler-args.js +28 -0
- package/dist/utils/handler-args.js.map +1 -0
- package/package.json +10 -10
package/dist/tools/ban/index.js
CHANGED
|
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
11
11
|
exports.banTools = exports.getActiveUsersTool = exports.getBanStatusTool = exports.listBansTool = exports.removeBanTool = exports.createBanTool = void 0;
|
|
12
12
|
const handler_factories_js_1 = require("../handler-factories.js");
|
|
13
13
|
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
14
|
+
const onBanEnforcement_js_1 = require("./onBanEnforcement.js");
|
|
14
15
|
// =============================================================================
|
|
15
16
|
// Ban Management Tools
|
|
16
17
|
// =============================================================================
|
|
@@ -34,14 +35,14 @@ Can be permanent (omit durationSeconds) or temporary (specify duration).
|
|
|
34
35
|
|
|
35
36
|
RETURNS: { ban: { id, userAddress, tokenName, reason, bannedBy, expiresAt, createdAt, isPermanent }, tokenName }
|
|
36
37
|
|
|
37
|
-
Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner)
|
|
38
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner).`,
|
|
38
39
|
inputSchema: {
|
|
39
40
|
type: 'object',
|
|
40
41
|
properties: {
|
|
41
42
|
tokenName: common_schemas_js_1.TOKEN_NAME_SCHEMA,
|
|
42
43
|
userAddress: {
|
|
43
44
|
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
44
|
-
description: 'Wallet address of user to ban',
|
|
45
|
+
description: 'Wallet address of user to ban.',
|
|
45
46
|
},
|
|
46
47
|
reason: common_schemas_js_1.BAN_REASON_SCHEMA,
|
|
47
48
|
durationSeconds: common_schemas_js_1.BAN_DURATION_SCHEMA,
|
|
@@ -66,14 +67,14 @@ Unbans the user, allowing them to send chat messages and reactions again.
|
|
|
66
67
|
|
|
67
68
|
RETURNS: { removed: true, tokenName, userAddress }
|
|
68
69
|
|
|
69
|
-
Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner)
|
|
70
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner).`,
|
|
70
71
|
inputSchema: {
|
|
71
72
|
type: 'object',
|
|
72
73
|
properties: {
|
|
73
74
|
tokenName: common_schemas_js_1.TOKEN_NAME_SCHEMA,
|
|
74
75
|
userAddress: {
|
|
75
76
|
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
76
|
-
description: 'Wallet address of user to unban',
|
|
77
|
+
description: 'Wallet address of user to unban.',
|
|
77
78
|
},
|
|
78
79
|
},
|
|
79
80
|
required: ['tokenName', 'userAddress'],
|
|
@@ -87,7 +88,7 @@ exports.listBansTool = {
|
|
|
87
88
|
name: 'gala_launchpad_list_bans',
|
|
88
89
|
description: `List all banned users for a token.
|
|
89
90
|
|
|
90
|
-
Returns a paginated list of banned users with their ban details.
|
|
91
|
+
Returns a paginated list of banned users with their ban details using cursor-based pagination.
|
|
91
92
|
Supports filtering by search query, name, or user address.
|
|
92
93
|
|
|
93
94
|
**Filter Behavior:**
|
|
@@ -95,33 +96,36 @@ Supports filtering by search query, name, or user address.
|
|
|
95
96
|
- name: Filter by fullName only
|
|
96
97
|
- userAddress: Filter by userAddress only
|
|
97
98
|
|
|
98
|
-
RETURNS: { bans: [...],
|
|
99
|
+
RETURNS: { bans: [...], pageInfo: { hasNextPage, endCursor, hasPreviousPage, startCursor } }
|
|
99
100
|
|
|
100
|
-
Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner)
|
|
101
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner).`,
|
|
101
102
|
inputSchema: {
|
|
102
103
|
type: 'object',
|
|
103
104
|
properties: {
|
|
104
105
|
tokenName: common_schemas_js_1.TOKEN_NAME_SCHEMA,
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
cursor: common_schemas_js_1.CURSOR_SCHEMA,
|
|
107
|
+
pageSize: (0, common_schemas_js_1.createPageSizeSchema)('pool', 20),
|
|
107
108
|
search: common_schemas_js_1.SEARCH_SCHEMA,
|
|
108
109
|
name: {
|
|
109
110
|
type: 'string',
|
|
110
111
|
maxLength: 100,
|
|
111
|
-
description: 'Filter by fullName only (case-insensitive, partial match)',
|
|
112
|
+
description: 'Filter by fullName only (case-insensitive, partial match).',
|
|
112
113
|
},
|
|
113
114
|
userAddress: {
|
|
114
115
|
type: 'string',
|
|
115
116
|
maxLength: 100,
|
|
116
|
-
description: 'Filter by userAddress only (case-insensitive, partial match)',
|
|
117
|
+
description: 'Filter by userAddress only (case-insensitive, partial match).',
|
|
117
118
|
},
|
|
118
119
|
},
|
|
119
120
|
required: ['tokenName'],
|
|
120
121
|
},
|
|
121
122
|
handler: (0, handler_factories_js_1.createSimpleHandler)('listBans', (args) => ({
|
|
122
123
|
tokenName: args.tokenName,
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
cursor: args.cursor,
|
|
125
|
+
pageSize: args.pageSize,
|
|
126
|
+
search: args.search,
|
|
127
|
+
name: args.name,
|
|
128
|
+
userAddress: args.userAddress,
|
|
125
129
|
})),
|
|
126
130
|
};
|
|
127
131
|
/**
|
|
@@ -137,14 +141,14 @@ Returns whether the user is currently banned and ban details if applicable.
|
|
|
137
141
|
|
|
138
142
|
RETURNS: { banned: boolean, ban?: { ... }, tokenName, userAddress }
|
|
139
143
|
|
|
140
|
-
Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner)
|
|
144
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner).`,
|
|
141
145
|
inputSchema: {
|
|
142
146
|
type: 'object',
|
|
143
147
|
properties: {
|
|
144
148
|
tokenName: common_schemas_js_1.TOKEN_NAME_SCHEMA,
|
|
145
149
|
userAddress: {
|
|
146
150
|
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
147
|
-
description: 'Wallet address of user to check',
|
|
151
|
+
description: 'Wallet address of user to check.',
|
|
148
152
|
},
|
|
149
153
|
},
|
|
150
154
|
required: ['tokenName', 'userAddress'],
|
|
@@ -167,7 +171,7 @@ Useful for moderation - see who's watching/chatting before issuing bans.
|
|
|
167
171
|
|
|
168
172
|
RETURNS: { tokenName, type, users: [...], total, truncated }
|
|
169
173
|
|
|
170
|
-
Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner)
|
|
174
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner).`,
|
|
171
175
|
inputSchema: {
|
|
172
176
|
type: 'object',
|
|
173
177
|
properties: {
|
|
@@ -177,12 +181,12 @@ Authentication: Requires streamAdminApiKey (admin) OR JWT auth (token owner)`,
|
|
|
177
181
|
name: {
|
|
178
182
|
type: 'string',
|
|
179
183
|
maxLength: 100,
|
|
180
|
-
description: 'Filter by fullName only (case-insensitive, partial match)',
|
|
184
|
+
description: 'Filter by fullName only (case-insensitive, partial match).',
|
|
181
185
|
},
|
|
182
186
|
userAddress: {
|
|
183
187
|
type: 'string',
|
|
184
188
|
maxLength: 100,
|
|
185
|
-
description: 'Filter by userAddress only (case-insensitive, partial match)',
|
|
189
|
+
description: 'Filter by userAddress only (case-insensitive, partial match).',
|
|
186
190
|
},
|
|
187
191
|
},
|
|
188
192
|
required: ['tokenName'],
|
|
@@ -202,5 +206,6 @@ exports.banTools = [
|
|
|
202
206
|
exports.listBansTool,
|
|
203
207
|
exports.getBanStatusTool,
|
|
204
208
|
exports.getActiveUsersTool,
|
|
209
|
+
onBanEnforcement_js_1.onBanEnforcementTool,
|
|
205
210
|
];
|
|
206
211
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/ban/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;A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EAAE,iCAAiC;IACvC,WAAW,EAAE;;;;;;;;;;;8EAW+D;IAC5E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE,qCAAiB;YAC5B,IAAI,EAAE,2CAAuB;YAC7B,MAAM,EAAE,iCAAa;YACrB,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAiB;gBACvB,SAAS,EAAE,GAAG;gBACd,WAAW,EAAE,4DAA4D;aAC1E;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,SAAS,EAAE,GAAG;gBACd,WAAW,EAAE,+DAA+D;aAC7E;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,OAAO,EAAE,IAAA,0CAAmB,EAAC,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACxD,SAAS,EAAE,IAAI,CAAC,SAAmB;QACnC,IAAI,EAAE,IAAI,CAAC,IAAmD;QAC9D,GAAG,IAAA,8CAAuB,EAAC,IAAI,CAAC;KACjC,CAAC,CAAC;CACJ,CAAC;AAEF,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEnE,QAAA,QAAQ,GAAc;IACjC,qBAAa;IACb,qBAAa;IACb,oBAAY;IACZ,wBAAgB;IAChB,0BAAkB;IAClB,0CAAoB;CACrB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Watch for Ban Enforcement Events Tool
|
|
3
|
+
*
|
|
4
|
+
* Real-time monitoring of user bans, unbans, and enforcement actions.
|
|
5
|
+
*
|
|
6
|
+
* @since 6.2.0
|
|
7
|
+
*/
|
|
8
|
+
export declare const onBanEnforcementTool: import("../../types/mcp.js").MCPTool;
|
|
9
|
+
//# sourceMappingURL=onBanEnforcement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onBanEnforcement.d.ts","sourceRoot":"","sources":["../../../src/tools/ban/onBanEnforcement.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,oBAAoB,sCAyC/B,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Watch for Ban Enforcement Events Tool
|
|
4
|
+
*
|
|
5
|
+
* Real-time monitoring of user bans, unbans, and enforcement actions.
|
|
6
|
+
*
|
|
7
|
+
* @since 6.2.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.onBanEnforcementTool = void 0;
|
|
11
|
+
const tool_factory_js_1 = require("../tool-factory.js");
|
|
12
|
+
exports.onBanEnforcementTool = (0, tool_factory_js_1.createEventWatcherTool)({
|
|
13
|
+
name: 'gala_launchpad_on_ban_enforcement',
|
|
14
|
+
description: `Watch for user ban enforcement events in real-time.
|
|
15
|
+
|
|
16
|
+
Triggers when users are banned, unbanned, or ban enforcement actions are taken. Includes:
|
|
17
|
+
- USER_BANNED: User restricted from platform due to policy violation
|
|
18
|
+
- USER_UNBANNED: Ban lifted, user access restored
|
|
19
|
+
- BAN_ENFORCEMENT: Enforcement action taken (message deletion, chat suspension, etc.)
|
|
20
|
+
|
|
21
|
+
Returns:
|
|
22
|
+
- banActionsEnforced: Number of ban enforcement events detected
|
|
23
|
+
- events: Array of ban events with userAddress, actionType, reason, tokenName, and timestamp
|
|
24
|
+
|
|
25
|
+
Filter Options:
|
|
26
|
+
- userAddress: Only watch bans for a specific user
|
|
27
|
+
- actionType: Filter by action type ('BANNED', 'UNBANNED', or 'ENFORCEMENT')
|
|
28
|
+
- tokenName: Only watch bans related to a specific token
|
|
29
|
+
- reason: Filter by ban reason or violation type.`,
|
|
30
|
+
sdkMethodName: 'subscribeUserBanned',
|
|
31
|
+
resultKey: 'banActionsEnforced',
|
|
32
|
+
filterSchema: {
|
|
33
|
+
userAddress: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Only watch bans for this user (optional).',
|
|
36
|
+
},
|
|
37
|
+
actionType: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
enum: ['BANNED', 'UNBANNED', 'ENFORCEMENT'],
|
|
40
|
+
description: 'Filter by action type (optional).',
|
|
41
|
+
},
|
|
42
|
+
tokenName: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
minLength: 1,
|
|
45
|
+
maxLength: 50,
|
|
46
|
+
description: 'Filter bans for a specific token (optional).',
|
|
47
|
+
},
|
|
48
|
+
reason: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'Filter by ban reason (optional).',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=onBanEnforcement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onBanEnforcement.js","sourceRoot":"","sources":["../../../src/tools/ban/onBanEnforcement.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,wDAA4D;AAE/C,QAAA,oBAAoB,GAAG,IAAA,wCAAsB,EAAC;IACzD,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE;;;;;;;;;;;;;;;kDAemC;IAChD,aAAa,EAAE,qBAAqB;IACpC,SAAS,EAAE,oBAAoB;IAC/B,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2CAA2C;SACzD;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,aAAa,CAAC;YAC3C,WAAW,EAAE,mCAAmC;SACjD;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,EAAE;YACb,WAAW,EAAE,8CAA8C;SAC5D;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;SAChD;KACF;CACF,CAAC,CAAC"}
|
|
@@ -38,14 +38,14 @@ function createExternalTokenBalanceTool(chain) {
|
|
|
38
38
|
const chainLower = chain.toLowerCase();
|
|
39
39
|
const tokenType = chain === 'Ethereum' ? 'ERC-20' : 'SPL';
|
|
40
40
|
return {
|
|
41
|
-
name: `gala_launchpad_fetch_${chainLower}_wallet_token_balance
|
|
41
|
+
name: `gala_launchpad_fetch_${chainLower}_wallet_token_balance.`,
|
|
42
42
|
description: `Get a single ${tokenType} token balance on ${chain} (${config.tokenSymbols.join(', ')}). Fast: only 1 RPC call.`,
|
|
43
43
|
inputSchema: {
|
|
44
44
|
type: 'object',
|
|
45
45
|
properties: {
|
|
46
46
|
symbol: {
|
|
47
47
|
...common_schemas_js_1.TOKEN_SYMBOL_SCHEMA,
|
|
48
|
-
description: `Token symbol (${config.tokenSymbols.join(', ')})
|
|
48
|
+
description: `Token symbol (${config.tokenSymbols.join(', ')}).`,
|
|
49
49
|
},
|
|
50
50
|
address: {
|
|
51
51
|
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
@@ -74,7 +74,7 @@ function createExternalNativeBalanceTool(chain) {
|
|
|
74
74
|
const config = handler_factories_js_1.EXTERNAL_CHAIN_CONFIG[chain];
|
|
75
75
|
const chainLower = chain.toLowerCase();
|
|
76
76
|
return {
|
|
77
|
-
name: `gala_launchpad_fetch_${chainLower}_wallet_native_balance
|
|
77
|
+
name: `gala_launchpad_fetch_${chainLower}_wallet_native_balance.`,
|
|
78
78
|
description: `Get native ${config.nativeSymbol} balance on ${chain}. Fast: only 1 RPC call.`,
|
|
79
79
|
inputSchema: {
|
|
80
80
|
type: 'object',
|
|
@@ -107,7 +107,7 @@ function createExternalAllBalancesTool(chain) {
|
|
|
107
107
|
const tokenType = chain === 'Ethereum' ? 'ERC-20' : 'SPL';
|
|
108
108
|
const allTokens = [config.nativeSymbol, ...config.tokenSymbols].join(', ');
|
|
109
109
|
return {
|
|
110
|
-
name: `gala_launchpad_fetch_${chainLower}_wallet_all_balances
|
|
110
|
+
name: `gala_launchpad_fetch_${chainLower}_wallet_all_balances.`,
|
|
111
111
|
description: `Get ALL supported token balances on ${chain} for a wallet (${allTokens}). ` +
|
|
112
112
|
`Returns native ${config.nativeSymbol} and all supported ${tokenType} token balances. ` +
|
|
113
113
|
`Note: Makes ${config.allBalancesRpcCount} RPC calls.`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-chain-balance-tools.js","sourceRoot":"","sources":["../../../../src/tools/bridge/helpers/external-chain-balance-tools.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAyBH,wEAwBC;AAeD,0EAkBC;AAeD,sEAuBC;AAgBD,0EAUC;AA/ID,0EAAyF;AACzF,qEAMoC;AAEpC;;;;;;;;;;;;GAYG;AACH,SAAgB,8BAA8B,CAAC,KAAoB;IACjE,MAAM,MAAM,GAAG,4CAAqB,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;IACvC,MAAM,SAAS,GAAG,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;IAE1D,OAAO;QACL,IAAI,EAAE,wBAAwB,UAAU,
|
|
1
|
+
{"version":3,"file":"external-chain-balance-tools.js","sourceRoot":"","sources":["../../../../src/tools/bridge/helpers/external-chain-balance-tools.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAyBH,wEAwBC;AAeD,0EAkBC;AAeD,sEAuBC;AAgBD,0EAUC;AA/ID,0EAAyF;AACzF,qEAMoC;AAEpC;;;;;;;;;;;;GAYG;AACH,SAAgB,8BAA8B,CAAC,KAAoB;IACjE,MAAM,MAAM,GAAG,4CAAqB,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;IACvC,MAAM,SAAS,GAAG,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,K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AAkC,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"}
|
|
@@ -11,6 +11,11 @@ export declare const bridgeOutTool: MCPTool;
|
|
|
11
11
|
export declare const bridgeInTool: MCPTool;
|
|
12
12
|
export declare const getBridgeStatusTool: MCPTool;
|
|
13
13
|
export declare const getSupportedBridgeTokensTool: MCPTool;
|
|
14
|
+
/**
|
|
15
|
+
* Fetch Bridgeable Tokens By Network (paginated)
|
|
16
|
+
*
|
|
17
|
+
* Uses cursor-based pagination for efficient result navigation.
|
|
18
|
+
*/
|
|
14
19
|
export declare const fetchBridgeableTokensByNetworkTool: MCPTool;
|
|
15
20
|
export declare const fetchAllBridgeableTokensByNetworkTool: MCPTool;
|
|
16
21
|
export declare const fetchAllTokensBridgeableToEthereumTool: MCPTool;
|
|
@@ -21,6 +26,11 @@ export declare const isTokenBridgeableToSolanaTool: MCPTool;
|
|
|
21
26
|
export declare const requestSolanaDevnetAirdropTool: MCPTool;
|
|
22
27
|
export declare const getSolanaTransactionStatusTool: MCPTool;
|
|
23
28
|
export declare const getEthereumTransactionStatusTool: MCPTool;
|
|
29
|
+
/**
|
|
30
|
+
* Fetch Wrappable Tokens (paginated, metadata only)
|
|
31
|
+
*
|
|
32
|
+
* Uses cursor-based pagination for efficient result navigation.
|
|
33
|
+
*/
|
|
24
34
|
export declare const fetchWrappableTokensTool: MCPTool;
|
|
25
35
|
export declare const fetchAllWrappableTokensTool: MCPTool;
|
|
26
36
|
export declare const getWrappableTokenTool: MCPTool;
|
|
@@ -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;AAiBlD,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,kCAAkC,EAClC,iCAAiC,EACjC,kCAAkC,EAClC,gCAAgC,EAEjC,MAAM,2CAA2C,CAAC;AAGnD,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,kCAAkC,EAClC,iCAAiC,EACjC,kCAAkC,EAClC,gCAAgC,GACjC,CAAC;AASF,eAAO,MAAM,qBAAqB,EAAE,OAwBnC,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,OA6B3B,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,OAwB1B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,OAqBjC,CAAC;AAUF,eAAO,MAAM,4BAA4B,EAAE,OAgC1C,CAAC;AAoBF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,EAAE,OA6BhD,CAAC;AAGF,eAAO,MAAM,qCAAqC,EAAE,OAiBnD,CAAC;AAGF,eAAO,MAAM,sCAAsC,EAAE,OASpD,CAAC;AAGF,eAAO,MAAM,oCAAoC,EAAE,OASlD,CAAC;AAGF,eAAO,MAAM,8BAA8B,EAAE,OAmB5C,CAAC;AAGF,eAAO,MAAM,+BAA+B,EAAE,OAc7C,CAAC;AAGF,eAAO,MAAM,6BAA6B,EAAE,OAc3C,CAAC;AAGF,eAAO,MAAM,8BAA8B,EAAE,OA+B5C,CAAC;AAGF,eAAO,MAAM,8BAA8B,EAAE,OAuB5C,CAAC;AAGF,eAAO,MAAM,gCAAgC,EAAE,OA0B9C,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,OAwBtC,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,OAWzC,CAAC;AAGF,eAAO,MAAM,qBAAqB,EAAE,OAqBnC,CAAC;AAGF,eAAO,MAAM,sBAAsB,EAAE,OAqBpC,CAAC;AAGF,eAAO,MAAM,oBAAoB,EAAE,OAqBlC,CAAC;AAOF,eAAO,MAAM,aAAa,EAAE,OAY3B,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,OAY7B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,OAuBjC,CAAC;AAGF,eAAO,MAAM,qBAAqB,EAAE,OAuBnC,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,OAkB/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,OAAO,EAgChC,CAAC"}
|
|
@@ -19,7 +19,7 @@ Object.defineProperty(exports, "fetchSolanaWalletAllBalancesTool", { enumerable:
|
|
|
19
19
|
// Alias for backward compatibility within this file
|
|
20
20
|
const TOKEN_ID_SCHEMA = {
|
|
21
21
|
...common_schemas_js_1.FLEXIBLE_TOKEN_ID_SCHEMA,
|
|
22
|
-
description: 'Token identifier in flexible format (string or object)',
|
|
22
|
+
description: 'Token identifier in flexible format (string or object).',
|
|
23
23
|
};
|
|
24
24
|
// 1. Estimate Bridge Fee
|
|
25
25
|
exports.estimateBridgeFeeTool = {
|
|
@@ -31,11 +31,11 @@ exports.estimateBridgeFeeTool = {
|
|
|
31
31
|
tokenId: TOKEN_ID_SCHEMA,
|
|
32
32
|
destinationChain: {
|
|
33
33
|
...common_schemas_js_1.EXTERNAL_NETWORK_SCHEMA,
|
|
34
|
-
description: 'Destination chain (Ethereum or Solana)',
|
|
34
|
+
description: 'Destination chain (Ethereum or Solana).',
|
|
35
35
|
},
|
|
36
36
|
amount: {
|
|
37
37
|
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
38
|
-
description: 'Amount to bridge (optional, for more accurate fee estimation)',
|
|
38
|
+
description: 'Amount to bridge (optional, for more accurate fee estimation).',
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
41
|
required: ['tokenId', 'destinationChain'],
|
|
@@ -56,15 +56,15 @@ exports.bridgeOutTool = {
|
|
|
56
56
|
tokenId: TOKEN_ID_SCHEMA,
|
|
57
57
|
amount: {
|
|
58
58
|
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
59
|
-
description: 'Amount to bridge',
|
|
59
|
+
description: 'Amount to bridge.',
|
|
60
60
|
},
|
|
61
61
|
destinationChain: {
|
|
62
62
|
...common_schemas_js_1.EXTERNAL_NETWORK_SCHEMA,
|
|
63
|
-
description: 'Destination chain (Ethereum or Solana)',
|
|
63
|
+
description: 'Destination chain (Ethereum or Solana).',
|
|
64
64
|
},
|
|
65
65
|
recipientAddress: {
|
|
66
66
|
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
67
|
-
description: 'Recipient address on the destination chain (Ethereum: 0x... format, Solana: base58 format)',
|
|
67
|
+
description: 'Recipient address on the destination chain (Ethereum: 0x... format, Solana: base58 format).',
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
70
|
required: ['tokenId', 'amount', 'destinationChain', 'recipientAddress'],
|
|
@@ -86,11 +86,11 @@ exports.bridgeInTool = {
|
|
|
86
86
|
tokenId: TOKEN_ID_SCHEMA,
|
|
87
87
|
amount: {
|
|
88
88
|
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
89
|
-
description: 'Amount to bridge',
|
|
89
|
+
description: 'Amount to bridge.',
|
|
90
90
|
},
|
|
91
91
|
sourceChain: {
|
|
92
92
|
...common_schemas_js_1.EXTERNAL_NETWORK_SCHEMA,
|
|
93
|
-
description: 'Source chain (Ethereum or Solana)',
|
|
93
|
+
description: 'Source chain (Ethereum or Solana).',
|
|
94
94
|
},
|
|
95
95
|
},
|
|
96
96
|
required: ['tokenId', 'amount', 'sourceChain'],
|
|
@@ -110,11 +110,11 @@ exports.getBridgeStatusTool = {
|
|
|
110
110
|
properties: {
|
|
111
111
|
transactionHash: {
|
|
112
112
|
type: 'string',
|
|
113
|
-
description: 'Transaction hash from bridgeOut or bridgeIn operation',
|
|
113
|
+
description: 'Transaction hash from bridgeOut or bridgeIn operation.',
|
|
114
114
|
},
|
|
115
115
|
chainHint: {
|
|
116
116
|
...common_schemas_js_1.EXTERNAL_NETWORK_SCHEMA,
|
|
117
|
-
description: 'Optional chain hint for faster lookup (Ethereum or Solana)',
|
|
117
|
+
description: 'Optional chain hint for faster lookup (Ethereum or Solana).',
|
|
118
118
|
},
|
|
119
119
|
},
|
|
120
120
|
required: ['transactionHash'],
|
|
@@ -133,7 +133,7 @@ exports.getSupportedBridgeTokensTool = {
|
|
|
133
133
|
properties: {
|
|
134
134
|
chain: {
|
|
135
135
|
...common_schemas_js_1.EXTERNAL_NETWORK_SCHEMA,
|
|
136
|
-
description: 'Optional chain filter (Ethereum or Solana)',
|
|
136
|
+
description: 'Optional chain filter (Ethereum or Solana).',
|
|
137
137
|
},
|
|
138
138
|
},
|
|
139
139
|
},
|
|
@@ -164,9 +164,13 @@ exports.getSupportedBridgeTokensTool = {
|
|
|
164
164
|
const BRIDGEABLE_NETWORK_SCHEMA = {
|
|
165
165
|
type: 'string',
|
|
166
166
|
enum: ['ETHEREUM', 'SOLANA'],
|
|
167
|
-
description: 'Target network for bridgeable token lookup (uppercase)',
|
|
167
|
+
description: 'Target network for bridgeable token lookup (uppercase).',
|
|
168
168
|
};
|
|
169
|
-
|
|
169
|
+
/**
|
|
170
|
+
* Fetch Bridgeable Tokens By Network (paginated)
|
|
171
|
+
*
|
|
172
|
+
* Uses cursor-based pagination for efficient result navigation.
|
|
173
|
+
*/
|
|
170
174
|
exports.fetchBridgeableTokensByNetworkTool = {
|
|
171
175
|
name: 'gala_launchpad_fetch_bridgeable_tokens_by_network',
|
|
172
176
|
description: 'Fetch bridgeable tokens for a specific network with pagination. Queries DEX API to discover which tokens can be bridged. Results are cached permanently.',
|
|
@@ -175,25 +179,25 @@ exports.fetchBridgeableTokensByNetworkTool = {
|
|
|
175
179
|
properties: {
|
|
176
180
|
network: {
|
|
177
181
|
...BRIDGEABLE_NETWORK_SCHEMA,
|
|
178
|
-
description: "Target network ('ETHEREUM' or 'SOLANA')",
|
|
182
|
+
description: "Target network ('ETHEREUM' or 'SOLANA').",
|
|
179
183
|
},
|
|
180
|
-
|
|
181
|
-
type: '
|
|
182
|
-
|
|
183
|
-
description: 'Pagination offset (default: 0)',
|
|
184
|
+
cursor: {
|
|
185
|
+
type: 'string',
|
|
186
|
+
description: 'Cursor from previous response for pagination (omit for first page).',
|
|
184
187
|
},
|
|
185
|
-
|
|
188
|
+
pageSize: {
|
|
186
189
|
type: 'number',
|
|
187
190
|
minimum: 1,
|
|
188
191
|
maximum: 1000,
|
|
189
|
-
description: 'Results per page (max: 1000, default: 1000)',
|
|
192
|
+
description: 'Results per page (max: 1000, default: 1000).',
|
|
190
193
|
},
|
|
191
194
|
},
|
|
192
195
|
required: ['network'],
|
|
193
196
|
},
|
|
194
197
|
handler: (0, handler_factories_js_1.createSimpleHandler)('fetchBridgeableTokensByNetwork', (args) => ({
|
|
195
198
|
network: args.network,
|
|
196
|
-
|
|
199
|
+
cursor: args.cursor,
|
|
200
|
+
pageSize: args.pageSize ?? 1000,
|
|
197
201
|
})),
|
|
198
202
|
};
|
|
199
203
|
// 13. Fetch All Bridgeable Tokens By Network (auto-pagination)
|
|
@@ -205,7 +209,7 @@ exports.fetchAllBridgeableTokensByNetworkTool = {
|
|
|
205
209
|
properties: {
|
|
206
210
|
network: {
|
|
207
211
|
...BRIDGEABLE_NETWORK_SCHEMA,
|
|
208
|
-
description: "Target network ('ETHEREUM' or 'SOLANA')",
|
|
212
|
+
description: "Target network ('ETHEREUM' or 'SOLANA').",
|
|
209
213
|
},
|
|
210
214
|
},
|
|
211
215
|
required: ['network'],
|
|
@@ -242,7 +246,7 @@ exports.isTokenBridgeableToNetworkTool = {
|
|
|
242
246
|
tokenId: TOKEN_ID_SCHEMA,
|
|
243
247
|
network: {
|
|
244
248
|
...BRIDGEABLE_NETWORK_SCHEMA,
|
|
245
|
-
description: "Target network ('ETHEREUM' or 'SOLANA')",
|
|
249
|
+
description: "Target network ('ETHEREUM' or 'SOLANA').",
|
|
246
250
|
},
|
|
247
251
|
},
|
|
248
252
|
required: ['tokenId', 'network'],
|
|
@@ -288,14 +292,14 @@ exports.requestSolanaDevnetAirdropTool = {
|
|
|
288
292
|
properties: {
|
|
289
293
|
amount: {
|
|
290
294
|
type: 'number',
|
|
291
|
-
description: 'Amount of SOL to request (default: 1, range: 0.001-2)',
|
|
295
|
+
description: 'Amount of SOL to request (default: 1, range: 0.001-2).',
|
|
292
296
|
minimum: 0.001,
|
|
293
297
|
maximum: 2,
|
|
294
298
|
default: 1,
|
|
295
299
|
},
|
|
296
300
|
address: {
|
|
297
301
|
type: 'string',
|
|
298
|
-
description: 'Optional Solana address to receive airdrop (defaults to configured wallet)',
|
|
302
|
+
description: 'Optional Solana address to receive airdrop (defaults to configured wallet).',
|
|
299
303
|
},
|
|
300
304
|
},
|
|
301
305
|
},
|
|
@@ -303,7 +307,7 @@ exports.requestSolanaDevnetAirdropTool = {
|
|
|
303
307
|
signature,
|
|
304
308
|
amount: args.amount ?? 1,
|
|
305
309
|
recipient: args.address ?? 'configured wallet',
|
|
306
|
-
message: `Successfully airdropped ${args.amount ?? 1} SOL
|
|
310
|
+
message: `Successfully airdropped ${args.amount ?? 1} SOL.`,
|
|
307
311
|
})),
|
|
308
312
|
};
|
|
309
313
|
// 20. Get Solana Transaction Status
|
|
@@ -354,7 +358,11 @@ exports.getEthereumTransactionStatusTool = {
|
|
|
354
358
|
// ============================================================================
|
|
355
359
|
// WRAPPABLE TOKEN TOOLS (GalaChain-internal wrap/unwrap operations)
|
|
356
360
|
// ============================================================================
|
|
357
|
-
|
|
361
|
+
/**
|
|
362
|
+
* Fetch Wrappable Tokens (paginated, metadata only)
|
|
363
|
+
*
|
|
364
|
+
* Uses cursor-based pagination for efficient result navigation.
|
|
365
|
+
*/
|
|
358
366
|
exports.fetchWrappableTokensTool = {
|
|
359
367
|
name: 'gala_launchpad_fetch_wrappable_tokens',
|
|
360
368
|
description: 'Fetch wrappable tokens with pagination. Wrappable tokens are token pairs that can be ' +
|
|
@@ -362,21 +370,21 @@ exports.fetchWrappableTokensTool = {
|
|
|
362
370
|
inputSchema: {
|
|
363
371
|
type: 'object',
|
|
364
372
|
properties: {
|
|
365
|
-
|
|
366
|
-
type: '
|
|
367
|
-
|
|
368
|
-
description: 'Pagination offset (default: 0)',
|
|
373
|
+
cursor: {
|
|
374
|
+
type: 'string',
|
|
375
|
+
description: 'Cursor from previous response for pagination (omit for first page).',
|
|
369
376
|
},
|
|
370
|
-
|
|
377
|
+
pageSize: {
|
|
371
378
|
type: 'number',
|
|
372
379
|
minimum: 1,
|
|
373
380
|
maximum: 1000,
|
|
374
|
-
description: 'Results per page (max: 1000, default: 1000)',
|
|
381
|
+
description: 'Results per page (max: 1000, default: 1000).',
|
|
375
382
|
},
|
|
376
383
|
},
|
|
377
384
|
},
|
|
378
385
|
handler: (0, handler_factories_js_1.createSimpleHandler)('fetchWrappableTokens', (args) => ({
|
|
379
|
-
|
|
386
|
+
cursor: args.cursor,
|
|
387
|
+
pageSize: args.pageSize ?? 1000,
|
|
380
388
|
})),
|
|
381
389
|
};
|
|
382
390
|
// 23. Fetch All Wrappable Tokens (auto-pagination, metadata only)
|
|
@@ -487,11 +495,11 @@ exports.estimateWrapFeeTool = {
|
|
|
487
495
|
properties: {
|
|
488
496
|
tokenId: {
|
|
489
497
|
...TOKEN_ID_SCHEMA,
|
|
490
|
-
description: 'Token to wrap (e.g., "MUSIC" or "$MUSIC|Unit|none|none")',
|
|
498
|
+
description: 'Token to wrap (e.g., "MUSIC" or "$MUSIC|Unit|none|none").',
|
|
491
499
|
},
|
|
492
500
|
amount: {
|
|
493
501
|
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
494
|
-
description: 'Amount to wrap for fee estimation',
|
|
502
|
+
description: 'Amount to wrap for fee estimation.',
|
|
495
503
|
},
|
|
496
504
|
},
|
|
497
505
|
required: ['tokenId', 'amount'],
|
|
@@ -511,11 +519,11 @@ exports.estimateUnwrapFeeTool = {
|
|
|
511
519
|
properties: {
|
|
512
520
|
tokenId: {
|
|
513
521
|
...TOKEN_ID_SCHEMA,
|
|
514
|
-
description: 'Token to unwrap (e.g., "GMUSIC" or "$GMUSIC|Unit|none|none")',
|
|
522
|
+
description: 'Token to unwrap (e.g., "GMUSIC" or "$GMUSIC|Unit|none|none").',
|
|
515
523
|
},
|
|
516
524
|
amount: {
|
|
517
525
|
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
518
|
-
description: 'Amount to unwrap for fee estimation',
|
|
526
|
+
description: 'Amount to unwrap for fee estimation.',
|
|
519
527
|
},
|
|
520
528
|
},
|
|
521
529
|
required: ['tokenId', 'amount'],
|
|
@@ -535,7 +543,7 @@ exports.getWrapStatusTool = {
|
|
|
535
543
|
properties: {
|
|
536
544
|
transactionId: {
|
|
537
545
|
type: 'string',
|
|
538
|
-
description: 'Transaction ID from wrapToken or unwrapToken operation',
|
|
546
|
+
description: 'Transaction ID from wrapToken or unwrapToken operation.',
|
|
539
547
|
},
|
|
540
548
|
},
|
|
541
549
|
required: ['transactionId'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/bridge/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,uEAMyC;AACzC,kEAMiC;AAGjC,mDAAmD;AACnD,+FAQmD;AAIjD,oHAXA,qEAAmC,OAWA;AACnC,qHAXA,sEAAoC,OAWA;AACpC,mHAXA,oEAAkC,OAWA;AAClC,kHAXA,mEAAiC,OAWA;AACjC,mHAXA,oEAAkC,OAWA;AAClC,iHAXA,kEAAgC,OAWA;AAGlC,oDAAoD;AACpD,MAAM,eAAe,GAAG;IACtB,GAAG,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D;IACxD,GAAG,2DAAyB;IAC5B,wDAAwD;IACxD,0CAAkC;IAClC,6CAAqC;IACrC,8CAAsC;IACtC,4CAAoC;IACpC,sCAA8B;IAC9B,uCAA+B;IAC/B,qCAA6B;IAC7B,+BAA+B;IAC/B,sCAA8B;IAC9B,sCAA8B;IAC9B,wCAAgC;IAChC,6DAA6D;IAC7D,gCAAwB;IACxB,mCAA2B;IAC3B,6BAAqB;IACrB,8BAAsB;IACtB,4BAAoB;IACpB,0DAA0D;IAC1D,qBAAa;IACb,uBAAe;IACf,2BAAmB;IACnB,6BAAqB;IACrB,yBAAiB;CAClB,CAAC"}
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* MCP tools for stream chat status control and WebSocket operations.
|
|
5
5
|
*
|
|
6
|
-
* NOTE: REST chat message operations (
|
|
7
|
-
*
|
|
6
|
+
* NOTE: REST chat message operations (CRUD + pinning) are now in
|
|
7
|
+
* messages/index.ts, which uses the unified /v1/messages API.
|
|
8
8
|
*
|
|
9
9
|
* Refactored to use handler factories for DRY consolidation.
|
|
10
10
|
*
|
|
11
11
|
* @since 5.1.0
|
|
12
|
+
* @since 7.0.0 - Removed pin operations (moved to messages/)
|
|
12
13
|
*/
|
|
13
14
|
import type { MCPTool } from '../../types/mcp.js';
|
|
14
15
|
/**
|