@continuumdao/ctm-mpc-defi 0.2.22 → 0.2.24
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/agent/catalog.cjs +142 -13
- package/dist/agent/catalog.cjs.map +1 -1
- package/dist/agent/catalog.d.ts +282 -43
- package/dist/agent/catalog.js +138 -14
- package/dist/agent/catalog.js.map +1 -1
- package/dist/agent/skills/gmx/SKILL.md +30 -0
- package/dist/agent/skills/hyperliquid/SKILL.md +32 -0
- package/dist/agent/skills/uniswap-v4/SKILL.md +26 -1
- package/dist/core/index.d.ts +4 -36
- package/dist/eip712Multisign-xhXpUYp3.d.ts +36 -0
- package/dist/index.cjs +344 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +344 -12
- package/dist/index.js.map +1 -1
- package/dist/protocols/evm/gmx/index.cjs +39 -0
- package/dist/protocols/evm/gmx/index.cjs.map +1 -1
- package/dist/protocols/evm/gmx/index.d.ts +21 -1
- package/dist/protocols/evm/gmx/index.js +38 -1
- package/dist/protocols/evm/gmx/index.js.map +1 -1
- package/dist/protocols/evm/hyperliquid/index.cjs +478 -208
- package/dist/protocols/evm/hyperliquid/index.cjs.map +1 -1
- package/dist/protocols/evm/hyperliquid/index.d.ts +166 -51
- package/dist/protocols/evm/hyperliquid/index.js +467 -210
- package/dist/protocols/evm/hyperliquid/index.js.map +1 -1
- package/dist/protocols/evm/permit2/index.cjs.map +1 -1
- package/dist/protocols/evm/permit2/index.js.map +1 -1
- package/dist/protocols/evm/uniswap-v4/index.cjs +734 -15
- package/dist/protocols/evm/uniswap-v4/index.cjs.map +1 -1
- package/dist/protocols/evm/uniswap-v4/index.d.ts +189 -17
- package/dist/protocols/evm/uniswap-v4/index.js +698 -16
- package/dist/protocols/evm/uniswap-v4/index.js.map +1 -1
- package/package.json +1 -1
package/dist/agent/catalog.js
CHANGED
|
@@ -76,7 +76,9 @@ var UNIVERSAL_ROUTER_SPENDER = {
|
|
|
76
76
|
143: "0x0d97dc33264bfc1c226207428a79b26757fb9dc3",
|
|
77
77
|
59144: "0x661e93cca42afacb172121ef892830ca3b70f08d",
|
|
78
78
|
4217: "0x1febb76be10aaf3a1402f04e8e835f2c382f7914",
|
|
79
|
-
196: "0x5507749f2c558bb3e162c6e90c314c092e7372ff"
|
|
79
|
+
196: "0x5507749f2c558bb3e162c6e90c314c092e7372ff",
|
|
80
|
+
/** Robinhood Chain mainnet — Universal Router v2.1.1 (Trade API / interface) */
|
|
81
|
+
4663: "0x8876789976decbfcbbbe364623c63652db8c0904"
|
|
80
82
|
};
|
|
81
83
|
function isUniswapV4ChainSupported(chainId) {
|
|
82
84
|
if (chainId == null) return false;
|
|
@@ -167,6 +169,17 @@ var uniswapV4ProtocolModule = {
|
|
|
167
169
|
type: { type: "EXACT_INPUT | EXACT_OUTPUT", required: true, description: "Trade type" }
|
|
168
170
|
}
|
|
169
171
|
},
|
|
172
|
+
{
|
|
173
|
+
id: "uniswap-v4.limit-order",
|
|
174
|
+
protocolId: UNISWAP_V4_PROTOCOL_ID,
|
|
175
|
+
chainCategory: "evm",
|
|
176
|
+
description: "Place UniswapX limit order via EIP-712 sign + POST /order (Ethereum mainnet only)",
|
|
177
|
+
commonParams: ["keyGen", "purposeText"],
|
|
178
|
+
params: {
|
|
179
|
+
fullLimitQuote: { type: "object", required: true, description: "Full limit order quote from Trade API" },
|
|
180
|
+
uniswapApiKey: { type: "string", required: true, description: "Uniswap Trade API key" }
|
|
181
|
+
}
|
|
182
|
+
},
|
|
170
183
|
{
|
|
171
184
|
id: "uniswap-v4.mint-liquidity",
|
|
172
185
|
protocolId: UNISWAP_V4_PROTOCOL_ID,
|
|
@@ -755,10 +768,15 @@ function preprocessHyperliquidLimitOrderInput(raw) {
|
|
|
755
768
|
if (!preprocessObject(o)) return raw;
|
|
756
769
|
aliasField(o, "limitPxHuman", "limitPxHuman", "limitPx", "markPx");
|
|
757
770
|
aliasField(o, "szHuman", "szHuman", "sz", "size");
|
|
771
|
+
aliasField(o, "takeProfitTriggerPxHuman", "takeProfitTriggerPxHuman", "takeProfitPxHuman", "tpTriggerPxHuman", "targetPxHuman");
|
|
772
|
+
aliasField(o, "stopLossTriggerPxHuman", "stopLossTriggerPxHuman", "stopLossPxHuman", "slTriggerPxHuman", "invalidationPxHuman");
|
|
758
773
|
derivePurposeIfMissing(o, (x) => {
|
|
759
774
|
const coin = String(x.coin ?? "").trim();
|
|
760
775
|
const side = x.isBuy === true || x.isBuy === "true" ? "buy" : "sell";
|
|
761
776
|
const sz = String(x.szHuman ?? "").trim();
|
|
777
|
+
const tp = String(x.takeProfitTriggerPxHuman ?? "").trim();
|
|
778
|
+
const sl = String(x.stopLossTriggerPxHuman ?? "").trim();
|
|
779
|
+
if (coin && sz && (tp || sl)) return `HL bracket ${side} ${coin} ${sz}`;
|
|
762
780
|
if (coin && sz) return `HL limit ${side} ${coin} ${sz}`;
|
|
763
781
|
return void 0;
|
|
764
782
|
});
|
|
@@ -856,6 +874,13 @@ function preprocessUniswapBuildSwapInput(raw) {
|
|
|
856
874
|
derivePurposeIfMissing(o, () => "Uniswap V4 swap");
|
|
857
875
|
return o;
|
|
858
876
|
}
|
|
877
|
+
function preprocessUniswapBuildLimitOrderInput(raw) {
|
|
878
|
+
const o = preprocessObject(raw);
|
|
879
|
+
if (!o) return raw;
|
|
880
|
+
aliasField(o, "fullLimitQuote", "fullLimitQuote", "fullLimitQuoteFromPermit", "limitQuote", "quote");
|
|
881
|
+
derivePurposeIfMissing(o, () => "Uniswap V4 limit order");
|
|
882
|
+
return o;
|
|
883
|
+
}
|
|
859
884
|
function preprocessUniswapBuildLpInput(raw) {
|
|
860
885
|
const o = preprocessUniswapLpNftInput(raw);
|
|
861
886
|
if (!preprocessObject(o)) return raw;
|
|
@@ -990,6 +1015,45 @@ var mcpUniswapV4BuildSwapMultisignInputSchema = withMultisignKeySourceRefine(
|
|
|
990
1015
|
})
|
|
991
1016
|
)
|
|
992
1017
|
);
|
|
1018
|
+
var mcpUniswapV4LimitOrderQuoteInputSchema = z.object({
|
|
1019
|
+
type: uniswapQuoteTradeTypeSchema.describe("EXACT_INPUT or EXACT_OUTPUT"),
|
|
1020
|
+
amount: z.string().min(1).describe("Amount in token-in base units (wei string for ERC-20)"),
|
|
1021
|
+
limitPrice: z.string().min(1).describe("Limit price string from Trade API (pair exchange rate)"),
|
|
1022
|
+
tokenIn: z.string().min(1).describe("Input token; 0x0 for native ETH"),
|
|
1023
|
+
tokenOut: z.string().min(1).describe("Output token address"),
|
|
1024
|
+
chainId: agentEvmChainIdSchema.describe("Must be 1 (Ethereum mainnet) for limit orders"),
|
|
1025
|
+
orderDeadline: agentCoercedIntSchema(z.number().int().positive()).describe("Unix seconds when unfilled order expires"),
|
|
1026
|
+
uniswapApiKey: z.string().min(1).describe("Uniswap Trade API x-api-key"),
|
|
1027
|
+
swapper: evmAddressSchema.optional().describe("MPC executor; omit if keyGen + managementNodeUrl provided"),
|
|
1028
|
+
keyGen: z.string().optional(),
|
|
1029
|
+
managementNodeUrl: z.string().min(1).optional(),
|
|
1030
|
+
tokenInChainId: z.union([z.number(), z.string()]).optional(),
|
|
1031
|
+
tokenOutChainId: z.union([z.number(), z.string()]).optional(),
|
|
1032
|
+
baseUrl: z.string().optional()
|
|
1033
|
+
});
|
|
1034
|
+
var mcpUniswapV4LimitOrderQuoteOutputSchema = jsonObjectSchema.describe(
|
|
1035
|
+
"Full Uniswap POST /limit_order_quote JSON (includes quote, permitData, routing)."
|
|
1036
|
+
);
|
|
1037
|
+
var mcpUniswapV4BuildLimitOrderMultisignInputSchema = withMultisignKeySourceRefine(
|
|
1038
|
+
z.preprocess(
|
|
1039
|
+
preprocessUniswapBuildLimitOrderInput,
|
|
1040
|
+
evmMultisignCommonInputSchema.extend({
|
|
1041
|
+
fullLimitQuote: jsonObjectSchema.describe("Full limit order quote JSON from ctm_uniswap_v4_limit_order_quote"),
|
|
1042
|
+
uniswapApiKey: z.string().min(1).describe("Uniswap Trade API key"),
|
|
1043
|
+
tradeApiBaseUrl: z.string().optional()
|
|
1044
|
+
})
|
|
1045
|
+
)
|
|
1046
|
+
);
|
|
1047
|
+
var mcpUniswapV4FetchLimitOrdersInputSchema = z.object({
|
|
1048
|
+
chainId: agentEvmChainIdSchema.optional().describe("Default 1 (mainnet)"),
|
|
1049
|
+
swapper: evmAddressSchema.optional(),
|
|
1050
|
+
keyGen: z.string().optional(),
|
|
1051
|
+
managementNodeUrl: z.string().min(1).optional(),
|
|
1052
|
+
uniswapApiKey: z.string().min(1).optional(),
|
|
1053
|
+
limit: agentCoercedOptionalIntSchema(z.number().int().positive().max(100)).optional(),
|
|
1054
|
+
baseUrl: z.string().optional()
|
|
1055
|
+
});
|
|
1056
|
+
var mcpUniswapV4FetchLimitOrdersOutputSchema = jsonObjectSchema;
|
|
993
1057
|
var lpExistingPoolSchema = z.object({
|
|
994
1058
|
token0Address: evmAddressSchema,
|
|
995
1059
|
token1Address: evmAddressSchema,
|
|
@@ -1211,6 +1275,8 @@ var mcpUniswapV4FetchOhlcvInputSchema = z.object({
|
|
|
1211
1275
|
poolPreset: z.string().optional().describe("presetId from ctm_uniswap_v4_list_lp_pools"),
|
|
1212
1276
|
poolReference: z.string().optional().describe("bytes32 pool id"),
|
|
1213
1277
|
existingPool: uniswapV4ExistingPoolOhlcvSchema.optional(),
|
|
1278
|
+
currencyAddress: z.string().optional().describe("Robinhood/Bitquery: token contract to chart (preferred over symbol)"),
|
|
1279
|
+
currencySymbol: z.string().optional().describe("Robinhood/Bitquery: Stock Token symbol e.g. NVDA, AAPL"),
|
|
1214
1280
|
quoteToken: z.enum(["token0", "token1"]).optional().describe("Default token0 per token1 (subgraph native)"),
|
|
1215
1281
|
lookbackDays: agentCoercedOptionalIntSchema(z.number().int().positive().max(365)),
|
|
1216
1282
|
lookbackHours: agentCoercedOptionalIntSchema(z.number().int().positive().max(365 * 24)),
|
|
@@ -1222,7 +1288,7 @@ var mcpUniswapV4FetchOhlcvOutputSchema = z.object({
|
|
|
1222
1288
|
timeframe: uniswapV4OhlcvIntervalSchema,
|
|
1223
1289
|
chainId: agentEvmChainIdSchema,
|
|
1224
1290
|
poolReference: z.string(),
|
|
1225
|
-
dataSource: z.enum(["subgraph_native", "subgraph_aggregate", "swaps"]),
|
|
1291
|
+
dataSource: z.enum(["subgraph_native", "subgraph_aggregate", "swaps", "bitquery"]),
|
|
1226
1292
|
baseSubgraphEntity: z.enum(["hourly", "daily"]).optional(),
|
|
1227
1293
|
priceQuote: z.enum(["token0PerToken1", "token1PerToken0"]),
|
|
1228
1294
|
startTimeMs: z.number().int().positive().optional(),
|
|
@@ -1371,7 +1437,9 @@ var mcpServerSubmitOutputSchema = z.object({
|
|
|
1371
1437
|
);
|
|
1372
1438
|
var MCP_NON_SUBMIT_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
1373
1439
|
"ctm_uniswap_v4_quote",
|
|
1374
|
-
"ctm_uniswap_v4_create_swap"
|
|
1440
|
+
"ctm_uniswap_v4_create_swap",
|
|
1441
|
+
"ctm_uniswap_v4_limit_order_quote",
|
|
1442
|
+
"ctm_uniswap_v4_fetch_limit_orders"
|
|
1375
1443
|
]);
|
|
1376
1444
|
|
|
1377
1445
|
// src/agent/schemas/protocols.ts
|
|
@@ -1705,7 +1773,9 @@ var mcpGmxIncreaseInputSchema = mcpGmxMultisignInput(
|
|
|
1705
1773
|
collateralToken: z.string().min(1),
|
|
1706
1774
|
collateralAmountHuman: z.string().min(1),
|
|
1707
1775
|
triggerPriceUsdHuman: z.string().optional(),
|
|
1708
|
-
|
|
1776
|
+
takeProfitPriceUsdHuman: z.string().optional().describe("Take-profit trigger (USD) \u2014 GMX native TP order on increase; defaults to full position size"),
|
|
1777
|
+
stopLossPriceUsdHuman: z.string().optional().describe("Stop-loss trigger (USD) \u2014 GMX native SL order on increase; defaults to full position size"),
|
|
1778
|
+
patternFailureUsdHuman: z.string().optional().describe("Audit alias for stop-loss when stopLossPriceUsdHuman is omitted (trade-idea invalidation)"),
|
|
1709
1779
|
slippageBps: agentCoercedOptionalIntSchema(z.number().int().nonnegative()),
|
|
1710
1780
|
executionFeeBufferBps: agentCoercedOptionalIntSchema(z.number().int().nonnegative())
|
|
1711
1781
|
},
|
|
@@ -2077,6 +2147,7 @@ var mcpHyperliquidFetchDelegationsOutputSchema = z.object({
|
|
|
2077
2147
|
})
|
|
2078
2148
|
)
|
|
2079
2149
|
});
|
|
2150
|
+
var hyperliquidTpslExecModeSchema = z.enum(["limit_at_trigger", "market"]);
|
|
2080
2151
|
var mcpHyperliquidLimitOrderInputSchema = mcpHyperliquidMultisignInput(
|
|
2081
2152
|
{
|
|
2082
2153
|
coin: z.string().min(1).describe("coin from fetch_markets (name) or search_markets"),
|
|
@@ -2085,7 +2156,10 @@ var mcpHyperliquidLimitOrderInputSchema = mcpHyperliquidMultisignInput(
|
|
|
2085
2156
|
szHuman: z.string().min(1),
|
|
2086
2157
|
marketKind: z.enum(["perp", "spot"]).optional(),
|
|
2087
2158
|
tif: hyperliquidTifSchema.optional(),
|
|
2088
|
-
dex: z.string().optional()
|
|
2159
|
+
dex: z.string().optional(),
|
|
2160
|
+
takeProfitTriggerPxHuman: z.string().min(1).optional().describe("Take-profit trigger price \u2014 with SL enables L1 normalTpsl bracket (EIP-712, not CoreWriter)."),
|
|
2161
|
+
stopLossTriggerPxHuman: z.string().min(1).optional().describe("Stop-loss trigger price \u2014 with TP enables L1 normalTpsl bracket (EIP-712, not CoreWriter)."),
|
|
2162
|
+
tpslExecMode: hyperliquidTpslExecModeSchema.optional().describe("Trigger execution: limit_at_trigger (default) or market.")
|
|
2089
2163
|
},
|
|
2090
2164
|
preprocessHyperliquidLimitOrderInput
|
|
2091
2165
|
);
|
|
@@ -2613,7 +2687,7 @@ var MCP_PROTOCOL_TOOL_DEFINITIONS = [
|
|
|
2613
2687
|
actionId: "gmx.increase",
|
|
2614
2688
|
protocolId: "gmx",
|
|
2615
2689
|
chainCategory: "evm",
|
|
2616
|
-
description: "Create and submit mpc-auth multiSignRequest for GMX classic increase order (open/add perp). Keeper executes asynchronously after on-chain broadcast.",
|
|
2690
|
+
description: "Create and submit mpc-auth multiSignRequest for GMX classic increase order (open/add perp). Optional takeProfitPriceUsdHuman / stopLossPriceUsdHuman attach native TP/SL decrease orders (full size). Keeper executes asynchronously after on-chain broadcast.",
|
|
2617
2691
|
prerequisites: ["keyGen", "executorAddress", "GMX market symbol", "classic mode only \u2014 no subaccounts"],
|
|
2618
2692
|
handler: { importPath: "protocols/evm/gmx", exportName: "buildEvmMultisignBodyGmxIncreaseBatch" },
|
|
2619
2693
|
inputZod: mcpGmxIncreaseInputSchema
|
|
@@ -2683,7 +2757,7 @@ var MCP_PROTOCOL_TOOL_DEFINITIONS = [
|
|
|
2683
2757
|
actionId: "hyperliquid.limitOrder",
|
|
2684
2758
|
protocolId: "hyperliquid",
|
|
2685
2759
|
chainCategory: "evm",
|
|
2686
|
-
description: "Create and submit mpc-auth multiSignRequest for a Hyperliquid limit/IoC order
|
|
2760
|
+
description: "Create and submit mpc-auth multiSignRequest for a Hyperliquid limit/IoC order. Plain limit uses CoreWriter; when takeProfitTriggerPxHuman and/or stopLossTriggerPxHuman are set, submits one L1 EIP-712 normalTpsl bracket (entry + TP/SL) to /exchange.",
|
|
2687
2761
|
prerequisites: ["keyGen", "executorAddress", "chainId 999 or 998", "coin", "limitPxHuman", "szHuman"],
|
|
2688
2762
|
handler: { importPath: "protocols/evm/hyperliquid", exportName: "buildEvmMultisignBodyHyperliquidLimitOrderBatch" },
|
|
2689
2763
|
inputZod: mcpHyperliquidLimitOrderInputSchema
|
|
@@ -2918,6 +2992,52 @@ var CORE_MCP_TOOL_DEFINITIONS = [
|
|
|
2918
2992
|
handler: { importPath: "protocols/evm/uniswap-v4", exportName: "buildEvmMultisignBodyUniswapV4SkipPermit2Batch" },
|
|
2919
2993
|
inputZod: mcpUniswapV4BuildSwapMultisignInputSchema
|
|
2920
2994
|
}),
|
|
2995
|
+
defineMcpTool({
|
|
2996
|
+
name: "ctm_uniswap_v4_limit_order_quote",
|
|
2997
|
+
actionId: "uniswap-v4.limit-order-quote",
|
|
2998
|
+
protocolId: "uniswap-v4",
|
|
2999
|
+
chainCategory: "evm",
|
|
3000
|
+
description: "Fetch a UniswapX limit order quote (POST /v1/limit_order_quote). Ethereum mainnet (chainId 1) only. Returns quote + permitData for EIP-712 signing. Does NOT create a sign request \u2014 call ctm_uniswap_v4_build_limit_order_multisign next.",
|
|
3001
|
+
prerequisites: [
|
|
3002
|
+
"UNISWAP_API_KEY in node Variables",
|
|
3003
|
+
"chainId must be 1",
|
|
3004
|
+
"keyGenId or swapper",
|
|
3005
|
+
"limitPrice, orderDeadline, amount, tokenIn, tokenOut"
|
|
3006
|
+
],
|
|
3007
|
+
followUp: ["ctm_uniswap_v4_build_limit_order_multisign", "ctm_uniswap_v4_fetch_limit_orders"],
|
|
3008
|
+
handler: { importPath: "protocols/evm/uniswap-v4", exportName: "uniswapLimitOrderQuote" },
|
|
3009
|
+
inputZod: mcpUniswapV4LimitOrderQuoteInputSchema,
|
|
3010
|
+
outputZod: mcpUniswapV4LimitOrderQuoteOutputSchema
|
|
3011
|
+
}),
|
|
3012
|
+
defineMultisignSubmitMcpTool({
|
|
3013
|
+
name: "ctm_uniswap_v4_build_limit_order_multisign",
|
|
3014
|
+
actionId: "uniswap-v4.limit-order",
|
|
3015
|
+
protocolId: "uniswap-v4",
|
|
3016
|
+
chainCategory: "evm",
|
|
3017
|
+
description: "Create and submit mpc-auth multiSignRequest for a UniswapX limit order (EIP-712 Permit2 witness). After sign + execute, delivery POSTs to Trade API /v1/order. Mainnet only.",
|
|
3018
|
+
prerequisites: [
|
|
3019
|
+
"ctm_uniswap_v4_limit_order_quote output (fullLimitQuote)",
|
|
3020
|
+
"keyGenId + chainId 1 + purposeText"
|
|
3021
|
+
],
|
|
3022
|
+
followUp: ["ctm_uniswap_v4_fetch_limit_orders"],
|
|
3023
|
+
handler: {
|
|
3024
|
+
importPath: "protocols/evm/uniswap-v4",
|
|
3025
|
+
exportName: "buildEvmMultisignBodyUniswapV4LimitOrderBatchFromMcp"
|
|
3026
|
+
},
|
|
3027
|
+
inputZod: mcpUniswapV4BuildLimitOrderMultisignInputSchema
|
|
3028
|
+
}),
|
|
3029
|
+
defineMcpTool({
|
|
3030
|
+
name: "ctm_uniswap_v4_fetch_limit_orders",
|
|
3031
|
+
actionId: "uniswap-v4.fetch-limit-orders",
|
|
3032
|
+
protocolId: "uniswap-v4",
|
|
3033
|
+
chainCategory: "evm",
|
|
3034
|
+
description: "List open UniswapX limit orders for a swapper (GET /v2/limit-orders). Ethereum mainnet only. Optional UNISWAP_API_KEY.",
|
|
3035
|
+
prerequisites: ["swapper or keyGenId", "chainId 1"],
|
|
3036
|
+
followUp: [],
|
|
3037
|
+
handler: { importPath: "protocols/evm/uniswap-v4", exportName: "uniswapFetchLimitOrdersMcp" },
|
|
3038
|
+
inputZod: mcpUniswapV4FetchLimitOrdersInputSchema,
|
|
3039
|
+
outputZod: mcpUniswapV4FetchLimitOrdersOutputSchema
|
|
3040
|
+
}),
|
|
2921
3041
|
defineMcpTool({
|
|
2922
3042
|
name: "ctm_uniswap_v4_list_lp_pools",
|
|
2923
3043
|
actionId: "uniswap-v4.lp-list-pools",
|
|
@@ -2935,10 +3055,10 @@ var CORE_MCP_TOOL_DEFINITIONS = [
|
|
|
2935
3055
|
actionId: "uniswap-v4.fetch-ohlcv",
|
|
2936
3056
|
protocolId: "uniswap-v4",
|
|
2937
3057
|
chainCategory: "evm",
|
|
2938
|
-
description: "Pool OHLCV
|
|
3058
|
+
description: "Pool OHLCV: The Graph subgraph on pinned chains (1h/1d native, aggregated multiples, swap bucketing for sub-hour). Robinhood Chain (4663) uses Bitquery Uniswap v4 / Stock Token candles \u2014 set BITQUERY_API_KEY. Optional THE_GRAPH_API_KEY for subgraph gateway rate limits.",
|
|
2939
3059
|
prerequisites: [
|
|
2940
|
-
"chainId with
|
|
2941
|
-
"poolPreset or poolReference or existingPool",
|
|
3060
|
+
"chainId with OHLCV support (subgraph or Robinhood/Bitquery)",
|
|
3061
|
+
"poolPreset or poolReference or existingPool (subgraph); currencyAddress or currencySymbol or existingPool (Robinhood)",
|
|
2942
3062
|
"interval + lookbackDays or lookbackHours or startTimeMs"
|
|
2943
3063
|
],
|
|
2944
3064
|
followUp: ["ctm_uniswap_v4_list_lp_pools", "continuum__prepare_chart_from_rows"],
|
|
@@ -4099,7 +4219,7 @@ var hyperliquidProtocolModule = {
|
|
|
4099
4219
|
id: "hyperliquid.limitOrder",
|
|
4100
4220
|
protocolId: HYPERLIQUID_PROTOCOL_ID,
|
|
4101
4221
|
chainCategory: "evm",
|
|
4102
|
-
description: "Place a Hyperliquid limit/IoC order via
|
|
4222
|
+
description: "Place a Hyperliquid limit/IoC order via CoreWriter, or L1 normalTpsl bracket when TP/SL triggers are set",
|
|
4103
4223
|
commonParams: ["keyGen", "purposeText", "useCustomGas"],
|
|
4104
4224
|
params: {
|
|
4105
4225
|
coin: { type: "string", required: true, description: "Market coin e.g. BTC" },
|
|
@@ -4108,7 +4228,10 @@ var hyperliquidProtocolModule = {
|
|
|
4108
4228
|
szHuman: { type: "string", required: true, description: "Order size in coin units" },
|
|
4109
4229
|
marketKind: { type: "string", required: false, description: "perp (default) or spot" },
|
|
4110
4230
|
tif: { type: "string", required: false, description: "gtc, ioc, or alo" },
|
|
4111
|
-
dex: { type: "string", required: false, description: "HIP-3 dex name when applicable" }
|
|
4231
|
+
dex: { type: "string", required: false, description: "HIP-3 dex name when applicable" },
|
|
4232
|
+
takeProfitTriggerPxHuman: { type: "string", required: false, description: "TP trigger \u2014 enables L1 bracket with SL" },
|
|
4233
|
+
stopLossTriggerPxHuman: { type: "string", required: false, description: "SL trigger \u2014 enables L1 bracket with TP" },
|
|
4234
|
+
tpslExecMode: { type: "string", required: false, description: "limit_at_trigger (default) or market" }
|
|
4112
4235
|
}
|
|
4113
4236
|
},
|
|
4114
4237
|
{
|
|
@@ -4743,7 +4866,8 @@ var PROTOCOL_SUPPORT_ADVISORS = {
|
|
|
4743
4866
|
143,
|
|
4744
4867
|
59144,
|
|
4745
4868
|
4217,
|
|
4746
|
-
196
|
|
4869
|
+
196,
|
|
4870
|
+
4663
|
|
4747
4871
|
]) {
|
|
4748
4872
|
if (isUniswapV4ChainSupported(id)) ids.push(id);
|
|
4749
4873
|
}
|
|
@@ -4972,6 +5096,6 @@ function getAgentCatalog() {
|
|
|
4972
5096
|
};
|
|
4973
5097
|
}
|
|
4974
5098
|
|
|
4975
|
-
export { EVM_COMMON_PARAM_DOCS, MANAGEMENT_SIG_DOC, MCP_NON_SUBMIT_TOOL_NAMES, MCP_TOOL_DEFINITIONS, MCP_TOOL_INPUT_SCHEMAS, MCP_TOOL_OUTPUT_SCHEMAS, MULTISIGN_OUTPUT_DOC, MULTISIGN_SUBMIT_OUTPUT_DOC, PROTOCOL_SUPPORT_ADVISORS, chainDetailSchema, evmAddressSchema, evmMultisignCommonInputSchema, getActionsByChainCategory, getAgentCatalog, getAgentCatalogForMcp, getMcpToolByName, getMcpToolDefinitions, getMcpToolInputSchema, getMcpToolOutputSchema, getProtocolDiscoverySummary, getProtocolModules, getProtocolSkill, getProtocolSupportAdvisor, getToolsForProtocol, jsonObjectSchema, keyGenSchema, listProtocolSupportAdvisorIds, listProtocolsWithSkills, mcpAaveV4BorrowInputSchema, mcpAaveV4DepositInputSchema, mcpAaveV4RepayInputSchema, mcpAaveV4WithdrawInputSchema, mcpCurveDaoBuildSwapMultisignInputSchema, mcpCurveDaoQuoteInputSchema, mcpCurveDaoQuoteOutputSchema, mcpEthenaClaimInputSchema, mcpEthenaCooldownInputSchema, mcpEthenaRedeemInputSchema, mcpEthenaStakeInputSchema, mcpEulerV2BorrowRepayInputSchema, mcpEulerV2CollateralDepositInputSchema, mcpEulerV2CollateralWithdrawInputSchema, mcpEulerV2FetchLendVaultsInputSchema, mcpEulerV2FetchLendVaultsOutputSchema, mcpEulerV2IsolatedBorrowInputSchema, mcpEulerV2IsolatedLendInputSchema, mcpEulerV2VaultWithdrawInputSchema, mcpGmxCancelInputSchema, mcpGmxDecreaseInputSchema, mcpGmxFetchGmApyInputSchema, mcpGmxFetchGmApyOutputSchema, mcpGmxFetchGmMarketsInputSchema, mcpGmxFetchGmMarketsOutputSchema, mcpGmxFetchMarketPricesInputSchema, mcpGmxFetchMarketPricesOutputSchema, mcpGmxFetchMarketsInputSchema, mcpGmxFetchMarketsOutputSchema, mcpGmxFetchOhlcvInputSchema, mcpGmxFetchOhlcvOutputSchema, mcpGmxFetchOrdersInputSchema, mcpGmxFetchOrdersOutputSchema, mcpGmxFetchPositionsInputSchema, mcpGmxFetchPositionsOutputSchema, mcpGmxFetchStakingPowerInputSchema, mcpGmxFetchStakingPowerOutputSchema, mcpGmxGmDepositInputSchema, mcpGmxGmWithdrawInputSchema, mcpGmxIncreaseInputSchema, mcpServerSubmitOutputSchema as mcpGmxMultisignOutputSchema, mcpGmxStakeGmxInputSchema, mcpGmxUnstakeGmxInputSchema, mcpHyperliquidBridgeDepositInputSchema, mcpHyperliquidBridgeWithdrawInputSchema, mcpHyperliquidCancelInputSchema, mcpHyperliquidCloseInputSchema, mcpHyperliquidDelegateInputSchema, mcpHyperliquidFetchDelegationsInputSchema, mcpHyperliquidFetchDelegationsOutputSchema, mcpHyperliquidFetchMarketSnapshotInputSchema, mcpHyperliquidFetchMarketSnapshotOutputSchema, mcpHyperliquidFetchMarketsInputSchema, mcpHyperliquidFetchMarketsOutputSchema, mcpHyperliquidFetchOhlcvInputSchema, mcpHyperliquidFetchOhlcvOutputSchema, mcpHyperliquidFetchOpenContextInputSchema, mcpHyperliquidFetchOpenContextOutputSchema, mcpHyperliquidFetchOpenOrdersInputSchema, mcpHyperliquidFetchOpenOrdersOutputSchema, mcpHyperliquidFetchPositionsInputSchema, mcpHyperliquidFetchPositionsOutputSchema, mcpHyperliquidFetchStakingSummaryInputSchema, mcpHyperliquidFetchStakingSummaryOutputSchema, mcpHyperliquidFetchUsdClassBalancesInputSchema, mcpHyperliquidFetchUsdClassBalancesOutputSchema, mcpHyperliquidFetchUserVaultEquitiesInputSchema, mcpHyperliquidFetchUserVaultEquitiesOutputSchema, mcpHyperliquidFetchVaultsInputSchema, mcpHyperliquidFetchVaultsOutputSchema, mcpHyperliquidLimitOrderInputSchema, mcpHyperliquidSearchMarketsInputSchema, mcpHyperliquidSearchMarketsOutputSchema, mcpHyperliquidStakeInputSchema, mcpHyperliquidUndelegateInputSchema, mcpHyperliquidUnstakeInputSchema, mcpHyperliquidUpdateLeverageInputSchema, mcpHyperliquidUsdTransferInputSchema, mcpHyperliquidVaultDepositInputSchema, mcpHyperliquidVaultWithdrawInputSchema, mcpLidoClaimWithdrawalInputSchema, mcpLidoRequestWithdrawalsInputSchema, mcpLidoSubmitInputSchema, mcpLidoUnwrapWstEthInputSchema, mcpLidoWrapStEthInputSchema, mcpMapleDepositInputSchema, mcpMapleRequestRedeemInputSchema, mcpMorphoBlueBorrowInputSchema, mcpMorphoBlueCollateralDepositInputSchema, mcpMorphoBlueCollateralWithdrawInputSchema, mcpMorphoBlueRepayInputSchema, mcpMorphoFetchBlueMarketsInputSchema, mcpMorphoFetchBlueMarketsOutputSchema, mcpMorphoFetchEarnVaultsInputSchema, mcpMorphoFetchEarnVaultsOutputSchema, mcpMorphoMerklClaimInputSchema, mcpMorphoVaultDepositInputSchema, mcpMorphoVaultWithdrawInputSchema, mcpMultisignInput, multisignOutputSchema as mcpMultisignOutputSchema, mcpServerSubmitOutputSchema as mcpMultisignSubmitOutputSchema, mcpServerCommonInputSchema, mcpServerMultisignInput, mcpServerSubmitOutputSchema, mcpSkyLockstakeCloseInputSchema, mcpSkyLockstakeDrawInputSchema, mcpSkyLockstakeGetRewardInputSchema, mcpSkyLockstakeStakeInputSchema, mcpSkyLockstakeWipeInputSchema, mcpSkySusdsDepositInputSchema, mcpSkySusdsRedeemInputSchema, mcpUniswapV4BuildCollectFeesMultisignInputSchema, mcpUniswapV4BuildDecreaseLiquidityMultisignInputSchema, mcpUniswapV4BuildIncreaseLiquidityMultisignInputSchema, mcpUniswapV4BuildMintLiquidityMultisignInputSchema, mcpUniswapV4BuildSwapMultisignInputSchema, mcpUniswapV4CreateSwapInputSchema, mcpUniswapV4CreateSwapOutputSchema, mcpUniswapV4FetchOhlcvInputSchema, mcpUniswapV4FetchOhlcvOutputSchema, mcpUniswapV4LpClaimInputSchema, mcpUniswapV4LpClaimOutputSchema, mcpUniswapV4LpCreatePositionInputSchema, mcpUniswapV4LpCreatePositionOutputSchema, mcpUniswapV4LpDecreaseInputSchema, mcpUniswapV4LpDecreaseOutputSchema, mcpUniswapV4LpIncreaseInputSchema, mcpUniswapV4LpIncreaseOutputSchema, mcpUniswapV4LpListPoolsInputSchema, mcpUniswapV4LpListPoolsOutputSchema, mcpUniswapV4LpListPositionsInputSchema, mcpUniswapV4LpListPositionsOutputSchema, mcpUniswapV4QuoteInputSchema, mcpUniswapV4QuoteOutputSchema, mcpUniswapV4RegisterPositionFromMintTxInputSchema, mcpUniswapV4RegisterPositionFromMintTxOutputSchema, mcpUniswapV4RegisterPositionNftInputSchema, mcpUniswapV4RegisterPositionNftOutputSchema, multisignOutputSchema, parseAgentBoolean, parseAgentEvmChainId, parseMcpToolInput, parseMcpToolOutput, parseMultisignBuilderOutput, uniswapQuoteTradeTypeSchema, zodSchemaToMcpJsonSchema };
|
|
5099
|
+
export { EVM_COMMON_PARAM_DOCS, MANAGEMENT_SIG_DOC, MCP_NON_SUBMIT_TOOL_NAMES, MCP_TOOL_DEFINITIONS, MCP_TOOL_INPUT_SCHEMAS, MCP_TOOL_OUTPUT_SCHEMAS, MULTISIGN_OUTPUT_DOC, MULTISIGN_SUBMIT_OUTPUT_DOC, PROTOCOL_SUPPORT_ADVISORS, chainDetailSchema, evmAddressSchema, evmMultisignCommonInputSchema, getActionsByChainCategory, getAgentCatalog, getAgentCatalogForMcp, getMcpToolByName, getMcpToolDefinitions, getMcpToolInputSchema, getMcpToolOutputSchema, getProtocolDiscoverySummary, getProtocolModules, getProtocolSkill, getProtocolSupportAdvisor, getToolsForProtocol, jsonObjectSchema, keyGenSchema, listProtocolSupportAdvisorIds, listProtocolsWithSkills, mcpAaveV4BorrowInputSchema, mcpAaveV4DepositInputSchema, mcpAaveV4RepayInputSchema, mcpAaveV4WithdrawInputSchema, mcpCurveDaoBuildSwapMultisignInputSchema, mcpCurveDaoQuoteInputSchema, mcpCurveDaoQuoteOutputSchema, mcpEthenaClaimInputSchema, mcpEthenaCooldownInputSchema, mcpEthenaRedeemInputSchema, mcpEthenaStakeInputSchema, mcpEulerV2BorrowRepayInputSchema, mcpEulerV2CollateralDepositInputSchema, mcpEulerV2CollateralWithdrawInputSchema, mcpEulerV2FetchLendVaultsInputSchema, mcpEulerV2FetchLendVaultsOutputSchema, mcpEulerV2IsolatedBorrowInputSchema, mcpEulerV2IsolatedLendInputSchema, mcpEulerV2VaultWithdrawInputSchema, mcpGmxCancelInputSchema, mcpGmxDecreaseInputSchema, mcpGmxFetchGmApyInputSchema, mcpGmxFetchGmApyOutputSchema, mcpGmxFetchGmMarketsInputSchema, mcpGmxFetchGmMarketsOutputSchema, mcpGmxFetchMarketPricesInputSchema, mcpGmxFetchMarketPricesOutputSchema, mcpGmxFetchMarketsInputSchema, mcpGmxFetchMarketsOutputSchema, mcpGmxFetchOhlcvInputSchema, mcpGmxFetchOhlcvOutputSchema, mcpGmxFetchOrdersInputSchema, mcpGmxFetchOrdersOutputSchema, mcpGmxFetchPositionsInputSchema, mcpGmxFetchPositionsOutputSchema, mcpGmxFetchStakingPowerInputSchema, mcpGmxFetchStakingPowerOutputSchema, mcpGmxGmDepositInputSchema, mcpGmxGmWithdrawInputSchema, mcpGmxIncreaseInputSchema, mcpServerSubmitOutputSchema as mcpGmxMultisignOutputSchema, mcpGmxStakeGmxInputSchema, mcpGmxUnstakeGmxInputSchema, mcpHyperliquidBridgeDepositInputSchema, mcpHyperliquidBridgeWithdrawInputSchema, mcpHyperliquidCancelInputSchema, mcpHyperliquidCloseInputSchema, mcpHyperliquidDelegateInputSchema, mcpHyperliquidFetchDelegationsInputSchema, mcpHyperliquidFetchDelegationsOutputSchema, mcpHyperliquidFetchMarketSnapshotInputSchema, mcpHyperliquidFetchMarketSnapshotOutputSchema, mcpHyperliquidFetchMarketsInputSchema, mcpHyperliquidFetchMarketsOutputSchema, mcpHyperliquidFetchOhlcvInputSchema, mcpHyperliquidFetchOhlcvOutputSchema, mcpHyperliquidFetchOpenContextInputSchema, mcpHyperliquidFetchOpenContextOutputSchema, mcpHyperliquidFetchOpenOrdersInputSchema, mcpHyperliquidFetchOpenOrdersOutputSchema, mcpHyperliquidFetchPositionsInputSchema, mcpHyperliquidFetchPositionsOutputSchema, mcpHyperliquidFetchStakingSummaryInputSchema, mcpHyperliquidFetchStakingSummaryOutputSchema, mcpHyperliquidFetchUsdClassBalancesInputSchema, mcpHyperliquidFetchUsdClassBalancesOutputSchema, mcpHyperliquidFetchUserVaultEquitiesInputSchema, mcpHyperliquidFetchUserVaultEquitiesOutputSchema, mcpHyperliquidFetchVaultsInputSchema, mcpHyperliquidFetchVaultsOutputSchema, mcpHyperliquidLimitOrderInputSchema, mcpHyperliquidSearchMarketsInputSchema, mcpHyperliquidSearchMarketsOutputSchema, mcpHyperliquidStakeInputSchema, mcpHyperliquidUndelegateInputSchema, mcpHyperliquidUnstakeInputSchema, mcpHyperliquidUpdateLeverageInputSchema, mcpHyperliquidUsdTransferInputSchema, mcpHyperliquidVaultDepositInputSchema, mcpHyperliquidVaultWithdrawInputSchema, mcpLidoClaimWithdrawalInputSchema, mcpLidoRequestWithdrawalsInputSchema, mcpLidoSubmitInputSchema, mcpLidoUnwrapWstEthInputSchema, mcpLidoWrapStEthInputSchema, mcpMapleDepositInputSchema, mcpMapleRequestRedeemInputSchema, mcpMorphoBlueBorrowInputSchema, mcpMorphoBlueCollateralDepositInputSchema, mcpMorphoBlueCollateralWithdrawInputSchema, mcpMorphoBlueRepayInputSchema, mcpMorphoFetchBlueMarketsInputSchema, mcpMorphoFetchBlueMarketsOutputSchema, mcpMorphoFetchEarnVaultsInputSchema, mcpMorphoFetchEarnVaultsOutputSchema, mcpMorphoMerklClaimInputSchema, mcpMorphoVaultDepositInputSchema, mcpMorphoVaultWithdrawInputSchema, mcpMultisignInput, multisignOutputSchema as mcpMultisignOutputSchema, mcpServerSubmitOutputSchema as mcpMultisignSubmitOutputSchema, mcpServerCommonInputSchema, mcpServerMultisignInput, mcpServerSubmitOutputSchema, mcpSkyLockstakeCloseInputSchema, mcpSkyLockstakeDrawInputSchema, mcpSkyLockstakeGetRewardInputSchema, mcpSkyLockstakeStakeInputSchema, mcpSkyLockstakeWipeInputSchema, mcpSkySusdsDepositInputSchema, mcpSkySusdsRedeemInputSchema, mcpUniswapV4BuildCollectFeesMultisignInputSchema, mcpUniswapV4BuildDecreaseLiquidityMultisignInputSchema, mcpUniswapV4BuildIncreaseLiquidityMultisignInputSchema, mcpUniswapV4BuildLimitOrderMultisignInputSchema, mcpUniswapV4BuildMintLiquidityMultisignInputSchema, mcpUniswapV4BuildSwapMultisignInputSchema, mcpUniswapV4CreateSwapInputSchema, mcpUniswapV4CreateSwapOutputSchema, mcpUniswapV4FetchLimitOrdersInputSchema, mcpUniswapV4FetchLimitOrdersOutputSchema, mcpUniswapV4FetchOhlcvInputSchema, mcpUniswapV4FetchOhlcvOutputSchema, mcpUniswapV4LimitOrderQuoteInputSchema, mcpUniswapV4LimitOrderQuoteOutputSchema, mcpUniswapV4LpClaimInputSchema, mcpUniswapV4LpClaimOutputSchema, mcpUniswapV4LpCreatePositionInputSchema, mcpUniswapV4LpCreatePositionOutputSchema, mcpUniswapV4LpDecreaseInputSchema, mcpUniswapV4LpDecreaseOutputSchema, mcpUniswapV4LpIncreaseInputSchema, mcpUniswapV4LpIncreaseOutputSchema, mcpUniswapV4LpListPoolsInputSchema, mcpUniswapV4LpListPoolsOutputSchema, mcpUniswapV4LpListPositionsInputSchema, mcpUniswapV4LpListPositionsOutputSchema, mcpUniswapV4QuoteInputSchema, mcpUniswapV4QuoteOutputSchema, mcpUniswapV4RegisterPositionFromMintTxInputSchema, mcpUniswapV4RegisterPositionFromMintTxOutputSchema, mcpUniswapV4RegisterPositionNftInputSchema, mcpUniswapV4RegisterPositionNftOutputSchema, multisignOutputSchema, parseAgentBoolean, parseAgentEvmChainId, parseMcpToolInput, parseMcpToolOutput, parseMultisignBuilderOutput, uniswapQuoteTradeTypeSchema, zodSchemaToMcpJsonSchema };
|
|
4976
5100
|
//# sourceMappingURL=catalog.js.map
|
|
4977
5101
|
//# sourceMappingURL=catalog.js.map
|