@gala-chain/launchpad-mcp-server 5.0.4-beta.2 → 5.0.4
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.d.ts.map +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/generated/version.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/prompts/analysis.js +12 -12
- package/dist/prompts/analysis.js.map +1 -1
- package/dist/prompts/api-keys.js +6 -6
- package/dist/prompts/api-keys.js.map +1 -1
- package/dist/prompts/balances.js +5 -5
- package/dist/prompts/balances.js.map +1 -1
- package/dist/prompts/bans.js +2 -2
- package/dist/prompts/bans.js.map +1 -1
- package/dist/prompts/bridge.js +4 -4
- package/dist/prompts/bridge.js.map +1 -1
- package/dist/prompts/burns.d.ts.map +1 -1
- package/dist/prompts/burns.js +6 -2
- package/dist/prompts/burns.js.map +1 -1
- package/dist/prompts/chat-messages.js +2 -2
- package/dist/prompts/chat-messages.js.map +1 -1
- package/dist/prompts/chat.js +1 -1
- package/dist/prompts/chat.js.map +1 -1
- package/dist/prompts/content-flags.js +9 -9
- package/dist/prompts/content-flags.js.map +1 -1
- package/dist/prompts/create-token.js +5 -5
- package/dist/prompts/create-token.js.map +1 -1
- package/dist/prompts/creation-utils.js +1 -1
- package/dist/prompts/creation-utils.js.map +1 -1
- package/dist/prompts/dex-leaderboard.js +1 -1
- package/dist/prompts/dex-leaderboard.js.map +1 -1
- package/dist/prompts/dex-trading.js +3 -3
- package/dist/prompts/dex-trading.js.map +1 -1
- package/dist/prompts/discover-tokens.js +5 -5
- package/dist/prompts/discover-tokens.js.map +1 -1
- package/dist/prompts/event-subscriptions.js +4 -4
- package/dist/prompts/event-subscriptions.js.map +1 -1
- package/dist/prompts/factories/balance-prompt-factory.js +2 -2
- package/dist/prompts/factories/balance-prompt-factory.js.map +1 -1
- package/dist/prompts/factories/ban-management-factory.js +14 -14
- package/dist/prompts/factories/ban-management-factory.js.map +1 -1
- package/dist/prompts/factories/calculation-prompt-factory.d.ts.map +1 -1
- package/dist/prompts/factories/calculation-prompt-factory.js +13 -8
- package/dist/prompts/factories/calculation-prompt-factory.js.map +1 -1
- package/dist/prompts/factories/discovery-prompt-factory.js +12 -12
- package/dist/prompts/factories/discovery-prompt-factory.js.map +1 -1
- package/dist/prompts/factories/event-subscription-factory.js +8 -8
- package/dist/prompts/factories/event-subscription-factory.js.map +1 -1
- package/dist/prompts/factories/filtered-list-prompt-factory.js +8 -8
- package/dist/prompts/factories/filtered-list-prompt-factory.js.map +1 -1
- package/dist/prompts/factories/invite-management-factory.d.ts.map +1 -1
- package/dist/prompts/factories/invite-management-factory.js +9 -8
- package/dist/prompts/factories/invite-management-factory.js.map +1 -1
- package/dist/prompts/factories/simple-operation-factory.d.ts.map +1 -1
- package/dist/prompts/factories/simple-operation-factory.js +17 -11
- package/dist/prompts/factories/simple-operation-factory.js.map +1 -1
- package/dist/prompts/liquidity-positions.js +4 -4
- package/dist/prompts/locks.js +4 -4
- package/dist/prompts/locks.js.map +1 -1
- package/dist/prompts/nft.js +16 -16
- package/dist/prompts/nft.js.map +1 -1
- package/dist/prompts/overseers.js +3 -3
- package/dist/prompts/overseers.js.map +1 -1
- package/dist/prompts/pools.js +8 -8
- package/dist/prompts/pools.js.map +1 -1
- package/dist/prompts/portfolio.js +6 -6
- package/dist/prompts/portfolio.js.map +1 -1
- package/dist/prompts/prompt-factories.d.ts.map +1 -1
- package/dist/prompts/prompt-factories.js +13 -10
- package/dist/prompts/prompt-factories.js.map +1 -1
- package/dist/prompts/referrals.js +12 -12
- package/dist/prompts/referrals.js.map +1 -1
- package/dist/prompts/streaming.js +3 -3
- package/dist/prompts/streaming.js.map +1 -1
- package/dist/prompts/tier1-bridge-operations.js +16 -16
- package/dist/prompts/tier1-bridge-operations.js.map +1 -1
- package/dist/prompts/tier1-liquidity-management.js +9 -9
- package/dist/prompts/tier1-liquidity-management.js.map +1 -1
- package/dist/prompts/tier1-pool-discovery.js +5 -5
- package/dist/prompts/tier1-pool-discovery.js.map +1 -1
- package/dist/prompts/tier1-price-history.js +6 -6
- package/dist/prompts/tier1-price-history.js.map +1 -1
- package/dist/prompts/tier1-token-analysis.js +4 -4
- package/dist/prompts/tier1-token-analysis.js.map +1 -1
- package/dist/prompts/tier2-account-setup.js +2 -2
- package/dist/prompts/tier2-account-setup.js.map +1 -1
- package/dist/prompts/tier2-advanced-liquidity.js +3 -3
- package/dist/prompts/tier2-asset-management.js +3 -3
- package/dist/prompts/tier2-asset-management.js.map +1 -1
- package/dist/prompts/tier2-token-lifecycle.js +2 -2
- package/dist/prompts/tier2-token-lifecycle.js.map +1 -1
- package/dist/prompts/tier3-community-engagement.js +2 -2
- package/dist/prompts/tier3-community-engagement.js.map +1 -1
- package/dist/prompts/tier3-moderation-workflows.js +1 -1
- package/dist/prompts/tier3-moderation-workflows.js.map +1 -1
- package/dist/prompts/trades.js +3 -3
- package/dist/prompts/trades.js.map +1 -1
- package/dist/prompts/trading-calculations.js +3 -3
- package/dist/prompts/trading-calculations.js.map +1 -1
- package/dist/prompts/trading.js +12 -12
- package/dist/prompts/trading.js.map +1 -1
- package/dist/prompts/utility-tools.js +2 -2
- package/dist/prompts/utility-tools.js.map +1 -1
- package/dist/prompts/utility.js +2 -2
- package/dist/prompts/utility.js.map +1 -1
- package/dist/prompts/utils/textTemplates.js +1 -1
- package/dist/prompts/utils/textTemplates.js.map +1 -1
- package/dist/prompts/utils/workflowTemplates.js +17 -17
- package/dist/prompts/utils/workflowTemplates.js.map +1 -1
- package/dist/prompts/wallet.js +1 -1
- package/dist/prompts/wallet.js.map +1 -1
- package/dist/schemas/common-schemas.d.ts +26 -4
- package/dist/schemas/common-schemas.d.ts.map +1 -1
- package/dist/schemas/common-schemas.js +25 -11
- package/dist/schemas/common-schemas.js.map +1 -1
- package/dist/scripts/test-all-prompts.d.ts +22 -0
- package/dist/scripts/test-all-prompts.d.ts.map +1 -0
- package/dist/scripts/test-all-prompts.js +205 -0
- package/dist/scripts/test-all-prompts.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +43 -36
- package/dist/server.js.map +1 -1
- package/dist/tools/api-keys/index.js +3 -3
- package/dist/tools/api-keys/index.js.map +1 -1
- package/dist/tools/balance/index.js +2 -2
- package/dist/tools/balance/index.js.map +1 -1
- package/dist/tools/ban/index.js +1 -1
- package/dist/tools/ban/index.js.map +1 -1
- package/dist/tools/bridge/index.js +1 -1
- package/dist/tools/bridge/index.js.map +1 -1
- package/dist/tools/chat-messages/index.js +1 -1
- package/dist/tools/chat-messages/index.js.map +1 -1
- package/dist/tools/comments/index.js +1 -1
- package/dist/tools/comments/index.js.map +1 -1
- package/dist/tools/content-flags/index.js +2 -2
- package/dist/tools/content-flags/index.js.map +1 -1
- package/dist/tools/creation/index.d.ts.map +1 -1
- package/dist/tools/creation/index.js +16 -8
- package/dist/tools/creation/index.js.map +1 -1
- package/dist/tools/dex/helpers.d.ts +14 -14
- package/dist/tools/dex/helpers.d.ts.map +1 -1
- package/dist/tools/dex/helpers.js +54 -33
- package/dist/tools/dex/helpers.js.map +1 -1
- package/dist/tools/dex/index.js +1 -1
- package/dist/tools/dex-liquidity/index.d.ts.map +1 -1
- package/dist/tools/dex-liquidity/index.js +30 -19
- package/dist/tools/dex-liquidity/index.js.map +1 -1
- package/dist/tools/dex-pools/index.js +3 -3
- package/dist/tools/dex-pools/index.js.map +1 -1
- package/dist/tools/handler-factories.d.ts +1 -1
- package/dist/tools/handler-factories.js +16 -16
- package/dist/tools/handler-factories.js.map +1 -1
- package/dist/tools/moderators/index.js +2 -2
- package/dist/tools/moderators/index.js.map +1 -1
- package/dist/tools/nft/index.d.ts.map +1 -1
- package/dist/tools/nft/index.js.map +1 -1
- package/dist/tools/overseers/index.js +2 -2
- package/dist/tools/overseers/index.js.map +1 -1
- package/dist/tools/pagination-handler-factory.d.ts +2 -2
- package/dist/tools/pagination-handler-factory.d.ts.map +1 -1
- package/dist/tools/pagination-handler-factory.js +5 -5
- package/dist/tools/pagination-handler-factory.js.map +1 -1
- package/dist/tools/pools/fetchAllPools.d.ts.map +1 -1
- package/dist/tools/pools/fetchAllPools.js +6 -4
- package/dist/tools/pools/fetchAllPools.js.map +1 -1
- package/dist/tools/pools/fetchPools.js +3 -3
- package/dist/tools/pools/fetchPools.js.map +1 -1
- package/dist/tools/pools/fetchPriceHistory.js +2 -2
- package/dist/tools/pools/fetchPriceHistory.js.map +1 -1
- package/dist/tools/referrals/index.js +2 -2
- package/dist/tools/referrals/index.js.map +1 -1
- package/dist/tools/streaming/index.js +1 -1
- package/dist/tools/streaming/index.js.map +1 -1
- package/dist/tools/token-ban/index.js +3 -3
- package/dist/tools/token-ban/index.js.map +1 -1
- package/dist/tools/tool-factory.js +1 -1
- package/dist/tools/tool-factory.js.map +1 -1
- package/dist/tools/trades/index.d.ts.map +1 -1
- package/dist/tools/trades/index.js +4 -3
- package/dist/tools/trades/index.js.map +1 -1
- package/dist/tools/trading/helpers/arg-extractors.d.ts +2 -2
- package/dist/tools/trading/helpers/arg-extractors.d.ts.map +1 -1
- package/dist/tools/trading/helpers/arg-extractors.js +2 -2
- package/dist/tools/trading/helpers/arg-extractors.js.map +1 -1
- package/dist/tools/trading/index.js +1 -1
- package/dist/tools/trading/index.js.map +1 -1
- package/dist/tools/utils/clearCache.js +2 -2
- package/dist/tools/utils/clearCache.js.map +1 -1
- package/dist/tools/utils/explainSdkUsage.js +1 -1
- package/dist/tools/utils/explainSdkUsage.js.map +1 -1
- package/dist/tools/utils/getConfig.d.ts.map +1 -1
- package/dist/tools/utils/getConfig.js +3 -2
- package/dist/tools/utils/getConfig.js.map +1 -1
- package/dist/tools/utils/getEnvironment.d.ts.map +1 -1
- package/dist/tools/utils/getEnvironment.js +3 -2
- package/dist/tools/utils/getEnvironment.js.map +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js.map +1 -1
- package/dist/tools/utils/getPublicKeyFromPrivateKey.js.map +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/utils/date-converter.js +5 -5
- package/dist/utils/date-converter.js.map +1 -1
- package/dist/utils/default-values.d.ts +6 -6
- package/dist/utils/default-values.d.ts.map +1 -1
- package/dist/utils/default-values.js +5 -5
- package/dist/utils/default-values.js.map +1 -1
- package/dist/utils/error-templates.js +1 -1
- package/dist/utils/error-templates.js.map +1 -1
- package/dist/utils/pool-filter-builder.js +10 -10
- package/dist/utils/pool-filter-builder.js.map +1 -1
- package/dist/utils/response-formatter.js +1 -1
- package/dist/utils/tool-factory.d.ts.map +1 -1
- package/dist/utils/tool-factory.js +12 -4
- package/dist/utils/tool-factory.js.map +1 -1
- package/dist/utils/tool-registry.js +9 -9
- package/dist/utils/tool-registry.js.map +1 -1
- package/dist/utils/validation.js +1 -1
- package/dist/utils/validation.js.map +1 -1
- package/package.json +3 -3
- package/dist/ai-docs.json +0 -7714
- package/dist/explain-sdk-usage-ai.json +0 -3539
- package/dist/prompts/uploads.d.ts +0 -19
- package/dist/prompts/uploads.d.ts.map +0 -1
- package/dist/prompts/uploads.js +0 -114
- package/dist/prompts/uploads.js.map +0 -1
- package/dist/prompts/utils/index.d.ts +0 -21
- package/dist/prompts/utils/index.d.ts.map +0 -1
- package/dist/prompts/utils/index.js +0 -38
- package/dist/prompts/utils/index.js.map +0 -1
- package/dist/tools/bridge/helpers/bridgeable-token-tools.d.ts +0 -87
- package/dist/tools/bridge/helpers/bridgeable-token-tools.d.ts.map +0 -1
- package/dist/tools/bridge/helpers/bridgeable-token-tools.js +0 -130
- package/dist/tools/bridge/helpers/bridgeable-token-tools.js.map +0 -1
- package/dist/tools/dex/fetchAllDexPools.d.ts +0 -9
- package/dist/tools/dex/fetchAllDexPools.d.ts.map +0 -1
- package/dist/tools/dex/fetchAllDexPools.js +0 -38
- package/dist/tools/dex/fetchAllDexPools.js.map +0 -1
- package/dist/tools/dex/fetchDexPools.d.ts +0 -9
- package/dist/tools/dex/fetchDexPools.d.ts.map +0 -1
- package/dist/tools/dex/fetchDexPools.js +0 -41
- package/dist/tools/dex/fetchDexPools.js.map +0 -1
- package/dist/tools/dex/leaderboard.d.ts +0 -38
- package/dist/tools/dex/leaderboard.d.ts.map +0 -1
- package/dist/tools/dex/leaderboard.js +0 -88
- package/dist/tools/dex/leaderboard.js.map +0 -1
- package/dist/tools/dex/liquidity-positions.d.ts +0 -22
- package/dist/tools/dex/liquidity-positions.d.ts.map +0 -1
- package/dist/tools/dex/liquidity-positions.js +0 -599
- package/dist/tools/dex/liquidity-positions.js.map +0 -1
- package/dist/tools/dex/volume.d.ts +0 -19
- package/dist/tools/dex/volume.d.ts.map +0 -1
- package/dist/tools/dex/volume.js +0 -38
- package/dist/tools/dex/volume.js.map +0 -1
- package/dist/tools/pools/priceHistoryFactory.d.ts +0 -44
- package/dist/tools/pools/priceHistoryFactory.d.ts.map +0 -1
- package/dist/tools/pools/priceHistoryFactory.js +0 -154
- package/dist/tools/pools/priceHistoryFactory.js.map +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Upload Prompts
|
|
3
|
-
*
|
|
4
|
-
* Slash commands for image upload operations (Node.js filesystem operations).
|
|
5
|
-
* These prompts handle uploading token images and profile images from local files.
|
|
6
|
-
*
|
|
7
|
-
* @since 5.12.0
|
|
8
|
-
*/
|
|
9
|
-
import type { MCPPrompt } from '../types/mcp.js';
|
|
10
|
-
/**
|
|
11
|
-
* Upload Token Image - Upload an image for a token from filesystem
|
|
12
|
-
*/
|
|
13
|
-
export declare const uploadTokenImagePrompt: MCPPrompt;
|
|
14
|
-
/**
|
|
15
|
-
* Upload Profile Image - Upload a profile image from filesystem
|
|
16
|
-
*/
|
|
17
|
-
export declare const uploadProfileImagePrompt: MCPPrompt;
|
|
18
|
-
export declare const uploadPrompts: MCPPrompt[];
|
|
19
|
-
//# sourceMappingURL=uploads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../../src/prompts/uploads.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAWjD;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAwCpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAiDtC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAAS,EAGpC,CAAC"}
|
package/dist/prompts/uploads.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Upload Prompts
|
|
4
|
-
*
|
|
5
|
-
* Slash commands for image upload operations (Node.js filesystem operations).
|
|
6
|
-
* These prompts handle uploading token images and profile images from local files.
|
|
7
|
-
*
|
|
8
|
-
* @since 5.12.0
|
|
9
|
-
*/
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.uploadPrompts = exports.uploadProfileImagePrompt = exports.uploadTokenImagePrompt = void 0;
|
|
12
|
-
const validation_js_1 = require("../utils/validation.js");
|
|
13
|
-
const handlerHelpers_js_1 = require("./utils/handlerHelpers.js");
|
|
14
|
-
const textTemplates_js_1 = require("./utils/textTemplates.js");
|
|
15
|
-
// Tool name constants
|
|
16
|
-
const UPLOAD_TOOLS = {
|
|
17
|
-
UPLOAD_TOKEN_IMAGE: 'gala_launchpad_upload_token_image',
|
|
18
|
-
UPLOAD_PROFILE_IMAGE: 'gala_launchpad_upload_profile_image',
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Upload Token Image - Upload an image for a token from filesystem
|
|
22
|
-
*/
|
|
23
|
-
exports.uploadTokenImagePrompt = {
|
|
24
|
-
name: 'galachain-launchpad:upload-token-image',
|
|
25
|
-
description: 'Upload an image for a token from the local filesystem (Node.js only)',
|
|
26
|
-
arguments: [
|
|
27
|
-
{
|
|
28
|
-
name: 'tokenName',
|
|
29
|
-
description: 'Token name to upload image for (e.g., anime)',
|
|
30
|
-
required: true,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: 'imagePath',
|
|
34
|
-
description: 'Absolute filesystem path to the image file',
|
|
35
|
-
required: true,
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
handler: (args) => {
|
|
39
|
-
(0, validation_js_1.validateTokenName)(args.tokenName, 'tokenName');
|
|
40
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
41
|
-
operation: `Upload a token image for "${args.tokenName}" from the local filesystem.
|
|
42
|
-
|
|
43
|
-
**Requirements:**
|
|
44
|
-
- Image format: PNG, JPG, JPEG, or WebP
|
|
45
|
-
- Maximum size: 5MB
|
|
46
|
-
- Recommended dimensions: 512x512px or higher (square aspect ratio)
|
|
47
|
-
|
|
48
|
-
**Note:** This is a Node.js-only operation. The file is read from the filesystem and uploaded to the Launchpad backend.
|
|
49
|
-
|
|
50
|
-
**Authentication:** Requires JWT authentication. Call login first if not authenticated.`,
|
|
51
|
-
parameters: {
|
|
52
|
-
token: `Token: ${args.tokenName}`,
|
|
53
|
-
imagePath: `Image Path: ${args.imagePath}`,
|
|
54
|
-
},
|
|
55
|
-
toolName: UPLOAD_TOOLS.UPLOAD_TOKEN_IMAGE,
|
|
56
|
-
actionDescription: 'upload the token image',
|
|
57
|
-
displayFormat: 'Display the uploaded image URL on success.',
|
|
58
|
-
}));
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Upload Profile Image - Upload a profile image from filesystem
|
|
63
|
-
*/
|
|
64
|
-
exports.uploadProfileImagePrompt = {
|
|
65
|
-
name: 'galachain-launchpad:upload-profile-image',
|
|
66
|
-
description: 'Upload a profile image from the local filesystem (Node.js only)',
|
|
67
|
-
arguments: [
|
|
68
|
-
{
|
|
69
|
-
name: 'imagePath',
|
|
70
|
-
description: 'Absolute filesystem path to the image file',
|
|
71
|
-
required: true,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: 'address',
|
|
75
|
-
description: 'Wallet address (defaults to authenticated user)',
|
|
76
|
-
required: false,
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
handler: (args) => {
|
|
80
|
-
if (args.address) {
|
|
81
|
-
(0, validation_js_1.validateOptionalAddress)(args.address);
|
|
82
|
-
}
|
|
83
|
-
const parameters = {
|
|
84
|
-
imagePath: `Image Path: ${args.imagePath}`,
|
|
85
|
-
};
|
|
86
|
-
if (args.address) {
|
|
87
|
-
parameters.address = `Address: ${args.address}`;
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
parameters.address = 'Address: Using authenticated wallet';
|
|
91
|
-
}
|
|
92
|
-
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
93
|
-
operation: `Upload a profile image from the local filesystem.
|
|
94
|
-
|
|
95
|
-
**Requirements:**
|
|
96
|
-
- Image format: PNG, JPG, JPEG, or WebP
|
|
97
|
-
- Maximum size: 5MB
|
|
98
|
-
- Recommended dimensions: Square aspect ratio
|
|
99
|
-
|
|
100
|
-
**Note:** This is a Node.js-only operation. The file is read from the filesystem and uploaded to the Launchpad backend.
|
|
101
|
-
|
|
102
|
-
**Authentication:** Requires JWT authentication. Call login first if not authenticated.`,
|
|
103
|
-
parameters,
|
|
104
|
-
toolName: UPLOAD_TOOLS.UPLOAD_PROFILE_IMAGE,
|
|
105
|
-
actionDescription: 'upload the profile image',
|
|
106
|
-
displayFormat: 'Display the uploaded image URL on success.',
|
|
107
|
-
}));
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
exports.uploadPrompts = [
|
|
111
|
-
exports.uploadTokenImagePrompt,
|
|
112
|
-
exports.uploadProfileImagePrompt,
|
|
113
|
-
];
|
|
114
|
-
//# sourceMappingURL=uploads.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["../../src/prompts/uploads.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAGH,0DAAoF;AACpF,iEAAiE;AACjE,+DAAqE;AAErE,sBAAsB;AACtB,MAAM,YAAY,GAAG;IACnB,kBAAkB,EAAE,mCAAmC;IACvD,oBAAoB,EAAE,qCAAqC;CACnD,CAAC;AAEX;;GAEG;AACU,QAAA,sBAAsB,GAAc;IAC/C,IAAI,EAAE,wCAAwC;IAC9C,WAAW,EAAE,sEAAsE;IACnF,SAAS,EAAE;QACT;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,IAAI;SACf;QACD;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;SACf;KACF;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QAChB,IAAA,iCAAiB,EAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE/C,OAAO,IAAA,wCAAoB,EACzB,IAAA,4CAAyB,EAAC;YACxB,SAAS,EAAE,6BAA6B,IAAI,CAAC,SAAS;;;;;;;;;wFAS0B;YAChF,UAAU,EAAE;gBACV,KAAK,EAAE,UAAU,IAAI,CAAC,SAAS,EAAE;gBACjC,SAAS,EAAE,eAAe,IAAI,CAAC,SAAS,EAAE;aAC3C;YACD,QAAQ,EAAE,YAAY,CAAC,kBAAkB;YACzC,iBAAiB,EAAE,wBAAwB;YAC3C,aAAa,EAAE,4CAA4C;SAC5D,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;GAEG;AACU,QAAA,wBAAwB,GAAc;IACjD,IAAI,EAAE,0CAA0C;IAChD,WAAW,EAAE,iEAAiE;IAC9E,SAAS,EAAE;QACT;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;SACf;QACD;YACE,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iDAAiD;YAC9D,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QAChB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,IAAA,uCAAuB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QAED,MAAM,UAAU,GAA2B;YACzC,SAAS,EAAE,eAAe,IAAI,CAAC,SAAS,EAAE;SAC3C,CAAC;QAEF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,UAAU,CAAC,OAAO,GAAG,YAAY,IAAI,CAAC,OAAO,EAAE,CAAC;QAClD,CAAC;aAAM,CAAC;YACN,UAAU,CAAC,OAAO,GAAG,qCAAqC,CAAC;QAC7D,CAAC;QAED,OAAO,IAAA,wCAAoB,EACzB,IAAA,4CAAyB,EAAC;YACxB,SAAS,EAAE;;;;;;;;;wFASqE;YAChF,UAAU;YACV,QAAQ,EAAE,YAAY,CAAC,oBAAoB;YAC3C,iBAAiB,EAAE,0BAA0B;YAC7C,aAAa,EAAE,4CAA4C;SAC5D,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC;AAEW,QAAA,aAAa,GAAgB;IACxC,8BAAsB;IACtB,gCAAwB;CACzB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Prompt Utilities Index
|
|
3
|
-
*
|
|
4
|
-
* Central export point for all prompt utility modules.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import {
|
|
9
|
-
* createPromptResponse,
|
|
10
|
-
* createSimpleOperationText,
|
|
11
|
-
* createPaginationArguments,
|
|
12
|
-
* validatePaginationLimit,
|
|
13
|
-
* buildPaginationParameters,
|
|
14
|
-
* } from './utils/index.js';
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export { createPromptResponse, createValidatedHandler } from './handlerHelpers.js';
|
|
18
|
-
export { createSimpleOperationText } from './textTemplates.js';
|
|
19
|
-
export { createTradingWorkflow, createAnalysisWorkflow, createPortfolioWorkflow, } from './workflowTemplates.js';
|
|
20
|
-
export { createPaginationArguments, validatePaginationLimit, buildPaginationParameters, paginationHelpers, type PaginationConfig, } from './pagination-helpers.js';
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/prompts/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAG/D,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,KAAK,gBAAgB,GACtB,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Prompt Utilities Index
|
|
4
|
-
*
|
|
5
|
-
* Central export point for all prompt utility modules.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import {
|
|
10
|
-
* createPromptResponse,
|
|
11
|
-
* createSimpleOperationText,
|
|
12
|
-
* createPaginationArguments,
|
|
13
|
-
* validatePaginationLimit,
|
|
14
|
-
* buildPaginationParameters,
|
|
15
|
-
* } from './utils/index.js';
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.paginationHelpers = exports.buildPaginationParameters = exports.validatePaginationLimit = exports.createPaginationArguments = exports.createPortfolioWorkflow = exports.createAnalysisWorkflow = exports.createTradingWorkflow = exports.createSimpleOperationText = exports.createValidatedHandler = exports.createPromptResponse = void 0;
|
|
20
|
-
// Handler helpers
|
|
21
|
-
var handlerHelpers_js_1 = require("./handlerHelpers.js");
|
|
22
|
-
Object.defineProperty(exports, "createPromptResponse", { enumerable: true, get: function () { return handlerHelpers_js_1.createPromptResponse; } });
|
|
23
|
-
Object.defineProperty(exports, "createValidatedHandler", { enumerable: true, get: function () { return handlerHelpers_js_1.createValidatedHandler; } });
|
|
24
|
-
// Text templates
|
|
25
|
-
var textTemplates_js_1 = require("./textTemplates.js");
|
|
26
|
-
Object.defineProperty(exports, "createSimpleOperationText", { enumerable: true, get: function () { return textTemplates_js_1.createSimpleOperationText; } });
|
|
27
|
-
// Workflow templates
|
|
28
|
-
var workflowTemplates_js_1 = require("./workflowTemplates.js");
|
|
29
|
-
Object.defineProperty(exports, "createTradingWorkflow", { enumerable: true, get: function () { return workflowTemplates_js_1.createTradingWorkflow; } });
|
|
30
|
-
Object.defineProperty(exports, "createAnalysisWorkflow", { enumerable: true, get: function () { return workflowTemplates_js_1.createAnalysisWorkflow; } });
|
|
31
|
-
Object.defineProperty(exports, "createPortfolioWorkflow", { enumerable: true, get: function () { return workflowTemplates_js_1.createPortfolioWorkflow; } });
|
|
32
|
-
// Pagination helpers
|
|
33
|
-
var pagination_helpers_js_1 = require("./pagination-helpers.js");
|
|
34
|
-
Object.defineProperty(exports, "createPaginationArguments", { enumerable: true, get: function () { return pagination_helpers_js_1.createPaginationArguments; } });
|
|
35
|
-
Object.defineProperty(exports, "validatePaginationLimit", { enumerable: true, get: function () { return pagination_helpers_js_1.validatePaginationLimit; } });
|
|
36
|
-
Object.defineProperty(exports, "buildPaginationParameters", { enumerable: true, get: function () { return pagination_helpers_js_1.buildPaginationParameters; } });
|
|
37
|
-
Object.defineProperty(exports, "paginationHelpers", { enumerable: true, get: function () { return pagination_helpers_js_1.paginationHelpers; } });
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/prompts/utils/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,kBAAkB;AAClB,yDAAmF;AAA1E,yHAAA,oBAAoB,OAAA;AAAE,2HAAA,sBAAsB,OAAA;AAErD,iBAAiB;AACjB,uDAA+D;AAAtD,6HAAA,yBAAyB,OAAA;AAElC,qBAAqB;AACrB,+DAIgC;AAH9B,6HAAA,qBAAqB,OAAA;AACrB,8HAAA,sBAAsB,OAAA;AACtB,+HAAA,uBAAuB,OAAA;AAGzB,qBAAqB;AACrB,iEAMiC;AAL/B,kIAAA,yBAAyB,OAAA;AACzB,gIAAA,uBAAuB,OAAA;AACvB,kIAAA,yBAAyB,OAAA;AACzB,0HAAA,iBAAiB,OAAA"}
|
|
@@ -1,87 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,130 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CAAC,OAAO,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,6BAA6B,OAAO,EAAE,CAAC;IAEzD,OAAO;QACL,IAAI,EAAE,iDAAiD,MAAM,CAAC,YAAY,EAAE;QAC5E,WAAW,EACT,2CAA2C,MAAM,CAAC,WAAW,wDAAwD;QACvH,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE;SACf;QACD,OAAO,EAAE,IAAA,+CAAwB,EAAC,SAAS,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,2BAA2B,CAAC,OAA0B;IACpE,MAAM,MAAM,GAAG,iCAAyB,CAAC,OAAO,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,sBAAsB,OAAO,EAAE,CAAC;IAElD,OAAO;QACL,IAAI,EAAE,yCAAyC,MAAM,CAAC,YAAY,EAAE;QACpE,WAAW,EACT,qCAAqC,MAAM,CAAC,WAAW,sCAAsC,MAAM,CAAC,WAAW,iBAAiB;QAClI,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE,eAAe;aACzB;YACD,QAAQ,EAAE,CAAC,SAAS,CAAC;SACtB;QACD,OAAO,EAAE,IAAA,+CAAwB,EAAC,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAkB,CAAC;KAChF,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,0BAA0B,CAAC,OAA0B;IAInE,OAAO;QACL,QAAQ,EAAE,4BAA4B,CAAC,OAAO,CAAC;QAC/C,iBAAiB,EAAE,2BAA2B,CAAC,OAAO,CAAC;KACxD,CAAC;AACJ,CAAC;AAED,yEAAyE;AAC5D,QAAA,sCAAsC,GAAG,4BAA4B,CAAC,UAAU,CAAC,CAAC;AAClF,QAAA,oCAAoC,GAAG,4BAA4B,CAAC,QAAQ,CAAC,CAAC;AAE9E,QAAA,+BAA+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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch All DEX Pools Tool
|
|
3
|
-
*
|
|
4
|
-
* Convenience tool that fetches all available DEX pools with automatic pagination.
|
|
5
|
-
* No page/limit parameters needed - returns ALL pools matching filters.
|
|
6
|
-
*/
|
|
7
|
-
import type { MCPTool } from '../../types/mcp.js';
|
|
8
|
-
export declare const fetchAllDexPoolsTool: MCPTool;
|
|
9
|
-
//# sourceMappingURL=fetchAllDexPools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAllDexPools.d.ts","sourceRoot":"","sources":["../../../src/tools/dex/fetchAllDexPools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIlD,eAAO,MAAM,oBAAoB,EAAE,OAqBlC,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Fetch All DEX Pools Tool
|
|
4
|
-
*
|
|
5
|
-
* Convenience tool that fetches all available DEX pools with automatic pagination.
|
|
6
|
-
* No page/limit parameters needed - returns ALL pools matching filters.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.fetchAllDexPoolsTool = void 0;
|
|
10
|
-
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
11
|
-
const handler_factories_js_1 = require("../handler-factories.js");
|
|
12
|
-
exports.fetchAllDexPoolsTool = {
|
|
13
|
-
name: 'gala_launchpad_fetch_all_dex_pools',
|
|
14
|
-
description: 'Fetch all DEX pools with automatic pagination. No page/limit parameters needed - returns ALL pools matching filters.',
|
|
15
|
-
inputSchema: {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
...common_schemas_js_1.POOL_DISCOVERY_SCHEMA,
|
|
19
|
-
withPrices: {
|
|
20
|
-
type: 'boolean',
|
|
21
|
-
description: 'Whether to fetch real-time pricing data for each pool (default: false)',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
handler: (0, handler_factories_js_1.createSimpleHandler)('fetchAllDexPools', (args) => {
|
|
26
|
-
const options = {};
|
|
27
|
-
if (args.search)
|
|
28
|
-
options.search = args.search;
|
|
29
|
-
if (args.sortBy)
|
|
30
|
-
options.sortBy = args.sortBy;
|
|
31
|
-
if (args.sortOrder)
|
|
32
|
-
options.sortOrder = args.sortOrder;
|
|
33
|
-
if (args.withPrices !== undefined)
|
|
34
|
-
options.withPrices = args.withPrices;
|
|
35
|
-
return options;
|
|
36
|
-
}),
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=fetchAllDexPools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchAllDexPools.js","sourceRoot":"","sources":["../../../src/tools/dex/fetchAllDexPools.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,uEAAwE;AACxE,kEAA8D;AAEjD,QAAA,oBAAoB,GAAY;IAC3C,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE,sHAAsH;IACnI,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,yCAAqB;YACxB,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,wEAAwE;aACtF;SACF;KACF;IACD,OAAO,EAAE,IAAA,0CAAmB,EAAC,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE;QACxD,MAAM,OAAO,GAA4B,EAAE,CAAC;QAC5C,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,MAAgB,CAAC;QACxD,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,MAA0C,CAAC;QAClF,IAAI,IAAI,CAAC,SAAS;YAAE,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,SAA2B,CAAC;QACzE,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS;YAAE,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,UAAqB,CAAC;QACnF,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;CACH,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch DEX Pools Tool
|
|
3
|
-
*
|
|
4
|
-
* Queries the GalaSwap DEX backend for available liquidity pools with pagination,
|
|
5
|
-
* sorting, and search filtering capabilities.
|
|
6
|
-
*/
|
|
7
|
-
import type { MCPTool } from '../../types/mcp.js';
|
|
8
|
-
export declare const fetchDexPoolsTool: MCPTool;
|
|
9
|
-
//# sourceMappingURL=fetchDexPools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDexPools.d.ts","sourceRoot":"","sources":["../../../src/tools/dex/fetchDexPools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAKlD,eAAO,MAAM,iBAAiB,EAAE,OA2B/B,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Fetch DEX Pools Tool
|
|
4
|
-
*
|
|
5
|
-
* Queries the GalaSwap DEX backend for available liquidity pools with pagination,
|
|
6
|
-
* sorting, and search filtering capabilities.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.fetchDexPoolsTool = void 0;
|
|
10
|
-
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
11
|
-
const default_values_js_1 = require("../../utils/default-values.js");
|
|
12
|
-
const handler_factories_js_1 = require("../handler-factories.js");
|
|
13
|
-
exports.fetchDexPoolsTool = {
|
|
14
|
-
name: 'gala_launchpad_fetch_dex_pools',
|
|
15
|
-
description: 'Fetch DEX pools with pagination and filtering - query available liquidity pools on GalaSwap',
|
|
16
|
-
inputSchema: {
|
|
17
|
-
type: 'object',
|
|
18
|
-
properties: {
|
|
19
|
-
...common_schemas_js_1.POOL_DISCOVERY_SCHEMA,
|
|
20
|
-
page: {
|
|
21
|
-
type: 'number',
|
|
22
|
-
minimum: 1,
|
|
23
|
-
description: 'Page number (1-based pagination, default: 1)',
|
|
24
|
-
},
|
|
25
|
-
limit: {
|
|
26
|
-
type: 'number',
|
|
27
|
-
minimum: 1,
|
|
28
|
-
maximum: 20,
|
|
29
|
-
description: 'Number of results per page (default: 10, maximum: 20)',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
handler: (0, handler_factories_js_1.createSimpleHandler)('fetchDexPools', (args) => ({
|
|
34
|
-
search: args.search,
|
|
35
|
-
sortBy: args.sortBy || 'tvl',
|
|
36
|
-
sortOrder: args.sortOrder || 'desc',
|
|
37
|
-
page: args.page ?? default_values_js_1.DEFAULT_PAGINATION.page,
|
|
38
|
-
limit: args.limit ?? 10,
|
|
39
|
-
})),
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=fetchDexPools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDexPools.js","sourceRoot":"","sources":["../../../src/tools/dex/fetchDexPools.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,uEAAwE;AACxE,qEAAmE;AACnE,kEAA8D;AAEjD,QAAA,iBAAiB,GAAY;IACxC,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE,6FAA6F;IAC1G,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,yCAAqB;YACxB,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,8CAA8C;aAC5D;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uDAAuD;aACrE;SACF;KACF;IACD,OAAO,EAAE,IAAA,0CAAmB,EAAC,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACvD,MAAM,EAAE,IAAI,CAAC,MAA4B;QACzC,MAAM,EAAG,IAAI,CAAC,MAAuD,IAAI,KAAK;QAC9E,SAAS,EAAG,IAAI,CAAC,SAAwC,IAAI,MAAM;QACnE,IAAI,EAAG,IAAI,CAAC,IAAe,IAAI,sCAAkB,CAAC,IAAI;QACtD,KAAK,EAAG,IAAI,CAAC,KAAgB,IAAI,EAAE;KACpC,CAAC,CAAC;CACJ,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DEX Leaderboard Tools
|
|
3
|
-
*
|
|
4
|
-
* Tools for querying DEX leaderboard rankings and season management.
|
|
5
|
-
* Provides access to seasonal leaderboards, current rankings, and player achievements.
|
|
6
|
-
*/
|
|
7
|
-
import type { MCPTool } from '../../types/mcp.js';
|
|
8
|
-
/**
|
|
9
|
-
* 1. Fetch All DEX Seasons
|
|
10
|
-
*
|
|
11
|
-
* Returns all available DEX leaderboard seasons with start/end dates and rules.
|
|
12
|
-
* Non-paginated endpoint returning complete list of all seasons.
|
|
13
|
-
*/
|
|
14
|
-
export declare const fetchAllDexSeasonsTool: MCPTool;
|
|
15
|
-
/**
|
|
16
|
-
* 2. Fetch Current DEX Season
|
|
17
|
-
*
|
|
18
|
-
* Returns the currently active DEX leaderboard season based on current date/time.
|
|
19
|
-
* Returns null if no season is currently active.
|
|
20
|
-
*/
|
|
21
|
-
export declare const fetchCurrentDexSeasonTool: MCPTool;
|
|
22
|
-
/**
|
|
23
|
-
* 3. Fetch DEX Leaderboard by Season ID
|
|
24
|
-
*
|
|
25
|
-
* Returns the leaderboard rankings for a specific season.
|
|
26
|
-
* Includes player rankings, XP metrics, and mastery achievements.
|
|
27
|
-
*/
|
|
28
|
-
export declare const fetchDexLeaderboardBySeasonIdTool: MCPTool;
|
|
29
|
-
/**
|
|
30
|
-
* 4. Fetch Current DEX Leaderboard
|
|
31
|
-
*
|
|
32
|
-
* Returns the leaderboard for the currently active season.
|
|
33
|
-
* Combines current season detection with leaderboard retrieval.
|
|
34
|
-
* Returns null if no season is currently active.
|
|
35
|
-
*/
|
|
36
|
-
export declare const fetchCurrentDexLeaderboardTool: MCPTool;
|
|
37
|
-
export declare const leaderboardTools: MCPTool[];
|
|
38
|
-
//# sourceMappingURL=leaderboard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leaderboard.d.ts","sourceRoot":"","sources":["../../../src/tools/dex/leaderboard.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAUlD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,OASpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,OASvC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,EAAE,OAe/C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,EAAE,OAS5C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,OAAO,EAKrC,CAAC"}
|