@compass-labs/api-sdk 0.5.47 → 0.5.48
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 +5 -0
- package/bin/mcp-server.js +436 -184
- package/bin/mcp-server.js.map +15 -11
- package/dist/commonjs/funcs/swapOdos.d.ts +25 -0
- package/dist/commonjs/funcs/swapOdos.d.ts.map +1 -0
- package/dist/commonjs/funcs/swapOdos.js +125 -0
- package/dist/commonjs/funcs/swapOdos.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/swapOdos.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/swapOdos.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/swapOdos.js +72 -0
- package/dist/commonjs/mcp-server/tools/swapOdos.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/odosswapparams.d.ts +122 -0
- package/dist/commonjs/models/components/odosswapparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/odosswapparams.js +162 -0
- package/dist/commonjs/models/components/odosswapparams.js.map +1 -0
- package/dist/commonjs/models/components/odosswaprequest.d.ts +133 -0
- package/dist/commonjs/models/components/odosswaprequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/odosswaprequest.js +167 -0
- package/dist/commonjs/models/components/odosswaprequest.js.map +1 -0
- package/dist/commonjs/models/components/setallowanceparams.d.ts +3 -0
- package/dist/commonjs/models/components/setallowanceparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/setallowanceparams.js +1 -0
- package/dist/commonjs/models/components/setallowanceparams.js.map +1 -1
- package/dist/commonjs/models/components/setallowancerequest.d.ts +3 -0
- package/dist/commonjs/models/components/setallowancerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/setallowancerequest.js +1 -0
- package/dist/commonjs/models/components/setallowancerequest.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +9 -0
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +13 -0
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.d.ts +3 -0
- package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.js +1 -0
- package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/swap.d.ts +19 -0
- package/dist/commonjs/sdk/swap.d.ts.map +1 -0
- package/dist/commonjs/sdk/swap.js +29 -0
- package/dist/commonjs/sdk/swap.js.map +1 -0
- package/dist/esm/funcs/swapOdos.d.ts +25 -0
- package/dist/esm/funcs/swapOdos.d.ts.map +1 -0
- package/dist/esm/funcs/swapOdos.js +89 -0
- package/dist/esm/funcs/swapOdos.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/swapOdos.d.ts +8 -0
- package/dist/esm/mcp-server/tools/swapOdos.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/swapOdos.js +36 -0
- package/dist/esm/mcp-server/tools/swapOdos.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/odosswapparams.d.ts +122 -0
- package/dist/esm/models/components/odosswapparams.d.ts.map +1 -0
- package/dist/esm/models/components/odosswapparams.js +118 -0
- package/dist/esm/models/components/odosswapparams.js.map +1 -0
- package/dist/esm/models/components/odosswaprequest.d.ts +133 -0
- package/dist/esm/models/components/odosswaprequest.d.ts.map +1 -0
- package/dist/esm/models/components/odosswaprequest.js +123 -0
- package/dist/esm/models/components/odosswaprequest.js.map +1 -0
- package/dist/esm/models/components/setallowanceparams.d.ts +3 -0
- package/dist/esm/models/components/setallowanceparams.d.ts.map +1 -1
- package/dist/esm/models/components/setallowanceparams.js +1 -0
- package/dist/esm/models/components/setallowanceparams.js.map +1 -1
- package/dist/esm/models/components/setallowancerequest.d.ts +3 -0
- package/dist/esm/models/components/setallowancerequest.d.ts.map +1 -1
- package/dist/esm/models/components/setallowancerequest.js +1 -0
- package/dist/esm/models/components/setallowancerequest.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +9 -0
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +13 -0
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/models/operations/genericallowance.d.ts +3 -0
- package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/genericallowance.js +1 -0
- package/dist/esm/models/operations/genericallowance.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/swap.d.ts +19 -0
- package/dist/esm/sdk/swap.d.ts.map +1 -0
- package/dist/esm/sdk/swap.js +25 -0
- package/dist/esm/sdk/swap.js.map +1 -0
- package/docs/sdks/swap/README.md +99 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/swapOdos.ts +176 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/swapOdos.ts +45 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/odosswapparams.ts +269 -0
- package/src/models/components/odosswaprequest.ts +286 -0
- package/src/models/components/setallowanceparams.ts +1 -0
- package/src/models/components/setallowancerequest.ts +1 -0
- package/src/models/components/useroperation.ts +30 -0
- package/src/models/operations/genericallowance.ts +1 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/swap.ts +34 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34264
34264
|
SDK_METADATA = {
|
|
34265
34265
|
language: "typescript",
|
|
34266
34266
|
openapiDocVersion: "0.0.1",
|
|
34267
|
-
sdkVersion: "0.5.
|
|
34268
|
-
genVersion: "2.
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34267
|
+
sdkVersion: "0.5.48",
|
|
34268
|
+
genVersion: "2.657.1",
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.5.48 2.657.1 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -38008,6 +38008,64 @@ var init_morphowithdrawparams = __esm(() => {
|
|
|
38008
38008
|
})(MorphoWithdrawParams$ ||= {});
|
|
38009
38009
|
});
|
|
38010
38010
|
|
|
38011
|
+
// src/models/components/odosswapparams.ts
|
|
38012
|
+
var OdosSwapParamsTokenIn$inboundSchema, OdosSwapParamsTokenIn$outboundSchema, OdosSwapParamsTokenIn$, OdosSwapParamsTokenOut$inboundSchema, OdosSwapParamsTokenOut$outboundSchema, OdosSwapParamsTokenOut$, OdosSwapParamsAmount$inboundSchema, OdosSwapParamsAmount$outboundSchema, OdosSwapParamsAmount$, OdosSwapParams$inboundSchema, OdosSwapParams$outboundSchema, OdosSwapParams$;
|
|
38013
|
+
var init_odosswapparams = __esm(() => {
|
|
38014
|
+
init_zod();
|
|
38015
|
+
init_primitives();
|
|
38016
|
+
init_tokenenum();
|
|
38017
|
+
OdosSwapParamsTokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38018
|
+
OdosSwapParamsTokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
38019
|
+
((OdosSwapParamsTokenIn$) => {
|
|
38020
|
+
OdosSwapParamsTokenIn$.inboundSchema = OdosSwapParamsTokenIn$inboundSchema;
|
|
38021
|
+
OdosSwapParamsTokenIn$.outboundSchema = OdosSwapParamsTokenIn$outboundSchema;
|
|
38022
|
+
})(OdosSwapParamsTokenIn$ ||= {});
|
|
38023
|
+
OdosSwapParamsTokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38024
|
+
OdosSwapParamsTokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
38025
|
+
((OdosSwapParamsTokenOut$) => {
|
|
38026
|
+
OdosSwapParamsTokenOut$.inboundSchema = OdosSwapParamsTokenOut$inboundSchema;
|
|
38027
|
+
OdosSwapParamsTokenOut$.outboundSchema = OdosSwapParamsTokenOut$outboundSchema;
|
|
38028
|
+
})(OdosSwapParamsTokenOut$ ||= {});
|
|
38029
|
+
OdosSwapParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38030
|
+
OdosSwapParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38031
|
+
((OdosSwapParamsAmount$) => {
|
|
38032
|
+
OdosSwapParamsAmount$.inboundSchema = OdosSwapParamsAmount$inboundSchema;
|
|
38033
|
+
OdosSwapParamsAmount$.outboundSchema = OdosSwapParamsAmount$outboundSchema;
|
|
38034
|
+
})(OdosSwapParamsAmount$ ||= {});
|
|
38035
|
+
OdosSwapParams$inboundSchema = objectType({
|
|
38036
|
+
action_type: literalType("ODOS_SWAP").default("ODOS_SWAP"),
|
|
38037
|
+
token_in: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
38038
|
+
token_out: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
38039
|
+
amount: unionType([numberType(), stringType()]),
|
|
38040
|
+
max_slippage_percent: numberType()
|
|
38041
|
+
}).transform((v2) => {
|
|
38042
|
+
return remap(v2, {
|
|
38043
|
+
action_type: "actionType",
|
|
38044
|
+
token_in: "tokenIn",
|
|
38045
|
+
token_out: "tokenOut",
|
|
38046
|
+
max_slippage_percent: "maxSlippagePercent"
|
|
38047
|
+
});
|
|
38048
|
+
});
|
|
38049
|
+
OdosSwapParams$outboundSchema = objectType({
|
|
38050
|
+
actionType: literalType("ODOS_SWAP").default("ODOS_SWAP"),
|
|
38051
|
+
tokenIn: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
38052
|
+
tokenOut: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
38053
|
+
amount: unionType([numberType(), stringType()]),
|
|
38054
|
+
maxSlippagePercent: numberType()
|
|
38055
|
+
}).transform((v2) => {
|
|
38056
|
+
return remap(v2, {
|
|
38057
|
+
actionType: "action_type",
|
|
38058
|
+
tokenIn: "token_in",
|
|
38059
|
+
tokenOut: "token_out",
|
|
38060
|
+
maxSlippagePercent: "max_slippage_percent"
|
|
38061
|
+
});
|
|
38062
|
+
});
|
|
38063
|
+
((OdosSwapParams$) => {
|
|
38064
|
+
OdosSwapParams$.inboundSchema = OdosSwapParams$inboundSchema;
|
|
38065
|
+
OdosSwapParams$.outboundSchema = OdosSwapParams$outboundSchema;
|
|
38066
|
+
})(OdosSwapParams$ ||= {});
|
|
38067
|
+
});
|
|
38068
|
+
|
|
38011
38069
|
// src/models/components/pendleaddliquidityparams.ts
|
|
38012
38070
|
var PendleAddLiquidityParamsAmount$inboundSchema, PendleAddLiquidityParamsAmount$outboundSchema, PendleAddLiquidityParamsAmount$, PendleAddLiquidityParams$inboundSchema, PendleAddLiquidityParams$outboundSchema, PendleAddLiquidityParams$;
|
|
38013
38071
|
var init_pendleaddliquidityparams = __esm(() => {
|
|
@@ -38300,7 +38358,8 @@ var init_setallowanceparams = __esm(() => {
|
|
|
38300
38358
|
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
38301
38359
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
38302
38360
|
SkyUsdsVault: "SkyUsdsVault",
|
|
38303
|
-
PendleRouter: "PendleRouter"
|
|
38361
|
+
PendleRouter: "PendleRouter",
|
|
38362
|
+
OdosRouter: "OdosRouter"
|
|
38304
38363
|
};
|
|
38305
38364
|
SetAllowanceParamsToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38306
38365
|
SetAllowanceParamsToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
@@ -39012,6 +39071,7 @@ var init_useroperation = __esm(() => {
|
|
|
39012
39071
|
init_morphosupplycollateralparams();
|
|
39013
39072
|
init_morphowithdrawcollateralparams();
|
|
39014
39073
|
init_morphowithdrawparams();
|
|
39074
|
+
init_odosswapparams();
|
|
39015
39075
|
init_pendleaddliquidityparams();
|
|
39016
39076
|
init_pendlebuyptparams();
|
|
39017
39077
|
init_pendlebuyytparams();
|
|
@@ -39049,6 +39109,9 @@ var init_useroperation = __esm(() => {
|
|
|
39049
39109
|
UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39050
39110
|
UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39051
39111
|
AerodromeSlipstreamSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39112
|
+
OdosSwapParams$inboundSchema.and(objectType({ action_type: literalType("ODOS_SWAP") }).transform((v2) => ({
|
|
39113
|
+
actionType: v2.action_type
|
|
39114
|
+
}))),
|
|
39052
39115
|
AaveBorrowParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_BORROW") }).transform((v2) => ({
|
|
39053
39116
|
actionType: v2.action_type
|
|
39054
39117
|
}))),
|
|
@@ -39133,6 +39196,9 @@ var init_useroperation = __esm(() => {
|
|
|
39133
39196
|
UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39134
39197
|
UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39135
39198
|
AerodromeSlipstreamSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39199
|
+
OdosSwapParams$outboundSchema.and(objectType({ actionType: literalType("ODOS_SWAP") }).transform((v2) => ({
|
|
39200
|
+
action_type: v2.actionType
|
|
39201
|
+
}))),
|
|
39136
39202
|
AaveBorrowParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_BORROW") }).transform((v2) => ({
|
|
39137
39203
|
action_type: v2.actionType
|
|
39138
39204
|
}))),
|
|
@@ -39224,6 +39290,9 @@ var init_useroperation = __esm(() => {
|
|
|
39224
39290
|
UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39225
39291
|
UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39226
39292
|
AerodromeSlipstreamSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39293
|
+
OdosSwapParams$inboundSchema.and(objectType({ action_type: literalType("ODOS_SWAP") }).transform((v2) => ({
|
|
39294
|
+
actionType: v2.action_type
|
|
39295
|
+
}))),
|
|
39227
39296
|
AaveBorrowParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_BORROW") }).transform((v2) => ({
|
|
39228
39297
|
actionType: v2.action_type
|
|
39229
39298
|
}))),
|
|
@@ -39310,6 +39379,9 @@ var init_useroperation = __esm(() => {
|
|
|
39310
39379
|
UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39311
39380
|
UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39312
39381
|
AerodromeSlipstreamSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39382
|
+
OdosSwapParams$outboundSchema.and(objectType({ actionType: literalType("ODOS_SWAP") }).transform((v2) => ({
|
|
39383
|
+
action_type: v2.actionType
|
|
39384
|
+
}))),
|
|
39313
39385
|
AaveBorrowParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_BORROW") }).transform((v2) => ({
|
|
39314
39386
|
action_type: v2.actionType
|
|
39315
39387
|
}))),
|
|
@@ -40842,6 +40914,69 @@ var init_multicallexecuterequest = __esm(() => {
|
|
|
40842
40914
|
})(MulticallExecuteRequest$ ||= {});
|
|
40843
40915
|
});
|
|
40844
40916
|
|
|
40917
|
+
// src/models/components/odosswaprequest.ts
|
|
40918
|
+
var OdosSwapRequestTokenIn$inboundSchema, OdosSwapRequestTokenIn$outboundSchema, OdosSwapRequestTokenIn$, OdosSwapRequestTokenOut$inboundSchema, OdosSwapRequestTokenOut$outboundSchema, OdosSwapRequestTokenOut$, OdosSwapRequestAmount$inboundSchema, OdosSwapRequestAmount$outboundSchema, OdosSwapRequestAmount$, OdosSwapRequest$inboundSchema, OdosSwapRequest$outboundSchema, OdosSwapRequest$;
|
|
40919
|
+
var init_odosswaprequest = __esm(() => {
|
|
40920
|
+
init_zod();
|
|
40921
|
+
init_primitives();
|
|
40922
|
+
init_chain();
|
|
40923
|
+
init_tokenenum();
|
|
40924
|
+
OdosSwapRequestTokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
40925
|
+
OdosSwapRequestTokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
40926
|
+
((OdosSwapRequestTokenIn$) => {
|
|
40927
|
+
OdosSwapRequestTokenIn$.inboundSchema = OdosSwapRequestTokenIn$inboundSchema;
|
|
40928
|
+
OdosSwapRequestTokenIn$.outboundSchema = OdosSwapRequestTokenIn$outboundSchema;
|
|
40929
|
+
})(OdosSwapRequestTokenIn$ ||= {});
|
|
40930
|
+
OdosSwapRequestTokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
40931
|
+
OdosSwapRequestTokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
40932
|
+
((OdosSwapRequestTokenOut$) => {
|
|
40933
|
+
OdosSwapRequestTokenOut$.inboundSchema = OdosSwapRequestTokenOut$inboundSchema;
|
|
40934
|
+
OdosSwapRequestTokenOut$.outboundSchema = OdosSwapRequestTokenOut$outboundSchema;
|
|
40935
|
+
})(OdosSwapRequestTokenOut$ ||= {});
|
|
40936
|
+
OdosSwapRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
40937
|
+
OdosSwapRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
40938
|
+
((OdosSwapRequestAmount$) => {
|
|
40939
|
+
OdosSwapRequestAmount$.inboundSchema = OdosSwapRequestAmount$inboundSchema;
|
|
40940
|
+
OdosSwapRequestAmount$.outboundSchema = OdosSwapRequestAmount$outboundSchema;
|
|
40941
|
+
})(OdosSwapRequestAmount$ ||= {});
|
|
40942
|
+
OdosSwapRequest$inboundSchema = objectType({
|
|
40943
|
+
action_type: literalType("ODOS_SWAP").default("ODOS_SWAP"),
|
|
40944
|
+
token_in: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
40945
|
+
token_out: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
40946
|
+
amount: unionType([numberType(), stringType()]),
|
|
40947
|
+
max_slippage_percent: numberType(),
|
|
40948
|
+
chain: Chain$inboundSchema,
|
|
40949
|
+
sender: stringType()
|
|
40950
|
+
}).transform((v2) => {
|
|
40951
|
+
return remap(v2, {
|
|
40952
|
+
action_type: "actionType",
|
|
40953
|
+
token_in: "tokenIn",
|
|
40954
|
+
token_out: "tokenOut",
|
|
40955
|
+
max_slippage_percent: "maxSlippagePercent"
|
|
40956
|
+
});
|
|
40957
|
+
});
|
|
40958
|
+
OdosSwapRequest$outboundSchema = objectType({
|
|
40959
|
+
actionType: literalType("ODOS_SWAP").default("ODOS_SWAP"),
|
|
40960
|
+
tokenIn: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
40961
|
+
tokenOut: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
40962
|
+
amount: unionType([numberType(), stringType()]),
|
|
40963
|
+
maxSlippagePercent: numberType(),
|
|
40964
|
+
chain: Chain$outboundSchema,
|
|
40965
|
+
sender: stringType()
|
|
40966
|
+
}).transform((v2) => {
|
|
40967
|
+
return remap(v2, {
|
|
40968
|
+
actionType: "action_type",
|
|
40969
|
+
tokenIn: "token_in",
|
|
40970
|
+
tokenOut: "token_out",
|
|
40971
|
+
maxSlippagePercent: "max_slippage_percent"
|
|
40972
|
+
});
|
|
40973
|
+
});
|
|
40974
|
+
((OdosSwapRequest$) => {
|
|
40975
|
+
OdosSwapRequest$.inboundSchema = OdosSwapRequest$inboundSchema;
|
|
40976
|
+
OdosSwapRequest$.outboundSchema = OdosSwapRequest$outboundSchema;
|
|
40977
|
+
})(OdosSwapRequest$ ||= {});
|
|
40978
|
+
});
|
|
40979
|
+
|
|
40845
40980
|
// src/models/components/openposition.ts
|
|
40846
40981
|
var OpenPosition$inboundSchema, OpenPosition$outboundSchema, OpenPosition$;
|
|
40847
40982
|
var init_openposition = __esm(() => {
|
|
@@ -41427,7 +41562,8 @@ var init_setallowancerequest = __esm(() => {
|
|
|
41427
41562
|
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
41428
41563
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
41429
41564
|
SkyUsdsVault: "SkyUsdsVault",
|
|
41430
|
-
PendleRouter: "PendleRouter"
|
|
41565
|
+
PendleRouter: "PendleRouter",
|
|
41566
|
+
OdosRouter: "OdosRouter"
|
|
41431
41567
|
};
|
|
41432
41568
|
SetAllowanceRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
41433
41569
|
SetAllowanceRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
@@ -42722,6 +42858,8 @@ var init_components = __esm(() => {
|
|
|
42722
42858
|
init_multicallauthorizationrequest();
|
|
42723
42859
|
init_multicallauthorizationresponse();
|
|
42724
42860
|
init_multicallexecuterequest();
|
|
42861
|
+
init_odosswapparams();
|
|
42862
|
+
init_odosswaprequest();
|
|
42725
42863
|
init_openposition();
|
|
42726
42864
|
init_pendleaddliquidityparams();
|
|
42727
42865
|
init_pendleaddliquidityrequest();
|
|
@@ -43737,7 +43875,8 @@ var init_genericallowance = __esm(() => {
|
|
|
43737
43875
|
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
43738
43876
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
43739
43877
|
SkyUsdsVault: "SkyUsdsVault",
|
|
43740
|
-
PendleRouter: "PendleRouter"
|
|
43878
|
+
PendleRouter: "PendleRouter",
|
|
43879
|
+
OdosRouter: "OdosRouter"
|
|
43741
43880
|
};
|
|
43742
43881
|
GenericAllowanceChain$inboundSchema = nativeEnumType(GenericAllowanceChain);
|
|
43743
43882
|
GenericAllowanceChain$outboundSchema = GenericAllowanceChain$inboundSchema;
|
|
@@ -51165,11 +51304,122 @@ Generate a list of user operations for smart account batching.`,
|
|
|
51165
51304
|
};
|
|
51166
51305
|
});
|
|
51167
51306
|
|
|
51168
|
-
// src/funcs/
|
|
51169
|
-
function
|
|
51307
|
+
// src/funcs/swapOdos.ts
|
|
51308
|
+
function swapOdos(client, request, options) {
|
|
51170
51309
|
return new APIPromise($do53(client, request, options));
|
|
51171
51310
|
}
|
|
51172
51311
|
async function $do53(client, request, options) {
|
|
51312
|
+
const parsed = safeParse(request, (value) => OdosSwapRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51313
|
+
if (!parsed.ok) {
|
|
51314
|
+
return [parsed, { status: "invalid" }];
|
|
51315
|
+
}
|
|
51316
|
+
const payload = parsed.value;
|
|
51317
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
51318
|
+
const path = pathToFunc("/v0/swap/odos")();
|
|
51319
|
+
const headers = new Headers(compactMap({
|
|
51320
|
+
"Content-Type": "application/json",
|
|
51321
|
+
Accept: "application/json"
|
|
51322
|
+
}));
|
|
51323
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
51324
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
51325
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
51326
|
+
const context = {
|
|
51327
|
+
options: client._options,
|
|
51328
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
51329
|
+
operationID: "swap_odos",
|
|
51330
|
+
oAuth2Scopes: [],
|
|
51331
|
+
resolvedSecurity: requestSecurity,
|
|
51332
|
+
securitySource: client._options.apiKeyAuth,
|
|
51333
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
51334
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
51335
|
+
};
|
|
51336
|
+
const requestRes = client._createRequest(context, {
|
|
51337
|
+
security: requestSecurity,
|
|
51338
|
+
method: "POST",
|
|
51339
|
+
baseURL: options?.serverURL,
|
|
51340
|
+
path,
|
|
51341
|
+
headers,
|
|
51342
|
+
body,
|
|
51343
|
+
userAgent: client._options.userAgent,
|
|
51344
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
51345
|
+
}, options);
|
|
51346
|
+
if (!requestRes.ok) {
|
|
51347
|
+
return [requestRes, { status: "invalid" }];
|
|
51348
|
+
}
|
|
51349
|
+
const req = requestRes.value;
|
|
51350
|
+
const doResult = await client._do(req, {
|
|
51351
|
+
context,
|
|
51352
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
51353
|
+
retryConfig: context.retryConfig,
|
|
51354
|
+
retryCodes: context.retryCodes
|
|
51355
|
+
});
|
|
51356
|
+
if (!doResult.ok) {
|
|
51357
|
+
return [doResult, { status: "request-error", request: req }];
|
|
51358
|
+
}
|
|
51359
|
+
const response = doResult.value;
|
|
51360
|
+
const responseFields = {
|
|
51361
|
+
HttpMeta: { Response: response, Request: req }
|
|
51362
|
+
};
|
|
51363
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51364
|
+
if (!result.ok) {
|
|
51365
|
+
return [result, { status: "complete", request: req, response }];
|
|
51366
|
+
}
|
|
51367
|
+
return [result, { status: "complete", request: req, response }];
|
|
51368
|
+
}
|
|
51369
|
+
var init_swapOdos = __esm(() => {
|
|
51370
|
+
init_encodings();
|
|
51371
|
+
init_matchers();
|
|
51372
|
+
init_primitives();
|
|
51373
|
+
init_schemas();
|
|
51374
|
+
init_security();
|
|
51375
|
+
init_url();
|
|
51376
|
+
init_components();
|
|
51377
|
+
init_errors2();
|
|
51378
|
+
init_async();
|
|
51379
|
+
});
|
|
51380
|
+
|
|
51381
|
+
// src/mcp-server/tools/swapOdos.ts
|
|
51382
|
+
var args53, tool$swapOdos;
|
|
51383
|
+
var init_swapOdos2 = __esm(() => {
|
|
51384
|
+
init_swapOdos();
|
|
51385
|
+
init_components();
|
|
51386
|
+
init_tools();
|
|
51387
|
+
args53 = {
|
|
51388
|
+
request: OdosSwapRequest$inboundSchema
|
|
51389
|
+
};
|
|
51390
|
+
tool$swapOdos = {
|
|
51391
|
+
name: "swap-odos",
|
|
51392
|
+
description: `Odos Swap
|
|
51393
|
+
|
|
51394
|
+
Swap between two tokens using Odos Smart Order Routing.
|
|
51395
|
+
<Info>
|
|
51396
|
+
**Required Allowances**
|
|
51397
|
+
|
|
51398
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
51399
|
+
|
|
51400
|
+
- \`OdosRouter\`
|
|
51401
|
+
</Info>
|
|
51402
|
+
`,
|
|
51403
|
+
args: args53,
|
|
51404
|
+
tool: async (client, args54, ctx) => {
|
|
51405
|
+
const [result, apiCall] = await swapOdos(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51406
|
+
if (!result.ok) {
|
|
51407
|
+
return {
|
|
51408
|
+
content: [{ type: "text", text: result.error.message }],
|
|
51409
|
+
isError: true
|
|
51410
|
+
};
|
|
51411
|
+
}
|
|
51412
|
+
const value = result.value;
|
|
51413
|
+
return formatResult(value, apiCall);
|
|
51414
|
+
}
|
|
51415
|
+
};
|
|
51416
|
+
});
|
|
51417
|
+
|
|
51418
|
+
// src/funcs/tokenAddress.ts
|
|
51419
|
+
function tokenAddress(client, request, options) {
|
|
51420
|
+
return new APIPromise($do54(client, request, options));
|
|
51421
|
+
}
|
|
51422
|
+
async function $do54(client, request, options) {
|
|
51173
51423
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51174
51424
|
if (!parsed.ok) {
|
|
51175
51425
|
return [parsed, { status: "invalid" }];
|
|
@@ -51245,12 +51495,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
51245
51495
|
});
|
|
51246
51496
|
|
|
51247
51497
|
// src/mcp-server/tools/tokenAddress.ts
|
|
51248
|
-
var
|
|
51498
|
+
var args54, tool$tokenAddress;
|
|
51249
51499
|
var init_tokenAddress2 = __esm(() => {
|
|
51250
51500
|
init_tokenAddress();
|
|
51251
51501
|
init_operations();
|
|
51252
51502
|
init_tools();
|
|
51253
|
-
|
|
51503
|
+
args54 = {
|
|
51254
51504
|
request: TokenAddressRequest$inboundSchema
|
|
51255
51505
|
};
|
|
51256
51506
|
tool$tokenAddress = {
|
|
@@ -51258,9 +51508,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
51258
51508
|
description: `Token Address
|
|
51259
51509
|
|
|
51260
51510
|
This endpoint retrieves the address for a token supported by us.`,
|
|
51261
|
-
args:
|
|
51262
|
-
tool: async (client,
|
|
51263
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
51511
|
+
args: args54,
|
|
51512
|
+
tool: async (client, args55, ctx) => {
|
|
51513
|
+
const [result, apiCall] = await tokenAddress(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51264
51514
|
if (!result.ok) {
|
|
51265
51515
|
return {
|
|
51266
51516
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51275,9 +51525,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
51275
51525
|
|
|
51276
51526
|
// src/funcs/tokenBalance.ts
|
|
51277
51527
|
function tokenBalance(client, request, options) {
|
|
51278
|
-
return new APIPromise($
|
|
51528
|
+
return new APIPromise($do55(client, request, options));
|
|
51279
51529
|
}
|
|
51280
|
-
async function $
|
|
51530
|
+
async function $do55(client, request, options) {
|
|
51281
51531
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51282
51532
|
if (!parsed.ok) {
|
|
51283
51533
|
return [parsed, { status: "invalid" }];
|
|
@@ -51354,12 +51604,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
51354
51604
|
});
|
|
51355
51605
|
|
|
51356
51606
|
// src/mcp-server/tools/tokenBalance.ts
|
|
51357
|
-
var
|
|
51607
|
+
var args55, tool$tokenBalance;
|
|
51358
51608
|
var init_tokenBalance2 = __esm(() => {
|
|
51359
51609
|
init_tokenBalance();
|
|
51360
51610
|
init_operations();
|
|
51361
51611
|
init_tools();
|
|
51362
|
-
|
|
51612
|
+
args55 = {
|
|
51363
51613
|
request: TokenBalanceRequest$inboundSchema
|
|
51364
51614
|
};
|
|
51365
51615
|
tool$tokenBalance = {
|
|
@@ -51367,9 +51617,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
51367
51617
|
description: `Token Balance
|
|
51368
51618
|
|
|
51369
51619
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
51370
|
-
args:
|
|
51371
|
-
tool: async (client,
|
|
51372
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
51620
|
+
args: args55,
|
|
51621
|
+
tool: async (client, args56, ctx) => {
|
|
51622
|
+
const [result, apiCall] = await tokenBalance(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51373
51623
|
if (!result.ok) {
|
|
51374
51624
|
return {
|
|
51375
51625
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51384,9 +51634,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
51384
51634
|
|
|
51385
51635
|
// src/funcs/tokenPrice.ts
|
|
51386
51636
|
function tokenPrice(client, request, options) {
|
|
51387
|
-
return new APIPromise($
|
|
51637
|
+
return new APIPromise($do56(client, request, options));
|
|
51388
51638
|
}
|
|
51389
|
-
async function $
|
|
51639
|
+
async function $do56(client, request, options) {
|
|
51390
51640
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51391
51641
|
if (!parsed.ok) {
|
|
51392
51642
|
return [parsed, { status: "invalid" }];
|
|
@@ -51463,12 +51713,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
51463
51713
|
});
|
|
51464
51714
|
|
|
51465
51715
|
// src/mcp-server/tools/tokenPrice.ts
|
|
51466
|
-
var
|
|
51716
|
+
var args56, tool$tokenPrice;
|
|
51467
51717
|
var init_tokenPrice2 = __esm(() => {
|
|
51468
51718
|
init_tokenPrice();
|
|
51469
51719
|
init_operations();
|
|
51470
51720
|
init_tools();
|
|
51471
|
-
|
|
51721
|
+
args56 = {
|
|
51472
51722
|
request: TokenPriceRequest$inboundSchema
|
|
51473
51723
|
};
|
|
51474
51724
|
tool$tokenPrice = {
|
|
@@ -51480,9 +51730,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
51480
51730
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
51481
51731
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
51482
51732
|
with the update frequency of the oracle.`,
|
|
51483
|
-
args:
|
|
51484
|
-
tool: async (client,
|
|
51485
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
51733
|
+
args: args56,
|
|
51734
|
+
tool: async (client, args57, ctx) => {
|
|
51735
|
+
const [result, apiCall] = await tokenPrice(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51486
51736
|
if (!result.ok) {
|
|
51487
51737
|
return {
|
|
51488
51738
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51497,9 +51747,9 @@ with the update frequency of the oracle.`,
|
|
|
51497
51747
|
|
|
51498
51748
|
// src/funcs/tokenTransfer.ts
|
|
51499
51749
|
function tokenTransfer(client, request, options) {
|
|
51500
|
-
return new APIPromise($
|
|
51750
|
+
return new APIPromise($do57(client, request, options));
|
|
51501
51751
|
}
|
|
51502
|
-
async function $
|
|
51752
|
+
async function $do57(client, request, options) {
|
|
51503
51753
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51504
51754
|
if (!parsed.ok) {
|
|
51505
51755
|
return [parsed, { status: "invalid" }];
|
|
@@ -51570,12 +51820,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
51570
51820
|
});
|
|
51571
51821
|
|
|
51572
51822
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
51573
|
-
var
|
|
51823
|
+
var args57, tool$tokenTransfer;
|
|
51574
51824
|
var init_tokenTransfer2 = __esm(() => {
|
|
51575
51825
|
init_tokenTransfer();
|
|
51576
51826
|
init_components();
|
|
51577
51827
|
init_tools();
|
|
51578
|
-
|
|
51828
|
+
args57 = {
|
|
51579
51829
|
request: TokenTransferRequest$inboundSchema
|
|
51580
51830
|
};
|
|
51581
51831
|
tool$tokenTransfer = {
|
|
@@ -51583,9 +51833,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
51583
51833
|
description: `Transfer ETH or ERC20 Tokens
|
|
51584
51834
|
|
|
51585
51835
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
51586
|
-
args:
|
|
51587
|
-
tool: async (client,
|
|
51588
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
51836
|
+
args: args57,
|
|
51837
|
+
tool: async (client, args58, ctx) => {
|
|
51838
|
+
const [result, apiCall] = await tokenTransfer(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51589
51839
|
if (!result.ok) {
|
|
51590
51840
|
return {
|
|
51591
51841
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51600,9 +51850,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
51600
51850
|
|
|
51601
51851
|
// src/funcs/transactionBundlerBundlerAaveLoop.ts
|
|
51602
51852
|
function transactionBundlerBundlerAaveLoop(client, request, options) {
|
|
51603
|
-
return new APIPromise($
|
|
51853
|
+
return new APIPromise($do58(client, request, options));
|
|
51604
51854
|
}
|
|
51605
|
-
async function $
|
|
51855
|
+
async function $do58(client, request, options) {
|
|
51606
51856
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51607
51857
|
if (!parsed.ok) {
|
|
51608
51858
|
return [parsed, { status: "invalid" }];
|
|
@@ -51673,12 +51923,12 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
|
|
|
51673
51923
|
});
|
|
51674
51924
|
|
|
51675
51925
|
// src/mcp-server/tools/transactionBundlerBundlerAaveLoop.ts
|
|
51676
|
-
var
|
|
51926
|
+
var args58, tool$transactionBundlerBundlerAaveLoop;
|
|
51677
51927
|
var init_transactionBundlerBundlerAaveLoop2 = __esm(() => {
|
|
51678
51928
|
init_transactionBundlerBundlerAaveLoop();
|
|
51679
51929
|
init_components();
|
|
51680
51930
|
init_tools();
|
|
51681
|
-
|
|
51931
|
+
args58 = {
|
|
51682
51932
|
request: AaveLoopRequest$inboundSchema
|
|
51683
51933
|
};
|
|
51684
51934
|
tool$transactionBundlerBundlerAaveLoop = {
|
|
@@ -51696,9 +51946,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
51696
51946
|
- Supplies the swapped tokens
|
|
51697
51947
|
|
|
51698
51948
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
51699
|
-
args:
|
|
51700
|
-
tool: async (client,
|
|
51701
|
-
const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client,
|
|
51949
|
+
args: args58,
|
|
51950
|
+
tool: async (client, args59, ctx) => {
|
|
51951
|
+
const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51702
51952
|
if (!result.ok) {
|
|
51703
51953
|
return {
|
|
51704
51954
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51713,9 +51963,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
51713
51963
|
|
|
51714
51964
|
// src/funcs/transactionBundlerBundlerAuthorization.ts
|
|
51715
51965
|
function transactionBundlerBundlerAuthorization(client, request, options) {
|
|
51716
|
-
return new APIPromise($
|
|
51966
|
+
return new APIPromise($do59(client, request, options));
|
|
51717
51967
|
}
|
|
51718
|
-
async function $
|
|
51968
|
+
async function $do59(client, request, options) {
|
|
51719
51969
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51720
51970
|
if (!parsed.ok) {
|
|
51721
51971
|
return [parsed, { status: "invalid" }];
|
|
@@ -51786,12 +52036,12 @@ var init_transactionBundlerBundlerAuthorization = __esm(() => {
|
|
|
51786
52036
|
});
|
|
51787
52037
|
|
|
51788
52038
|
// src/mcp-server/tools/transactionBundlerBundlerAuthorization.ts
|
|
51789
|
-
var
|
|
52039
|
+
var args59, tool$transactionBundlerBundlerAuthorization;
|
|
51790
52040
|
var init_transactionBundlerBundlerAuthorization2 = __esm(() => {
|
|
51791
52041
|
init_transactionBundlerBundlerAuthorization();
|
|
51792
52042
|
init_components();
|
|
51793
52043
|
init_tools();
|
|
51794
|
-
|
|
52044
|
+
args59 = {
|
|
51795
52045
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
51796
52046
|
};
|
|
51797
52047
|
tool$transactionBundlerBundlerAuthorization = {
|
|
@@ -51804,9 +52054,9 @@ Currently this is required for every transaction bundle to prevent replay attack
|
|
|
51804
52054
|
and ensure transaction ordering when batching multiple actions into a single
|
|
51805
52055
|
transaction. The authorization includes a nonce and chain ID to guarantee
|
|
51806
52056
|
transaction uniqueness and proper network targeting.`,
|
|
51807
|
-
args:
|
|
51808
|
-
tool: async (client,
|
|
51809
|
-
const [result, apiCall] = await transactionBundlerBundlerAuthorization(client,
|
|
52057
|
+
args: args59,
|
|
52058
|
+
tool: async (client, args60, ctx) => {
|
|
52059
|
+
const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51810
52060
|
if (!result.ok) {
|
|
51811
52061
|
return {
|
|
51812
52062
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51821,9 +52071,9 @@ transaction uniqueness and proper network targeting.`,
|
|
|
51821
52071
|
|
|
51822
52072
|
// src/funcs/transactionBundlerBundlerExecute.ts
|
|
51823
52073
|
function transactionBundlerBundlerExecute(client, request, options) {
|
|
51824
|
-
return new APIPromise($
|
|
52074
|
+
return new APIPromise($do60(client, request, options));
|
|
51825
52075
|
}
|
|
51826
|
-
async function $
|
|
52076
|
+
async function $do60(client, request, options) {
|
|
51827
52077
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51828
52078
|
if (!parsed.ok) {
|
|
51829
52079
|
return [parsed, { status: "invalid" }];
|
|
@@ -51894,12 +52144,12 @@ var init_transactionBundlerBundlerExecute = __esm(() => {
|
|
|
51894
52144
|
});
|
|
51895
52145
|
|
|
51896
52146
|
// src/mcp-server/tools/transactionBundlerBundlerExecute.ts
|
|
51897
|
-
var
|
|
52147
|
+
var args60, tool$transactionBundlerBundlerExecute;
|
|
51898
52148
|
var init_transactionBundlerBundlerExecute2 = __esm(() => {
|
|
51899
52149
|
init_transactionBundlerBundlerExecute();
|
|
51900
52150
|
init_components();
|
|
51901
52151
|
init_tools();
|
|
51902
|
-
|
|
52152
|
+
args60 = {
|
|
51903
52153
|
request: MulticallExecuteRequest$inboundSchema
|
|
51904
52154
|
};
|
|
51905
52155
|
tool$transactionBundlerBundlerExecute = {
|
|
@@ -51913,9 +52163,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
51913
52163
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
51914
52164
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
51915
52165
|
prevent replay attacks.`,
|
|
51916
|
-
args:
|
|
51917
|
-
tool: async (client,
|
|
51918
|
-
const [result, apiCall] = await transactionBundlerBundlerExecute(client,
|
|
52166
|
+
args: args60,
|
|
52167
|
+
tool: async (client, args61, ctx) => {
|
|
52168
|
+
const [result, apiCall] = await transactionBundlerBundlerExecute(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51919
52169
|
if (!result.ok) {
|
|
51920
52170
|
return {
|
|
51921
52171
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51930,9 +52180,9 @@ prevent replay attacks.`,
|
|
|
51930
52180
|
|
|
51931
52181
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
51932
52182
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
51933
|
-
return new APIPromise($
|
|
52183
|
+
return new APIPromise($do61(client, request, options));
|
|
51934
52184
|
}
|
|
51935
|
-
async function $
|
|
52185
|
+
async function $do61(client, request, options) {
|
|
51936
52186
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51937
52187
|
if (!parsed.ok) {
|
|
51938
52188
|
return [parsed, { status: "invalid" }];
|
|
@@ -52003,12 +52253,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
52003
52253
|
});
|
|
52004
52254
|
|
|
52005
52255
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
52006
|
-
var
|
|
52256
|
+
var args61, tool$uniswapV3LiquidityProvisionIncrease;
|
|
52007
52257
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
52008
52258
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
52009
52259
|
init_components();
|
|
52010
52260
|
init_tools();
|
|
52011
|
-
|
|
52261
|
+
args61 = {
|
|
52012
52262
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
52013
52263
|
};
|
|
52014
52264
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -52032,9 +52282,9 @@ process.
|
|
|
52032
52282
|
- \`AerodromeSlipstreamRouter\`
|
|
52033
52283
|
</Info>
|
|
52034
52284
|
`,
|
|
52035
|
-
args:
|
|
52036
|
-
tool: async (client,
|
|
52037
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
52285
|
+
args: args61,
|
|
52286
|
+
tool: async (client, args62, ctx) => {
|
|
52287
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52038
52288
|
if (!result.ok) {
|
|
52039
52289
|
return {
|
|
52040
52290
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52049,9 +52299,9 @@ process.
|
|
|
52049
52299
|
|
|
52050
52300
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
52051
52301
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
52052
|
-
return new APIPromise($
|
|
52302
|
+
return new APIPromise($do62(client, request, options));
|
|
52053
52303
|
}
|
|
52054
|
-
async function $
|
|
52304
|
+
async function $do62(client, request, options) {
|
|
52055
52305
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52056
52306
|
if (!parsed.ok) {
|
|
52057
52307
|
return [parsed, { status: "invalid" }];
|
|
@@ -52127,12 +52377,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
52127
52377
|
});
|
|
52128
52378
|
|
|
52129
52379
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
52130
|
-
var
|
|
52380
|
+
var args62, tool$uniswapV3LiquidityProvisionInRange;
|
|
52131
52381
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
52132
52382
|
init_uniswapV3LiquidityProvisionInRange();
|
|
52133
52383
|
init_operations();
|
|
52134
52384
|
init_tools();
|
|
52135
|
-
|
|
52385
|
+
args62 = {
|
|
52136
52386
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
52137
52387
|
};
|
|
52138
52388
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -52147,9 +52397,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
52147
52397
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
52148
52398
|
they are actively participating in the trading activities within the liquidity pool
|
|
52149
52399
|
and earning trading fees.`,
|
|
52150
|
-
args:
|
|
52151
|
-
tool: async (client,
|
|
52152
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
52400
|
+
args: args62,
|
|
52401
|
+
tool: async (client, args63, ctx) => {
|
|
52402
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52153
52403
|
if (!result.ok) {
|
|
52154
52404
|
return {
|
|
52155
52405
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52164,9 +52414,9 @@ and earning trading fees.`,
|
|
|
52164
52414
|
|
|
52165
52415
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
52166
52416
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
52167
|
-
return new APIPromise($
|
|
52417
|
+
return new APIPromise($do63(client, request, options));
|
|
52168
52418
|
}
|
|
52169
|
-
async function $
|
|
52419
|
+
async function $do63(client, request, options) {
|
|
52170
52420
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52171
52421
|
if (!parsed.ok) {
|
|
52172
52422
|
return [parsed, { status: "invalid" }];
|
|
@@ -52237,12 +52487,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
52237
52487
|
});
|
|
52238
52488
|
|
|
52239
52489
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
52240
|
-
var
|
|
52490
|
+
var args63, tool$uniswapV3LiquidityProvisionMint;
|
|
52241
52491
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
52242
52492
|
init_uniswapV3LiquidityProvisionMint();
|
|
52243
52493
|
init_components();
|
|
52244
52494
|
init_tools();
|
|
52245
|
-
|
|
52495
|
+
args63 = {
|
|
52246
52496
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
52247
52497
|
};
|
|
52248
52498
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -52266,9 +52516,9 @@ needed for the minting process.
|
|
|
52266
52516
|
- \`UniswapV3NFTPositionManager\`
|
|
52267
52517
|
</Info>
|
|
52268
52518
|
`,
|
|
52269
|
-
args:
|
|
52270
|
-
tool: async (client,
|
|
52271
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
52519
|
+
args: args63,
|
|
52520
|
+
tool: async (client, args64, ctx) => {
|
|
52521
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52272
52522
|
if (!result.ok) {
|
|
52273
52523
|
return {
|
|
52274
52524
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52283,9 +52533,9 @@ needed for the minting process.
|
|
|
52283
52533
|
|
|
52284
52534
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
52285
52535
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
52286
|
-
return new APIPromise($
|
|
52536
|
+
return new APIPromise($do64(client, request, options));
|
|
52287
52537
|
}
|
|
52288
|
-
async function $
|
|
52538
|
+
async function $do64(client, request, options) {
|
|
52289
52539
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52290
52540
|
if (!parsed.ok) {
|
|
52291
52541
|
return [parsed, { status: "invalid" }];
|
|
@@ -52361,12 +52611,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
52361
52611
|
});
|
|
52362
52612
|
|
|
52363
52613
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
52364
|
-
var
|
|
52614
|
+
var args64, tool$uniswapV3LiquidityProvisionPositions;
|
|
52365
52615
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
52366
52616
|
init_uniswapV3LiquidityProvisionPositions();
|
|
52367
52617
|
init_operations();
|
|
52368
52618
|
init_tools();
|
|
52369
|
-
|
|
52619
|
+
args64 = {
|
|
52370
52620
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
52371
52621
|
};
|
|
52372
52622
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -52380,9 +52630,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
52380
52630
|
positions, including the total number of positions and relevant metadata. This
|
|
52381
52631
|
information is crucial for users to manage and analyze their liquidity provision
|
|
52382
52632
|
activities effectively.`,
|
|
52383
|
-
args:
|
|
52384
|
-
tool: async (client,
|
|
52385
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
52633
|
+
args: args64,
|
|
52634
|
+
tool: async (client, args65, ctx) => {
|
|
52635
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52386
52636
|
if (!result.ok) {
|
|
52387
52637
|
return {
|
|
52388
52638
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52397,9 +52647,9 @@ activities effectively.`,
|
|
|
52397
52647
|
|
|
52398
52648
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
52399
52649
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
52400
|
-
return new APIPromise($
|
|
52650
|
+
return new APIPromise($do65(client, request, options));
|
|
52401
52651
|
}
|
|
52402
|
-
async function $
|
|
52652
|
+
async function $do65(client, request, options) {
|
|
52403
52653
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52404
52654
|
if (!parsed.ok) {
|
|
52405
52655
|
return [parsed, { status: "invalid" }];
|
|
@@ -52470,12 +52720,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
52470
52720
|
});
|
|
52471
52721
|
|
|
52472
52722
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
52473
|
-
var
|
|
52723
|
+
var args65, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
52474
52724
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
52475
52725
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
52476
52726
|
init_components();
|
|
52477
52727
|
init_tools();
|
|
52478
|
-
|
|
52728
|
+
args65 = {
|
|
52479
52729
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
52480
52730
|
};
|
|
52481
52731
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -52500,9 +52750,9 @@ before initiating a withdrawal to avoid potential issues or penalties.
|
|
|
52500
52750
|
- \`UniswapV3NFTPositionManager\`
|
|
52501
52751
|
</Info>
|
|
52502
52752
|
`,
|
|
52503
|
-
args:
|
|
52504
|
-
tool: async (client,
|
|
52505
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
52753
|
+
args: args65,
|
|
52754
|
+
tool: async (client, args66, ctx) => {
|
|
52755
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52506
52756
|
if (!result.ok) {
|
|
52507
52757
|
return {
|
|
52508
52758
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52517,9 +52767,9 @@ before initiating a withdrawal to avoid potential issues or penalties.
|
|
|
52517
52767
|
|
|
52518
52768
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
52519
52769
|
function uniswapV3PoolPrice(client, request, options) {
|
|
52520
|
-
return new APIPromise($
|
|
52770
|
+
return new APIPromise($do66(client, request, options));
|
|
52521
52771
|
}
|
|
52522
|
-
async function $
|
|
52772
|
+
async function $do66(client, request, options) {
|
|
52523
52773
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52524
52774
|
if (!parsed.ok) {
|
|
52525
52775
|
return [parsed, { status: "invalid" }];
|
|
@@ -52597,12 +52847,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
52597
52847
|
});
|
|
52598
52848
|
|
|
52599
52849
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
52600
|
-
var
|
|
52850
|
+
var args66, tool$uniswapV3PoolPrice;
|
|
52601
52851
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
52602
52852
|
init_uniswapV3PoolPrice();
|
|
52603
52853
|
init_operations();
|
|
52604
52854
|
init_tools();
|
|
52605
|
-
|
|
52855
|
+
args66 = {
|
|
52606
52856
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
52607
52857
|
};
|
|
52608
52858
|
tool$uniswapV3PoolPrice = {
|
|
@@ -52612,9 +52862,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
52612
52862
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
52613
52863
|
|
|
52614
52864
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
52615
|
-
args:
|
|
52616
|
-
tool: async (client,
|
|
52617
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
52865
|
+
args: args66,
|
|
52866
|
+
tool: async (client, args67, ctx) => {
|
|
52867
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52618
52868
|
if (!result.ok) {
|
|
52619
52869
|
return {
|
|
52620
52870
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52629,9 +52879,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
52629
52879
|
|
|
52630
52880
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
52631
52881
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
52632
|
-
return new APIPromise($
|
|
52882
|
+
return new APIPromise($do67(client, request, options));
|
|
52633
52883
|
}
|
|
52634
|
-
async function $
|
|
52884
|
+
async function $do67(client, request, options) {
|
|
52635
52885
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52636
52886
|
if (!parsed.ok) {
|
|
52637
52887
|
return [parsed, { status: "invalid" }];
|
|
@@ -52710,12 +52960,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
52710
52960
|
});
|
|
52711
52961
|
|
|
52712
52962
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
52713
|
-
var
|
|
52963
|
+
var args67, tool$uniswapV3QuoteBuyExactly;
|
|
52714
52964
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
52715
52965
|
init_uniswapV3QuoteBuyExactly();
|
|
52716
52966
|
init_operations();
|
|
52717
52967
|
init_tools();
|
|
52718
|
-
|
|
52968
|
+
args67 = {
|
|
52719
52969
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
52720
52970
|
};
|
|
52721
52971
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -52727,9 +52977,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
52727
52977
|
|
|
52728
52978
|
It also provides the resulting price after the transaction. The calculation takes
|
|
52729
52979
|
into account the current pool state and the specified fee tier.`,
|
|
52730
|
-
args:
|
|
52731
|
-
tool: async (client,
|
|
52732
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
52980
|
+
args: args67,
|
|
52981
|
+
tool: async (client, args68, ctx) => {
|
|
52982
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52733
52983
|
if (!result.ok) {
|
|
52734
52984
|
return {
|
|
52735
52985
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52744,9 +52994,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
52744
52994
|
|
|
52745
52995
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
52746
52996
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
52747
|
-
return new APIPromise($
|
|
52997
|
+
return new APIPromise($do68(client, request, options));
|
|
52748
52998
|
}
|
|
52749
|
-
async function $
|
|
52999
|
+
async function $do68(client, request, options) {
|
|
52750
53000
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52751
53001
|
if (!parsed.ok) {
|
|
52752
53002
|
return [parsed, { status: "invalid" }];
|
|
@@ -52825,12 +53075,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
52825
53075
|
});
|
|
52826
53076
|
|
|
52827
53077
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
52828
|
-
var
|
|
53078
|
+
var args68, tool$uniswapV3QuoteSellExactly;
|
|
52829
53079
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
52830
53080
|
init_uniswapV3QuoteSellExactly();
|
|
52831
53081
|
init_operations();
|
|
52832
53082
|
init_tools();
|
|
52833
|
-
|
|
53083
|
+
args68 = {
|
|
52834
53084
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
52835
53085
|
};
|
|
52836
53086
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -52842,9 +53092,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
52842
53092
|
|
|
52843
53093
|
It also provides the resulting price after the transaction. The calculation takes
|
|
52844
53094
|
into account the current pool state and the specified fee tier.`,
|
|
52845
|
-
args:
|
|
52846
|
-
tool: async (client,
|
|
52847
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
53095
|
+
args: args68,
|
|
53096
|
+
tool: async (client, args69, ctx) => {
|
|
53097
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52848
53098
|
if (!result.ok) {
|
|
52849
53099
|
return {
|
|
52850
53100
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52859,9 +53109,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
52859
53109
|
|
|
52860
53110
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
52861
53111
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
52862
|
-
return new APIPromise($
|
|
53112
|
+
return new APIPromise($do69(client, request, options));
|
|
52863
53113
|
}
|
|
52864
|
-
async function $
|
|
53114
|
+
async function $do69(client, request, options) {
|
|
52865
53115
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52866
53116
|
if (!parsed.ok) {
|
|
52867
53117
|
return [parsed, { status: "invalid" }];
|
|
@@ -52932,12 +53182,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
52932
53182
|
});
|
|
52933
53183
|
|
|
52934
53184
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
52935
|
-
var
|
|
53185
|
+
var args69, tool$uniswapV3SwapBuyExactly;
|
|
52936
53186
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
52937
53187
|
init_uniswapV3SwapBuyExactly();
|
|
52938
53188
|
init_components();
|
|
52939
53189
|
init_tools();
|
|
52940
|
-
|
|
53190
|
+
args69 = {
|
|
52941
53191
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
52942
53192
|
};
|
|
52943
53193
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -52959,9 +53209,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.
|
|
|
52959
53209
|
- \`UniswapV3Router\`
|
|
52960
53210
|
</Info>
|
|
52961
53211
|
`,
|
|
52962
|
-
args:
|
|
52963
|
-
tool: async (client,
|
|
52964
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
53212
|
+
args: args69,
|
|
53213
|
+
tool: async (client, args70, ctx) => {
|
|
53214
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52965
53215
|
if (!result.ok) {
|
|
52966
53216
|
return {
|
|
52967
53217
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52976,9 +53226,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.
|
|
|
52976
53226
|
|
|
52977
53227
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
52978
53228
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
52979
|
-
return new APIPromise($
|
|
53229
|
+
return new APIPromise($do70(client, request, options));
|
|
52980
53230
|
}
|
|
52981
|
-
async function $
|
|
53231
|
+
async function $do70(client, request, options) {
|
|
52982
53232
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52983
53233
|
if (!parsed.ok) {
|
|
52984
53234
|
return [parsed, { status: "invalid" }];
|
|
@@ -53049,12 +53299,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
53049
53299
|
});
|
|
53050
53300
|
|
|
53051
53301
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
53052
|
-
var
|
|
53302
|
+
var args70, tool$uniswapV3SwapSellExactly;
|
|
53053
53303
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
53054
53304
|
init_uniswapV3SwapSellExactly();
|
|
53055
53305
|
init_components();
|
|
53056
53306
|
init_tools();
|
|
53057
|
-
|
|
53307
|
+
args70 = {
|
|
53058
53308
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
53059
53309
|
};
|
|
53060
53310
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -53076,9 +53326,9 @@ wrapped, the appropriate amount will be wrapped automatically.
|
|
|
53076
53326
|
- \`UniswapV3Router\`
|
|
53077
53327
|
</Info>
|
|
53078
53328
|
`,
|
|
53079
|
-
args:
|
|
53080
|
-
tool: async (client,
|
|
53081
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
53329
|
+
args: args70,
|
|
53330
|
+
tool: async (client, args71, ctx) => {
|
|
53331
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53082
53332
|
if (!result.ok) {
|
|
53083
53333
|
return {
|
|
53084
53334
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53093,9 +53343,9 @@ wrapped, the appropriate amount will be wrapped automatically.
|
|
|
53093
53343
|
|
|
53094
53344
|
// src/funcs/universalAllowance.ts
|
|
53095
53345
|
function universalAllowance(client, request, options) {
|
|
53096
|
-
return new APIPromise($
|
|
53346
|
+
return new APIPromise($do71(client, request, options));
|
|
53097
53347
|
}
|
|
53098
|
-
async function $
|
|
53348
|
+
async function $do71(client, request, options) {
|
|
53099
53349
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53100
53350
|
if (!parsed.ok) {
|
|
53101
53351
|
return [parsed, { status: "invalid" }];
|
|
@@ -53173,12 +53423,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
53173
53423
|
});
|
|
53174
53424
|
|
|
53175
53425
|
// src/mcp-server/tools/universalAllowance.ts
|
|
53176
|
-
var
|
|
53426
|
+
var args71, tool$universalAllowance;
|
|
53177
53427
|
var init_universalAllowance2 = __esm(() => {
|
|
53178
53428
|
init_universalAllowance();
|
|
53179
53429
|
init_operations();
|
|
53180
53430
|
init_tools();
|
|
53181
|
-
|
|
53431
|
+
args71 = {
|
|
53182
53432
|
request: GenericAllowanceRequest$inboundSchema
|
|
53183
53433
|
};
|
|
53184
53434
|
tool$universalAllowance = {
|
|
@@ -53192,9 +53442,9 @@ tokens on their behalf.
|
|
|
53192
53442
|
This is a crucial step before engaging in any transactions or operations within
|
|
53193
53443
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
53194
53444
|
the user's tokens securely and efficiently.`,
|
|
53195
|
-
args:
|
|
53196
|
-
tool: async (client,
|
|
53197
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
53445
|
+
args: args71,
|
|
53446
|
+
tool: async (client, args72, ctx) => {
|
|
53447
|
+
const [result, apiCall] = await universalAllowance(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53198
53448
|
if (!result.ok) {
|
|
53199
53449
|
return {
|
|
53200
53450
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53209,9 +53459,9 @@ the user's tokens securely and efficiently.`,
|
|
|
53209
53459
|
|
|
53210
53460
|
// src/funcs/universalAllowanceSet.ts
|
|
53211
53461
|
function universalAllowanceSet(client, request, options) {
|
|
53212
|
-
return new APIPromise($
|
|
53462
|
+
return new APIPromise($do72(client, request, options));
|
|
53213
53463
|
}
|
|
53214
|
-
async function $
|
|
53464
|
+
async function $do72(client, request, options) {
|
|
53215
53465
|
const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53216
53466
|
if (!parsed.ok) {
|
|
53217
53467
|
return [parsed, { status: "invalid" }];
|
|
@@ -53282,12 +53532,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
53282
53532
|
});
|
|
53283
53533
|
|
|
53284
53534
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
53285
|
-
var
|
|
53535
|
+
var args72, tool$universalAllowanceSet;
|
|
53286
53536
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
53287
53537
|
init_universalAllowanceSet();
|
|
53288
53538
|
init_components();
|
|
53289
53539
|
init_tools();
|
|
53290
|
-
|
|
53540
|
+
args72 = {
|
|
53291
53541
|
request: SetAllowanceRequest$inboundSchema
|
|
53292
53542
|
};
|
|
53293
53543
|
tool$universalAllowanceSet = {
|
|
@@ -53302,9 +53552,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
53302
53552
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
53303
53553
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
53304
53554
|
within the DeFi ecosystem.`,
|
|
53305
|
-
args:
|
|
53306
|
-
tool: async (client,
|
|
53307
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
53555
|
+
args: args72,
|
|
53556
|
+
tool: async (client, args73, ctx) => {
|
|
53557
|
+
const [result, apiCall] = await universalAllowanceSet(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53308
53558
|
if (!result.ok) {
|
|
53309
53559
|
return {
|
|
53310
53560
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53319,9 +53569,9 @@ within the DeFi ecosystem.`,
|
|
|
53319
53569
|
|
|
53320
53570
|
// src/funcs/universalEns.ts
|
|
53321
53571
|
function universalEns(client, request, options) {
|
|
53322
|
-
return new APIPromise($
|
|
53572
|
+
return new APIPromise($do73(client, request, options));
|
|
53323
53573
|
}
|
|
53324
|
-
async function $
|
|
53574
|
+
async function $do73(client, request, options) {
|
|
53325
53575
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53326
53576
|
if (!parsed.ok) {
|
|
53327
53577
|
return [parsed, { status: "invalid" }];
|
|
@@ -53397,12 +53647,12 @@ var init_universalEns = __esm(() => {
|
|
|
53397
53647
|
});
|
|
53398
53648
|
|
|
53399
53649
|
// src/mcp-server/tools/universalEns.ts
|
|
53400
|
-
var
|
|
53650
|
+
var args73, tool$universalEns;
|
|
53401
53651
|
var init_universalEns2 = __esm(() => {
|
|
53402
53652
|
init_universalEns();
|
|
53403
53653
|
init_operations();
|
|
53404
53654
|
init_tools();
|
|
53405
|
-
|
|
53655
|
+
args73 = {
|
|
53406
53656
|
request: GenericEnsRequest$inboundSchema
|
|
53407
53657
|
};
|
|
53408
53658
|
tool$universalEns = {
|
|
@@ -53413,9 +53663,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
53413
53663
|
|
|
53414
53664
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
53415
53665
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
53416
|
-
args:
|
|
53417
|
-
tool: async (client,
|
|
53418
|
-
const [result, apiCall] = await universalEns(client,
|
|
53666
|
+
args: args73,
|
|
53667
|
+
tool: async (client, args74, ctx) => {
|
|
53668
|
+
const [result, apiCall] = await universalEns(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53419
53669
|
if (!result.ok) {
|
|
53420
53670
|
return {
|
|
53421
53671
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53430,9 +53680,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
53430
53680
|
|
|
53431
53681
|
// src/funcs/universalPortfolio.ts
|
|
53432
53682
|
function universalPortfolio(client, request, options) {
|
|
53433
|
-
return new APIPromise($
|
|
53683
|
+
return new APIPromise($do74(client, request, options));
|
|
53434
53684
|
}
|
|
53435
|
-
async function $
|
|
53685
|
+
async function $do74(client, request, options) {
|
|
53436
53686
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53437
53687
|
if (!parsed.ok) {
|
|
53438
53688
|
return [parsed, { status: "invalid" }];
|
|
@@ -53508,12 +53758,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
53508
53758
|
});
|
|
53509
53759
|
|
|
53510
53760
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
53511
|
-
var
|
|
53761
|
+
var args74, tool$universalPortfolio;
|
|
53512
53762
|
var init_universalPortfolio2 = __esm(() => {
|
|
53513
53763
|
init_universalPortfolio();
|
|
53514
53764
|
init_operations();
|
|
53515
53765
|
init_tools();
|
|
53516
|
-
|
|
53766
|
+
args74 = {
|
|
53517
53767
|
request: GenericPortfolioRequest$inboundSchema
|
|
53518
53768
|
};
|
|
53519
53769
|
tool$universalPortfolio = {
|
|
@@ -53524,9 +53774,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
53524
53774
|
|
|
53525
53775
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
53526
53776
|
balances, including their respective values and quantities.`,
|
|
53527
|
-
args:
|
|
53528
|
-
tool: async (client,
|
|
53529
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
53777
|
+
args: args74,
|
|
53778
|
+
tool: async (client, args75, ctx) => {
|
|
53779
|
+
const [result, apiCall] = await universalPortfolio(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53530
53780
|
if (!result.ok) {
|
|
53531
53781
|
return {
|
|
53532
53782
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53541,9 +53791,9 @@ balances, including their respective values and quantities.`,
|
|
|
53541
53791
|
|
|
53542
53792
|
// src/funcs/universalSupportedTokens.ts
|
|
53543
53793
|
function universalSupportedTokens(client, request, options) {
|
|
53544
|
-
return new APIPromise($
|
|
53794
|
+
return new APIPromise($do75(client, request, options));
|
|
53545
53795
|
}
|
|
53546
|
-
async function $
|
|
53796
|
+
async function $do75(client, request, options) {
|
|
53547
53797
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53548
53798
|
if (!parsed.ok) {
|
|
53549
53799
|
return [parsed, { status: "invalid" }];
|
|
@@ -53618,12 +53868,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
53618
53868
|
});
|
|
53619
53869
|
|
|
53620
53870
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
53621
|
-
var
|
|
53871
|
+
var args75, tool$universalSupportedTokens;
|
|
53622
53872
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
53623
53873
|
init_universalSupportedTokens();
|
|
53624
53874
|
init_operations();
|
|
53625
53875
|
init_tools();
|
|
53626
|
-
|
|
53876
|
+
args75 = {
|
|
53627
53877
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
53628
53878
|
};
|
|
53629
53879
|
tool$universalSupportedTokens = {
|
|
@@ -53631,9 +53881,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
53631
53881
|
description: `List Supported Tokens
|
|
53632
53882
|
|
|
53633
53883
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
53634
|
-
args:
|
|
53635
|
-
tool: async (client,
|
|
53636
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
53884
|
+
args: args75,
|
|
53885
|
+
tool: async (client, args76, ctx) => {
|
|
53886
|
+
const [result, apiCall] = await universalSupportedTokens(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53637
53887
|
if (!result.ok) {
|
|
53638
53888
|
return {
|
|
53639
53889
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53648,9 +53898,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
53648
53898
|
|
|
53649
53899
|
// src/funcs/universalUnwrapWeth.ts
|
|
53650
53900
|
function universalUnwrapWeth(client, request, options) {
|
|
53651
|
-
return new APIPromise($
|
|
53901
|
+
return new APIPromise($do76(client, request, options));
|
|
53652
53902
|
}
|
|
53653
|
-
async function $
|
|
53903
|
+
async function $do76(client, request, options) {
|
|
53654
53904
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53655
53905
|
if (!parsed.ok) {
|
|
53656
53906
|
return [parsed, { status: "invalid" }];
|
|
@@ -53721,12 +53971,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
53721
53971
|
});
|
|
53722
53972
|
|
|
53723
53973
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
53724
|
-
var
|
|
53974
|
+
var args76, tool$universalUnwrapWeth;
|
|
53725
53975
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
53726
53976
|
init_universalUnwrapWeth();
|
|
53727
53977
|
init_components();
|
|
53728
53978
|
init_tools();
|
|
53729
|
-
|
|
53979
|
+
args76 = {
|
|
53730
53980
|
request: UnwrapWethRequest$inboundSchema
|
|
53731
53981
|
};
|
|
53732
53982
|
tool$universalUnwrapWeth = {
|
|
@@ -53735,9 +53985,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
53735
53985
|
|
|
53736
53986
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
53737
53987
|
can be used for gas and other native purposes.`,
|
|
53738
|
-
args:
|
|
53739
|
-
tool: async (client,
|
|
53740
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
53988
|
+
args: args76,
|
|
53989
|
+
tool: async (client, args77, ctx) => {
|
|
53990
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53741
53991
|
if (!result.ok) {
|
|
53742
53992
|
return {
|
|
53743
53993
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53752,9 +54002,9 @@ can be used for gas and other native purposes.`,
|
|
|
53752
54002
|
|
|
53753
54003
|
// src/funcs/universalVisualizePortfolio.ts
|
|
53754
54004
|
function universalVisualizePortfolio(client, request, options) {
|
|
53755
|
-
return new APIPromise($
|
|
54005
|
+
return new APIPromise($do77(client, request, options));
|
|
53756
54006
|
}
|
|
53757
|
-
async function $
|
|
54007
|
+
async function $do77(client, request, options) {
|
|
53758
54008
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53759
54009
|
if (!parsed.ok) {
|
|
53760
54010
|
return [parsed, { status: "invalid" }];
|
|
@@ -53830,12 +54080,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
53830
54080
|
});
|
|
53831
54081
|
|
|
53832
54082
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
53833
|
-
var
|
|
54083
|
+
var args77, tool$universalVisualizePortfolio;
|
|
53834
54084
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
53835
54085
|
init_universalVisualizePortfolio();
|
|
53836
54086
|
init_operations();
|
|
53837
54087
|
init_tools();
|
|
53838
|
-
|
|
54088
|
+
args77 = {
|
|
53839
54089
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
53840
54090
|
};
|
|
53841
54091
|
tool$universalVisualizePortfolio = {
|
|
@@ -53847,9 +54097,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
53847
54097
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
53848
54098
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
53849
54099
|
USD.`,
|
|
53850
|
-
args:
|
|
53851
|
-
tool: async (client,
|
|
53852
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
54100
|
+
args: args77,
|
|
54101
|
+
tool: async (client, args78, ctx) => {
|
|
54102
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53853
54103
|
if (!result.ok) {
|
|
53854
54104
|
return {
|
|
53855
54105
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53864,9 +54114,9 @@ USD.`,
|
|
|
53864
54114
|
|
|
53865
54115
|
// src/funcs/universalWrapEth.ts
|
|
53866
54116
|
function universalWrapEth(client, request, options) {
|
|
53867
|
-
return new APIPromise($
|
|
54117
|
+
return new APIPromise($do78(client, request, options));
|
|
53868
54118
|
}
|
|
53869
|
-
async function $
|
|
54119
|
+
async function $do78(client, request, options) {
|
|
53870
54120
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53871
54121
|
if (!parsed.ok) {
|
|
53872
54122
|
return [parsed, { status: "invalid" }];
|
|
@@ -53937,12 +54187,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
53937
54187
|
});
|
|
53938
54188
|
|
|
53939
54189
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
53940
|
-
var
|
|
54190
|
+
var args78, tool$universalWrapEth;
|
|
53941
54191
|
var init_universalWrapEth2 = __esm(() => {
|
|
53942
54192
|
init_universalWrapEth();
|
|
53943
54193
|
init_components();
|
|
53944
54194
|
init_tools();
|
|
53945
|
-
|
|
54195
|
+
args78 = {
|
|
53946
54196
|
request: WrapEthRequest$inboundSchema
|
|
53947
54197
|
};
|
|
53948
54198
|
tool$universalWrapEth = {
|
|
@@ -53951,9 +54201,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
53951
54201
|
|
|
53952
54202
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
53953
54203
|
it to be traded on DeFi protocols.`,
|
|
53954
|
-
args:
|
|
53955
|
-
tool: async (client,
|
|
53956
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
54204
|
+
args: args78,
|
|
54205
|
+
tool: async (client, args79, ctx) => {
|
|
54206
|
+
const [result, apiCall] = await universalWrapEth(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53957
54207
|
if (!result.ok) {
|
|
53958
54208
|
return {
|
|
53959
54209
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53970,7 +54220,7 @@ it to be traded on DeFi protocols.`,
|
|
|
53970
54220
|
function createMCPServer(deps) {
|
|
53971
54221
|
const server = new McpServer({
|
|
53972
54222
|
name: "CompassApiSDK",
|
|
53973
|
-
version: "0.5.
|
|
54223
|
+
version: "0.5.48"
|
|
53974
54224
|
});
|
|
53975
54225
|
const client = new CompassApiSDKCore({
|
|
53976
54226
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -54054,6 +54304,7 @@ function createMCPServer(deps) {
|
|
|
54054
54304
|
tool(tool$pendleRedeemYield);
|
|
54055
54305
|
tool(tool$pendleAddLiquidity);
|
|
54056
54306
|
tool(tool$pendleRemoveLiquidity);
|
|
54307
|
+
tool(tool$swapOdos);
|
|
54057
54308
|
tool(tool$transactionBundlerBundlerAuthorization);
|
|
54058
54309
|
tool(tool$transactionBundlerBundlerExecute);
|
|
54059
54310
|
tool(tool$transactionBundlerBundlerAaveLoop);
|
|
@@ -54120,6 +54371,7 @@ var init_server2 = __esm(() => {
|
|
|
54120
54371
|
init_skySell2();
|
|
54121
54372
|
init_skyWithdraw2();
|
|
54122
54373
|
init_smartAccountAccountBatchedUserOperations2();
|
|
54374
|
+
init_swapOdos2();
|
|
54123
54375
|
init_tokenAddress2();
|
|
54124
54376
|
init_tokenBalance2();
|
|
54125
54377
|
init_tokenPrice2();
|
|
@@ -55340,7 +55592,7 @@ var routes = ln({
|
|
|
55340
55592
|
var app = _e(routes, {
|
|
55341
55593
|
name: "mcp",
|
|
55342
55594
|
versionInfo: {
|
|
55343
|
-
currentVersion: "0.5.
|
|
55595
|
+
currentVersion: "0.5.48"
|
|
55344
55596
|
}
|
|
55345
55597
|
});
|
|
55346
55598
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -55348,5 +55600,5 @@ export {
|
|
|
55348
55600
|
app
|
|
55349
55601
|
};
|
|
55350
55602
|
|
|
55351
|
-
//# debugId=
|
|
55603
|
+
//# debugId=3A3B84022CAEF87C64756E2164756E21
|
|
55352
55604
|
//# sourceMappingURL=mcp-server.js.map
|