@gala-chain/launchpad-mcp-server 1.19.2 → 1.21.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/README.md +2 -2
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/prompts/index.d.ts +3 -2
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +6 -1
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/liquidity-positions.d.ts +35 -0
- package/dist/prompts/liquidity-positions.d.ts.map +1 -0
- package/dist/prompts/liquidity-positions.js +260 -0
- package/dist/prompts/liquidity-positions.js.map +1 -0
- package/dist/tools/dex/index.d.ts +1 -1
- package/dist/tools/dex/index.d.ts.map +1 -1
- package/dist/tools/dex/index.js +4 -2
- package/dist/tools/dex/index.js.map +1 -1
- package/dist/tools/dex/liquidity-positions.d.ts +20 -0
- package/dist/tools/dex/liquidity-positions.d.ts.map +1 -0
- package/dist/tools/dex/liquidity-positions.js +512 -0
- package/dist/tools/dex/liquidity-positions.js.map +1 -0
- package/dist/tools/utils/explainSdkUsage.d.ts.map +1 -1
- package/dist/tools/utils/explainSdkUsage.js +52 -121
- package/dist/tools/utils/explainSdkUsage.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DEX Liquidity Position Management Tools
|
|
4
|
+
*
|
|
5
|
+
* Tools for managing liquidity positions on GalaSwap DEX, including:
|
|
6
|
+
* - Querying user positions and position details
|
|
7
|
+
* - Estimating liquidity removal
|
|
8
|
+
* - Adding liquidity by price or tick range
|
|
9
|
+
* - Removing liquidity and collecting fees
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.liquidityPositionTools = exports.collectPositionFeesTool = exports.removeLiquidityTool = exports.addLiquidityByTicksTool = exports.addLiquidityByPriceTool = exports.estimateRemoveLiquidityTool = exports.getLiquidityPositionTool = exports.getLiquidityPositionByIdTool = exports.getUserLiquidityPositionsTool = void 0;
|
|
13
|
+
const response_formatter_js_1 = require("../../utils/response-formatter.js");
|
|
14
|
+
const error_handler_js_1 = require("../../utils/error-handler.js");
|
|
15
|
+
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
16
|
+
// Token symbol for DEX trading
|
|
17
|
+
const TOKEN_SYMBOL_SCHEMA = {
|
|
18
|
+
type: 'string',
|
|
19
|
+
minLength: 1,
|
|
20
|
+
maxLength: 20,
|
|
21
|
+
description: 'Token symbol (e.g., "GALA", "GUSDC")',
|
|
22
|
+
};
|
|
23
|
+
// Fee tier for GalaSwap (in basis points)
|
|
24
|
+
const FEE_TIER_SCHEMA = {
|
|
25
|
+
type: 'number',
|
|
26
|
+
enum: [500, 3000, 10000],
|
|
27
|
+
description: 'Fee tier in basis points: 500 (0.05%), 3000 (0.30%), 10000 (1.00%)',
|
|
28
|
+
};
|
|
29
|
+
// 1. Get User Liquidity Positions
|
|
30
|
+
exports.getUserLiquidityPositionsTool = {
|
|
31
|
+
name: 'gala_launchpad_get_user_liquidity_positions',
|
|
32
|
+
description: 'Get all open liquidity positions for a wallet address with optional pagination',
|
|
33
|
+
inputSchema: {
|
|
34
|
+
type: 'object',
|
|
35
|
+
properties: {
|
|
36
|
+
ownerAddress: {
|
|
37
|
+
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
38
|
+
description: 'Wallet address to query positions for (e.g., "0x1234..." or "eth|1234...")',
|
|
39
|
+
},
|
|
40
|
+
limit: {
|
|
41
|
+
type: 'number',
|
|
42
|
+
minimum: 1,
|
|
43
|
+
maximum: 100,
|
|
44
|
+
description: 'Maximum number of positions to return (optional)',
|
|
45
|
+
},
|
|
46
|
+
bookmark: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'Pagination bookmark from previous response (optional)',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
required: ['ownerAddress'],
|
|
52
|
+
},
|
|
53
|
+
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
54
|
+
const positions = await sdk.getSwapUserLiquidityPositions(args.ownerAddress, args.limit, args.bookmark);
|
|
55
|
+
return (0, response_formatter_js_1.formatSuccess)({
|
|
56
|
+
ownerAddress: args.ownerAddress,
|
|
57
|
+
positionCount: (positions && Array.isArray(positions)) ? positions.length : 0,
|
|
58
|
+
positions: (positions && Array.isArray(positions))
|
|
59
|
+
? positions.map((pos) => ({
|
|
60
|
+
positionId: pos.positionId,
|
|
61
|
+
token0: pos.token0,
|
|
62
|
+
token1: pos.token1,
|
|
63
|
+
feeTier: pos.feeTier,
|
|
64
|
+
liquidity: pos.liquidity,
|
|
65
|
+
amount0: pos.amount0,
|
|
66
|
+
amount1: pos.amount1,
|
|
67
|
+
feeAmount0: pos.feeAmount0,
|
|
68
|
+
feeAmount1: pos.feeAmount1,
|
|
69
|
+
tickLower: pos.tickLower,
|
|
70
|
+
tickUpper: pos.tickUpper,
|
|
71
|
+
}))
|
|
72
|
+
: [],
|
|
73
|
+
message: (positions && Array.isArray(positions))
|
|
74
|
+
? `${positions.length} open positions found`
|
|
75
|
+
: 'No open positions found',
|
|
76
|
+
});
|
|
77
|
+
}),
|
|
78
|
+
};
|
|
79
|
+
// 2. Get Liquidity Position by ID
|
|
80
|
+
exports.getLiquidityPositionByIdTool = {
|
|
81
|
+
name: 'gala_launchpad_get_liquidity_position_by_id',
|
|
82
|
+
description: 'Get specific liquidity position details by position ID',
|
|
83
|
+
inputSchema: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
ownerAddress: {
|
|
87
|
+
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
88
|
+
description: 'Wallet address that owns the position',
|
|
89
|
+
},
|
|
90
|
+
positionId: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
minLength: 1,
|
|
93
|
+
description: 'Unique position identifier',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
required: ['ownerAddress', 'positionId'],
|
|
97
|
+
},
|
|
98
|
+
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
99
|
+
const position = await sdk.getSwapLiquidityPositionById(args.ownerAddress, args.positionId);
|
|
100
|
+
if (!position) {
|
|
101
|
+
return (0, response_formatter_js_1.formatSuccess)({
|
|
102
|
+
found: false,
|
|
103
|
+
message: `Position ${args.positionId} not found`,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return (0, response_formatter_js_1.formatSuccess)({
|
|
107
|
+
found: true,
|
|
108
|
+
positionId: position.positionId,
|
|
109
|
+
ownerAddress: position.ownerAddress,
|
|
110
|
+
token0: position.token0,
|
|
111
|
+
token1: position.token1,
|
|
112
|
+
feeTier: position.feeTier,
|
|
113
|
+
liquidity: position.liquidity,
|
|
114
|
+
amount0: position.amount0,
|
|
115
|
+
amount1: position.amount1,
|
|
116
|
+
feeAmount0: position.feeAmount0,
|
|
117
|
+
feeAmount1: position.feeAmount1,
|
|
118
|
+
tickLower: position.tickLower,
|
|
119
|
+
tickUpper: position.tickUpper,
|
|
120
|
+
createdAt: position.createdAt ? new Date(position.createdAt).toISOString() : undefined,
|
|
121
|
+
updatedAt: position.updatedAt ? new Date(position.updatedAt).toISOString() : undefined,
|
|
122
|
+
message: `Position ${args.positionId}: ${position.liquidity} liquidity in ${position.token0}/${position.token1}`,
|
|
123
|
+
});
|
|
124
|
+
}),
|
|
125
|
+
};
|
|
126
|
+
// 3. Get Liquidity Position by Token Pair
|
|
127
|
+
exports.getLiquidityPositionTool = {
|
|
128
|
+
name: 'gala_launchpad_get_liquidity_position',
|
|
129
|
+
description: 'Get liquidity position for a specific token pair and price range (tick boundaries)',
|
|
130
|
+
inputSchema: {
|
|
131
|
+
type: 'object',
|
|
132
|
+
properties: {
|
|
133
|
+
ownerAddress: {
|
|
134
|
+
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
135
|
+
description: 'Wallet address that owns the position',
|
|
136
|
+
},
|
|
137
|
+
token0: TOKEN_SYMBOL_SCHEMA,
|
|
138
|
+
token1: TOKEN_SYMBOL_SCHEMA,
|
|
139
|
+
fee: FEE_TIER_SCHEMA,
|
|
140
|
+
tickLower: {
|
|
141
|
+
type: 'number',
|
|
142
|
+
description: 'Lower tick boundary of the position',
|
|
143
|
+
},
|
|
144
|
+
tickUpper: {
|
|
145
|
+
type: 'number',
|
|
146
|
+
description: 'Upper tick boundary of the position',
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
required: ['ownerAddress', 'token0', 'token1', 'fee', 'tickLower', 'tickUpper'],
|
|
150
|
+
},
|
|
151
|
+
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
152
|
+
const position = await sdk.getSwapLiquidityPosition(args.ownerAddress, {
|
|
153
|
+
token0: args.token0,
|
|
154
|
+
token1: args.token1,
|
|
155
|
+
fee: args.fee,
|
|
156
|
+
tickLower: args.tickLower,
|
|
157
|
+
tickUpper: args.tickUpper,
|
|
158
|
+
});
|
|
159
|
+
if (!position) {
|
|
160
|
+
return (0, response_formatter_js_1.formatSuccess)({
|
|
161
|
+
found: false,
|
|
162
|
+
message: `No position found for ${args.token0}/${args.token1} at ticks ${args.tickLower}-${args.tickUpper}`,
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
return (0, response_formatter_js_1.formatSuccess)({
|
|
166
|
+
found: true,
|
|
167
|
+
positionId: position.positionId,
|
|
168
|
+
token0: position.token0,
|
|
169
|
+
token1: position.token1,
|
|
170
|
+
feeTier: position.feeTier,
|
|
171
|
+
liquidity: position.liquidity,
|
|
172
|
+
amount0: position.amount0,
|
|
173
|
+
amount1: position.amount1,
|
|
174
|
+
feeAmount0: position.feeAmount0,
|
|
175
|
+
feeAmount1: position.feeAmount1,
|
|
176
|
+
tickLower: position.tickLower,
|
|
177
|
+
tickUpper: position.tickUpper,
|
|
178
|
+
message: `Found position: ${position.liquidity} liquidity with ${position.feeAmount0} ${args.token0} and ${position.feeAmount1} ${args.token1} in fees`,
|
|
179
|
+
});
|
|
180
|
+
}),
|
|
181
|
+
};
|
|
182
|
+
// 4. Estimate Liquidity Removal
|
|
183
|
+
exports.estimateRemoveLiquidityTool = {
|
|
184
|
+
name: 'gala_launchpad_estimate_remove_liquidity',
|
|
185
|
+
description: 'Estimate tokens and fees received when removing liquidity at current market prices',
|
|
186
|
+
inputSchema: {
|
|
187
|
+
type: 'object',
|
|
188
|
+
properties: {
|
|
189
|
+
token0: TOKEN_SYMBOL_SCHEMA,
|
|
190
|
+
token1: TOKEN_SYMBOL_SCHEMA,
|
|
191
|
+
fee: FEE_TIER_SCHEMA,
|
|
192
|
+
liquidity: {
|
|
193
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
194
|
+
description: 'Liquidity amount to estimate removal for',
|
|
195
|
+
},
|
|
196
|
+
tickLower: {
|
|
197
|
+
type: 'number',
|
|
198
|
+
description: 'Lower tick boundary of the position',
|
|
199
|
+
},
|
|
200
|
+
tickUpper: {
|
|
201
|
+
type: 'number',
|
|
202
|
+
description: 'Upper tick boundary of the position',
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
required: ['token0', 'token1', 'fee', 'liquidity', 'tickLower', 'tickUpper'],
|
|
206
|
+
},
|
|
207
|
+
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
208
|
+
const estimate = await sdk.getSwapEstimateRemoveLiquidity({
|
|
209
|
+
token0: args.token0,
|
|
210
|
+
token1: args.token1,
|
|
211
|
+
fee: args.fee,
|
|
212
|
+
liquidity: args.liquidity,
|
|
213
|
+
tickLower: args.tickLower,
|
|
214
|
+
tickUpper: args.tickUpper,
|
|
215
|
+
});
|
|
216
|
+
return (0, response_formatter_js_1.formatSuccess)({
|
|
217
|
+
liquidity: estimate.liquidity,
|
|
218
|
+
amount0: estimate.amount0,
|
|
219
|
+
amount1: estimate.amount1,
|
|
220
|
+
fee0: estimate.fee0,
|
|
221
|
+
fee1: estimate.fee1,
|
|
222
|
+
token0Symbol: estimate.token0Symbol,
|
|
223
|
+
token1Symbol: estimate.token1Symbol,
|
|
224
|
+
tickLower: estimate.tickLower,
|
|
225
|
+
tickUpper: estimate.tickUpper,
|
|
226
|
+
currentPrice: estimate.currentPrice,
|
|
227
|
+
message: `Removing ${args.liquidity} liquidity would return ${estimate.amount0} ${args.token0} + ${estimate.amount1} ${args.token1}, plus ${estimate.fee0} ${args.token0} and ${estimate.fee1} ${args.token1} in fees`,
|
|
228
|
+
});
|
|
229
|
+
}),
|
|
230
|
+
};
|
|
231
|
+
// 5. Add Liquidity by Price Range
|
|
232
|
+
exports.addLiquidityByPriceTool = {
|
|
233
|
+
name: 'gala_launchpad_add_liquidity_by_price',
|
|
234
|
+
description: 'Add liquidity to a pool by specifying min/max price boundaries (SDK calculates tick boundaries)',
|
|
235
|
+
inputSchema: {
|
|
236
|
+
type: 'object',
|
|
237
|
+
properties: {
|
|
238
|
+
token0: TOKEN_SYMBOL_SCHEMA,
|
|
239
|
+
token1: TOKEN_SYMBOL_SCHEMA,
|
|
240
|
+
fee: FEE_TIER_SCHEMA,
|
|
241
|
+
minPrice: {
|
|
242
|
+
type: 'string',
|
|
243
|
+
description: 'Minimum price boundary (e.g., "0.90")',
|
|
244
|
+
},
|
|
245
|
+
maxPrice: {
|
|
246
|
+
type: 'string',
|
|
247
|
+
description: 'Maximum price boundary (e.g., "1.10")',
|
|
248
|
+
},
|
|
249
|
+
amount0Desired: {
|
|
250
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
251
|
+
description: 'Desired amount of token0 to provide',
|
|
252
|
+
},
|
|
253
|
+
amount1Desired: {
|
|
254
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
255
|
+
description: 'Desired amount of token1 to provide',
|
|
256
|
+
},
|
|
257
|
+
amount0Min: {
|
|
258
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
259
|
+
description: 'Minimum acceptable amount0 (optional, defaults to 0)',
|
|
260
|
+
},
|
|
261
|
+
amount1Min: {
|
|
262
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
263
|
+
description: 'Minimum acceptable amount1 (optional, defaults to 0)',
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
required: [
|
|
267
|
+
'token0',
|
|
268
|
+
'token1',
|
|
269
|
+
'fee',
|
|
270
|
+
'minPrice',
|
|
271
|
+
'maxPrice',
|
|
272
|
+
'amount0Desired',
|
|
273
|
+
'amount1Desired',
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
277
|
+
// Validate wallet before execution
|
|
278
|
+
try {
|
|
279
|
+
sdk.getAddress();
|
|
280
|
+
}
|
|
281
|
+
catch {
|
|
282
|
+
throw new Error('Wallet not configured - required for adding liquidity');
|
|
283
|
+
}
|
|
284
|
+
const result = await sdk.addSwapLiquidityByPrice({
|
|
285
|
+
token0: args.token0,
|
|
286
|
+
token1: args.token1,
|
|
287
|
+
fee: args.fee,
|
|
288
|
+
minPrice: args.minPrice,
|
|
289
|
+
maxPrice: args.maxPrice,
|
|
290
|
+
amount0Desired: args.amount0Desired,
|
|
291
|
+
amount1Desired: args.amount1Desired,
|
|
292
|
+
amount0Min: args.amount0Min || '0',
|
|
293
|
+
amount1Min: args.amount1Min || '0',
|
|
294
|
+
});
|
|
295
|
+
return (0, response_formatter_js_1.formatSuccess)({
|
|
296
|
+
transactionId: result.transactionId || result.id,
|
|
297
|
+
status: result.status,
|
|
298
|
+
token0: args.token0,
|
|
299
|
+
token1: args.token1,
|
|
300
|
+
priceRange: `${args.minPrice} - ${args.maxPrice}`,
|
|
301
|
+
amount0: result.amount0 || args.amount0Desired,
|
|
302
|
+
amount1: result.amount1 || args.amount1Desired,
|
|
303
|
+
liquidity: result.liquidity,
|
|
304
|
+
positionId: result.positionId,
|
|
305
|
+
message: `Liquidity added! Position: ${result.positionId || result.transactionId}`,
|
|
306
|
+
});
|
|
307
|
+
}),
|
|
308
|
+
};
|
|
309
|
+
// 6. Add Liquidity by Tick Range
|
|
310
|
+
exports.addLiquidityByTicksTool = {
|
|
311
|
+
name: 'gala_launchpad_add_liquidity_by_ticks',
|
|
312
|
+
description: 'Add liquidity to a pool by specifying exact tick boundaries (advanced usage)',
|
|
313
|
+
inputSchema: {
|
|
314
|
+
type: 'object',
|
|
315
|
+
properties: {
|
|
316
|
+
token0: TOKEN_SYMBOL_SCHEMA,
|
|
317
|
+
token1: TOKEN_SYMBOL_SCHEMA,
|
|
318
|
+
feeTier: FEE_TIER_SCHEMA,
|
|
319
|
+
tickLower: {
|
|
320
|
+
type: 'number',
|
|
321
|
+
description: 'Lower tick boundary (must be multiple of tickSpacing)',
|
|
322
|
+
},
|
|
323
|
+
tickUpper: {
|
|
324
|
+
type: 'number',
|
|
325
|
+
description: 'Upper tick boundary (must be multiple of tickSpacing)',
|
|
326
|
+
},
|
|
327
|
+
amount0Desired: {
|
|
328
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
329
|
+
description: 'Desired amount of token0 to provide',
|
|
330
|
+
},
|
|
331
|
+
amount1Desired: {
|
|
332
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
333
|
+
description: 'Desired amount of token1 to provide',
|
|
334
|
+
},
|
|
335
|
+
amount0Min: {
|
|
336
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
337
|
+
description: 'Minimum acceptable amount0 (optional, defaults to 0)',
|
|
338
|
+
},
|
|
339
|
+
amount1Min: {
|
|
340
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
341
|
+
description: 'Minimum acceptable amount1 (optional, defaults to 0)',
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
required: [
|
|
345
|
+
'token0',
|
|
346
|
+
'token1',
|
|
347
|
+
'feeTier',
|
|
348
|
+
'tickLower',
|
|
349
|
+
'tickUpper',
|
|
350
|
+
'amount0Desired',
|
|
351
|
+
'amount1Desired',
|
|
352
|
+
],
|
|
353
|
+
},
|
|
354
|
+
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
355
|
+
// Validate wallet before execution
|
|
356
|
+
try {
|
|
357
|
+
sdk.getAddress();
|
|
358
|
+
}
|
|
359
|
+
catch {
|
|
360
|
+
throw new Error('Wallet not configured - required for adding liquidity');
|
|
361
|
+
}
|
|
362
|
+
const result = await sdk.addSwapLiquidityByTicks({
|
|
363
|
+
token0: args.token0,
|
|
364
|
+
token1: args.token1,
|
|
365
|
+
feeTier: args.feeTier,
|
|
366
|
+
tickLower: args.tickLower,
|
|
367
|
+
tickUpper: args.tickUpper,
|
|
368
|
+
amount0Desired: args.amount0Desired,
|
|
369
|
+
amount1Desired: args.amount1Desired,
|
|
370
|
+
amount0Min: args.amount0Min || '0',
|
|
371
|
+
amount1Min: args.amount1Min || '0',
|
|
372
|
+
});
|
|
373
|
+
return (0, response_formatter_js_1.formatSuccess)({
|
|
374
|
+
transactionId: result.transactionId || result.id,
|
|
375
|
+
status: result.status,
|
|
376
|
+
token0: args.token0,
|
|
377
|
+
token1: args.token1,
|
|
378
|
+
tickRange: `${args.tickLower} - ${args.tickUpper}`,
|
|
379
|
+
amount0: result.amount0 || args.amount0Desired,
|
|
380
|
+
amount1: result.amount1 || args.amount1Desired,
|
|
381
|
+
liquidity: result.liquidity,
|
|
382
|
+
positionId: result.positionId,
|
|
383
|
+
message: `Liquidity added! Position: ${result.positionId || result.transactionId}`,
|
|
384
|
+
});
|
|
385
|
+
}),
|
|
386
|
+
};
|
|
387
|
+
// 7. Remove Liquidity
|
|
388
|
+
exports.removeLiquidityTool = {
|
|
389
|
+
name: 'gala_launchpad_remove_liquidity',
|
|
390
|
+
description: 'Remove liquidity from an open position and withdraw underlying tokens',
|
|
391
|
+
inputSchema: {
|
|
392
|
+
type: 'object',
|
|
393
|
+
properties: {
|
|
394
|
+
ownerAddress: {
|
|
395
|
+
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
396
|
+
description: 'Wallet address that owns the position',
|
|
397
|
+
},
|
|
398
|
+
positionId: {
|
|
399
|
+
type: 'string',
|
|
400
|
+
minLength: 1,
|
|
401
|
+
description: 'Position identifier to remove liquidity from',
|
|
402
|
+
},
|
|
403
|
+
liquidity: {
|
|
404
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
405
|
+
description: 'Amount of liquidity to remove (full liquidity to close position)',
|
|
406
|
+
},
|
|
407
|
+
amount0Min: {
|
|
408
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
409
|
+
description: 'Minimum acceptable amount of token0 to receive',
|
|
410
|
+
},
|
|
411
|
+
amount1Min: {
|
|
412
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
413
|
+
description: 'Minimum acceptable amount of token1 to receive',
|
|
414
|
+
},
|
|
415
|
+
deadline: {
|
|
416
|
+
type: 'number',
|
|
417
|
+
description: 'Transaction deadline (unix timestamp, optional)',
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
required: ['ownerAddress', 'positionId', 'liquidity', 'amount0Min', 'amount1Min'],
|
|
421
|
+
},
|
|
422
|
+
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
423
|
+
// Validate wallet before execution
|
|
424
|
+
try {
|
|
425
|
+
sdk.getAddress();
|
|
426
|
+
}
|
|
427
|
+
catch {
|
|
428
|
+
throw new Error('Wallet not configured - required for removing liquidity');
|
|
429
|
+
}
|
|
430
|
+
const deadline = args.deadline || Math.floor(Date.now() / 1000) + 60 * 20; // 20 minute default
|
|
431
|
+
const result = await sdk.removeSwapLiquidity({
|
|
432
|
+
ownerAddress: args.ownerAddress,
|
|
433
|
+
positionId: args.positionId,
|
|
434
|
+
liquidity: args.liquidity,
|
|
435
|
+
amount0Min: args.amount0Min,
|
|
436
|
+
amount1Min: args.amount1Min,
|
|
437
|
+
deadline,
|
|
438
|
+
});
|
|
439
|
+
return (0, response_formatter_js_1.formatSuccess)({
|
|
440
|
+
transactionId: result.transactionId || result.id,
|
|
441
|
+
status: result.status,
|
|
442
|
+
positionId: args.positionId,
|
|
443
|
+
liquidity: args.liquidity,
|
|
444
|
+
amount0: result.amount0,
|
|
445
|
+
amount1: result.amount1,
|
|
446
|
+
message: `Liquidity removed! Received ${result.amount0} token0 and ${result.amount1} token1`,
|
|
447
|
+
});
|
|
448
|
+
}),
|
|
449
|
+
};
|
|
450
|
+
// 8. Collect Position Fees
|
|
451
|
+
exports.collectPositionFeesTool = {
|
|
452
|
+
name: 'gala_launchpad_collect_position_fees',
|
|
453
|
+
description: 'Collect accumulated trading fees from a liquidity position without modifying the position',
|
|
454
|
+
inputSchema: {
|
|
455
|
+
type: 'object',
|
|
456
|
+
properties: {
|
|
457
|
+
ownerAddress: {
|
|
458
|
+
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
459
|
+
description: 'Wallet address that owns the position',
|
|
460
|
+
},
|
|
461
|
+
positionId: {
|
|
462
|
+
type: 'string',
|
|
463
|
+
minLength: 1,
|
|
464
|
+
description: 'Position identifier to collect fees from',
|
|
465
|
+
},
|
|
466
|
+
amount0Max: {
|
|
467
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
468
|
+
description: 'Maximum amount of token0 fees to collect (optional)',
|
|
469
|
+
},
|
|
470
|
+
amount1Max: {
|
|
471
|
+
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
472
|
+
description: 'Maximum amount of token1 fees to collect (optional)',
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
required: ['ownerAddress', 'positionId'],
|
|
476
|
+
},
|
|
477
|
+
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
478
|
+
// Validate wallet before execution
|
|
479
|
+
try {
|
|
480
|
+
sdk.getAddress();
|
|
481
|
+
}
|
|
482
|
+
catch {
|
|
483
|
+
throw new Error('Wallet not configured - required for collecting fees');
|
|
484
|
+
}
|
|
485
|
+
const result = await sdk.collectSwapPositionFees({
|
|
486
|
+
ownerAddress: args.ownerAddress,
|
|
487
|
+
positionId: args.positionId,
|
|
488
|
+
amount0Max: args.amount0Max,
|
|
489
|
+
amount1Max: args.amount1Max,
|
|
490
|
+
});
|
|
491
|
+
return (0, response_formatter_js_1.formatSuccess)({
|
|
492
|
+
transactionId: result.transactionId || result.id,
|
|
493
|
+
status: result.status,
|
|
494
|
+
positionId: args.positionId,
|
|
495
|
+
amount0Collected: result.amount0,
|
|
496
|
+
amount1Collected: result.amount1,
|
|
497
|
+
message: `Fees collected! ${result.amount0} token0 and ${result.amount1} token1 harvested`,
|
|
498
|
+
});
|
|
499
|
+
}),
|
|
500
|
+
};
|
|
501
|
+
// Export all liquidity position tools
|
|
502
|
+
exports.liquidityPositionTools = [
|
|
503
|
+
exports.getUserLiquidityPositionsTool,
|
|
504
|
+
exports.getLiquidityPositionByIdTool,
|
|
505
|
+
exports.getLiquidityPositionTool,
|
|
506
|
+
exports.estimateRemoveLiquidityTool,
|
|
507
|
+
exports.addLiquidityByPriceTool,
|
|
508
|
+
exports.addLiquidityByTicksTool,
|
|
509
|
+
exports.removeLiquidityTool,
|
|
510
|
+
exports.collectPositionFeesTool,
|
|
511
|
+
];
|
|
512
|
+
//# sourceMappingURL=liquidity-positions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liquidity-positions.js","sourceRoot":"","sources":["../../../src/tools/dex/liquidity-positions.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAGH,6EAAkE;AAClE,mEAAiE;AACjE,uEAGyC;AAEzC,+BAA+B;AAC/B,MAAM,mBAAmB,GAAG;IAC1B,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,EAAE;IACb,WAAW,EAAE,sCAAsC;CACpD,CAAC;AAEF,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IAAI,CAAC;YACH,GAAG,CAAC,UAAU,EAAE,CAAC;QACnB,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;QAC1E,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,uBAAuB,CAAC;YAC/C,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC,CAAC;QAEH,OAAO,IAAA,qCAAa,EAAC;YACnB,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,EAAE;YAChD,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,gBAAgB,EAAE,MAAM,CAAC,OAAO;YAChC,gBAAgB,EAAE,MAAM,CAAC,OAAO;YAChC,OAAO,EAAE,mBAAmB,MAAM,CAAC,OAAO,eAAe,MAAM,CAAC,OAAO,mBAAmB;SAC3F,CAAC,CAAC;IACL,CAAC,CAAC;CACH,CAAC;AAEF,sCAAsC;AACzB,QAAA,sBAAsB,GAAc;IAC/C,qCAA6B;IAC7B,oCAA4B;IAC5B,gCAAwB;IACxB,mCAA2B;IAC3B,+BAAuB;IACvB,+BAAuB;IACvB,2BAAmB;IACnB,+BAAuB;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explainSdkUsage.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/explainSdkUsage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"explainSdkUsage.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/explainSdkUsage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AA22ClD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAgDjC,CAAC"}
|