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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (522) hide show
  1. package/README.md +49 -21
  2. package/dist/ai-docs.json +7357 -0
  3. package/dist/constants/mcpToolNames.d.ts +3 -1
  4. package/dist/constants/mcpToolNames.d.ts.map +1 -1
  5. package/dist/constants/mcpToolNames.js +2 -1
  6. package/dist/constants/mcpToolNames.js.map +1 -1
  7. package/dist/explain-sdk-usage-ai.json +3445 -0
  8. package/dist/generated/version.d.ts +1 -1
  9. package/dist/generated/version.d.ts.map +1 -1
  10. package/dist/generated/version.js +1 -1
  11. package/dist/generated/version.js.map +1 -1
  12. package/dist/prompts/account.d.ts +24 -0
  13. package/dist/prompts/account.d.ts.map +1 -0
  14. package/dist/prompts/account.js +89 -0
  15. package/dist/prompts/account.js.map +1 -0
  16. package/dist/prompts/api-keys.d.ts +36 -0
  17. package/dist/prompts/api-keys.d.ts.map +1 -0
  18. package/dist/prompts/api-keys.js +251 -0
  19. package/dist/prompts/api-keys.js.map +1 -0
  20. package/dist/prompts/auth.d.ts +29 -0
  21. package/dist/prompts/auth.d.ts.map +1 -0
  22. package/dist/prompts/auth.js +127 -0
  23. package/dist/prompts/auth.js.map +1 -0
  24. package/dist/prompts/balances.d.ts.map +1 -1
  25. package/dist/prompts/balances.js +17 -17
  26. package/dist/prompts/balances.js.map +1 -1
  27. package/dist/prompts/bans.d.ts +23 -0
  28. package/dist/prompts/bans.d.ts.map +1 -0
  29. package/dist/prompts/bans.js +82 -0
  30. package/dist/prompts/bans.js.map +1 -0
  31. package/dist/prompts/bridge.d.ts +2 -1
  32. package/dist/prompts/bridge.d.ts.map +1 -1
  33. package/dist/prompts/bridge.js +91 -227
  34. package/dist/prompts/bridge.js.map +1 -1
  35. package/dist/prompts/burns.d.ts +30 -0
  36. package/dist/prompts/burns.d.ts.map +1 -0
  37. package/dist/prompts/burns.js +127 -0
  38. package/dist/prompts/burns.js.map +1 -0
  39. package/dist/prompts/chat-messages.d.ts +21 -0
  40. package/dist/prompts/chat-messages.d.ts.map +1 -0
  41. package/dist/prompts/chat-messages.js +103 -0
  42. package/dist/prompts/chat-messages.js.map +1 -0
  43. package/dist/prompts/chat.d.ts +67 -0
  44. package/dist/prompts/chat.d.ts.map +1 -0
  45. package/dist/prompts/chat.js +355 -0
  46. package/dist/prompts/chat.js.map +1 -0
  47. package/dist/prompts/comments.d.ts +29 -0
  48. package/dist/prompts/comments.d.ts.map +1 -0
  49. package/dist/prompts/comments.js +133 -0
  50. package/dist/prompts/comments.js.map +1 -0
  51. package/dist/prompts/content-flags.d.ts +29 -0
  52. package/dist/prompts/content-flags.d.ts.map +1 -0
  53. package/dist/prompts/content-flags.js +248 -0
  54. package/dist/prompts/content-flags.js.map +1 -0
  55. package/dist/prompts/content-reactions.d.ts +29 -0
  56. package/dist/prompts/content-reactions.d.ts.map +1 -0
  57. package/dist/prompts/content-reactions.js +77 -0
  58. package/dist/prompts/content-reactions.js.map +1 -0
  59. package/dist/prompts/create-token.d.ts.map +1 -1
  60. package/dist/prompts/create-token.js +11 -18
  61. package/dist/prompts/create-token.js.map +1 -1
  62. package/dist/prompts/dex-trading.d.ts.map +1 -1
  63. package/dist/prompts/dex-trading.js +11 -42
  64. package/dist/prompts/dex-trading.js.map +1 -1
  65. package/dist/prompts/discover-tokens.d.ts.map +1 -1
  66. package/dist/prompts/discover-tokens.js +11 -26
  67. package/dist/prompts/discover-tokens.js.map +1 -1
  68. package/dist/prompts/event-subscriptions.d.ts +45 -0
  69. package/dist/prompts/event-subscriptions.d.ts.map +1 -0
  70. package/dist/prompts/event-subscriptions.js +330 -0
  71. package/dist/prompts/event-subscriptions.js.map +1 -0
  72. package/dist/prompts/explore-dex-pools.d.ts +2 -0
  73. package/dist/prompts/explore-dex-pools.d.ts.map +1 -1
  74. package/dist/prompts/explore-dex-pools.js +26 -104
  75. package/dist/prompts/explore-dex-pools.js.map +1 -1
  76. package/dist/prompts/factories/balance-prompt-factory.d.ts +102 -0
  77. package/dist/prompts/factories/balance-prompt-factory.d.ts.map +1 -0
  78. package/dist/prompts/factories/balance-prompt-factory.js +176 -0
  79. package/dist/prompts/factories/balance-prompt-factory.js.map +1 -0
  80. package/dist/prompts/factories/ban-management-factory.d.ts +90 -0
  81. package/dist/prompts/factories/ban-management-factory.d.ts.map +1 -0
  82. package/dist/prompts/factories/ban-management-factory.js +330 -0
  83. package/dist/prompts/factories/ban-management-factory.js.map +1 -0
  84. package/dist/prompts/factories/calculation-prompt-factory.d.ts +119 -0
  85. package/dist/prompts/factories/calculation-prompt-factory.d.ts.map +1 -0
  86. package/dist/prompts/factories/calculation-prompt-factory.js +183 -0
  87. package/dist/prompts/factories/calculation-prompt-factory.js.map +1 -0
  88. package/dist/prompts/factories/discovery-prompt-factory.d.ts +135 -0
  89. package/dist/prompts/factories/discovery-prompt-factory.d.ts.map +1 -0
  90. package/dist/prompts/factories/discovery-prompt-factory.js +240 -0
  91. package/dist/prompts/factories/discovery-prompt-factory.js.map +1 -0
  92. package/dist/prompts/factories/event-subscription-factory.d.ts +177 -0
  93. package/dist/prompts/factories/event-subscription-factory.d.ts.map +1 -0
  94. package/dist/prompts/factories/event-subscription-factory.js +329 -0
  95. package/dist/prompts/factories/event-subscription-factory.js.map +1 -0
  96. package/dist/prompts/factories/filtered-list-prompt-factory.d.ts +95 -0
  97. package/dist/prompts/factories/filtered-list-prompt-factory.d.ts.map +1 -0
  98. package/dist/prompts/factories/filtered-list-prompt-factory.js +147 -0
  99. package/dist/prompts/factories/filtered-list-prompt-factory.js.map +1 -0
  100. package/dist/prompts/factories/index.d.ts +33 -0
  101. package/dist/prompts/factories/index.d.ts.map +1 -0
  102. package/dist/prompts/factories/index.js +91 -0
  103. package/dist/prompts/factories/index.js.map +1 -0
  104. package/dist/prompts/factories/invite-management-factory.d.ts +88 -0
  105. package/dist/prompts/factories/invite-management-factory.d.ts.map +1 -0
  106. package/dist/prompts/factories/invite-management-factory.js +262 -0
  107. package/dist/prompts/factories/invite-management-factory.js.map +1 -0
  108. package/dist/prompts/factories/reaction-prompt-factory.d.ts +81 -0
  109. package/dist/prompts/factories/reaction-prompt-factory.d.ts.map +1 -0
  110. package/dist/prompts/factories/reaction-prompt-factory.js +188 -0
  111. package/dist/prompts/factories/reaction-prompt-factory.js.map +1 -0
  112. package/dist/prompts/factories/simple-operation-factory.d.ts +166 -0
  113. package/dist/prompts/factories/simple-operation-factory.d.ts.map +1 -0
  114. package/dist/prompts/factories/simple-operation-factory.js +218 -0
  115. package/dist/prompts/factories/simple-operation-factory.js.map +1 -0
  116. package/dist/prompts/index.d.ts +31 -6
  117. package/dist/prompts/index.d.ts.map +1 -1
  118. package/dist/prompts/index.js +136 -5
  119. package/dist/prompts/index.js.map +1 -1
  120. package/dist/prompts/locks.d.ts.map +1 -1
  121. package/dist/prompts/locks.js +32 -56
  122. package/dist/prompts/locks.js.map +1 -1
  123. package/dist/prompts/moderators.d.ts +22 -0
  124. package/dist/prompts/moderators.d.ts.map +1 -0
  125. package/dist/prompts/moderators.js +62 -0
  126. package/dist/prompts/moderators.js.map +1 -0
  127. package/dist/prompts/monitoring.d.ts +3 -1
  128. package/dist/prompts/monitoring.d.ts.map +1 -1
  129. package/dist/prompts/monitoring.js +52 -140
  130. package/dist/prompts/monitoring.js.map +1 -1
  131. package/dist/prompts/overseers.d.ts +34 -0
  132. package/dist/prompts/overseers.d.ts.map +1 -0
  133. package/dist/prompts/overseers.js +117 -0
  134. package/dist/prompts/overseers.js.map +1 -0
  135. package/dist/prompts/pools.d.ts +22 -20
  136. package/dist/prompts/pools.d.ts.map +1 -1
  137. package/dist/prompts/pools.js +150 -251
  138. package/dist/prompts/pools.js.map +1 -1
  139. package/dist/prompts/portfolio.d.ts.map +1 -1
  140. package/dist/prompts/portfolio.js +1 -9
  141. package/dist/prompts/portfolio.js.map +1 -1
  142. package/dist/prompts/prompt-factories.d.ts +179 -0
  143. package/dist/prompts/prompt-factories.d.ts.map +1 -0
  144. package/dist/prompts/prompt-factories.js +230 -0
  145. package/dist/prompts/prompt-factories.js.map +1 -0
  146. package/dist/prompts/referrals.d.ts +27 -0
  147. package/dist/prompts/referrals.d.ts.map +1 -0
  148. package/dist/prompts/referrals.js +176 -0
  149. package/dist/prompts/referrals.js.map +1 -0
  150. package/dist/prompts/streaming.d.ts +84 -0
  151. package/dist/prompts/streaming.d.ts.map +1 -0
  152. package/dist/prompts/streaming.js +411 -0
  153. package/dist/prompts/streaming.js.map +1 -0
  154. package/dist/prompts/tier1-bridge-operations.d.ts +30 -0
  155. package/dist/prompts/tier1-bridge-operations.d.ts.map +1 -0
  156. package/dist/prompts/tier1-bridge-operations.js +634 -0
  157. package/dist/prompts/tier1-bridge-operations.js.map +1 -0
  158. package/dist/prompts/tier1-liquidity-management.d.ts +30 -0
  159. package/dist/prompts/tier1-liquidity-management.d.ts.map +1 -0
  160. package/dist/prompts/tier1-liquidity-management.js +560 -0
  161. package/dist/prompts/tier1-liquidity-management.js.map +1 -0
  162. package/dist/prompts/tier1-pool-discovery.d.ts +30 -0
  163. package/dist/prompts/tier1-pool-discovery.d.ts.map +1 -0
  164. package/dist/prompts/tier1-pool-discovery.js +221 -0
  165. package/dist/prompts/tier1-pool-discovery.js.map +1 -0
  166. package/dist/prompts/tier1-price-history.d.ts +30 -0
  167. package/dist/prompts/tier1-price-history.d.ts.map +1 -0
  168. package/dist/prompts/tier1-price-history.js +429 -0
  169. package/dist/prompts/tier1-price-history.js.map +1 -0
  170. package/dist/prompts/tier1-token-analysis.d.ts +30 -0
  171. package/dist/prompts/tier1-token-analysis.d.ts.map +1 -0
  172. package/dist/prompts/tier1-token-analysis.js +376 -0
  173. package/dist/prompts/tier1-token-analysis.js.map +1 -0
  174. package/dist/prompts/tier2-account-setup.d.ts +24 -0
  175. package/dist/prompts/tier2-account-setup.d.ts.map +1 -0
  176. package/dist/prompts/tier2-account-setup.js +206 -0
  177. package/dist/prompts/tier2-account-setup.js.map +1 -0
  178. package/dist/prompts/tier2-advanced-liquidity.d.ts +24 -0
  179. package/dist/prompts/tier2-advanced-liquidity.d.ts.map +1 -0
  180. package/dist/prompts/tier2-advanced-liquidity.js +298 -0
  181. package/dist/prompts/tier2-advanced-liquidity.js.map +1 -0
  182. package/dist/prompts/tier2-asset-management.d.ts +25 -0
  183. package/dist/prompts/tier2-asset-management.d.ts.map +1 -0
  184. package/dist/prompts/tier2-asset-management.js +246 -0
  185. package/dist/prompts/tier2-asset-management.js.map +1 -0
  186. package/dist/prompts/tier2-token-lifecycle.d.ts +25 -0
  187. package/dist/prompts/tier2-token-lifecycle.d.ts.map +1 -0
  188. package/dist/prompts/tier2-token-lifecycle.js +241 -0
  189. package/dist/prompts/tier2-token-lifecycle.js.map +1 -0
  190. package/dist/prompts/tier3-community-engagement.d.ts +26 -0
  191. package/dist/prompts/tier3-community-engagement.d.ts.map +1 -0
  192. package/dist/prompts/tier3-community-engagement.js +610 -0
  193. package/dist/prompts/tier3-community-engagement.js.map +1 -0
  194. package/dist/prompts/tier3-moderation-workflows.d.ts +31 -0
  195. package/dist/prompts/tier3-moderation-workflows.d.ts.map +1 -0
  196. package/dist/prompts/tier3-moderation-workflows.js +511 -0
  197. package/dist/prompts/tier3-moderation-workflows.js.map +1 -0
  198. package/dist/prompts/tier3-streaming-management.d.ts +26 -0
  199. package/dist/prompts/tier3-streaming-management.d.ts.map +1 -0
  200. package/dist/prompts/tier3-streaming-management.js +797 -0
  201. package/dist/prompts/tier3-streaming-management.js.map +1 -0
  202. package/dist/prompts/token-bans.d.ts +27 -0
  203. package/dist/prompts/token-bans.d.ts.map +1 -0
  204. package/dist/prompts/token-bans.js +77 -0
  205. package/dist/prompts/token-bans.js.map +1 -0
  206. package/dist/prompts/trades.d.ts +22 -0
  207. package/dist/prompts/trades.d.ts.map +1 -0
  208. package/dist/prompts/trades.js +107 -0
  209. package/dist/prompts/trades.js.map +1 -0
  210. package/dist/prompts/trading-calculations.d.ts +3 -1
  211. package/dist/prompts/trading-calculations.d.ts.map +1 -1
  212. package/dist/prompts/trading-calculations.js +134 -270
  213. package/dist/prompts/trading-calculations.js.map +1 -1
  214. package/dist/prompts/trading.d.ts +10 -1
  215. package/dist/prompts/trading.d.ts.map +1 -1
  216. package/dist/prompts/trading.js +128 -2
  217. package/dist/prompts/trading.js.map +1 -1
  218. package/dist/prompts/transfers.d.ts +2 -1
  219. package/dist/prompts/transfers.d.ts.map +1 -1
  220. package/dist/prompts/transfers.js +26 -30
  221. package/dist/prompts/transfers.js.map +1 -1
  222. package/dist/prompts/uploads.d.ts +19 -0
  223. package/dist/prompts/uploads.d.ts.map +1 -0
  224. package/dist/prompts/uploads.js +114 -0
  225. package/dist/prompts/uploads.js.map +1 -0
  226. package/dist/prompts/utility-tools.d.ts.map +1 -1
  227. package/dist/prompts/utility-tools.js +27 -18
  228. package/dist/prompts/utility-tools.js.map +1 -1
  229. package/dist/prompts/utils/index.d.ts +21 -0
  230. package/dist/prompts/utils/index.d.ts.map +1 -0
  231. package/dist/prompts/utils/index.js +38 -0
  232. package/dist/prompts/utils/index.js.map +1 -0
  233. package/dist/prompts/utils/pagination-helpers.d.ts +95 -0
  234. package/dist/prompts/utils/pagination-helpers.d.ts.map +1 -0
  235. package/dist/prompts/utils/pagination-helpers.js +121 -0
  236. package/dist/prompts/utils/pagination-helpers.js.map +1 -0
  237. package/dist/prompts/utils/workflowTemplates.d.ts.map +1 -1
  238. package/dist/prompts/utils/workflowTemplates.js +4 -3
  239. package/dist/prompts/utils/workflowTemplates.js.map +1 -1
  240. package/dist/prompts/wallet.d.ts +24 -0
  241. package/dist/prompts/wallet.d.ts.map +1 -0
  242. package/dist/prompts/wallet.js +139 -0
  243. package/dist/prompts/wallet.js.map +1 -0
  244. package/dist/schemas/common-schemas.d.ts +890 -0
  245. package/dist/schemas/common-schemas.d.ts.map +1 -1
  246. package/dist/schemas/common-schemas.js +853 -1
  247. package/dist/schemas/common-schemas.js.map +1 -1
  248. package/dist/server.d.ts +31 -3
  249. package/dist/server.d.ts.map +1 -1
  250. package/dist/server.js +68 -7
  251. package/dist/server.js.map +1 -1
  252. package/dist/tools/api-keys/index.d.ts +41 -0
  253. package/dist/tools/api-keys/index.d.ts.map +1 -0
  254. package/dist/tools/api-keys/index.js +245 -0
  255. package/dist/tools/api-keys/index.js.map +1 -0
  256. package/dist/tools/auth/index.d.ts +19 -0
  257. package/dist/tools/auth/index.d.ts.map +1 -0
  258. package/dist/tools/auth/index.js +138 -0
  259. package/dist/tools/auth/index.js.map +1 -0
  260. package/dist/tools/balance/helpers/format-balance.d.ts +86 -0
  261. package/dist/tools/balance/helpers/format-balance.d.ts.map +1 -0
  262. package/dist/tools/balance/helpers/format-balance.js +87 -0
  263. package/dist/tools/balance/helpers/format-balance.js.map +1 -0
  264. package/dist/tools/balance/index.d.ts +4 -4
  265. package/dist/tools/balance/index.d.ts.map +1 -1
  266. package/dist/tools/balance/index.js +64 -176
  267. package/dist/tools/balance/index.js.map +1 -1
  268. package/dist/tools/ban/index.d.ts +37 -0
  269. package/dist/tools/ban/index.d.ts.map +1 -0
  270. package/dist/tools/ban/index.js +206 -0
  271. package/dist/tools/ban/index.js.map +1 -0
  272. package/dist/tools/bridge/helpers/bridgeable-token-tools.d.ts +87 -0
  273. package/dist/tools/bridge/helpers/bridgeable-token-tools.d.ts.map +1 -0
  274. package/dist/tools/bridge/helpers/bridgeable-token-tools.js +130 -0
  275. package/dist/tools/bridge/helpers/bridgeable-token-tools.js.map +1 -0
  276. package/dist/tools/bridge/helpers/external-chain-balance-tools.d.ts +87 -0
  277. package/dist/tools/bridge/helpers/external-chain-balance-tools.d.ts.map +1 -0
  278. package/dist/tools/bridge/helpers/external-chain-balance-tools.js +167 -0
  279. package/dist/tools/bridge/helpers/external-chain-balance-tools.js.map +1 -0
  280. package/dist/tools/bridge/index.d.ts +3 -7
  281. package/dist/tools/bridge/index.d.ts.map +1 -1
  282. package/dist/tools/bridge/index.js +89 -371
  283. package/dist/tools/bridge/index.js.map +1 -1
  284. package/dist/tools/burns/index.d.ts.map +1 -1
  285. package/dist/tools/burns/index.js +8 -36
  286. package/dist/tools/burns/index.js.map +1 -1
  287. package/dist/tools/chat/getPinnedChatMessage.d.ts +15 -0
  288. package/dist/tools/chat/getPinnedChatMessage.d.ts.map +1 -0
  289. package/dist/tools/chat/getPinnedChatMessage.js +37 -0
  290. package/dist/tools/chat/getPinnedChatMessage.js.map +1 -0
  291. package/dist/tools/chat/index.d.ts +73 -0
  292. package/dist/tools/chat/index.d.ts.map +1 -0
  293. package/dist/tools/chat/index.js +359 -0
  294. package/dist/tools/chat/index.js.map +1 -0
  295. package/dist/tools/chat/pinChatMessage.d.ts +16 -0
  296. package/dist/tools/chat/pinChatMessage.d.ts.map +1 -0
  297. package/dist/tools/chat/pinChatMessage.js +51 -0
  298. package/dist/tools/chat/pinChatMessage.js.map +1 -0
  299. package/dist/tools/chat/unpinChatMessage.d.ts +16 -0
  300. package/dist/tools/chat/unpinChatMessage.d.ts.map +1 -0
  301. package/dist/tools/chat/unpinChatMessage.js +39 -0
  302. package/dist/tools/chat/unpinChatMessage.js.map +1 -0
  303. package/dist/tools/chat-messages/index.d.ts +35 -0
  304. package/dist/tools/chat-messages/index.d.ts.map +1 -0
  305. package/dist/tools/chat-messages/index.js +165 -0
  306. package/dist/tools/chat-messages/index.js.map +1 -0
  307. package/dist/tools/comments/index.d.ts +44 -0
  308. package/dist/tools/comments/index.d.ts.map +1 -0
  309. package/dist/tools/comments/index.js +171 -0
  310. package/dist/tools/comments/index.js.map +1 -0
  311. package/dist/tools/content-flags/index.d.ts +38 -0
  312. package/dist/tools/content-flags/index.d.ts.map +1 -0
  313. package/dist/tools/content-flags/index.js +282 -0
  314. package/dist/tools/content-flags/index.js.map +1 -0
  315. package/dist/tools/content-reactions/index.d.ts +43 -0
  316. package/dist/tools/content-reactions/index.d.ts.map +1 -0
  317. package/dist/tools/content-reactions/index.js +135 -0
  318. package/dist/tools/content-reactions/index.js.map +1 -0
  319. package/dist/tools/creation/index.d.ts.map +1 -1
  320. package/dist/tools/creation/index.js +2 -5
  321. package/dist/tools/creation/index.js.map +1 -1
  322. package/dist/tools/dex/fetchAllDexPools.d.ts.map +1 -1
  323. package/dist/tools/dex/fetchAllDexPools.js +5 -21
  324. package/dist/tools/dex/fetchAllDexPools.js.map +1 -1
  325. package/dist/tools/dex/fetchDexPools.d.ts.map +1 -1
  326. package/dist/tools/dex/fetchDexPools.js +11 -28
  327. package/dist/tools/dex/fetchDexPools.js.map +1 -1
  328. package/dist/tools/dex/helpers.d.ts +479 -0
  329. package/dist/tools/dex/helpers.d.ts.map +1 -0
  330. package/dist/tools/dex/helpers.js +570 -0
  331. package/dist/tools/dex/helpers.js.map +1 -0
  332. package/dist/tools/dex/index.d.ts +50 -11
  333. package/dist/tools/dex/index.d.ts.map +1 -1
  334. package/dist/tools/dex/index.js +124 -486
  335. package/dist/tools/dex/index.js.map +1 -1
  336. package/dist/tools/dex/leaderboard.d.ts.map +1 -1
  337. package/dist/tools/dex/leaderboard.js +5 -70
  338. package/dist/tools/dex/leaderboard.js.map +1 -1
  339. package/dist/tools/dex/liquidity-positions.d.ts.map +1 -1
  340. package/dist/tools/dex/liquidity-positions.js +20 -91
  341. package/dist/tools/dex/liquidity-positions.js.map +1 -1
  342. package/dist/tools/dex/volume.d.ts.map +1 -1
  343. package/dist/tools/dex/volume.js +6 -21
  344. package/dist/tools/dex/volume.js.map +1 -1
  345. package/dist/tools/dex-analytics/index.d.ts +48 -0
  346. package/dist/tools/dex-analytics/index.d.ts.map +1 -0
  347. package/dist/tools/dex-analytics/index.js +111 -0
  348. package/dist/tools/dex-analytics/index.js.map +1 -0
  349. package/dist/tools/dex-liquidity/index.d.ts +22 -0
  350. package/dist/tools/dex-liquidity/index.d.ts.map +1 -0
  351. package/dist/tools/dex-liquidity/index.js +384 -0
  352. package/dist/tools/dex-liquidity/index.js.map +1 -0
  353. package/dist/tools/dex-pools/index.d.ts +60 -0
  354. package/dist/tools/dex-pools/index.d.ts.map +1 -0
  355. package/dist/tools/dex-pools/index.js +231 -0
  356. package/dist/tools/dex-pools/index.js.map +1 -0
  357. package/dist/tools/handler-factories.d.ts +1401 -0
  358. package/dist/tools/handler-factories.d.ts.map +1 -0
  359. package/dist/tools/handler-factories.js +1680 -0
  360. package/dist/tools/handler-factories.js.map +1 -0
  361. package/dist/tools/index.d.ts +1 -11
  362. package/dist/tools/index.d.ts.map +1 -1
  363. package/dist/tools/index.js +171 -27
  364. package/dist/tools/index.js.map +1 -1
  365. package/dist/tools/locks/index.d.ts +2 -0
  366. package/dist/tools/locks/index.d.ts.map +1 -1
  367. package/dist/tools/locks/index.js +9 -86
  368. package/dist/tools/locks/index.js.map +1 -1
  369. package/dist/tools/moderators/index.d.ts +53 -0
  370. package/dist/tools/moderators/index.d.ts.map +1 -0
  371. package/dist/tools/moderators/index.js +258 -0
  372. package/dist/tools/moderators/index.js.map +1 -0
  373. package/dist/tools/overseers/getOverseerUserSummary.d.ts +15 -0
  374. package/dist/tools/overseers/getOverseerUserSummary.d.ts.map +1 -0
  375. package/dist/tools/overseers/getOverseerUserSummary.js +40 -0
  376. package/dist/tools/overseers/getOverseerUserSummary.js.map +1 -0
  377. package/dist/tools/overseers/index.d.ts +58 -0
  378. package/dist/tools/overseers/index.d.ts.map +1 -0
  379. package/dist/tools/overseers/index.js +325 -0
  380. package/dist/tools/overseers/index.js.map +1 -0
  381. package/dist/tools/overseers/listOverseerUsers.d.ts +15 -0
  382. package/dist/tools/overseers/listOverseerUsers.d.ts.map +1 -0
  383. package/dist/tools/overseers/listOverseerUsers.js +76 -0
  384. package/dist/tools/overseers/listOverseerUsers.js.map +1 -0
  385. package/dist/tools/pagination-handler-factory.d.ts +131 -0
  386. package/dist/tools/pagination-handler-factory.d.ts.map +1 -0
  387. package/dist/tools/pagination-handler-factory.js +159 -0
  388. package/dist/tools/pagination-handler-factory.js.map +1 -0
  389. package/dist/tools/pools/checkPoolExists.d.ts +16 -0
  390. package/dist/tools/pools/checkPoolExists.d.ts.map +1 -0
  391. package/dist/tools/pools/checkPoolExists.js +48 -0
  392. package/dist/tools/pools/checkPoolExists.js.map +1 -0
  393. package/dist/tools/pools/fetchAllPools.d.ts.map +1 -1
  394. package/dist/tools/pools/fetchAllPools.js +51 -11
  395. package/dist/tools/pools/fetchAllPools.js.map +1 -1
  396. package/dist/tools/pools/fetchAllPriceHistory.d.ts.map +1 -1
  397. package/dist/tools/pools/fetchAllPriceHistory.js +11 -51
  398. package/dist/tools/pools/fetchAllPriceHistory.js.map +1 -1
  399. package/dist/tools/pools/fetchPoolDetails.d.ts.map +1 -1
  400. package/dist/tools/pools/fetchPoolDetails.js +4 -11
  401. package/dist/tools/pools/fetchPoolDetails.js.map +1 -1
  402. package/dist/tools/pools/fetchPools.d.ts.map +1 -1
  403. package/dist/tools/pools/fetchPools.js +40 -20
  404. package/dist/tools/pools/fetchPools.js.map +1 -1
  405. package/dist/tools/pools/fetchPriceHistory.d.ts.map +1 -1
  406. package/dist/tools/pools/fetchPriceHistory.js +10 -51
  407. package/dist/tools/pools/fetchPriceHistory.js.map +1 -1
  408. package/dist/tools/pools/fetchTokenDetails.d.ts.map +1 -1
  409. package/dist/tools/pools/fetchTokenDetails.js +4 -35
  410. package/dist/tools/pools/fetchTokenDetails.js.map +1 -1
  411. package/dist/tools/pools/index.d.ts +2 -0
  412. package/dist/tools/pools/index.d.ts.map +1 -1
  413. package/dist/tools/pools/index.js +103 -35
  414. package/dist/tools/pools/index.js.map +1 -1
  415. package/dist/tools/pools/onDexPoolCreation.d.ts +1 -2
  416. package/dist/tools/pools/onDexPoolCreation.d.ts.map +1 -1
  417. package/dist/tools/pools/onDexPoolCreation.js +14 -48
  418. package/dist/tools/pools/onDexPoolCreation.js.map +1 -1
  419. package/dist/tools/pools/onLaunchpadTokenCreation.d.ts +1 -2
  420. package/dist/tools/pools/onLaunchpadTokenCreation.d.ts.map +1 -1
  421. package/dist/tools/pools/onLaunchpadTokenCreation.js +9 -42
  422. package/dist/tools/pools/onLaunchpadTokenCreation.js.map +1 -1
  423. package/dist/tools/pools/priceHistoryFactory.d.ts +44 -0
  424. package/dist/tools/pools/priceHistoryFactory.d.ts.map +1 -0
  425. package/dist/tools/pools/priceHistoryFactory.js +154 -0
  426. package/dist/tools/pools/priceHistoryFactory.js.map +1 -0
  427. package/dist/tools/pools/updateTokenSocials.d.ts +16 -0
  428. package/dist/tools/pools/updateTokenSocials.d.ts.map +1 -0
  429. package/dist/tools/pools/updateTokenSocials.js +84 -0
  430. package/dist/tools/pools/updateTokenSocials.js.map +1 -0
  431. package/dist/tools/referrals/index.d.ts +12 -0
  432. package/dist/tools/referrals/index.d.ts.map +1 -0
  433. package/dist/tools/referrals/index.js +110 -0
  434. package/dist/tools/referrals/index.js.map +1 -0
  435. package/dist/tools/streaming/index.d.ts +94 -0
  436. package/dist/tools/streaming/index.d.ts.map +1 -0
  437. package/dist/tools/streaming/index.js +549 -0
  438. package/dist/tools/streaming/index.js.map +1 -0
  439. package/dist/tools/streaming/setNextLiveStreamCountdown.d.ts +16 -0
  440. package/dist/tools/streaming/setNextLiveStreamCountdown.d.ts.map +1 -0
  441. package/dist/tools/streaming/setNextLiveStreamCountdown.js +62 -0
  442. package/dist/tools/streaming/setNextLiveStreamCountdown.js.map +1 -0
  443. package/dist/tools/token-ban/index.d.ts +39 -0
  444. package/dist/tools/token-ban/index.d.ts.map +1 -0
  445. package/dist/tools/token-ban/index.js +177 -0
  446. package/dist/tools/token-ban/index.js.map +1 -0
  447. package/dist/tools/tool-factory.d.ts +84 -0
  448. package/dist/tools/tool-factory.d.ts.map +1 -0
  449. package/dist/tools/tool-factory.js +135 -0
  450. package/dist/tools/tool-factory.js.map +1 -0
  451. package/dist/tools/trades/index.d.ts +20 -0
  452. package/dist/tools/trades/index.d.ts.map +1 -0
  453. package/dist/tools/trades/index.js +113 -0
  454. package/dist/tools/trades/index.js.map +1 -0
  455. package/dist/tools/trading/helpers/arg-extractors.d.ts +128 -0
  456. package/dist/tools/trading/helpers/arg-extractors.d.ts.map +1 -0
  457. package/dist/tools/trading/helpers/arg-extractors.js +215 -0
  458. package/dist/tools/trading/helpers/arg-extractors.js.map +1 -0
  459. package/dist/tools/trading/helpers/index.d.ts +8 -0
  460. package/dist/tools/trading/helpers/index.d.ts.map +1 -0
  461. package/dist/tools/trading/helpers/index.js +24 -0
  462. package/dist/tools/trading/helpers/index.js.map +1 -0
  463. package/dist/tools/trading/helpers/trading-schemas.d.ts +276 -0
  464. package/dist/tools/trading/helpers/trading-schemas.d.ts.map +1 -0
  465. package/dist/tools/trading/helpers/trading-schemas.js +310 -0
  466. package/dist/tools/trading/helpers/trading-schemas.js.map +1 -0
  467. package/dist/tools/trading/index.d.ts +2 -0
  468. package/dist/tools/trading/index.d.ts.map +1 -1
  469. package/dist/tools/trading/index.js +148 -371
  470. package/dist/tools/trading/index.js.map +1 -1
  471. package/dist/tools/transfers/index.d.ts +3 -0
  472. package/dist/tools/transfers/index.d.ts.map +1 -1
  473. package/dist/tools/transfers/index.js +72 -52
  474. package/dist/tools/transfers/index.js.map +1 -1
  475. package/dist/tools/utils/cleanup.d.ts.map +1 -1
  476. package/dist/tools/utils/cleanup.js +2 -9
  477. package/dist/tools/utils/cleanup.js.map +1 -1
  478. package/dist/tools/utils/clearCache.d.ts.map +1 -1
  479. package/dist/tools/utils/clearCache.js +5 -7
  480. package/dist/tools/utils/clearCache.js.map +1 -1
  481. package/dist/tools/utils/explainSdkUsage.d.ts +52 -0
  482. package/dist/tools/utils/explainSdkUsage.d.ts.map +1 -1
  483. package/dist/tools/utils/explainSdkUsage.js +1905 -93
  484. package/dist/tools/utils/explainSdkUsage.js.map +1 -1
  485. package/dist/tools/utils/getEthereumAddressFromPrivateKey.d.ts.map +1 -1
  486. package/dist/tools/utils/getEthereumAddressFromPrivateKey.js +2 -1
  487. package/dist/tools/utils/getEthereumAddressFromPrivateKey.js.map +1 -1
  488. package/dist/tools/utils/index.d.ts +2 -0
  489. package/dist/tools/utils/index.d.ts.map +1 -1
  490. package/dist/tools/utils/index.js +2 -12
  491. package/dist/tools/utils/index.js.map +1 -1
  492. package/dist/tools/wallet/index.d.ts +7 -0
  493. package/dist/tools/wallet/index.d.ts.map +1 -0
  494. package/dist/tools/wallet/index.js +24 -0
  495. package/dist/tools/wallet/index.js.map +1 -0
  496. package/dist/utils/date-converter.d.ts +58 -0
  497. package/dist/utils/date-converter.d.ts.map +1 -0
  498. package/dist/utils/date-converter.js +83 -0
  499. package/dist/utils/date-converter.js.map +1 -0
  500. package/dist/utils/pool-filter-builder.d.ts +78 -0
  501. package/dist/utils/pool-filter-builder.d.ts.map +1 -0
  502. package/dist/utils/pool-filter-builder.js +130 -0
  503. package/dist/utils/pool-filter-builder.js.map +1 -0
  504. package/dist/utils/safe-parsers.d.ts +87 -0
  505. package/dist/utils/safe-parsers.d.ts.map +1 -0
  506. package/dist/utils/safe-parsers.js +134 -0
  507. package/dist/utils/safe-parsers.js.map +1 -0
  508. package/dist/utils/validation.d.ts +5 -5
  509. package/dist/utils/validation.d.ts.map +1 -1
  510. package/dist/utils/validation.js +24 -21
  511. package/dist/utils/validation.js.map +1 -1
  512. package/package.json +23 -15
  513. package/.env.example +0 -21
  514. package/.eslintrc.json +0 -88
  515. package/CHANGELOG.md +0 -2161
  516. package/DOCS_AUDIT_REPORT.md +0 -189
  517. package/DRY_REFACTORING_GUIDE.md +0 -271
  518. package/MCP_COVERAGE_REPORT.md +0 -164
  519. package/MCP_TEST_ANALYSIS.md +0 -317
  520. package/jest.integration.config.js +0 -70
  521. package/scripts/inject-version.ts +0 -31
  522. package/scripts/validate-mcp-test-analysis.ts +0 -250
