@gala-chain/launchpad-mcp-server 4.0.7-beta.1 → 4.0.7-beta.11
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/MCP_TEST_ANALYSIS.md +216 -15
- package/dist/constants/mcpToolNames.d.ts +28 -1
- package/dist/constants/mcpToolNames.d.ts.map +1 -1
- package/dist/constants/mcpToolNames.js +22 -2
- 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/bridge.d.ts +52 -0
- package/dist/prompts/bridge.d.ts.map +1 -0
- package/dist/prompts/bridge.js +395 -0
- package/dist/prompts/bridge.js.map +1 -0
- package/dist/prompts/index.d.ts +6 -5
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +9 -4
- package/dist/prompts/index.js.map +1 -1
- package/dist/tools/bridge/index.d.ts +22 -0
- package/dist/tools/bridge/index.d.ts.map +1 -0
- package/dist/tools/bridge/index.js +361 -0
- package/dist/tools/bridge/index.js.map +1 -0
- package/dist/tools/index.d.ts +3 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +10 -3
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/utils/explainSdkUsage.d.ts.map +1 -1
- package/dist/tools/utils/explainSdkUsage.js +88 -2
- package/dist/tools/utils/explainSdkUsage.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Bridge Prompts (Slash Commands)
|
|
4
|
+
*
|
|
5
|
+
* Cross-chain bridging commands for GalaChain ↔ Ethereum and GalaChain ↔ Solana
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.bridgePrompts = exports.solanaAllBalancesPrompt = exports.ethereumAllBalancesPrompt = exports.solanaNativeBalancePrompt = exports.solanaTokenBalancePrompt = exports.ethereumNativeBalancePrompt = exports.ethereumTokenBalancePrompt = exports.bridgeStatusPrompt = exports.bridgeInPrompt = exports.bridgeOutPrompt = exports.estimateBridgeFeePrompt = exports.supportedBridgeTokensPrompt = void 0;
|
|
9
|
+
const mcpToolNames_js_1 = require("../constants/mcpToolNames.js");
|
|
10
|
+
const validation_js_1 = require("../utils/validation.js");
|
|
11
|
+
const handlerHelpers_js_1 = require("./utils/handlerHelpers.js");
|
|
12
|
+
const textTemplates_js_1 = require("./utils/textTemplates.js");
|
|
13
|
+
/**
|
|
14
|
+
* Get Supported Bridge Tokens - List all tokens supported for cross-chain bridging
|
|
15
|
+
*/
|
|
16
|
+
exports.supportedBridgeTokensPrompt = {
|
|
17
|
+
name: 'galachain-launchpad:bridge-tokens',
|
|
18
|
+
description: 'List all tokens supported for cross-chain bridging',
|
|
19
|
+
arguments: [
|
|
20
|
+
{
|
|
21
|
+
name: 'chain',
|
|
22
|
+
description: 'Filter by chain: Ethereum or Solana (optional)',
|
|
23
|
+
required: false,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
handler: (args) => {
|
|
27
|
+
const chainFilter = args.chain;
|
|
28
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
29
|
+
operation: 'List supported bridge tokens and chains.',
|
|
30
|
+
parameters: chainFilter ? { chain: `Chain Filter: ${chainFilter}` } : {},
|
|
31
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.GET_SUPPORTED_BRIDGE_TOKENS,
|
|
32
|
+
actionDescription: chainFilter
|
|
33
|
+
? `fetch supported tokens filtered by chain="${chainFilter}"`
|
|
34
|
+
: 'fetch all supported tokens',
|
|
35
|
+
displayFormat: 'Display tokens with symbols, decimals, and supported chains.',
|
|
36
|
+
}));
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Estimate Bridge Fee - Estimate fees for bridging tokens to Ethereum or Solana
|
|
41
|
+
*/
|
|
42
|
+
exports.estimateBridgeFeePrompt = {
|
|
43
|
+
name: 'galachain-launchpad:bridge-fee',
|
|
44
|
+
description: 'Estimate fees for bridging tokens to Ethereum or Solana',
|
|
45
|
+
arguments: [
|
|
46
|
+
{
|
|
47
|
+
name: 'tokenSymbol',
|
|
48
|
+
description: 'Token symbol (e.g., GALA, GWETH, GUSDC)',
|
|
49
|
+
required: true,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'destinationChain',
|
|
53
|
+
description: 'Destination: Ethereum or Solana',
|
|
54
|
+
required: true,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'amount',
|
|
58
|
+
description: 'Amount to bridge (optional, for more accurate estimate)',
|
|
59
|
+
required: false,
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
handler: (args) => {
|
|
63
|
+
const parameters = {
|
|
64
|
+
token: `Token: ${args.tokenSymbol}`,
|
|
65
|
+
destination: `Destination: ${args.destinationChain}`,
|
|
66
|
+
};
|
|
67
|
+
if (args.amount) {
|
|
68
|
+
(0, validation_js_1.validateNumericAmount)(args.amount, 'amount');
|
|
69
|
+
parameters.amount = `Amount: ${args.amount}`;
|
|
70
|
+
}
|
|
71
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
72
|
+
operation: 'Estimate bridge fees.',
|
|
73
|
+
parameters,
|
|
74
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.ESTIMATE_BRIDGE_FEE,
|
|
75
|
+
actionDescription: 'estimate the bridge fee',
|
|
76
|
+
displayFormat: 'Display total fee, gas fee, and bridge fee breakdown.',
|
|
77
|
+
}));
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Bridge Out - Bridge tokens from GalaChain to Ethereum or Solana
|
|
82
|
+
*/
|
|
83
|
+
exports.bridgeOutPrompt = {
|
|
84
|
+
name: 'galachain-launchpad:bridge-out',
|
|
85
|
+
description: 'Bridge tokens from GalaChain to Ethereum or Solana',
|
|
86
|
+
arguments: [
|
|
87
|
+
{
|
|
88
|
+
name: 'tokenSymbol',
|
|
89
|
+
description: 'Token symbol (e.g., GALA, GWETH)',
|
|
90
|
+
required: true,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'amount',
|
|
94
|
+
description: 'Amount to bridge',
|
|
95
|
+
required: true,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'destinationChain',
|
|
99
|
+
description: 'Destination: Ethereum or Solana',
|
|
100
|
+
required: true,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'recipientAddress',
|
|
104
|
+
description: 'Recipient address on destination chain',
|
|
105
|
+
required: true,
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
handler: (args) => {
|
|
109
|
+
(0, validation_js_1.validateNumericAmount)(args.amount, 'amount');
|
|
110
|
+
// Note: Address validation skipped - backend validates format based on destinationChain
|
|
111
|
+
// (Ethereum: 0x... format, Solana: base58 format)
|
|
112
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
113
|
+
operation: 'Bridge tokens from GalaChain to external chain.',
|
|
114
|
+
parameters: {
|
|
115
|
+
token: `Token: ${args.tokenSymbol}`,
|
|
116
|
+
amount: `Amount: ${args.amount}`,
|
|
117
|
+
destination: `Destination: ${args.destinationChain}`,
|
|
118
|
+
recipient: `Recipient: ${args.recipientAddress}`,
|
|
119
|
+
},
|
|
120
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.BRIDGE_OUT,
|
|
121
|
+
actionDescription: 'execute the bridge out transaction',
|
|
122
|
+
displayFormat: 'Display transaction hash and status. Note: Bridge operations may take several minutes.',
|
|
123
|
+
}));
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Bridge In - Bridge tokens from Ethereum or Solana to GalaChain
|
|
128
|
+
*/
|
|
129
|
+
exports.bridgeInPrompt = {
|
|
130
|
+
name: 'galachain-launchpad:bridge-in',
|
|
131
|
+
description: 'Bridge tokens from Ethereum or Solana to GalaChain',
|
|
132
|
+
arguments: [
|
|
133
|
+
{
|
|
134
|
+
name: 'tokenSymbol',
|
|
135
|
+
description: 'Token symbol (e.g., GALA, GWETH)',
|
|
136
|
+
required: true,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'amount',
|
|
140
|
+
description: 'Amount to bridge',
|
|
141
|
+
required: true,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'sourceChain',
|
|
145
|
+
description: 'Source chain: Ethereum or Solana',
|
|
146
|
+
required: true,
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
handler: (args) => {
|
|
150
|
+
(0, validation_js_1.validateNumericAmount)(args.amount, 'amount');
|
|
151
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
152
|
+
operation: 'Bridge tokens from external chain to GalaChain.',
|
|
153
|
+
parameters: {
|
|
154
|
+
token: `Token: ${args.tokenSymbol}`,
|
|
155
|
+
amount: `Amount: ${args.amount}`,
|
|
156
|
+
source: `Source: ${args.sourceChain}`,
|
|
157
|
+
},
|
|
158
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.BRIDGE_IN,
|
|
159
|
+
actionDescription: 'execute the bridge in transaction',
|
|
160
|
+
displayFormat: 'Display transaction hash and status. Note: Bridge operations may take several minutes.',
|
|
161
|
+
}));
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Get Bridge Status - Check the status of a bridge transaction
|
|
166
|
+
*/
|
|
167
|
+
exports.bridgeStatusPrompt = {
|
|
168
|
+
name: 'galachain-launchpad:bridge-status',
|
|
169
|
+
description: 'Check the status of a bridge transaction',
|
|
170
|
+
arguments: [
|
|
171
|
+
{
|
|
172
|
+
name: 'transactionHash',
|
|
173
|
+
description: 'Transaction hash from bridge operation',
|
|
174
|
+
required: true,
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'chainHint',
|
|
178
|
+
description: 'Chain hint for faster lookup: Ethereum or Solana (optional)',
|
|
179
|
+
required: false,
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
handler: (args) => {
|
|
183
|
+
const parameters = {
|
|
184
|
+
txHash: `Transaction: ${args.transactionHash}`,
|
|
185
|
+
};
|
|
186
|
+
if (args.chainHint) {
|
|
187
|
+
parameters.chain = `Chain Hint: ${args.chainHint}`;
|
|
188
|
+
}
|
|
189
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
190
|
+
operation: 'Check bridge transaction status.',
|
|
191
|
+
parameters,
|
|
192
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.GET_BRIDGE_STATUS,
|
|
193
|
+
actionDescription: 'fetch the bridge status',
|
|
194
|
+
displayFormat: 'Display status code, description, and completion state.',
|
|
195
|
+
}));
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
// ============================================================================
|
|
199
|
+
// SINGLE TOKEN BALANCE PROMPTS (Fast - 1 RPC call each)
|
|
200
|
+
// ============================================================================
|
|
201
|
+
/**
|
|
202
|
+
* Fetch Ethereum Token Balance - Get single ERC-20 token balance
|
|
203
|
+
*/
|
|
204
|
+
exports.ethereumTokenBalancePrompt = {
|
|
205
|
+
name: 'galachain-launchpad:eth-token-balance',
|
|
206
|
+
description: 'Get single ERC-20 token balance on Ethereum (GALA, GWETH, GUSDC, GUSDT, GWTRX, GWBTC)',
|
|
207
|
+
arguments: [
|
|
208
|
+
{
|
|
209
|
+
name: 'symbol',
|
|
210
|
+
description: 'Token symbol (GALA, GWETH, GUSDC, GUSDT, GWTRX, or GWBTC)',
|
|
211
|
+
required: true,
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'address',
|
|
215
|
+
description: 'Ethereum address (0x format). Defaults to configured wallet.',
|
|
216
|
+
required: false,
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
handler: (args) => {
|
|
220
|
+
const parameters = {
|
|
221
|
+
symbol: `Token: ${args.symbol}`,
|
|
222
|
+
};
|
|
223
|
+
if (args.address) {
|
|
224
|
+
parameters.address = `Address: ${args.address}`;
|
|
225
|
+
}
|
|
226
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
227
|
+
operation: 'Fetch single ERC-20 token balance on Ethereum.',
|
|
228
|
+
parameters,
|
|
229
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_ETHEREUM_WALLET_TOKEN_BALANCE,
|
|
230
|
+
actionDescription: 'fetch single Ethereum token balance',
|
|
231
|
+
displayFormat: 'Display token symbol, balance amount, decimals, and contract address.',
|
|
232
|
+
}));
|
|
233
|
+
},
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Fetch Ethereum Native Balance - Get native ETH balance only
|
|
237
|
+
*/
|
|
238
|
+
exports.ethereumNativeBalancePrompt = {
|
|
239
|
+
name: 'galachain-launchpad:eth-native-balance',
|
|
240
|
+
description: 'Get native ETH balance on Ethereum',
|
|
241
|
+
arguments: [
|
|
242
|
+
{
|
|
243
|
+
name: 'address',
|
|
244
|
+
description: 'Ethereum address (0x format). Defaults to configured wallet.',
|
|
245
|
+
required: false,
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
handler: (args) => {
|
|
249
|
+
const parameters = {};
|
|
250
|
+
if (args.address) {
|
|
251
|
+
parameters.address = `Address: ${args.address}`;
|
|
252
|
+
}
|
|
253
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
254
|
+
operation: 'Fetch native ETH balance on Ethereum.',
|
|
255
|
+
parameters,
|
|
256
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_ETHEREUM_WALLET_NATIVE_BALANCE,
|
|
257
|
+
actionDescription: 'fetch native ETH balance',
|
|
258
|
+
displayFormat: 'Display ETH balance with symbol, amount, and decimals.',
|
|
259
|
+
}));
|
|
260
|
+
},
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Fetch Solana Token Balance - Get single SPL token balance
|
|
264
|
+
*/
|
|
265
|
+
exports.solanaTokenBalancePrompt = {
|
|
266
|
+
name: 'galachain-launchpad:sol-token-balance',
|
|
267
|
+
description: 'Get single SPL token balance on Solana (GALA or GSOL)',
|
|
268
|
+
arguments: [
|
|
269
|
+
{
|
|
270
|
+
name: 'symbol',
|
|
271
|
+
description: 'Token symbol (GALA or GSOL)',
|
|
272
|
+
required: true,
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: 'address',
|
|
276
|
+
description: 'Solana address (base58 format). Defaults to configured wallet.',
|
|
277
|
+
required: false,
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
handler: (args) => {
|
|
281
|
+
const parameters = {
|
|
282
|
+
symbol: `Token: ${args.symbol}`,
|
|
283
|
+
};
|
|
284
|
+
if (args.address) {
|
|
285
|
+
parameters.address = `Address: ${args.address}`;
|
|
286
|
+
}
|
|
287
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
288
|
+
operation: 'Fetch single SPL token balance on Solana.',
|
|
289
|
+
parameters,
|
|
290
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_SOLANA_WALLET_TOKEN_BALANCE,
|
|
291
|
+
actionDescription: 'fetch single Solana token balance',
|
|
292
|
+
displayFormat: 'Display token symbol, balance amount, decimals, and mint address.',
|
|
293
|
+
}));
|
|
294
|
+
},
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Fetch Solana Native Balance - Get native SOL balance only
|
|
298
|
+
*/
|
|
299
|
+
exports.solanaNativeBalancePrompt = {
|
|
300
|
+
name: 'galachain-launchpad:sol-native-balance',
|
|
301
|
+
description: 'Get native SOL balance on Solana',
|
|
302
|
+
arguments: [
|
|
303
|
+
{
|
|
304
|
+
name: 'address',
|
|
305
|
+
description: 'Solana address (base58 format). Defaults to configured wallet.',
|
|
306
|
+
required: false,
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
handler: (args) => {
|
|
310
|
+
const parameters = {};
|
|
311
|
+
if (args.address) {
|
|
312
|
+
parameters.address = `Address: ${args.address}`;
|
|
313
|
+
}
|
|
314
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
315
|
+
operation: 'Fetch native SOL balance on Solana.',
|
|
316
|
+
parameters,
|
|
317
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_SOLANA_WALLET_NATIVE_BALANCE,
|
|
318
|
+
actionDescription: 'fetch native SOL balance',
|
|
319
|
+
displayFormat: 'Display SOL balance with symbol, amount, and decimals.',
|
|
320
|
+
}));
|
|
321
|
+
},
|
|
322
|
+
};
|
|
323
|
+
// ============================================================================
|
|
324
|
+
// ALL TOKENS BALANCE PROMPTS (Complete portfolio view - multiple RPC calls)
|
|
325
|
+
// ============================================================================
|
|
326
|
+
/**
|
|
327
|
+
* Fetch All Ethereum Wallet Balances - Get all supported token balances on Ethereum
|
|
328
|
+
*/
|
|
329
|
+
exports.ethereumAllBalancesPrompt = {
|
|
330
|
+
name: 'galachain-launchpad:eth-all-balances',
|
|
331
|
+
description: 'Get ALL supported token balances on Ethereum (ETH + GALA, GWETH, GUSDC, GUSDT, GWTRX, GWBTC)',
|
|
332
|
+
arguments: [
|
|
333
|
+
{
|
|
334
|
+
name: 'address',
|
|
335
|
+
description: 'Ethereum address (0x format). Defaults to configured wallet.',
|
|
336
|
+
required: false,
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
handler: (args) => {
|
|
340
|
+
const parameters = {};
|
|
341
|
+
if (args.address) {
|
|
342
|
+
parameters.address = `Address: ${args.address}`;
|
|
343
|
+
}
|
|
344
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
345
|
+
operation: 'Fetch all supported token balances on Ethereum.',
|
|
346
|
+
parameters,
|
|
347
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_ETHEREUM_WALLET_ALL_BALANCES,
|
|
348
|
+
actionDescription: 'fetch all Ethereum wallet balances',
|
|
349
|
+
displayFormat: 'Display native ETH and all supported ERC-20 token balances with symbols, amounts, and decimals.',
|
|
350
|
+
}));
|
|
351
|
+
},
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* Fetch All Solana Wallet Balances - Get all supported token balances on Solana
|
|
355
|
+
*/
|
|
356
|
+
exports.solanaAllBalancesPrompt = {
|
|
357
|
+
name: 'galachain-launchpad:sol-all-balances',
|
|
358
|
+
description: 'Get ALL supported token balances on Solana (SOL + GALA, GSOL)',
|
|
359
|
+
arguments: [
|
|
360
|
+
{
|
|
361
|
+
name: 'address',
|
|
362
|
+
description: 'Solana address (base58 format). Defaults to configured wallet.',
|
|
363
|
+
required: false,
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
handler: (args) => {
|
|
367
|
+
const parameters = {};
|
|
368
|
+
if (args.address) {
|
|
369
|
+
parameters.address = `Address: ${args.address}`;
|
|
370
|
+
}
|
|
371
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
372
|
+
operation: 'Fetch all supported token balances on Solana.',
|
|
373
|
+
parameters,
|
|
374
|
+
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_SOLANA_WALLET_ALL_BALANCES,
|
|
375
|
+
actionDescription: 'fetch all Solana wallet balances',
|
|
376
|
+
displayFormat: 'Display native SOL and all supported SPL token balances with symbols, amounts, and decimals.',
|
|
377
|
+
}));
|
|
378
|
+
},
|
|
379
|
+
};
|
|
380
|
+
exports.bridgePrompts = [
|
|
381
|
+
exports.supportedBridgeTokensPrompt,
|
|
382
|
+
exports.estimateBridgeFeePrompt,
|
|
383
|
+
exports.bridgeOutPrompt,
|
|
384
|
+
exports.bridgeInPrompt,
|
|
385
|
+
exports.bridgeStatusPrompt,
|
|
386
|
+
// Single token (fast - 1 RPC call)
|
|
387
|
+
exports.ethereumTokenBalancePrompt,
|
|
388
|
+
exports.ethereumNativeBalancePrompt,
|
|
389
|
+
exports.solanaTokenBalancePrompt,
|
|
390
|
+
exports.solanaNativeBalancePrompt,
|
|
391
|
+
// All tokens (complete portfolio)
|
|
392
|
+
exports.ethereumAllBalancesPrompt,
|
|
393
|
+
exports.solanaAllBalancesPrompt,
|
|
394
|
+
];
|
|
395
|
+
//# sourceMappingURL=bridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridge.js","sourceRoot":"","sources":["../../src/prompts/bridge.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,kEAAyD;AACzD,0DAA+D;AAC/D,iEAAiE;AACjE,+DAAqE;AAErE;;GAEG;AACU,QAAA,2BAA2B,GAAc;IACpD,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE,oDAAoD;IACjE,SAAS,EAAE;QACT;YACE,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QAChB,MAAM,WAAW,GAAG,IAAI,CAAC,KAA2B,CAAC;QAErD,OAAO,IAAA,wCAAoB,EACzB,IAAA,4CAAyB,EAAC;YACxB,SAAS,EAAE,0CAA0C;YACrD,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE;YACxE,QAAQ,EAAE,2BAAS,CAAC,2BAA2B;YAC/C,iBAAiB,EAAE,WAAW;gBAC5B,CAAC,CAAC,6CAA6C,WAAW,GAAG;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QACT;YACE,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,gEAAgE;YAC7E,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QAChB,MAAM,UAAU,GAA2B,EAAE,CAAC;QAC9C,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,UAAU,CAAC,OAAO,GAAG,YAAY,IAAI,CAAC,OAAO,EAAE,CAAC;QAClD,CAAC;QAED,OAAO,IAAA,wCAAoB,EACzB,IAAA,4CAAyB,EAAC;YACxB,SAAS,EAAE,+CAA+C;YAC1D,UAAU;YACV,QAAQ,EAAE,2BAAS,CAAC,gCAAgC;YACpD,iBAAiB,EAAE,kCAAkC;YACrD,aAAa,EACX,8FAA8F;SACjG,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC;AAEW,QAAA,aAAa,GAAgB;IACxC,mCAA2B;IAC3B,+BAAuB;IACvB,uBAAe;IACf,sBAAc;IACd,0BAAkB;IAClB,mCAAmC;IACnC,kCAA0B;IAC1B,mCAA2B;IAC3B,gCAAwB;IACxB,iCAAyB;IACzB,kCAAkC;IAClC,iCAAyB;IACzB,+BAAuB;CACxB,CAAC"}
|
package/dist/prompts/index.d.ts
CHANGED
|
@@ -23,9 +23,10 @@ import { monitoringPrompts } from './monitoring.js';
|
|
|
23
23
|
import { advancedPoolPrompts } from './advanced-pools.js';
|
|
24
24
|
import { dexLeaderboardPrompts } from './dex-leaderboard.js';
|
|
25
25
|
import { dexVolumePrompts } from './dex-volume.js';
|
|
26
|
+
import { bridgePrompts } from './bridge.js';
|
|
26
27
|
import type { MCPPrompt } from '../types/mcp.js';
|
|
27
28
|
/**
|
|
28
|
-
* All available prompts (
|
|
29
|
+
* All available prompts (94 total)
|
|
29
30
|
*/
|
|
30
31
|
export declare const prompts: MCPPrompt[];
|
|
31
32
|
/**
|
|
@@ -72,7 +73,7 @@ export declare function hasPrompt(name: string): boolean;
|
|
|
72
73
|
/**
|
|
73
74
|
* Get prompts by category
|
|
74
75
|
*
|
|
75
|
-
* @param category - Category name ('trading', 'portfolio', 'analysis', 'creation', 'discovery', 'dex', 'liquidity', 'monitoring', or '
|
|
76
|
+
* @param category - Category name ('trading', 'portfolio', 'analysis', 'creation', 'discovery', 'dex', 'liquidity', 'monitoring', 'utility', or 'bridge')
|
|
76
77
|
* @returns Array of prompts in the specified category
|
|
77
78
|
*
|
|
78
79
|
* @example
|
|
@@ -83,7 +84,7 @@ export declare function hasPrompt(name: string): boolean;
|
|
|
83
84
|
* // Returns [dexSwapPrompt]
|
|
84
85
|
* ```
|
|
85
86
|
*/
|
|
86
|
-
export declare function getPromptsByCategory(category: 'trading' | 'portfolio' | 'analysis' | 'creation' | 'discovery' | 'dex' | 'liquidity' | 'monitoring' | 'utility'): MCPPrompt[];
|
|
87
|
+
export declare function getPromptsByCategory(category: 'trading' | 'portfolio' | 'analysis' | 'creation' | 'discovery' | 'dex' | 'liquidity' | 'monitoring' | 'utility' | 'bridge'): MCPPrompt[];
|
|
87
88
|
/**
|
|
88
89
|
* Get prompt count
|
|
89
90
|
*
|
|
@@ -91,12 +92,12 @@ export declare function getPromptsByCategory(category: 'trading' | 'portfolio' |
|
|
|
91
92
|
*
|
|
92
93
|
* @example
|
|
93
94
|
* ```typescript
|
|
94
|
-
* console.log(`Total prompts: ${getPromptCount()}`); // Total prompts:
|
|
95
|
+
* console.log(`Total prompts: ${getPromptCount()}`); // Total prompts: 94
|
|
95
96
|
* ```
|
|
96
97
|
*/
|
|
97
98
|
export declare function getPromptCount(): number;
|
|
98
99
|
/**
|
|
99
100
|
* Export individual prompt categories for documentation
|
|
100
101
|
*/
|
|
101
|
-
export { tradingPrompts, portfolioPrompts, analysisPrompts, creationPrompts, discoveryPrompts, dexTradingPrompts, exploreDexPoolsPrompts, liquidityPositionPrompts, utilityPrompts, poolPrompts, tradingCalculationPrompts, balancePrompts, creationUtilityPrompts, transferPrompts, lockPrompts, utilityToolPrompts, monitoringPrompts, advancedPoolPrompts, dexLeaderboardPrompts, dexVolumePrompts, };
|
|
102
|
+
export { tradingPrompts, portfolioPrompts, analysisPrompts, creationPrompts, discoveryPrompts, dexTradingPrompts, exploreDexPoolsPrompts, liquidityPositionPrompts, utilityPrompts, poolPrompts, tradingCalculationPrompts, balancePrompts, creationUtilityPrompts, transferPrompts, lockPrompts, utilityToolPrompts, monitoringPrompts, advancedPoolPrompts, dexLeaderboardPrompts, dexVolumePrompts, bridgePrompts, };
|
|
102
103
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,kBAAkB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AC"}
|
package/dist/prompts/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Provides user-friendly slash commands for common Launchpad workflows
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.dexVolumePrompts = exports.dexLeaderboardPrompts = exports.advancedPoolPrompts = exports.monitoringPrompts = exports.utilityToolPrompts = exports.lockPrompts = exports.transferPrompts = exports.creationUtilityPrompts = exports.balancePrompts = exports.tradingCalculationPrompts = exports.poolPrompts = exports.utilityPrompts = exports.liquidityPositionPrompts = exports.exploreDexPoolsPrompts = exports.dexTradingPrompts = exports.discoveryPrompts = exports.creationPrompts = exports.analysisPrompts = exports.portfolioPrompts = exports.tradingPrompts = exports.prompts = void 0;
|
|
8
|
+
exports.bridgePrompts = exports.dexVolumePrompts = exports.dexLeaderboardPrompts = exports.advancedPoolPrompts = exports.monitoringPrompts = exports.utilityToolPrompts = exports.lockPrompts = exports.transferPrompts = exports.creationUtilityPrompts = exports.balancePrompts = exports.tradingCalculationPrompts = exports.poolPrompts = exports.utilityPrompts = exports.liquidityPositionPrompts = exports.exploreDexPoolsPrompts = exports.dexTradingPrompts = exports.discoveryPrompts = exports.creationPrompts = exports.analysisPrompts = exports.portfolioPrompts = exports.tradingPrompts = exports.prompts = void 0;
|
|
9
9
|
exports.getPrompt = getPrompt;
|
|
10
10
|
exports.getPromptNames = getPromptNames;
|
|
11
11
|
exports.hasPrompt = hasPrompt;
|
|
@@ -51,8 +51,10 @@ const dex_leaderboard_js_1 = require("./dex-leaderboard.js");
|
|
|
51
51
|
Object.defineProperty(exports, "dexLeaderboardPrompts", { enumerable: true, get: function () { return dex_leaderboard_js_1.dexLeaderboardPrompts; } });
|
|
52
52
|
const dex_volume_js_1 = require("./dex-volume.js");
|
|
53
53
|
Object.defineProperty(exports, "dexVolumePrompts", { enumerable: true, get: function () { return dex_volume_js_1.dexVolumePrompts; } });
|
|
54
|
+
const bridge_js_1 = require("./bridge.js");
|
|
55
|
+
Object.defineProperty(exports, "bridgePrompts", { enumerable: true, get: function () { return bridge_js_1.bridgePrompts; } });
|
|
54
56
|
/**
|
|
55
|
-
* All available prompts (
|
|
57
|
+
* All available prompts (94 total)
|
|
56
58
|
*/
|
|
57
59
|
exports.prompts = [
|
|
58
60
|
...trading_js_1.tradingPrompts,
|
|
@@ -75,6 +77,7 @@ exports.prompts = [
|
|
|
75
77
|
...advanced_pools_js_1.advancedPoolPrompts,
|
|
76
78
|
...dex_leaderboard_js_1.dexLeaderboardPrompts,
|
|
77
79
|
...dex_volume_js_1.dexVolumePrompts,
|
|
80
|
+
...bridge_js_1.bridgePrompts,
|
|
78
81
|
];
|
|
79
82
|
/**
|
|
80
83
|
* Optimized prompt registry using Map for O(1) lookups
|
|
@@ -131,7 +134,7 @@ function hasPrompt(name) {
|
|
|
131
134
|
/**
|
|
132
135
|
* Get prompts by category
|
|
133
136
|
*
|
|
134
|
-
* @param category - Category name ('trading', 'portfolio', 'analysis', 'creation', 'discovery', 'dex', 'liquidity', 'monitoring', or '
|
|
137
|
+
* @param category - Category name ('trading', 'portfolio', 'analysis', 'creation', 'discovery', 'dex', 'liquidity', 'monitoring', 'utility', or 'bridge')
|
|
135
138
|
* @returns Array of prompts in the specified category
|
|
136
139
|
*
|
|
137
140
|
* @example
|
|
@@ -162,6 +165,8 @@ function getPromptsByCategory(category) {
|
|
|
162
165
|
return monitoring_js_1.monitoringPrompts;
|
|
163
166
|
case 'utility':
|
|
164
167
|
return utility_js_1.utilityPrompts;
|
|
168
|
+
case 'bridge':
|
|
169
|
+
return bridge_js_1.bridgePrompts;
|
|
165
170
|
default:
|
|
166
171
|
return [];
|
|
167
172
|
}
|
|
@@ -173,7 +178,7 @@ function getPromptsByCategory(category) {
|
|
|
173
178
|
*
|
|
174
179
|
* @example
|
|
175
180
|
* ```typescript
|
|
176
|
-
* console.log(`Total prompts: ${getPromptCount()}`); // Total prompts:
|
|
181
|
+
* console.log(`Total prompts: ${getPromptCount()}`); // Total prompts: 94
|
|
177
182
|
* ```
|
|
178
183
|
*/
|
|
179
184
|
function getPromptCount() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AA0EH,8BAEC;AAaD,wCAEC;AAeD,8BAEC;AAgBD,oDA2BC;AAYD,wCAEC;AAnKD,6CAA8C;AAyK5C,+FAzKO,2BAAc,OAyKP;AAxKhB,iDAAkD;AAyKhD,iGAzKO,+BAAgB,OAyKP;AAxKlB,+CAAgD;AAyK9C,gGAzKO,6BAAe,OAyKP;AAxKjB,6CAA8C;AA8K5C,+FA9KO,2BAAc,OA8KP;AA7KhB,uDAAoD;AAwKlD,gGAxKO,iCAAe,OAwKP;AAvKjB,6DAAwD;AAwKtD,iGAxKO,qCAAgB,OAwKP;AAvKlB,qDAAqD;AAwKnD,kGAxKO,kCAAiB,OAwKP;AAvKnB,iEAAgE;AAwK9D,uGAxKO,6CAAsB,OAwKP;AAvKxB,qEAAoE;AAwKlE,yGAxKO,iDAAwB,OAwKP;AAvK1B,yCAAyC;AAyKvC,4FAzKO,sBAAW,OAyKP;AAxKb,uEAAsE;AAyKpE,0GAzKO,mDAAyB,OAyKP;AAxK3B,+CAA+C;AAyK7C,+FAzKO,4BAAc,OAyKP;AAxKhB,2DAA6D;AAyK3D,uGAzKO,0CAAsB,OAyKP;AAxKxB,iDAAiD;AAyK/C,gGAzKO,8BAAe,OAyKP;AAxKjB,yCAAyC;AAyKvC,4FAzKO,sBAAW,OAyKP;AAxKb,yDAAwD;AAyKtD,mGAzKO,qCAAkB,OAyKP;AAxKpB,mDAAoD;AAyKlD,kGAzKO,iCAAiB,OAyKP;AAxKnB,2DAA0D;AAyKxD,oGAzKO,uCAAmB,OAyKP;AAxK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EAAE,CAAC;QACjB,KAAK,SAAS;YACZ,OAAO,2BAAc,CAAC;QACxB,KAAK,WAAW;YACd,OAAO,+BAAgB,CAAC;QAC1B,KAAK,UAAU;YACb,OAAO,6BAAe,CAAC;QACzB,KAAK,UAAU;YACb,OAAO,iCAAe,CAAC;QACzB,KAAK,WAAW;YACd,OAAO,CAAC,GAAG,qCAAgB,EAAE,GAAG,6CAAsB,CAAC,CAAC;QAC1D,KAAK,KAAK;YACR,OAAO,kCAAiB,CAAC;QAC3B,KAAK,WAAW;YACd,OAAO,iDAAwB,CAAC;QAClC,KAAK,YAAY;YACf,OAAO,iCAAiB,CAAC;QAC3B,KAAK,SAAS;YACZ,OAAO,2BAAc,CAAC;QACxB,KAAK,QAAQ;YACX,OAAO,yBAAa,CAAC;QACvB;YACE,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,cAAc;IAC5B,OAAO,SAAS,CAAC,IAAI,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bridge Tools
|
|
3
|
+
*
|
|
4
|
+
* Cross-chain bridging tools for GalaChain ↔ Ethereum and GalaChain ↔ Solana.
|
|
5
|
+
*/
|
|
6
|
+
import type { MCPTool } from '../../types/mcp.js';
|
|
7
|
+
export declare const estimateBridgeFeeTool: MCPTool;
|
|
8
|
+
export declare const bridgeOutTool: MCPTool;
|
|
9
|
+
export declare const bridgeInTool: MCPTool;
|
|
10
|
+
export declare const getBridgeStatusTool: MCPTool;
|
|
11
|
+
export declare const getSupportedBridgeTokensTool: MCPTool;
|
|
12
|
+
export declare const fetchEthereumWalletTokenBalanceTool: MCPTool;
|
|
13
|
+
export declare const fetchEthereumWalletNativeBalanceTool: MCPTool;
|
|
14
|
+
export declare const fetchSolanaWalletTokenBalanceTool: MCPTool;
|
|
15
|
+
export declare const fetchSolanaWalletNativeBalanceTool: MCPTool;
|
|
16
|
+
export declare const fetchEthereumWalletAllBalancesTool: MCPTool;
|
|
17
|
+
export declare const fetchSolanaWalletAllBalancesTool: MCPTool;
|
|
18
|
+
/**
|
|
19
|
+
* All bridge tools (11 tools)
|
|
20
|
+
*/
|
|
21
|
+
export declare const bridgeTools: MCPTool[];
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/bridge/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AA+ElD,eAAO,MAAM,qBAAqB,EAAE,OAkCnC,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,OAwC3B,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,OAkC1B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,OA2BjC,CAAC;AAGF,eAAO,MAAM,4BAA4B,EAAE,OA0B1C,CAAC;AAOF,eAAO,MAAM,mCAAmC,EAAE,OA0BjD,CAAC;AAGF,eAAO,MAAM,oCAAoC,EAAE,OAmBlD,CAAC;AAGF,eAAO,MAAM,iCAAiC,EAAE,OA0B/C,CAAC;AAGF,eAAO,MAAM,kCAAkC,EAAE,OAmBhD,CAAC;AAOF,eAAO,MAAM,kCAAkC,EAAE,OAoBhD,CAAC;AAGF,eAAO,MAAM,gCAAgC,EAAE,OAoB9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,OAAO,EAchC,CAAC"}
|