@continuumdao/ctm-mpc-defi 0.2.20 → 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 +256 -46
- package/dist/agent/catalog.cjs.map +1 -1
- package/dist/agent/catalog.d.ts +606 -154
- package/dist/agent/catalog.js +250 -47
- 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 +83 -0
- package/dist/chains/evm/index.cjs +5 -1
- package/dist/chains/evm/index.cjs.map +1 -1
- package/dist/chains/evm/index.d.ts +4 -4
- package/dist/chains/evm/index.js +5 -1
- package/dist/chains/evm/index.js.map +1 -1
- package/dist/chains/near/index.d.ts +1 -1
- package/dist/chains/solana/index.d.ts +1 -1
- package/dist/core/index.cjs +25 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +11 -36
- package/dist/core/index.js +23 -1
- package/dist/core/index.js.map +1 -1
- package/dist/eip712Multisign-xhXpUYp3.d.ts +36 -0
- package/dist/{envelope-CpBUh9eP.d.ts → envelope-C_bfuKab.d.ts} +3 -1
- package/dist/index.cjs +371 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.js +369 -14
- package/dist/index.js.map +1 -1
- package/dist/protocols/evm/aave-v4/index.cjs +5 -1
- package/dist/protocols/evm/aave-v4/index.cjs.map +1 -1
- package/dist/protocols/evm/aave-v4/index.d.ts +1 -1
- package/dist/protocols/evm/aave-v4/index.js +5 -1
- package/dist/protocols/evm/aave-v4/index.js.map +1 -1
- package/dist/protocols/evm/circle-cctp/index.cjs +5 -1
- package/dist/protocols/evm/circle-cctp/index.cjs.map +1 -1
- package/dist/protocols/evm/circle-cctp/index.d.ts +2 -2
- package/dist/protocols/evm/circle-cctp/index.js +5 -1
- package/dist/protocols/evm/circle-cctp/index.js.map +1 -1
- package/dist/protocols/evm/curve-dao/index.cjs +5 -1
- package/dist/protocols/evm/curve-dao/index.cjs.map +1 -1
- package/dist/protocols/evm/curve-dao/index.d.ts +2 -2
- package/dist/protocols/evm/curve-dao/index.js +5 -1
- package/dist/protocols/evm/curve-dao/index.js.map +1 -1
- package/dist/protocols/evm/ethena/index.cjs +5 -1
- package/dist/protocols/evm/ethena/index.cjs.map +1 -1
- package/dist/protocols/evm/ethena/index.d.ts +1 -1
- package/dist/protocols/evm/ethena/index.js +5 -1
- package/dist/protocols/evm/ethena/index.js.map +1 -1
- package/dist/protocols/evm/euler-v2/index.cjs +5 -1
- package/dist/protocols/evm/euler-v2/index.cjs.map +1 -1
- package/dist/protocols/evm/euler-v2/index.d.ts +1 -1
- package/dist/protocols/evm/euler-v2/index.js +5 -1
- package/dist/protocols/evm/euler-v2/index.js.map +1 -1
- package/dist/protocols/evm/gmx/index.cjs +44 -1
- package/dist/protocols/evm/gmx/index.cjs.map +1 -1
- package/dist/protocols/evm/gmx/index.d.ts +23 -3
- package/dist/protocols/evm/gmx/index.js +43 -2
- package/dist/protocols/evm/gmx/index.js.map +1 -1
- package/dist/protocols/evm/hyperliquid/index.cjs +483 -208
- package/dist/protocols/evm/hyperliquid/index.cjs.map +1 -1
- package/dist/protocols/evm/hyperliquid/index.d.ts +168 -53
- package/dist/protocols/evm/hyperliquid/index.js +472 -210
- package/dist/protocols/evm/hyperliquid/index.js.map +1 -1
- package/dist/protocols/evm/lido/index.cjs +5 -1
- package/dist/protocols/evm/lido/index.cjs.map +1 -1
- package/dist/protocols/evm/lido/index.d.ts +1 -1
- package/dist/protocols/evm/lido/index.js +5 -1
- package/dist/protocols/evm/lido/index.js.map +1 -1
- package/dist/protocols/evm/maple/index.cjs +5 -1
- package/dist/protocols/evm/maple/index.cjs.map +1 -1
- package/dist/protocols/evm/maple/index.d.ts +1 -1
- package/dist/protocols/evm/maple/index.js +5 -1
- package/dist/protocols/evm/maple/index.js.map +1 -1
- package/dist/protocols/evm/morpho/index.cjs +5 -1
- package/dist/protocols/evm/morpho/index.cjs.map +1 -1
- package/dist/protocols/evm/morpho/index.d.ts +1 -1
- package/dist/protocols/evm/morpho/index.js +5 -1
- package/dist/protocols/evm/morpho/index.js.map +1 -1
- package/dist/protocols/evm/permit2/index.cjs +4 -0
- package/dist/protocols/evm/permit2/index.cjs.map +1 -1
- package/dist/protocols/evm/permit2/index.d.ts +1 -1
- package/dist/protocols/evm/permit2/index.js +4 -0
- package/dist/protocols/evm/permit2/index.js.map +1 -1
- package/dist/protocols/evm/sky/index.cjs +5 -1
- package/dist/protocols/evm/sky/index.cjs.map +1 -1
- package/dist/protocols/evm/sky/index.d.ts +1 -1
- package/dist/protocols/evm/sky/index.js +5 -1
- package/dist/protocols/evm/sky/index.js.map +1 -1
- package/dist/protocols/evm/uniswap-v4/index.cjs +1415 -13
- package/dist/protocols/evm/uniswap-v4/index.cjs.map +1 -1
- package/dist/protocols/evm/uniswap-v4/index.d.ts +353 -4
- package/dist/protocols/evm/uniswap-v4/index.js +1357 -15
- package/dist/protocols/evm/uniswap-v4/index.js.map +1 -1
- package/dist/{registry-Bv5o37_w.d.ts → registry-DxDSPQ-p.d.ts} +1 -1
- package/dist/{types-BfjWdw1j.d.ts → types-PZrvtjv8.d.ts} +2 -0
- package/dist/{types-DUeNJLr9.d.ts → types-RZWOTm8c.d.ts} +1 -1
- package/package.json +2 -2
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;
|
|
@@ -86,6 +88,41 @@ function isUniswapV4ChainSupported(chainId) {
|
|
|
86
88
|
return typeof a === "string" && a.startsWith("0x");
|
|
87
89
|
}
|
|
88
90
|
|
|
91
|
+
// src/core/defiProxy.ts
|
|
92
|
+
var aaveGraphqlProxyUrl;
|
|
93
|
+
var morphoGraphqlProxyUrl;
|
|
94
|
+
function getAaveGraphqlProxyUrl() {
|
|
95
|
+
return aaveGraphqlProxyUrl;
|
|
96
|
+
}
|
|
97
|
+
function getMorphoGraphqlProxyUrl() {
|
|
98
|
+
return morphoGraphqlProxyUrl;
|
|
99
|
+
}
|
|
100
|
+
async function postJsonViaOptionalProxy(args) {
|
|
101
|
+
const proxy = args.proxyUrl?.trim();
|
|
102
|
+
if (proxy) {
|
|
103
|
+
const r2 = await fetch(proxy, {
|
|
104
|
+
method: "POST",
|
|
105
|
+
headers: { "content-type": "application/json" },
|
|
106
|
+
body: JSON.stringify(args.proxyEnvelope ?? args.body)
|
|
107
|
+
});
|
|
108
|
+
if (!r2.ok) {
|
|
109
|
+
const t = await r2.text().catch(() => "");
|
|
110
|
+
throw new Error(t ? `Proxy HTTP ${r2.status}: ${t.slice(0, 200)}` : `Proxy HTTP ${r2.status}`);
|
|
111
|
+
}
|
|
112
|
+
return await r2.json();
|
|
113
|
+
}
|
|
114
|
+
const r = await fetch(args.directUrl, {
|
|
115
|
+
method: "POST",
|
|
116
|
+
headers: { "content-type": "application/json" },
|
|
117
|
+
body: JSON.stringify(args.body)
|
|
118
|
+
});
|
|
119
|
+
if (!r.ok) {
|
|
120
|
+
const t = await r.text().catch(() => "");
|
|
121
|
+
throw new Error(t ? `HTTP ${r.status}: ${t.slice(0, 200)}` : `HTTP ${r.status}`);
|
|
122
|
+
}
|
|
123
|
+
return await r.json();
|
|
124
|
+
}
|
|
125
|
+
|
|
89
126
|
// src/protocols/evm/uniswap-v4/index.ts
|
|
90
127
|
var UNISWAP_V4_PROTOCOL_ID = "uniswap-v4";
|
|
91
128
|
var uniswapV4ProtocolModule = {
|
|
@@ -132,6 +169,17 @@ var uniswapV4ProtocolModule = {
|
|
|
132
169
|
type: { type: "EXACT_INPUT | EXACT_OUTPUT", required: true, description: "Trade type" }
|
|
133
170
|
}
|
|
134
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
|
+
},
|
|
135
183
|
{
|
|
136
184
|
id: "uniswap-v4.mint-liquidity",
|
|
137
185
|
protocolId: UNISWAP_V4_PROTOCOL_ID,
|
|
@@ -601,7 +649,10 @@ var evmMultisignCommonInputSchema = z.object({
|
|
|
601
649
|
rpcUrl: z.string().min(1).optional().describe("Server-filled from chain registry when keyGenId is set. Agents must not pass rpcUrl."),
|
|
602
650
|
executorAddress: evmAddressSchema.optional().describe("Server-filled MPC wallet from keyGenId. Agents must not pass executorAddress."),
|
|
603
651
|
chainDetail: chainDetailSchema.optional().describe("Server-filled gas row from chain registry when keyGenId is set."),
|
|
604
|
-
customGasChainDetails: z.record(z.unknown()).optional().describe("Snapshot written to extraJSON.customGasChainDetails when useCustomGas is true.")
|
|
652
|
+
customGasChainDetails: z.record(z.unknown()).optional().describe("Snapshot written to extraJSON.customGasChainDetails when useCustomGas is true."),
|
|
653
|
+
expiryDate: z.number().int().positive().optional().describe(
|
|
654
|
+
"Optional Unix seconds (UTC) when the MPC sign request expires. Uniswap V4, GMX, Hyperliquid, and Curve DAO default to 30 minutes when omitted; other protocols use the node default (7 days)."
|
|
655
|
+
)
|
|
605
656
|
});
|
|
606
657
|
function withMultisignKeySourceRefine(schema) {
|
|
607
658
|
return schema.refine(
|
|
@@ -717,10 +768,15 @@ function preprocessHyperliquidLimitOrderInput(raw) {
|
|
|
717
768
|
if (!preprocessObject(o)) return raw;
|
|
718
769
|
aliasField(o, "limitPxHuman", "limitPxHuman", "limitPx", "markPx");
|
|
719
770
|
aliasField(o, "szHuman", "szHuman", "sz", "size");
|
|
771
|
+
aliasField(o, "takeProfitTriggerPxHuman", "takeProfitTriggerPxHuman", "takeProfitPxHuman", "tpTriggerPxHuman", "targetPxHuman");
|
|
772
|
+
aliasField(o, "stopLossTriggerPxHuman", "stopLossTriggerPxHuman", "stopLossPxHuman", "slTriggerPxHuman", "invalidationPxHuman");
|
|
720
773
|
derivePurposeIfMissing(o, (x) => {
|
|
721
774
|
const coin = String(x.coin ?? "").trim();
|
|
722
775
|
const side = x.isBuy === true || x.isBuy === "true" ? "buy" : "sell";
|
|
723
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}`;
|
|
724
780
|
if (coin && sz) return `HL limit ${side} ${coin} ${sz}`;
|
|
725
781
|
return void 0;
|
|
726
782
|
});
|
|
@@ -818,6 +874,13 @@ function preprocessUniswapBuildSwapInput(raw) {
|
|
|
818
874
|
derivePurposeIfMissing(o, () => "Uniswap V4 swap");
|
|
819
875
|
return o;
|
|
820
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
|
+
}
|
|
821
884
|
function preprocessUniswapBuildLpInput(raw) {
|
|
822
885
|
const o = preprocessUniswapLpNftInput(raw);
|
|
823
886
|
if (!preprocessObject(o)) return raw;
|
|
@@ -952,6 +1015,45 @@ var mcpUniswapV4BuildSwapMultisignInputSchema = withMultisignKeySourceRefine(
|
|
|
952
1015
|
})
|
|
953
1016
|
)
|
|
954
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;
|
|
955
1057
|
var lpExistingPoolSchema = z.object({
|
|
956
1058
|
token0Address: evmAddressSchema,
|
|
957
1059
|
token1Address: evmAddressSchema,
|
|
@@ -1134,6 +1236,68 @@ var mcpUniswapV4BuildCollectFeesMultisignInputSchema = withMultisignKeySourceRef
|
|
|
1134
1236
|
})
|
|
1135
1237
|
)
|
|
1136
1238
|
);
|
|
1239
|
+
var uniswapV4OhlcvIntervalSchema = z.enum([
|
|
1240
|
+
"1m",
|
|
1241
|
+
"5m",
|
|
1242
|
+
"15m",
|
|
1243
|
+
"30m",
|
|
1244
|
+
"1h",
|
|
1245
|
+
"2h",
|
|
1246
|
+
"4h",
|
|
1247
|
+
"6h",
|
|
1248
|
+
"8h",
|
|
1249
|
+
"12h",
|
|
1250
|
+
"1d",
|
|
1251
|
+
"2d",
|
|
1252
|
+
"3d",
|
|
1253
|
+
"1w",
|
|
1254
|
+
"1M"
|
|
1255
|
+
]);
|
|
1256
|
+
var uniswapV4OhlcvCandleSchema = z.object({
|
|
1257
|
+
timestampMs: z.number(),
|
|
1258
|
+
open: z.string(),
|
|
1259
|
+
high: z.string(),
|
|
1260
|
+
low: z.string(),
|
|
1261
|
+
close: z.string(),
|
|
1262
|
+
volume: z.string().optional()
|
|
1263
|
+
});
|
|
1264
|
+
var uniswapV4ExistingPoolOhlcvSchema = z.object({
|
|
1265
|
+
token0Address: evmAddressSchema,
|
|
1266
|
+
token1Address: evmAddressSchema,
|
|
1267
|
+
poolReference: z.string().min(1).optional(),
|
|
1268
|
+
fee: agentCoercedOptionalIntSchema(z.number().int().nonnegative()).optional(),
|
|
1269
|
+
tickSpacing: agentCoercedOptionalIntSchema(z.number().int().positive()).optional(),
|
|
1270
|
+
hooks: evmAddressSchema.optional()
|
|
1271
|
+
});
|
|
1272
|
+
var mcpUniswapV4FetchOhlcvInputSchema = z.object({
|
|
1273
|
+
chainId: agentEvmChainIdSchema,
|
|
1274
|
+
interval: uniswapV4OhlcvIntervalSchema.optional().describe("Default 1h. Sub-hour uses swaps; \u22651h uses subgraph."),
|
|
1275
|
+
poolPreset: z.string().optional().describe("presetId from ctm_uniswap_v4_list_lp_pools"),
|
|
1276
|
+
poolReference: z.string().optional().describe("bytes32 pool id"),
|
|
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"),
|
|
1280
|
+
quoteToken: z.enum(["token0", "token1"]).optional().describe("Default token0 per token1 (subgraph native)"),
|
|
1281
|
+
lookbackDays: agentCoercedOptionalIntSchema(z.number().int().positive().max(365)),
|
|
1282
|
+
lookbackHours: agentCoercedOptionalIntSchema(z.number().int().positive().max(365 * 24)),
|
|
1283
|
+
startTimeMs: agentCoercedOptionalIntSchema(z.number().int().positive()),
|
|
1284
|
+
endTimeMs: agentCoercedOptionalIntSchema(z.number().int().positive())
|
|
1285
|
+
}).strict();
|
|
1286
|
+
var mcpUniswapV4FetchOhlcvOutputSchema = z.object({
|
|
1287
|
+
symbol: z.string(),
|
|
1288
|
+
timeframe: uniswapV4OhlcvIntervalSchema,
|
|
1289
|
+
chainId: agentEvmChainIdSchema,
|
|
1290
|
+
poolReference: z.string(),
|
|
1291
|
+
dataSource: z.enum(["subgraph_native", "subgraph_aggregate", "swaps", "bitquery"]),
|
|
1292
|
+
baseSubgraphEntity: z.enum(["hourly", "daily"]).optional(),
|
|
1293
|
+
priceQuote: z.enum(["token0PerToken1", "token1PerToken0"]),
|
|
1294
|
+
startTimeMs: z.number().int().positive().optional(),
|
|
1295
|
+
endTimeMs: z.number().int().positive().optional(),
|
|
1296
|
+
candleCount: z.number().int().nonnegative(),
|
|
1297
|
+
candles: z.array(uniswapV4OhlcvCandleSchema),
|
|
1298
|
+
fetchedAtMs: z.number(),
|
|
1299
|
+
warnings: z.array(z.string()).optional()
|
|
1300
|
+
}).strict();
|
|
1137
1301
|
var mcpCurveDaoQuoteInputSchema = z.object({
|
|
1138
1302
|
chainId: agentEvmChainIdSchema.describe("EVM chain id (rpcUrl resolved from get_chain_registry rpcGateway)"),
|
|
1139
1303
|
rpcUrl: z.string().min(1).optional().describe("JSON-RPC URL; continuum-mcp-server injects from chain registry \u2014 do not pass a public RPC URL"),
|
|
@@ -1273,7 +1437,9 @@ var mcpServerSubmitOutputSchema = z.object({
|
|
|
1273
1437
|
);
|
|
1274
1438
|
var MCP_NON_SUBMIT_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
1275
1439
|
"ctm_uniswap_v4_quote",
|
|
1276
|
-
"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"
|
|
1277
1443
|
]);
|
|
1278
1444
|
|
|
1279
1445
|
// src/agent/schemas/protocols.ts
|
|
@@ -1607,7 +1773,9 @@ var mcpGmxIncreaseInputSchema = mcpGmxMultisignInput(
|
|
|
1607
1773
|
collateralToken: z.string().min(1),
|
|
1608
1774
|
collateralAmountHuman: z.string().min(1),
|
|
1609
1775
|
triggerPriceUsdHuman: z.string().optional(),
|
|
1610
|
-
|
|
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)"),
|
|
1611
1779
|
slippageBps: agentCoercedOptionalIntSchema(z.number().int().nonnegative()),
|
|
1612
1780
|
executionFeeBufferBps: agentCoercedOptionalIntSchema(z.number().int().nonnegative())
|
|
1613
1781
|
},
|
|
@@ -1979,6 +2147,7 @@ var mcpHyperliquidFetchDelegationsOutputSchema = z.object({
|
|
|
1979
2147
|
})
|
|
1980
2148
|
)
|
|
1981
2149
|
});
|
|
2150
|
+
var hyperliquidTpslExecModeSchema = z.enum(["limit_at_trigger", "market"]);
|
|
1982
2151
|
var mcpHyperliquidLimitOrderInputSchema = mcpHyperliquidMultisignInput(
|
|
1983
2152
|
{
|
|
1984
2153
|
coin: z.string().min(1).describe("coin from fetch_markets (name) or search_markets"),
|
|
@@ -1987,7 +2156,10 @@ var mcpHyperliquidLimitOrderInputSchema = mcpHyperliquidMultisignInput(
|
|
|
1987
2156
|
szHuman: z.string().min(1),
|
|
1988
2157
|
marketKind: z.enum(["perp", "spot"]).optional(),
|
|
1989
2158
|
tif: hyperliquidTifSchema.optional(),
|
|
1990
|
-
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.")
|
|
1991
2163
|
},
|
|
1992
2164
|
preprocessHyperliquidLimitOrderInput
|
|
1993
2165
|
);
|
|
@@ -2515,7 +2687,7 @@ var MCP_PROTOCOL_TOOL_DEFINITIONS = [
|
|
|
2515
2687
|
actionId: "gmx.increase",
|
|
2516
2688
|
protocolId: "gmx",
|
|
2517
2689
|
chainCategory: "evm",
|
|
2518
|
-
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.",
|
|
2519
2691
|
prerequisites: ["keyGen", "executorAddress", "GMX market symbol", "classic mode only \u2014 no subaccounts"],
|
|
2520
2692
|
handler: { importPath: "protocols/evm/gmx", exportName: "buildEvmMultisignBodyGmxIncreaseBatch" },
|
|
2521
2693
|
inputZod: mcpGmxIncreaseInputSchema
|
|
@@ -2585,7 +2757,7 @@ var MCP_PROTOCOL_TOOL_DEFINITIONS = [
|
|
|
2585
2757
|
actionId: "hyperliquid.limitOrder",
|
|
2586
2758
|
protocolId: "hyperliquid",
|
|
2587
2759
|
chainCategory: "evm",
|
|
2588
|
-
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.",
|
|
2589
2761
|
prerequisites: ["keyGen", "executorAddress", "chainId 999 or 998", "coin", "limitPxHuman", "szHuman"],
|
|
2590
2762
|
handler: { importPath: "protocols/evm/hyperliquid", exportName: "buildEvmMultisignBodyHyperliquidLimitOrderBatch" },
|
|
2591
2763
|
inputZod: mcpHyperliquidLimitOrderInputSchema
|
|
@@ -2820,6 +2992,52 @@ var CORE_MCP_TOOL_DEFINITIONS = [
|
|
|
2820
2992
|
handler: { importPath: "protocols/evm/uniswap-v4", exportName: "buildEvmMultisignBodyUniswapV4SkipPermit2Batch" },
|
|
2821
2993
|
inputZod: mcpUniswapV4BuildSwapMultisignInputSchema
|
|
2822
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
|
+
}),
|
|
2823
3041
|
defineMcpTool({
|
|
2824
3042
|
name: "ctm_uniswap_v4_list_lp_pools",
|
|
2825
3043
|
actionId: "uniswap-v4.lp-list-pools",
|
|
@@ -2827,11 +3045,27 @@ var CORE_MCP_TOOL_DEFINITIONS = [
|
|
|
2827
3045
|
chainCategory: "evm",
|
|
2828
3046
|
description: "List standard Uniswap V4 LP pools for a chain (ETH/USDC and other main pairs at common fee tiers). Returns presetId, token addresses, fee, tickSpacing, and computed poolReference (bytes32 pool id). Use presetId as poolPreset on lp_create_position.",
|
|
2829
3047
|
prerequisites: ["chainId"],
|
|
2830
|
-
followUp: ["ctm_uniswap_v4_lp_create_position"],
|
|
3048
|
+
followUp: ["ctm_uniswap_v4_lp_create_position", "ctm_uniswap_v4_fetch_ohlcv"],
|
|
2831
3049
|
handler: { importPath: "protocols/evm/uniswap-v4", exportName: "uniswapV4ListStandardLpPools" },
|
|
2832
3050
|
inputZod: mcpUniswapV4LpListPoolsInputSchema,
|
|
2833
3051
|
outputZod: mcpUniswapV4LpListPoolsOutputSchema
|
|
2834
3052
|
}),
|
|
3053
|
+
defineMcpTool({
|
|
3054
|
+
name: "ctm_uniswap_v4_fetch_ohlcv",
|
|
3055
|
+
actionId: "uniswap-v4.fetch-ohlcv",
|
|
3056
|
+
protocolId: "uniswap-v4",
|
|
3057
|
+
chainCategory: "evm",
|
|
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.",
|
|
3059
|
+
prerequisites: [
|
|
3060
|
+
"chainId with OHLCV support (subgraph or Robinhood/Bitquery)",
|
|
3061
|
+
"poolPreset or poolReference or existingPool (subgraph); currencyAddress or currencySymbol or existingPool (Robinhood)",
|
|
3062
|
+
"interval + lookbackDays or lookbackHours or startTimeMs"
|
|
3063
|
+
],
|
|
3064
|
+
followUp: ["ctm_uniswap_v4_list_lp_pools", "continuum__prepare_chart_from_rows"],
|
|
3065
|
+
handler: { importPath: "protocols/evm/uniswap-v4", exportName: "uniswapV4FetchOhlcv" },
|
|
3066
|
+
inputZod: mcpUniswapV4FetchOhlcvInputSchema,
|
|
3067
|
+
outputZod: mcpUniswapV4FetchOhlcvOutputSchema
|
|
3068
|
+
}),
|
|
2835
3069
|
defineMcpTool({
|
|
2836
3070
|
name: "ctm_uniswap_v4_lp_create_position",
|
|
2837
3071
|
actionId: "uniswap-v4.lp-create",
|
|
@@ -3572,41 +3806,6 @@ function isMapleSyrupSupportedChain(chainId) {
|
|
|
3572
3806
|
return chainId === 1 || chainId === 11155111;
|
|
3573
3807
|
}
|
|
3574
3808
|
|
|
3575
|
-
// src/core/defiProxy.ts
|
|
3576
|
-
var aaveGraphqlProxyUrl;
|
|
3577
|
-
var morphoGraphqlProxyUrl;
|
|
3578
|
-
function getAaveGraphqlProxyUrl() {
|
|
3579
|
-
return aaveGraphqlProxyUrl;
|
|
3580
|
-
}
|
|
3581
|
-
function getMorphoGraphqlProxyUrl() {
|
|
3582
|
-
return morphoGraphqlProxyUrl;
|
|
3583
|
-
}
|
|
3584
|
-
async function postJsonViaOptionalProxy(args) {
|
|
3585
|
-
const proxy = args.proxyUrl?.trim();
|
|
3586
|
-
if (proxy) {
|
|
3587
|
-
const r2 = await fetch(proxy, {
|
|
3588
|
-
method: "POST",
|
|
3589
|
-
headers: { "content-type": "application/json" },
|
|
3590
|
-
body: JSON.stringify(args.proxyEnvelope ?? args.body)
|
|
3591
|
-
});
|
|
3592
|
-
if (!r2.ok) {
|
|
3593
|
-
const t = await r2.text().catch(() => "");
|
|
3594
|
-
throw new Error(t ? `Proxy HTTP ${r2.status}: ${t.slice(0, 200)}` : `Proxy HTTP ${r2.status}`);
|
|
3595
|
-
}
|
|
3596
|
-
return await r2.json();
|
|
3597
|
-
}
|
|
3598
|
-
const r = await fetch(args.directUrl, {
|
|
3599
|
-
method: "POST",
|
|
3600
|
-
headers: { "content-type": "application/json" },
|
|
3601
|
-
body: JSON.stringify(args.body)
|
|
3602
|
-
});
|
|
3603
|
-
if (!r.ok) {
|
|
3604
|
-
const t = await r.text().catch(() => "");
|
|
3605
|
-
throw new Error(t ? `HTTP ${r.status}: ${t.slice(0, 200)}` : `HTTP ${r.status}`);
|
|
3606
|
-
}
|
|
3607
|
-
return await r.json();
|
|
3608
|
-
}
|
|
3609
|
-
|
|
3610
3809
|
// src/protocols/evm/maple/index.ts
|
|
3611
3810
|
var MAPLE_PROTOCOL_ID = "maple-syrup";
|
|
3612
3811
|
var mapleProtocolModule = {
|
|
@@ -4020,7 +4219,7 @@ var hyperliquidProtocolModule = {
|
|
|
4020
4219
|
id: "hyperliquid.limitOrder",
|
|
4021
4220
|
protocolId: HYPERLIQUID_PROTOCOL_ID,
|
|
4022
4221
|
chainCategory: "evm",
|
|
4023
|
-
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",
|
|
4024
4223
|
commonParams: ["keyGen", "purposeText", "useCustomGas"],
|
|
4025
4224
|
params: {
|
|
4026
4225
|
coin: { type: "string", required: true, description: "Market coin e.g. BTC" },
|
|
@@ -4029,7 +4228,10 @@ var hyperliquidProtocolModule = {
|
|
|
4029
4228
|
szHuman: { type: "string", required: true, description: "Order size in coin units" },
|
|
4030
4229
|
marketKind: { type: "string", required: false, description: "perp (default) or spot" },
|
|
4031
4230
|
tif: { type: "string", required: false, description: "gtc, ioc, or alo" },
|
|
4032
|
-
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" }
|
|
4033
4235
|
}
|
|
4034
4236
|
},
|
|
4035
4237
|
{
|
|
@@ -4664,7 +4866,8 @@ var PROTOCOL_SUPPORT_ADVISORS = {
|
|
|
4664
4866
|
143,
|
|
4665
4867
|
59144,
|
|
4666
4868
|
4217,
|
|
4667
|
-
196
|
|
4869
|
+
196,
|
|
4870
|
+
4663
|
|
4668
4871
|
]) {
|
|
4669
4872
|
if (isUniswapV4ChainSupported(id)) ids.push(id);
|
|
4670
4873
|
}
|
|
@@ -4893,6 +5096,6 @@ function getAgentCatalog() {
|
|
|
4893
5096
|
};
|
|
4894
5097
|
}
|
|
4895
5098
|
|
|
4896
|
-
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, 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 };
|
|
4897
5100
|
//# sourceMappingURL=catalog.js.map
|
|
4898
5101
|
//# sourceMappingURL=catalog.js.map
|