@gala-chain/launchpad-mcp-server 5.0.4-beta.1 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/README.md +5 -5
  2. package/dist/constants/mcpToolNames.d.ts +28 -1
  3. package/dist/constants/mcpToolNames.d.ts.map +1 -1
  4. package/dist/constants/mcpToolNames.js +24 -2
  5. package/dist/constants/mcpToolNames.js.map +1 -1
  6. package/dist/generated/version.d.ts +1 -1
  7. package/dist/generated/version.d.ts.map +1 -1
  8. package/dist/generated/version.js +1 -1
  9. package/dist/generated/version.js.map +1 -1
  10. package/dist/index.js +3 -3
  11. package/dist/index.js.map +1 -1
  12. package/dist/prompts/analysis.js +12 -12
  13. package/dist/prompts/analysis.js.map +1 -1
  14. package/dist/prompts/api-keys.js +6 -6
  15. package/dist/prompts/api-keys.js.map +1 -1
  16. package/dist/prompts/balances.js +5 -5
  17. package/dist/prompts/balances.js.map +1 -1
  18. package/dist/prompts/bans.js +2 -2
  19. package/dist/prompts/bans.js.map +1 -1
  20. package/dist/prompts/bridge.js +4 -4
  21. package/dist/prompts/bridge.js.map +1 -1
  22. package/dist/prompts/burns.d.ts.map +1 -1
  23. package/dist/prompts/burns.js +6 -2
  24. package/dist/prompts/burns.js.map +1 -1
  25. package/dist/prompts/chat-messages.js +2 -2
  26. package/dist/prompts/chat-messages.js.map +1 -1
  27. package/dist/prompts/chat.js +1 -1
  28. package/dist/prompts/chat.js.map +1 -1
  29. package/dist/prompts/content-flags.js +9 -9
  30. package/dist/prompts/content-flags.js.map +1 -1
  31. package/dist/prompts/create-token.js +5 -5
  32. package/dist/prompts/create-token.js.map +1 -1
  33. package/dist/prompts/creation-utils.js +1 -1
  34. package/dist/prompts/creation-utils.js.map +1 -1
  35. package/dist/prompts/dex-leaderboard.js +1 -1
  36. package/dist/prompts/dex-leaderboard.js.map +1 -1
  37. package/dist/prompts/dex-trading.js +3 -3
  38. package/dist/prompts/dex-trading.js.map +1 -1
  39. package/dist/prompts/discover-tokens.js +5 -5
  40. package/dist/prompts/discover-tokens.js.map +1 -1
  41. package/dist/prompts/event-subscriptions.js +4 -4
  42. package/dist/prompts/event-subscriptions.js.map +1 -1
  43. package/dist/prompts/factories/balance-prompt-factory.js +2 -2
  44. package/dist/prompts/factories/balance-prompt-factory.js.map +1 -1
  45. package/dist/prompts/factories/ban-management-factory.js +14 -14
  46. package/dist/prompts/factories/ban-management-factory.js.map +1 -1
  47. package/dist/prompts/factories/calculation-prompt-factory.d.ts.map +1 -1
  48. package/dist/prompts/factories/calculation-prompt-factory.js +13 -8
  49. package/dist/prompts/factories/calculation-prompt-factory.js.map +1 -1
  50. package/dist/prompts/factories/discovery-prompt-factory.js +12 -12
  51. package/dist/prompts/factories/discovery-prompt-factory.js.map +1 -1
  52. package/dist/prompts/factories/event-subscription-factory.js +8 -8
  53. package/dist/prompts/factories/event-subscription-factory.js.map +1 -1
  54. package/dist/prompts/factories/filtered-list-prompt-factory.js +8 -8
  55. package/dist/prompts/factories/filtered-list-prompt-factory.js.map +1 -1
  56. package/dist/prompts/factories/invite-management-factory.d.ts.map +1 -1
  57. package/dist/prompts/factories/invite-management-factory.js +9 -8
  58. package/dist/prompts/factories/invite-management-factory.js.map +1 -1
  59. package/dist/prompts/factories/simple-operation-factory.d.ts.map +1 -1
  60. package/dist/prompts/factories/simple-operation-factory.js +17 -11
  61. package/dist/prompts/factories/simple-operation-factory.js.map +1 -1
  62. package/dist/prompts/index.d.ts +3 -2
  63. package/dist/prompts/index.d.ts.map +1 -1
  64. package/dist/prompts/index.js +6 -1
  65. package/dist/prompts/index.js.map +1 -1
  66. package/dist/prompts/liquidity-positions.js +4 -4
  67. package/dist/prompts/locks.js +4 -4
  68. package/dist/prompts/locks.js.map +1 -1
  69. package/dist/prompts/nft.d.ts +48 -0
  70. package/dist/prompts/nft.d.ts.map +1 -0
  71. package/dist/prompts/nft.js +513 -0
  72. package/dist/prompts/nft.js.map +1 -0
  73. package/dist/prompts/overseers.js +3 -3
  74. package/dist/prompts/overseers.js.map +1 -1
  75. package/dist/prompts/pools.js +8 -8
  76. package/dist/prompts/pools.js.map +1 -1
  77. package/dist/prompts/portfolio.js +6 -6
  78. package/dist/prompts/portfolio.js.map +1 -1
  79. package/dist/prompts/prompt-factories.d.ts.map +1 -1
  80. package/dist/prompts/prompt-factories.js +13 -10
  81. package/dist/prompts/prompt-factories.js.map +1 -1
  82. package/dist/prompts/referrals.js +12 -12
  83. package/dist/prompts/referrals.js.map +1 -1
  84. package/dist/prompts/streaming.js +3 -3
  85. package/dist/prompts/streaming.js.map +1 -1
  86. package/dist/prompts/tier1-bridge-operations.js +16 -16
  87. package/dist/prompts/tier1-bridge-operations.js.map +1 -1
  88. package/dist/prompts/tier1-liquidity-management.js +9 -9
  89. package/dist/prompts/tier1-liquidity-management.js.map +1 -1
  90. package/dist/prompts/tier1-pool-discovery.js +5 -5
  91. package/dist/prompts/tier1-pool-discovery.js.map +1 -1
  92. package/dist/prompts/tier1-price-history.js +6 -6
  93. package/dist/prompts/tier1-price-history.js.map +1 -1
  94. package/dist/prompts/tier1-token-analysis.js +4 -4
  95. package/dist/prompts/tier1-token-analysis.js.map +1 -1
  96. package/dist/prompts/tier2-account-setup.js +2 -2
  97. package/dist/prompts/tier2-account-setup.js.map +1 -1
  98. package/dist/prompts/tier2-advanced-liquidity.js +3 -3
  99. package/dist/prompts/tier2-asset-management.js +3 -3
  100. package/dist/prompts/tier2-asset-management.js.map +1 -1
  101. package/dist/prompts/tier2-token-lifecycle.js +2 -2
  102. package/dist/prompts/tier2-token-lifecycle.js.map +1 -1
  103. package/dist/prompts/tier3-community-engagement.js +2 -2
  104. package/dist/prompts/tier3-community-engagement.js.map +1 -1
  105. package/dist/prompts/tier3-moderation-workflows.js +1 -1
  106. package/dist/prompts/tier3-moderation-workflows.js.map +1 -1
  107. package/dist/prompts/trades.js +3 -3
  108. package/dist/prompts/trades.js.map +1 -1
  109. package/dist/prompts/trading-calculations.js +3 -3
  110. package/dist/prompts/trading-calculations.js.map +1 -1
  111. package/dist/prompts/trading.js +12 -12
  112. package/dist/prompts/trading.js.map +1 -1
  113. package/dist/prompts/utility-tools.js +2 -2
  114. package/dist/prompts/utility-tools.js.map +1 -1
  115. package/dist/prompts/utility.js +2 -2
  116. package/dist/prompts/utility.js.map +1 -1
  117. package/dist/prompts/utils/textTemplates.js +1 -1
  118. package/dist/prompts/utils/textTemplates.js.map +1 -1
  119. package/dist/prompts/utils/workflowTemplates.js +17 -17
  120. package/dist/prompts/utils/workflowTemplates.js.map +1 -1
  121. package/dist/prompts/wallet.js +1 -1
  122. package/dist/prompts/wallet.js.map +1 -1
  123. package/dist/schemas/common-schemas.d.ts +90 -4
  124. package/dist/schemas/common-schemas.d.ts.map +1 -1
  125. package/dist/schemas/common-schemas.js +92 -11
  126. package/dist/schemas/common-schemas.js.map +1 -1
  127. package/dist/scripts/test-all-prompts.d.ts +22 -0
  128. package/dist/scripts/test-all-prompts.d.ts.map +1 -0
  129. package/dist/scripts/test-all-prompts.js +205 -0
  130. package/dist/scripts/test-all-prompts.js.map +1 -0
  131. package/dist/server.d.ts.map +1 -1
  132. package/dist/server.js +43 -36
  133. package/dist/server.js.map +1 -1
  134. package/dist/tools/api-keys/index.js +3 -3
  135. package/dist/tools/api-keys/index.js.map +1 -1
  136. package/dist/tools/balance/index.js +2 -2
  137. package/dist/tools/balance/index.js.map +1 -1
  138. package/dist/tools/ban/index.js +1 -1
  139. package/dist/tools/ban/index.js.map +1 -1
  140. package/dist/tools/bridge/index.js +1 -1
  141. package/dist/tools/bridge/index.js.map +1 -1
  142. package/dist/tools/chat-messages/index.js +1 -1
  143. package/dist/tools/chat-messages/index.js.map +1 -1
  144. package/dist/tools/comments/index.js +1 -1
  145. package/dist/tools/comments/index.js.map +1 -1
  146. package/dist/tools/content-flags/index.js +2 -2
  147. package/dist/tools/content-flags/index.js.map +1 -1
  148. package/dist/tools/creation/index.d.ts.map +1 -1
  149. package/dist/tools/creation/index.js +16 -8
  150. package/dist/tools/creation/index.js.map +1 -1
  151. package/dist/tools/dex/helpers.d.ts +15 -15
  152. package/dist/tools/dex/helpers.d.ts.map +1 -1
  153. package/dist/tools/dex/helpers.js +54 -33
  154. package/dist/tools/dex/helpers.js.map +1 -1
  155. package/dist/tools/dex/index.js +1 -1
  156. package/dist/tools/dex-liquidity/index.d.ts.map +1 -1
  157. package/dist/tools/dex-liquidity/index.js +30 -19
  158. package/dist/tools/dex-liquidity/index.js.map +1 -1
  159. package/dist/tools/dex-pools/index.js +3 -3
  160. package/dist/tools/dex-pools/index.js.map +1 -1
  161. package/dist/tools/handler-factories.d.ts +1 -1
  162. package/dist/tools/handler-factories.js +16 -16
  163. package/dist/tools/handler-factories.js.map +1 -1
  164. package/dist/tools/index.d.ts.map +1 -1
  165. package/dist/tools/index.js +10 -3
  166. package/dist/tools/index.js.map +1 -1
  167. package/dist/tools/moderators/index.js +2 -2
  168. package/dist/tools/moderators/index.js.map +1 -1
  169. package/dist/tools/nft/index.d.ts +23 -0
  170. package/dist/tools/nft/index.d.ts.map +1 -0
  171. package/dist/tools/nft/index.js +308 -0
  172. package/dist/tools/nft/index.js.map +1 -0
  173. package/dist/tools/overseers/index.js +2 -2
  174. package/dist/tools/overseers/index.js.map +1 -1
  175. package/dist/tools/pagination-handler-factory.d.ts +2 -2
  176. package/dist/tools/pagination-handler-factory.d.ts.map +1 -1
  177. package/dist/tools/pagination-handler-factory.js +5 -5
  178. package/dist/tools/pagination-handler-factory.js.map +1 -1
  179. package/dist/tools/pools/fetchAllPools.d.ts.map +1 -1
  180. package/dist/tools/pools/fetchAllPools.js +6 -4
  181. package/dist/tools/pools/fetchAllPools.js.map +1 -1
  182. package/dist/tools/pools/fetchPools.js +3 -3
  183. package/dist/tools/pools/fetchPools.js.map +1 -1
  184. package/dist/tools/pools/fetchPriceHistory.js +2 -2
  185. package/dist/tools/pools/fetchPriceHistory.js.map +1 -1
  186. package/dist/tools/referrals/index.js +2 -2
  187. package/dist/tools/referrals/index.js.map +1 -1
  188. package/dist/tools/streaming/index.js +1 -1
  189. package/dist/tools/streaming/index.js.map +1 -1
  190. package/dist/tools/token-ban/index.js +3 -3
  191. package/dist/tools/token-ban/index.js.map +1 -1
  192. package/dist/tools/tool-factory.js +1 -1
  193. package/dist/tools/tool-factory.js.map +1 -1
  194. package/dist/tools/trades/index.d.ts.map +1 -1
  195. package/dist/tools/trades/index.js +4 -3
  196. package/dist/tools/trades/index.js.map +1 -1
  197. package/dist/tools/trading/helpers/arg-extractors.d.ts +4 -4
  198. package/dist/tools/trading/helpers/arg-extractors.d.ts.map +1 -1
  199. package/dist/tools/trading/helpers/arg-extractors.js +2 -2
  200. package/dist/tools/trading/helpers/arg-extractors.js.map +1 -1
  201. package/dist/tools/trading/index.js +1 -1
  202. package/dist/tools/trading/index.js.map +1 -1
  203. package/dist/tools/utils/clearCache.js +2 -2
  204. package/dist/tools/utils/clearCache.js.map +1 -1
  205. package/dist/tools/utils/explainSdkUsage.d.ts +1 -0
  206. package/dist/tools/utils/explainSdkUsage.d.ts.map +1 -1
  207. package/dist/tools/utils/explainSdkUsage.js +211 -9
  208. package/dist/tools/utils/explainSdkUsage.js.map +1 -1
  209. package/dist/tools/utils/getConfig.d.ts.map +1 -1
  210. package/dist/tools/utils/getConfig.js +3 -2
  211. package/dist/tools/utils/getConfig.js.map +1 -1
  212. package/dist/tools/utils/getEnvironment.d.ts.map +1 -1
  213. package/dist/tools/utils/getEnvironment.js +3 -2
  214. package/dist/tools/utils/getEnvironment.js.map +1 -1
  215. package/dist/tools/utils/getEthereumAddressFromPrivateKey.js.map +1 -1
  216. package/dist/tools/utils/getPublicKeyFromPrivateKey.js.map +1 -1
  217. package/dist/tools/utils/setWallet.js.map +1 -1
  218. package/dist/tools/utils/switchEnvironment.js +1 -1
  219. package/dist/tools/utils/switchEnvironment.js.map +1 -1
  220. package/dist/utils/date-converter.js +5 -5
  221. package/dist/utils/date-converter.js.map +1 -1
  222. package/dist/utils/default-values.d.ts +6 -6
  223. package/dist/utils/default-values.d.ts.map +1 -1
  224. package/dist/utils/default-values.js +5 -5
  225. package/dist/utils/default-values.js.map +1 -1
  226. package/dist/utils/error-templates.js +1 -1
  227. package/dist/utils/error-templates.js.map +1 -1
  228. package/dist/utils/pool-filter-builder.js +10 -10
  229. package/dist/utils/pool-filter-builder.js.map +1 -1
  230. package/dist/utils/response-formatter.js +1 -1
  231. package/dist/utils/tool-factory.d.ts.map +1 -1
  232. package/dist/utils/tool-factory.js +12 -4
  233. package/dist/utils/tool-factory.js.map +1 -1
  234. package/dist/utils/tool-registry.js +9 -9
  235. package/dist/utils/tool-registry.js.map +1 -1
  236. package/dist/utils/validation.js +1 -1
  237. package/dist/utils/validation.js.map +1 -1
  238. package/package.json +10 -10
  239. package/dist/ai-docs.json +0 -7357
  240. package/dist/explain-sdk-usage-ai.json +0 -3445
  241. package/dist/prompts/uploads.d.ts +0 -19
  242. package/dist/prompts/uploads.d.ts.map +0 -1
  243. package/dist/prompts/uploads.js +0 -114
  244. package/dist/prompts/uploads.js.map +0 -1
  245. package/dist/prompts/utils/index.d.ts +0 -21
  246. package/dist/prompts/utils/index.d.ts.map +0 -1
  247. package/dist/prompts/utils/index.js +0 -38
  248. package/dist/prompts/utils/index.js.map +0 -1
  249. package/dist/tools/bridge/helpers/bridgeable-token-tools.d.ts +0 -87
  250. package/dist/tools/bridge/helpers/bridgeable-token-tools.d.ts.map +0 -1
  251. package/dist/tools/bridge/helpers/bridgeable-token-tools.js +0 -130
  252. package/dist/tools/bridge/helpers/bridgeable-token-tools.js.map +0 -1
  253. package/dist/tools/dex/fetchAllDexPools.d.ts +0 -9
  254. package/dist/tools/dex/fetchAllDexPools.d.ts.map +0 -1
  255. package/dist/tools/dex/fetchAllDexPools.js +0 -38
  256. package/dist/tools/dex/fetchAllDexPools.js.map +0 -1
  257. package/dist/tools/dex/fetchDexPools.d.ts +0 -9
  258. package/dist/tools/dex/fetchDexPools.d.ts.map +0 -1
  259. package/dist/tools/dex/fetchDexPools.js +0 -41
  260. package/dist/tools/dex/fetchDexPools.js.map +0 -1
  261. package/dist/tools/dex/leaderboard.d.ts +0 -38
  262. package/dist/tools/dex/leaderboard.d.ts.map +0 -1
  263. package/dist/tools/dex/leaderboard.js +0 -88
  264. package/dist/tools/dex/leaderboard.js.map +0 -1
  265. package/dist/tools/dex/liquidity-positions.d.ts +0 -22
  266. package/dist/tools/dex/liquidity-positions.d.ts.map +0 -1
  267. package/dist/tools/dex/liquidity-positions.js +0 -599
  268. package/dist/tools/dex/liquidity-positions.js.map +0 -1
  269. package/dist/tools/dex/volume.d.ts +0 -19
  270. package/dist/tools/dex/volume.d.ts.map +0 -1
  271. package/dist/tools/dex/volume.js +0 -38
  272. package/dist/tools/dex/volume.js.map +0 -1
  273. package/dist/tools/pools/priceHistoryFactory.d.ts +0 -44
  274. package/dist/tools/pools/priceHistoryFactory.d.ts.map +0 -1
  275. package/dist/tools/pools/priceHistoryFactory.js +0 -154
  276. package/dist/tools/pools/priceHistoryFactory.js.map +0 -1
