@continuumdao/ctm-mpc-defi 0.2.0 → 0.2.1
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 +511 -4
- package/dist/agent/catalog.cjs.map +1 -1
- package/dist/agent/catalog.d.ts +140 -20
- package/dist/agent/catalog.js +501 -6
- 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 +12 -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 +27 -226
- package/dist/chains/evm/index.cjs.map +1 -1
- package/dist/chains/evm/index.d.ts +14 -26
- package/dist/chains/evm/index.js +21 -211
- 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 +8 -110
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +5 -39
- package/dist/core/index.js +6 -100
- 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 +238 -1868
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -11
- package/dist/index.js +227 -1839
- package/dist/index.js.map +1 -1
- package/dist/protocols/evm/aave-v4/index.cjs +385 -662
- package/dist/protocols/evm/aave-v4/index.cjs.map +1 -1
- package/dist/protocols/evm/aave-v4/index.d.ts +1 -2
- package/dist/protocols/evm/aave-v4/index.js +385 -662
- package/dist/protocols/evm/aave-v4/index.js.map +1 -1
- package/dist/protocols/evm/curve-dao/index.cjs +24 -124
- package/dist/protocols/evm/curve-dao/index.cjs.map +1 -1
- package/dist/protocols/evm/curve-dao/index.d.ts +3 -4
- package/dist/protocols/evm/curve-dao/index.js +15 -115
- package/dist/protocols/evm/curve-dao/index.js.map +1 -1
- package/dist/protocols/evm/ethena/index.cjs +290 -402
- package/dist/protocols/evm/ethena/index.cjs.map +1 -1
- package/dist/protocols/evm/ethena/index.d.ts +1 -2
- package/dist/protocols/evm/ethena/index.js +291 -403
- package/dist/protocols/evm/ethena/index.js.map +1 -1
- package/dist/protocols/evm/euler-v2/index.cjs +485 -1163
- package/dist/protocols/evm/euler-v2/index.cjs.map +1 -1
- package/dist/protocols/evm/euler-v2/index.d.ts +1 -2
- package/dist/protocols/evm/euler-v2/index.js +486 -1164
- package/dist/protocols/evm/euler-v2/index.js.map +1 -1
- package/dist/protocols/evm/lido/index.cjs +241 -236
- package/dist/protocols/evm/lido/index.cjs.map +1 -1
- package/dist/protocols/evm/lido/index.d.ts +1 -2
- package/dist/protocols/evm/lido/index.js +242 -237
- package/dist/protocols/evm/lido/index.js.map +1 -1
- package/dist/protocols/evm/maple/index.cjs +310 -398
- package/dist/protocols/evm/maple/index.cjs.map +1 -1
- package/dist/protocols/evm/maple/index.d.ts +1 -2
- package/dist/protocols/evm/maple/index.js +311 -399
- package/dist/protocols/evm/maple/index.js.map +1 -1
- package/dist/protocols/evm/sky/index.cjs +238 -233
- package/dist/protocols/evm/sky/index.cjs.map +1 -1
- package/dist/protocols/evm/sky/index.d.ts +1 -2
- package/dist/protocols/evm/sky/index.js +236 -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>;
|
|
@@ -608,12 +715,14 @@ declare const mcpCurveDaoBuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
608
715
|
purposeText: string;
|
|
609
716
|
useCustomGas: boolean;
|
|
610
717
|
chainId: number;
|
|
718
|
+
tokenIn: string;
|
|
719
|
+
tokenOut: string;
|
|
611
720
|
rpcUrl: string;
|
|
612
721
|
executorAddress: string;
|
|
613
722
|
chainDetail: {
|
|
614
723
|
legacy?: boolean | undefined;
|
|
615
|
-
gasLimit?: number | undefined;
|
|
616
724
|
gasPrice?: number | undefined;
|
|
725
|
+
gasLimit?: number | undefined;
|
|
617
726
|
gasMultiplier?: number | undefined;
|
|
618
727
|
baseFee?: number | undefined;
|
|
619
728
|
priorityFee?: number | undefined;
|
|
@@ -621,8 +730,6 @@ declare const mcpCurveDaoBuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
621
730
|
} & {
|
|
622
731
|
[k: string]: unknown;
|
|
623
732
|
};
|
|
624
|
-
tokenIn: string;
|
|
625
|
-
tokenOut: string;
|
|
626
733
|
slippagePercent: number;
|
|
627
734
|
amountHuman: string;
|
|
628
735
|
customGasChainDetails?: Record<string, unknown> | undefined;
|
|
@@ -635,12 +742,14 @@ declare const mcpCurveDaoBuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
635
742
|
purposeText: string;
|
|
636
743
|
useCustomGas: boolean;
|
|
637
744
|
chainId: number;
|
|
745
|
+
tokenIn: string;
|
|
746
|
+
tokenOut: string;
|
|
638
747
|
rpcUrl: string;
|
|
639
748
|
executorAddress: string;
|
|
640
749
|
chainDetail: {
|
|
641
750
|
legacy?: boolean | undefined;
|
|
642
|
-
gasLimit?: number | undefined;
|
|
643
751
|
gasPrice?: number | undefined;
|
|
752
|
+
gasLimit?: number | undefined;
|
|
644
753
|
gasMultiplier?: number | undefined;
|
|
645
754
|
baseFee?: number | undefined;
|
|
646
755
|
priorityFee?: number | undefined;
|
|
@@ -648,8 +757,6 @@ declare const mcpCurveDaoBuildSwapMultisignInputSchema: z.ZodObject<{
|
|
|
648
757
|
} & {
|
|
649
758
|
[k: string]: unknown;
|
|
650
759
|
};
|
|
651
|
-
tokenIn: string;
|
|
652
|
-
tokenOut: string;
|
|
653
760
|
slippagePercent: number;
|
|
654
761
|
amountHuman: string;
|
|
655
762
|
customGasChainDetails?: Record<string, unknown> | undefined;
|
|
@@ -903,7 +1010,14 @@ declare function getAgentCatalog(): {
|
|
|
903
1010
|
};
|
|
904
1011
|
};
|
|
905
1012
|
managementSig: {
|
|
906
|
-
readonly description: "Management POST bodies embed NodeMgtKeySig: { nonce, clientSig, nodeKey }. Sign JSON with clientSig cleared; POST with
|
|
1013
|
+
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.";
|
|
1014
|
+
readonly exceptions: {
|
|
1015
|
+
readonly configUpdateImplement: "POST /configUpdateImplement: include nodeKey + plannedYaml + signedMessage (opaque configUpdateImplement|<sha256> line). Sign the opaque line bytes, not the JSON body.";
|
|
1016
|
+
readonly postMSQTTKey: "POST /postMSQTTKey: include nodeKey + caCertPem + clientSig. Sign caCertPem PEM bytes directly (use buildPostMqttKeyBody).";
|
|
1017
|
+
readonly addManagementKey: "POST /addManagementKey / removeManagementKey (EIP-191): may still use signedMessage equal to the canonical JSON string for dual-mode Ethereum signing.";
|
|
1018
|
+
readonly agentLlmConfig: "POST /agentLlmConfig / agentLlmApiKey: sign canonical JSON with action + clientSig cleared; POST body has nonce, clientSig, nodeKey, endpoint fields — no signedMessage field.";
|
|
1019
|
+
readonly multiSignRequest: "POST /multiSignRequest (client key, not management): POST { ...bodyForSign, clientSig, signedMessage: messageToSign }.";
|
|
1020
|
+
};
|
|
907
1021
|
readonly fields: {
|
|
908
1022
|
readonly nonce: {
|
|
909
1023
|
readonly type: "number";
|
|
@@ -921,10 +1035,15 @@ declare function getAgentCatalog(): {
|
|
|
921
1035
|
readonly helpers: {
|
|
922
1036
|
readonly managementSigFields: "Base envelope with clientSig cleared.";
|
|
923
1037
|
readonly buildManagementPostBody: "Spread managementSigFields then endpoint fields.";
|
|
1038
|
+
readonly buildPostMqttKeyBody: "POST /postMSQTTKey unsigned body (sign PEM directly).";
|
|
1039
|
+
readonly buildPostPreferredKeyGenBody: "POST /postPreferredKeyGen unsigned body.";
|
|
1040
|
+
readonly buildConfigUpdateImplementPostBody: "POST /configUpdateImplement with opaque signedMessage line.";
|
|
1041
|
+
readonly buildSignRequestAgreeUnsignedBody: "POST /signRequestAgree unsigned body with nodeKey.";
|
|
924
1042
|
readonly messageToSignManagementBody: "Canonical JSON string to sign.";
|
|
925
1043
|
readonly withManagementClientSig: "Attach signature to POST body.";
|
|
926
1044
|
readonly fetchNodeKey: "GET /getNodeKey via nodeFetchWithReadAuth.";
|
|
927
1045
|
readonly fetchManagementNonce: "GET nonce for Ed25519 or Ethereum management key.";
|
|
1046
|
+
readonly fetchPreferredKeyGen: "GET /getPreferredKeyGen for agent default KeyGen.";
|
|
928
1047
|
};
|
|
929
1048
|
};
|
|
930
1049
|
inputSchemas: Record<string, zod.ZodType<any, zod.ZodTypeDef, any>>;
|
|
@@ -932,8 +1051,9 @@ declare function getAgentCatalog(): {
|
|
|
932
1051
|
workflow: {
|
|
933
1052
|
evmSwapTypical: string[];
|
|
934
1053
|
managementPostTypical: string[];
|
|
1054
|
+
agentMultisignTypical: string[];
|
|
935
1055
|
};
|
|
936
1056
|
};
|
|
937
1057
|
};
|
|
938
1058
|
|
|
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 };
|
|
1059
|
+
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 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, 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 };
|