@gala-chain/launchpad-mcp-server 2.0.1 → 2.0.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +68 -8
- package/CHANGELOG.md +10 -10
- package/dist/constants/mcpToolNames.d.ts +21 -2
- package/dist/constants/mcpToolNames.d.ts.map +1 -1
- package/dist/constants/mcpToolNames.js +17 -3
- package/dist/constants/mcpToolNames.js.map +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.d.ts.map +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/generated/version.js.map +1 -1
- package/dist/prompts/advanced-pools.d.ts.map +1 -1
- package/dist/prompts/advanced-pools.js.map +1 -1
- package/dist/prompts/dex-leaderboard.d.ts +40 -0
- package/dist/prompts/dex-leaderboard.d.ts.map +1 -0
- package/dist/prompts/dex-leaderboard.js +239 -0
- package/dist/prompts/dex-leaderboard.js.map +1 -0
- package/dist/prompts/dex-volume.d.ts +19 -0
- package/dist/prompts/dex-volume.d.ts.map +1 -0
- package/dist/prompts/dex-volume.js +74 -0
- package/dist/prompts/dex-volume.js.map +1 -0
- package/dist/prompts/index.d.ts +5 -2
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +11 -2
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/locks.d.ts +16 -0
- package/dist/prompts/locks.d.ts.map +1 -0
- package/dist/prompts/locks.js +114 -0
- package/dist/prompts/locks.js.map +1 -0
- package/dist/prompts/monitoring.js.map +1 -1
- package/dist/prompts/pools.js +3 -3
- package/dist/prompts/pools.js.map +1 -1
- package/dist/schemas/common-schemas.d.ts +18 -16
- package/dist/schemas/common-schemas.d.ts.map +1 -1
- package/dist/schemas/common-schemas.js +8 -0
- package/dist/schemas/common-schemas.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +3 -1
- package/dist/server.js.map +1 -1
- package/dist/tools/balance/index.js.map +1 -1
- package/dist/tools/creation/index.d.ts.map +1 -1
- package/dist/tools/creation/index.js +11 -8
- package/dist/tools/creation/index.js.map +1 -1
- package/dist/tools/dex/fetchAllDexPools.d.ts.map +1 -1
- package/dist/tools/dex/fetchAllDexPools.js +10 -6
- package/dist/tools/dex/fetchAllDexPools.js.map +1 -1
- package/dist/tools/dex/fetchDexPools.js.map +1 -1
- package/dist/tools/dex/index.d.ts.map +1 -1
- package/dist/tools/dex/index.js +5 -1
- package/dist/tools/dex/index.js.map +1 -1
- package/dist/tools/dex/leaderboard.d.ts +38 -0
- package/dist/tools/dex/leaderboard.d.ts.map +1 -0
- package/dist/tools/dex/leaderboard.js +153 -0
- package/dist/tools/dex/leaderboard.js.map +1 -0
- package/dist/tools/dex/liquidity-positions.d.ts.map +1 -1
- package/dist/tools/dex/liquidity-positions.js +13 -4
- package/dist/tools/dex/liquidity-positions.js.map +1 -1
- package/dist/tools/dex/volume.d.ts +19 -0
- package/dist/tools/dex/volume.d.ts.map +1 -0
- package/dist/tools/dex/volume.js +53 -0
- package/dist/tools/dex/volume.js.map +1 -0
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +11 -4
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/locks/index.d.ts +8 -0
- package/dist/tools/locks/index.d.ts.map +1 -0
- package/dist/tools/locks/index.js +79 -0
- package/dist/tools/locks/index.js.map +1 -0
- package/dist/tools/pools/fetchAllPools.d.ts.map +1 -1
- package/dist/tools/pools/fetchAllPools.js +8 -5
- package/dist/tools/pools/fetchAllPools.js.map +1 -1
- package/dist/tools/pools/fetchAllPriceHistory.js +1 -1
- package/dist/tools/pools/fetchAllPriceHistory.js.map +1 -1
- package/dist/tools/pools/fetchPoolDetails.js.map +1 -1
- package/dist/tools/pools/fetchPools.js.map +1 -1
- package/dist/tools/pools/fetchPriceHistory.js +1 -1
- 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/index.js +1 -1
- package/dist/tools/pools/index.js.map +1 -1
- package/dist/tools/pools/onDexPoolCreation.d.ts.map +1 -1
- package/dist/tools/pools/onDexPoolCreation.js +1 -0
- package/dist/tools/pools/onDexPoolCreation.js.map +1 -1
- package/dist/tools/pools/onLaunchpadTokenCreation.d.ts.map +1 -1
- package/dist/tools/pools/onLaunchpadTokenCreation.js +1 -0
- package/dist/tools/pools/onLaunchpadTokenCreation.js.map +1 -1
- package/dist/tools/social/index.js.map +1 -1
- package/dist/tools/trading/index.js +1 -1
- package/dist/tools/trading/index.js.map +1 -1
- package/dist/tools/transfers/index.js.map +1 -1
- package/dist/tools/utils/clearCache.js.map +1 -1
- package/dist/tools/utils/explainSdkUsage.d.ts +10 -0
- package/dist/tools/utils/explainSdkUsage.d.ts.map +1 -1
- package/dist/tools/utils/explainSdkUsage.js +896 -10
- package/dist/tools/utils/explainSdkUsage.js.map +1 -1
- package/dist/types/mcp.d.ts +2 -2
- package/dist/types/mcp.d.ts.map +1 -1
- package/dist/utils/default-values.d.ts.map +1 -1
- package/dist/utils/default-values.js +3 -0
- package/dist/utils/default-values.js.map +1 -1
- package/dist/utils/response-formatter.d.ts.map +1 -1
- package/dist/utils/response-formatter.js +1 -0
- package/dist/utils/response-formatter.js.map +1 -1
- package/dist/utils/tool-factory.d.ts.map +1 -1
- package/dist/utils/tool-factory.js +1 -0
- package/dist/utils/tool-factory.js.map +1 -1
- package/eslint.config.js.bak +113 -0
- package/package.json +4 -3
- package/dist/prompts/__tests__/promptStructure.test.d.ts +0 -7
- package/dist/prompts/__tests__/promptStructure.test.d.ts.map +0 -1
- package/dist/prompts/__tests__/promptStructure.test.js +0 -106
- package/dist/prompts/__tests__/promptStructure.test.js.map +0 -1
- package/dist/prompts/__tests__/registry.test.d.ts +0 -7
- package/dist/prompts/__tests__/registry.test.d.ts.map +0 -1
- package/dist/prompts/__tests__/registry.test.js +0 -119
- package/dist/prompts/__tests__/registry.test.js.map +0 -1
- package/dist/scripts/test-all-prompts.d.ts +0 -6
- package/dist/scripts/test-all-prompts.d.ts.map +0 -1
- package/dist/scripts/test-all-prompts.js +0 -158
- package/dist/scripts/test-all-prompts.js.map +0 -1
- package/dist/tools/balance/all-assets.d.ts +0 -9
- package/dist/tools/balance/all-assets.d.ts.map +0 -1
- package/dist/tools/balance/all-assets.js +0 -104
- package/dist/tools/balance/all-assets.js.map +0 -1
- package/dist/tools/dex/advanced-dex.d.ts +0 -15
- package/dist/tools/dex/advanced-dex.d.ts.map +0 -1
- package/dist/tools/dex/advanced-dex.js +0 -239
- package/dist/tools/dex/advanced-dex.js.map +0 -1
- package/dist/tools/dex/pool-price.d.ts +0 -9
- package/dist/tools/dex/pool-price.d.ts.map +0 -1
- package/dist/tools/dex/pool-price.js +0 -78
- package/dist/tools/dex/pool-price.js.map +0 -1
- package/dist/tools/dex/pool-quote-calculation.d.ts +0 -9
- package/dist/tools/dex/pool-quote-calculation.d.ts.map +0 -1
- package/dist/tools/dex/pool-quote-calculation.js +0 -99
- package/dist/tools/dex/pool-quote-calculation.js.map +0 -1
- package/dist/tools/dex/pool-quote-external.d.ts +0 -10
- package/dist/tools/dex/pool-quote-external.d.ts.map +0 -1
- package/dist/tools/dex/pool-quote-external.js +0 -84
- package/dist/tools/dex/pool-quote-external.js.map +0 -1
- package/dist/tools/dex/pool-quote-local.d.ts +0 -10
- package/dist/tools/dex/pool-quote-local.d.ts.map +0 -1
- package/dist/tools/dex/pool-quote-local.js +0 -84
- package/dist/tools/dex/pool-quote-local.js.map +0 -1
- package/dist/tools/dex/position-direct.d.ts +0 -9
- package/dist/tools/dex/position-direct.d.ts.map +0 -1
- package/dist/tools/dex/position-direct.js +0 -65
- package/dist/tools/dex/position-direct.js.map +0 -1
- package/dist/tools/pools/composite-pool.d.ts +0 -9
- package/dist/tools/pools/composite-pool.d.ts.map +0 -1
- package/dist/tools/pools/composite-pool.js +0 -69
- package/dist/tools/pools/composite-pool.js.map +0 -1
- package/dist/tools/pools/fetchAllPrices.d.ts +0 -9
- package/dist/tools/pools/fetchAllPrices.d.ts.map +0 -1
- package/dist/tools/pools/fetchAllPrices.js +0 -38
- package/dist/tools/pools/fetchAllPrices.js.map +0 -1
- package/dist/tools/pools/fetchPrices.d.ts +0 -9
- package/dist/tools/pools/fetchPrices.d.ts.map +0 -1
- package/dist/tools/pools/fetchPrices.js +0 -51
- package/dist/tools/pools/fetchPrices.js.map +0 -1
- package/dist/tools/utils/cleanup.d.ts +0 -9
- package/dist/tools/utils/cleanup.d.ts.map +0 -1
- package/dist/tools/utils/cleanup.js +0 -54
- package/dist/tools/utils/cleanup.js.map +0 -1
- package/dist/tools/utils/faucet.d.ts +0 -10
- package/dist/tools/utils/faucet.d.ts.map +0 -1
- package/dist/tools/utils/faucet.js +0 -51
- package/dist/tools/utils/faucet.js.map +0 -1
- package/dist/utils/__tests__/validation.test.d.ts +0 -7
- package/dist/utils/__tests__/validation.test.d.ts.map +0 -1
- package/dist/utils/__tests__/validation.test.js +0 -122
- package/dist/utils/__tests__/validation.test.js.map +0 -1
- package/test-mcp.js +0 -89
package/.eslintrc.json
CHANGED
|
@@ -1,27 +1,87 @@
|
|
|
1
1
|
{
|
|
2
|
+
"root": true,
|
|
2
3
|
"extends": [
|
|
3
4
|
"eslint:recommended",
|
|
4
|
-
"plugin:@typescript-eslint/recommended"
|
|
5
|
+
"plugin:@typescript-eslint/recommended",
|
|
6
|
+
"prettier"
|
|
5
7
|
],
|
|
6
8
|
"parser": "@typescript-eslint/parser",
|
|
7
9
|
"parserOptions": {
|
|
8
|
-
"ecmaVersion":
|
|
10
|
+
"ecmaVersion": 2020,
|
|
9
11
|
"sourceType": "module"
|
|
10
12
|
},
|
|
11
|
-
"plugins": [
|
|
13
|
+
"plugins": [
|
|
14
|
+
"@typescript-eslint"
|
|
15
|
+
],
|
|
12
16
|
"env": {
|
|
17
|
+
"browser": true,
|
|
13
18
|
"node": true,
|
|
14
|
-
"
|
|
19
|
+
"es2020": true,
|
|
20
|
+
"jest": true
|
|
21
|
+
},
|
|
22
|
+
"globals": {
|
|
23
|
+
"window": "readonly",
|
|
24
|
+
"document": "readonly",
|
|
25
|
+
"console": "readonly",
|
|
26
|
+
"process": "readonly",
|
|
27
|
+
"Buffer": "readonly",
|
|
28
|
+
"__dirname": "readonly",
|
|
29
|
+
"__filename": "readonly",
|
|
30
|
+
"global": "readonly",
|
|
31
|
+
"module": "readonly",
|
|
32
|
+
"require": "readonly",
|
|
33
|
+
"exports": "readonly",
|
|
34
|
+
"describe": "readonly",
|
|
35
|
+
"it": "readonly",
|
|
36
|
+
"test": "readonly",
|
|
37
|
+
"expect": "readonly",
|
|
38
|
+
"beforeEach": "readonly",
|
|
39
|
+
"afterEach": "readonly",
|
|
40
|
+
"beforeAll": "readonly",
|
|
41
|
+
"afterAll": "readonly",
|
|
42
|
+
"jest": "readonly"
|
|
15
43
|
},
|
|
16
44
|
"rules": {
|
|
17
|
-
"@typescript-eslint/no-
|
|
18
|
-
|
|
45
|
+
"@typescript-eslint/no-unused-vars": [
|
|
46
|
+
"error",
|
|
47
|
+
{
|
|
48
|
+
"argsIgnorePattern": "^_",
|
|
49
|
+
"varsIgnorePattern": "^_",
|
|
50
|
+
"destructuredArrayIgnorePattern": "^_",
|
|
51
|
+
"ignoreRestSiblings": true
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"@typescript-eslint/no-explicit-any": [
|
|
55
|
+
"error",
|
|
56
|
+
{
|
|
57
|
+
"fixToUnknown": false,
|
|
58
|
+
"ignoreRestArgs": true
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"no-unused-vars": "off",
|
|
62
|
+
"no-undef": "off",
|
|
63
|
+
"prefer-const": "error",
|
|
64
|
+
"no-var": "error"
|
|
19
65
|
},
|
|
20
66
|
"overrides": [
|
|
21
67
|
{
|
|
22
|
-
"files": [
|
|
68
|
+
"files": [
|
|
69
|
+
"**/*.{test,spec}.{ts,js}",
|
|
70
|
+
"**/__tests__/**/*"
|
|
71
|
+
],
|
|
72
|
+
"rules": {
|
|
73
|
+
"no-console": "off"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"files": [
|
|
78
|
+
"rollup.config.js",
|
|
79
|
+
"jest.config.js",
|
|
80
|
+
"eslint.config.js",
|
|
81
|
+
".eslintrc.js"
|
|
82
|
+
],
|
|
23
83
|
"rules": {
|
|
24
|
-
"@typescript-eslint/no-
|
|
84
|
+
"@typescript-eslint/no-var-requires": "off"
|
|
25
85
|
}
|
|
26
86
|
}
|
|
27
87
|
]
|
package/CHANGELOG.md
CHANGED
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
|
|
697
697
|
Token symbols cached using pipe-delimited format with `token:` prefix to distinguish from
|
|
698
698
|
tokenName entries:
|
|
699
|
-
- Example: `token:
|
|
699
|
+
- Example: `token:GUSDC|Unit|none|eth:0x...`
|
|
700
700
|
|
|
701
701
|
### Symbol Immutability
|
|
702
702
|
|
|
@@ -1048,7 +1048,7 @@
|
|
|
1048
1048
|
- Comprehensive unit tests (14 tests covering success/error/edge cases)
|
|
1049
1049
|
|
|
1050
1050
|
**Features:**
|
|
1051
|
-
- Flexible Token ID support: String format ('
|
|
1051
|
+
- Flexible Token ID support: String format ('GUSDC|Unit|none|eth:0x...') or object format
|
|
1052
1052
|
- Comprehensive metadata: Returns symbol, name, decimals, image, verification status, network info
|
|
1053
1053
|
- DEX API Integration: Queries /v1/tokens endpoint with URL-encoded token class keys
|
|
1054
1054
|
- Proper error handling: Validates token existence and format
|
|
@@ -1110,7 +1110,7 @@
|
|
|
1110
1110
|
**Format 1: Standard (collection="Token")**
|
|
1111
1111
|
|
|
1112
1112
|
```
|
|
1113
|
-
Token|Unit|
|
|
1113
|
+
Token|Unit|BENE|none → GALA$Unit$none$none
|
|
1114
1114
|
Token|Unit|SILK|none → SILK$Unit$none$none
|
|
1115
1115
|
```
|
|
1116
1116
|
|
|
@@ -1170,7 +1170,7 @@
|
|
|
1170
1170
|
✅ String format: `Token|Unit|{TOKEN_NAME}|{additionalKey}`
|
|
1171
1171
|
|
|
1172
1172
|
```typescript
|
|
1173
|
-
sdk.fetchPriceHistory({ tokenId: 'Token|Unit|
|
|
1173
|
+
sdk.fetchPriceHistory({ tokenId: 'Token|Unit|BENE|none' });
|
|
1174
1174
|
sdk.fetchPriceHistory({ tokenId: 'Token|Unit|SILK|none' });
|
|
1175
1175
|
```
|
|
1176
1176
|
|
|
@@ -1179,7 +1179,7 @@
|
|
|
1179
1179
|
|
|
1180
1180
|
```typescript
|
|
1181
1181
|
sdk.fetchPriceHistory({
|
|
1182
|
-
tokenId: { collection: '
|
|
1182
|
+
tokenId: { collection: 'GALA', category: 'Unit', type: 'none', additionalKey: 'none' },
|
|
1183
1183
|
});
|
|
1184
1184
|
```
|
|
1185
1185
|
|
|
@@ -1196,7 +1196,7 @@
|
|
|
1196
1196
|
|
|
1197
1197
|
```
|
|
1198
1198
|
Invalid tokenId format for price history. Expected format: "Token|Unit|{TOKEN_NAME}|{additionalKey}"
|
|
1199
|
-
(e.g., "Token|Unit|
|
|
1199
|
+
(e.g., "Token|Unit|BENE|none"). Received: "GALA|Unit|none|none".
|
|
1200
1200
|
The token name must be in the third field (type), not the first field (collection).
|
|
1201
1201
|
```
|
|
1202
1202
|
|
|
@@ -1223,7 +1223,7 @@
|
|
|
1223
1223
|
|
|
1224
1224
|
The DEX Backend API uses a different token format than GalaChain:
|
|
1225
1225
|
- API format: `tokenName$Unit$none$none` (e.g., `GALA$Unit$none$none`)
|
|
1226
|
-
- SDK format: `collection|category|type|additionalKey` (e.g., `Token|Unit|
|
|
1226
|
+
- SDK format: `collection|category|type|additionalKey` (e.g., `Token|Unit|BENE|none`)
|
|
1227
1227
|
|
|
1228
1228
|
### Changes
|
|
1229
1229
|
|
|
@@ -1241,7 +1241,7 @@
|
|
|
1241
1241
|
### Before
|
|
1242
1242
|
|
|
1243
1243
|
```typescript
|
|
1244
|
-
// Input: Token|Unit|
|
|
1244
|
+
// Input: Token|Unit|BENE|none
|
|
1245
1245
|
// Converted to: Token$Unit$GALA$none (WRONG - API expected GALA$Unit$none$none)
|
|
1246
1246
|
// Result: Empty response, no historical data
|
|
1247
1247
|
```
|
|
@@ -1249,7 +1249,7 @@
|
|
|
1249
1249
|
### After
|
|
1250
1250
|
|
|
1251
1251
|
```typescript
|
|
1252
|
-
// Input: Token|Unit|
|
|
1252
|
+
// Input: Token|Unit|BENE|none
|
|
1253
1253
|
// Converted to: GALA$Unit$none$none (CORRECT)
|
|
1254
1254
|
// Result: Returns all 30,862 GALA price snapshots
|
|
1255
1255
|
```
|
|
@@ -1270,7 +1270,7 @@
|
|
|
1270
1270
|
|
|
1271
1271
|
### SDK Changes (@gala-chain/launchpad-sdk)
|
|
1272
1272
|
- **New**: Added `tokenFormatConverter` utility (`src/utils/tokenFormatConverter.ts`)
|
|
1273
|
-
- Convert between pipe-delimited (`
|
|
1273
|
+
- Convert between pipe-delimited (`GUSDC|Unit|none|eth:...`) and dollar-delimited token formats
|
|
1274
1274
|
- Convert sort order from SDK format (uppercase) to API format (lowercase)
|
|
1275
1275
|
- **Updated**: `environments.ts` - Added separate `dexBackendBaseUrl` configuration for DEX
|
|
1276
1276
|
Backend service
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use these constants instead of hardcoded strings to prevent typos
|
|
6
6
|
* and enable IDE autocomplete.
|
|
7
7
|
*
|
|
8
|
-
* Total:
|
|
8
|
+
* Total: 81 tools across 9 categories (includes 2 event watchers: DEX pools and launchpad tokens)
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* Pool Management, Pricing & Event Watchers (19 tools)
|
|
@@ -84,6 +84,13 @@ export declare const TRANSFER_TOOLS: {
|
|
|
84
84
|
readonly TRANSFER_GALA: "gala_launchpad_transfer_gala";
|
|
85
85
|
readonly TRANSFER_TOKEN: "gala_launchpad_transfer_token";
|
|
86
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* Token Lock/Unlock Tools (2 tools)
|
|
89
|
+
*/
|
|
90
|
+
export declare const LOCK_TOOLS: {
|
|
91
|
+
readonly LOCK_TOKEN: "gala_launchpad_lock_token";
|
|
92
|
+
readonly UNLOCK_TOKEN: "gala_launchpad_unlock_token";
|
|
93
|
+
};
|
|
87
94
|
/**
|
|
88
95
|
* Utility Tools (14 tools)
|
|
89
96
|
*/
|
|
@@ -104,11 +111,16 @@ export declare const UTILITY_TOOLS: {
|
|
|
104
111
|
readonly GET_VERSION: "gala_launchpad_get_version";
|
|
105
112
|
};
|
|
106
113
|
/**
|
|
107
|
-
* DEX Trading & Pool Discovery Tools (
|
|
114
|
+
* DEX Trading & Pool Discovery Tools (12 tools)
|
|
108
115
|
*/
|
|
109
116
|
export declare const DEX_TOOLS: {
|
|
110
117
|
readonly FETCH_DEX_POOLS: "gala_launchpad_fetch_dex_pools";
|
|
111
118
|
readonly FETCH_ALL_DEX_POOLS: "gala_launchpad_fetch_all_dex_pools";
|
|
119
|
+
readonly FETCH_DEX_AGGREGATED_VOLUME_SUMMARY: "gala_launchpad_fetch_dex_aggregated_volume_summary";
|
|
120
|
+
readonly FETCH_ALL_DEX_SEASONS: "gala_launchpad_fetch_all_dex_seasons";
|
|
121
|
+
readonly FETCH_CURRENT_DEX_SEASON: "gala_launchpad_fetch_current_dex_season";
|
|
122
|
+
readonly FETCH_DEX_LEADERBOARD_BY_SEASON_ID: "gala_launchpad_fetch_dex_leaderboard_by_season_id";
|
|
123
|
+
readonly FETCH_CURRENT_DEX_LEADERBOARD: "gala_launchpad_fetch_current_dex_leaderboard";
|
|
112
124
|
readonly GET_SWAP_QUOTE_EXACT_INPUT: "gala_launchpad_get_swap_quote_exact_input";
|
|
113
125
|
readonly GET_SWAP_QUOTE_EXACT_OUTPUT: "gala_launchpad_get_swap_quote_exact_output";
|
|
114
126
|
readonly EXECUTE_SWAP: "gala_launchpad_execute_swap";
|
|
@@ -145,6 +157,11 @@ export declare const MCP_TOOLS: {
|
|
|
145
157
|
readonly COLLECT_POSITION_FEES: "gala_launchpad_collect_position_fees";
|
|
146
158
|
readonly FETCH_DEX_POOLS: "gala_launchpad_fetch_dex_pools";
|
|
147
159
|
readonly FETCH_ALL_DEX_POOLS: "gala_launchpad_fetch_all_dex_pools";
|
|
160
|
+
readonly FETCH_DEX_AGGREGATED_VOLUME_SUMMARY: "gala_launchpad_fetch_dex_aggregated_volume_summary";
|
|
161
|
+
readonly FETCH_ALL_DEX_SEASONS: "gala_launchpad_fetch_all_dex_seasons";
|
|
162
|
+
readonly FETCH_CURRENT_DEX_SEASON: "gala_launchpad_fetch_current_dex_season";
|
|
163
|
+
readonly FETCH_DEX_LEADERBOARD_BY_SEASON_ID: "gala_launchpad_fetch_dex_leaderboard_by_season_id";
|
|
164
|
+
readonly FETCH_CURRENT_DEX_LEADERBOARD: "gala_launchpad_fetch_current_dex_leaderboard";
|
|
148
165
|
readonly GET_SWAP_QUOTE_EXACT_INPUT: "gala_launchpad_get_swap_quote_exact_input";
|
|
149
166
|
readonly GET_SWAP_QUOTE_EXACT_OUTPUT: "gala_launchpad_get_swap_quote_exact_output";
|
|
150
167
|
readonly EXECUTE_SWAP: "gala_launchpad_execute_swap";
|
|
@@ -164,6 +181,8 @@ export declare const MCP_TOOLS: {
|
|
|
164
181
|
readonly GET_ENVIRONMENT: "gala_launchpad_get_environment";
|
|
165
182
|
readonly SWITCH_ENVIRONMENT: "gala_launchpad_switch_environment";
|
|
166
183
|
readonly GET_VERSION: "gala_launchpad_get_version";
|
|
184
|
+
readonly LOCK_TOKEN: "gala_launchpad_lock_token";
|
|
185
|
+
readonly UNLOCK_TOKEN: "gala_launchpad_unlock_token";
|
|
167
186
|
readonly TRANSFER_GALA: "gala_launchpad_transfer_gala";
|
|
168
187
|
readonly TRANSFER_TOKEN: "gala_launchpad_transfer_token";
|
|
169
188
|
readonly POST_COMMENT: "gala_launchpad_post_comment";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpToolNames.d.ts","sourceRoot":"","sources":["../../src/constants/mcpToolNames.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;CAoBb,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAchB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAehB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"mcpToolNames.d.ts","sourceRoot":"","sources":["../../src/constants/mcpToolNames.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;CAoBb,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAchB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU;;;CAGb,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAehB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAaZ,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;CASlB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBZ,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAErE;;GAEG;AACH,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAE1C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,WAAW,CAEjE"}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* Use these constants instead of hardcoded strings to prevent typos
|
|
7
7
|
* and enable IDE autocomplete.
|
|
8
8
|
*
|
|
9
|
-
* Total:
|
|
9
|
+
* Total: 81 tools across 9 categories (includes 2 event watchers: DEX pools and launchpad tokens)
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MCP_TOOLS = exports.LIQUIDITY_TOOLS = exports.DEX_TOOLS = exports.UTILITY_TOOLS = exports.TRANSFER_TOOLS = exports.SOCIAL_TOOLS = exports.CREATION_TOOLS = exports.BALANCE_TOOLS = exports.TRADING_TOOLS = exports.POOL_TOOLS = void 0;
|
|
12
|
+
exports.MCP_TOOLS = exports.LIQUIDITY_TOOLS = exports.DEX_TOOLS = exports.UTILITY_TOOLS = exports.LOCK_TOOLS = exports.TRANSFER_TOOLS = exports.SOCIAL_TOOLS = exports.CREATION_TOOLS = exports.BALANCE_TOOLS = exports.TRADING_TOOLS = exports.POOL_TOOLS = void 0;
|
|
13
13
|
exports.getAllToolNames = getAllToolNames;
|
|
14
14
|
exports.isValidToolName = isValidToolName;
|
|
15
15
|
/**
|
|
@@ -89,6 +89,13 @@ exports.TRANSFER_TOOLS = {
|
|
|
89
89
|
TRANSFER_GALA: 'gala_launchpad_transfer_gala',
|
|
90
90
|
TRANSFER_TOKEN: 'gala_launchpad_transfer_token',
|
|
91
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* Token Lock/Unlock Tools (2 tools)
|
|
94
|
+
*/
|
|
95
|
+
exports.LOCK_TOOLS = {
|
|
96
|
+
LOCK_TOKEN: 'gala_launchpad_lock_token',
|
|
97
|
+
UNLOCK_TOKEN: 'gala_launchpad_unlock_token',
|
|
98
|
+
};
|
|
92
99
|
/**
|
|
93
100
|
* Utility Tools (14 tools)
|
|
94
101
|
*/
|
|
@@ -109,11 +116,16 @@ exports.UTILITY_TOOLS = {
|
|
|
109
116
|
GET_VERSION: 'gala_launchpad_get_version',
|
|
110
117
|
};
|
|
111
118
|
/**
|
|
112
|
-
* DEX Trading & Pool Discovery Tools (
|
|
119
|
+
* DEX Trading & Pool Discovery Tools (12 tools)
|
|
113
120
|
*/
|
|
114
121
|
exports.DEX_TOOLS = {
|
|
115
122
|
FETCH_DEX_POOLS: 'gala_launchpad_fetch_dex_pools',
|
|
116
123
|
FETCH_ALL_DEX_POOLS: 'gala_launchpad_fetch_all_dex_pools',
|
|
124
|
+
FETCH_DEX_AGGREGATED_VOLUME_SUMMARY: 'gala_launchpad_fetch_dex_aggregated_volume_summary',
|
|
125
|
+
FETCH_ALL_DEX_SEASONS: 'gala_launchpad_fetch_all_dex_seasons',
|
|
126
|
+
FETCH_CURRENT_DEX_SEASON: 'gala_launchpad_fetch_current_dex_season',
|
|
127
|
+
FETCH_DEX_LEADERBOARD_BY_SEASON_ID: 'gala_launchpad_fetch_dex_leaderboard_by_season_id',
|
|
128
|
+
FETCH_CURRENT_DEX_LEADERBOARD: 'gala_launchpad_fetch_current_dex_leaderboard',
|
|
117
129
|
GET_SWAP_QUOTE_EXACT_INPUT: 'gala_launchpad_get_swap_quote_exact_input',
|
|
118
130
|
GET_SWAP_QUOTE_EXACT_OUTPUT: 'gala_launchpad_get_swap_quote_exact_output',
|
|
119
131
|
EXECUTE_SWAP: 'gala_launchpad_execute_swap',
|
|
@@ -152,6 +164,8 @@ exports.MCP_TOOLS = {
|
|
|
152
164
|
...exports.SOCIAL_TOOLS,
|
|
153
165
|
// Token Transfers
|
|
154
166
|
...exports.TRANSFER_TOOLS,
|
|
167
|
+
// Token Locks
|
|
168
|
+
...exports.LOCK_TOOLS,
|
|
155
169
|
// Utilities
|
|
156
170
|
...exports.UTILITY_TOOLS,
|
|
157
171
|
// DEX Trading
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpToolNames.js","sourceRoot":"","sources":["../../src/constants/mcpToolNames.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;
|
|
1
|
+
{"version":3,"file":"mcpToolNames.js","sourceRoot":"","sources":["../../src/constants/mcpToolNames.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,kBAAkB,GAAG,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-pools.d.ts","sourceRoot":"","sources":["../../src/prompts/advanced-pools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"advanced-pools.d.ts","sourceRoot":"","sources":["../../src/prompts/advanced-pools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAKjD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAqEpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,EAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-pools.js","sourceRoot":"","sources":["../../src/prompts/advanced-pools.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,kEAAyD;AACzD,0DAA2D;AAC3D,iEAAiE;
|
|
1
|
+
{"version":3,"file":"advanced-pools.js","sourceRoot":"","sources":["../../src/prompts/advanced-pools.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,kEAAyD;AACzD,0DAA2D;AAC3D,iEAAiE;AAEjE;;;;;GAKG;AACU,QAAA,sBAAsB,GAAc;IAC/C,IAAI,EAAE,wCAAwC;IAC9C,WAAW,EACT,8GAA8G;IAChH,SAAS,EAAE;QACT;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,iDAAiD;YAC9D,QAAQ,EAAE,IAAI;SACf;KACF;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QAChB,IAAA,iCAAiB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAElC,OAAO,IAAA,wCAAoB,EAAC,sDAAsD,IAAI,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwC5F,2BAAS,CAAC,kCAAkC;QAC5C,2BAAS,CAAC,mCAAmC;QAC7C,2BAAS,CAAC,wBAAwB;;;;;;;;;IAStC,2BAAS,CAAC,kBAAkB;;oCAEI,CAAC,CAAC;IACpC,CAAC;CACF,CAAC;AAEF;;GAEG;AACU,QAAA,mBAAmB,GAAgB,CAAC,8BAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DEX Leaderboard Prompts
|
|
3
|
+
*
|
|
4
|
+
* Slash commands for discovering DEX leaderboard seasons and player rankings.
|
|
5
|
+
* Provides access to seasonal competitions, rankings, and achievement tracking.
|
|
6
|
+
*/
|
|
7
|
+
import type { MCPPrompt } from '../types/mcp.js';
|
|
8
|
+
/**
|
|
9
|
+
* Fetch All DEX Seasons
|
|
10
|
+
*
|
|
11
|
+
* Returns all available leaderboard seasons with dates and rules.
|
|
12
|
+
* Used to explore which seasons have occurred and their date ranges.
|
|
13
|
+
*/
|
|
14
|
+
export declare const fetchAllDexSeasonsPrompt: MCPPrompt;
|
|
15
|
+
/**
|
|
16
|
+
* Fetch Current DEX Season
|
|
17
|
+
*
|
|
18
|
+
* Returns the currently active leaderboard season.
|
|
19
|
+
* Automatically determines which season is active based on current date.
|
|
20
|
+
*/
|
|
21
|
+
export declare const fetchCurrentDexSeasonPrompt: MCPPrompt;
|
|
22
|
+
/**
|
|
23
|
+
* Fetch DEX Leaderboard by Season ID
|
|
24
|
+
*
|
|
25
|
+
* Returns the complete leaderboard rankings for a specific season.
|
|
26
|
+
* Includes player ranks, XP metrics, and mastery achievements.
|
|
27
|
+
*/
|
|
28
|
+
export declare const fetchDexLeaderboardBySeasonIdPrompt: MCPPrompt;
|
|
29
|
+
/**
|
|
30
|
+
* Fetch Current DEX Leaderboard
|
|
31
|
+
*
|
|
32
|
+
* Returns the leaderboard rankings for the currently active season.
|
|
33
|
+
* Combines current season detection with leaderboard retrieval.
|
|
34
|
+
*/
|
|
35
|
+
export declare const fetchCurrentDexLeaderboardPrompt: MCPPrompt;
|
|
36
|
+
/**
|
|
37
|
+
* Export all DEX leaderboard prompts
|
|
38
|
+
*/
|
|
39
|
+
export declare const dexLeaderboardPrompts: MCPPrompt[];
|
|
40
|
+
//# sourceMappingURL=dex-leaderboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dex-leaderboard.d.ts","sourceRoot":"","sources":["../../src/prompts/dex-leaderboard.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIjD;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAmCtC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,EAAE,SAwCzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,EAAE,SAiEjD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,EAAE,SA4D9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,EAK5C,CAAC"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DEX Leaderboard Prompts
|
|
4
|
+
*
|
|
5
|
+
* Slash commands for discovering DEX leaderboard seasons and player rankings.
|
|
6
|
+
* Provides access to seasonal competitions, rankings, and achievement tracking.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.dexLeaderboardPrompts = exports.fetchCurrentDexLeaderboardPrompt = exports.fetchDexLeaderboardBySeasonIdPrompt = exports.fetchCurrentDexSeasonPrompt = exports.fetchAllDexSeasonsPrompt = void 0;
|
|
10
|
+
const mcpToolNames_js_1 = require("../constants/mcpToolNames.js");
|
|
11
|
+
const handlerHelpers_js_1 = require("./utils/handlerHelpers.js");
|
|
12
|
+
/**
|
|
13
|
+
* Fetch All DEX Seasons
|
|
14
|
+
*
|
|
15
|
+
* Returns all available leaderboard seasons with dates and rules.
|
|
16
|
+
* Used to explore which seasons have occurred and their date ranges.
|
|
17
|
+
*/
|
|
18
|
+
exports.fetchAllDexSeasonsPrompt = {
|
|
19
|
+
name: 'galachain-launchpad:fetch-all-dex-seasons',
|
|
20
|
+
description: 'Fetch all DEX leaderboard seasons - explore season dates and rules',
|
|
21
|
+
arguments: [],
|
|
22
|
+
handler: () => {
|
|
23
|
+
return (0, handlerHelpers_js_1.createPromptResponse)(`I want to explore all available DEX leaderboard seasons.
|
|
24
|
+
|
|
25
|
+
**Purpose:**
|
|
26
|
+
Get a comprehensive list of all DEX seasons that have occurred or are planned.
|
|
27
|
+
|
|
28
|
+
**Data to Retrieve:**
|
|
29
|
+
- Season IDs and names
|
|
30
|
+
- Start and end dates for each season
|
|
31
|
+
- Rules ID for season-specific rules
|
|
32
|
+
- Season status (active, upcoming, completed)
|
|
33
|
+
|
|
34
|
+
**Information Provided:**
|
|
35
|
+
- Complete history of DEX competitive seasons
|
|
36
|
+
- Date ranges for planning participation
|
|
37
|
+
- Season structure and progression
|
|
38
|
+
|
|
39
|
+
**Use Cases:**
|
|
40
|
+
1. **Historical Analysis**: See past seasons and their date ranges
|
|
41
|
+
2. **Season Selection**: Choose which season's leaderboard to view
|
|
42
|
+
3. **Planning**: Find upcoming seasons and prepare for competition
|
|
43
|
+
4. **Archive Research**: Look at completed seasons for trends
|
|
44
|
+
|
|
45
|
+
**Related Operations:**
|
|
46
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_CURRENT_DEX_SEASON} to get the currently active season
|
|
47
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_DEX_LEADERBOARD_BY_SEASON_ID} to view rankings for a specific season
|
|
48
|
+
|
|
49
|
+
Please fetch all available DEX leaderboard seasons.`);
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Fetch Current DEX Season
|
|
54
|
+
*
|
|
55
|
+
* Returns the currently active leaderboard season.
|
|
56
|
+
* Automatically determines which season is active based on current date.
|
|
57
|
+
*/
|
|
58
|
+
exports.fetchCurrentDexSeasonPrompt = {
|
|
59
|
+
name: 'galachain-launchpad:fetch-current-dex-season',
|
|
60
|
+
description: 'Fetch the currently active DEX leaderboard season',
|
|
61
|
+
arguments: [],
|
|
62
|
+
handler: () => {
|
|
63
|
+
return (0, handlerHelpers_js_1.createPromptResponse)(`I want to find the currently active DEX leaderboard season.
|
|
64
|
+
|
|
65
|
+
**Purpose:**
|
|
66
|
+
Get information about which season is currently running on the DEX leaderboard.
|
|
67
|
+
|
|
68
|
+
**Data to Retrieve:**
|
|
69
|
+
- Current season ID and name
|
|
70
|
+
- Season start date and end date
|
|
71
|
+
- Season rules ID
|
|
72
|
+
- Active status confirmation
|
|
73
|
+
|
|
74
|
+
**Information Provided:**
|
|
75
|
+
- Which season is currently active
|
|
76
|
+
- When the current season started and ends
|
|
77
|
+
- Deadline for leaderboard participation
|
|
78
|
+
|
|
79
|
+
**Use Cases:**
|
|
80
|
+
1. **Current Competition**: Find active season for real-time rankings
|
|
81
|
+
2. **Timing Check**: Verify if a season is still active
|
|
82
|
+
3. **Deadline Planning**: Know when current season ends
|
|
83
|
+
4. **Competition Status**: Confirm if participation is still open
|
|
84
|
+
|
|
85
|
+
**Edge Cases:**
|
|
86
|
+
- Returns null if no season is currently active (off-season period)
|
|
87
|
+
- Graceful handling of transition periods between seasons
|
|
88
|
+
|
|
89
|
+
**Related Operations:**
|
|
90
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_ALL_DEX_SEASONS} to see all seasons including past and future
|
|
91
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_CURRENT_DEX_LEADERBOARD} to get rankings for the current season
|
|
92
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_DEX_LEADERBOARD_BY_SEASON_ID} to view a specific season's rankings
|
|
93
|
+
|
|
94
|
+
Please fetch the currently active DEX leaderboard season.`);
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Fetch DEX Leaderboard by Season ID
|
|
99
|
+
*
|
|
100
|
+
* Returns the complete leaderboard rankings for a specific season.
|
|
101
|
+
* Includes player ranks, XP metrics, and mastery achievements.
|
|
102
|
+
*/
|
|
103
|
+
exports.fetchDexLeaderboardBySeasonIdPrompt = {
|
|
104
|
+
name: 'galachain-launchpad:fetch-dex-leaderboard-by-season-id',
|
|
105
|
+
description: 'Fetch DEX leaderboard rankings for a specific season',
|
|
106
|
+
arguments: [
|
|
107
|
+
{
|
|
108
|
+
name: 'seasonId',
|
|
109
|
+
description: 'Season ID to fetch leaderboard for (e.g., 4 for Season 1)',
|
|
110
|
+
required: true,
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
handler: (args) => {
|
|
114
|
+
const seasonId = args.seasonId || 4;
|
|
115
|
+
return (0, handlerHelpers_js_1.createPromptResponse)(`I want to view the DEX leaderboard rankings for season ${seasonId}.
|
|
116
|
+
|
|
117
|
+
**Purpose:**
|
|
118
|
+
Get complete leaderboard rankings with XP metrics and achievements for a specific season.
|
|
119
|
+
|
|
120
|
+
**Season Information:**
|
|
121
|
+
- Season ID: ${seasonId}
|
|
122
|
+
|
|
123
|
+
**Data to Retrieve:**
|
|
124
|
+
- Player rankings and positions
|
|
125
|
+
- Total XP earned (combined liquidity + trading XP)
|
|
126
|
+
- Liquidity XP contribution
|
|
127
|
+
- Trading XP contribution
|
|
128
|
+
- Distribution percentage of total XP
|
|
129
|
+
- Mastery titles and achievements earned
|
|
130
|
+
|
|
131
|
+
**Leaderboard Details:**
|
|
132
|
+
- Ranked list of all participants
|
|
133
|
+
- XP breakdown by activity type (liquidity vs trading)
|
|
134
|
+
- Achievement/title tracking
|
|
135
|
+
- Top performers and their metrics
|
|
136
|
+
|
|
137
|
+
**Information Provided:**
|
|
138
|
+
- Complete season rankings
|
|
139
|
+
- XP earned by each player
|
|
140
|
+
- Achievement status (mastery titles)
|
|
141
|
+
- Performance metrics for analysis
|
|
142
|
+
|
|
143
|
+
**Use Cases:**
|
|
144
|
+
1. **Rankings Check**: See current rankings for the season
|
|
145
|
+
2. **Top Performers**: Identify leading players and their strategies
|
|
146
|
+
3. **Progress Comparison**: Compare your rank to others
|
|
147
|
+
4. **Achievement Tracking**: View earned mastery titles
|
|
148
|
+
5. **Historical Analysis**: Look at completed season rankings
|
|
149
|
+
6. **Competitive Research**: Study successful player patterns
|
|
150
|
+
|
|
151
|
+
**Key Metrics:**
|
|
152
|
+
- **totalXp**: Combined points from liquidity and trading activities
|
|
153
|
+
- **liquidityXp**: Points earned from providing liquidity
|
|
154
|
+
- **tradingXp**: Points earned from swap/trading volume
|
|
155
|
+
- **distributionPercent**: Player's share of total XP pool
|
|
156
|
+
- **masteryTitles**: Achievements unlocked (liquidity or trading focused)
|
|
157
|
+
|
|
158
|
+
**Related Operations:**
|
|
159
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_ALL_DEX_SEASONS} to find valid season IDs
|
|
160
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_CURRENT_DEX_LEADERBOARD} for quick access to current season rankings
|
|
161
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_CURRENT_DEX_SEASON} to get the active season ID
|
|
162
|
+
|
|
163
|
+
Please fetch the leaderboard for season ${seasonId}.`);
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Fetch Current DEX Leaderboard
|
|
168
|
+
*
|
|
169
|
+
* Returns the leaderboard rankings for the currently active season.
|
|
170
|
+
* Combines current season detection with leaderboard retrieval.
|
|
171
|
+
*/
|
|
172
|
+
exports.fetchCurrentDexLeaderboardPrompt = {
|
|
173
|
+
name: 'galachain-launchpad:fetch-current-dex-leaderboard',
|
|
174
|
+
description: 'Fetch DEX leaderboard rankings for the currently active season',
|
|
175
|
+
arguments: [],
|
|
176
|
+
handler: () => {
|
|
177
|
+
return (0, handlerHelpers_js_1.createPromptResponse)(`I want to view the DEX leaderboard rankings for the currently active season.
|
|
178
|
+
|
|
179
|
+
**Purpose:**
|
|
180
|
+
Get real-time leaderboard rankings for the season that is active right now.
|
|
181
|
+
|
|
182
|
+
**Data to Retrieve:**
|
|
183
|
+
- Current season information (auto-detected)
|
|
184
|
+
- Player rankings and positions
|
|
185
|
+
- Total XP earned by each player
|
|
186
|
+
- Liquidity XP and Trading XP breakdown
|
|
187
|
+
- Distribution percentages
|
|
188
|
+
- Mastery titles and achievements
|
|
189
|
+
|
|
190
|
+
**Leaderboard Features:**
|
|
191
|
+
- Automatically finds the active season
|
|
192
|
+
- Complete rankings of all participants
|
|
193
|
+
- Real-time XP metrics
|
|
194
|
+
- Achievement tracking
|
|
195
|
+
- Top performer summaries
|
|
196
|
+
|
|
197
|
+
**Information Provided:**
|
|
198
|
+
- Current season name and ID
|
|
199
|
+
- Live leaderboard positions
|
|
200
|
+
- XP earned by each player
|
|
201
|
+
- Mastery achievements and titles
|
|
202
|
+
- Performance distribution
|
|
203
|
+
|
|
204
|
+
**Use Cases:**
|
|
205
|
+
1. **Live Rankings**: See current competitive standings
|
|
206
|
+
2. **Find Myself**: Locate your position on the leaderboard
|
|
207
|
+
3. **Top Players**: Identify current season leaders
|
|
208
|
+
4. **Achievement View**: See earned mastery titles
|
|
209
|
+
5. **Quick Check**: Fastest way to see active season rankings
|
|
210
|
+
6. **Real-Time Tracking**: Monitor ongoing competition progress
|
|
211
|
+
|
|
212
|
+
**Return Values:**
|
|
213
|
+
- **currentSeason**: The season that is active (or null if no active season)
|
|
214
|
+
- **totalEntries**: Number of players in current rankings
|
|
215
|
+
- **topEntries**: Top 5 ranked players (quick summary)
|
|
216
|
+
- **topPlayer**: #1 ranked player with detailed stats
|
|
217
|
+
|
|
218
|
+
**Related Operations:**
|
|
219
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_CURRENT_DEX_SEASON} to just get season info
|
|
220
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_ALL_DEX_SEASONS} to see all seasons
|
|
221
|
+
- Use ${mcpToolNames_js_1.MCP_TOOLS.FETCH_DEX_LEADERBOARD_BY_SEASON_ID} to view a specific season
|
|
222
|
+
|
|
223
|
+
**Edge Case:**
|
|
224
|
+
- If no season is currently active, returns null (off-season period)
|
|
225
|
+
- Graceful handling ensures clean error reporting
|
|
226
|
+
|
|
227
|
+
Please fetch the current DEX leaderboard rankings.`);
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Export all DEX leaderboard prompts
|
|
232
|
+
*/
|
|
233
|
+
exports.dexLeaderboardPrompts = [
|
|
234
|
+
exports.fetchAllDexSeasonsPrompt,
|
|
235
|
+
exports.fetchCurrentDexSeasonPrompt,
|
|
236
|
+
exports.fetchDexLeaderboardBySeasonIdPrompt,
|
|
237
|
+
exports.fetchCurrentDexLeaderboardPrompt,
|
|
238
|
+
];
|
|
239
|
+
//# sourceMappingURL=dex-leaderboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dex-leaderboard.js","sourceRoot":"","sources":["../../src/prompts/dex-leaderboard.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,kEAAyD;AACzD,iEAAiE;AAEjE;;;;;GAKG;AACU,QAAA,wBAAwB,GAAc;IACjD,IAAI,EAAE,2CAA2C;IACjD,WAAW,EAAE,oEAAoE;IACjF,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,GAAG,EAAE;QACZ,OAAO,IAAA,wCAAoB,EACzB;;;;;;;;;;;;;;;;;;;;;;;QAuBE,2BAAS,CAAC,wBAAwB;QAClC,2BAAS,CAAC,kCAAkC;;oDAEA,CAC/C,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;;;;GAKG;AACU,QAAA,2BAA2B,GAAc;IACpD,IAAI,EAAE,8CAA8C;IACpD,WAAW,EAAE,mDAAmD;IAChE,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,GAAG,EAAE;QACZ,OAAO,IAAA,wCAAoB,EACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2BE,2BAAS,CAAC,qBAAqB;QAC/B,2BAAS,CAAC,6BAA6B;QACvC,2BAAS,CAAC,kCAAkC;;0DAEM,CACrD,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;;;;GAKG;AACU,QAAA,mCAAmC,GAAc;IAC5D,IAAI,EAAE,wDAAwD;IAC9D,WAAW,EAAE,sDAAsD;IACnE,SAAS,EAAE;QACT;YACE,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,2DAA2D;YACxE,QAAQ,EAAE,IAAI;SACf;KACF;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QAChB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC;QAEpC,OAAO,IAAA,wCAAoB,EACzB,0DAA0D,QAAQ;;;;;;eAMzD,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAsCf,2BAAS,CAAC,qBAAqB;QAC/B,2BAAS,CAAC,6BAA6B;QACvC,2BAAS,CAAC,wBAAwB;;0CAEA,QAAQ,GAAG,CAChD,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;;;;GAKG;AACU,QAAA,gCAAgC,GAAc;IACzD,IAAI,EAAE,mDAAmD;IACzD,WAAW,EACT,gEAAgE;IAClE,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,GAAG,EAAE;QACZ,OAAO,IAAA,wCAAoB,EACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA0CE,2BAAS,CAAC,wBAAwB;QAClC,2BAAS,CAAC,qBAAqB;QAC/B,2BAAS,CAAC,kCAAkC;;;;;;mDAMD,CAC9C,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;GAEG;AACU,QAAA,qBAAqB,GAAgB;IAChD,gCAAwB;IACxB,mCAA2B;IAC3B,2CAAmC;IACnC,wCAAgC;CACjC,CAAC"}
|