@@ -1,599 +0,0 @@
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.fetchSwapPositionDirectTool = exports.removeLiquidityTool = exports.addLiquidityByTicksTool = exports.addLiquidityByPriceTool = exports.estimateRemoveLiquidityTool = exports.getLiquidityPositionTool = exports.getLiquidityPositionByIdTool = exports.getAllUserLiquidityPositionsTool = 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
- const helpers_js_1 = require("./helpers.js");
17
- // Alias for backward compatibility within this file
18
- const TOKEN_SYMBOL_SCHEMA = common_schemas_js_1.DEX_TOKEN_SYMBOL_SCHEMA;
19
- // 1. Get User Liquidity Positions
20
- exports.getUserLiquidityPositionsTool = {
21
- name: 'gala_launchpad_get_user_liquidity_positions',
22
- description: 'Get all open liquidity positions for a wallet address with optional pagination and real-time pricing. Note: bookmark pagination and pricing options are mutually exclusive - use getAllUserLiquidityPositionsTool for pricing with auto-pagination',
23
- inputSchema: {
24
- type: 'object',
25
- properties: {
26
- ownerAddress: {
27
- ...common_schemas_js_1.ADDRESS_SCHEMA,
28
- description: 'Wallet address to query positions for (e.g., "0x1234..." or "eth|1234...")',
29
- },
30
- limit: {
31
- type: 'number',
32
- minimum: 1,
33
- maximum: 100,
34
- description: 'Maximum number of positions to return (optional)',
35
- },
36
- bookmark: {
37
- type: 'string',
38
- description: 'Pagination bookmark from previous response (optional). Cannot be used together with withPrices - if you need pricing, use getAllUserLiquidityPositionsTool instead',
39
- },
40
- withPrices: {
41
- type: 'boolean',
42
- description: 'Whether to fetch real-time pricing for each position (optional, default: false). Cannot be used together with bookmark - if you need pagination, use bookmark without withPrices. Pricing concurrency is controlled by SDK-level pricingConcurrency configuration',
43
- },
44
- },
45
- required: ['ownerAddress'],
46
- },
47
- handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
48
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK return type varies by invocation
49
- let result;
50
- // Determine which parameters to pass based on what's provided
51
- if (args.withPrices) {
52
- // When pricing is requested, pass pricing options as 3rd parameter (can't use bookmark with options)
53
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK method options not fully typed
54
- const pricingOptions = { withPrices: true };
55
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK method overloads not exported
56
- result = await sdk.getSwapUserLiquidityPositions(args.ownerAddress, args.limit, pricingOptions);
57
- }
58
- else if (args.bookmark) {
59
- // When only bookmark pagination is used, pass bookmark as 3rd parameter
60
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK method overloads not exported
61
- result = await sdk.getSwapUserLiquidityPositions(args.ownerAddress, args.limit, args.bookmark);
62
- }
63
- else {
64
- // No pagination or pricing, just fetch positions
65
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK method overloads not exported
66
- result = await sdk.getSwapUserLiquidityPositions(args.ownerAddress, args.limit);
67
- }
68
- // Handle both array and object returns for backward compatibility
69
- const positions = Array.isArray(result) ? result : result?.items || [];
70
- const prices = !Array.isArray(result) && result?.prices ? result.prices : new Map();
71
- const pricesCount = prices.size;
72
- return (0, response_formatter_js_1.formatSuccess)({
73
- ownerAddress: args.ownerAddress,
74
- positionCount: positions.length,
75
- positionsWithPricing: pricesCount,
76
- positions: (0, helpers_js_1.formatPositions)(positions),
77
- pricingStatus: args.withPrices
78
- ? `Pricing fetched for ${pricesCount}/${positions.length} positions`
79
- : 'No pricing requested',
80
- message: positions.length > 0
81
- ? `${positions.length} open positions found${args.withPrices ? ` with pricing data for ${pricesCount}` : ''}`
82
- : 'No open positions found',
83
- });
84
- }),
85
- };
86
- // 2. Get ALL User Liquidity Positions (Auto-Paginated)
87
- exports.getAllUserLiquidityPositionsTool = {
88
- name: 'gala_launchpad_get_all_user_liquidity_positions',
89
- description: 'Get ALL open liquidity positions for a wallet address with automatic pagination and optional real-time pricing',
90
- inputSchema: {
91
- type: 'object',
92
- properties: {
93
- ownerAddress: {
94
- ...common_schemas_js_1.ADDRESS_SCHEMA,
95
- description: 'Wallet address to query all positions for (e.g., "0x1234..." or "eth|1234...")',
96
- },
97
- withPrices: {
98
- type: 'boolean',
99
- description: 'Whether to fetch real-time pricing for each position (optional, default: false). Pricing concurrency is controlled by SDK-level pricingConcurrency configuration',
100
- },
101
- },
102
- required: ['ownerAddress'],
103
- },
104
- handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
105
- // Prepare pricing options object if requested
106
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK method options not fully typed
107
- const pricingOptions = args.withPrices ? { withPrices: true } : undefined;
108
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK return type varies by invocation
109
- const result = await sdk.getAllSwapUserLiquidityPositions(args.ownerAddress, pricingOptions);
110
- // Handle both array and object returns for backward compatibility
111
- const positions = Array.isArray(result) ? result : result?.items || [];
112
- const prices = !Array.isArray(result) && result?.prices ? result.prices : new Map();
113
- const pricesCount = prices.size;
114
- return (0, response_formatter_js_1.formatSuccess)({
115
- ownerAddress: args.ownerAddress,
116
- positionCount: positions.length,
117
- positionsWithPricing: pricesCount,
118
- positions: (0, helpers_js_1.formatPositions)(positions),
119
- pricingStatus: args.withPrices
120
- ? `Pricing fetched for ${pricesCount}/${positions.length} positions`
121
- : 'No pricing requested',
122
- message: positions.length > 0
123
- ? `${positions.length} open positions found (auto-paginated)${args.withPrices ? ` with pricing data for ${pricesCount}` : ''}`
124
- : 'No open positions found',
125
- });
126
- }),
127
- };
128
- // 3. Get Liquidity Position by ID
129
- exports.getLiquidityPositionByIdTool = {
130
- name: 'gala_launchpad_get_liquidity_position_by_id',
131
- description: 'Get specific liquidity position details by position ID',
132
- inputSchema: {
133
- type: 'object',
134
- properties: {
135
- ownerAddress: common_schemas_js_1.OWNER_ADDRESS_SCHEMA,
136
- positionId: {
137
- type: 'string',
138
- minLength: 1,
139
- description: 'Unique position identifier',
140
- },
141
- },
142
- required: ['ownerAddress', 'positionId'],
143
- },
144
- handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
145
- const position = await sdk.getSwapLiquidityPositionById(args.ownerAddress, args.positionId);
146
- if (!position) {
147
- return (0, response_formatter_js_1.formatSuccess)({
148
- found: false,
149
- message: `Position ${args.positionId} not found`,
150
- });
151
- }
152
- return (0, response_formatter_js_1.formatSuccess)({
153
- found: true,
154
- positionId: position.positionId,
155
- ownerAddress: position.ownerAddress,
156
- token0: position.token0,
157
- token1: position.token1,
158
- feeTier: position.feeTier,
159
- liquidity: position.liquidity,
160
- amount0: position.amount0,
161
- amount1: position.amount1,
162
- feeAmount0: position.feeAmount0,
163
- feeAmount1: position.feeAmount1,
164
- tickLower: position.tickLower,
165
- tickUpper: position.tickUpper,
166
- createdAt: position.createdAt ? new Date(position.createdAt).toISOString() : undefined,
167
- updatedAt: position.updatedAt ? new Date(position.updatedAt).toISOString() : undefined,
168
- message: `Position ${args.positionId}: ${position.liquidity} liquidity in ${position.token0}/${position.token1}`,
169
- });
170
- }),
171
- };
172
- // 4. Get Liquidity Position by Token Pair
173
- exports.getLiquidityPositionTool = {
174
- name: 'gala_launchpad_get_liquidity_position',
175
- description: 'Get liquidity position for a specific token pair and price range (tick boundaries)',
176
- inputSchema: {
177
- type: 'object',
178
- properties: {
179
- ownerAddress: common_schemas_js_1.OWNER_ADDRESS_SCHEMA,
180
- token0: TOKEN_SYMBOL_SCHEMA,
181
- token1: TOKEN_SYMBOL_SCHEMA,
182
- fee: common_schemas_js_1.FEE_TIER_SCHEMA,
183
- tickLower: {
184
- type: 'number',
185
- description: 'Lower tick boundary of the position',
186
- },
187
- tickUpper: {
188
- type: 'number',
189
- description: 'Upper tick boundary of the position',
190
- },
191
- },
192
- required: ['ownerAddress', 'token0', 'token1', 'fee', 'tickLower', 'tickUpper'],
193
- },
194
- handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
195
- // SDK validates tick spacing - no need for MCP-level validation
196
- const position = await sdk.getSwapLiquidityPosition(args.ownerAddress, {
197
- token0: args.token0,
198
- token1: args.token1,
199
- fee: args.fee,
200
- tickLower: args.tickLower,
201
- tickUpper: args.tickUpper,
202
- });
203
- if (!position) {
204
- return (0, response_formatter_js_1.formatSuccess)({
205
- found: false,
206
- message: `No position found for ${args.token0}/${args.token1} at ticks ${args.tickLower}-${args.tickUpper}`,
207
- });
208
- }
209
- return (0, response_formatter_js_1.formatSuccess)({
210
- found: true,
211
- positionId: position.positionId,
212
- token0: position.token0,
213
- token1: position.token1,
214
- feeTier: position.feeTier,
215
- liquidity: position.liquidity,
216
- amount0: position.amount0,
217
- amount1: position.amount1,
218
- feeAmount0: position.feeAmount0,
219
- feeAmount1: position.feeAmount1,
220
- tickLower: position.tickLower,
221
- tickUpper: position.tickUpper,
222
- message: `Found position: ${position.liquidity} liquidity with ${position.feeAmount0} ${args.token0} and ${position.feeAmount1} ${args.token1} in fees`,
223
- });
224
- }),
225
- };
226
- // 5. Estimate Liquidity Removal
227
- exports.estimateRemoveLiquidityTool = {
228
- name: 'gala_launchpad_estimate_remove_liquidity',
229
- description: 'Estimate tokens and fees received when removing liquidity at current market prices',
230
- inputSchema: {
231
- type: 'object',
232
- properties: {
233
- token0: TOKEN_SYMBOL_SCHEMA,
234
- token1: TOKEN_SYMBOL_SCHEMA,
235
- fee: common_schemas_js_1.FEE_TIER_SCHEMA,
236
- liquidity: {
237
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
238
- description: 'Liquidity amount to estimate removal for',
239
- },
240
- tickLower: {
241
- type: 'number',
242
- description: 'Lower tick boundary of the position',
243
- },
244
- tickUpper: {
245
- type: 'number',
246
- description: 'Upper tick boundary of the position',
247
- },
248
- ownerAddress: common_schemas_js_1.OWNER_ADDRESS_SCHEMA,
249
- },
250
- required: ['token0', 'token1', 'fee', 'liquidity', 'tickLower', 'tickUpper', 'ownerAddress'],
251
- },
252
- handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
253
- // SDK validates tick spacing - no need for MCP-level validation
254
- const estimate = await sdk.getSwapEstimateRemoveLiquidity({
255
- token0: args.token0,
256
- token1: args.token1,
257
- fee: args.fee,
258
- liquidity: args.liquidity,
259
- tickLower: args.tickLower,
260
- tickUpper: args.tickUpper,
261
- owner: args.ownerAddress,
262
- });
263
- // API only returns amount0 and amount1; other fields are optional
264
- return (0, response_formatter_js_1.formatSuccess)({
265
- amount0: estimate.amount0,
266
- amount1: estimate.amount1,
267
- message: `Removing ${args.liquidity} liquidity would return approximately ${estimate.amount0} ${args.token0} + ${estimate.amount1} ${args.token1}`,
268
- });
269
- }),
270
- };
271
- // 6. Add Liquidity by Price Range
272
- exports.addLiquidityByPriceTool = {
273
- name: 'gala_launchpad_add_liquidity_by_price',
274
- description: 'Add liquidity to a pool by specifying min/max price boundaries (SDK calculates tick boundaries)',
275
- inputSchema: {
276
- type: 'object',
277
- properties: {
278
- token0: TOKEN_SYMBOL_SCHEMA,
279
- token1: TOKEN_SYMBOL_SCHEMA,
280
- fee: common_schemas_js_1.FEE_TIER_SCHEMA,
281
- minPrice: {
282
- type: 'string',
283
- description: 'Minimum price boundary (e.g., "0.90")',
284
- },
285
- maxPrice: {
286
- type: 'string',
287
- description: 'Maximum price boundary (e.g., "1.10")',
288
- },
289
- amount0Desired: {
290
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
291
- description: 'Desired amount of token0 to provide',
292
- },
293
- amount1Desired: {
294
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
295
- description: 'Desired amount of token1 to provide',
296
- },
297
- amount0Min: {
298
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
299
- description: 'Minimum acceptable amount0 (optional, defaults to 0)',
300
- },
301
- amount1Min: {
302
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
303
- description: 'Minimum acceptable amount1 (optional, defaults to 0)',
304
- },
305
- },
306
- required: [
307
- 'token0',
308
- 'token1',
309
- 'fee',
310
- 'minPrice',
311
- 'maxPrice',
312
- 'amount0Desired',
313
- 'amount1Desired',
314
- ],
315
- },
316
- handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
317
- // Validate wallet before execution
318
- (0, helpers_js_1.validateWalletConfigured)(sdk);
319
- const typedArgs = args;
320
- const result = await sdk.addSwapLiquidityByPrice({
321
- token0: typedArgs.token0,
322
- token1: typedArgs.token1,
323
- fee: typedArgs.fee,
324
- minPrice: typedArgs.minPrice,
325
- maxPrice: typedArgs.maxPrice,
326
- amount0Desired: typedArgs.amount0Desired,
327
- amount1Desired: typedArgs.amount1Desired,
328
- amount0Min: typedArgs.amount0Min || '0',
329
- amount1Min: typedArgs.amount1Min || '0',
330
- });
331
- return (0, response_formatter_js_1.formatSuccess)({
332
- transactionId: result.transactionId,
333
- status: result.status,
334
- token0: typedArgs.token0,
335
- token1: typedArgs.token1,
336
- priceRange: `${typedArgs.minPrice} - ${typedArgs.maxPrice}`,
337
- amount0: result.amount0 || typedArgs.amount0Desired,
338
- amount1: result.amount1 || typedArgs.amount1Desired,
339
- liquidity: result.liquidity,
340
- positionId: result.positionId,
341
- message: `Liquidity added! Position: ${result.positionId || result.transactionId}`,
342
- });
343
- }),
344
- };
345
- // 7. Add Liquidity by Tick Range
346
- exports.addLiquidityByTicksTool = {
347
- name: 'gala_launchpad_add_liquidity_by_ticks',
348
- description: 'Add liquidity to a pool by specifying exact tick boundaries (advanced usage)',
349
- inputSchema: {
350
- type: 'object',
351
- properties: {
352
- token0: TOKEN_SYMBOL_SCHEMA,
353
- token1: TOKEN_SYMBOL_SCHEMA,
354
- feeTier: common_schemas_js_1.FEE_TIER_SCHEMA,
355
- tickLower: {
356
- type: 'number',
357
- description: 'Lower tick boundary (must be multiple of tickSpacing)',
358
- },
359
- tickUpper: {
360
- type: 'number',
361
- description: 'Upper tick boundary (must be multiple of tickSpacing)',
362
- },
363
- amount0Desired: {
364
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
365
- description: 'Desired amount of token0 to provide',
366
- },
367
- amount1Desired: {
368
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
369
- description: 'Desired amount of token1 to provide',
370
- },
371
- amount0Min: {
372
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
373
- description: 'Minimum acceptable amount0 (optional, defaults to 0)',
374
- },
375
- amount1Min: {
376
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
377
- description: 'Minimum acceptable amount1 (optional, defaults to 0)',
378
- },
379
- },
380
- required: [
381
- 'token0',
382
- 'token1',
383
- 'feeTier',
384
- 'tickLower',
385
- 'tickUpper',
386
- 'amount0Desired',
387
- 'amount1Desired',
388
- ],
389
- },
390
- handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
391
- // Validate wallet before execution
392
- (0, helpers_js_1.validateWalletConfigured)(sdk);
393
- const typedArgs = args;
394
- const result = await sdk.addSwapLiquidityByTicks({
395
- token0: typedArgs.token0,
396
- token1: typedArgs.token1,
397
- feeTier: typedArgs.feeTier,
398
- tickLower: typedArgs.tickLower,
399
- tickUpper: typedArgs.tickUpper,
400
- amount0Desired: typedArgs.amount0Desired,
401
- amount1Desired: typedArgs.amount1Desired,
402
- amount0Min: typedArgs.amount0Min || '0',
403
- amount1Min: typedArgs.amount1Min || '0',
404
- });
405
- return (0, response_formatter_js_1.formatSuccess)({
406
- transactionId: result.transactionId,
407
- status: result.status,
408
- token0: typedArgs.token0,
409
- token1: typedArgs.token1,
410
- tickRange: `${typedArgs.tickLower} - ${typedArgs.tickUpper}`,
411
- amount0: result.amount0 || typedArgs.amount0Desired,
412
- amount1: result.amount1 || typedArgs.amount1Desired,
413
- liquidity: result.liquidity,
414
- positionId: result.positionId,
415
- message: `Liquidity added! Position: ${result.positionId || result.transactionId}`,
416
- });
417
- }),
418
- };
419
- // 8. Remove Liquidity
420
- exports.removeLiquidityTool = {
421
- name: 'gala_launchpad_remove_liquidity',
422
- description: 'Remove liquidity from an open position and withdraw underlying tokens',
423
- inputSchema: {
424
- type: 'object',
425
- properties: {
426
- ownerAddress: common_schemas_js_1.OWNER_ADDRESS_SCHEMA,
427
- positionId: {
428
- type: 'string',
429
- minLength: 1,
430
- description: 'Position identifier to remove liquidity from',
431
- },
432
- liquidity: {
433
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
434
- description: 'Amount of liquidity to remove (full liquidity to close position)',
435
- },
436
- amount0Min: {
437
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
438
- description: 'Minimum acceptable amount of token0 to receive',
439
- },
440
- amount1Min: {
441
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
442
- description: 'Minimum acceptable amount of token1 to receive',
443
- },
444
- deadline: {
445
- type: 'number',
446
- description: 'Transaction deadline (unix timestamp, optional)',
447
- },
448
- },
449
- required: ['ownerAddress', 'positionId', 'liquidity', 'amount0Min', 'amount1Min'],
450
- },
451
- handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
452
- // Validate wallet before execution
453
- (0, helpers_js_1.validateWalletConfigured)(sdk);
454
- const ownerAddress = args.ownerAddress;
455
- const positionId = args.positionId;
456
- const liquidity = args.liquidity;
457
- const amount0Min = args.amount0Min;
458
- const amount1Min = args.amount1Min;
459
- // Fetch position details first to get all required parameters
460
- const position = await sdk.getSwapLiquidityPositionById(ownerAddress, positionId);
461
- if (!position) {
462
- throw new Error(`Position ${positionId} not found for owner ${ownerAddress}`);
463
- }
464
- const result = await sdk.removeSwapLiquidity({
465
- token0: position.token0,
466
- token1: position.token1,
467
- fee: position.feeTier,
468
- tickLower: position.tickLower,
469
- tickUpper: position.tickUpper,
470
- liquidity,
471
- amount0Min,
472
- amount1Min,
473
- positionId,
474
- });
475
- return (0, response_formatter_js_1.formatSuccess)({
476
- transactionId: result.transactionId,
477
- status: result.status,
478
- positionId,
479
- token0: position.token0,
480
- token1: position.token1,
481
- liquidity,
482
- amount0: result.amount0,
483
- amount1: result.amount1,
484
- message: `Liquidity removed! Received ${result.amount0} ${position.token0} and ${result.amount1} ${position.token1}`,
485
- });
486
- }),
487
- };
488
- // 9. Fetch Swap Position Direct (compound key lookup - most efficient)
489
- exports.fetchSwapPositionDirectTool = {
490
- name: 'gala_launchpad_fetch_swap_position_direct',
491
- description: 'Fetch a single liquidity position using ONLY the compound key (most efficient). Makes a direct HTTP call to GalaChain Gateway using token0, token1, fee, and tick range.',
492
- inputSchema: {
493
- type: 'object',
494
- properties: {
495
- token0: TOKEN_SYMBOL_SCHEMA,
496
- token1: TOKEN_SYMBOL_SCHEMA,
497
- fee: common_schemas_js_1.FEE_TIER_SCHEMA,
498
- tickLower: {
499
- type: 'number',
500
- description: 'Lower tick boundary of the position',
501
- },
502
- tickUpper: {
503
- type: 'number',
504
- description: 'Upper tick boundary of the position',
505
- },
506
- ownerAddress: common_schemas_js_1.OWNER_ADDRESS_SCHEMA,
507
- },
508
- required: ['token0', 'token1', 'fee', 'tickLower', 'tickUpper', 'ownerAddress'],
509
- },
510
- handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
511
- const position = await sdk.fetchSwapPositionDirect({
512
- token0: args.token0,
513
- token1: args.token1,
514
- fee: args.fee,
515
- tickLower: args.tickLower,
516
- tickUpper: args.tickUpper,
517
- owner: args.ownerAddress,
518
- });
519
- if (!position) {
520
- return (0, response_formatter_js_1.formatSuccess)({
521
- found: false,
522
- message: `No position found for ${args.token0}/${args.token1} at ticks ${args.tickLower}-${args.tickUpper}`,
523
- });
524
- }
525
- return (0, response_formatter_js_1.formatSuccess)({
526
- found: true,
527
- position,
528
- message: `Position found: ${position.liquidity} liquidity in ${args.token0}/${args.token1}`,
529
- });
530
- }),
531
- };
532
- // 10. Collect Position Fees
533
- exports.collectPositionFeesTool = {
534
- name: 'gala_launchpad_collect_position_fees',
535
- description: 'Collect accumulated trading fees from a liquidity position without modifying the position',
536
- inputSchema: {
537
- type: 'object',
538
- properties: {
539
- ownerAddress: common_schemas_js_1.OWNER_ADDRESS_SCHEMA,
540
- positionId: {
541
- type: 'string',
542
- minLength: 1,
543
- description: 'Position identifier to collect fees from',
544
- },
545
- amount0Max: {
546
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
547
- description: 'Maximum amount of token0 fees to collect (optional)',
548
- },
549
- amount1Max: {
550
- ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
551
- description: 'Maximum amount of token1 fees to collect (optional)',
552
- },
553
- },
554
- required: ['ownerAddress', 'positionId'],
555
- },
556
- handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
557
- // Validate wallet before execution
558
- (0, helpers_js_1.validateWalletConfigured)(sdk);
559
- const ownerAddress = args.ownerAddress;
560
- const positionId = args.positionId;
561
- const amount0Max = args.amount0Max;
562
- const amount1Max = args.amount1Max;
563
- // Fetch position details first to get token class keys
564
- const position = await sdk.getSwapLiquidityPositionById(ownerAddress, positionId);
565
- if (!position) {
566
- throw new Error(`Position ${positionId} not found for owner ${ownerAddress}`);
567
- }
568
- const result = await sdk.collectSwapPositionFees({
569
- ownerAddress,
570
- positionId,
571
- amount0Max,
572
- amount1Max,
573
- });
574
- return (0, response_formatter_js_1.formatSuccess)({
575
- transactionId: result.transactionId,
576
- status: result.status,
577
- positionId,
578
- token0: position.token0,
579
- token1: position.token1,
580
- amount0Collected: result.amount0,
581
- amount1Collected: result.amount1,
582
- message: `Fees collected! ${result.amount0} ${position.token0} and ${result.amount1} ${position.token1} harvested`,
583
- });
584
- }),
585
- };
586
- // Export all liquidity position tools
587
- exports.liquidityPositionTools = [
588
- exports.getUserLiquidityPositionsTool,
589
- exports.getAllUserLiquidityPositionsTool,
590
- exports.getLiquidityPositionByIdTool,
591
- exports.getLiquidityPositionTool,
592
- exports.estimateRemoveLiquidityTool,
593
- exports.addLiquidityByPriceTool,
594
- exports.addLiquidityByTicksTool,
595
- exports.removeLiquidityTool,
596
- exports.fetchSwapPositionDirectTool,
597
- exports.collectPositionFeesTool,
598
- ];
599
- //# sourceMappingURL=liquidity-positions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"liquidity-positions.js","sourceRoot":"","sources":["../../../src/tools/dex/liquidity-positions.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAGH,6EAAkE;AAClE,mEAAiE;AACjE,uEAMyC;AAKzC,6CAAyE;AAEzE,oDAAoD;AACpD,MAAM,mBAAmB,GAAG,2CAAuB,CAAC;AAEpD,kCAAkC;AACrB,QAAA,6BAA6B,GAAY;IACpD,IAAI,EAAE,6CAA6C;IACnD,WAAW,EACT,oPAAoP;IACtP,WAAW,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,EAAE,QAAQ,CAAC,MAAM;YACvB,MAAM,EAAE,QAAQ,CAAC,MAAM;YACvB,gBAAgB,EAAE,MAAM,CAAC,OAAO;YAChC,gBAAgB,EAAE,MAAM,CAAC,OAAO;YAChC,OAAO,EAAE,mBAAmB,MAAM,CAAC,OAAO,IAAI,QAAQ,CAAC,MAAM,QAAQ,MAAM,CAAC,OAAO,IAAI,QAAQ,CAAC,MAAM,YAAY;SACnH,CAAC,CAAC;IACL,CAAC,CAAC;CACH,CAAC;AAEF,sCAAsC;AACzB,QAAA,sBAAsB,GAAc;IAC/C,qCAA6B;IAC7B,wCAAgC;IAChC,oCAA4B;IAC5B,gCAAwB;IACxB,mCAA2B;IAC3B,+BAAuB;IACvB,+BAAuB;IACvB,2BAAmB;IACnB,mCAA2B;IAC3B,+BAAuB;CACxB,CAAC"}
@@ -1,19 +0,0 @@
1
- /**
2
- * DEX Volume Summary MCP Tools
3
- *
4
- * MCP tool for fetching DEX aggregated volume summary with trend metrics.
5
- * Provides access to platform-wide trading volume statistics.
6
- */
7
- import type { MCPTool } from '../../types/mcp.js';
8
- /**
9
- * Fetch DEX aggregated volume summary tool
10
- *
11
- * Returns platform-wide trading volume statistics with 1-day, 7-day,
12
- * and 30-day comparisons and percentage changes.
13
- */
14
- export declare const fetchDexAggregatedVolumeSummaryTool: MCPTool;
15
- /**
16
- * Export all volume summary tools
17
- */
18
- export declare const volumeTools: MCPTool[];
19
- //# sourceMappingURL=volume.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"volume.d.ts","sourceRoot":"","sources":["../../../src/tools/dex/volume.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAclD;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,EAAE,OAuBjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,OAAO,EAEhC,CAAC"}