@gala-chain/launchpad-mcp-server 5.0.5-beta.2 → 5.0.5-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/prompts/advanced-pools.d.ts +1 -7
- package/dist/prompts/advanced-pools.d.ts.map +1 -1
- package/dist/prompts/advanced-pools.js +4 -79
- package/dist/prompts/advanced-pools.js.map +1 -1
- package/dist/prompts/analysis.d.ts +0 -4
- package/dist/prompts/analysis.d.ts.map +1 -1
- package/dist/prompts/analysis.js +2 -67
- package/dist/prompts/analysis.js.map +1 -1
- package/dist/prompts/balances.js.map +1 -1
- package/dist/prompts/bridge.d.ts +0 -8
- package/dist/prompts/bridge.d.ts.map +1 -1
- package/dist/prompts/bridge.js +3 -54
- package/dist/prompts/bridge.js.map +1 -1
- package/dist/prompts/comments.js.map +1 -1
- package/dist/prompts/factories/filtered-list-prompt-factory.js.map +1 -1
- package/dist/prompts/factories/invite-management-factory.js +2 -2
- package/dist/prompts/factories/invite-management-factory.js.map +1 -1
- package/dist/prompts/liquidity-positions.d.ts +0 -12
- package/dist/prompts/liquidity-positions.d.ts.map +1 -1
- package/dist/prompts/liquidity-positions.js +2 -98
- package/dist/prompts/liquidity-positions.js.map +1 -1
- package/dist/prompts/manifest.d.ts +33 -0
- package/dist/prompts/manifest.d.ts.map +1 -0
- package/dist/prompts/manifest.js +2062 -0
- package/dist/prompts/manifest.js.map +1 -0
- package/dist/prompts/overseers.d.ts.map +1 -1
- package/dist/prompts/overseers.js +17 -2
- package/dist/prompts/overseers.js.map +1 -1
- package/dist/prompts/pools.d.ts +0 -20
- package/dist/prompts/pools.d.ts.map +1 -1
- package/dist/prompts/pools.js +4 -162
- package/dist/prompts/pools.js.map +1 -1
- package/dist/prompts/referrals.js.map +1 -1
- package/dist/prompts/trading.d.ts +0 -8
- package/dist/prompts/trading.d.ts.map +1 -1
- package/dist/prompts/trading.js +3 -51
- package/dist/prompts/trading.js.map +1 -1
- package/dist/prompts/utility-tools.js.map +1 -1
- package/dist/prompts/utils/pagination-helpers.d.ts +10 -24
- package/dist/prompts/utils/pagination-helpers.d.ts.map +1 -1
- package/dist/prompts/utils/pagination-helpers.js +11 -32
- package/dist/prompts/utils/pagination-helpers.js.map +1 -1
- package/dist/prompts/utils/workflowTemplates.d.ts.map +1 -1
- package/dist/prompts/utils/workflowTemplates.js +4 -2
- package/dist/prompts/utils/workflowTemplates.js.map +1 -1
- package/dist/prompts/validate-manifest.d.ts +42 -0
- package/dist/prompts/validate-manifest.d.ts.map +1 -0
- package/dist/prompts/validate-manifest.js +157 -0
- package/dist/prompts/validate-manifest.js.map +1 -0
- package/dist/schemas/common-schemas.d.ts +32 -39
- package/dist/schemas/common-schemas.d.ts.map +1 -1
- package/dist/schemas/common-schemas.js +109 -116
- package/dist/schemas/common-schemas.js.map +1 -1
- package/dist/scripts/test-all-prompts.d.ts +1 -17
- package/dist/scripts/test-all-prompts.d.ts.map +1 -1
- package/dist/scripts/test-all-prompts.js +16 -6
- package/dist/scripts/test-all-prompts.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/setup.d.ts +7 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +33 -0
- package/dist/setup.js.map +1 -0
- package/dist/tools/api-keys/index.js +13 -13
- package/dist/tools/api-keys/index.js.map +1 -1
- package/dist/tools/auth/index.js +4 -4
- package/dist/tools/auth/index.js.map +1 -1
- package/dist/tools/balance/helpers/format-balance.js +1 -1
- package/dist/tools/balance/helpers/format-balance.js.map +1 -1
- package/dist/tools/balance/index.js +9 -9
- package/dist/tools/balance/index.js.map +1 -1
- package/dist/tools/ban/index.d.ts.map +1 -1
- package/dist/tools/ban/index.js +23 -18
- package/dist/tools/ban/index.js.map +1 -1
- package/dist/tools/ban/onBanEnforcement.d.ts +9 -0
- package/dist/tools/ban/onBanEnforcement.d.ts.map +1 -0
- package/dist/tools/ban/onBanEnforcement.js +54 -0
- package/dist/tools/ban/onBanEnforcement.js.map +1 -0
- package/dist/tools/bridge/helpers/external-chain-balance-tools.js +4 -4
- package/dist/tools/bridge/helpers/external-chain-balance-tools.js.map +1 -1
- package/dist/tools/bridge/index.d.ts +10 -0
- package/dist/tools/bridge/index.d.ts.map +1 -1
- package/dist/tools/bridge/index.js +47 -39
- package/dist/tools/bridge/index.js.map +1 -1
- package/dist/tools/chat/index.d.ts +3 -2
- package/dist/tools/chat/index.d.ts.map +1 -1
- package/dist/tools/chat/index.js +12 -18
- package/dist/tools/chat/index.js.map +1 -1
- package/dist/tools/chat/pinChatMessage.js +2 -2
- package/dist/tools/chat/pinChatMessage.js.map +1 -1
- package/dist/tools/chat/unpinChatMessage.js +1 -1
- package/dist/tools/chat/unpinChatMessage.js.map +1 -1
- package/dist/tools/chat-messages/index.js +11 -11
- package/dist/tools/chat-messages/index.js.map +1 -1
- package/dist/tools/comments/index.d.ts +1 -1
- package/dist/tools/comments/index.d.ts.map +1 -1
- package/dist/tools/comments/index.js +13 -11
- package/dist/tools/comments/index.js.map +1 -1
- package/dist/tools/comments/onCommentCreated.d.ts +9 -0
- package/dist/tools/comments/onCommentCreated.d.ts.map +1 -0
- package/dist/tools/comments/onCommentCreated.js +50 -0
- package/dist/tools/comments/onCommentCreated.js.map +1 -0
- package/dist/tools/content-flags/index.js +14 -14
- package/dist/tools/content-flags/index.js.map +1 -1
- package/dist/tools/content-reactions/index.js +6 -6
- package/dist/tools/content-reactions/index.js.map +1 -1
- package/dist/tools/creation/index.js +14 -14
- package/dist/tools/creation/index.js.map +1 -1
- package/dist/tools/dex/helpers.d.ts +1 -1
- package/dist/tools/dex/helpers.js +1 -1
- package/dist/tools/dex/index.js +9 -9
- package/dist/tools/dex/index.js.map +1 -1
- package/dist/tools/dex-analytics/index.d.ts.map +1 -1
- package/dist/tools/dex-analytics/index.js +6 -6
- package/dist/tools/dex-analytics/index.js.map +1 -1
- package/dist/tools/dex-liquidity/index.d.ts.map +1 -1
- package/dist/tools/dex-liquidity/index.js +30 -30
- package/dist/tools/dex-liquidity/index.js.map +1 -1
- package/dist/tools/dex-pools/index.d.ts.map +1 -1
- package/dist/tools/dex-pools/index.js +17 -18
- package/dist/tools/dex-pools/index.js.map +1 -1
- package/dist/tools/handler-factories.d.ts +22 -48
- package/dist/tools/handler-factories.d.ts.map +1 -1
- package/dist/tools/handler-factories.js +15 -35
- package/dist/tools/handler-factories.js.map +1 -1
- package/dist/tools/holders/index.d.ts +55 -0
- package/dist/tools/holders/index.d.ts.map +1 -0
- package/dist/tools/holders/index.js +269 -0
- package/dist/tools/holders/index.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +86 -65
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/manifest.d.ts +33 -0
- package/dist/tools/manifest.d.ts.map +1 -0
- package/dist/tools/manifest.js +2945 -0
- package/dist/tools/manifest.js.map +1 -0
- package/dist/tools/messages/createMessage.d.ts +16 -0
- package/dist/tools/messages/createMessage.d.ts.map +1 -0
- package/dist/tools/messages/createMessage.js +79 -0
- package/dist/tools/messages/createMessage.js.map +1 -0
- package/dist/tools/messages/deleteMessage.d.ts +16 -0
- package/dist/tools/messages/deleteMessage.d.ts.map +1 -0
- package/dist/tools/messages/deleteMessage.js +45 -0
- package/dist/tools/messages/deleteMessage.js.map +1 -0
- package/dist/tools/messages/fetchMessages.d.ts +17 -0
- package/dist/tools/messages/fetchMessages.d.ts.map +1 -0
- package/dist/tools/messages/fetchMessages.js +82 -0
- package/dist/tools/messages/fetchMessages.js.map +1 -0
- package/dist/tools/messages/getPinnedMessage.d.ts +15 -0
- package/dist/tools/messages/getPinnedMessage.d.ts.map +1 -0
- package/dist/tools/messages/getPinnedMessage.js +42 -0
- package/dist/tools/messages/getPinnedMessage.js.map +1 -0
- package/dist/tools/messages/index.d.ts +38 -0
- package/dist/tools/messages/index.d.ts.map +1 -0
- package/dist/tools/messages/index.js +56 -0
- package/dist/tools/messages/index.js.map +1 -0
- package/dist/tools/messages/pinMessage.d.ts +15 -0
- package/dist/tools/messages/pinMessage.d.ts.map +1 -0
- package/dist/tools/messages/pinMessage.js +44 -0
- package/dist/tools/messages/pinMessage.js.map +1 -0
- package/dist/tools/messages/unpinMessage.d.ts +15 -0
- package/dist/tools/messages/unpinMessage.d.ts.map +1 -0
- package/dist/tools/messages/unpinMessage.js +43 -0
- package/dist/tools/messages/unpinMessage.js.map +1 -0
- package/dist/tools/messages/updateMessage.d.ts +16 -0
- package/dist/tools/messages/updateMessage.d.ts.map +1 -0
- package/dist/tools/messages/updateMessage.js +55 -0
- package/dist/tools/messages/updateMessage.js.map +1 -0
- package/dist/tools/moderators/getActiveModerators.d.ts +10 -0
- package/dist/tools/moderators/getActiveModerators.d.ts.map +1 -0
- package/dist/tools/moderators/getActiveModerators.js +44 -0
- package/dist/tools/moderators/getActiveModerators.js.map +1 -0
- package/dist/tools/moderators/index.d.ts.map +1 -1
- package/dist/tools/moderators/index.js +25 -17
- package/dist/tools/moderators/index.js.map +1 -1
- package/dist/tools/moderators/onModeratorChanged.d.ts +9 -0
- package/dist/tools/moderators/onModeratorChanged.d.ts.map +1 -0
- package/dist/tools/moderators/onModeratorChanged.js +49 -0
- package/dist/tools/moderators/onModeratorChanged.js.map +1 -0
- package/dist/tools/nft/index.js +21 -21
- package/dist/tools/nft/index.js.map +1 -1
- package/dist/tools/overseers/getOverseerUserSummary.js +2 -2
- package/dist/tools/overseers/getOverseerUserSummary.js.map +1 -1
- package/dist/tools/overseers/index.d.ts.map +1 -1
- package/dist/tools/overseers/index.js +26 -24
- package/dist/tools/overseers/index.js.map +1 -1
- package/dist/tools/overseers/listOverseerUsers.d.ts +1 -0
- package/dist/tools/overseers/listOverseerUsers.d.ts.map +1 -1
- package/dist/tools/overseers/listOverseerUsers.js +16 -11
- package/dist/tools/overseers/listOverseerUsers.js.map +1 -1
- package/dist/tools/pagination-handler-factory.d.ts +30 -28
- package/dist/tools/pagination-handler-factory.d.ts.map +1 -1
- package/dist/tools/pagination-handler-factory.js +42 -36
- package/dist/tools/pagination-handler-factory.js.map +1 -1
- package/dist/tools/pools/checkPoolExists.js +3 -3
- package/dist/tools/pools/checkPoolExists.js.map +1 -1
- package/dist/tools/pools/fetchAllPools.js +5 -5
- package/dist/tools/pools/fetchAllPools.js.map +1 -1
- package/dist/tools/pools/fetchAllPriceHistory.js +3 -3
- package/dist/tools/pools/fetchAllPriceHistory.js.map +1 -1
- package/dist/tools/pools/fetchPoolDetails.js +1 -1
- package/dist/tools/pools/fetchPoolDetails.js.map +1 -1
- package/dist/tools/pools/fetchPools.d.ts.map +1 -1
- package/dist/tools/pools/fetchPools.js +10 -11
- package/dist/tools/pools/fetchPools.js.map +1 -1
- package/dist/tools/pools/fetchPriceHistory.js +7 -7
- package/dist/tools/pools/fetchPriceHistory.js.map +1 -1
- package/dist/tools/pools/fetchTokenDetails.js +1 -1
- package/dist/tools/pools/fetchTokenDetails.js.map +1 -1
- package/dist/tools/pools/getPoolRealtimeState.d.ts +10 -0
- package/dist/tools/pools/getPoolRealtimeState.d.ts.map +1 -0
- package/dist/tools/pools/getPoolRealtimeState.js +45 -0
- package/dist/tools/pools/getPoolRealtimeState.js.map +1 -0
- package/dist/tools/pools/index.d.ts.map +1 -1
- package/dist/tools/pools/index.js +37 -27
- package/dist/tools/pools/index.js.map +1 -1
- package/dist/tools/pools/onDexPoolCreation.js +3 -3
- package/dist/tools/pools/onDexPoolCreation.js.map +1 -1
- package/dist/tools/pools/onHolderCountChanged.d.ts +9 -0
- package/dist/tools/pools/onHolderCountChanged.d.ts.map +1 -0
- package/dist/tools/pools/onHolderCountChanged.js +44 -0
- package/dist/tools/pools/onHolderCountChanged.js.map +1 -0
- package/dist/tools/pools/onLaunchpadTokenCreation.js +2 -2
- package/dist/tools/pools/onLaunchpadTokenCreation.js.map +1 -1
- package/dist/tools/pools/onPoolUpdated.d.ts +9 -0
- package/dist/tools/pools/onPoolUpdated.d.ts.map +1 -0
- package/dist/tools/pools/onPoolUpdated.js +44 -0
- package/dist/tools/pools/onPoolUpdated.js.map +1 -0
- package/dist/tools/pools/updateTokenConfig.d.ts +15 -0
- package/dist/tools/pools/updateTokenConfig.d.ts.map +1 -0
- package/dist/tools/pools/updateTokenConfig.js +61 -0
- package/dist/tools/pools/updateTokenConfig.js.map +1 -0
- package/dist/tools/pools/updateTokenSocials.js +9 -9
- package/dist/tools/pools/updateTokenSocials.js.map +1 -1
- package/dist/tools/pools/validateToken.d.ts +8 -0
- package/dist/tools/pools/validateToken.d.ts.map +1 -0
- package/dist/tools/pools/validateToken.js +42 -0
- package/dist/tools/pools/validateToken.js.map +1 -0
- package/dist/tools/recordings/index.d.ts +28 -0
- package/dist/tools/recordings/index.d.ts.map +1 -0
- package/dist/tools/recordings/index.js +113 -0
- package/dist/tools/recordings/index.js.map +1 -0
- package/dist/tools/referrals/index.js +9 -9
- package/dist/tools/referrals/index.js.map +1 -1
- package/dist/tools/restricted-names/getRestrictedNames.d.ts +16 -0
- package/dist/tools/restricted-names/getRestrictedNames.d.ts.map +1 -0
- package/dist/tools/restricted-names/getRestrictedNames.js +47 -0
- package/dist/tools/restricted-names/getRestrictedNames.js.map +1 -0
- package/dist/tools/restricted-names/index.d.ts +22 -0
- package/dist/tools/restricted-names/index.d.ts.map +1 -0
- package/dist/tools/restricted-names/index.js +28 -0
- package/dist/tools/restricted-names/index.js.map +1 -0
- package/dist/tools/restricted-names/updateRestrictedNames.d.ts +16 -0
- package/dist/tools/restricted-names/updateRestrictedNames.d.ts.map +1 -0
- package/dist/tools/restricted-names/updateRestrictedNames.js +56 -0
- package/dist/tools/restricted-names/updateRestrictedNames.js.map +1 -0
- package/dist/tools/simulcasts/index.d.ts +25 -0
- package/dist/tools/simulcasts/index.d.ts.map +1 -0
- package/dist/tools/simulcasts/index.js +143 -0
- package/dist/tools/simulcasts/index.js.map +1 -0
- package/dist/tools/streaming/index.d.ts +4 -37
- package/dist/tools/streaming/index.d.ts.map +1 -1
- package/dist/tools/streaming/index.js +7 -240
- package/dist/tools/streaming/index.js.map +1 -1
- package/dist/tools/streaming/setNextLiveStreamCountdown.js +2 -2
- package/dist/tools/streaming/setNextLiveStreamCountdown.js.map +1 -1
- package/dist/tools/token-ban/index.d.ts.map +1 -1
- package/dist/tools/token-ban/index.js +14 -12
- package/dist/tools/token-ban/index.js.map +1 -1
- package/dist/tools/token-ban/onTokenBanChanged.d.ts +9 -0
- package/dist/tools/token-ban/onTokenBanChanged.d.ts.map +1 -0
- package/dist/tools/token-ban/onTokenBanChanged.js +43 -0
- package/dist/tools/token-ban/onTokenBanChanged.js.map +1 -0
- package/dist/tools/tool-factory.d.ts +6 -6
- package/dist/tools/tool-factory.js +8 -8
- package/dist/tools/tool-factory.js.map +1 -1
- package/dist/tools/trades/getRecentTrades.d.ts +10 -0
- package/dist/tools/trades/getRecentTrades.d.ts.map +1 -0
- package/dist/tools/trades/getRecentTrades.js +57 -0
- package/dist/tools/trades/getRecentTrades.js.map +1 -0
- package/dist/tools/trades/index.d.ts +1 -1
- package/dist/tools/trades/index.d.ts.map +1 -1
- package/dist/tools/trades/index.js +18 -14
- package/dist/tools/trades/index.js.map +1 -1
- package/dist/tools/trades/onTradeExecuted.d.ts +9 -0
- package/dist/tools/trades/onTradeExecuted.d.ts.map +1 -0
- package/dist/tools/trades/onTradeExecuted.js +52 -0
- package/dist/tools/trades/onTradeExecuted.js.map +1 -0
- package/dist/tools/trading/helpers/arg-extractors.d.ts +5 -5
- package/dist/tools/trading/helpers/arg-extractors.d.ts.map +1 -1
- package/dist/tools/trading/helpers/arg-extractors.js +1 -1
- package/dist/tools/trading/helpers/arg-extractors.js.map +1 -1
- package/dist/tools/trading/helpers/trading-schemas.d.ts +1 -1
- package/dist/tools/trading/helpers/trading-schemas.js +13 -13
- package/dist/tools/trading/helpers/trading-schemas.js.map +1 -1
- package/dist/tools/trading/index.d.ts.map +1 -1
- package/dist/tools/trading/index.js +20 -17
- package/dist/tools/trading/index.js.map +1 -1
- package/dist/tools/transfers/index.js +2 -2
- package/dist/tools/transfers/index.js.map +1 -1
- package/dist/tools/utils/clearCache.d.ts.map +1 -1
- package/dist/tools/utils/clearCache.js +1 -1
- package/dist/tools/utils/clearCache.js.map +1 -1
- package/dist/tools/utils/explainSdkUsage.d.ts.map +1 -1
- package/dist/tools/utils/explainSdkUsage.js +171 -585
- package/dist/tools/utils/explainSdkUsage.js.map +1 -1
- package/dist/tools/utils/explainWebSocketEvents.d.ts +10 -0
- package/dist/tools/utils/explainWebSocketEvents.d.ts.map +1 -0
- package/dist/tools/utils/explainWebSocketEvents.js +97 -0
- package/dist/tools/utils/explainWebSocketEvents.js.map +1 -0
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js.map +1 -1
- package/dist/tools/utils/getEventSchema.d.ts +10 -0
- package/dist/tools/utils/getEventSchema.d.ts.map +1 -0
- package/dist/tools/utils/getEventSchema.js +168 -0
- package/dist/tools/utils/getEventSchema.js.map +1 -0
- package/dist/tools/utils/getPlatformStatus.d.ts +10 -0
- package/dist/tools/utils/getPlatformStatus.d.ts.map +1 -0
- package/dist/tools/utils/getPlatformStatus.js +35 -0
- package/dist/tools/utils/getPlatformStatus.js.map +1 -0
- package/dist/tools/utils/getPublicKeyFromPrivateKey.js +1 -1
- package/dist/tools/utils/getPublicKeyFromPrivateKey.js.map +1 -1
- package/dist/tools/utils/index.d.ts.map +1 -1
- package/dist/tools/utils/index.js +6 -0
- package/dist/tools/utils/index.js.map +1 -1
- package/dist/tools/utils/setWallet.js +1 -1
- package/dist/tools/utils/setWallet.js.map +1 -1
- package/dist/tools/utils/switchEnvironment.js +1 -1
- package/dist/tools/utils/switchEnvironment.js.map +1 -1
- package/dist/tools/validate-manifest.d.ts +35 -0
- package/dist/tools/validate-manifest.d.ts.map +1 -0
- package/dist/tools/validate-manifest.js +122 -0
- package/dist/tools/validate-manifest.js.map +1 -0
- package/dist/utils/default-values.d.ts +0 -40
- package/dist/utils/default-values.d.ts.map +1 -1
- package/dist/utils/default-values.js +2 -45
- package/dist/utils/default-values.js.map +1 -1
- package/dist/utils/handler-args.d.ts +8 -0
- package/dist/utils/handler-args.d.ts.map +1 -0
- package/dist/utils/handler-args.js +28 -0
- package/dist/utils/handler-args.js.map +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Get Recent Trades Query Tool
|
|
4
|
+
*
|
|
5
|
+
* Fetches the most recent executed trades with optional filtering.
|
|
6
|
+
*
|
|
7
|
+
* @since 6.2.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getRecentTradesTool = void 0;
|
|
11
|
+
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
12
|
+
const handler_factories_js_1 = require("../handler-factories.js");
|
|
13
|
+
exports.getRecentTradesTool = {
|
|
14
|
+
name: 'gala_launchpad_get_recent_trades',
|
|
15
|
+
description: `Get the most recently executed trades with optional filtering.
|
|
16
|
+
|
|
17
|
+
Returns a list of the latest trades across the platform or filtered by token/user/type.
|
|
18
|
+
Useful for market overview, trend analysis, and finding recent market activity.
|
|
19
|
+
|
|
20
|
+
Filter Options:
|
|
21
|
+
- tokenName: Get trades for a specific token
|
|
22
|
+
- userAddress: Get trades by a specific user
|
|
23
|
+
- tradeType: Get only BUY or SELL trades
|
|
24
|
+
- limit: Number of recent trades to return (default: 50, max: 500)
|
|
25
|
+
|
|
26
|
+
Returns: Array of recent trade events with txnId, txnType, amounts, userAddress, tokenName, and timestamp.`,
|
|
27
|
+
inputSchema: {
|
|
28
|
+
type: 'object',
|
|
29
|
+
properties: {
|
|
30
|
+
tokenName: {
|
|
31
|
+
...common_schemas_js_1.TOKEN_NAME_SCHEMA,
|
|
32
|
+
description: 'Filter by token name (optional).',
|
|
33
|
+
},
|
|
34
|
+
userAddress: {
|
|
35
|
+
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
36
|
+
description: 'Filter by user address (optional).',
|
|
37
|
+
},
|
|
38
|
+
tradeType: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
enum: ['BUY', 'SELL'],
|
|
41
|
+
description: 'Filter by trade direction (optional).',
|
|
42
|
+
},
|
|
43
|
+
limit: (0, common_schemas_js_1.createLimitSchema)('trade', 50),
|
|
44
|
+
},
|
|
45
|
+
required: [],
|
|
46
|
+
},
|
|
47
|
+
handler: (0, handler_factories_js_1.createSimpleHandler)('getRecentTrades', (args) => {
|
|
48
|
+
const typedArgs = args;
|
|
49
|
+
return {
|
|
50
|
+
tokenName: typedArgs.tokenName,
|
|
51
|
+
userAddress: typedArgs.userAddress,
|
|
52
|
+
tradeType: typedArgs.tradeType,
|
|
53
|
+
limit: typedArgs.limit ?? 50,
|
|
54
|
+
};
|
|
55
|
+
}),
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=getRecentTrades.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecentTrades.js","sourceRoot":"","sources":["../../../src/tools/trades/getRecentTrades.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAGH,uEAIyC;AACzC,kEAA8D;AASjD,QAAA,mBAAmB,GAAY;IAC1C,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE;;;;;;;;;;;2GAW4F;IACzG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,GAAG,qCAAiB;gBACpB,WAAW,EAAE,kCAAkC;aAChD;YACD,WAAW,EAAE;gBACX,GAAG,kCAAc;gBACjB,WAAW,EAAE,oCAAoC;aAClD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;gBACrB,WAAW,EAAE,uCAAuC;aACrD;YACD,KAAK,EAAE,IAAA,qCAAiB,EAAC,OAAO,EAAE,EAAE,CAAC;SACtC;QACD,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE,IAAA,0CAAmB,EAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE;QACvD,MAAM,SAAS,GAAG,IAA2B,CAAC;QAC9C,OAAO;YACL,SAAS,EAAE,SAAS,CAAC,SAAS;YAC9B,WAAW,EAAE,SAAS,CAAC,WAAW;YAClC,SAAS,EAAE,SAAS,CAAC,SAAS;YAC9B,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,EAAE;SAC7B,CAAC;IACJ,CAAC,CAAC;CACH,CAAC"}
|
|
@@ -14,7 +14,7 @@ import type { MCPTool } from '../../types/mcp.js';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const getTradesTool: MCPTool;
|
|
16
16
|
/**
|
|
17
|
-
* All trades tools (
|
|
17
|
+
* All trades tools (3 total)
|
|
18
18
|
*/
|
|
19
19
|
export declare const tradesTools: MCPTool[];
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/trades/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/trades/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAgClD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,OAoF3B,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,OAAO,EAIhC,CAAC"}
|
|
@@ -10,6 +10,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.tradesTools = exports.getTradesTool = void 0;
|
|
11
11
|
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
12
12
|
const handler_factories_js_1 = require("../handler-factories.js");
|
|
13
|
+
const onTradeExecuted_js_1 = require("./onTradeExecuted.js");
|
|
14
|
+
const getRecentTrades_js_1 = require("./getRecentTrades.js");
|
|
13
15
|
// =============================================================================
|
|
14
16
|
// Trades Tools
|
|
15
17
|
// =============================================================================
|
|
@@ -23,7 +25,7 @@ exports.getTradesTool = {
|
|
|
23
25
|
name: 'gala_launchpad_get_trades',
|
|
24
26
|
description: `Query trades with flexible filtering options.
|
|
25
27
|
|
|
26
|
-
Returns paginated list of trades with metadata.
|
|
28
|
+
Returns paginated list of trades with metadata using cursor-based pagination.
|
|
27
29
|
At least one of tokenName or userAddress is required.
|
|
28
30
|
|
|
29
31
|
Filters:
|
|
@@ -33,7 +35,7 @@ Filters:
|
|
|
33
35
|
- startDate/endDate: Filter by date range (ISO 8601)
|
|
34
36
|
- minAmount/maxAmount: Filter by trade amount range
|
|
35
37
|
|
|
36
|
-
RETURNS: { trades: [{ txnId, txnType, inputAmount, outputAmount, userAddress, tokenName, tokenImage, createdAt }],
|
|
38
|
+
RETURNS: { trades: [{ txnId, txnType, inputAmount, outputAmount, userAddress, tokenName, tokenImage, createdAt }], pageInfo: { hasNextPage, endCursor, hasPreviousPage, startCursor } }
|
|
37
39
|
|
|
38
40
|
Examples:
|
|
39
41
|
- Get all trades for a token: { tokenName: 'anime' }
|
|
@@ -48,36 +50,36 @@ Public endpoint - no authentication required.`,
|
|
|
48
50
|
properties: {
|
|
49
51
|
tokenName: {
|
|
50
52
|
...common_schemas_js_1.TOKEN_NAME_SCHEMA,
|
|
51
|
-
description: 'Token name to filter by (optional if userAddress provided)',
|
|
53
|
+
description: 'Token name to filter by (optional if userAddress provided).',
|
|
52
54
|
},
|
|
53
55
|
userAddress: {
|
|
54
56
|
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
55
|
-
description: 'User address to filter by (optional if tokenName provided)',
|
|
57
|
+
description: 'User address to filter by (optional if tokenName provided).',
|
|
56
58
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
cursor: common_schemas_js_1.CURSOR_SCHEMA,
|
|
60
|
+
pageSize: (0, common_schemas_js_1.createPageSizeSchema)('trade', 20),
|
|
59
61
|
txnType: {
|
|
60
62
|
type: 'string',
|
|
61
63
|
enum: ['BUY', 'SELL'],
|
|
62
|
-
description: 'Filter by trade direction (BUY or SELL)',
|
|
64
|
+
description: 'Filter by trade direction (BUY or SELL).',
|
|
63
65
|
},
|
|
64
66
|
startDate: {
|
|
65
67
|
...common_schemas_js_1.DATE_TIME_SCHEMA,
|
|
66
|
-
description: 'Filter by date range start (ISO 8601 format, e.g., "2024-01-01")',
|
|
68
|
+
description: 'Filter by date range start (ISO 8601 format, e.g., "2024-01-01").',
|
|
67
69
|
},
|
|
68
70
|
endDate: {
|
|
69
71
|
...common_schemas_js_1.DATE_TIME_SCHEMA,
|
|
70
|
-
description: 'Filter by date range end (ISO 8601 format, e.g., "2024-12-31")',
|
|
72
|
+
description: 'Filter by date range end (ISO 8601 format, e.g., "2024-12-31").',
|
|
71
73
|
},
|
|
72
74
|
minAmount: {
|
|
73
75
|
type: 'number',
|
|
74
76
|
minimum: 0,
|
|
75
|
-
description: 'Filter by minimum trade amount',
|
|
77
|
+
description: 'Filter by minimum trade amount.',
|
|
76
78
|
},
|
|
77
79
|
maxAmount: {
|
|
78
80
|
type: 'number',
|
|
79
81
|
minimum: 0,
|
|
80
|
-
description: 'Filter by maximum trade amount',
|
|
82
|
+
description: 'Filter by maximum trade amount.',
|
|
81
83
|
},
|
|
82
84
|
},
|
|
83
85
|
required: [],
|
|
@@ -92,8 +94,8 @@ Public endpoint - no authentication required.`,
|
|
|
92
94
|
return {
|
|
93
95
|
tokenName: typedArgs.tokenName,
|
|
94
96
|
userAddress: typedArgs.userAddress,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
cursor: typedArgs.cursor,
|
|
98
|
+
pageSize: typedArgs.pageSize,
|
|
97
99
|
txnType: typedArgs.txnType,
|
|
98
100
|
startDate: typedArgs.startDate,
|
|
99
101
|
endDate: typedArgs.endDate,
|
|
@@ -106,9 +108,11 @@ Public endpoint - no authentication required.`,
|
|
|
106
108
|
// Export
|
|
107
109
|
// =============================================================================
|
|
108
110
|
/**
|
|
109
|
-
* All trades tools (
|
|
111
|
+
* All trades tools (3 total)
|
|
110
112
|
*/
|
|
111
113
|
exports.tradesTools = [
|
|
112
114
|
exports.getTradesTool,
|
|
115
|
+
onTradeExecuted_js_1.onTradeExecutedTool,
|
|
116
|
+
getRecentTrades_js_1.getRecentTradesTool,
|
|
113
117
|
];
|
|
114
118
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/trades/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAGH,uEAMyC;AACzC,kEAA8D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/trades/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAGH,uEAMyC;AACzC,kEAA8D;AAC9D,6DAA2D;AAC3D,6DAA2D;AAkB3D,gFAAgF;AAChF,eAAe;AACf,gFAAgF;AAEhF;;;;;GAKG;AACU,QAAA,aAAa,GAAY;IACpC,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;8CAqB+B;IAC5C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,GAAG,qCAAiB;gBACpB,WAAW,EAAE,6DAA6D;aAC3E;YACD,WAAW,EAAE;gBACX,GAAG,kCAAc;gBACjB,WAAW,EAAE,6DAA6D;aAC3E;YACD,MAAM,EAAE,iCAAa;YACrB,QAAQ,EAAE,IAAA,wCAAoB,EAAC,OAAO,EAAE,EAAE,CAAC;YAC3C,OAAO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AAC,CAAC;CACH,CAAC;AAEF,gFAAgF;AAChF,SAAS;AACT,gFAAgF;AAEhF;;GAEG;AACU,QAAA,WAAW,GAAc;IACpC,qBAAa;IACb,wCAAmB;IACnB,wCAAmB;CACpB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Watch for Trade Execution Events Tool
|
|
3
|
+
*
|
|
4
|
+
* Real-time monitoring of executed trades across all tokens or filtered by specific criteria.
|
|
5
|
+
*
|
|
6
|
+
* @since 6.2.0
|
|
7
|
+
*/
|
|
8
|
+
export declare const onTradeExecutedTool: import("../../types/mcp.js").MCPTool;
|
|
9
|
+
//# sourceMappingURL=onTradeExecuted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onTradeExecuted.d.ts","sourceRoot":"","sources":["../../../src/tools/trades/onTradeExecuted.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,mBAAmB,sCAuC9B,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Watch for Trade Execution Events Tool
|
|
4
|
+
*
|
|
5
|
+
* Real-time monitoring of executed trades across all tokens or filtered by specific criteria.
|
|
6
|
+
*
|
|
7
|
+
* @since 6.2.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.onTradeExecutedTool = void 0;
|
|
11
|
+
const tool_factory_js_1 = require("../tool-factory.js");
|
|
12
|
+
exports.onTradeExecutedTool = (0, tool_factory_js_1.createEventWatcherTool)({
|
|
13
|
+
name: 'gala_launchpad_on_trade_executed',
|
|
14
|
+
description: `Watch for new trade execution events in real-time.
|
|
15
|
+
|
|
16
|
+
Triggers whenever a trade is executed on any token. Includes buy and sell trades.
|
|
17
|
+
|
|
18
|
+
Returns:
|
|
19
|
+
- tradesExecuted: Number of trades detected
|
|
20
|
+
- trades: Array of trade events with tokenName, userAddress, tradeType (BUY/SELL), amounts, and timestamp
|
|
21
|
+
|
|
22
|
+
Filter Options:
|
|
23
|
+
- tokenName: Only watch trades for a specific token
|
|
24
|
+
- tradeType: Filter by direction ('BUY' or 'SELL')
|
|
25
|
+
- minAmount: Only notify about trades >= minAmount
|
|
26
|
+
- userAddress: Only watch trades from a specific user address.`,
|
|
27
|
+
sdkMethodName: 'subscribeTradeExecuted',
|
|
28
|
+
resultKey: 'tradesExecuted',
|
|
29
|
+
filterSchema: {
|
|
30
|
+
tokenName: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
minLength: 1,
|
|
33
|
+
maxLength: 50,
|
|
34
|
+
description: 'Only watch trades for this token (optional).',
|
|
35
|
+
},
|
|
36
|
+
tradeType: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
enum: ['BUY', 'SELL'],
|
|
39
|
+
description: 'Only watch BUY or SELL trades (optional).',
|
|
40
|
+
},
|
|
41
|
+
minAmount: {
|
|
42
|
+
type: 'number',
|
|
43
|
+
minimum: 0,
|
|
44
|
+
description: 'Only notify about trades >= minAmount (optional).',
|
|
45
|
+
},
|
|
46
|
+
userAddress: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'Only watch trades from this user address (optional).',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=onTradeExecuted.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onTradeExecuted.js","sourceRoot":"","sources":["../../../src/tools/trades/onTradeExecuted.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,wDAA4D;AAE/C,QAAA,mBAAmB,GAAG,IAAA,wCAAsB,EAAC;IACxD,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE;;;;;;;;;;;;+DAYgD;IAC7D,aAAa,EAAE,wBAAwB;IACvC,SAAS,EAAE,gBAAgB;IAC3B,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,EAAE;YACb,WAAW,EAAE,8CAA8C;SAC5D;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;YACrB,WAAW,EAAE,2CAA2C;SACzD;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,mDAAmD;SACjE;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sDAAsD;SACpE;KACF;CACF,CAAC,CAAC"}
|
|
@@ -100,18 +100,18 @@ export declare function extractGraduationCalcArgs(args: Args): string | {
|
|
|
100
100
|
* Returns a base options object ready for date augmentation.
|
|
101
101
|
*
|
|
102
102
|
* @param args - Raw args from MCP tool
|
|
103
|
-
* @param pagination -
|
|
103
|
+
* @param pagination - Pagination parameters (cursor/pageSize)
|
|
104
104
|
* @returns Options object with filters and pagination (dates need separate handling)
|
|
105
105
|
*/
|
|
106
106
|
export declare function extractTradeHistoryArgs(args: Args, pagination: {
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
cursor?: string;
|
|
108
|
+
pageSize?: number;
|
|
109
109
|
}): {
|
|
110
110
|
tokenName: string | undefined;
|
|
111
111
|
tradeType: 'buy' | 'sell' | undefined;
|
|
112
112
|
userAddress: string | undefined;
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
cursor?: string;
|
|
114
|
+
pageSize?: number;
|
|
115
115
|
sortOrder: 'asc' | 'desc';
|
|
116
116
|
};
|
|
117
117
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arg-extractors.d.ts","sourceRoot":"","sources":["../../../../src/tools/trading/helpers/arg-extractors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AA2GpC;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI;;;;EAEhD;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI;;;;;;;;;EAK1C;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI;;;;EAErD;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI;;;;;;;EAK9C;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI;;;;;;;EAM/C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI;;;;EASnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,
|
|
1
|
+
{"version":3,"file":"arg-extractors.d.ts","sourceRoot":"","sources":["../../../../src/tools/trading/helpers/arg-extractors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AA2GpC;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI;;;;EAEhD;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI;;;;;;;;;EAK1C;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI;;;;EAErD;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI;;;;;;;EAK9C;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI;;;;;;;EAM/C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI;;;;EASnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GACjD;IACD,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;IACtC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B,CAQA"}
|
|
@@ -189,7 +189,7 @@ function extractGraduationCalcArgs(args) {
|
|
|
189
189
|
* Returns a base options object ready for date augmentation.
|
|
190
190
|
*
|
|
191
191
|
* @param args - Raw args from MCP tool
|
|
192
|
-
* @param pagination -
|
|
192
|
+
* @param pagination - Pagination parameters (cursor/pageSize)
|
|
193
193
|
* @returns Options object with filters and pagination (dates need separate handling)
|
|
194
194
|
*/
|
|
195
195
|
function extractTradeHistoryArgs(args, pagination) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arg-extractors.js","sourceRoot":"","sources":["../../../../src/tools/trading/helpers/arg-extractors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;AAuHH,wDAEC;AAUD,4CAKC;AAQD,kEAEC;AAUD,oDAKC;AAUD,sDAMC;AAQD,8DASC;AAYD,0DAkBC;AAxND,sCAAsC;AACtC,MAAM,GAAG,GAAG,CAAC,IAAU,EAAE,GAAW,EAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAW,CAAC;AAErE,8BAA8B;AAC9B,MAAM,MAAM,GAAG,CAAC,IAAU,EAAE,GAAW,EAAsB,EAAE,CAAC,IAAI,CAAC,GAAG,CAAuB,CAAC;AAEhG,8BAA8B;AAC9B,MAAM,MAAM,GAAG,CAAC,IAAU,EAAE,GAAW,EA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H,SAAgB,oBAAoB,CAAC,IAAU;IAC7C,OAAO;QACL,GAAG,+BAA+B,CAAC,IAAI,CAAC;QACxC,GAAG,yBAAyB,CAAC,IAAI,CAAC;KACnC,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,qBAAqB,CAAC,IAAU;IAC9C,OAAO;QACL,SAAS,EAAE,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC;QACjC,GAAG,gCAAgC,CAAC,IAAI,CAAC;QACzC,GAAG,4BAA4B,CAAC,IAAI,CAAC;KACtC,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAgB,yBAAyB,CAAC,IAAU;IAClD,uDAAuD;IACvD,IAAI,CAAC,IAAI,CAAC,mBAAmB,KAAK,SAAS,IAAI,IAAI,CAAC,mBAAmB,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,KAAK,SAAS,IAAI,IAAI,CAAC,aAAa,KAAK,IAAI,CAAC,EAAE,CAAC;QACvJ,OAAO;YACL,SAAS,EAAE,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC;YACjC,GAAG,4BAA4B,CAAC,IAAI,CAAC;SACtC,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAChC,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,uBAAuB,CACrC,IAAU,EACV,
|
|
1
|
+
{"version":3,"file":"arg-extractors.js","sourceRoot":"","sources":["../../../../src/tools/trading/helpers/arg-extractors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;AAuHH,wDAEC;AAUD,4CAKC;AAQD,kEAEC;AAUD,oDAKC;AAUD,sDAMC;AAQD,8DASC;AAYD,0DAkBC;AAxND,sCAAsC;AACtC,MAAM,GAAG,GAAG,CAAC,IAAU,EAAE,GAAW,EAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAW,CAAC;AAErE,8BAA8B;AAC9B,MAAM,MAAM,GAAG,C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AC;KAC3B,CAAC;AACJ,CAAC"}
|
|
@@ -261,7 +261,7 @@ export interface BondingCurveCalculationToolConfig {
|
|
|
261
261
|
* @example
|
|
262
262
|
* const { inputSchema, required } = createCalculationToolSchema({
|
|
263
263
|
* name: 'gala_launchpad_calculate_buy_amount_local',
|
|
264
|
-
* description: 'Calculate buy amounts locally',
|
|
264
|
+
* description: 'Calculate buy amounts locally.',
|
|
265
265
|
* direction: 'buy',
|
|
266
266
|
* mode: 'local',
|
|
267
267
|
* });
|
|
@@ -38,7 +38,7 @@ exports.BUY_CALCULATION_TYPE_SCHEMA = {
|
|
|
38
38
|
- 'exact': You specify exact token amount to buy
|
|
39
39
|
Example: "I want to buy exactly 1000 WOO tokens" -> type: 'exact', amount: '1000'
|
|
40
40
|
|
|
41
|
-
Most common: Use 'native' when you know how much GALA to spend
|
|
41
|
+
Most common: Use 'native' when you know how much GALA to spend.`,
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* Trade type schema for SELL calculations
|
|
@@ -57,7 +57,7 @@ exports.SELL_CALCULATION_TYPE_SCHEMA = {
|
|
|
57
57
|
- 'exact': You specify exact token amount to sell
|
|
58
58
|
Example: "I want to sell exactly 1000 WOO tokens" -> type: 'exact', amount: '1000'
|
|
59
59
|
|
|
60
|
-
Most common: Use 'native' when you know how much GALA you want to receive
|
|
60
|
+
Most common: Use 'native' when you know how much GALA you want to receive.`,
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
63
63
|
* Trade type schema for BUY execution (must match calculation)
|
|
@@ -67,7 +67,7 @@ exports.BUY_EXECUTION_TYPE_SCHEMA = {
|
|
|
67
67
|
description: `Trade type (must match what you used in calculateBuyAmount):
|
|
68
68
|
|
|
69
69
|
- 'native': Spending GALA amount
|
|
70
|
-
- 'exact': Buying exact token amount
|
|
70
|
+
- 'exact': Buying exact token amount.`,
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
73
|
* Trade type schema for SELL execution (must match calculation)
|
|
@@ -77,7 +77,7 @@ exports.SELL_EXECUTION_TYPE_SCHEMA = {
|
|
|
77
77
|
description: `Trade type (must match what you used in calculateSellAmount):
|
|
78
78
|
|
|
79
79
|
- 'native': Receiving GALA amount
|
|
80
|
-
- 'exact': Selling exact token amount
|
|
80
|
+
- 'exact': Selling exact token amount.`,
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
83
|
* Trade type schema for local calculations (compact)
|
|
@@ -86,7 +86,7 @@ exports.LOCAL_BUY_TYPE_SCHEMA = {
|
|
|
86
86
|
...BASE_TRADE_TYPE_SCHEMA,
|
|
87
87
|
description: `Trade calculation type:
|
|
88
88
|
- 'native': Spend GALA amount
|
|
89
|
-
- 'exact': Buy exact token amount
|
|
89
|
+
- 'exact': Buy exact token amount.`,
|
|
90
90
|
};
|
|
91
91
|
/**
|
|
92
92
|
* Trade type schema for local sell calculations (compact)
|
|
@@ -95,7 +95,7 @@ exports.LOCAL_SELL_TYPE_SCHEMA = {
|
|
|
95
95
|
...BASE_TRADE_TYPE_SCHEMA,
|
|
96
96
|
description: `Trade calculation type:
|
|
97
97
|
- 'native': Receive GALA amount
|
|
98
|
-
- 'exact': Sell exact token amount
|
|
98
|
+
- 'exact': Sell exact token amount.`,
|
|
99
99
|
};
|
|
100
100
|
// =============================================================================
|
|
101
101
|
// Amount Schemas
|
|
@@ -105,7 +105,7 @@ exports.LOCAL_SELL_TYPE_SCHEMA = {
|
|
|
105
105
|
*/
|
|
106
106
|
exports.TRADE_AMOUNT_SCHEMA = {
|
|
107
107
|
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
108
|
-
description: 'Amount in standard decimal format (e.g., "1" for 1 GALA)',
|
|
108
|
+
description: 'Amount in standard decimal format (e.g., "1" for 1 GALA).',
|
|
109
109
|
};
|
|
110
110
|
/**
|
|
111
111
|
* Expected amount schema for BUY execution
|
|
@@ -215,19 +215,19 @@ exports.GRADUATION_OPTIONAL_PROPERTIES = {
|
|
|
215
215
|
exports.LOCAL_SELL_PROPERTIES = {
|
|
216
216
|
maxSupply: {
|
|
217
217
|
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
218
|
-
description: 'Token maximum supply (get from fetchPoolDetails)',
|
|
218
|
+
description: 'Token maximum supply (get from fetchPoolDetails).',
|
|
219
219
|
},
|
|
220
220
|
reverseBondingCurveMinFeeFactor: {
|
|
221
221
|
type: 'number',
|
|
222
222
|
minimum: 0,
|
|
223
223
|
maximum: 1,
|
|
224
|
-
description: 'Min reverse bonding curve fee factor (get from poolDetails.reverseBondingCurveMinFeeFactor)',
|
|
224
|
+
description: 'Min reverse bonding curve fee factor (get from poolDetails.reverseBondingCurveMinFeeFactor).',
|
|
225
225
|
},
|
|
226
226
|
reverseBondingCurveMaxFeeFactor: {
|
|
227
227
|
type: 'number',
|
|
228
228
|
minimum: 0,
|
|
229
229
|
maximum: 1,
|
|
230
|
-
description: 'Max reverse bonding curve fee factor (get from poolDetails.reverseBondingCurveMaxFeeFactor)',
|
|
230
|
+
description: 'Max reverse bonding curve fee factor (get from poolDetails.reverseBondingCurveMaxFeeFactor).',
|
|
231
231
|
},
|
|
232
232
|
};
|
|
233
233
|
/**
|
|
@@ -253,7 +253,7 @@ function createTradeExecutionSchema(config) {
|
|
|
253
253
|
tokenName: common_schemas_js_1.TOKEN_NAME_SCHEMA,
|
|
254
254
|
amount: {
|
|
255
255
|
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
256
|
-
description: isBuy ? 'Amount to spend/buy' : 'Amount to sell/receive',
|
|
256
|
+
description: isBuy ? 'Amount to spend/buy.' : 'Amount to sell/receive.',
|
|
257
257
|
},
|
|
258
258
|
type: isBuy ? exports.BUY_EXECUTION_TYPE_SCHEMA : exports.SELL_EXECUTION_TYPE_SCHEMA,
|
|
259
259
|
expectedAmount: isBuy ? exports.EXPECTED_BUY_AMOUNT_SCHEMA : exports.EXPECTED_SELL_AMOUNT_SCHEMA,
|
|
@@ -277,7 +277,7 @@ function createTradeExecutionSchema(config) {
|
|
|
277
277
|
* @example
|
|
278
278
|
* const { inputSchema, required } = createCalculationToolSchema({
|
|
279
279
|
* name: 'gala_launchpad_calculate_buy_amount_local',
|
|
280
|
-
* description: 'Calculate buy amounts locally',
|
|
280
|
+
* description: 'Calculate buy amounts locally.',
|
|
281
281
|
* direction: 'buy',
|
|
282
282
|
* mode: 'local',
|
|
283
283
|
* });
|
|
@@ -289,7 +289,7 @@ function createCalculationToolSchema(config) {
|
|
|
289
289
|
tokenName: common_schemas_js_1.TOKEN_NAME_SCHEMA,
|
|
290
290
|
amount: config.direction === 'buy'
|
|
291
291
|
? exports.TRADE_AMOUNT_SCHEMA
|
|
292
|
-
: { ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA, description: 'Amount to sell/receive' },
|
|
292
|
+
: { ...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA, description: 'Amount to sell/receive.' },
|
|
293
293
|
type: typeSchema,
|
|
294
294
|
};
|
|
295
295
|
// Required fields - always include base fields
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trading-schemas.js","sourceRoot":"","sources":["../../../../src/tools/trading/helpers/trading-schemas.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA8RH,gEAwBC;AA2CD,kEAkCC;AAjYD,6DAA0D;AAC1D,0EAQ4C;AAE5C,gFAAgF;AAChF,qBAAqB;AACrB,gFAAgF;AAEhF;;GAEG;AACH,MAAM,sBAAsB,GAAG;IAC7B,IAAI,EAAE,QAAiB;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,6BAAa,CAAC;CACnC,CAAC;AAEF;;;;;;GAMG;AACU,QAAA,2BAA2B,GAAG;IACzC,GAAG,sBAAsB;IACzB,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"trading-schemas.js","sourceRoot":"","sources":["../../../../src/tools/trading/helpers/trading-schemas.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA8RH,gEAwBC;AA2CD,kEAkCC;AAjYD,6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AA6D;IAC7D,IAAI,MAAM,CAAC,0BAA0B,EAAE,CAAC;QACtC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,6BAAqB,CAAC,CAAC;QACjD,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,iCAAiC,EAAE,iCAAiC,CAAC,CAAC;IACnG,CAAC;IAED,OAAO;QACL,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU;YACV,QAAQ;SACT;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/trading/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/trading/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAyClD,eAAO,MAAM,sBAAsB,EAAE,OAuBpC,CAAC;AAGF,eAAO,MAAM,uBAAuB,EAAE,OAuBrC,CAAC;AAOF,eAAO,MAAM,aAAa,EAAE,OAiB3B,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,OAiB5B,CAAC;AAOF,eAAO,MAAM,eAAe,EAAE,OAiD7B,CAAC;AAGF,eAAO,MAAM,uBAAuB,EAAE,OAcrC,CAAC;AAGF,eAAO,MAAM,+BAA+B,EAAE,OAsB7C,CAAC;AAOF,eAAO,MAAM,mCAAmC,EAAE,OAuBjD,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,OA0B/B,CAAC;AAwCF,eAAO,MAAM,2BAA2B,EAAE,OAUzC,CAAC;AAGF,eAAO,MAAM,8BAA8B,EAAE,OAU5C,CAAC;AAGF,eAAO,MAAM,4BAA4B,EAAE,OAW1C,CAAC;AAGF,eAAO,MAAM,+BAA+B,EAAE,OAU7C,CAAC;AAMF,eAAO,MAAM,YAAY,EAAE,OAAO,EAcjC,CAAC"}
|
|
@@ -8,7 +8,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.tradingTools = exports.calculateSellAmountExternalTool = exports.calculateSellAmountLocalTool = exports.calculateBuyAmountExternalTool = exports.calculateBuyAmountLocalTool = exports.graduateTokenTool = exports.calculateBuyAmountForGraduationTool = exports.getBundlerTransactionResultTool = exports.calculateInitialBuyTool = exports.fetchTradesTool = exports.sellTokensTool = exports.buyTokensTool = exports.calculateSellAmountTool = exports.calculateBuyAmountTool = void 0;
|
|
9
9
|
const handler_factories_js_1 = require("../handler-factories.js");
|
|
10
10
|
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
11
|
-
const default_values_js_1 = require("../../utils/default-values.js");
|
|
12
11
|
const date_converter_js_1 = require("../../utils/date-converter.js");
|
|
13
12
|
const index_js_1 = require("./helpers/index.js");
|
|
14
13
|
// =============================================================================
|
|
@@ -27,7 +26,7 @@ RETURNS:
|
|
|
27
26
|
- amount: Exact token amount to receive
|
|
28
27
|
- totalCost: GALA needed (amount + all fees)
|
|
29
28
|
- transactionFee: Gas fee (1 GALA)
|
|
30
|
-
- reverseBondingCurveFee: Dynamic pool fee (min-max range)
|
|
29
|
+
- reverseBondingCurveFee: Dynamic pool fee (min-max range).`,
|
|
31
30
|
inputSchema: {
|
|
32
31
|
type: 'object',
|
|
33
32
|
properties: {
|
|
@@ -52,7 +51,7 @@ RETURNS:
|
|
|
52
51
|
- amount: GALA received after all deductions
|
|
53
52
|
- totalCost: Tokens needed (amount + reverse fee)
|
|
54
53
|
- transactionFee: Gas fee (1 GALA deducted from amount)
|
|
55
|
-
- reverseBondingCurveFee: Dynamic pool fee applied to sale
|
|
54
|
+
- reverseBondingCurveFee: Dynamic pool fee applied to sale.`,
|
|
56
55
|
inputSchema: {
|
|
57
56
|
type: 'object',
|
|
58
57
|
properties: {
|
|
@@ -82,7 +81,7 @@ CRITICAL: Extract BOTH parameters from calculateBuyAmount:
|
|
|
82
81
|
- result.reverseBondingCurveFee -> maxAcceptableReverseBondingCurveFee
|
|
83
82
|
Omitting reverseBondingCurveFee may cause transaction failures!
|
|
84
83
|
|
|
85
|
-
RETURNS: Transaction details including input/output amounts and transaction ID
|
|
84
|
+
RETURNS: Transaction details including input/output amounts and transaction ID.`,
|
|
86
85
|
inputSchema: (0, index_js_1.createTradeExecutionSchema)({ direction: 'buy' }),
|
|
87
86
|
handler: (0, handler_factories_js_1.createSimpleHandler)('buy', index_js_1.extractTradeArgs),
|
|
88
87
|
};
|
|
@@ -101,7 +100,7 @@ CRITICAL: Extract BOTH parameters from calculateSellAmount:
|
|
|
101
100
|
- result.reverseBondingCurveFee -> maxAcceptableReverseBondingCurveFee
|
|
102
101
|
Omitting reverseBondingCurveFee may cause transaction failures!
|
|
103
102
|
|
|
104
|
-
RETURNS: Transaction details including input/output amounts and transaction ID
|
|
103
|
+
RETURNS: Transaction details including input/output amounts and transaction ID.`,
|
|
105
104
|
inputSchema: (0, index_js_1.createTradeExecutionSchema)({ direction: 'sell' }),
|
|
106
105
|
handler: (0, handler_factories_js_1.createSimpleHandler)('sell', index_js_1.extractTradeArgs),
|
|
107
106
|
};
|
|
@@ -124,7 +123,7 @@ RETURNS:
|
|
|
124
123
|
- type: 'buy' or 'sell'
|
|
125
124
|
- amount: Token quantity
|
|
126
125
|
- price: GALA paid/received
|
|
127
|
-
- timestamp: When executed
|
|
126
|
+
- timestamp: When executed.`,
|
|
128
127
|
inputSchema: {
|
|
129
128
|
type: 'object',
|
|
130
129
|
properties: {
|
|
@@ -132,27 +131,31 @@ RETURNS:
|
|
|
132
131
|
tradeType: {
|
|
133
132
|
type: 'string',
|
|
134
133
|
enum: ['buy', 'sell'],
|
|
135
|
-
description: "Filter by trade type: 'buy' (purchases) or 'sell' (sales)",
|
|
134
|
+
description: "Filter by trade type: 'buy' (purchases) or 'sell' (sales).",
|
|
136
135
|
},
|
|
137
136
|
userAddress: {
|
|
138
137
|
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
139
|
-
description: 'Filter by user address',
|
|
138
|
+
description: 'Filter by user address.',
|
|
140
139
|
},
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
cursor: common_schemas_js_1.CURSOR_SCHEMA,
|
|
141
|
+
pageSize: (0, common_schemas_js_1.createPageSizeSchema)('trade', 20),
|
|
143
142
|
startDate: {
|
|
144
143
|
...common_schemas_js_1.DATE_TIME_SCHEMA,
|
|
145
|
-
description: 'Filter by start date',
|
|
144
|
+
description: 'Filter by start date.',
|
|
146
145
|
},
|
|
147
146
|
endDate: {
|
|
148
147
|
...common_schemas_js_1.DATE_TIME_SCHEMA,
|
|
149
|
-
description: 'Filter by end date',
|
|
148
|
+
description: 'Filter by end date.',
|
|
150
149
|
},
|
|
151
150
|
sortOrder: common_schemas_js_1.SORT_ORDER_SCHEMA,
|
|
152
151
|
},
|
|
153
152
|
},
|
|
154
153
|
handler: (0, handler_factories_js_1.createSimpleHandler)('fetchTrades', (args) => {
|
|
155
|
-
const pagination =
|
|
154
|
+
const pagination = {};
|
|
155
|
+
if (args.cursor !== undefined)
|
|
156
|
+
pagination.cursor = args.cursor;
|
|
157
|
+
if (args.pageSize !== undefined)
|
|
158
|
+
pagination.pageSize = args.pageSize;
|
|
156
159
|
const options = (0, index_js_1.extractTradeHistoryArgs)(args, pagination);
|
|
157
160
|
return (0, date_converter_js_1.addParsedStartEndDates)(options, args.startDate, args.endDate);
|
|
158
161
|
}),
|
|
@@ -160,13 +163,13 @@ RETURNS:
|
|
|
160
163
|
// 6. Calculate Initial Buy
|
|
161
164
|
exports.calculateInitialBuyTool = {
|
|
162
165
|
name: 'gala_launchpad_calculate_initial_buy',
|
|
163
|
-
description: 'Calculate amounts for initial token purchase during creation (pre-mint phase)',
|
|
166
|
+
description: 'Calculate amounts for initial token purchase during creation (pre-mint phase).',
|
|
164
167
|
inputSchema: {
|
|
165
168
|
type: 'object',
|
|
166
169
|
properties: {
|
|
167
170
|
amount: {
|
|
168
171
|
...common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
|
|
169
|
-
description: 'GALA amount to spend for initial buy (standard decimal format, e.g., "100" for 100 GALA)',
|
|
172
|
+
description: 'GALA amount to spend for initial buy (standard decimal format, e.g., "100" for 100 GALA).',
|
|
170
173
|
},
|
|
171
174
|
},
|
|
172
175
|
required: ['amount'],
|
|
@@ -213,7 +216,7 @@ Convenience method that:
|
|
|
213
216
|
Performance optimization: Provide currentSupply to avoid fetching pool details twice.
|
|
214
217
|
|
|
215
218
|
RETURNS: Same as calculateBuyAmount - complete cost breakdown including
|
|
216
|
-
totalCost, amount, transactionFee, gasFee, reverseBondingCurveFee
|
|
219
|
+
totalCost, amount, transactionFee, gasFee, reverseBondingCurveFee.`,
|
|
217
220
|
inputSchema: {
|
|
218
221
|
type: 'object',
|
|
219
222
|
properties: {
|
|
@@ -241,7 +244,7 @@ CRITICAL: This is a convenience method that combines multiple operations.
|
|
|
241
244
|
Throws error if token is already graduated.
|
|
242
245
|
slippageToleranceFactor is optional and uses SDK defaults if not provided.
|
|
243
246
|
|
|
244
|
-
RETURNS: TradeResult with transaction details including amounts and transaction ID
|
|
247
|
+
RETURNS: TradeResult with transaction details including amounts and transaction ID.`,
|
|
245
248
|
inputSchema: {
|
|
246
249
|
type: 'object',
|
|
247
250
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/trading/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,kEAA8D;AAC9D,uEAWyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/trading/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,kEAA8D;AAC9D,uEAWyC;AACzC,qEAAuE;AACvE,iDAmB4B;AAE5B,gFAAgF;AAChF,yBAAyB;AACzB,gFAAgF;AAEhF,0BAA0B;AACb,QAAA,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