@continuumdao/ctm-mpc-defi 0.2.0 → 0.2.2
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/README.md +20 -78
- package/dist/agent/catalog.cjs +563 -5
- package/dist/agent/catalog.cjs.map +1 -1
- package/dist/agent/catalog.d.ts +166 -20
- package/dist/agent/catalog.js +551 -7
- package/dist/agent/catalog.js.map +1 -1
- package/dist/agent/skills/aave-v4/SKILL.md +43 -0
- package/dist/agent/skills/curve-dao/SKILL.md +13 -0
- package/dist/agent/skills/ethena/SKILL.md +10 -0
- package/dist/agent/skills/euler-v2/SKILL.md +10 -0
- package/dist/agent/skills/lido/SKILL.md +22 -0
- package/dist/agent/skills/maple-syrup/SKILL.md +10 -0
- package/dist/agent/skills/sky/SKILL.md +10 -0
- package/dist/agent/skills/uniswap-v4/SKILL.md +22 -0
- package/dist/chains/evm/index.cjs +79 -224
- package/dist/chains/evm/index.cjs.map +1 -1
- package/dist/chains/evm/index.d.ts +26 -26
- package/dist/chains/evm/index.js +69 -209
- 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 +68 -106
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +21 -36
- package/dist/core/index.js +57 -96
- package/dist/core/index.js.map +1 -1
- package/dist/{envelope-CcE5Cz_q.d.ts → envelope-CpBUh9eP.d.ts} +1 -1
- package/dist/index.cjs +356 -1855
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -11
- package/dist/index.js +332 -1826
- package/dist/index.js.map +1 -1
- package/dist/protocols/evm/aave-v4/index.cjs +1152 -669
- package/dist/protocols/evm/aave-v4/index.cjs.map +1 -1
- package/dist/protocols/evm/aave-v4/index.d.ts +418 -3
- package/dist/protocols/evm/aave-v4/index.js +1126 -670
- package/dist/protocols/evm/aave-v4/index.js.map +1 -1
- package/dist/protocols/evm/curve-dao/index.cjs +257 -131
- package/dist/protocols/evm/curve-dao/index.cjs.map +1 -1
- package/dist/protocols/evm/curve-dao/index.d.ts +69 -5
- package/dist/protocols/evm/curve-dao/index.js +242 -124
- package/dist/protocols/evm/curve-dao/index.js.map +1 -1
- package/dist/protocols/evm/ethena/index.cjs +394 -402
- package/dist/protocols/evm/ethena/index.cjs.map +1 -1
- package/dist/protocols/evm/ethena/index.d.ts +47 -3
- package/dist/protocols/evm/ethena/index.js +390 -404
- package/dist/protocols/evm/ethena/index.js.map +1 -1
- package/dist/protocols/evm/euler-v2/index.cjs +2810 -1191
- package/dist/protocols/evm/euler-v2/index.cjs.map +1 -1
- package/dist/protocols/evm/euler-v2/index.d.ts +465 -3
- package/dist/protocols/evm/euler-v2/index.js +2761 -1192
- package/dist/protocols/evm/euler-v2/index.js.map +1 -1
- package/dist/protocols/evm/lido/index.cjs +351 -236
- package/dist/protocols/evm/lido/index.cjs.map +1 -1
- package/dist/protocols/evm/lido/index.d.ts +34 -4
- package/dist/protocols/evm/lido/index.js +348 -238
- package/dist/protocols/evm/lido/index.js.map +1 -1
- package/dist/protocols/evm/maple/index.cjs +390 -395
- package/dist/protocols/evm/maple/index.cjs.map +1 -1
- package/dist/protocols/evm/maple/index.d.ts +23 -3
- package/dist/protocols/evm/maple/index.js +390 -397
- package/dist/protocols/evm/maple/index.js.map +1 -1
- package/dist/protocols/evm/sky/index.cjs +454 -232
- package/dist/protocols/evm/sky/index.cjs.map +1 -1
- package/dist/protocols/evm/sky/index.d.ts +57 -3
- package/dist/protocols/evm/sky/index.js +444 -231
- package/dist/protocols/evm/sky/index.js.map +1 -1
- package/dist/protocols/evm/uniswap-v4/index.cjs +423 -658
- package/dist/protocols/evm/uniswap-v4/index.cjs.map +1 -1
- package/dist/protocols/evm/uniswap-v4/index.d.ts +3 -4
- package/dist/protocols/evm/uniswap-v4/index.js +422 -657
- package/dist/protocols/evm/uniswap-v4/index.js.map +1 -1
- package/dist/{registry-oMKlO_5z.d.ts → registry-Bv5o37_w.d.ts} +1 -1
- package/dist/{types-Ce2qNHai.d.cts → types-BfjWdw1j.d.ts} +3 -1
- package/dist/{types-5u863Fd9.d.ts → types-DUeNJLr9.d.ts} +1 -1
- package/package.json +7 -6
- package/dist/agent/catalog.d.cts +0 -939
- package/dist/chains/evm/index.d.cts +0 -64
- package/dist/chains/near/index.d.cts +0 -37
- package/dist/chains/solana/index.d.cts +0 -40
- package/dist/core/index.d.cts +0 -43
- package/dist/envelope-DYDPnrHZ.d.cts +0 -35
- package/dist/index.d.cts +0 -16
- package/dist/keygen-CfNp8yKJ.d.cts +0 -9
- package/dist/keygen-DsINazx8.d.ts +0 -9
- package/dist/nodeRead-BnmSaMGO.d.cts +0 -8
- package/dist/nodeRead-BnmSaMGO.d.ts +0 -8
- package/dist/protocols/evm/aave-v4/index.d.cts +0 -500
- package/dist/protocols/evm/curve-dao/index.d.cts +0 -147
- package/dist/protocols/evm/ethena/index.d.cts +0 -161
- package/dist/protocols/evm/euler-v2/index.d.cts +0 -317
- package/dist/protocols/evm/lido/index.d.cts +0 -120
- package/dist/protocols/evm/maple/index.d.cts +0 -109
- package/dist/protocols/evm/sky/index.d.cts +0 -218
- package/dist/protocols/evm/uniswap-v4/index.d.cts +0 -324
- package/dist/registry-BwZoE668.d.cts +0 -8
- package/dist/txParams-BC7ogvdR.d.cts +0 -19
- package/dist/txParams-BC7ogvdR.d.ts +0 -19
- package/dist/types-B8idm_gu.d.cts +0 -34
- package/dist/types-Ce2qNHai.d.ts +0 -57
package/dist/agent/catalog.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as ChainCategory,
|
|
4
|
-
export { g as getActionsByChainCategory, b as getProtocolModules } from '../registry-
|
|
3
|
+
import { C as ChainCategory, e as ProtocolModule, P as ParamDoc, d as ProtocolActionDescriptor } from '../types-BfjWdw1j.js';
|
|
4
|
+
export { g as getActionsByChainCategory, b as getProtocolModules } from '../registry-Bv5o37_w.js';
|
|
5
5
|
|
|
6
6
|
/** JSON-schema-like object for MCP tool `inputSchema` / `outputSchema` (derived from Zod). */
|
|
7
7
|
type McpSchemaProperty = {
|
|
@@ -83,7 +83,14 @@ declare function getAgentCatalogForMcp(): {
|
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
managementSig: {
|
|
86
|
-
readonly description: "Management POST bodies embed NodeMgtKeySig: { nonce, clientSig, nodeKey }. Sign JSON with clientSig cleared; POST with
|
|
86
|
+
readonly description: "Management POST bodies embed NodeMgtKeySig: { nonce, clientSig, nodeKey }. Sign JSON with clientSig cleared via messageToSignManagementBody; POST with withManagementClientSig(body, sig). Do not put signedMessage in the JSON body for standard management routes. Legacy Nonce/Sig/sig field names are not accepted.";
|
|
87
|
+
readonly exceptions: {
|
|
88
|
+
readonly configUpdateImplement: "POST /configUpdateImplement: include nodeKey + plannedYaml + signedMessage (opaque configUpdateImplement|<sha256> line). Sign the opaque line bytes, not the JSON body.";
|
|
89
|
+
readonly postMSQTTKey: "POST /postMSQTTKey: include nodeKey + caCertPem + clientSig. Sign caCertPem PEM bytes directly (use buildPostMqttKeyBody).";
|
|
90
|
+
readonly addManagementKey: "POST /addManagementKey / removeManagementKey (EIP-191): may still use signedMessage equal to the canonical JSON string for dual-mode Ethereum signing.";
|
|
91
|
+
readonly agentLlmConfig: "POST /agentLlmConfig / agentLlmApiKey: sign canonical JSON with action + clientSig cleared; POST body has nonce, clientSig, nodeKey, endpoint fields — no signedMessage field.";
|
|
92
|
+
readonly multiSignRequest: "POST /multiSignRequest (client key, not management): POST { ...bodyForSign, clientSig, signedMessage: messageToSign }.";
|
|
93
|
+
};
|
|
87
94
|
readonly fields: {
|
|
88
95
|
readonly nonce: {
|
|
89
96
|
readonly type: "number";
|
|
@@ -101,10 +108,15 @@ declare function getAgentCatalogForMcp(): {
|
|
|
101
108
|
readonly helpers: {
|
|
102
109
|
readonly managementSigFields: "Base envelope with clientSig cleared.";
|
|
103
110
|
readonly buildManagementPostBody: "Spread managementSigFields then endpoint fields.";
|
|
111
|
+
readonly buildPostMqttKeyBody: "POST /postMSQTTKey unsigned body (sign PEM directly).";
|
|
112
|
+
readonly buildPostPreferredKeyGenBody: "POST /postPreferredKeyGen unsigned body.";
|
|
113
|
+
readonly buildConfigUpdateImplementPostBody: "POST /configUpdateImplement with opaque signedMessage line.";
|
|
114
|
+
readonly buildSignRequestAgreeUnsignedBody: "POST /signRequestAgree unsigned body with nodeKey.";
|
|
104
115
|
readonly messageToSignManagementBody: "Canonical JSON string to sign.";
|
|
105
116
|
readonly withManagementClientSig: "Attach signature to POST body.";
|
|
106
117
|
readonly fetchNodeKey: "GET /getNodeKey via nodeFetchWithReadAuth.";
|
|
107
118
|
readonly fetchManagementNonce: "GET nonce for Ed25519 or Ethereum management key.";
|
|
119
|
+
readonly fetchPreferredKeyGen: "GET /getPreferredKeyGen for agent default KeyGen.";
|
|
108
120
|
};
|
|
109
121
|
};
|
|
110
122
|
/** Zod schemas for MCP tool I/O — source of truth for continuum-mcp-server validation. */
|
|
@@ -113,9 +125,92 @@ declare function getAgentCatalogForMcp(): {
|
|
|
113
125
|
workflow: {
|
|
114
126
|
evmSwapTypical: string[];
|
|
115
127
|
managementPostTypical: string[];
|
|
128
|
+
agentMultisignTypical: string[];
|
|
116
129
|
};
|
|
117
130
|
};
|
|
118
131
|
|
|
132
|
+
declare function getToolsForProtocol(protocolId: string): readonly McpToolDefinition[];
|
|
133
|
+
declare function getProtocolSkill(protocolId: string): string | undefined;
|
|
134
|
+
declare function listProtocolsWithSkills(): string[];
|
|
135
|
+
/** Protocol metadata for MCP discovery (chains from advisor; actions from registry). */
|
|
136
|
+
declare function getProtocolDiscoverySummary(protocolId: string): {
|
|
137
|
+
protocolId: string;
|
|
138
|
+
chainCategory: ChainCategory;
|
|
139
|
+
actions: {
|
|
140
|
+
id: string;
|
|
141
|
+
description: string;
|
|
142
|
+
}[];
|
|
143
|
+
tools: {
|
|
144
|
+
name: string;
|
|
145
|
+
actionId: string;
|
|
146
|
+
description: string;
|
|
147
|
+
prerequisites: string[];
|
|
148
|
+
followUp: string[];
|
|
149
|
+
}[];
|
|
150
|
+
} | undefined;
|
|
151
|
+
|
|
152
|
+
/** How protocol token allowlists are resolved (UI parity). */
|
|
153
|
+
type TokenFilterKind = 'any_erc20_on_chain' | 'api_underlyings' | 'pool_graph' | 'subgraph_vaults' | 'fixed_addresses' | 'minting_contract' | 'mainnet_only';
|
|
154
|
+
type SupportedTokenRow = {
|
|
155
|
+
address: string;
|
|
156
|
+
symbol?: string;
|
|
157
|
+
name?: string;
|
|
158
|
+
roles?: string[];
|
|
159
|
+
};
|
|
160
|
+
type ProtocolSupportAdvisor = {
|
|
161
|
+
protocolId: string;
|
|
162
|
+
tokenFilter: TokenFilterKind;
|
|
163
|
+
supportedChainIds(): Promise<number[]>;
|
|
164
|
+
supportedTokens(chainId: number, ctx?: {
|
|
165
|
+
rpcUrl?: string;
|
|
166
|
+
}): Promise<{
|
|
167
|
+
tokens: SupportedTokenRow[];
|
|
168
|
+
nativeWrapped?: string;
|
|
169
|
+
notes?: string;
|
|
170
|
+
}>;
|
|
171
|
+
isTokenSupported?(chainId: number, address: string, ctx?: {
|
|
172
|
+
rpcUrl?: string;
|
|
173
|
+
}): Promise<boolean>;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
declare const PROTOCOL_SUPPORT_ADVISORS: Record<string, ProtocolSupportAdvisor>;
|
|
177
|
+
declare function getProtocolSupportAdvisor(protocolId: string): ProtocolSupportAdvisor | undefined;
|
|
178
|
+
declare function listProtocolSupportAdvisorIds(): string[];
|
|
179
|
+
|
|
180
|
+
/** Shared MCP-server inputs enriched from continuum-node-sdk (keyGenId + chain registry). */
|
|
181
|
+
declare const mcpServerCommonInputSchema: z.ZodObject<{
|
|
182
|
+
keyGenId: z.ZodString;
|
|
183
|
+
chainId: z.ZodNumber;
|
|
184
|
+
purposeText: z.ZodString;
|
|
185
|
+
useCustomGas: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
purposeText: string;
|
|
188
|
+
chainId: number;
|
|
189
|
+
keyGenId: string;
|
|
190
|
+
useCustomGas?: boolean | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
purposeText: string;
|
|
193
|
+
chainId: number;
|
|
194
|
+
keyGenId: string;
|
|
195
|
+
useCustomGas?: boolean | undefined;
|
|
196
|
+
}>;
|
|
197
|
+
declare function mcpServerMultisignInput(fields: z.ZodRawShape): z.ZodObject<{} & {
|
|
198
|
+
[x: string]: z.ZodTypeAny;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
[x: string]: any;
|
|
201
|
+
}, {
|
|
202
|
+
[x: string]: any;
|
|
203
|
+
}>;
|
|
204
|
+
declare const mcpServerSubmitOutputSchema: z.ZodObject<{
|
|
205
|
+
requestId: z.ZodString;
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
requestId: string;
|
|
208
|
+
}, {
|
|
209
|
+
requestId: string;
|
|
210
|
+
}>;
|
|
211
|
+
/** Tools that only build calldata / quotes — no submit. */
|
|
212
|
+
declare const MCP_NON_SUBMIT_TOOL_NAMES: Set<string>;
|
|
213
|
+
|
|
119
214
|
/** Shared inputs documented once for all EVM multisign builders. */
|
|
120
215
|
declare const EVM_COMMON_PARAM_DOCS: Record<string, ParamDoc>;
|
|
121
216
|
declare const MULTISIGN_OUTPUT_DOC: {
|
|
@@ -133,7 +228,14 @@ declare const MULTISIGN_OUTPUT_DOC: {
|
|
|
133
228
|
};
|
|
134
229
|
/** mpc-auth NodeMgtKeySig envelope for management POST routes (Get Sig, shelve, keyGen, groups, …). */
|
|
135
230
|
declare const MANAGEMENT_SIG_DOC: {
|
|
136
|
-
readonly description: "Management POST bodies embed NodeMgtKeySig: { nonce, clientSig, nodeKey }. Sign JSON with clientSig cleared; POST with
|
|
231
|
+
readonly description: "Management POST bodies embed NodeMgtKeySig: { nonce, clientSig, nodeKey }. Sign JSON with clientSig cleared via messageToSignManagementBody; POST with withManagementClientSig(body, sig). Do not put signedMessage in the JSON body for standard management routes. Legacy Nonce/Sig/sig field names are not accepted.";
|
|
232
|
+
readonly exceptions: {
|
|
233
|
+
readonly configUpdateImplement: "POST /configUpdateImplement: include nodeKey + plannedYaml + signedMessage (opaque configUpdateImplement|<sha256> line). Sign the opaque line bytes, not the JSON body.";
|
|
234
|
+
readonly postMSQTTKey: "POST /postMSQTTKey: include nodeKey + caCertPem + clientSig. Sign caCertPem PEM bytes directly (use buildPostMqttKeyBody).";
|
|
235
|
+
readonly addManagementKey: "POST /addManagementKey / removeManagementKey (EIP-191): may still use signedMessage equal to the canonical JSON string for dual-mode Ethereum signing.";
|
|
236
|
+
readonly agentLlmConfig: "POST /agentLlmConfig / agentLlmApiKey: sign canonical JSON with action + clientSig cleared; POST body has nonce, clientSig, nodeKey, endpoint fields — no signedMessage field.";
|
|
237
|
+
readonly multiSignRequest: "POST /multiSignRequest (client key, not management): POST { ...bodyForSign, clientSig, signedMessage: messageToSign }.";
|
|
238
|
+
};
|
|
137
239
|
readonly fields: {
|
|
138
240
|
readonly nonce: {
|
|
139
241
|
readonly type: "number";
|
|
@@ -151,10 +253,15 @@ declare const MANAGEMENT_SIG_DOC: {
|
|
|
151
253
|
readonly helpers: {
|
|
152
254
|
readonly managementSigFields: "Base envelope with clientSig cleared.";
|
|
153
255
|
readonly buildManagementPostBody: "Spread managementSigFields then endpoint fields.";
|
|
256
|
+
readonly buildPostMqttKeyBody: "POST /postMSQTTKey unsigned body (sign PEM directly).";
|
|
257
|
+
readonly buildPostPreferredKeyGenBody: "POST /postPreferredKeyGen unsigned body.";
|
|
258
|
+
readonly buildConfigUpdateImplementPostBody: "POST /configUpdateImplement with opaque signedMessage line.";
|
|
259
|
+
readonly buildSignRequestAgreeUnsignedBody: "POST /signRequestAgree unsigned body with nodeKey.";
|
|
154
260
|
readonly messageToSignManagementBody: "Canonical JSON string to sign.";
|
|
155
261
|
readonly withManagementClientSig: "Attach signature to POST body.";
|
|
156
262
|
readonly fetchNodeKey: "GET /getNodeKey via nodeFetchWithReadAuth.";
|
|
157
263
|
readonly fetchManagementNonce: "GET nonce for Ed25519 or Ethereum management key.";
|
|
264
|
+
readonly fetchPreferredKeyGen: "GET /getPreferredKeyGen for agent default KeyGen.";
|
|
158
265
|
};
|
|
159
266
|
};
|
|
160
267
|
|
|
@@ -265,8 +372,8 @@ declare const evmMultisignCommonInputSchema: z.ZodObject<{
|
|
|
265
372
|
executorAddress: string;
|
|
266
373
|
chainDetail: {
|
|
267
374
|
legacy?: boolean | undefined;
|
|
268
|
-
gasLimit?: number | undefined;
|
|
269
375
|
gasPrice?: number | undefined;
|
|
376
|
+
gasLimit?: number | undefined;
|
|
270
377
|
gasMultiplier?: number | undefined;
|
|
271
378
|
baseFee?: number | undefined;
|
|
272
379
|
priorityFee?: number | undefined;
|
|
@@ -288,8 +395,8 @@ declare const evmMultisignCommonInputSchema: z.ZodObject<{
|
|
|
288
395
|
executorAddress: string;
|
|
289
396
|
chainDetail: {
|
|
290
397
|
legacy?: boolean | undefined;
|
|
291
|
-
gasLimit?: number | undefined;
|
|
292
398
|
gasPrice?: number | undefined;
|
|
399
|
+
gasLimit?: number | undefined;
|
|
293
400
|
gasMultiplier?: number | undefined;
|
|
294
401
|
baseFee?: number | undefined;
|
|
295
402
|
priorityFee?: number | undefined;
|
|
@@ -337,11 +444,11 @@ declare const mcpUniswapV4QuoteInputSchema: z.ZodObject<{
|
|
|
337
444
|
universalRouterVersion: z.ZodOptional<z.ZodString>;
|
|
338
445
|
}, "strip", z.ZodTypeAny, {
|
|
339
446
|
chainId: string | number;
|
|
340
|
-
type: "EXACT_INPUT" | "EXACT_OUTPUT";
|
|
341
447
|
amount: string;
|
|
342
448
|
tokenIn: string;
|
|
343
449
|
tokenOut: string;
|
|
344
450
|
uniswapApiKey: string;
|
|
451
|
+
type: "EXACT_INPUT" | "EXACT_OUTPUT";
|
|
345
452
|
keyGen?: string | undefined;
|
|
346
453
|
tokenInChainId?: string | number | undefined;
|
|
347
454
|
tokenOutChainId?: string | number | undefined;
|
|
@@ -353,11 +460,11 @@ declare const mcpUniswapV4QuoteInputSchema: z.ZodObject<{
|
|
|
353
460
|
universalRouterVersion?: string | undefined;
|
|
354
461
|
}, {
|
|
355
462
|
chainId: string | number;
|
|
356
|
-
type: "EXACT_INPUT" | "EXACT_OUTPUT";
|
|
357
463
|
amount: string;
|
|
358
464
|
tokenIn: string;
|
|
359
465
|
tokenOut: string;
|
|
360
466
|
uniswapApiKey: string;
|
|
467
|
+
type: "EXACT_INPUT" | "EXACT_OUTPUT";
|
|
361
468
|
keyGen?: string | undefined;
|
|
362
469
|
tokenInChainId?: string | number | undefined;
|
|
363
470
|
tokenOutChainId?: string | number | undefined;
|
|
@@ -480,12 +587,13 @@ declare const mcpUniswapV4BuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
480
587
|
purposeText: string;
|
|
481
588
|
useCustomGas: boolean;
|
|
482
589
|
chainId: number;
|
|
590
|
+
tokenIn: string;
|
|
483
591
|
rpcUrl: string;
|
|
484
592
|
executorAddress: string;
|
|
485
593
|
chainDetail: {
|
|
486
594
|
legacy?: boolean | undefined;
|
|
487
|
-
gasLimit?: number | undefined;
|
|
488
595
|
gasPrice?: number | undefined;
|
|
596
|
+
gasLimit?: number | undefined;
|
|
489
597
|
gasMultiplier?: number | undefined;
|
|
490
598
|
baseFee?: number | undefined;
|
|
491
599
|
priorityFee?: number | undefined;
|
|
@@ -493,7 +601,6 @@ declare const mcpUniswapV4BuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
493
601
|
} & {
|
|
494
602
|
[k: string]: unknown;
|
|
495
603
|
};
|
|
496
|
-
tokenIn: string;
|
|
497
604
|
swap: Record<string, unknown>;
|
|
498
605
|
createSwapResponse: {
|
|
499
606
|
swap: Record<string, unknown>;
|
|
@@ -515,12 +622,13 @@ declare const mcpUniswapV4BuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
515
622
|
purposeText: string;
|
|
516
623
|
useCustomGas: boolean;
|
|
517
624
|
chainId: number;
|
|
625
|
+
tokenIn: string;
|
|
518
626
|
rpcUrl: string;
|
|
519
627
|
executorAddress: string;
|
|
520
628
|
chainDetail: {
|
|
521
629
|
legacy?: boolean | undefined;
|
|
522
|
-
gasLimit?: number | undefined;
|
|
523
630
|
gasPrice?: number | undefined;
|
|
631
|
+
gasLimit?: number | undefined;
|
|
524
632
|
gasMultiplier?: number | undefined;
|
|
525
633
|
baseFee?: number | undefined;
|
|
526
634
|
priorityFee?: number | undefined;
|
|
@@ -528,7 +636,6 @@ declare const mcpUniswapV4BuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
528
636
|
} & {
|
|
529
637
|
[k: string]: unknown;
|
|
530
638
|
};
|
|
531
|
-
tokenIn: string;
|
|
532
639
|
swap: Record<string, unknown>;
|
|
533
640
|
createSwapResponse: {
|
|
534
641
|
swap: Record<string, unknown>;
|
|
@@ -548,6 +655,30 @@ type McpUniswapV4CreateSwapInput = z.infer<typeof mcpUniswapV4CreateSwapInputSch
|
|
|
548
655
|
type McpUniswapV4CreateSwapOutput = z.infer<typeof mcpUniswapV4CreateSwapOutputSchema>;
|
|
549
656
|
type McpUniswapV4BuildSwapMultisignInput = z.infer<typeof mcpUniswapV4BuildSwapMultisignInputSchema>;
|
|
550
657
|
|
|
658
|
+
/** Input for MCP tool `ctm_curve_dao_quote` → handler `curveDaoQuote`. */
|
|
659
|
+
declare const mcpCurveDaoQuoteInputSchema: z.ZodObject<{
|
|
660
|
+
chainId: z.ZodNumber;
|
|
661
|
+
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
662
|
+
tokenIn: z.ZodString;
|
|
663
|
+
tokenOut: z.ZodString;
|
|
664
|
+
amountHuman: z.ZodString;
|
|
665
|
+
tokenInDecimals: z.ZodOptional<z.ZodNumber>;
|
|
666
|
+
}, "strip", z.ZodTypeAny, {
|
|
667
|
+
chainId: number;
|
|
668
|
+
tokenIn: string;
|
|
669
|
+
tokenOut: string;
|
|
670
|
+
amountHuman: string;
|
|
671
|
+
tokenInDecimals?: number | undefined;
|
|
672
|
+
rpcUrl?: string | undefined;
|
|
673
|
+
}, {
|
|
674
|
+
chainId: number;
|
|
675
|
+
tokenIn: string;
|
|
676
|
+
tokenOut: string;
|
|
677
|
+
amountHuman: string;
|
|
678
|
+
tokenInDecimals?: number | undefined;
|
|
679
|
+
rpcUrl?: string | undefined;
|
|
680
|
+
}>;
|
|
681
|
+
declare const mcpCurveDaoQuoteOutputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
551
682
|
/** Input for MCP tool `ctm_curve_dao_build_swap_multisign`. */
|
|
552
683
|
declare const mcpCurveDaoBuildSwapMultisignInputSchema: z.ZodObject<{
|
|
553
684
|
keyGen: z.ZodObject<{
|
|
@@ -608,12 +739,14 @@ declare const mcpCurveDaoBuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
608
739
|
purposeText: string;
|
|
609
740
|
useCustomGas: boolean;
|
|
610
741
|
chainId: number;
|
|
742
|
+
tokenIn: string;
|
|
743
|
+
tokenOut: string;
|
|
611
744
|
rpcUrl: string;
|
|
612
745
|
executorAddress: string;
|
|
613
746
|
chainDetail: {
|
|
614
747
|
legacy?: boolean | undefined;
|
|
615
|
-
gasLimit?: number | undefined;
|
|
616
748
|
gasPrice?: number | undefined;
|
|
749
|
+
gasLimit?: number | undefined;
|
|
617
750
|
gasMultiplier?: number | undefined;
|
|
618
751
|
baseFee?: number | undefined;
|
|
619
752
|
priorityFee?: number | undefined;
|
|
@@ -621,8 +754,6 @@ declare const mcpCurveDaoBuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
621
754
|
} & {
|
|
622
755
|
[k: string]: unknown;
|
|
623
756
|
};
|
|
624
|
-
tokenIn: string;
|
|
625
|
-
tokenOut: string;
|
|
626
757
|
slippagePercent: number;
|
|
627
758
|
amountHuman: string;
|
|
628
759
|
customGasChainDetails?: Record<string, unknown> | undefined;
|
|
@@ -635,12 +766,14 @@ declare const mcpCurveDaoBuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
635
766
|
purposeText: string;
|
|
636
767
|
useCustomGas: boolean;
|
|
637
768
|
chainId: number;
|
|
769
|
+
tokenIn: string;
|
|
770
|
+
tokenOut: string;
|
|
638
771
|
rpcUrl: string;
|
|
639
772
|
executorAddress: string;
|
|
640
773
|
chainDetail: {
|
|
641
774
|
legacy?: boolean | undefined;
|
|
642
|
-
gasLimit?: number | undefined;
|
|
643
775
|
gasPrice?: number | undefined;
|
|
776
|
+
gasLimit?: number | undefined;
|
|
644
777
|
gasMultiplier?: number | undefined;
|
|
645
778
|
baseFee?: number | undefined;
|
|
646
779
|
priorityFee?: number | undefined;
|
|
@@ -648,12 +781,12 @@ declare const mcpCurveDaoBuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
648
781
|
} & {
|
|
649
782
|
[k: string]: unknown;
|
|
650
783
|
};
|
|
651
|
-
tokenIn: string;
|
|
652
|
-
tokenOut: string;
|
|
653
784
|
slippagePercent: number;
|
|
654
785
|
amountHuman: string;
|
|
655
786
|
customGasChainDetails?: Record<string, unknown> | undefined;
|
|
656
787
|
}>;
|
|
788
|
+
type McpCurveDaoQuoteInput = z.infer<typeof mcpCurveDaoQuoteInputSchema>;
|
|
789
|
+
type McpCurveDaoQuoteOutput = z.infer<typeof mcpCurveDaoQuoteOutputSchema>;
|
|
657
790
|
type McpCurveDaoBuildSwapMultisignInput = z.infer<typeof mcpCurveDaoBuildSwapMultisignInputSchema>;
|
|
658
791
|
|
|
659
792
|
/** Extend common multisign inputs with protocol-specific fields. */
|
|
@@ -903,7 +1036,14 @@ declare function getAgentCatalog(): {
|
|
|
903
1036
|
};
|
|
904
1037
|
};
|
|
905
1038
|
managementSig: {
|
|
906
|
-
readonly description: "Management POST bodies embed NodeMgtKeySig: { nonce, clientSig, nodeKey }. Sign JSON with clientSig cleared; POST with
|
|
1039
|
+
readonly description: "Management POST bodies embed NodeMgtKeySig: { nonce, clientSig, nodeKey }. Sign JSON with clientSig cleared via messageToSignManagementBody; POST with withManagementClientSig(body, sig). Do not put signedMessage in the JSON body for standard management routes. Legacy Nonce/Sig/sig field names are not accepted.";
|
|
1040
|
+
readonly exceptions: {
|
|
1041
|
+
readonly configUpdateImplement: "POST /configUpdateImplement: include nodeKey + plannedYaml + signedMessage (opaque configUpdateImplement|<sha256> line). Sign the opaque line bytes, not the JSON body.";
|
|
1042
|
+
readonly postMSQTTKey: "POST /postMSQTTKey: include nodeKey + caCertPem + clientSig. Sign caCertPem PEM bytes directly (use buildPostMqttKeyBody).";
|
|
1043
|
+
readonly addManagementKey: "POST /addManagementKey / removeManagementKey (EIP-191): may still use signedMessage equal to the canonical JSON string for dual-mode Ethereum signing.";
|
|
1044
|
+
readonly agentLlmConfig: "POST /agentLlmConfig / agentLlmApiKey: sign canonical JSON with action + clientSig cleared; POST body has nonce, clientSig, nodeKey, endpoint fields — no signedMessage field.";
|
|
1045
|
+
readonly multiSignRequest: "POST /multiSignRequest (client key, not management): POST { ...bodyForSign, clientSig, signedMessage: messageToSign }.";
|
|
1046
|
+
};
|
|
907
1047
|
readonly fields: {
|
|
908
1048
|
readonly nonce: {
|
|
909
1049
|
readonly type: "number";
|
|
@@ -921,10 +1061,15 @@ declare function getAgentCatalog(): {
|
|
|
921
1061
|
readonly helpers: {
|
|
922
1062
|
readonly managementSigFields: "Base envelope with clientSig cleared.";
|
|
923
1063
|
readonly buildManagementPostBody: "Spread managementSigFields then endpoint fields.";
|
|
1064
|
+
readonly buildPostMqttKeyBody: "POST /postMSQTTKey unsigned body (sign PEM directly).";
|
|
1065
|
+
readonly buildPostPreferredKeyGenBody: "POST /postPreferredKeyGen unsigned body.";
|
|
1066
|
+
readonly buildConfigUpdateImplementPostBody: "POST /configUpdateImplement with opaque signedMessage line.";
|
|
1067
|
+
readonly buildSignRequestAgreeUnsignedBody: "POST /signRequestAgree unsigned body with nodeKey.";
|
|
924
1068
|
readonly messageToSignManagementBody: "Canonical JSON string to sign.";
|
|
925
1069
|
readonly withManagementClientSig: "Attach signature to POST body.";
|
|
926
1070
|
readonly fetchNodeKey: "GET /getNodeKey via nodeFetchWithReadAuth.";
|
|
927
1071
|
readonly fetchManagementNonce: "GET nonce for Ed25519 or Ethereum management key.";
|
|
1072
|
+
readonly fetchPreferredKeyGen: "GET /getPreferredKeyGen for agent default KeyGen.";
|
|
928
1073
|
};
|
|
929
1074
|
};
|
|
930
1075
|
inputSchemas: Record<string, zod.ZodType<any, zod.ZodTypeDef, any>>;
|
|
@@ -932,8 +1077,9 @@ declare function getAgentCatalog(): {
|
|
|
932
1077
|
workflow: {
|
|
933
1078
|
evmSwapTypical: string[];
|
|
934
1079
|
managementPostTypical: string[];
|
|
1080
|
+
agentMultisignTypical: string[];
|
|
935
1081
|
};
|
|
936
1082
|
};
|
|
937
1083
|
};
|
|
938
1084
|
|
|
939
|
-
export { type ChainDetailMcpInput, EVM_COMMON_PARAM_DOCS, type EvmMultisignCommonInput, type KeyGenMcpInput, MANAGEMENT_SIG_DOC, MCP_TOOL_DEFINITIONS, MCP_TOOL_INPUT_SCHEMAS, MCP_TOOL_OUTPUT_SCHEMAS, MULTISIGN_OUTPUT_DOC, type McpAaveV4DepositInput, type McpCurveDaoBuildSwapMultisignInput, type McpEthenaStakeInput, type McpEulerV2IsolatedLendInput, type McpJsonSchema, type McpLidoSubmitInput, type McpMapleDepositInput, type McpSchemaProperty, type McpSkyLockstakeStakeInput, type McpToolDefinition, type McpToolHandler, type McpToolInputMap, type McpToolName, type McpToolOutputMap, type McpUniswapV4BuildSwapMultisignInput, type McpUniswapV4CreateSwapInput, type McpUniswapV4CreateSwapOutput, type McpUniswapV4QuoteInput, type McpUniswapV4QuoteOutput, type MultisignOutput, chainDetailSchema, evmAddressSchema, evmMultisignCommonInputSchema, getAgentCatalog, getAgentCatalogForMcp, getMcpToolByName, getMcpToolDefinitions, getMcpToolInputSchema, getMcpToolOutputSchema, jsonObjectSchema, keyGenSchema, mcpAaveV4BorrowInputSchema, mcpAaveV4DepositInputSchema, mcpAaveV4RepayInputSchema, mcpAaveV4WithdrawInputSchema, mcpCurveDaoBuildSwapMultisignInputSchema, mcpEthenaClaimInputSchema, mcpEthenaCooldownInputSchema, mcpEthenaRedeemInputSchema, mcpEthenaStakeInputSchema, mcpEulerV2BorrowRepayInputSchema, mcpEulerV2CollateralDepositInputSchema, mcpEulerV2CollateralWithdrawInputSchema, mcpEulerV2IsolatedBorrowInputSchema, mcpEulerV2IsolatedLendInputSchema, mcpEulerV2VaultWithdrawInputSchema, mcpLidoClaimWithdrawalInputSchema, mcpLidoRequestWithdrawalsInputSchema, mcpLidoSubmitInputSchema, mcpLidoUnwrapWstEthInputSchema, mcpLidoWrapStEthInputSchema, mcpMapleDepositInputSchema, mcpMapleRequestRedeemInputSchema, mcpMultisignInput, multisignOutputSchema as mcpMultisignOutputSchema, mcpSkyLockstakeCloseInputSchema, mcpSkyLockstakeDrawInputSchema, mcpSkyLockstakeGetRewardInputSchema, mcpSkyLockstakeStakeInputSchema, mcpSkyLockstakeWipeInputSchema, mcpSkySusdsDepositInputSchema, mcpSkySusdsRedeemInputSchema, mcpUniswapV4BuildSwapMultisignInputSchema, mcpUniswapV4CreateSwapInputSchema, mcpUniswapV4CreateSwapOutputSchema, mcpUniswapV4QuoteInputSchema, mcpUniswapV4QuoteOutputSchema, multisignOutputSchema, parseMcpToolInput, parseMcpToolOutput, uniswapQuoteTradeTypeSchema, zodSchemaToMcpJsonSchema };
|
|
1085
|
+
export { type ChainDetailMcpInput, EVM_COMMON_PARAM_DOCS, type EvmMultisignCommonInput, type KeyGenMcpInput, MANAGEMENT_SIG_DOC, MCP_NON_SUBMIT_TOOL_NAMES, MCP_TOOL_DEFINITIONS, MCP_TOOL_INPUT_SCHEMAS, MCP_TOOL_OUTPUT_SCHEMAS, MULTISIGN_OUTPUT_DOC, type McpAaveV4DepositInput, type McpCurveDaoBuildSwapMultisignInput, type McpCurveDaoQuoteInput, type McpCurveDaoQuoteOutput, type McpEthenaStakeInput, type McpEulerV2IsolatedLendInput, type McpJsonSchema, type McpLidoSubmitInput, type McpMapleDepositInput, type McpSchemaProperty, type McpSkyLockstakeStakeInput, type McpToolDefinition, type McpToolHandler, type McpToolInputMap, type McpToolName, type McpToolOutputMap, type McpUniswapV4BuildSwapMultisignInput, type McpUniswapV4CreateSwapInput, type McpUniswapV4CreateSwapOutput, type McpUniswapV4QuoteInput, type McpUniswapV4QuoteOutput, type MultisignOutput, PROTOCOL_SUPPORT_ADVISORS, type ProtocolSupportAdvisor, type SupportedTokenRow, type TokenFilterKind, chainDetailSchema, evmAddressSchema, evmMultisignCommonInputSchema, getAgentCatalog, getAgentCatalogForMcp, getMcpToolByName, getMcpToolDefinitions, getMcpToolInputSchema, getMcpToolOutputSchema, getProtocolDiscoverySummary, getProtocolSkill, getProtocolSupportAdvisor, getToolsForProtocol, jsonObjectSchema, keyGenSchema, listProtocolSupportAdvisorIds, listProtocolsWithSkills, mcpAaveV4BorrowInputSchema, mcpAaveV4DepositInputSchema, mcpAaveV4RepayInputSchema, mcpAaveV4WithdrawInputSchema, mcpCurveDaoBuildSwapMultisignInputSchema, mcpCurveDaoQuoteInputSchema, mcpCurveDaoQuoteOutputSchema, mcpEthenaClaimInputSchema, mcpEthenaCooldownInputSchema, mcpEthenaRedeemInputSchema, mcpEthenaStakeInputSchema, mcpEulerV2BorrowRepayInputSchema, mcpEulerV2CollateralDepositInputSchema, mcpEulerV2CollateralWithdrawInputSchema, mcpEulerV2IsolatedBorrowInputSchema, mcpEulerV2IsolatedLendInputSchema, mcpEulerV2VaultWithdrawInputSchema, mcpLidoClaimWithdrawalInputSchema, mcpLidoRequestWithdrawalsInputSchema, mcpLidoSubmitInputSchema, mcpLidoUnwrapWstEthInputSchema, mcpLidoWrapStEthInputSchema, mcpMapleDepositInputSchema, mcpMapleRequestRedeemInputSchema, mcpMultisignInput, multisignOutputSchema as mcpMultisignOutputSchema, mcpServerCommonInputSchema, mcpServerMultisignInput, mcpServerSubmitOutputSchema, mcpSkyLockstakeCloseInputSchema, mcpSkyLockstakeDrawInputSchema, mcpSkyLockstakeGetRewardInputSchema, mcpSkyLockstakeStakeInputSchema, mcpSkyLockstakeWipeInputSchema, mcpSkySusdsDepositInputSchema, mcpSkySusdsRedeemInputSchema, mcpUniswapV4BuildSwapMultisignInputSchema, mcpUniswapV4CreateSwapInputSchema, mcpUniswapV4CreateSwapOutputSchema, mcpUniswapV4QuoteInputSchema, mcpUniswapV4QuoteOutputSchema, multisignOutputSchema, parseMcpToolInput, parseMcpToolOutput, uniswapQuoteTradeTypeSchema, zodSchemaToMcpJsonSchema };
|