@gala-chain/launchpad-mcp-server 1.17.4 → 1.17.5
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.17.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix: Remove 7 unnecessary escape characters (\$) in SDK usage examples - $ does not need escaping
|
|
8
|
+
in template literals when not part of ${} Fix: Remove 3 unused imports in SDK and diagnostic
|
|
9
|
+
scripts
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @gala-chain/launchpad-sdk@3.22.5
|
|
12
|
+
|
|
3
13
|
## 1.17.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -220,9 +220,9 @@ async function getDexTokenPrices() {
|
|
|
220
220
|
// Fetch prices for multiple DEX tokens
|
|
221
221
|
const prices = await sdk.fetchTokenSpotPrice(['GALA', 'SILK', 'MUSIC']);
|
|
222
222
|
|
|
223
|
-
console.log(\`GALA:
|
|
224
|
-
console.log(\`SILK:
|
|
225
|
-
console.log(\`MUSIC:
|
|
223
|
+
console.log(\`GALA: $\${prices.GALA}\`);
|
|
224
|
+
console.log(\`SILK: $\${prices.SILK}\`);
|
|
225
|
+
console.log(\`MUSIC: $\${prices.MUSIC}\`);
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
// 7. LAUNCHPAD TOKEN SPOT PRICES
|
|
@@ -232,7 +232,7 @@ async function getLaunchpadTokenPrice(tokenName) {
|
|
|
232
232
|
// Get USD spot price for a launchpad token (anime, woohoo, etc.)
|
|
233
233
|
const price = await sdk.fetchLaunchpadTokenSpotPrice(tokenName);
|
|
234
234
|
|
|
235
|
-
console.log(\`\${tokenName} price:
|
|
235
|
+
console.log(\`\${tokenName} price: $\${price}\`);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
// 8. RESOLVE UTILITY ADDRESSES
|
|
@@ -267,7 +267,7 @@ async function analyzeToken(tokenName) {
|
|
|
267
267
|
// Analyze volume trend
|
|
268
268
|
const volumes = volumeData.map(v => parseFloat(v.volume));
|
|
269
269
|
const avgVolume = volumes.reduce((a, b) => a + b, 0) / volumes.length;
|
|
270
|
-
console.log(\`Avg daily volume:
|
|
270
|
+
console.log(\`Avg daily volume: $\${avgVolume.toFixed(2)}\`);
|
|
271
271
|
|
|
272
272
|
// Analyze distribution
|
|
273
273
|
const top5Ownership = distribution.holders
|
|
@@ -799,7 +799,7 @@ async function analyzePriceHistory() {
|
|
|
799
799
|
const variance = prices.reduce((sum, p) => sum + Math.pow(p - avg, 2), 0) / prices.length;
|
|
800
800
|
const volatility = Math.sqrt(variance);
|
|
801
801
|
|
|
802
|
-
console.log(\`Average:
|
|
802
|
+
console.log(\`Average: $\${avg.toFixed(4)}, Volatility: $\${volatility.toFixed(4)}\`);
|
|
803
803
|
|
|
804
804
|
// Data export (CSV)
|
|
805
805
|
const csv = ['timestamp,price'].concat(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gala-chain/launchpad-mcp-server",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.5",
|
|
4
4
|
"description": "MCP server for Gala Launchpad SDK with 55 tools + 14 slash commands - Production-grade AI agent integration with comprehensive validation, optimized performance, and 80%+ test coverage",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@gala-chain/api": "^2.4.3",
|
|
66
66
|
"@gala-chain/connect": "^2.4.3",
|
|
67
|
-
"@gala-chain/launchpad-sdk": "^3.22.
|
|
67
|
+
"@gala-chain/launchpad-sdk": "^3.22.5",
|
|
68
68
|
"@modelcontextprotocol/sdk": "^0.5.0",
|
|
69
69
|
"axios": "^1.12.2",
|
|
70
70
|
"bignumber.js": "^9.1.2",
|