@@ -10,6 +10,8 @@ const mcpToolNames_js_1 = require("../constants/mcpToolNames.js");
10
10
  const validation_js_1 = require("../utils/validation.js");
11
11
  const handlerHelpers_js_1 = require("./utils/handlerHelpers.js");
12
12
  const textTemplates_js_1 = require("./utils/textTemplates.js");
13
+ const prompt_factories_js_1 = require("./prompt-factories.js");
14
+ const pagination_helpers_js_1 = require("./utils/pagination-helpers.js");
13
15
  /**
14
16
  * Fetch GALA Balance - GALA balance query
15
17
  */
@@ -55,6 +57,7 @@ exports.fetchTokenBalancePrompt = {
55
57
  },
56
58
  ],
57
59
  handler: (args) => {
60
+ (0, validation_js_1.validateTokenName)(args.tokenName, 'tokenName');
58
61
  (0, validation_js_1.validateAddress)(args.address);
59
62
  return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
60
63
  operation: 'Get balance for specific token.',
@@ -80,16 +83,7 @@ exports.fetchTokensCreatedPrompt = {
80
83
  description: 'Wallet address',
81
84
  required: true,
82
85
  },
83
- {
84
- name: 'page',
85
- description: 'Page number (default: 1)',
86
- required: false,
87
- },
88
- {
89
- name: 'limit',
90
- description: 'Results per page (default: 20)',
91
- required: false,
92
- },
86
+ ...(0, pagination_helpers_js_1.createPaginationArguments)({ defaultLimit: 20, maxLimit: 100 }),
93
87
  {
94
88
  name: 'tokenName',
95
89
  description: 'Filter by exact token name (optional)',
@@ -103,15 +97,21 @@ exports.fetchTokensCreatedPrompt = {
103
97
  ],
104
98
  handler: (args) => {
105
99
  (0, validation_js_1.validateAddress)(args.address);
100
+ if (args.tokenName) {
101
+ (0, validation_js_1.validateTokenName)(args.tokenName, 'tokenName');
102
+ }
103
+ // Build parameters using helpers
104
+ const paginationParams = (0, pagination_helpers_js_1.buildPaginationParameters)(args.page, args.limit, { page: 1, limit: 20 });
105
+ const parameters = (0, prompt_factories_js_1.buildParameterObject)({
106
+ address: `Address: ${args.address}`,
107
+ ...paginationParams,
108
+ }, [
109
+ [!!args.tokenName, 'tokenFilter', `Token Name Filter: ${args.tokenName}`],
110
+ [!!args.search, 'searchFilter', `Search Filter: ${args.search}`],
111
+ ]);
106
112
  return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
107
113
  operation: 'Get tokens created by wallet.',
108
- parameters: {
109
- address: `Address: ${args.address}`,
110
- page: `Page: ${args.page || 1}`,
111
- limit: `Limit: ${args.limit || 20}`,
112
- ...(args.tokenName && { tokenFilter: `Token Name Filter: ${args.tokenName}` }),
113
- ...(args.search && { searchFilter: `Search Filter: ${args.search}` }),
114
- },
114
+ parameters,
115
115
  toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_TOKENS_CREATED,
116
116
  actionDescription: 'retrieve created tokens',
117
117
  displayFormat: 'Display the list of tokens created by this wallet.',
@@ -1 +1 @@
1
- {"version":3,"file":"balances.js","sourceRoot":"","sources":["../../src/prompts/balances.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,kEAAyD;AACzD,0DAAkF;AAClF,iEAAiE;AACjE,+DAAqE;AAErE;;GAEG;AACU,QAAA,sBAAsB,GAAc;IAC/C,IAAI,EAAE,wCAAwC;IAC9C,WAAW,EAAE,+BAA+B;IAC5C,SAAS,EAAE;QACT;YACE,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QAChB,IAAA,uCAAuB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAEtC,OAAO,IAAA,wCAAoB,EACzB,IAAA,4CAAyB,EAAC;YACxB,SAAS,EAAE,8BAA8B;YACzC,UAAU,EAAE,IAAI,CAAC,OAAO;gBACtB,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,IAAI,CAAC,OAAO,EAAE,EAAE;gBACzC,CAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE;YACtC,QAAQ,EAAE,2BAAS,CAAC,kBAAkB;YACtC,iBAAiB,EAAE,2BAA2B;YAC9C,aAAa,EAAE,wCAAwC;SACxD,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;GAEG;AACU,QAAA,uBAAuB,GAAc;IAChD,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE,kCAAkC;IAC/C,SAAS,EAAE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S,EAAE;QACT;YACE,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf;QACD;YACE,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;SACf;QACD;YACE,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;QAChB,IAAA,uCAAuB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAEtC,OAAO,IAAA,wCAAoB,EACzB,IAAA,4CAAyB,EAAC;YACxB,SAAS,EAAE,sBAAsB;YACjC,UAAU,EAAE;gBACV,QAAQ,EAAE,cAAc,IAAI,CAAC,QAAQ,EAAE;gBACvC,YAAY,EAAE,kBAAkB,IAAI,CAAC,YAAY,EAAE;gBACnD,GAAG,CAAC,IAAI,CAAC,OAAO;oBACd,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,IAAI,CAAC,OAAO,EAAE,EAAE;oBACzC,CAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC;aACxC;YACD,QAAQ,EAAE,2BAAS,CAAC,cAAc;YAClC,iBAAiB,EAAE,oBAAoB;YACvC,aAAa,EAAE,4CAA4C;SAC5D,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC;AAEW,QAAA,cAAc,GAAgB;IACzC,8BAAsB;IACtB,+BAAuB;IACvB,gCAAwB;IACxB,2BAAmB;CACpB,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Ban Management Prompts
3
+ *
4
+ * Slash commands for user ban/moderation on token streams.
5
+ * Includes creating bans, removing bans, listing banned users,
6
+ * checking ban status, and viewing active users.
7
+ *
8
+ * Refactored to use ban management factory for DRY compliance.
9
+ *
10
+ * @since 5.5.0
11
+ * @since 5.12.0 - Refactored to use createBanManagementPrompts factory
12
+ */
13
+ import type { MCPPrompt } from '../types/mcp.js';
14
+ /**
15
+ * Get Active Users - View current viewers/participants
16
+ *
17
+ * This is a ban-related prompt not part of the standard ban CRUD pattern.
18
+ * Used for moderation - see who's online before issuing bans.
19
+ */
20
+ export declare const getActiveUsersPrompt: MCPPrompt;
21
+ export declare const createBanPrompt: MCPPrompt, removeBanPrompt: MCPPrompt, listBansPrompt: MCPPrompt, checkBanStatusPrompt: MCPPrompt;
22
+ export declare const banPrompts: MCPPrompt[];
23
+ //# sourceMappingURL=bans.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bans.d.ts","sourceRoot":"","sources":["../../src/prompts/bans.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA6BjD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAoCjC,CAAC;AAGH,eAAO,MACL,eAAe,aACf,eAAe,aACf,cAAc,aACd,oBAAoB,WACJ,CAAC;AAEnB,eAAO,MAAM,UAAU,EAAE,SAAS,EAGjC,CAAC"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /**
3
+ * Ban Management Prompts
4
+ *
5
+ * Slash commands for user ban/moderation on token streams.
6
+ * Includes creating bans, removing bans, listing banned users,
7
+ * checking ban status, and viewing active users.
8
+ *
9
+ * Refactored to use ban management factory for DRY compliance.
10
+ *
11
+ * @since 5.5.0
12
+ * @since 5.12.0 - Refactored to use createBanManagementPrompts factory
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.banPrompts = exports.checkBanStatusPrompt = exports.listBansPrompt = exports.removeBanPrompt = exports.createBanPrompt = exports.getActiveUsersPrompt = void 0;
16
+ const index_js_1 = require("./factories/index.js");
17
+ // Tool name constant for the extra non-ban prompt
18
+ const BAN_TOOLS = {
19
+ GET_ACTIVE_USERS: 'gala_launchpad_get_active_users',
20
+ };
21
+ /**
22
+ * Core ban management prompts generated by factory
23
+ *
24
+ * Includes:
25
+ * - create-ban
26
+ * - remove-ban
27
+ * - list-bans
28
+ * - check-ban-status
29
+ */
30
+ const coreBanPrompts = (0, index_js_1.createBanManagementPrompts)({
31
+ entityName: 'user',
32
+ toolPrefix: 'ban',
33
+ isTokenScoped: true,
34
+ supportsDuration: true,
35
+ targetsUserAddress: true,
36
+ });
37
+ /**
38
+ * Get Active Users - View current viewers/participants
39
+ *
40
+ * This is a ban-related prompt not part of the standard ban CRUD pattern.
41
+ * Used for moderation - see who's online before issuing bans.
42
+ */
43
+ exports.getActiveUsersPrompt = (0, index_js_1.createTokenOperationPrompt)({
44
+ name: 'galachain-launchpad:get-active-users',
45
+ description: 'Get currently active viewers or chat participants on a stream',
46
+ requiresTokenName: true,
47
+ toolName: BAN_TOOLS.GET_ACTIVE_USERS,
48
+ actionDescription: 'get active users',
49
+ additionalArguments: [
50
+ {
51
+ name: 'type',
52
+ description: 'User type: viewers or chat_participants (default: viewers)',
53
+ required: false,
54
+ },
55
+ {
56
+ name: 'search',
57
+ description: 'Search by address or name (optional)',
58
+ required: false,
59
+ },
60
+ ],
61
+ buildParameters: (args) => (0, index_js_1.buildParameterObject)({
62
+ token: `Token: ${args.tokenName}`,
63
+ }, [
64
+ [!!args.type, 'type', `Type: ${args.type}`],
65
+ [!!args.search, 'search', `Search: ${args.search}`],
66
+ ]),
67
+ operationDescription: `Get active users on token "{tokenName}" stream.
68
+
69
+ **User Types:**
70
+ - viewers: All users currently watching the stream
71
+ - chat_participants: Users who have sent chat messages
72
+
73
+ Useful for moderation - see who's online before issuing bans.`,
74
+ displayFormat: 'Display users in a table with columns: Address, Name, Last Active.',
75
+ });
76
+ // Export individual prompts for direct access if needed
77
+ exports.createBanPrompt = coreBanPrompts[0], exports.removeBanPrompt = coreBanPrompts[1], exports.listBansPrompt = coreBanPrompts[2], exports.checkBanStatusPrompt = coreBanPrompts[3];
78
+ exports.banPrompts = [
79
+ ...coreBanPrompts,
80
+ exports.getActiveUsersPrompt,
81
+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,EAAE,oEAAoE;CACpF,CAAC,CAAC;AAEH,wDAAwD;AAEtD,uBAAe,GAIb,cAAc,KAHhB,uBAAe,GAGb,cAAc,KAFhB,sBAAc,GAEZ,cAAc,KADhB,4BAAoB,GAClB,cAAc,IAAC;AAEN,QAAA,UAAU,GAAgB;IACrC,GAAG,cAAc;IACjB,4BAAoB;CACrB,CAAC"}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Bridge Prompts (Slash Commands)
3
3
  *
4
- * Cross-chain bridging commands for GalaChain Ethereum and GalaChain Solana
4
+ * Cross-chain bridging commands for GalaChain to Ethereum and GalaChain to Solana.
5
+ * Refactored to use prompt factories for DRY compliance.
5
6
  */
6
7
  import type { MCPPrompt } from '../types/mcp.js';
7
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/prompts/bridge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAMjD;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,SAyBzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAwCrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,SA8C7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,SAsC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAiChC,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAiCxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,SA0BzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAiCtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,SA0BvC,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,SA4BvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,SA2BrC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAAS,EAcpC,CAAC"}
1
+ {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/prompts/bridge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAYjD;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,SAgBxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAuCpC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,SAwC5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,SAgC3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,SA4B/B,CAAC;AAOH;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAIvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,SAGxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAIrC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAGtC,CAAC;AAOH;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAItC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAIpC,CAAC;AAEH,eAAO,MAAM,aAAa,EAAE,SAAS,EAcpC,CAAC"}
@@ -2,20 +2,27 @@
2
2
  /**
3
3
  * Bridge Prompts (Slash Commands)
4
4
  *
5
- * Cross-chain bridging commands for GalaChain Ethereum and GalaChain Solana
5
+ * Cross-chain bridging commands for GalaChain to Ethereum and GalaChain to Solana.
6
+ * Refactored to use prompt factories for DRY compliance.
6
7
  */
7
8
  Object.defineProperty(exports, "__esModule", { value: true });
8
9
  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
10
  const mcpToolNames_js_1 = require("../constants/mcpToolNames.js");
10
11
  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");
12
+ const index_js_1 = require("./factories/index.js");
13
+ // ============================================================================
14
+ // BRIDGE OPERATION PROMPTS
15
+ // ============================================================================
13
16
  /**
14
17
  * Get Supported Bridge Tokens - List all tokens supported for cross-chain bridging
15
18
  */
16
- exports.supportedBridgeTokensPrompt = {
19
+ exports.supportedBridgeTokensPrompt = (0, index_js_1.createSimpleOperationPrompt)({
17
20
  name: 'galachain-launchpad:bridge-tokens',
18
21
  description: 'List all tokens supported for cross-chain bridging',
22
+ toolName: mcpToolNames_js_1.MCP_TOOLS.GET_SUPPORTED_BRIDGE_TOKENS,
23
+ operation: 'List supported bridge tokens and chains.',
24
+ actionDescription: 'fetch all supported tokens',
25
+ displayFormat: 'Display tokens with symbols, decimals, and supported chains.',
19
26
  arguments: [
20
27
  {
21
28
  name: 'chain',
@@ -23,25 +30,18 @@ exports.supportedBridgeTokensPrompt = {
23
30
  required: false,
24
31
  },
25
32
  ],
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
- };
33
+ buildParameters: (args) => args.chain ? { chain: `Chain Filter: ${args.chain}` } : {},
34
+ });
39
35
  /**
40
36
  * Estimate Bridge Fee - Estimate fees for bridging tokens to Ethereum or Solana
41
37
  */
42
- exports.estimateBridgeFeePrompt = {
38
+ exports.estimateBridgeFeePrompt = (0, index_js_1.createSimpleOperationPrompt)({
43
39
  name: 'galachain-launchpad:bridge-fee',
44
40
  description: 'Estimate fees for bridging tokens to Ethereum or Solana',
41
+ toolName: mcpToolNames_js_1.MCP_TOOLS.ESTIMATE_BRIDGE_FEE,
42
+ operation: 'Estimate bridge fees.',
43
+ actionDescription: 'estimate the bridge fee',
44
+ displayFormat: 'Display total fee, gas fee, and bridge fee breakdown.',
45
45
  arguments: [
46
46
  {
47
47
  name: 'tokenSymbol',
@@ -59,30 +59,32 @@ exports.estimateBridgeFeePrompt = {
59
59
  required: false,
60
60
  },
61
61
  ],
62
- handler: (args) => {
62
+ validate: (args) => {
63
+ if (args.amount) {
64
+ (0, validation_js_1.validateNumericAmount)(args.amount, 'amount');
65
+ }
66
+ },
67
+ buildParameters: (args) => {
63
68
  const parameters = {
64
69
  token: `Token: ${args.tokenSymbol}`,
65
70
  destination: `Destination: ${args.destinationChain}`,
66
71
  };
67
72
  if (args.amount) {
68
- (0, validation_js_1.validateNumericAmount)(args.amount, 'amount');
69
73
  parameters.amount = `Amount: ${args.amount}`;
70
74
  }
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
- }));
75
+ return parameters;
78
76
  },
79
- };
77
+ });
80
78
  /**
81
79
  * Bridge Out - Bridge tokens from GalaChain to Ethereum or Solana
82
80
  */
83
- exports.bridgeOutPrompt = {
81
+ exports.bridgeOutPrompt = (0, index_js_1.createSimpleOperationPrompt)({
84
82
  name: 'galachain-launchpad:bridge-out',
85
83
  description: 'Bridge tokens from GalaChain to Ethereum or Solana',
84
+ toolName: mcpToolNames_js_1.MCP_TOOLS.BRIDGE_OUT,
85
+ operation: 'Bridge tokens from GalaChain to external chain.',
86
+ actionDescription: 'execute the bridge out transaction',
87
+ displayFormat: 'Display transaction hash and status. Note: Bridge operations may take several minutes.',
86
88
  arguments: [
87
89
  {
88
90
  name: 'tokenSymbol',
@@ -105,30 +107,28 @@ exports.bridgeOutPrompt = {
105
107
  required: true,
106
108
  },
107
109
  ],
108
- handler: (args) => {
110
+ validate: (args) => {
109
111
  (0, validation_js_1.validateNumericAmount)(args.amount, 'amount');
110
112
  // Note: Address validation skipped - backend validates format based on destinationChain
111
113
  // (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
114
  },
125
- };
115
+ buildParameters: (args) => ({
116
+ token: `Token: ${args.tokenSymbol}`,
117
+ amount: `Amount: ${args.amount}`,
118
+ destination: `Destination: ${args.destinationChain}`,
119
+ recipient: `Recipient: ${args.recipientAddress}`,
120
+ }),
121
+ });
126
122
  /**
127
123
  * Bridge In - Bridge tokens from Ethereum or Solana to GalaChain
128
124
  */
129
- exports.bridgeInPrompt = {
125
+ exports.bridgeInPrompt = (0, index_js_1.createSimpleOperationPrompt)({
130
126
  name: 'galachain-launchpad:bridge-in',
131
127
  description: 'Bridge tokens from Ethereum or Solana to GalaChain',
128
+ toolName: mcpToolNames_js_1.MCP_TOOLS.BRIDGE_IN,
129
+ operation: 'Bridge tokens from external chain to GalaChain.',
130
+ actionDescription: 'execute the bridge in transaction',
131
+ displayFormat: 'Display transaction hash and status. Note: Bridge operations may take several minutes.',
132
132
  arguments: [
133
133
  {
134
134
  name: 'tokenSymbol',
@@ -146,27 +146,25 @@ exports.bridgeInPrompt = {
146
146
  required: true,
147
147
  },
148
148
  ],
149
- handler: (args) => {
149
+ validate: (args) => {
150
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
151
  },
163
- };
152
+ buildParameters: (args) => ({
153
+ token: `Token: ${args.tokenSymbol}`,
154
+ amount: `Amount: ${args.amount}`,
155
+ source: `Source: ${args.sourceChain}`,
156
+ }),
157
+ });
164
158
  /**
165
159
  * Get Bridge Status - Check the status of a bridge transaction
166
160
  */
167
- exports.bridgeStatusPrompt = {
161
+ exports.bridgeStatusPrompt = (0, index_js_1.createSimpleOperationPrompt)({
168
162
  name: 'galachain-launchpad:bridge-status',
169
163
  description: 'Check the status of a bridge transaction',
164
+ toolName: mcpToolNames_js_1.MCP_TOOLS.GET_BRIDGE_STATUS,
165
+ operation: 'Check bridge transaction status.',
166
+ actionDescription: 'fetch the bridge status',
167
+ displayFormat: 'Display status code, description, and completion state.',
170
168
  arguments: [
171
169
  {
172
170
  name: 'transactionHash',
@@ -179,204 +177,70 @@ exports.bridgeStatusPrompt = {
179
177
  required: false,
180
178
  },
181
179
  ],
182
- handler: (args) => {
183
- const parameters = {
180
+ buildParameters: (args) => {
181
+ const params = {
184
182
  txHash: `Transaction: ${args.transactionHash}`,
185
183
  };
186
184
  if (args.chainHint) {
187
- parameters.chain = `Chain Hint: ${args.chainHint}`;
185
+ params.chain = `Chain Hint: ${args.chainHint}`;
188
186
  }
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
- }));
187
+ return params;
196
188
  },
197
- };
189
+ });
198
190
  // ============================================================================
199
191
  // SINGLE TOKEN BALANCE PROMPTS (Fast - 1 RPC call each)
192
+ // Using factory pattern for DRY compliance
200
193
  // ============================================================================
201
194
  /**
202
195
  * Fetch Ethereum Token Balance - Get single ERC-20 token balance
203
196
  */
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
- };
197
+ exports.ethereumTokenBalancePrompt = (0, index_js_1.createChainBalancePrompt)({
198
+ chain: 'ethereum',
199
+ balanceType: 'token',
200
+ supportedTokens: ['GALA', 'GWETH', 'GUSDC', 'GUSDT', 'GWTRX', 'GWBTC'],
201
+ });
235
202
  /**
236
203
  * Fetch Ethereum Native Balance - Get native ETH balance only
237
204
  */
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
- };
205
+ exports.ethereumNativeBalancePrompt = (0, index_js_1.createChainBalancePrompt)({
206
+ chain: 'ethereum',
207
+ balanceType: 'native',
208
+ });
262
209
  /**
263
210
  * Fetch Solana Token Balance - Get single SPL token balance
264
211
  */
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
- };
212
+ exports.solanaTokenBalancePrompt = (0, index_js_1.createChainBalancePrompt)({
213
+ chain: 'solana',
214
+ balanceType: 'token',
215
+ supportedTokens: ['GALA', 'GSOL'],
216
+ });
296
217
  /**
297
218
  * Fetch Solana Native Balance - Get native SOL balance only
298
219
  */
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
- };
220
+ exports.solanaNativeBalancePrompt = (0, index_js_1.createChainBalancePrompt)({
221
+ chain: 'solana',
222
+ balanceType: 'native',
223
+ });
323
224
  // ============================================================================
324
225
  // ALL TOKENS BALANCE PROMPTS (Complete portfolio view - multiple RPC calls)
226
+ // Using factory pattern for DRY compliance
325
227
  // ============================================================================
326
228
  /**
327
229
  * Fetch All Ethereum Wallet Balances - Get all supported token balances on Ethereum
328
230
  */
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
- };
231
+ exports.ethereumAllBalancesPrompt = (0, index_js_1.createChainBalancePrompt)({
232
+ chain: 'ethereum',
233
+ balanceType: 'all',
234
+ supportedTokens: ['GALA', 'GWETH', 'GUSDC', 'GUSDT', 'GWTRX', 'GWBTC'],
235
+ });
353
236
  /**
354
237
  * Fetch All Solana Wallet Balances - Get all supported token balances on Solana
355
238
  */
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
- };
239
+ exports.solanaAllBalancesPrompt = (0, index_js_1.createChainBalancePrompt)({
240
+ chain: 'solana',
241
+ balanceType: 'all',
242
+ supportedTokens: ['GALA', 'GSOL'],
243
+ });
380
244
  exports.bridgePrompts = [
381
245
  exports.supportedBridgeTokensPrompt,
382
246
  exports.estimateBridgeFeePrompt,