@compass-labs/api-sdk 0.5.3 → 0.5.4
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 +2 -0
- package/bin/mcp-server.js +412 -237
- package/bin/mcp-server.js.map +12 -8
- package/dist/commonjs/funcs/pendleRedeemYield.d.ts +17 -0
- package/dist/commonjs/funcs/pendleRedeemYield.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleRedeemYield.js +118 -0
- package/dist/commonjs/funcs/pendleRedeemYield.js.map +1 -0
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- 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/pendleRedeemYield.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleRedeemYield.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleRedeemYield.js +64 -0
- package/dist/commonjs/mcp-server/tools/pendleRedeemYield.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/pendleredeemyieldparams.d.ts +34 -0
- package/dist/commonjs/models/components/pendleredeemyieldparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendleredeemyieldparams.js +82 -0
- package/dist/commonjs/models/components/pendleredeemyieldparams.js.map +1 -0
- package/dist/commonjs/models/components/pendleredeemyieldrequest.d.ts +45 -0
- package/dist/commonjs/models/components/pendleredeemyieldrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendleredeemyieldrequest.js +87 -0
- package/dist/commonjs/models/components/pendleredeemyieldrequest.js.map +1 -0
- package/dist/commonjs/models/components/useroperation.d.ts +13 -4
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +5 -0
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/sdk/pendle.d.ts +7 -0
- package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
- package/dist/commonjs/sdk/pendle.js +10 -0
- package/dist/commonjs/sdk/pendle.js.map +1 -1
- package/dist/esm/funcs/pendleRedeemYield.d.ts +17 -0
- package/dist/esm/funcs/pendleRedeemYield.d.ts.map +1 -0
- package/dist/esm/funcs/pendleRedeemYield.js +82 -0
- package/dist/esm/funcs/pendleRedeemYield.js.map +1 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- 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/pendleRedeemYield.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleRedeemYield.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleRedeemYield.js +28 -0
- package/dist/esm/mcp-server/tools/pendleRedeemYield.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/pendleredeemyieldparams.d.ts +34 -0
- package/dist/esm/models/components/pendleredeemyieldparams.d.ts.map +1 -0
- package/dist/esm/models/components/pendleredeemyieldparams.js +44 -0
- package/dist/esm/models/components/pendleredeemyieldparams.js.map +1 -0
- package/dist/esm/models/components/pendleredeemyieldrequest.d.ts +45 -0
- package/dist/esm/models/components/pendleredeemyieldrequest.d.ts.map +1 -0
- package/dist/esm/models/components/pendleredeemyieldrequest.js +49 -0
- package/dist/esm/models/components/pendleredeemyieldrequest.js.map +1 -0
- package/dist/esm/models/components/useroperation.d.ts +13 -4
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +5 -0
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/sdk/pendle.d.ts +7 -0
- package/dist/esm/sdk/pendle.d.ts.map +1 -1
- package/dist/esm/sdk/pendle.js +10 -0
- package/dist/esm/sdk/pendle.js.map +1 -1
- package/docs/sdks/pendle/README.md +82 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/pendleRedeemYield.ts +165 -0
- package/src/index.ts +2 -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/pendleRedeemYield.ts +37 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/pendleredeemyieldparams.ts +86 -0
- package/src/models/components/pendleredeemyieldrequest.ts +101 -0
- package/src/models/components/useroperation.ts +32 -0
- package/src/sdk/pendle.ts +18 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34205,9 +34205,9 @@ var init_config = __esm(() => {
|
|
|
34205
34205
|
SDK_METADATA = {
|
|
34206
34206
|
language: "typescript",
|
|
34207
34207
|
openapiDocVersion: "0.0.1",
|
|
34208
|
-
sdkVersion: "0.5.
|
|
34209
|
-
genVersion: "2.
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34208
|
+
sdkVersion: "0.5.4",
|
|
34209
|
+
genVersion: "2.618.0",
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.5.4 2.618.0 0.0.1 @compass-labs/api-sdk"
|
|
34211
34211
|
};
|
|
34212
34212
|
});
|
|
34213
34213
|
|
|
@@ -37997,6 +37997,35 @@ var init_pendlebuyytparams = __esm(() => {
|
|
|
37997
37997
|
})(PendleBuyYtParams$ ||= {});
|
|
37998
37998
|
});
|
|
37999
37999
|
|
|
38000
|
+
// src/models/components/pendleredeemyieldparams.ts
|
|
38001
|
+
var PendleRedeemYieldParams$inboundSchema, PendleRedeemYieldParams$outboundSchema, PendleRedeemYieldParams$;
|
|
38002
|
+
var init_pendleredeemyieldparams = __esm(() => {
|
|
38003
|
+
init_esm();
|
|
38004
|
+
init_primitives();
|
|
38005
|
+
PendleRedeemYieldParams$inboundSchema = objectType({
|
|
38006
|
+
action_type: literalType("PENDLE_REDEEM_YIELD").default("PENDLE_REDEEM_YIELD"),
|
|
38007
|
+
market_address: stringType()
|
|
38008
|
+
}).transform((v2) => {
|
|
38009
|
+
return remap(v2, {
|
|
38010
|
+
action_type: "actionType",
|
|
38011
|
+
market_address: "marketAddress"
|
|
38012
|
+
});
|
|
38013
|
+
});
|
|
38014
|
+
PendleRedeemYieldParams$outboundSchema = objectType({
|
|
38015
|
+
actionType: literalType("PENDLE_REDEEM_YIELD").default("PENDLE_REDEEM_YIELD"),
|
|
38016
|
+
marketAddress: stringType()
|
|
38017
|
+
}).transform((v2) => {
|
|
38018
|
+
return remap(v2, {
|
|
38019
|
+
actionType: "action_type",
|
|
38020
|
+
marketAddress: "market_address"
|
|
38021
|
+
});
|
|
38022
|
+
});
|
|
38023
|
+
((PendleRedeemYieldParams$) => {
|
|
38024
|
+
PendleRedeemYieldParams$.inboundSchema = PendleRedeemYieldParams$inboundSchema;
|
|
38025
|
+
PendleRedeemYieldParams$.outboundSchema = PendleRedeemYieldParams$outboundSchema;
|
|
38026
|
+
})(PendleRedeemYieldParams$ ||= {});
|
|
38027
|
+
});
|
|
38028
|
+
|
|
38000
38029
|
// src/models/components/pendlesellptparams.ts
|
|
38001
38030
|
var PendleSellPtParamsAmount$inboundSchema, PendleSellPtParamsAmount$outboundSchema, PendleSellPtParamsAmount$, PendleSellPtParams$inboundSchema, PendleSellPtParams$outboundSchema, PendleSellPtParams$;
|
|
38002
38031
|
var init_pendlesellptparams = __esm(() => {
|
|
@@ -38671,6 +38700,7 @@ var init_useroperation = __esm(() => {
|
|
|
38671
38700
|
init_morphowithdrawparams();
|
|
38672
38701
|
init_pendlebuyptparams();
|
|
38673
38702
|
init_pendlebuyytparams();
|
|
38703
|
+
init_pendleredeemyieldparams();
|
|
38674
38704
|
init_pendlesellptparams();
|
|
38675
38705
|
init_pendlesellytparams();
|
|
38676
38706
|
init_skybuyparams();
|
|
@@ -38686,6 +38716,7 @@ var init_useroperation = __esm(() => {
|
|
|
38686
38716
|
init_unwrapwethparams();
|
|
38687
38717
|
init_wrapethparams();
|
|
38688
38718
|
Body$inboundSchema = unionType([
|
|
38719
|
+
PendleRedeemYieldParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38689
38720
|
UnwrapWethParams$inboundSchema.and(objectType({ action_type: literalType("UNWRAP_WETH") }).transform((v2) => ({
|
|
38690
38721
|
actionType: v2.action_type
|
|
38691
38722
|
}))),
|
|
@@ -38763,6 +38794,7 @@ var init_useroperation = __esm(() => {
|
|
|
38763
38794
|
UniswapMintLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_MINT_LIQUIDITY_PROVISION") }).transform((v2) => ({ actionType: v2.action_type })))
|
|
38764
38795
|
]);
|
|
38765
38796
|
Body$outboundSchema = unionType([
|
|
38797
|
+
PendleRedeemYieldParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38766
38798
|
UnwrapWethParams$outboundSchema.and(objectType({ actionType: literalType("UNWRAP_WETH") }).transform((v2) => ({
|
|
38767
38799
|
action_type: v2.actionType
|
|
38768
38800
|
}))),
|
|
@@ -38847,6 +38879,7 @@ var init_useroperation = __esm(() => {
|
|
|
38847
38879
|
})(Body$ ||= {});
|
|
38848
38880
|
UserOperation$inboundSchema = objectType({
|
|
38849
38881
|
body: unionType([
|
|
38882
|
+
PendleRedeemYieldParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38850
38883
|
UnwrapWethParams$inboundSchema.and(objectType({ action_type: literalType("UNWRAP_WETH") }).transform((v2) => ({
|
|
38851
38884
|
actionType: v2.action_type
|
|
38852
38885
|
}))),
|
|
@@ -38926,6 +38959,7 @@ var init_useroperation = __esm(() => {
|
|
|
38926
38959
|
});
|
|
38927
38960
|
UserOperation$outboundSchema = objectType({
|
|
38928
38961
|
body: unionType([
|
|
38962
|
+
PendleRedeemYieldParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38929
38963
|
UnwrapWethParams$outboundSchema.and(objectType({ actionType: literalType("UNWRAP_WETH") }).transform((v2) => ({
|
|
38930
38964
|
action_type: v2.actionType
|
|
38931
38965
|
}))),
|
|
@@ -40961,6 +40995,40 @@ var init_pendlelistuserpositionsresponse = __esm(() => {
|
|
|
40961
40995
|
})(PendleListUserPositionsResponse$ ||= {});
|
|
40962
40996
|
});
|
|
40963
40997
|
|
|
40998
|
+
// src/models/components/pendleredeemyieldrequest.ts
|
|
40999
|
+
var PendleRedeemYieldRequest$inboundSchema, PendleRedeemYieldRequest$outboundSchema, PendleRedeemYieldRequest$;
|
|
41000
|
+
var init_pendleredeemyieldrequest = __esm(() => {
|
|
41001
|
+
init_esm();
|
|
41002
|
+
init_primitives();
|
|
41003
|
+
init_chain();
|
|
41004
|
+
PendleRedeemYieldRequest$inboundSchema = objectType({
|
|
41005
|
+
action_type: literalType("PENDLE_REDEEM_YIELD").default("PENDLE_REDEEM_YIELD"),
|
|
41006
|
+
market_address: stringType(),
|
|
41007
|
+
chain: Chain$inboundSchema,
|
|
41008
|
+
sender: stringType()
|
|
41009
|
+
}).transform((v2) => {
|
|
41010
|
+
return remap(v2, {
|
|
41011
|
+
action_type: "actionType",
|
|
41012
|
+
market_address: "marketAddress"
|
|
41013
|
+
});
|
|
41014
|
+
});
|
|
41015
|
+
PendleRedeemYieldRequest$outboundSchema = objectType({
|
|
41016
|
+
actionType: literalType("PENDLE_REDEEM_YIELD").default("PENDLE_REDEEM_YIELD"),
|
|
41017
|
+
marketAddress: stringType(),
|
|
41018
|
+
chain: Chain$outboundSchema,
|
|
41019
|
+
sender: stringType()
|
|
41020
|
+
}).transform((v2) => {
|
|
41021
|
+
return remap(v2, {
|
|
41022
|
+
actionType: "action_type",
|
|
41023
|
+
marketAddress: "market_address"
|
|
41024
|
+
});
|
|
41025
|
+
});
|
|
41026
|
+
((PendleRedeemYieldRequest$) => {
|
|
41027
|
+
PendleRedeemYieldRequest$.inboundSchema = PendleRedeemYieldRequest$inboundSchema;
|
|
41028
|
+
PendleRedeemYieldRequest$.outboundSchema = PendleRedeemYieldRequest$outboundSchema;
|
|
41029
|
+
})(PendleRedeemYieldRequest$ ||= {});
|
|
41030
|
+
});
|
|
41031
|
+
|
|
40964
41032
|
// src/models/components/pendlesellptrequest.ts
|
|
40965
41033
|
var PendleSellPtRequestAmount$inboundSchema, PendleSellPtRequestAmount$outboundSchema, PendleSellPtRequestAmount$, PendleSellPtRequest$inboundSchema, PendleSellPtRequest$outboundSchema, PendleSellPtRequest$;
|
|
40966
41034
|
var init_pendlesellptrequest = __esm(() => {
|
|
@@ -42250,6 +42318,8 @@ var init_components = __esm(() => {
|
|
|
42250
42318
|
init_pendlelistmarketsresponse();
|
|
42251
42319
|
init_pendlelistuserpositionsresponse();
|
|
42252
42320
|
init_pendlemarket();
|
|
42321
|
+
init_pendleredeemyieldparams();
|
|
42322
|
+
init_pendleredeemyieldrequest();
|
|
42253
42323
|
init_pendlesellptparams();
|
|
42254
42324
|
init_pendlesellptrequest();
|
|
42255
42325
|
init_pendlesellytparams();
|
|
@@ -49252,11 +49322,114 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
|
49252
49322
|
};
|
|
49253
49323
|
});
|
|
49254
49324
|
|
|
49255
|
-
// src/funcs/
|
|
49256
|
-
function
|
|
49325
|
+
// src/funcs/pendleRedeemYield.ts
|
|
49326
|
+
function pendleRedeemYield(client, request, options) {
|
|
49257
49327
|
return new APIPromise($do41(client, request, options));
|
|
49258
49328
|
}
|
|
49259
49329
|
async function $do41(client, request, options) {
|
|
49330
|
+
const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49331
|
+
if (!parsed.ok) {
|
|
49332
|
+
return [parsed, { status: "invalid" }];
|
|
49333
|
+
}
|
|
49334
|
+
const payload = parsed.value;
|
|
49335
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
49336
|
+
const path = pathToFunc("/v0/pendle/redeem_yield")();
|
|
49337
|
+
const headers = new Headers(compactMap({
|
|
49338
|
+
"Content-Type": "application/json",
|
|
49339
|
+
Accept: "application/json"
|
|
49340
|
+
}));
|
|
49341
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
49342
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
49343
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49344
|
+
const context = {
|
|
49345
|
+
options: client._options,
|
|
49346
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49347
|
+
operationID: "pendle_redeem_yield",
|
|
49348
|
+
oAuth2Scopes: [],
|
|
49349
|
+
resolvedSecurity: requestSecurity,
|
|
49350
|
+
securitySource: client._options.apiKeyAuth,
|
|
49351
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
49352
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
49353
|
+
};
|
|
49354
|
+
const requestRes = client._createRequest(context, {
|
|
49355
|
+
security: requestSecurity,
|
|
49356
|
+
method: "POST",
|
|
49357
|
+
baseURL: options?.serverURL,
|
|
49358
|
+
path,
|
|
49359
|
+
headers,
|
|
49360
|
+
body,
|
|
49361
|
+
userAgent: client._options.userAgent,
|
|
49362
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49363
|
+
}, options);
|
|
49364
|
+
if (!requestRes.ok) {
|
|
49365
|
+
return [requestRes, { status: "invalid" }];
|
|
49366
|
+
}
|
|
49367
|
+
const req = requestRes.value;
|
|
49368
|
+
const doResult = await client._do(req, {
|
|
49369
|
+
context,
|
|
49370
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
49371
|
+
retryConfig: context.retryConfig,
|
|
49372
|
+
retryCodes: context.retryCodes
|
|
49373
|
+
});
|
|
49374
|
+
if (!doResult.ok) {
|
|
49375
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49376
|
+
}
|
|
49377
|
+
const response = doResult.value;
|
|
49378
|
+
const responseFields = {
|
|
49379
|
+
HttpMeta: { Response: response, Request: req }
|
|
49380
|
+
};
|
|
49381
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49382
|
+
if (!result.ok) {
|
|
49383
|
+
return [result, { status: "complete", request: req, response }];
|
|
49384
|
+
}
|
|
49385
|
+
return [result, { status: "complete", request: req, response }];
|
|
49386
|
+
}
|
|
49387
|
+
var init_pendleRedeemYield = __esm(() => {
|
|
49388
|
+
init_encodings();
|
|
49389
|
+
init_matchers();
|
|
49390
|
+
init_primitives();
|
|
49391
|
+
init_schemas();
|
|
49392
|
+
init_security();
|
|
49393
|
+
init_url();
|
|
49394
|
+
init_components();
|
|
49395
|
+
init_errors2();
|
|
49396
|
+
init_async();
|
|
49397
|
+
});
|
|
49398
|
+
|
|
49399
|
+
// src/mcp-server/tools/pendleRedeemYield.ts
|
|
49400
|
+
var args41, tool$pendleRedeemYield;
|
|
49401
|
+
var init_pendleRedeemYield2 = __esm(() => {
|
|
49402
|
+
init_pendleRedeemYield();
|
|
49403
|
+
init_components();
|
|
49404
|
+
init_tools();
|
|
49405
|
+
args41 = {
|
|
49406
|
+
request: PendleRedeemYieldRequest$inboundSchema
|
|
49407
|
+
};
|
|
49408
|
+
tool$pendleRedeemYield = {
|
|
49409
|
+
name: "pendle-redeem-yield",
|
|
49410
|
+
description: `Redeem Claimable Yield
|
|
49411
|
+
|
|
49412
|
+
Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
49413
|
+
args: args41,
|
|
49414
|
+
tool: async (client, args42, ctx) => {
|
|
49415
|
+
const [result, apiCall] = await pendleRedeemYield(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49416
|
+
if (!result.ok) {
|
|
49417
|
+
return {
|
|
49418
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49419
|
+
isError: true
|
|
49420
|
+
};
|
|
49421
|
+
}
|
|
49422
|
+
const value = result.value;
|
|
49423
|
+
return formatResult(value, apiCall);
|
|
49424
|
+
}
|
|
49425
|
+
};
|
|
49426
|
+
});
|
|
49427
|
+
|
|
49428
|
+
// src/funcs/pendleSellPt.ts
|
|
49429
|
+
function pendleSellPt(client, request, options) {
|
|
49430
|
+
return new APIPromise($do42(client, request, options));
|
|
49431
|
+
}
|
|
49432
|
+
async function $do42(client, request, options) {
|
|
49260
49433
|
const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49261
49434
|
if (!parsed.ok) {
|
|
49262
49435
|
return [parsed, { status: "invalid" }];
|
|
@@ -49327,12 +49500,12 @@ var init_pendleSellPt = __esm(() => {
|
|
|
49327
49500
|
});
|
|
49328
49501
|
|
|
49329
49502
|
// src/mcp-server/tools/pendleSellPt.ts
|
|
49330
|
-
var
|
|
49503
|
+
var args42, tool$pendleSellPt;
|
|
49331
49504
|
var init_pendleSellPt2 = __esm(() => {
|
|
49332
49505
|
init_pendleSellPt();
|
|
49333
49506
|
init_components();
|
|
49334
49507
|
init_tools();
|
|
49335
|
-
|
|
49508
|
+
args42 = {
|
|
49336
49509
|
request: PendleSellPtRequest$inboundSchema
|
|
49337
49510
|
};
|
|
49338
49511
|
tool$pendleSellPt = {
|
|
@@ -49340,9 +49513,9 @@ var init_pendleSellPt2 = __esm(() => {
|
|
|
49340
49513
|
description: `Sell Principal Token (PT)
|
|
49341
49514
|
|
|
49342
49515
|
Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
49343
|
-
args:
|
|
49344
|
-
tool: async (client,
|
|
49345
|
-
const [result, apiCall] = await pendleSellPt(client,
|
|
49516
|
+
args: args42,
|
|
49517
|
+
tool: async (client, args43, ctx) => {
|
|
49518
|
+
const [result, apiCall] = await pendleSellPt(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49346
49519
|
if (!result.ok) {
|
|
49347
49520
|
return {
|
|
49348
49521
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49357,9 +49530,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
|
49357
49530
|
|
|
49358
49531
|
// src/funcs/pendleSellYt.ts
|
|
49359
49532
|
function pendleSellYt(client, request, options) {
|
|
49360
|
-
return new APIPromise($
|
|
49533
|
+
return new APIPromise($do43(client, request, options));
|
|
49361
49534
|
}
|
|
49362
|
-
async function $
|
|
49535
|
+
async function $do43(client, request, options) {
|
|
49363
49536
|
const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49364
49537
|
if (!parsed.ok) {
|
|
49365
49538
|
return [parsed, { status: "invalid" }];
|
|
@@ -49430,12 +49603,12 @@ var init_pendleSellYt = __esm(() => {
|
|
|
49430
49603
|
});
|
|
49431
49604
|
|
|
49432
49605
|
// src/mcp-server/tools/pendleSellYt.ts
|
|
49433
|
-
var
|
|
49606
|
+
var args43, tool$pendleSellYt;
|
|
49434
49607
|
var init_pendleSellYt2 = __esm(() => {
|
|
49435
49608
|
init_pendleSellYt();
|
|
49436
49609
|
init_components();
|
|
49437
49610
|
init_tools();
|
|
49438
|
-
|
|
49611
|
+
args43 = {
|
|
49439
49612
|
request: PendleSellYtRequest$inboundSchema
|
|
49440
49613
|
};
|
|
49441
49614
|
tool$pendleSellYt = {
|
|
@@ -49443,9 +49616,9 @@ var init_pendleSellYt2 = __esm(() => {
|
|
|
49443
49616
|
description: `Sell Yield Token (YT)
|
|
49444
49617
|
|
|
49445
49618
|
Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
49446
|
-
args:
|
|
49447
|
-
tool: async (client,
|
|
49448
|
-
const [result, apiCall] = await pendleSellYt(client,
|
|
49619
|
+
args: args43,
|
|
49620
|
+
tool: async (client, args44, ctx) => {
|
|
49621
|
+
const [result, apiCall] = await pendleSellYt(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49449
49622
|
if (!result.ok) {
|
|
49450
49623
|
return {
|
|
49451
49624
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49460,9 +49633,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
|
49460
49633
|
|
|
49461
49634
|
// src/funcs/skyBuy.ts
|
|
49462
49635
|
function skyBuy(client, request, options) {
|
|
49463
|
-
return new APIPromise($
|
|
49636
|
+
return new APIPromise($do44(client, request, options));
|
|
49464
49637
|
}
|
|
49465
|
-
async function $
|
|
49638
|
+
async function $do44(client, request, options) {
|
|
49466
49639
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49467
49640
|
if (!parsed.ok) {
|
|
49468
49641
|
return [parsed, { status: "invalid" }];
|
|
@@ -49533,12 +49706,12 @@ var init_skyBuy = __esm(() => {
|
|
|
49533
49706
|
});
|
|
49534
49707
|
|
|
49535
49708
|
// src/mcp-server/tools/skyBuy.ts
|
|
49536
|
-
var
|
|
49709
|
+
var args44, tool$skyBuy;
|
|
49537
49710
|
var init_skyBuy2 = __esm(() => {
|
|
49538
49711
|
init_skyBuy();
|
|
49539
49712
|
init_components();
|
|
49540
49713
|
init_tools();
|
|
49541
|
-
|
|
49714
|
+
args44 = {
|
|
49542
49715
|
request: SkyBuyRequest$inboundSchema
|
|
49543
49716
|
};
|
|
49544
49717
|
tool$skyBuy = {
|
|
@@ -49552,9 +49725,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
49552
49725
|
|
|
49553
49726
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
49554
49727
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
49555
|
-
args:
|
|
49556
|
-
tool: async (client,
|
|
49557
|
-
const [result, apiCall] = await skyBuy(client,
|
|
49728
|
+
args: args44,
|
|
49729
|
+
tool: async (client, args45, ctx) => {
|
|
49730
|
+
const [result, apiCall] = await skyBuy(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49558
49731
|
if (!result.ok) {
|
|
49559
49732
|
return {
|
|
49560
49733
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49569,9 +49742,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
49569
49742
|
|
|
49570
49743
|
// src/funcs/skyDeposit.ts
|
|
49571
49744
|
function skyDeposit(client, request, options) {
|
|
49572
|
-
return new APIPromise($
|
|
49745
|
+
return new APIPromise($do45(client, request, options));
|
|
49573
49746
|
}
|
|
49574
|
-
async function $
|
|
49747
|
+
async function $do45(client, request, options) {
|
|
49575
49748
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49576
49749
|
if (!parsed.ok) {
|
|
49577
49750
|
return [parsed, { status: "invalid" }];
|
|
@@ -49642,12 +49815,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
49642
49815
|
});
|
|
49643
49816
|
|
|
49644
49817
|
// src/mcp-server/tools/skyDeposit.ts
|
|
49645
|
-
var
|
|
49818
|
+
var args45, tool$skyDeposit;
|
|
49646
49819
|
var init_skyDeposit2 = __esm(() => {
|
|
49647
49820
|
init_skyDeposit();
|
|
49648
49821
|
init_components();
|
|
49649
49822
|
init_tools();
|
|
49650
|
-
|
|
49823
|
+
args45 = {
|
|
49651
49824
|
request: SkyDepositRequest$inboundSchema
|
|
49652
49825
|
};
|
|
49653
49826
|
tool$skyDeposit = {
|
|
@@ -49657,9 +49830,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
49657
49830
|
Deposit USDS for sUSDS to earn yield.
|
|
49658
49831
|
|
|
49659
49832
|
There are no fees.`,
|
|
49660
|
-
args:
|
|
49661
|
-
tool: async (client,
|
|
49662
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
49833
|
+
args: args45,
|
|
49834
|
+
tool: async (client, args46, ctx) => {
|
|
49835
|
+
const [result, apiCall] = await skyDeposit(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49663
49836
|
if (!result.ok) {
|
|
49664
49837
|
return {
|
|
49665
49838
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49674,9 +49847,9 @@ There are no fees.`,
|
|
|
49674
49847
|
|
|
49675
49848
|
// src/funcs/skyPosition.ts
|
|
49676
49849
|
function skyPosition(client, request, options) {
|
|
49677
|
-
return new APIPromise($
|
|
49850
|
+
return new APIPromise($do46(client, request, options));
|
|
49678
49851
|
}
|
|
49679
|
-
async function $
|
|
49852
|
+
async function $do46(client, request, options) {
|
|
49680
49853
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49681
49854
|
if (!parsed.ok) {
|
|
49682
49855
|
return [parsed, { status: "invalid" }];
|
|
@@ -49753,12 +49926,12 @@ var init_skyPosition = __esm(() => {
|
|
|
49753
49926
|
});
|
|
49754
49927
|
|
|
49755
49928
|
// src/mcp-server/tools/skyPosition.ts
|
|
49756
|
-
var
|
|
49929
|
+
var args46, tool$skyPosition;
|
|
49757
49930
|
var init_skyPosition2 = __esm(() => {
|
|
49758
49931
|
init_skyPosition();
|
|
49759
49932
|
init_operations();
|
|
49760
49933
|
init_tools();
|
|
49761
|
-
|
|
49934
|
+
args46 = {
|
|
49762
49935
|
request: SkyPositionRequest$inboundSchema
|
|
49763
49936
|
};
|
|
49764
49937
|
tool$skyPosition = {
|
|
@@ -49766,9 +49939,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
49766
49939
|
description: `Check USDS Position
|
|
49767
49940
|
|
|
49768
49941
|
Check the USDS overall position.`,
|
|
49769
|
-
args:
|
|
49770
|
-
tool: async (client,
|
|
49771
|
-
const [result, apiCall] = await skyPosition(client,
|
|
49942
|
+
args: args46,
|
|
49943
|
+
tool: async (client, args47, ctx) => {
|
|
49944
|
+
const [result, apiCall] = await skyPosition(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49772
49945
|
if (!result.ok) {
|
|
49773
49946
|
return {
|
|
49774
49947
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49783,9 +49956,9 @@ Check the USDS overall position.`,
|
|
|
49783
49956
|
|
|
49784
49957
|
// src/funcs/skySell.ts
|
|
49785
49958
|
function skySell(client, request, options) {
|
|
49786
|
-
return new APIPromise($
|
|
49959
|
+
return new APIPromise($do47(client, request, options));
|
|
49787
49960
|
}
|
|
49788
|
-
async function $
|
|
49961
|
+
async function $do47(client, request, options) {
|
|
49789
49962
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49790
49963
|
if (!parsed.ok) {
|
|
49791
49964
|
return [parsed, { status: "invalid" }];
|
|
@@ -49856,12 +50029,12 @@ var init_skySell = __esm(() => {
|
|
|
49856
50029
|
});
|
|
49857
50030
|
|
|
49858
50031
|
// src/mcp-server/tools/skySell.ts
|
|
49859
|
-
var
|
|
50032
|
+
var args47, tool$skySell;
|
|
49860
50033
|
var init_skySell2 = __esm(() => {
|
|
49861
50034
|
init_skySell();
|
|
49862
50035
|
init_components();
|
|
49863
50036
|
init_tools();
|
|
49864
|
-
|
|
50037
|
+
args47 = {
|
|
49865
50038
|
request: SkySellRequest$inboundSchema
|
|
49866
50039
|
};
|
|
49867
50040
|
tool$skySell = {
|
|
@@ -49875,9 +50048,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
49875
50048
|
|
|
49876
50049
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
49877
50050
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
49878
|
-
args:
|
|
49879
|
-
tool: async (client,
|
|
49880
|
-
const [result, apiCall] = await skySell(client,
|
|
50051
|
+
args: args47,
|
|
50052
|
+
tool: async (client, args48, ctx) => {
|
|
50053
|
+
const [result, apiCall] = await skySell(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49881
50054
|
if (!result.ok) {
|
|
49882
50055
|
return {
|
|
49883
50056
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49892,9 +50065,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
49892
50065
|
|
|
49893
50066
|
// src/funcs/skyWithdraw.ts
|
|
49894
50067
|
function skyWithdraw(client, request, options) {
|
|
49895
|
-
return new APIPromise($
|
|
50068
|
+
return new APIPromise($do48(client, request, options));
|
|
49896
50069
|
}
|
|
49897
|
-
async function $
|
|
50070
|
+
async function $do48(client, request, options) {
|
|
49898
50071
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49899
50072
|
if (!parsed.ok) {
|
|
49900
50073
|
return [parsed, { status: "invalid" }];
|
|
@@ -49965,12 +50138,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
49965
50138
|
});
|
|
49966
50139
|
|
|
49967
50140
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
49968
|
-
var
|
|
50141
|
+
var args48, tool$skyWithdraw;
|
|
49969
50142
|
var init_skyWithdraw2 = __esm(() => {
|
|
49970
50143
|
init_skyWithdraw();
|
|
49971
50144
|
init_components();
|
|
49972
50145
|
init_tools();
|
|
49973
|
-
|
|
50146
|
+
args48 = {
|
|
49974
50147
|
request: SkyWithdrawRequest$inboundSchema
|
|
49975
50148
|
};
|
|
49976
50149
|
tool$skyWithdraw = {
|
|
@@ -49978,9 +50151,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
49978
50151
|
description: `Withdraw USDS
|
|
49979
50152
|
|
|
49980
50153
|
Withdraw USDS for sUSDS to stop earning yield.`,
|
|
49981
|
-
args:
|
|
49982
|
-
tool: async (client,
|
|
49983
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
50154
|
+
args: args48,
|
|
50155
|
+
tool: async (client, args49, ctx) => {
|
|
50156
|
+
const [result, apiCall] = await skyWithdraw(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49984
50157
|
if (!result.ok) {
|
|
49985
50158
|
return {
|
|
49986
50159
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49995,9 +50168,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
|
|
|
49995
50168
|
|
|
49996
50169
|
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
49997
50170
|
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
49998
|
-
return new APIPromise($
|
|
50171
|
+
return new APIPromise($do49(client, request, options));
|
|
49999
50172
|
}
|
|
50000
|
-
async function $
|
|
50173
|
+
async function $do49(client, request, options) {
|
|
50001
50174
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50002
50175
|
if (!parsed.ok) {
|
|
50003
50176
|
return [parsed, { status: "invalid" }];
|
|
@@ -50068,12 +50241,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
50068
50241
|
});
|
|
50069
50242
|
|
|
50070
50243
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
50071
|
-
var
|
|
50244
|
+
var args49, tool$smartAccountAccountBatchedUserOperations;
|
|
50072
50245
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
50073
50246
|
init_smartAccountAccountBatchedUserOperations();
|
|
50074
50247
|
init_components();
|
|
50075
50248
|
init_tools();
|
|
50076
|
-
|
|
50249
|
+
args49 = {
|
|
50077
50250
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
50078
50251
|
};
|
|
50079
50252
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -50081,9 +50254,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
50081
50254
|
description: `Get Smart Account Batched User Operations
|
|
50082
50255
|
|
|
50083
50256
|
Generate a list of user operations for smart account batching.`,
|
|
50084
|
-
args:
|
|
50085
|
-
tool: async (client,
|
|
50086
|
-
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client,
|
|
50257
|
+
args: args49,
|
|
50258
|
+
tool: async (client, args50, ctx) => {
|
|
50259
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50087
50260
|
if (!result.ok) {
|
|
50088
50261
|
return {
|
|
50089
50262
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50098,9 +50271,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
50098
50271
|
|
|
50099
50272
|
// src/funcs/tokenAddress.ts
|
|
50100
50273
|
function tokenAddress(client, request, options) {
|
|
50101
|
-
return new APIPromise($
|
|
50274
|
+
return new APIPromise($do50(client, request, options));
|
|
50102
50275
|
}
|
|
50103
|
-
async function $
|
|
50276
|
+
async function $do50(client, request, options) {
|
|
50104
50277
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50105
50278
|
if (!parsed.ok) {
|
|
50106
50279
|
return [parsed, { status: "invalid" }];
|
|
@@ -50177,12 +50350,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
50177
50350
|
});
|
|
50178
50351
|
|
|
50179
50352
|
// src/mcp-server/tools/tokenAddress.ts
|
|
50180
|
-
var
|
|
50353
|
+
var args50, tool$tokenAddress;
|
|
50181
50354
|
var init_tokenAddress2 = __esm(() => {
|
|
50182
50355
|
init_tokenAddress();
|
|
50183
50356
|
init_operations();
|
|
50184
50357
|
init_tools();
|
|
50185
|
-
|
|
50358
|
+
args50 = {
|
|
50186
50359
|
request: TokenAddressRequest$inboundSchema
|
|
50187
50360
|
};
|
|
50188
50361
|
tool$tokenAddress = {
|
|
@@ -50190,9 +50363,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
50190
50363
|
description: `Token Address
|
|
50191
50364
|
|
|
50192
50365
|
This endpoint retrieves the address for a token supported by us.`,
|
|
50193
|
-
args:
|
|
50194
|
-
tool: async (client,
|
|
50195
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
50366
|
+
args: args50,
|
|
50367
|
+
tool: async (client, args51, ctx) => {
|
|
50368
|
+
const [result, apiCall] = await tokenAddress(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50196
50369
|
if (!result.ok) {
|
|
50197
50370
|
return {
|
|
50198
50371
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50207,9 +50380,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
50207
50380
|
|
|
50208
50381
|
// src/funcs/tokenBalance.ts
|
|
50209
50382
|
function tokenBalance(client, request, options) {
|
|
50210
|
-
return new APIPromise($
|
|
50383
|
+
return new APIPromise($do51(client, request, options));
|
|
50211
50384
|
}
|
|
50212
|
-
async function $
|
|
50385
|
+
async function $do51(client, request, options) {
|
|
50213
50386
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50214
50387
|
if (!parsed.ok) {
|
|
50215
50388
|
return [parsed, { status: "invalid" }];
|
|
@@ -50287,12 +50460,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
50287
50460
|
});
|
|
50288
50461
|
|
|
50289
50462
|
// src/mcp-server/tools/tokenBalance.ts
|
|
50290
|
-
var
|
|
50463
|
+
var args51, tool$tokenBalance;
|
|
50291
50464
|
var init_tokenBalance2 = __esm(() => {
|
|
50292
50465
|
init_tokenBalance();
|
|
50293
50466
|
init_operations();
|
|
50294
50467
|
init_tools();
|
|
50295
|
-
|
|
50468
|
+
args51 = {
|
|
50296
50469
|
request: TokenBalanceRequest$inboundSchema
|
|
50297
50470
|
};
|
|
50298
50471
|
tool$tokenBalance = {
|
|
@@ -50300,9 +50473,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
50300
50473
|
description: `Token Balance
|
|
50301
50474
|
|
|
50302
50475
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
50303
|
-
args:
|
|
50304
|
-
tool: async (client,
|
|
50305
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
50476
|
+
args: args51,
|
|
50477
|
+
tool: async (client, args52, ctx) => {
|
|
50478
|
+
const [result, apiCall] = await tokenBalance(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50306
50479
|
if (!result.ok) {
|
|
50307
50480
|
return {
|
|
50308
50481
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50317,9 +50490,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
50317
50490
|
|
|
50318
50491
|
// src/funcs/tokenPrice.ts
|
|
50319
50492
|
function tokenPrice(client, request, options) {
|
|
50320
|
-
return new APIPromise($
|
|
50493
|
+
return new APIPromise($do52(client, request, options));
|
|
50321
50494
|
}
|
|
50322
|
-
async function $
|
|
50495
|
+
async function $do52(client, request, options) {
|
|
50323
50496
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50324
50497
|
if (!parsed.ok) {
|
|
50325
50498
|
return [parsed, { status: "invalid" }];
|
|
@@ -50395,12 +50568,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
50395
50568
|
});
|
|
50396
50569
|
|
|
50397
50570
|
// src/mcp-server/tools/tokenPrice.ts
|
|
50398
|
-
var
|
|
50571
|
+
var args52, tool$tokenPrice;
|
|
50399
50572
|
var init_tokenPrice2 = __esm(() => {
|
|
50400
50573
|
init_tokenPrice();
|
|
50401
50574
|
init_operations();
|
|
50402
50575
|
init_tools();
|
|
50403
|
-
|
|
50576
|
+
args52 = {
|
|
50404
50577
|
request: TokenPriceRequest$inboundSchema
|
|
50405
50578
|
};
|
|
50406
50579
|
tool$tokenPrice = {
|
|
@@ -50412,9 +50585,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
50412
50585
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
50413
50586
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
50414
50587
|
with the update frequency of the oracle.`,
|
|
50415
|
-
args:
|
|
50416
|
-
tool: async (client,
|
|
50417
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
50588
|
+
args: args52,
|
|
50589
|
+
tool: async (client, args53, ctx) => {
|
|
50590
|
+
const [result, apiCall] = await tokenPrice(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50418
50591
|
if (!result.ok) {
|
|
50419
50592
|
return {
|
|
50420
50593
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50429,9 +50602,9 @@ with the update frequency of the oracle.`,
|
|
|
50429
50602
|
|
|
50430
50603
|
// src/funcs/tokenTransfer.ts
|
|
50431
50604
|
function tokenTransfer(client, request, options) {
|
|
50432
|
-
return new APIPromise($
|
|
50605
|
+
return new APIPromise($do53(client, request, options));
|
|
50433
50606
|
}
|
|
50434
|
-
async function $
|
|
50607
|
+
async function $do53(client, request, options) {
|
|
50435
50608
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50436
50609
|
if (!parsed.ok) {
|
|
50437
50610
|
return [parsed, { status: "invalid" }];
|
|
@@ -50502,12 +50675,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
50502
50675
|
});
|
|
50503
50676
|
|
|
50504
50677
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
50505
|
-
var
|
|
50678
|
+
var args53, tool$tokenTransfer;
|
|
50506
50679
|
var init_tokenTransfer2 = __esm(() => {
|
|
50507
50680
|
init_tokenTransfer();
|
|
50508
50681
|
init_components();
|
|
50509
50682
|
init_tools();
|
|
50510
|
-
|
|
50683
|
+
args53 = {
|
|
50511
50684
|
request: TokenTransferRequest$inboundSchema
|
|
50512
50685
|
};
|
|
50513
50686
|
tool$tokenTransfer = {
|
|
@@ -50515,9 +50688,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
50515
50688
|
description: `Transfer ETH or ERC20 Tokens.
|
|
50516
50689
|
|
|
50517
50690
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
50518
|
-
args:
|
|
50519
|
-
tool: async (client,
|
|
50520
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
50691
|
+
args: args53,
|
|
50692
|
+
tool: async (client, args54, ctx) => {
|
|
50693
|
+
const [result, apiCall] = await tokenTransfer(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50521
50694
|
if (!result.ok) {
|
|
50522
50695
|
return {
|
|
50523
50696
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50532,9 +50705,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
50532
50705
|
|
|
50533
50706
|
// src/funcs/transactionBatchingAaveLoop.ts
|
|
50534
50707
|
function transactionBatchingAaveLoop(client, request, options) {
|
|
50535
|
-
return new APIPromise($
|
|
50708
|
+
return new APIPromise($do54(client, request, options));
|
|
50536
50709
|
}
|
|
50537
|
-
async function $
|
|
50710
|
+
async function $do54(client, request, options) {
|
|
50538
50711
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50539
50712
|
if (!parsed.ok) {
|
|
50540
50713
|
return [parsed, { status: "invalid" }];
|
|
@@ -50605,12 +50778,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
|
|
|
50605
50778
|
});
|
|
50606
50779
|
|
|
50607
50780
|
// src/mcp-server/tools/transactionBatchingAaveLoop.ts
|
|
50608
|
-
var
|
|
50781
|
+
var args54, tool$transactionBatchingAaveLoop;
|
|
50609
50782
|
var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
50610
50783
|
init_transactionBatchingAaveLoop();
|
|
50611
50784
|
init_components();
|
|
50612
50785
|
init_tools();
|
|
50613
|
-
|
|
50786
|
+
args54 = {
|
|
50614
50787
|
request: AaveLoopRequest$inboundSchema
|
|
50615
50788
|
};
|
|
50616
50789
|
tool$transactionBatchingAaveLoop = {
|
|
@@ -50628,9 +50801,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
50628
50801
|
- Supplies the swapped tokens
|
|
50629
50802
|
|
|
50630
50803
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
50631
|
-
args:
|
|
50632
|
-
tool: async (client,
|
|
50633
|
-
const [result, apiCall] = await transactionBatchingAaveLoop(client,
|
|
50804
|
+
args: args54,
|
|
50805
|
+
tool: async (client, args55, ctx) => {
|
|
50806
|
+
const [result, apiCall] = await transactionBatchingAaveLoop(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50634
50807
|
if (!result.ok) {
|
|
50635
50808
|
return {
|
|
50636
50809
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50645,9 +50818,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
50645
50818
|
|
|
50646
50819
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
50647
50820
|
function transactionBatchingAuthorization(client, request, options) {
|
|
50648
|
-
return new APIPromise($
|
|
50821
|
+
return new APIPromise($do55(client, request, options));
|
|
50649
50822
|
}
|
|
50650
|
-
async function $
|
|
50823
|
+
async function $do55(client, request, options) {
|
|
50651
50824
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50652
50825
|
if (!parsed.ok) {
|
|
50653
50826
|
return [parsed, { status: "invalid" }];
|
|
@@ -50718,12 +50891,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
50718
50891
|
});
|
|
50719
50892
|
|
|
50720
50893
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
50721
|
-
var
|
|
50894
|
+
var args55, tool$transactionBatchingAuthorization;
|
|
50722
50895
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
50723
50896
|
init_transactionBatchingAuthorization();
|
|
50724
50897
|
init_components();
|
|
50725
50898
|
init_tools();
|
|
50726
|
-
|
|
50899
|
+
args55 = {
|
|
50727
50900
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
50728
50901
|
};
|
|
50729
50902
|
tool$transactionBatchingAuthorization = {
|
|
@@ -50736,9 +50909,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
50736
50909
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
50737
50910
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
50738
50911
|
targeting.`,
|
|
50739
|
-
args:
|
|
50740
|
-
tool: async (client,
|
|
50741
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
50912
|
+
args: args55,
|
|
50913
|
+
tool: async (client, args56, ctx) => {
|
|
50914
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50742
50915
|
if (!result.ok) {
|
|
50743
50916
|
return {
|
|
50744
50917
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50753,9 +50926,9 @@ targeting.`,
|
|
|
50753
50926
|
|
|
50754
50927
|
// src/funcs/transactionBatchingExecute.ts
|
|
50755
50928
|
function transactionBatchingExecute(client, request, options) {
|
|
50756
|
-
return new APIPromise($
|
|
50929
|
+
return new APIPromise($do56(client, request, options));
|
|
50757
50930
|
}
|
|
50758
|
-
async function $
|
|
50931
|
+
async function $do56(client, request, options) {
|
|
50759
50932
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50760
50933
|
if (!parsed.ok) {
|
|
50761
50934
|
return [parsed, { status: "invalid" }];
|
|
@@ -50826,12 +50999,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
50826
50999
|
});
|
|
50827
51000
|
|
|
50828
51001
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
50829
|
-
var
|
|
51002
|
+
var args56, tool$transactionBatchingExecute;
|
|
50830
51003
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
50831
51004
|
init_transactionBatchingExecute();
|
|
50832
51005
|
init_components();
|
|
50833
51006
|
init_tools();
|
|
50834
|
-
|
|
51007
|
+
args56 = {
|
|
50835
51008
|
request: MulticallExecuteRequest$inboundSchema
|
|
50836
51009
|
};
|
|
50837
51010
|
tool$transactionBatchingExecute = {
|
|
@@ -50844,9 +51017,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
50844
51017
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
50845
51018
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
50846
51019
|
prevent replay attacks.`,
|
|
50847
|
-
args:
|
|
50848
|
-
tool: async (client,
|
|
50849
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
51020
|
+
args: args56,
|
|
51021
|
+
tool: async (client, args57, ctx) => {
|
|
51022
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50850
51023
|
if (!result.ok) {
|
|
50851
51024
|
return {
|
|
50852
51025
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50861,9 +51034,9 @@ prevent replay attacks.`,
|
|
|
50861
51034
|
|
|
50862
51035
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
50863
51036
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
50864
|
-
return new APIPromise($
|
|
51037
|
+
return new APIPromise($do57(client, request, options));
|
|
50865
51038
|
}
|
|
50866
|
-
async function $
|
|
51039
|
+
async function $do57(client, request, options) {
|
|
50867
51040
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50868
51041
|
if (!parsed.ok) {
|
|
50869
51042
|
return [parsed, { status: "invalid" }];
|
|
@@ -50934,12 +51107,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
50934
51107
|
});
|
|
50935
51108
|
|
|
50936
51109
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
50937
|
-
var
|
|
51110
|
+
var args57, tool$uniswapV3LiquidityProvisionIncrease;
|
|
50938
51111
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
50939
51112
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
50940
51113
|
init_components();
|
|
50941
51114
|
init_tools();
|
|
50942
|
-
|
|
51115
|
+
args57 = {
|
|
50943
51116
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
50944
51117
|
};
|
|
50945
51118
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -50955,9 +51128,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
50955
51128
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
50956
51129
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
50957
51130
|
process.`,
|
|
50958
|
-
args:
|
|
50959
|
-
tool: async (client,
|
|
50960
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
51131
|
+
args: args57,
|
|
51132
|
+
tool: async (client, args58, ctx) => {
|
|
51133
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50961
51134
|
if (!result.ok) {
|
|
50962
51135
|
return {
|
|
50963
51136
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50972,9 +51145,9 @@ process.`,
|
|
|
50972
51145
|
|
|
50973
51146
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
50974
51147
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
50975
|
-
return new APIPromise($
|
|
51148
|
+
return new APIPromise($do58(client, request, options));
|
|
50976
51149
|
}
|
|
50977
|
-
async function $
|
|
51150
|
+
async function $do58(client, request, options) {
|
|
50978
51151
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50979
51152
|
if (!parsed.ok) {
|
|
50980
51153
|
return [parsed, { status: "invalid" }];
|
|
@@ -51051,12 +51224,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
51051
51224
|
});
|
|
51052
51225
|
|
|
51053
51226
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
51054
|
-
var
|
|
51227
|
+
var args58, tool$uniswapV3LiquidityProvisionInRange;
|
|
51055
51228
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
51056
51229
|
init_uniswapV3LiquidityProvisionInRange();
|
|
51057
51230
|
init_operations();
|
|
51058
51231
|
init_tools();
|
|
51059
|
-
|
|
51232
|
+
args58 = {
|
|
51060
51233
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
51061
51234
|
};
|
|
51062
51235
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -51071,9 +51244,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
51071
51244
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
51072
51245
|
they are actively participating in the trading activities within the liquidity pool
|
|
51073
51246
|
and earning trading fees.`,
|
|
51074
|
-
args:
|
|
51075
|
-
tool: async (client,
|
|
51076
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
51247
|
+
args: args58,
|
|
51248
|
+
tool: async (client, args59, ctx) => {
|
|
51249
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51077
51250
|
if (!result.ok) {
|
|
51078
51251
|
return {
|
|
51079
51252
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51088,9 +51261,9 @@ and earning trading fees.`,
|
|
|
51088
51261
|
|
|
51089
51262
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
51090
51263
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
51091
|
-
return new APIPromise($
|
|
51264
|
+
return new APIPromise($do59(client, request, options));
|
|
51092
51265
|
}
|
|
51093
|
-
async function $
|
|
51266
|
+
async function $do59(client, request, options) {
|
|
51094
51267
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51095
51268
|
if (!parsed.ok) {
|
|
51096
51269
|
return [parsed, { status: "invalid" }];
|
|
@@ -51161,12 +51334,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
51161
51334
|
});
|
|
51162
51335
|
|
|
51163
51336
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
51164
|
-
var
|
|
51337
|
+
var args59, tool$uniswapV3LiquidityProvisionMint;
|
|
51165
51338
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
51166
51339
|
init_uniswapV3LiquidityProvisionMint();
|
|
51167
51340
|
init_components();
|
|
51168
51341
|
init_tools();
|
|
51169
|
-
|
|
51342
|
+
args59 = {
|
|
51170
51343
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
51171
51344
|
};
|
|
51172
51345
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -51182,9 +51355,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
51182
51355
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
51183
51356
|
requires details such as the token pair, amount, and any additional parameters
|
|
51184
51357
|
needed for the minting process.`,
|
|
51185
|
-
args:
|
|
51186
|
-
tool: async (client,
|
|
51187
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
51358
|
+
args: args59,
|
|
51359
|
+
tool: async (client, args60, ctx) => {
|
|
51360
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51188
51361
|
if (!result.ok) {
|
|
51189
51362
|
return {
|
|
51190
51363
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51199,9 +51372,9 @@ needed for the minting process.`,
|
|
|
51199
51372
|
|
|
51200
51373
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
51201
51374
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
51202
|
-
return new APIPromise($
|
|
51375
|
+
return new APIPromise($do60(client, request, options));
|
|
51203
51376
|
}
|
|
51204
|
-
async function $
|
|
51377
|
+
async function $do60(client, request, options) {
|
|
51205
51378
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51206
51379
|
if (!parsed.ok) {
|
|
51207
51380
|
return [parsed, { status: "invalid" }];
|
|
@@ -51278,12 +51451,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
51278
51451
|
});
|
|
51279
51452
|
|
|
51280
51453
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
51281
|
-
var
|
|
51454
|
+
var args60, tool$uniswapV3LiquidityProvisionPositions;
|
|
51282
51455
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
51283
51456
|
init_uniswapV3LiquidityProvisionPositions();
|
|
51284
51457
|
init_operations();
|
|
51285
51458
|
init_tools();
|
|
51286
|
-
|
|
51459
|
+
args60 = {
|
|
51287
51460
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
51288
51461
|
};
|
|
51289
51462
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -51297,9 +51470,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
51297
51470
|
positions, including the total number of positions and relevant metadata. This
|
|
51298
51471
|
information is crucial for users to manage and analyze their liquidity provision
|
|
51299
51472
|
activities effectively.`,
|
|
51300
|
-
args:
|
|
51301
|
-
tool: async (client,
|
|
51302
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
51473
|
+
args: args60,
|
|
51474
|
+
tool: async (client, args61, ctx) => {
|
|
51475
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51303
51476
|
if (!result.ok) {
|
|
51304
51477
|
return {
|
|
51305
51478
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51314,9 +51487,9 @@ activities effectively.`,
|
|
|
51314
51487
|
|
|
51315
51488
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51316
51489
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
51317
|
-
return new APIPromise($
|
|
51490
|
+
return new APIPromise($do61(client, request, options));
|
|
51318
51491
|
}
|
|
51319
|
-
async function $
|
|
51492
|
+
async function $do61(client, request, options) {
|
|
51320
51493
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51321
51494
|
if (!parsed.ok) {
|
|
51322
51495
|
return [parsed, { status: "invalid" }];
|
|
@@ -51387,12 +51560,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
51387
51560
|
});
|
|
51388
51561
|
|
|
51389
51562
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51390
|
-
var
|
|
51563
|
+
var args61, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
51391
51564
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
51392
51565
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
51393
51566
|
init_components();
|
|
51394
51567
|
init_tools();
|
|
51395
|
-
|
|
51568
|
+
args61 = {
|
|
51396
51569
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
51397
51570
|
};
|
|
51398
51571
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -51409,9 +51582,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
51409
51582
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
51410
51583
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
51411
51584
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
51412
|
-
args:
|
|
51413
|
-
tool: async (client,
|
|
51414
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
51585
|
+
args: args61,
|
|
51586
|
+
tool: async (client, args62, ctx) => {
|
|
51587
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51415
51588
|
if (!result.ok) {
|
|
51416
51589
|
return {
|
|
51417
51590
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51426,9 +51599,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
51426
51599
|
|
|
51427
51600
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
51428
51601
|
function uniswapV3PoolPrice(client, request, options) {
|
|
51429
|
-
return new APIPromise($
|
|
51602
|
+
return new APIPromise($do62(client, request, options));
|
|
51430
51603
|
}
|
|
51431
|
-
async function $
|
|
51604
|
+
async function $do62(client, request, options) {
|
|
51432
51605
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51433
51606
|
if (!parsed.ok) {
|
|
51434
51607
|
return [parsed, { status: "invalid" }];
|
|
@@ -51507,12 +51680,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
51507
51680
|
});
|
|
51508
51681
|
|
|
51509
51682
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
51510
|
-
var
|
|
51683
|
+
var args62, tool$uniswapV3PoolPrice;
|
|
51511
51684
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
51512
51685
|
init_uniswapV3PoolPrice();
|
|
51513
51686
|
init_operations();
|
|
51514
51687
|
init_tools();
|
|
51515
|
-
|
|
51688
|
+
args62 = {
|
|
51516
51689
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
51517
51690
|
};
|
|
51518
51691
|
tool$uniswapV3PoolPrice = {
|
|
@@ -51522,9 +51695,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
51522
51695
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
51523
51696
|
|
|
51524
51697
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
51525
|
-
args:
|
|
51526
|
-
tool: async (client,
|
|
51527
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
51698
|
+
args: args62,
|
|
51699
|
+
tool: async (client, args63, ctx) => {
|
|
51700
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51528
51701
|
if (!result.ok) {
|
|
51529
51702
|
return {
|
|
51530
51703
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51539,9 +51712,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
51539
51712
|
|
|
51540
51713
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
51541
51714
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
51542
|
-
return new APIPromise($
|
|
51715
|
+
return new APIPromise($do63(client, request, options));
|
|
51543
51716
|
}
|
|
51544
|
-
async function $
|
|
51717
|
+
async function $do63(client, request, options) {
|
|
51545
51718
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51546
51719
|
if (!parsed.ok) {
|
|
51547
51720
|
return [parsed, { status: "invalid" }];
|
|
@@ -51621,12 +51794,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
51621
51794
|
});
|
|
51622
51795
|
|
|
51623
51796
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
51624
|
-
var
|
|
51797
|
+
var args63, tool$uniswapV3QuoteBuyExactly;
|
|
51625
51798
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
51626
51799
|
init_uniswapV3QuoteBuyExactly();
|
|
51627
51800
|
init_operations();
|
|
51628
51801
|
init_tools();
|
|
51629
|
-
|
|
51802
|
+
args63 = {
|
|
51630
51803
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
51631
51804
|
};
|
|
51632
51805
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -51638,9 +51811,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
51638
51811
|
|
|
51639
51812
|
It also provides the resulting price after the transaction. The calculation takes
|
|
51640
51813
|
into account the current pool state and the specified fee tier.`,
|
|
51641
|
-
args:
|
|
51642
|
-
tool: async (client,
|
|
51643
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
51814
|
+
args: args63,
|
|
51815
|
+
tool: async (client, args64, ctx) => {
|
|
51816
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51644
51817
|
if (!result.ok) {
|
|
51645
51818
|
return {
|
|
51646
51819
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51655,9 +51828,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
51655
51828
|
|
|
51656
51829
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
51657
51830
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
51658
|
-
return new APIPromise($
|
|
51831
|
+
return new APIPromise($do64(client, request, options));
|
|
51659
51832
|
}
|
|
51660
|
-
async function $
|
|
51833
|
+
async function $do64(client, request, options) {
|
|
51661
51834
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51662
51835
|
if (!parsed.ok) {
|
|
51663
51836
|
return [parsed, { status: "invalid" }];
|
|
@@ -51737,12 +51910,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
51737
51910
|
});
|
|
51738
51911
|
|
|
51739
51912
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
51740
|
-
var
|
|
51913
|
+
var args64, tool$uniswapV3QuoteSellExactly;
|
|
51741
51914
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
51742
51915
|
init_uniswapV3QuoteSellExactly();
|
|
51743
51916
|
init_operations();
|
|
51744
51917
|
init_tools();
|
|
51745
|
-
|
|
51918
|
+
args64 = {
|
|
51746
51919
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
51747
51920
|
};
|
|
51748
51921
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -51754,9 +51927,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
51754
51927
|
|
|
51755
51928
|
It also provides the resulting price after the transaction. The calculation takes
|
|
51756
51929
|
into account the current pool state and the specified fee tier.`,
|
|
51757
|
-
args:
|
|
51758
|
-
tool: async (client,
|
|
51759
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
51930
|
+
args: args64,
|
|
51931
|
+
tool: async (client, args65, ctx) => {
|
|
51932
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51760
51933
|
if (!result.ok) {
|
|
51761
51934
|
return {
|
|
51762
51935
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51771,9 +51944,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
51771
51944
|
|
|
51772
51945
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
51773
51946
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
51774
|
-
return new APIPromise($
|
|
51947
|
+
return new APIPromise($do65(client, request, options));
|
|
51775
51948
|
}
|
|
51776
|
-
async function $
|
|
51949
|
+
async function $do65(client, request, options) {
|
|
51777
51950
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51778
51951
|
if (!parsed.ok) {
|
|
51779
51952
|
return [parsed, { status: "invalid" }];
|
|
@@ -51844,12 +52017,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
51844
52017
|
});
|
|
51845
52018
|
|
|
51846
52019
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
51847
|
-
var
|
|
52020
|
+
var args65, tool$uniswapV3SwapBuyExactly;
|
|
51848
52021
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
51849
52022
|
init_uniswapV3SwapBuyExactly();
|
|
51850
52023
|
init_components();
|
|
51851
52024
|
init_tools();
|
|
51852
|
-
|
|
52025
|
+
args65 = {
|
|
51853
52026
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
51854
52027
|
};
|
|
51855
52028
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -51863,9 +52036,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
51863
52036
|
provide the necessary transaction details, including the token to buy, the token to
|
|
51864
52037
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
51865
52038
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
51866
|
-
args:
|
|
51867
|
-
tool: async (client,
|
|
51868
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
52039
|
+
args: args65,
|
|
52040
|
+
tool: async (client, args66, ctx) => {
|
|
52041
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51869
52042
|
if (!result.ok) {
|
|
51870
52043
|
return {
|
|
51871
52044
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51880,9 +52053,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
51880
52053
|
|
|
51881
52054
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
51882
52055
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
51883
|
-
return new APIPromise($
|
|
52056
|
+
return new APIPromise($do66(client, request, options));
|
|
51884
52057
|
}
|
|
51885
|
-
async function $
|
|
52058
|
+
async function $do66(client, request, options) {
|
|
51886
52059
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51887
52060
|
if (!parsed.ok) {
|
|
51888
52061
|
return [parsed, { status: "invalid" }];
|
|
@@ -51953,12 +52126,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
51953
52126
|
});
|
|
51954
52127
|
|
|
51955
52128
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
51956
|
-
var
|
|
52129
|
+
var args66, tool$uniswapV3SwapSellExactly;
|
|
51957
52130
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
51958
52131
|
init_uniswapV3SwapSellExactly();
|
|
51959
52132
|
init_components();
|
|
51960
52133
|
init_tools();
|
|
51961
|
-
|
|
52134
|
+
args66 = {
|
|
51962
52135
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
51963
52136
|
};
|
|
51964
52137
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -51972,9 +52145,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
51972
52145
|
provide the necessary transaction details, including the token to sell, the token to
|
|
51973
52146
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
51974
52147
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
51975
|
-
args:
|
|
51976
|
-
tool: async (client,
|
|
51977
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
52148
|
+
args: args66,
|
|
52149
|
+
tool: async (client, args67, ctx) => {
|
|
52150
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51978
52151
|
if (!result.ok) {
|
|
51979
52152
|
return {
|
|
51980
52153
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51989,9 +52162,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
51989
52162
|
|
|
51990
52163
|
// src/funcs/universalAllowance.ts
|
|
51991
52164
|
function universalAllowance(client, request, options) {
|
|
51992
|
-
return new APIPromise($
|
|
52165
|
+
return new APIPromise($do67(client, request, options));
|
|
51993
52166
|
}
|
|
51994
|
-
async function $
|
|
52167
|
+
async function $do67(client, request, options) {
|
|
51995
52168
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51996
52169
|
if (!parsed.ok) {
|
|
51997
52170
|
return [parsed, { status: "invalid" }];
|
|
@@ -52070,12 +52243,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
52070
52243
|
});
|
|
52071
52244
|
|
|
52072
52245
|
// src/mcp-server/tools/universalAllowance.ts
|
|
52073
|
-
var
|
|
52246
|
+
var args67, tool$universalAllowance;
|
|
52074
52247
|
var init_universalAllowance2 = __esm(() => {
|
|
52075
52248
|
init_universalAllowance();
|
|
52076
52249
|
init_operations();
|
|
52077
52250
|
init_tools();
|
|
52078
|
-
|
|
52251
|
+
args67 = {
|
|
52079
52252
|
request: GenericAllowanceRequest$inboundSchema
|
|
52080
52253
|
};
|
|
52081
52254
|
tool$universalAllowance = {
|
|
@@ -52089,9 +52262,9 @@ tokens on their behalf.
|
|
|
52089
52262
|
This is a crucial step before engaging in any transactions or operations within
|
|
52090
52263
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
52091
52264
|
the user's tokens securely and efficiently.`,
|
|
52092
|
-
args:
|
|
52093
|
-
tool: async (client,
|
|
52094
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
52265
|
+
args: args67,
|
|
52266
|
+
tool: async (client, args68, ctx) => {
|
|
52267
|
+
const [result, apiCall] = await universalAllowance(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52095
52268
|
if (!result.ok) {
|
|
52096
52269
|
return {
|
|
52097
52270
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52106,9 +52279,9 @@ the user's tokens securely and efficiently.`,
|
|
|
52106
52279
|
|
|
52107
52280
|
// src/funcs/universalAllowanceSet.ts
|
|
52108
52281
|
function universalAllowanceSet(client, request, options) {
|
|
52109
|
-
return new APIPromise($
|
|
52282
|
+
return new APIPromise($do68(client, request, options));
|
|
52110
52283
|
}
|
|
52111
|
-
async function $
|
|
52284
|
+
async function $do68(client, request, options) {
|
|
52112
52285
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52113
52286
|
if (!parsed.ok) {
|
|
52114
52287
|
return [parsed, { status: "invalid" }];
|
|
@@ -52179,12 +52352,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
52179
52352
|
});
|
|
52180
52353
|
|
|
52181
52354
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
52182
|
-
var
|
|
52355
|
+
var args68, tool$universalAllowanceSet;
|
|
52183
52356
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
52184
52357
|
init_universalAllowanceSet();
|
|
52185
52358
|
init_components();
|
|
52186
52359
|
init_tools();
|
|
52187
|
-
|
|
52360
|
+
args68 = {
|
|
52188
52361
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
52189
52362
|
};
|
|
52190
52363
|
tool$universalAllowanceSet = {
|
|
@@ -52198,9 +52371,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
52198
52371
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
52199
52372
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
52200
52373
|
within the DeFi ecosystem.`,
|
|
52201
|
-
args:
|
|
52202
|
-
tool: async (client,
|
|
52203
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
52374
|
+
args: args68,
|
|
52375
|
+
tool: async (client, args69, ctx) => {
|
|
52376
|
+
const [result, apiCall] = await universalAllowanceSet(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52204
52377
|
if (!result.ok) {
|
|
52205
52378
|
return {
|
|
52206
52379
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52215,9 +52388,9 @@ within the DeFi ecosystem.`,
|
|
|
52215
52388
|
|
|
52216
52389
|
// src/funcs/universalEns.ts
|
|
52217
52390
|
function universalEns(client, request, options) {
|
|
52218
|
-
return new APIPromise($
|
|
52391
|
+
return new APIPromise($do69(client, request, options));
|
|
52219
52392
|
}
|
|
52220
|
-
async function $
|
|
52393
|
+
async function $do69(client, request, options) {
|
|
52221
52394
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52222
52395
|
if (!parsed.ok) {
|
|
52223
52396
|
return [parsed, { status: "invalid" }];
|
|
@@ -52294,12 +52467,12 @@ var init_universalEns = __esm(() => {
|
|
|
52294
52467
|
});
|
|
52295
52468
|
|
|
52296
52469
|
// src/mcp-server/tools/universalEns.ts
|
|
52297
|
-
var
|
|
52470
|
+
var args69, tool$universalEns;
|
|
52298
52471
|
var init_universalEns2 = __esm(() => {
|
|
52299
52472
|
init_universalEns();
|
|
52300
52473
|
init_operations();
|
|
52301
52474
|
init_tools();
|
|
52302
|
-
|
|
52475
|
+
args69 = {
|
|
52303
52476
|
request: GenericEnsRequest$inboundSchema
|
|
52304
52477
|
};
|
|
52305
52478
|
tool$universalEns = {
|
|
@@ -52310,9 +52483,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
52310
52483
|
|
|
52311
52484
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
52312
52485
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
52313
|
-
args:
|
|
52314
|
-
tool: async (client,
|
|
52315
|
-
const [result, apiCall] = await universalEns(client,
|
|
52486
|
+
args: args69,
|
|
52487
|
+
tool: async (client, args70, ctx) => {
|
|
52488
|
+
const [result, apiCall] = await universalEns(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52316
52489
|
if (!result.ok) {
|
|
52317
52490
|
return {
|
|
52318
52491
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52327,9 +52500,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
52327
52500
|
|
|
52328
52501
|
// src/funcs/universalPortfolio.ts
|
|
52329
52502
|
function universalPortfolio(client, request, options) {
|
|
52330
|
-
return new APIPromise($
|
|
52503
|
+
return new APIPromise($do70(client, request, options));
|
|
52331
52504
|
}
|
|
52332
|
-
async function $
|
|
52505
|
+
async function $do70(client, request, options) {
|
|
52333
52506
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52334
52507
|
if (!parsed.ok) {
|
|
52335
52508
|
return [parsed, { status: "invalid" }];
|
|
@@ -52406,12 +52579,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
52406
52579
|
});
|
|
52407
52580
|
|
|
52408
52581
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
52409
|
-
var
|
|
52582
|
+
var args70, tool$universalPortfolio;
|
|
52410
52583
|
var init_universalPortfolio2 = __esm(() => {
|
|
52411
52584
|
init_universalPortfolio();
|
|
52412
52585
|
init_operations();
|
|
52413
52586
|
init_tools();
|
|
52414
|
-
|
|
52587
|
+
args70 = {
|
|
52415
52588
|
request: GenericPortfolioRequest$inboundSchema
|
|
52416
52589
|
};
|
|
52417
52590
|
tool$universalPortfolio = {
|
|
@@ -52422,9 +52595,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
52422
52595
|
|
|
52423
52596
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
52424
52597
|
balances, including their respective values and quantities.`,
|
|
52425
|
-
args:
|
|
52426
|
-
tool: async (client,
|
|
52427
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
52598
|
+
args: args70,
|
|
52599
|
+
tool: async (client, args71, ctx) => {
|
|
52600
|
+
const [result, apiCall] = await universalPortfolio(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52428
52601
|
if (!result.ok) {
|
|
52429
52602
|
return {
|
|
52430
52603
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52439,9 +52612,9 @@ balances, including their respective values and quantities.`,
|
|
|
52439
52612
|
|
|
52440
52613
|
// src/funcs/universalSupportedTokens.ts
|
|
52441
52614
|
function universalSupportedTokens(client, request, options) {
|
|
52442
|
-
return new APIPromise($
|
|
52615
|
+
return new APIPromise($do71(client, request, options));
|
|
52443
52616
|
}
|
|
52444
|
-
async function $
|
|
52617
|
+
async function $do71(client, request, options) {
|
|
52445
52618
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52446
52619
|
if (!parsed.ok) {
|
|
52447
52620
|
return [parsed, { status: "invalid" }];
|
|
@@ -52517,12 +52690,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
52517
52690
|
});
|
|
52518
52691
|
|
|
52519
52692
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
52520
|
-
var
|
|
52693
|
+
var args71, tool$universalSupportedTokens;
|
|
52521
52694
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
52522
52695
|
init_universalSupportedTokens();
|
|
52523
52696
|
init_operations();
|
|
52524
52697
|
init_tools();
|
|
52525
|
-
|
|
52698
|
+
args71 = {
|
|
52526
52699
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
52527
52700
|
};
|
|
52528
52701
|
tool$universalSupportedTokens = {
|
|
@@ -52530,9 +52703,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
52530
52703
|
description: `List supported tokens
|
|
52531
52704
|
|
|
52532
52705
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
52533
|
-
args:
|
|
52534
|
-
tool: async (client,
|
|
52535
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
52706
|
+
args: args71,
|
|
52707
|
+
tool: async (client, args72, ctx) => {
|
|
52708
|
+
const [result, apiCall] = await universalSupportedTokens(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52536
52709
|
if (!result.ok) {
|
|
52537
52710
|
return {
|
|
52538
52711
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52547,9 +52720,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
52547
52720
|
|
|
52548
52721
|
// src/funcs/universalUnwrapWeth.ts
|
|
52549
52722
|
function universalUnwrapWeth(client, request, options) {
|
|
52550
|
-
return new APIPromise($
|
|
52723
|
+
return new APIPromise($do72(client, request, options));
|
|
52551
52724
|
}
|
|
52552
|
-
async function $
|
|
52725
|
+
async function $do72(client, request, options) {
|
|
52553
52726
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52554
52727
|
if (!parsed.ok) {
|
|
52555
52728
|
return [parsed, { status: "invalid" }];
|
|
@@ -52620,12 +52793,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
52620
52793
|
});
|
|
52621
52794
|
|
|
52622
52795
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
52623
|
-
var
|
|
52796
|
+
var args72, tool$universalUnwrapWeth;
|
|
52624
52797
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
52625
52798
|
init_universalUnwrapWeth();
|
|
52626
52799
|
init_components();
|
|
52627
52800
|
init_tools();
|
|
52628
|
-
|
|
52801
|
+
args72 = {
|
|
52629
52802
|
request: UnwrapWethRequest$inboundSchema
|
|
52630
52803
|
};
|
|
52631
52804
|
tool$universalUnwrapWeth = {
|
|
@@ -52634,9 +52807,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
52634
52807
|
|
|
52635
52808
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
52636
52809
|
can be used for gas and other native purposes.`,
|
|
52637
|
-
args:
|
|
52638
|
-
tool: async (client,
|
|
52639
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
52810
|
+
args: args72,
|
|
52811
|
+
tool: async (client, args73, ctx) => {
|
|
52812
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52640
52813
|
if (!result.ok) {
|
|
52641
52814
|
return {
|
|
52642
52815
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52651,9 +52824,9 @@ can be used for gas and other native purposes.`,
|
|
|
52651
52824
|
|
|
52652
52825
|
// src/funcs/universalVisualizePortfolio.ts
|
|
52653
52826
|
function universalVisualizePortfolio(client, request, options) {
|
|
52654
|
-
return new APIPromise($
|
|
52827
|
+
return new APIPromise($do73(client, request, options));
|
|
52655
52828
|
}
|
|
52656
|
-
async function $
|
|
52829
|
+
async function $do73(client, request, options) {
|
|
52657
52830
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52658
52831
|
if (!parsed.ok) {
|
|
52659
52832
|
return [parsed, { status: "invalid" }];
|
|
@@ -52730,12 +52903,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
52730
52903
|
});
|
|
52731
52904
|
|
|
52732
52905
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
52733
|
-
var
|
|
52906
|
+
var args73, tool$universalVisualizePortfolio;
|
|
52734
52907
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
52735
52908
|
init_universalVisualizePortfolio();
|
|
52736
52909
|
init_operations();
|
|
52737
52910
|
init_tools();
|
|
52738
|
-
|
|
52911
|
+
args73 = {
|
|
52739
52912
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
52740
52913
|
};
|
|
52741
52914
|
tool$universalVisualizePortfolio = {
|
|
@@ -52747,9 +52920,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
52747
52920
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
52748
52921
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
52749
52922
|
USD.`,
|
|
52750
|
-
args:
|
|
52751
|
-
tool: async (client,
|
|
52752
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
52923
|
+
args: args73,
|
|
52924
|
+
tool: async (client, args74, ctx) => {
|
|
52925
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52753
52926
|
if (!result.ok) {
|
|
52754
52927
|
return {
|
|
52755
52928
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52764,9 +52937,9 @@ USD.`,
|
|
|
52764
52937
|
|
|
52765
52938
|
// src/funcs/universalWrapEth.ts
|
|
52766
52939
|
function universalWrapEth(client, request, options) {
|
|
52767
|
-
return new APIPromise($
|
|
52940
|
+
return new APIPromise($do74(client, request, options));
|
|
52768
52941
|
}
|
|
52769
|
-
async function $
|
|
52942
|
+
async function $do74(client, request, options) {
|
|
52770
52943
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52771
52944
|
if (!parsed.ok) {
|
|
52772
52945
|
return [parsed, { status: "invalid" }];
|
|
@@ -52837,12 +53010,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
52837
53010
|
});
|
|
52838
53011
|
|
|
52839
53012
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
52840
|
-
var
|
|
53013
|
+
var args74, tool$universalWrapEth;
|
|
52841
53014
|
var init_universalWrapEth2 = __esm(() => {
|
|
52842
53015
|
init_universalWrapEth();
|
|
52843
53016
|
init_components();
|
|
52844
53017
|
init_tools();
|
|
52845
|
-
|
|
53018
|
+
args74 = {
|
|
52846
53019
|
request: WrapEthRequest$inboundSchema
|
|
52847
53020
|
};
|
|
52848
53021
|
tool$universalWrapEth = {
|
|
@@ -52851,9 +53024,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
52851
53024
|
|
|
52852
53025
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
52853
53026
|
it to be traded on DeFi protocols.`,
|
|
52854
|
-
args:
|
|
52855
|
-
tool: async (client,
|
|
52856
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
53027
|
+
args: args74,
|
|
53028
|
+
tool: async (client, args75, ctx) => {
|
|
53029
|
+
const [result, apiCall] = await universalWrapEth(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52857
53030
|
if (!result.ok) {
|
|
52858
53031
|
return {
|
|
52859
53032
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52870,7 +53043,7 @@ it to be traded on DeFi protocols.`,
|
|
|
52870
53043
|
function createMCPServer(deps) {
|
|
52871
53044
|
const server = new McpServer({
|
|
52872
53045
|
name: "CompassApiSDK",
|
|
52873
|
-
version: "0.5.
|
|
53046
|
+
version: "0.5.4"
|
|
52874
53047
|
});
|
|
52875
53048
|
const client = new CompassApiSDKCore({
|
|
52876
53049
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -52953,6 +53126,7 @@ function createMCPServer(deps) {
|
|
|
52953
53126
|
tool(tool$pendleSellPt);
|
|
52954
53127
|
tool(tool$pendleBuyYt);
|
|
52955
53128
|
tool(tool$pendleSellYt);
|
|
53129
|
+
tool(tool$pendleRedeemYield);
|
|
52956
53130
|
tool(tool$transactionBatchingAuthorization);
|
|
52957
53131
|
tool(tool$transactionBatchingExecute);
|
|
52958
53132
|
tool(tool$transactionBatchingAaveLoop);
|
|
@@ -53004,6 +53178,7 @@ var init_server2 = __esm(() => {
|
|
|
53004
53178
|
init_pendleMarkets2();
|
|
53005
53179
|
init_pendlePosition2();
|
|
53006
53180
|
init_pendlePositions2();
|
|
53181
|
+
init_pendleRedeemYield2();
|
|
53007
53182
|
init_pendleSellPt2();
|
|
53008
53183
|
init_pendleSellYt2();
|
|
53009
53184
|
init_skyBuy2();
|
|
@@ -54227,7 +54402,7 @@ var routes = an({
|
|
|
54227
54402
|
var app = He(routes, {
|
|
54228
54403
|
name: "mcp",
|
|
54229
54404
|
versionInfo: {
|
|
54230
|
-
currentVersion: "0.5.
|
|
54405
|
+
currentVersion: "0.5.4"
|
|
54231
54406
|
}
|
|
54232
54407
|
});
|
|
54233
54408
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -54235,5 +54410,5 @@ export {
|
|
|
54235
54410
|
app
|
|
54236
54411
|
};
|
|
54237
54412
|
|
|
54238
|
-
//# debugId=
|
|
54413
|
+
//# debugId=77CC6228C9A0159F64756E2164756E21
|
|
54239
54414
|
//# sourceMappingURL=mcp-server.js.map
|