@compass-labs/api-sdk 0.5.48 → 0.5.49
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/FUNCTIONS.md +3 -3
- package/README.md +8 -6
- package/bin/mcp-server.js +749 -551
- package/bin/mcp-server.js.map +13 -8
- package/dist/commonjs/funcs/aaveV3AaveSupportedTokens.d.ts +25 -0
- package/dist/commonjs/funcs/aaveV3AaveSupportedTokens.d.ts.map +1 -0
- package/dist/commonjs/funcs/aaveV3AaveSupportedTokens.js +129 -0
- package/dist/commonjs/funcs/aaveV3AaveSupportedTokens.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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/aaveV3AaveSupportedTokens.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/aaveV3AaveSupportedTokens.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/aaveV3AaveSupportedTokens.js +70 -0
- package/dist/commonjs/mcp-server/tools/aaveV3AaveSupportedTokens.js.map +1 -0
- package/dist/commonjs/models/components/aavesupportedtokenmetadata.d.ts +47 -0
- package/dist/commonjs/models/components/aavesupportedtokenmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavesupportedtokenmetadata.js +86 -0
- package/dist/commonjs/models/components/aavesupportedtokenmetadata.js.map +1 -0
- package/dist/commonjs/models/components/aavesupportedtokensresponse.d.ts +33 -0
- package/dist/commonjs/models/components/aavesupportedtokensresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavesupportedtokensresponse.js +70 -0
- package/dist/commonjs/models/components/aavesupportedtokensresponse.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/operations/aaveaavesupportedtokens.d.ts +72 -0
- package/dist/commonjs/models/operations/aaveaavesupportedtokens.d.ts.map +1 -0
- package/dist/commonjs/models/operations/aaveaavesupportedtokens.js +94 -0
- package/dist/commonjs/models/operations/aaveaavesupportedtokens.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/aavev3.d.ts +13 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +16 -0
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/esm/funcs/aaveV3AaveSupportedTokens.d.ts +25 -0
- package/dist/esm/funcs/aaveV3AaveSupportedTokens.d.ts.map +1 -0
- package/dist/esm/funcs/aaveV3AaveSupportedTokens.js +93 -0
- package/dist/esm/funcs/aaveV3AaveSupportedTokens.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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/aaveV3AaveSupportedTokens.d.ts +8 -0
- package/dist/esm/mcp-server/tools/aaveV3AaveSupportedTokens.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/aaveV3AaveSupportedTokens.js +34 -0
- package/dist/esm/mcp-server/tools/aaveV3AaveSupportedTokens.js.map +1 -0
- package/dist/esm/models/components/aavesupportedtokenmetadata.d.ts +47 -0
- package/dist/esm/models/components/aavesupportedtokenmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/aavesupportedtokenmetadata.js +48 -0
- package/dist/esm/models/components/aavesupportedtokenmetadata.js.map +1 -0
- package/dist/esm/models/components/aavesupportedtokensresponse.d.ts +33 -0
- package/dist/esm/models/components/aavesupportedtokensresponse.d.ts.map +1 -0
- package/dist/esm/models/components/aavesupportedtokensresponse.js +32 -0
- package/dist/esm/models/components/aavesupportedtokensresponse.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/operations/aaveaavesupportedtokens.d.ts +72 -0
- package/dist/esm/models/operations/aaveaavesupportedtokens.d.ts.map +1 -0
- package/dist/esm/models/operations/aaveaavesupportedtokens.js +56 -0
- package/dist/esm/models/operations/aaveaavesupportedtokens.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/aavev3.d.ts +13 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +16 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/docs/sdks/aavev3/README.md +76 -0
- package/examples/{aaveV3Rate.example.ts → aaveV3AaveSupportedTokens.example.ts} +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3AaveSupportedTokens.ts +182 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/aaveV3AaveSupportedTokens.ts +43 -0
- package/src/models/components/aavesupportedtokenmetadata.ts +101 -0
- package/src/models/components/aavesupportedtokensresponse.ts +77 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/operations/aaveaavesupportedtokens.ts +117 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/aavev3.ts +24 -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.
|
|
34267
|
+
sdkVersion: "0.5.49",
|
|
34268
34268
|
genVersion: "2.657.1",
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.5.49 2.657.1 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -36737,6 +36737,56 @@ var init_aavesupplyrequest = __esm(() => {
|
|
|
36737
36737
|
})(AaveSupplyRequest$ ||= {});
|
|
36738
36738
|
});
|
|
36739
36739
|
|
|
36740
|
+
// src/models/components/aavesupportedtokenmetadata.ts
|
|
36741
|
+
var AaveSupportedTokenMetadata$inboundSchema, AaveSupportedTokenMetadata$outboundSchema, AaveSupportedTokenMetadata$;
|
|
36742
|
+
var init_aavesupportedtokenmetadata = __esm(() => {
|
|
36743
|
+
init_zod();
|
|
36744
|
+
init_primitives();
|
|
36745
|
+
AaveSupportedTokenMetadata$inboundSchema = objectType({
|
|
36746
|
+
symbol: stringType(),
|
|
36747
|
+
address: stringType(),
|
|
36748
|
+
supplying_enabled: booleanType(),
|
|
36749
|
+
borrowing_enabled: booleanType()
|
|
36750
|
+
}).transform((v2) => {
|
|
36751
|
+
return remap(v2, {
|
|
36752
|
+
supplying_enabled: "supplyingEnabled",
|
|
36753
|
+
borrowing_enabled: "borrowingEnabled"
|
|
36754
|
+
});
|
|
36755
|
+
});
|
|
36756
|
+
AaveSupportedTokenMetadata$outboundSchema = objectType({
|
|
36757
|
+
symbol: stringType(),
|
|
36758
|
+
address: stringType(),
|
|
36759
|
+
supplyingEnabled: booleanType(),
|
|
36760
|
+
borrowingEnabled: booleanType()
|
|
36761
|
+
}).transform((v2) => {
|
|
36762
|
+
return remap(v2, {
|
|
36763
|
+
supplyingEnabled: "supplying_enabled",
|
|
36764
|
+
borrowingEnabled: "borrowing_enabled"
|
|
36765
|
+
});
|
|
36766
|
+
});
|
|
36767
|
+
((AaveSupportedTokenMetadata$) => {
|
|
36768
|
+
AaveSupportedTokenMetadata$.inboundSchema = AaveSupportedTokenMetadata$inboundSchema;
|
|
36769
|
+
AaveSupportedTokenMetadata$.outboundSchema = AaveSupportedTokenMetadata$outboundSchema;
|
|
36770
|
+
})(AaveSupportedTokenMetadata$ ||= {});
|
|
36771
|
+
});
|
|
36772
|
+
|
|
36773
|
+
// src/models/components/aavesupportedtokensresponse.ts
|
|
36774
|
+
var AaveSupportedTokensResponse$inboundSchema, AaveSupportedTokensResponse$outboundSchema, AaveSupportedTokensResponse$;
|
|
36775
|
+
var init_aavesupportedtokensresponse = __esm(() => {
|
|
36776
|
+
init_zod();
|
|
36777
|
+
init_aavesupportedtokenmetadata();
|
|
36778
|
+
AaveSupportedTokensResponse$inboundSchema = objectType({
|
|
36779
|
+
tokens: arrayType(AaveSupportedTokenMetadata$inboundSchema)
|
|
36780
|
+
});
|
|
36781
|
+
AaveSupportedTokensResponse$outboundSchema = objectType({
|
|
36782
|
+
tokens: arrayType(AaveSupportedTokenMetadata$outboundSchema)
|
|
36783
|
+
});
|
|
36784
|
+
((AaveSupportedTokensResponse$) => {
|
|
36785
|
+
AaveSupportedTokensResponse$.inboundSchema = AaveSupportedTokensResponse$inboundSchema;
|
|
36786
|
+
AaveSupportedTokensResponse$.outboundSchema = AaveSupportedTokensResponse$outboundSchema;
|
|
36787
|
+
})(AaveSupportedTokensResponse$ ||= {});
|
|
36788
|
+
});
|
|
36789
|
+
|
|
36740
36790
|
// src/models/components/aavetokenpriceresponse.ts
|
|
36741
36791
|
var AaveTokenPriceResponse$inboundSchema, AaveTokenPriceResponse$outboundSchema, AaveTokenPriceResponse$;
|
|
36742
36792
|
var init_aavetokenpriceresponse = __esm(() => {
|
|
@@ -42783,6 +42833,8 @@ var init_components = __esm(() => {
|
|
|
42783
42833
|
init_aavestdrateresponse();
|
|
42784
42834
|
init_aavesupplyparams();
|
|
42785
42835
|
init_aavesupplyrequest();
|
|
42836
|
+
init_aavesupportedtokenmetadata();
|
|
42837
|
+
init_aavesupportedtokensresponse();
|
|
42786
42838
|
init_aavetokenpriceresponse();
|
|
42787
42839
|
init_aaveuserpositionpertokenresponse();
|
|
42788
42840
|
init_aaveuserpositionsummaryresponse();
|
|
@@ -42993,6 +43045,35 @@ var init_errors2 = __esm(() => {
|
|
|
42993
43045
|
init_sdkvalidationerror();
|
|
42994
43046
|
});
|
|
42995
43047
|
|
|
43048
|
+
// src/models/operations/aaveaavesupportedtokens.ts
|
|
43049
|
+
var AaveAaveSupportedTokensChain, AaveAaveSupportedTokensChain$inboundSchema, AaveAaveSupportedTokensChain$outboundSchema, AaveAaveSupportedTokensChain$, AaveAaveSupportedTokensRequest$inboundSchema, AaveAaveSupportedTokensRequest$outboundSchema, AaveAaveSupportedTokensRequest$;
|
|
43050
|
+
var init_aaveaavesupportedtokens = __esm(() => {
|
|
43051
|
+
init_zod();
|
|
43052
|
+
AaveAaveSupportedTokensChain = {
|
|
43053
|
+
BaseMainnet: "base:mainnet",
|
|
43054
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
43055
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
43056
|
+
};
|
|
43057
|
+
AaveAaveSupportedTokensChain$inboundSchema = nativeEnumType(AaveAaveSupportedTokensChain);
|
|
43058
|
+
AaveAaveSupportedTokensChain$outboundSchema = AaveAaveSupportedTokensChain$inboundSchema;
|
|
43059
|
+
((AaveAaveSupportedTokensChain$) => {
|
|
43060
|
+
AaveAaveSupportedTokensChain$.inboundSchema = AaveAaveSupportedTokensChain$inboundSchema;
|
|
43061
|
+
AaveAaveSupportedTokensChain$.outboundSchema = AaveAaveSupportedTokensChain$outboundSchema;
|
|
43062
|
+
})(AaveAaveSupportedTokensChain$ ||= {});
|
|
43063
|
+
AaveAaveSupportedTokensRequest$inboundSchema = objectType({
|
|
43064
|
+
chain: AaveAaveSupportedTokensChain$inboundSchema.default("arbitrum:mainnet"),
|
|
43065
|
+
block: nullableType(numberType().int()).optional()
|
|
43066
|
+
});
|
|
43067
|
+
AaveAaveSupportedTokensRequest$outboundSchema = objectType({
|
|
43068
|
+
chain: AaveAaveSupportedTokensChain$outboundSchema.default("arbitrum:mainnet"),
|
|
43069
|
+
block: nullableType(numberType().int()).optional()
|
|
43070
|
+
});
|
|
43071
|
+
((AaveAaveSupportedTokensRequest$) => {
|
|
43072
|
+
AaveAaveSupportedTokensRequest$.inboundSchema = AaveAaveSupportedTokensRequest$inboundSchema;
|
|
43073
|
+
AaveAaveSupportedTokensRequest$.outboundSchema = AaveAaveSupportedTokensRequest$outboundSchema;
|
|
43074
|
+
})(AaveAaveSupportedTokensRequest$ ||= {});
|
|
43075
|
+
});
|
|
43076
|
+
|
|
42996
43077
|
// src/models/operations/aaveavgrate.ts
|
|
42997
43078
|
var AaveAvgRateChain, AaveAvgRateToken, AaveAvgRateChain$inboundSchema, AaveAvgRateChain$outboundSchema, AaveAvgRateChain$, AaveAvgRateToken$inboundSchema, AaveAvgRateToken$outboundSchema, AaveAvgRateToken$, AaveAvgRateRequest$inboundSchema, AaveAvgRateRequest$outboundSchema, AaveAvgRateRequest$;
|
|
42998
43079
|
var init_aaveavgrate = __esm(() => {
|
|
@@ -45270,6 +45351,7 @@ var init_vaultsvault = __esm(() => {
|
|
|
45270
45351
|
|
|
45271
45352
|
// src/models/operations/index.ts
|
|
45272
45353
|
var init_operations = __esm(() => {
|
|
45354
|
+
init_aaveaavesupportedtokens();
|
|
45273
45355
|
init_aaveavgrate();
|
|
45274
45356
|
init_aavehistoricaltransactions();
|
|
45275
45357
|
init_aaveliquiditychange();
|
|
@@ -45334,11 +45416,125 @@ var init_async = __esm(() => {
|
|
|
45334
45416
|
};
|
|
45335
45417
|
});
|
|
45336
45418
|
|
|
45337
|
-
// src/funcs/
|
|
45338
|
-
function
|
|
45419
|
+
// src/funcs/aaveV3AaveSupportedTokens.ts
|
|
45420
|
+
function aaveV3AaveSupportedTokens(client, request, options) {
|
|
45339
45421
|
return new APIPromise($do(client, request, options));
|
|
45340
45422
|
}
|
|
45341
45423
|
async function $do(client, request, options) {
|
|
45424
|
+
const parsed = safeParse(request, (value) => AaveAaveSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45425
|
+
if (!parsed.ok) {
|
|
45426
|
+
return [parsed, { status: "invalid" }];
|
|
45427
|
+
}
|
|
45428
|
+
const payload = parsed.value;
|
|
45429
|
+
const body = null;
|
|
45430
|
+
const path = pathToFunc("/v0/aave/aave_supported_tokens/get")();
|
|
45431
|
+
const query = encodeFormQuery({
|
|
45432
|
+
block: payload.block,
|
|
45433
|
+
chain: payload.chain
|
|
45434
|
+
});
|
|
45435
|
+
const headers = new Headers(compactMap({
|
|
45436
|
+
Accept: "application/json"
|
|
45437
|
+
}));
|
|
45438
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
45439
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
45440
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45441
|
+
const context = {
|
|
45442
|
+
options: client._options,
|
|
45443
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45444
|
+
operationID: "aave_aave_supported_tokens",
|
|
45445
|
+
oAuth2Scopes: [],
|
|
45446
|
+
resolvedSecurity: requestSecurity,
|
|
45447
|
+
securitySource: client._options.apiKeyAuth,
|
|
45448
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45449
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45450
|
+
};
|
|
45451
|
+
const requestRes = client._createRequest(context, {
|
|
45452
|
+
security: requestSecurity,
|
|
45453
|
+
method: "GET",
|
|
45454
|
+
baseURL: options?.serverURL,
|
|
45455
|
+
path,
|
|
45456
|
+
headers,
|
|
45457
|
+
query,
|
|
45458
|
+
body,
|
|
45459
|
+
userAgent: client._options.userAgent,
|
|
45460
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45461
|
+
}, options);
|
|
45462
|
+
if (!requestRes.ok) {
|
|
45463
|
+
return [requestRes, { status: "invalid" }];
|
|
45464
|
+
}
|
|
45465
|
+
const req = requestRes.value;
|
|
45466
|
+
const doResult = await client._do(req, {
|
|
45467
|
+
context,
|
|
45468
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
45469
|
+
retryConfig: context.retryConfig,
|
|
45470
|
+
retryCodes: context.retryCodes
|
|
45471
|
+
});
|
|
45472
|
+
if (!doResult.ok) {
|
|
45473
|
+
return [doResult, { status: "request-error", request: req }];
|
|
45474
|
+
}
|
|
45475
|
+
const response = doResult.value;
|
|
45476
|
+
const responseFields = {
|
|
45477
|
+
HttpMeta: { Response: response, Request: req }
|
|
45478
|
+
};
|
|
45479
|
+
const [result] = await match(json(200, AaveSupportedTokensResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45480
|
+
if (!result.ok) {
|
|
45481
|
+
return [result, { status: "complete", request: req, response }];
|
|
45482
|
+
}
|
|
45483
|
+
return [result, { status: "complete", request: req, response }];
|
|
45484
|
+
}
|
|
45485
|
+
var init_aaveV3AaveSupportedTokens = __esm(() => {
|
|
45486
|
+
init_encodings();
|
|
45487
|
+
init_matchers();
|
|
45488
|
+
init_primitives();
|
|
45489
|
+
init_schemas();
|
|
45490
|
+
init_security();
|
|
45491
|
+
init_url();
|
|
45492
|
+
init_components();
|
|
45493
|
+
init_errors2();
|
|
45494
|
+
init_operations();
|
|
45495
|
+
init_async();
|
|
45496
|
+
});
|
|
45497
|
+
|
|
45498
|
+
// src/mcp-server/tools/aaveV3AaveSupportedTokens.ts
|
|
45499
|
+
var args, tool$aaveV3AaveSupportedTokens;
|
|
45500
|
+
var init_aaveV3AaveSupportedTokens2 = __esm(() => {
|
|
45501
|
+
init_aaveV3AaveSupportedTokens();
|
|
45502
|
+
init_operations();
|
|
45503
|
+
init_tools();
|
|
45504
|
+
args = {
|
|
45505
|
+
request: AaveAaveSupportedTokensRequest$inboundSchema
|
|
45506
|
+
};
|
|
45507
|
+
tool$aaveV3AaveSupportedTokens = {
|
|
45508
|
+
name: "aave-v3-aave-supported-tokens",
|
|
45509
|
+
description: `Aave Supported Tokens
|
|
45510
|
+
|
|
45511
|
+
Returns the list of supported tokens on Aave for the specified network, along
|
|
45512
|
+
with key metadata.
|
|
45513
|
+
|
|
45514
|
+
For each token, the response includes:
|
|
45515
|
+
- The symbol and contract address.
|
|
45516
|
+
- Whether the token is currently enabled for supplying (depositing).
|
|
45517
|
+
- Whether it is enabled for borrowing.`,
|
|
45518
|
+
args,
|
|
45519
|
+
tool: async (client, args2, ctx) => {
|
|
45520
|
+
const [result, apiCall] = await aaveV3AaveSupportedTokens(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45521
|
+
if (!result.ok) {
|
|
45522
|
+
return {
|
|
45523
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45524
|
+
isError: true
|
|
45525
|
+
};
|
|
45526
|
+
}
|
|
45527
|
+
const value = result.value;
|
|
45528
|
+
return formatResult(value, apiCall);
|
|
45529
|
+
}
|
|
45530
|
+
};
|
|
45531
|
+
});
|
|
45532
|
+
|
|
45533
|
+
// src/funcs/aaveV3AvgRate.ts
|
|
45534
|
+
function aaveV3AvgRate(client, request, options) {
|
|
45535
|
+
return new APIPromise($do2(client, request, options));
|
|
45536
|
+
}
|
|
45537
|
+
async function $do2(client, request, options) {
|
|
45342
45538
|
const parsed = safeParse(request, (value) => AaveAvgRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45343
45539
|
if (!parsed.ok) {
|
|
45344
45540
|
return [parsed, { status: "invalid" }];
|
|
@@ -45416,12 +45612,12 @@ var init_aaveV3AvgRate = __esm(() => {
|
|
|
45416
45612
|
});
|
|
45417
45613
|
|
|
45418
45614
|
// src/mcp-server/tools/aaveV3AvgRate.ts
|
|
45419
|
-
var
|
|
45615
|
+
var args2, tool$aaveV3AvgRate;
|
|
45420
45616
|
var init_aaveV3AvgRate2 = __esm(() => {
|
|
45421
45617
|
init_aaveV3AvgRate();
|
|
45422
45618
|
init_operations();
|
|
45423
45619
|
init_tools();
|
|
45424
|
-
|
|
45620
|
+
args2 = {
|
|
45425
45621
|
request: AaveAvgRateRequest$inboundSchema
|
|
45426
45622
|
};
|
|
45427
45623
|
tool$aaveV3AvgRate = {
|
|
@@ -45429,9 +45625,9 @@ var init_aaveV3AvgRate2 = __esm(() => {
|
|
|
45429
45625
|
description: `Interest Rates: Time Average
|
|
45430
45626
|
|
|
45431
45627
|
Provides time-weighted averages of deposit and borrow rates for Aave reserves.`,
|
|
45432
|
-
args,
|
|
45433
|
-
tool: async (client,
|
|
45434
|
-
const [result, apiCall] = await aaveV3AvgRate(client,
|
|
45628
|
+
args: args2,
|
|
45629
|
+
tool: async (client, args3, ctx) => {
|
|
45630
|
+
const [result, apiCall] = await aaveV3AvgRate(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45435
45631
|
if (!result.ok) {
|
|
45436
45632
|
return {
|
|
45437
45633
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45446,9 +45642,9 @@ Provides time-weighted averages of deposit and borrow rates for Aave reserves.`,
|
|
|
45446
45642
|
|
|
45447
45643
|
// src/funcs/aaveV3Borrow.ts
|
|
45448
45644
|
function aaveV3Borrow(client, request, options) {
|
|
45449
|
-
return new APIPromise($
|
|
45645
|
+
return new APIPromise($do3(client, request, options));
|
|
45450
45646
|
}
|
|
45451
|
-
async function $
|
|
45647
|
+
async function $do3(client, request, options) {
|
|
45452
45648
|
const parsed = safeParse(request, (value) => AaveBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45453
45649
|
if (!parsed.ok) {
|
|
45454
45650
|
return [parsed, { status: "invalid" }];
|
|
@@ -45519,12 +45715,12 @@ var init_aaveV3Borrow = __esm(() => {
|
|
|
45519
45715
|
});
|
|
45520
45716
|
|
|
45521
45717
|
// src/mcp-server/tools/aaveV3Borrow.ts
|
|
45522
|
-
var
|
|
45718
|
+
var args3, tool$aaveV3Borrow;
|
|
45523
45719
|
var init_aaveV3Borrow2 = __esm(() => {
|
|
45524
45720
|
init_aaveV3Borrow();
|
|
45525
45721
|
init_components();
|
|
45526
45722
|
init_tools();
|
|
45527
|
-
|
|
45723
|
+
args3 = {
|
|
45528
45724
|
request: AaveBorrowRequest$inboundSchema
|
|
45529
45725
|
};
|
|
45530
45726
|
tool$aaveV3Borrow = {
|
|
@@ -45543,9 +45739,9 @@ liquidated, if the borrow position becomes unhealthy.
|
|
|
45543
45739
|
- \`AaveV3Pool\`
|
|
45544
45740
|
</Info>
|
|
45545
45741
|
`,
|
|
45546
|
-
args:
|
|
45547
|
-
tool: async (client,
|
|
45548
|
-
const [result, apiCall] = await aaveV3Borrow(client,
|
|
45742
|
+
args: args3,
|
|
45743
|
+
tool: async (client, args4, ctx) => {
|
|
45744
|
+
const [result, apiCall] = await aaveV3Borrow(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45549
45745
|
if (!result.ok) {
|
|
45550
45746
|
return {
|
|
45551
45747
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45560,9 +45756,9 @@ liquidated, if the borrow position becomes unhealthy.
|
|
|
45560
45756
|
|
|
45561
45757
|
// src/funcs/aaveV3HistoricalTransactions.ts
|
|
45562
45758
|
function aaveV3HistoricalTransactions(client, request, options) {
|
|
45563
|
-
return new APIPromise($
|
|
45759
|
+
return new APIPromise($do4(client, request, options));
|
|
45564
45760
|
}
|
|
45565
|
-
async function $
|
|
45761
|
+
async function $do4(client, request, options) {
|
|
45566
45762
|
const parsed = safeParse(request, (value) => AaveHistoricalTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45567
45763
|
if (!parsed.ok) {
|
|
45568
45764
|
return [parsed, { status: "invalid" }];
|
|
@@ -45640,12 +45836,12 @@ var init_aaveV3HistoricalTransactions = __esm(() => {
|
|
|
45640
45836
|
});
|
|
45641
45837
|
|
|
45642
45838
|
// src/mcp-server/tools/aaveV3HistoricalTransactions.ts
|
|
45643
|
-
var
|
|
45839
|
+
var args4, tool$aaveV3HistoricalTransactions;
|
|
45644
45840
|
var init_aaveV3HistoricalTransactions2 = __esm(() => {
|
|
45645
45841
|
init_aaveV3HistoricalTransactions();
|
|
45646
45842
|
init_operations();
|
|
45647
45843
|
init_tools();
|
|
45648
|
-
|
|
45844
|
+
args4 = {
|
|
45649
45845
|
request: AaveHistoricalTransactionsRequest$inboundSchema
|
|
45650
45846
|
};
|
|
45651
45847
|
tool$aaveV3HistoricalTransactions = {
|
|
@@ -45658,9 +45854,9 @@ It returns a list of transactions including deposits, withdrawals, borrows, and
|
|
|
45658
45854
|
repayments. Each transaction includes details such as the token, amount, timestamp,
|
|
45659
45855
|
and transaction type. This provides a comprehensive view of the user's historical
|
|
45660
45856
|
activity within the AAVE protocol.`,
|
|
45661
|
-
args:
|
|
45662
|
-
tool: async (client,
|
|
45663
|
-
const [result, apiCall] = await aaveV3HistoricalTransactions(client,
|
|
45857
|
+
args: args4,
|
|
45858
|
+
tool: async (client, args5, ctx) => {
|
|
45859
|
+
const [result, apiCall] = await aaveV3HistoricalTransactions(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45664
45860
|
if (!result.ok) {
|
|
45665
45861
|
return {
|
|
45666
45862
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45675,9 +45871,9 @@ activity within the AAVE protocol.`,
|
|
|
45675
45871
|
|
|
45676
45872
|
// src/funcs/aaveV3LiquidityChange.ts
|
|
45677
45873
|
function aaveV3LiquidityChange(client, request, options) {
|
|
45678
|
-
return new APIPromise($
|
|
45874
|
+
return new APIPromise($do5(client, request, options));
|
|
45679
45875
|
}
|
|
45680
|
-
async function $
|
|
45876
|
+
async function $do5(client, request, options) {
|
|
45681
45877
|
const parsed = safeParse(request, (value) => AaveLiquidityChangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45682
45878
|
if (!parsed.ok) {
|
|
45683
45879
|
return [parsed, { status: "invalid" }];
|
|
@@ -45755,12 +45951,12 @@ var init_aaveV3LiquidityChange = __esm(() => {
|
|
|
45755
45951
|
});
|
|
45756
45952
|
|
|
45757
45953
|
// src/mcp-server/tools/aaveV3LiquidityChange.ts
|
|
45758
|
-
var
|
|
45954
|
+
var args5, tool$aaveV3LiquidityChange;
|
|
45759
45955
|
var init_aaveV3LiquidityChange2 = __esm(() => {
|
|
45760
45956
|
init_aaveV3LiquidityChange();
|
|
45761
45957
|
init_operations();
|
|
45762
45958
|
init_tools();
|
|
45763
|
-
|
|
45959
|
+
args5 = {
|
|
45764
45960
|
request: AaveLiquidityChangeRequest$inboundSchema
|
|
45765
45961
|
};
|
|
45766
45962
|
tool$aaveV3LiquidityChange = {
|
|
@@ -45778,9 +45974,9 @@ at the start block, a positive liquidity index change will represent accrued
|
|
|
45778
45974
|
interest and a profit. If tokens were borrowed at the start block, this debt will
|
|
45779
45975
|
increase, compound on itself and represent large debt. The reverse in both cases is
|
|
45780
45976
|
true if the liquidity index is negative.`,
|
|
45781
|
-
args:
|
|
45782
|
-
tool: async (client,
|
|
45783
|
-
const [result, apiCall] = await aaveV3LiquidityChange(client,
|
|
45977
|
+
args: args5,
|
|
45978
|
+
tool: async (client, args6, ctx) => {
|
|
45979
|
+
const [result, apiCall] = await aaveV3LiquidityChange(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45784
45980
|
if (!result.ok) {
|
|
45785
45981
|
return {
|
|
45786
45982
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45795,9 +45991,9 @@ true if the liquidity index is negative.`,
|
|
|
45795
45991
|
|
|
45796
45992
|
// src/funcs/aaveV3Rate.ts
|
|
45797
45993
|
function aaveV3Rate(client, request, options) {
|
|
45798
|
-
return new APIPromise($
|
|
45994
|
+
return new APIPromise($do6(client, request, options));
|
|
45799
45995
|
}
|
|
45800
|
-
async function $
|
|
45996
|
+
async function $do6(client, request, options) {
|
|
45801
45997
|
const parsed = safeParse(request, (value) => AaveRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45802
45998
|
if (!parsed.ok) {
|
|
45803
45999
|
return [parsed, { status: "invalid" }];
|
|
@@ -45874,12 +46070,12 @@ var init_aaveV3Rate = __esm(() => {
|
|
|
45874
46070
|
});
|
|
45875
46071
|
|
|
45876
46072
|
// src/mcp-server/tools/aaveV3Rate.ts
|
|
45877
|
-
var
|
|
46073
|
+
var args6, tool$aaveV3Rate;
|
|
45878
46074
|
var init_aaveV3Rate2 = __esm(() => {
|
|
45879
46075
|
init_aaveV3Rate();
|
|
45880
46076
|
init_operations();
|
|
45881
46077
|
init_tools();
|
|
45882
|
-
|
|
46078
|
+
args6 = {
|
|
45883
46079
|
request: AaveRateRequest$inboundSchema
|
|
45884
46080
|
};
|
|
45885
46081
|
tool$aaveV3Rate = {
|
|
@@ -45900,9 +46096,9 @@ blockchain every time this endpoint is called.
|
|
|
45900
46096
|
compounding).
|
|
45901
46097
|
|
|
45902
46098
|
For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.`,
|
|
45903
|
-
args:
|
|
45904
|
-
tool: async (client,
|
|
45905
|
-
const [result, apiCall] = await aaveV3Rate(client,
|
|
46099
|
+
args: args6,
|
|
46100
|
+
tool: async (client, args7, ctx) => {
|
|
46101
|
+
const [result, apiCall] = await aaveV3Rate(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45906
46102
|
if (!result.ok) {
|
|
45907
46103
|
return {
|
|
45908
46104
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45917,9 +46113,9 @@ For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.`
|
|
|
45917
46113
|
|
|
45918
46114
|
// src/funcs/aaveV3Repay.ts
|
|
45919
46115
|
function aaveV3Repay(client, request, options) {
|
|
45920
|
-
return new APIPromise($
|
|
46116
|
+
return new APIPromise($do7(client, request, options));
|
|
45921
46117
|
}
|
|
45922
|
-
async function $
|
|
46118
|
+
async function $do7(client, request, options) {
|
|
45923
46119
|
const parsed = safeParse(request, (value) => AaveRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45924
46120
|
if (!parsed.ok) {
|
|
45925
46121
|
return [parsed, { status: "invalid" }];
|
|
@@ -45990,12 +46186,12 @@ var init_aaveV3Repay = __esm(() => {
|
|
|
45990
46186
|
});
|
|
45991
46187
|
|
|
45992
46188
|
// src/mcp-server/tools/aaveV3Repay.ts
|
|
45993
|
-
var
|
|
46189
|
+
var args7, tool$aaveV3Repay;
|
|
45994
46190
|
var init_aaveV3Repay2 = __esm(() => {
|
|
45995
46191
|
init_aaveV3Repay();
|
|
45996
46192
|
init_components();
|
|
45997
46193
|
init_tools();
|
|
45998
|
-
|
|
46194
|
+
args7 = {
|
|
45999
46195
|
request: AaveRepayRequest$inboundSchema
|
|
46000
46196
|
};
|
|
46001
46197
|
tool$aaveV3Repay = {
|
|
@@ -46018,9 +46214,9 @@ including the amount and the asset to be repaid.
|
|
|
46018
46214
|
- \`AaveV3Pool\`
|
|
46019
46215
|
</Info>
|
|
46020
46216
|
`,
|
|
46021
|
-
args:
|
|
46022
|
-
tool: async (client,
|
|
46023
|
-
const [result, apiCall] = await aaveV3Repay(client,
|
|
46217
|
+
args: args7,
|
|
46218
|
+
tool: async (client, args8, ctx) => {
|
|
46219
|
+
const [result, apiCall] = await aaveV3Repay(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46024
46220
|
if (!result.ok) {
|
|
46025
46221
|
return {
|
|
46026
46222
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46035,9 +46231,9 @@ including the amount and the asset to be repaid.
|
|
|
46035
46231
|
|
|
46036
46232
|
// src/funcs/aaveV3ReserveOverview.ts
|
|
46037
46233
|
function aaveV3ReserveOverview(client, request, options) {
|
|
46038
|
-
return new APIPromise($
|
|
46234
|
+
return new APIPromise($do8(client, request, options));
|
|
46039
46235
|
}
|
|
46040
|
-
async function $
|
|
46236
|
+
async function $do8(client, request, options) {
|
|
46041
46237
|
const parsed = safeParse(request, (value) => AaveReserveOverviewRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46042
46238
|
if (!parsed.ok) {
|
|
46043
46239
|
return [parsed, { status: "invalid" }];
|
|
@@ -46114,12 +46310,12 @@ var init_aaveV3ReserveOverview = __esm(() => {
|
|
|
46114
46310
|
});
|
|
46115
46311
|
|
|
46116
46312
|
// src/mcp-server/tools/aaveV3ReserveOverview.ts
|
|
46117
|
-
var
|
|
46313
|
+
var args8, tool$aaveV3ReserveOverview;
|
|
46118
46314
|
var init_aaveV3ReserveOverview2 = __esm(() => {
|
|
46119
46315
|
init_aaveV3ReserveOverview();
|
|
46120
46316
|
init_operations();
|
|
46121
46317
|
init_tools();
|
|
46122
|
-
|
|
46318
|
+
args8 = {
|
|
46123
46319
|
request: AaveReserveOverviewRequest$inboundSchema
|
|
46124
46320
|
};
|
|
46125
46321
|
tool$aaveV3ReserveOverview = {
|
|
@@ -46132,9 +46328,9 @@ Returns key metrics for Aave Reserves:
|
|
|
46132
46328
|
- Utilization Ratio
|
|
46133
46329
|
|
|
46134
46330
|
See below for more info:`,
|
|
46135
|
-
args:
|
|
46136
|
-
tool: async (client,
|
|
46137
|
-
const [result, apiCall] = await aaveV3ReserveOverview(client,
|
|
46331
|
+
args: args8,
|
|
46332
|
+
tool: async (client, args9, ctx) => {
|
|
46333
|
+
const [result, apiCall] = await aaveV3ReserveOverview(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46138
46334
|
if (!result.ok) {
|
|
46139
46335
|
return {
|
|
46140
46336
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46149,9 +46345,9 @@ See below for more info:`,
|
|
|
46149
46345
|
|
|
46150
46346
|
// src/funcs/aaveV3StdRate.ts
|
|
46151
46347
|
function aaveV3StdRate(client, request, options) {
|
|
46152
|
-
return new APIPromise($
|
|
46348
|
+
return new APIPromise($do9(client, request, options));
|
|
46153
46349
|
}
|
|
46154
|
-
async function $
|
|
46350
|
+
async function $do9(client, request, options) {
|
|
46155
46351
|
const parsed = safeParse(request, (value) => AaveStdRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46156
46352
|
if (!parsed.ok) {
|
|
46157
46353
|
return [parsed, { status: "invalid" }];
|
|
@@ -46229,12 +46425,12 @@ var init_aaveV3StdRate = __esm(() => {
|
|
|
46229
46425
|
});
|
|
46230
46426
|
|
|
46231
46427
|
// src/mcp-server/tools/aaveV3StdRate.ts
|
|
46232
|
-
var
|
|
46428
|
+
var args9, tool$aaveV3StdRate;
|
|
46233
46429
|
var init_aaveV3StdRate2 = __esm(() => {
|
|
46234
46430
|
init_aaveV3StdRate();
|
|
46235
46431
|
init_operations();
|
|
46236
46432
|
init_tools();
|
|
46237
|
-
|
|
46433
|
+
args9 = {
|
|
46238
46434
|
request: AaveStdRateRequest$inboundSchema
|
|
46239
46435
|
};
|
|
46240
46436
|
tool$aaveV3StdRate = {
|
|
@@ -46243,9 +46439,9 @@ var init_aaveV3StdRate2 = __esm(() => {
|
|
|
46243
46439
|
|
|
46244
46440
|
Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
46245
46441
|
reserves, illustrating market volatility.`,
|
|
46246
|
-
args:
|
|
46247
|
-
tool: async (client,
|
|
46248
|
-
const [result, apiCall] = await aaveV3StdRate(client,
|
|
46442
|
+
args: args9,
|
|
46443
|
+
tool: async (client, args10, ctx) => {
|
|
46444
|
+
const [result, apiCall] = await aaveV3StdRate(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46249
46445
|
if (!result.ok) {
|
|
46250
46446
|
return {
|
|
46251
46447
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46260,9 +46456,9 @@ reserves, illustrating market volatility.`,
|
|
|
46260
46456
|
|
|
46261
46457
|
// src/funcs/aaveV3Supply.ts
|
|
46262
46458
|
function aaveV3Supply(client, request, options) {
|
|
46263
|
-
return new APIPromise($
|
|
46459
|
+
return new APIPromise($do10(client, request, options));
|
|
46264
46460
|
}
|
|
46265
|
-
async function $
|
|
46461
|
+
async function $do10(client, request, options) {
|
|
46266
46462
|
const parsed = safeParse(request, (value) => AaveSupplyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46267
46463
|
if (!parsed.ok) {
|
|
46268
46464
|
return [parsed, { status: "invalid" }];
|
|
@@ -46333,12 +46529,12 @@ var init_aaveV3Supply = __esm(() => {
|
|
|
46333
46529
|
});
|
|
46334
46530
|
|
|
46335
46531
|
// src/mcp-server/tools/aaveV3Supply.ts
|
|
46336
|
-
var
|
|
46532
|
+
var args10, tool$aaveV3Supply;
|
|
46337
46533
|
var init_aaveV3Supply2 = __esm(() => {
|
|
46338
46534
|
init_aaveV3Supply();
|
|
46339
46535
|
init_components();
|
|
46340
46536
|
init_tools();
|
|
46341
|
-
|
|
46537
|
+
args10 = {
|
|
46342
46538
|
request: AaveSupplyRequest$inboundSchema
|
|
46343
46539
|
};
|
|
46344
46540
|
tool$aaveV3Supply = {
|
|
@@ -46362,9 +46558,9 @@ borrowing flexibility.
|
|
|
46362
46558
|
- \`AaveV3Pool\`
|
|
46363
46559
|
</Info>
|
|
46364
46560
|
`,
|
|
46365
|
-
args:
|
|
46366
|
-
tool: async (client,
|
|
46367
|
-
const [result, apiCall] = await aaveV3Supply(client,
|
|
46561
|
+
args: args10,
|
|
46562
|
+
tool: async (client, args11, ctx) => {
|
|
46563
|
+
const [result, apiCall] = await aaveV3Supply(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46368
46564
|
if (!result.ok) {
|
|
46369
46565
|
return {
|
|
46370
46566
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46379,9 +46575,9 @@ borrowing flexibility.
|
|
|
46379
46575
|
|
|
46380
46576
|
// src/funcs/aaveV3TokenPrice.ts
|
|
46381
46577
|
function aaveV3TokenPrice(client, request, options) {
|
|
46382
|
-
return new APIPromise($
|
|
46578
|
+
return new APIPromise($do11(client, request, options));
|
|
46383
46579
|
}
|
|
46384
|
-
async function $
|
|
46580
|
+
async function $do11(client, request, options) {
|
|
46385
46581
|
const parsed = safeParse(request, (value) => AaveTokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46386
46582
|
if (!parsed.ok) {
|
|
46387
46583
|
return [parsed, { status: "invalid" }];
|
|
@@ -46458,12 +46654,12 @@ var init_aaveV3TokenPrice = __esm(() => {
|
|
|
46458
46654
|
});
|
|
46459
46655
|
|
|
46460
46656
|
// src/mcp-server/tools/aaveV3TokenPrice.ts
|
|
46461
|
-
var
|
|
46657
|
+
var args11, tool$aaveV3TokenPrice;
|
|
46462
46658
|
var init_aaveV3TokenPrice2 = __esm(() => {
|
|
46463
46659
|
init_aaveV3TokenPrice();
|
|
46464
46660
|
init_operations();
|
|
46465
46661
|
init_tools();
|
|
46466
|
-
|
|
46662
|
+
args11 = {
|
|
46467
46663
|
request: AaveTokenPriceRequest$inboundSchema
|
|
46468
46664
|
};
|
|
46469
46665
|
tool$aaveV3TokenPrice = {
|
|
@@ -46478,9 +46674,9 @@ to-date information. The request requires the token identifier and the blockchai
|
|
|
46478
46674
|
network (chain) on which the token resides. The response provides the token price in
|
|
46479
46675
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
46480
46676
|
Aave.`,
|
|
46481
|
-
args:
|
|
46482
|
-
tool: async (client,
|
|
46483
|
-
const [result, apiCall] = await aaveV3TokenPrice(client,
|
|
46677
|
+
args: args11,
|
|
46678
|
+
tool: async (client, args12, ctx) => {
|
|
46679
|
+
const [result, apiCall] = await aaveV3TokenPrice(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46484
46680
|
if (!result.ok) {
|
|
46485
46681
|
return {
|
|
46486
46682
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46495,9 +46691,9 @@ Aave.`,
|
|
|
46495
46691
|
|
|
46496
46692
|
// src/funcs/aaveV3UserPositionPerToken.ts
|
|
46497
46693
|
function aaveV3UserPositionPerToken(client, request, options) {
|
|
46498
|
-
return new APIPromise($
|
|
46694
|
+
return new APIPromise($do12(client, request, options));
|
|
46499
46695
|
}
|
|
46500
|
-
async function $
|
|
46696
|
+
async function $do12(client, request, options) {
|
|
46501
46697
|
const parsed = safeParse(request, (value) => AaveUserPositionPerTokenRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46502
46698
|
if (!parsed.ok) {
|
|
46503
46699
|
return [parsed, { status: "invalid" }];
|
|
@@ -46575,12 +46771,12 @@ var init_aaveV3UserPositionPerToken = __esm(() => {
|
|
|
46575
46771
|
});
|
|
46576
46772
|
|
|
46577
46773
|
// src/mcp-server/tools/aaveV3UserPositionPerToken.ts
|
|
46578
|
-
var
|
|
46774
|
+
var args12, tool$aaveV3UserPositionPerToken;
|
|
46579
46775
|
var init_aaveV3UserPositionPerToken2 = __esm(() => {
|
|
46580
46776
|
init_aaveV3UserPositionPerToken();
|
|
46581
46777
|
init_operations();
|
|
46582
46778
|
init_tools();
|
|
46583
|
-
|
|
46779
|
+
args12 = {
|
|
46584
46780
|
request: AaveUserPositionPerTokenRequest$inboundSchema
|
|
46585
46781
|
};
|
|
46586
46782
|
tool$aaveV3UserPositionPerToken = {
|
|
@@ -46596,9 +46792,9 @@ stable borrow rate, stable borrow rate for new loans, variable borrow rate, and
|
|
|
46596
46792
|
liquidity rate. These metrics are calculated by aggregating data across all open
|
|
46597
46793
|
positions held by the user for the specified token, offering a detailed view of
|
|
46598
46794
|
their financial standing within the AAVE ecosystem.`,
|
|
46599
|
-
args:
|
|
46600
|
-
tool: async (client,
|
|
46601
|
-
const [result, apiCall] = await aaveV3UserPositionPerToken(client,
|
|
46795
|
+
args: args12,
|
|
46796
|
+
tool: async (client, args13, ctx) => {
|
|
46797
|
+
const [result, apiCall] = await aaveV3UserPositionPerToken(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46602
46798
|
if (!result.ok) {
|
|
46603
46799
|
return {
|
|
46604
46800
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46613,9 +46809,9 @@ their financial standing within the AAVE ecosystem.`,
|
|
|
46613
46809
|
|
|
46614
46810
|
// src/funcs/aaveV3UserPositionSummary.ts
|
|
46615
46811
|
function aaveV3UserPositionSummary(client, request, options) {
|
|
46616
|
-
return new APIPromise($
|
|
46812
|
+
return new APIPromise($do13(client, request, options));
|
|
46617
46813
|
}
|
|
46618
|
-
async function $
|
|
46814
|
+
async function $do13(client, request, options) {
|
|
46619
46815
|
const parsed = safeParse(request, (value) => AaveUserPositionSummaryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46620
46816
|
if (!parsed.ok) {
|
|
46621
46817
|
return [parsed, { status: "invalid" }];
|
|
@@ -46692,12 +46888,12 @@ var init_aaveV3UserPositionSummary = __esm(() => {
|
|
|
46692
46888
|
});
|
|
46693
46889
|
|
|
46694
46890
|
// src/mcp-server/tools/aaveV3UserPositionSummary.ts
|
|
46695
|
-
var
|
|
46891
|
+
var args13, tool$aaveV3UserPositionSummary;
|
|
46696
46892
|
var init_aaveV3UserPositionSummary2 = __esm(() => {
|
|
46697
46893
|
init_aaveV3UserPositionSummary();
|
|
46698
46894
|
init_operations();
|
|
46699
46895
|
init_tools();
|
|
46700
|
-
|
|
46896
|
+
args13 = {
|
|
46701
46897
|
request: AaveUserPositionSummaryRequest$inboundSchema
|
|
46702
46898
|
};
|
|
46703
46899
|
tool$aaveV3UserPositionSummary = {
|
|
@@ -46712,9 +46908,9 @@ debt accrued, available borrowing capacity, liquidation threshold, maximum loan-
|
|
|
46712
46908
|
value ratio, and the health factor of the user's account. These metrics are
|
|
46713
46909
|
calculated by aggregating data across all open positions held by the user, offering
|
|
46714
46910
|
a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
46715
|
-
args:
|
|
46716
|
-
tool: async (client,
|
|
46717
|
-
const [result, apiCall] = await aaveV3UserPositionSummary(client,
|
|
46911
|
+
args: args13,
|
|
46912
|
+
tool: async (client, args14, ctx) => {
|
|
46913
|
+
const [result, apiCall] = await aaveV3UserPositionSummary(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46718
46914
|
if (!result.ok) {
|
|
46719
46915
|
return {
|
|
46720
46916
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46729,9 +46925,9 @@ a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
|
46729
46925
|
|
|
46730
46926
|
// src/funcs/aaveV3Withdraw.ts
|
|
46731
46927
|
function aaveV3Withdraw(client, request, options) {
|
|
46732
|
-
return new APIPromise($
|
|
46928
|
+
return new APIPromise($do14(client, request, options));
|
|
46733
46929
|
}
|
|
46734
|
-
async function $
|
|
46930
|
+
async function $do14(client, request, options) {
|
|
46735
46931
|
const parsed = safeParse(request, (value) => AaveWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46736
46932
|
if (!parsed.ok) {
|
|
46737
46933
|
return [parsed, { status: "invalid" }];
|
|
@@ -46802,12 +46998,12 @@ var init_aaveV3Withdraw = __esm(() => {
|
|
|
46802
46998
|
});
|
|
46803
46999
|
|
|
46804
47000
|
// src/mcp-server/tools/aaveV3Withdraw.ts
|
|
46805
|
-
var
|
|
47001
|
+
var args14, tool$aaveV3Withdraw;
|
|
46806
47002
|
var init_aaveV3Withdraw2 = __esm(() => {
|
|
46807
47003
|
init_aaveV3Withdraw();
|
|
46808
47004
|
init_components();
|
|
46809
47005
|
init_tools();
|
|
46810
|
-
|
|
47006
|
+
args14 = {
|
|
46811
47007
|
request: AaveWithdrawRequest$inboundSchema
|
|
46812
47008
|
};
|
|
46813
47009
|
tool$aaveV3Withdraw = {
|
|
@@ -46831,9 +47027,9 @@ the Aave ecosystem.
|
|
|
46831
47027
|
- \`AaveV3Pool\`
|
|
46832
47028
|
</Info>
|
|
46833
47029
|
`,
|
|
46834
|
-
args:
|
|
46835
|
-
tool: async (client,
|
|
46836
|
-
const [result, apiCall] = await aaveV3Withdraw(client,
|
|
47030
|
+
args: args14,
|
|
47031
|
+
tool: async (client, args15, ctx) => {
|
|
47032
|
+
const [result, apiCall] = await aaveV3Withdraw(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46837
47033
|
if (!result.ok) {
|
|
46838
47034
|
return {
|
|
46839
47035
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46848,9 +47044,9 @@ the Aave ecosystem.
|
|
|
46848
47044
|
|
|
46849
47045
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
46850
47046
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, request, options) {
|
|
46851
|
-
return new APIPromise($
|
|
47047
|
+
return new APIPromise($do15(client, request, options));
|
|
46852
47048
|
}
|
|
46853
|
-
async function $
|
|
47049
|
+
async function $do15(client, request, options) {
|
|
46854
47050
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46855
47051
|
if (!parsed.ok) {
|
|
46856
47052
|
return [parsed, { status: "invalid" }];
|
|
@@ -46921,12 +47117,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = __esm(() => {
|
|
|
46921
47117
|
});
|
|
46922
47118
|
|
|
46923
47119
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
46924
|
-
var
|
|
47120
|
+
var args15, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease;
|
|
46925
47121
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease2 = __esm(() => {
|
|
46926
47122
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease();
|
|
46927
47123
|
init_components();
|
|
46928
47124
|
init_tools();
|
|
46929
|
-
|
|
47125
|
+
args15 = {
|
|
46930
47126
|
request: AerodromeSlipstreamIncreaseLiquidityProvisionRequest$inboundSchema
|
|
46931
47127
|
};
|
|
46932
47128
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = {
|
|
@@ -46952,9 +47148,9 @@ to adapt to market conditions and maximize their returns in decentralized financ
|
|
|
46952
47148
|
- \`AerodromeSlipstreamRouter\`
|
|
46953
47149
|
</Info>
|
|
46954
47150
|
`,
|
|
46955
|
-
args:
|
|
46956
|
-
tool: async (client,
|
|
46957
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client,
|
|
47151
|
+
args: args15,
|
|
47152
|
+
tool: async (client, args16, ctx) => {
|
|
47153
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46958
47154
|
if (!result.ok) {
|
|
46959
47155
|
return {
|
|
46960
47156
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46969,9 +47165,9 @@ to adapt to market conditions and maximize their returns in decentralized financ
|
|
|
46969
47165
|
|
|
46970
47166
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
46971
47167
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, request, options) {
|
|
46972
|
-
return new APIPromise($
|
|
47168
|
+
return new APIPromise($do16(client, request, options));
|
|
46973
47169
|
}
|
|
46974
|
-
async function $
|
|
47170
|
+
async function $do16(client, request, options) {
|
|
46975
47171
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46976
47172
|
if (!parsed.ok) {
|
|
46977
47173
|
return [parsed, { status: "invalid" }];
|
|
@@ -47042,12 +47238,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint = __esm(() => {
|
|
|
47042
47238
|
});
|
|
47043
47239
|
|
|
47044
47240
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
47045
|
-
var
|
|
47241
|
+
var args16, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint;
|
|
47046
47242
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint2 = __esm(() => {
|
|
47047
47243
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint();
|
|
47048
47244
|
init_components();
|
|
47049
47245
|
init_tools();
|
|
47050
|
-
|
|
47246
|
+
args16 = {
|
|
47051
47247
|
request: AerodromeSlipstreamMintLiquidityProvisionRequest$inboundSchema
|
|
47052
47248
|
};
|
|
47053
47249
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint = {
|
|
@@ -47071,9 +47267,9 @@ them the opportunity to engage in decentralized finance (DeFi) markets effective
|
|
|
47071
47267
|
- \`AerodromeSlipstreamNonfungiblePositionManager\`
|
|
47072
47268
|
</Info>
|
|
47073
47269
|
`,
|
|
47074
|
-
args:
|
|
47075
|
-
tool: async (client,
|
|
47076
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client,
|
|
47270
|
+
args: args16,
|
|
47271
|
+
tool: async (client, args17, ctx) => {
|
|
47272
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47077
47273
|
if (!result.ok) {
|
|
47078
47274
|
return {
|
|
47079
47275
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47088,9 +47284,9 @@ them the opportunity to engage in decentralized finance (DeFi) markets effective
|
|
|
47088
47284
|
|
|
47089
47285
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
47090
47286
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, request, options) {
|
|
47091
|
-
return new APIPromise($
|
|
47287
|
+
return new APIPromise($do17(client, request, options));
|
|
47092
47288
|
}
|
|
47093
|
-
async function $
|
|
47289
|
+
async function $do17(client, request, options) {
|
|
47094
47290
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47095
47291
|
if (!parsed.ok) {
|
|
47096
47292
|
return [parsed, { status: "invalid" }];
|
|
@@ -47166,12 +47362,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = __esm(() =>
|
|
|
47166
47362
|
});
|
|
47167
47363
|
|
|
47168
47364
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
47169
|
-
var
|
|
47365
|
+
var args17, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions;
|
|
47170
47366
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions2 = __esm(() => {
|
|
47171
47367
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions();
|
|
47172
47368
|
init_operations();
|
|
47173
47369
|
init_tools();
|
|
47174
|
-
|
|
47370
|
+
args17 = {
|
|
47175
47371
|
request: AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema
|
|
47176
47372
|
};
|
|
47177
47373
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = {
|
|
@@ -47187,9 +47383,9 @@ AerodromeLPPositionsInfo, provides a structured representation of the LP positio
|
|
|
47187
47383
|
data, ensuring clarity and ease of use. This functionality is essential for users
|
|
47188
47384
|
managing their liquidity provision activities, enabling them to make informed
|
|
47189
47385
|
decisions based on their current positions.`,
|
|
47190
|
-
args:
|
|
47191
|
-
tool: async (client,
|
|
47192
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client,
|
|
47386
|
+
args: args17,
|
|
47387
|
+
tool: async (client, args18, ctx) => {
|
|
47388
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47193
47389
|
if (!result.ok) {
|
|
47194
47390
|
return {
|
|
47195
47391
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47204,9 +47400,9 @@ decisions based on their current positions.`,
|
|
|
47204
47400
|
|
|
47205
47401
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
47206
47402
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, request, options) {
|
|
47207
|
-
return new APIPromise($
|
|
47403
|
+
return new APIPromise($do18(client, request, options));
|
|
47208
47404
|
}
|
|
47209
|
-
async function $
|
|
47405
|
+
async function $do18(client, request, options) {
|
|
47210
47406
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47211
47407
|
if (!parsed.ok) {
|
|
47212
47408
|
return [parsed, { status: "invalid" }];
|
|
@@ -47277,12 +47473,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = __esm(() => {
|
|
|
47277
47473
|
});
|
|
47278
47474
|
|
|
47279
47475
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
47280
|
-
var
|
|
47476
|
+
var args18, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw;
|
|
47281
47477
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw2 = __esm(() => {
|
|
47282
47478
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw();
|
|
47283
47479
|
init_components();
|
|
47284
47480
|
init_tools();
|
|
47285
|
-
|
|
47481
|
+
args18 = {
|
|
47286
47482
|
request: AerodromeSlipstreamWithdrawLiquidityProvisionRequest$inboundSchema
|
|
47287
47483
|
};
|
|
47288
47484
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = {
|
|
@@ -47308,9 +47504,9 @@ strategic management of their decentralized finance (DeFi) portfolios.
|
|
|
47308
47504
|
- \`AerodromeSlipstreamNonfungiblePositionManager\`
|
|
47309
47505
|
</Info>
|
|
47310
47506
|
`,
|
|
47311
|
-
args:
|
|
47312
|
-
tool: async (client,
|
|
47313
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client,
|
|
47507
|
+
args: args18,
|
|
47508
|
+
tool: async (client, args19, ctx) => {
|
|
47509
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47314
47510
|
if (!result.ok) {
|
|
47315
47511
|
return {
|
|
47316
47512
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47325,9 +47521,9 @@ strategic management of their decentralized finance (DeFi) portfolios.
|
|
|
47325
47521
|
|
|
47326
47522
|
// src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
47327
47523
|
function aerodromeSlipstreamSlipstreamPoolPrice(client, request, options) {
|
|
47328
|
-
return new APIPromise($
|
|
47524
|
+
return new APIPromise($do19(client, request, options));
|
|
47329
47525
|
}
|
|
47330
|
-
async function $
|
|
47526
|
+
async function $do19(client, request, options) {
|
|
47331
47527
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47332
47528
|
if (!parsed.ok) {
|
|
47333
47529
|
return [parsed, { status: "invalid" }];
|
|
@@ -47405,12 +47601,12 @@ var init_aerodromeSlipstreamSlipstreamPoolPrice = __esm(() => {
|
|
|
47405
47601
|
});
|
|
47406
47602
|
|
|
47407
47603
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
47408
|
-
var
|
|
47604
|
+
var args19, tool$aerodromeSlipstreamSlipstreamPoolPrice;
|
|
47409
47605
|
var init_aerodromeSlipstreamSlipstreamPoolPrice2 = __esm(() => {
|
|
47410
47606
|
init_aerodromeSlipstreamSlipstreamPoolPrice();
|
|
47411
47607
|
init_operations();
|
|
47412
47608
|
init_tools();
|
|
47413
|
-
|
|
47609
|
+
args19 = {
|
|
47414
47610
|
request: AerodromeSlipstreamPoolPriceRequest$inboundSchema
|
|
47415
47611
|
};
|
|
47416
47612
|
tool$aerodromeSlipstreamSlipstreamPoolPrice = {
|
|
@@ -47423,9 +47619,9 @@ you can purchase for 1 token1.
|
|
|
47423
47619
|
Note that this is an instantaneous price and may change during any trade. For a more
|
|
47424
47620
|
accurate representation of the trade ratios between the two assets, consider using
|
|
47425
47621
|
the quote endpoint.`,
|
|
47426
|
-
args:
|
|
47427
|
-
tool: async (client,
|
|
47428
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client,
|
|
47622
|
+
args: args19,
|
|
47623
|
+
tool: async (client, args20, ctx) => {
|
|
47624
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47429
47625
|
if (!result.ok) {
|
|
47430
47626
|
return {
|
|
47431
47627
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47440,9 +47636,9 @@ the quote endpoint.`,
|
|
|
47440
47636
|
|
|
47441
47637
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
47442
47638
|
function aerodromeSlipstreamSlipstreamSwapBuyExactly(client, request, options) {
|
|
47443
|
-
return new APIPromise($
|
|
47639
|
+
return new APIPromise($do20(client, request, options));
|
|
47444
47640
|
}
|
|
47445
|
-
async function $
|
|
47641
|
+
async function $do20(client, request, options) {
|
|
47446
47642
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47447
47643
|
if (!parsed.ok) {
|
|
47448
47644
|
return [parsed, { status: "invalid" }];
|
|
@@ -47513,12 +47709,12 @@ var init_aerodromeSlipstreamSlipstreamSwapBuyExactly = __esm(() => {
|
|
|
47513
47709
|
});
|
|
47514
47710
|
|
|
47515
47711
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
47516
|
-
var
|
|
47712
|
+
var args20, tool$aerodromeSlipstreamSlipstreamSwapBuyExactly;
|
|
47517
47713
|
var init_aerodromeSlipstreamSlipstreamSwapBuyExactly2 = __esm(() => {
|
|
47518
47714
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly();
|
|
47519
47715
|
init_components();
|
|
47520
47716
|
init_tools();
|
|
47521
|
-
|
|
47717
|
+
args20 = {
|
|
47522
47718
|
request: AerodromeSlipstreamBuyExactlyRequest$inboundSchema
|
|
47523
47719
|
};
|
|
47524
47720
|
tool$aerodromeSlipstreamSlipstreamSwapBuyExactly = {
|
|
@@ -47543,9 +47739,9 @@ effectively.
|
|
|
47543
47739
|
- \`AerodromeSlipstreamRouter\`
|
|
47544
47740
|
</Info>
|
|
47545
47741
|
`,
|
|
47546
|
-
args:
|
|
47547
|
-
tool: async (client,
|
|
47548
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client,
|
|
47742
|
+
args: args20,
|
|
47743
|
+
tool: async (client, args21, ctx) => {
|
|
47744
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47549
47745
|
if (!result.ok) {
|
|
47550
47746
|
return {
|
|
47551
47747
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47560,9 +47756,9 @@ effectively.
|
|
|
47560
47756
|
|
|
47561
47757
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
47562
47758
|
function aerodromeSlipstreamSlipstreamSwapSellExactly(client, request, options) {
|
|
47563
|
-
return new APIPromise($
|
|
47759
|
+
return new APIPromise($do21(client, request, options));
|
|
47564
47760
|
}
|
|
47565
|
-
async function $
|
|
47761
|
+
async function $do21(client, request, options) {
|
|
47566
47762
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47567
47763
|
if (!parsed.ok) {
|
|
47568
47764
|
return [parsed, { status: "invalid" }];
|
|
@@ -47633,12 +47829,12 @@ var init_aerodromeSlipstreamSlipstreamSwapSellExactly = __esm(() => {
|
|
|
47633
47829
|
});
|
|
47634
47830
|
|
|
47635
47831
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
47636
|
-
var
|
|
47832
|
+
var args21, tool$aerodromeSlipstreamSlipstreamSwapSellExactly;
|
|
47637
47833
|
var init_aerodromeSlipstreamSlipstreamSwapSellExactly2 = __esm(() => {
|
|
47638
47834
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly();
|
|
47639
47835
|
init_components();
|
|
47640
47836
|
init_tools();
|
|
47641
|
-
|
|
47837
|
+
args21 = {
|
|
47642
47838
|
request: AerodromeSlipstreamSellExactlyRequest$inboundSchema
|
|
47643
47839
|
};
|
|
47644
47840
|
tool$aerodromeSlipstreamSlipstreamSwapSellExactly = {
|
|
@@ -47662,9 +47858,9 @@ token and are willing to accept the resulting amount of the other token.
|
|
|
47662
47858
|
- \`AerodromeSlipstreamRouter\`
|
|
47663
47859
|
</Info>
|
|
47664
47860
|
`,
|
|
47665
|
-
args:
|
|
47666
|
-
tool: async (client,
|
|
47667
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client,
|
|
47861
|
+
args: args21,
|
|
47862
|
+
tool: async (client, args22, ctx) => {
|
|
47863
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47668
47864
|
if (!result.ok) {
|
|
47669
47865
|
return {
|
|
47670
47866
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47679,9 +47875,9 @@ token and are willing to accept the resulting amount of the other token.
|
|
|
47679
47875
|
|
|
47680
47876
|
// src/funcs/erc4626VaultsDeposit.ts
|
|
47681
47877
|
function erc4626VaultsDeposit(client, request, options) {
|
|
47682
|
-
return new APIPromise($
|
|
47878
|
+
return new APIPromise($do22(client, request, options));
|
|
47683
47879
|
}
|
|
47684
|
-
async function $
|
|
47880
|
+
async function $do22(client, request, options) {
|
|
47685
47881
|
const parsed = safeParse(request, (value) => VaultDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47686
47882
|
if (!parsed.ok) {
|
|
47687
47883
|
return [parsed, { status: "invalid" }];
|
|
@@ -47752,12 +47948,12 @@ var init_erc4626VaultsDeposit = __esm(() => {
|
|
|
47752
47948
|
});
|
|
47753
47949
|
|
|
47754
47950
|
// src/mcp-server/tools/erc4626VaultsDeposit.ts
|
|
47755
|
-
var
|
|
47951
|
+
var args22, tool$erc4626VaultsDeposit;
|
|
47756
47952
|
var init_erc4626VaultsDeposit2 = __esm(() => {
|
|
47757
47953
|
init_erc4626VaultsDeposit();
|
|
47758
47954
|
init_components();
|
|
47759
47955
|
init_tools();
|
|
47760
|
-
|
|
47956
|
+
args22 = {
|
|
47761
47957
|
request: VaultDepositRequest$inboundSchema
|
|
47762
47958
|
};
|
|
47763
47959
|
tool$erc4626VaultsDeposit = {
|
|
@@ -47775,9 +47971,9 @@ Each vault accepts one unique token that can be deposited.
|
|
|
47775
47971
|
- \`<vault_address>\`
|
|
47776
47972
|
</Info>
|
|
47777
47973
|
`,
|
|
47778
|
-
args:
|
|
47779
|
-
tool: async (client,
|
|
47780
|
-
const [result, apiCall] = await erc4626VaultsDeposit(client,
|
|
47974
|
+
args: args22,
|
|
47975
|
+
tool: async (client, args23, ctx) => {
|
|
47976
|
+
const [result, apiCall] = await erc4626VaultsDeposit(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47781
47977
|
if (!result.ok) {
|
|
47782
47978
|
return {
|
|
47783
47979
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47792,9 +47988,9 @@ Each vault accepts one unique token that can be deposited.
|
|
|
47792
47988
|
|
|
47793
47989
|
// src/funcs/erc4626VaultsVault.ts
|
|
47794
47990
|
function erc4626VaultsVault(client, request, options) {
|
|
47795
|
-
return new APIPromise($
|
|
47991
|
+
return new APIPromise($do23(client, request, options));
|
|
47796
47992
|
}
|
|
47797
|
-
async function $
|
|
47993
|
+
async function $do23(client, request, options) {
|
|
47798
47994
|
const parsed = safeParse(request, (value) => VaultsVaultRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47799
47995
|
if (!parsed.ok) {
|
|
47800
47996
|
return [parsed, { status: "invalid" }];
|
|
@@ -47872,12 +48068,12 @@ var init_erc4626VaultsVault = __esm(() => {
|
|
|
47872
48068
|
});
|
|
47873
48069
|
|
|
47874
48070
|
// src/mcp-server/tools/erc4626VaultsVault.ts
|
|
47875
|
-
var
|
|
48071
|
+
var args23, tool$erc4626VaultsVault;
|
|
47876
48072
|
var init_erc4626VaultsVault2 = __esm(() => {
|
|
47877
48073
|
init_erc4626VaultsVault();
|
|
47878
48074
|
init_operations();
|
|
47879
48075
|
init_tools();
|
|
47880
|
-
|
|
48076
|
+
args23 = {
|
|
47881
48077
|
request: VaultsVaultRequest$inboundSchema
|
|
47882
48078
|
};
|
|
47883
48079
|
tool$erc4626VaultsVault = {
|
|
@@ -47887,9 +48083,9 @@ var init_erc4626VaultsVault2 = __esm(() => {
|
|
|
47887
48083
|
Get Vault data & User Position.
|
|
47888
48084
|
|
|
47889
48085
|
The user position is only included if 'user_address' parameter is included.`,
|
|
47890
|
-
args:
|
|
47891
|
-
tool: async (client,
|
|
47892
|
-
const [result, apiCall] = await erc4626VaultsVault(client,
|
|
48086
|
+
args: args23,
|
|
48087
|
+
tool: async (client, args24, ctx) => {
|
|
48088
|
+
const [result, apiCall] = await erc4626VaultsVault(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47893
48089
|
if (!result.ok) {
|
|
47894
48090
|
return {
|
|
47895
48091
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47904,9 +48100,9 @@ The user position is only included if 'user_address' parameter is included.`,
|
|
|
47904
48100
|
|
|
47905
48101
|
// src/funcs/erc4626VaultsWithdraw.ts
|
|
47906
48102
|
function erc4626VaultsWithdraw(client, request, options) {
|
|
47907
|
-
return new APIPromise($
|
|
48103
|
+
return new APIPromise($do24(client, request, options));
|
|
47908
48104
|
}
|
|
47909
|
-
async function $
|
|
48105
|
+
async function $do24(client, request, options) {
|
|
47910
48106
|
const parsed = safeParse(request, (value) => VaultWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47911
48107
|
if (!parsed.ok) {
|
|
47912
48108
|
return [parsed, { status: "invalid" }];
|
|
@@ -47977,12 +48173,12 @@ var init_erc4626VaultsWithdraw = __esm(() => {
|
|
|
47977
48173
|
});
|
|
47978
48174
|
|
|
47979
48175
|
// src/mcp-server/tools/erc4626VaultsWithdraw.ts
|
|
47980
|
-
var
|
|
48176
|
+
var args24, tool$erc4626VaultsWithdraw;
|
|
47981
48177
|
var init_erc4626VaultsWithdraw2 = __esm(() => {
|
|
47982
48178
|
init_erc4626VaultsWithdraw();
|
|
47983
48179
|
init_components();
|
|
47984
48180
|
init_tools();
|
|
47985
|
-
|
|
48181
|
+
args24 = {
|
|
47986
48182
|
request: VaultWithdrawRequest$inboundSchema
|
|
47987
48183
|
};
|
|
47988
48184
|
tool$erc4626VaultsWithdraw = {
|
|
@@ -48002,9 +48198,9 @@ deposited plus any accrued yield.
|
|
|
48002
48198
|
- \`<vault address>\`
|
|
48003
48199
|
</Info>
|
|
48004
48200
|
`,
|
|
48005
|
-
args:
|
|
48006
|
-
tool: async (client,
|
|
48007
|
-
const [result, apiCall] = await erc4626VaultsWithdraw(client,
|
|
48201
|
+
args: args24,
|
|
48202
|
+
tool: async (client, args25, ctx) => {
|
|
48203
|
+
const [result, apiCall] = await erc4626VaultsWithdraw(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48008
48204
|
if (!result.ok) {
|
|
48009
48205
|
return {
|
|
48010
48206
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48019,9 +48215,9 @@ deposited plus any accrued yield.
|
|
|
48019
48215
|
|
|
48020
48216
|
// src/funcs/morphoBorrow.ts
|
|
48021
48217
|
function morphoBorrow(client, request, options) {
|
|
48022
|
-
return new APIPromise($
|
|
48218
|
+
return new APIPromise($do25(client, request, options));
|
|
48023
48219
|
}
|
|
48024
|
-
async function $
|
|
48220
|
+
async function $do25(client, request, options) {
|
|
48025
48221
|
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48026
48222
|
if (!parsed.ok) {
|
|
48027
48223
|
return [parsed, { status: "invalid" }];
|
|
@@ -48092,12 +48288,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
48092
48288
|
});
|
|
48093
48289
|
|
|
48094
48290
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
48095
|
-
var
|
|
48291
|
+
var args25, tool$morphoBorrow;
|
|
48096
48292
|
var init_morphoBorrow2 = __esm(() => {
|
|
48097
48293
|
init_morphoBorrow();
|
|
48098
48294
|
init_components();
|
|
48099
48295
|
init_tools();
|
|
48100
|
-
|
|
48296
|
+
args25 = {
|
|
48101
48297
|
request: MorphoBorrowRequest$inboundSchema
|
|
48102
48298
|
};
|
|
48103
48299
|
tool$morphoBorrow = {
|
|
@@ -48121,9 +48317,9 @@ as long as the blockchain it is deployed on is live.
|
|
|
48121
48317
|
- \`Morpho\`
|
|
48122
48318
|
</Info>
|
|
48123
48319
|
`,
|
|
48124
|
-
args:
|
|
48125
|
-
tool: async (client,
|
|
48126
|
-
const [result, apiCall] = await morphoBorrow(client,
|
|
48320
|
+
args: args25,
|
|
48321
|
+
tool: async (client, args26, ctx) => {
|
|
48322
|
+
const [result, apiCall] = await morphoBorrow(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48127
48323
|
if (!result.ok) {
|
|
48128
48324
|
return {
|
|
48129
48325
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48138,9 +48334,9 @@ as long as the blockchain it is deployed on is live.
|
|
|
48138
48334
|
|
|
48139
48335
|
// src/funcs/morphoDeposit.ts
|
|
48140
48336
|
function morphoDeposit(client, request, options) {
|
|
48141
|
-
return new APIPromise($
|
|
48337
|
+
return new APIPromise($do26(client, request, options));
|
|
48142
48338
|
}
|
|
48143
|
-
async function $
|
|
48339
|
+
async function $do26(client, request, options) {
|
|
48144
48340
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48145
48341
|
if (!parsed.ok) {
|
|
48146
48342
|
return [parsed, { status: "invalid" }];
|
|
@@ -48211,12 +48407,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
48211
48407
|
});
|
|
48212
48408
|
|
|
48213
48409
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
48214
|
-
var
|
|
48410
|
+
var args26, tool$morphoDeposit;
|
|
48215
48411
|
var init_morphoDeposit2 = __esm(() => {
|
|
48216
48412
|
init_morphoDeposit();
|
|
48217
48413
|
init_components();
|
|
48218
48414
|
init_tools();
|
|
48219
|
-
|
|
48415
|
+
args26 = {
|
|
48220
48416
|
request: MorphoDepositRequest$inboundSchema
|
|
48221
48417
|
};
|
|
48222
48418
|
tool$morphoDeposit = {
|
|
@@ -48242,9 +48438,9 @@ state at any time, and withdraw their liquidity at their discretion.
|
|
|
48242
48438
|
- \`USDC\`
|
|
48243
48439
|
</Info>
|
|
48244
48440
|
`,
|
|
48245
|
-
args:
|
|
48246
|
-
tool: async (client,
|
|
48247
|
-
const [result, apiCall] = await morphoDeposit(client,
|
|
48441
|
+
args: args26,
|
|
48442
|
+
tool: async (client, args27, ctx) => {
|
|
48443
|
+
const [result, apiCall] = await morphoDeposit(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48248
48444
|
if (!result.ok) {
|
|
48249
48445
|
return {
|
|
48250
48446
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48259,9 +48455,9 @@ state at any time, and withdraw their liquidity at their discretion.
|
|
|
48259
48455
|
|
|
48260
48456
|
// src/funcs/morphoMarket.ts
|
|
48261
48457
|
function morphoMarket(client, request, options) {
|
|
48262
|
-
return new APIPromise($
|
|
48458
|
+
return new APIPromise($do27(client, request, options));
|
|
48263
48459
|
}
|
|
48264
|
-
async function $
|
|
48460
|
+
async function $do27(client, request, options) {
|
|
48265
48461
|
const parsed = safeParse(request, (value) => MorphoMarketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48266
48462
|
if (!parsed.ok) {
|
|
48267
48463
|
return [parsed, { status: "invalid" }];
|
|
@@ -48337,12 +48533,12 @@ var init_morphoMarket = __esm(() => {
|
|
|
48337
48533
|
});
|
|
48338
48534
|
|
|
48339
48535
|
// src/mcp-server/tools/morphoMarket.ts
|
|
48340
|
-
var
|
|
48536
|
+
var args27, tool$morphoMarket;
|
|
48341
48537
|
var init_morphoMarket2 = __esm(() => {
|
|
48342
48538
|
init_morphoMarket();
|
|
48343
48539
|
init_operations();
|
|
48344
48540
|
init_tools();
|
|
48345
|
-
|
|
48541
|
+
args27 = {
|
|
48346
48542
|
request: MorphoMarketRequest$inboundSchema
|
|
48347
48543
|
};
|
|
48348
48544
|
tool$morphoMarket = {
|
|
@@ -48359,9 +48555,9 @@ Including:
|
|
|
48359
48555
|
- Utilization ratio
|
|
48360
48556
|
- Pertinent metadata
|
|
48361
48557
|
- Whitelist status`,
|
|
48362
|
-
args:
|
|
48363
|
-
tool: async (client,
|
|
48364
|
-
const [result, apiCall] = await morphoMarket(client,
|
|
48558
|
+
args: args27,
|
|
48559
|
+
tool: async (client, args28, ctx) => {
|
|
48560
|
+
const [result, apiCall] = await morphoMarket(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48365
48561
|
if (!result.ok) {
|
|
48366
48562
|
return {
|
|
48367
48563
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48376,9 +48572,9 @@ Including:
|
|
|
48376
48572
|
|
|
48377
48573
|
// src/funcs/morphoMarketPosition.ts
|
|
48378
48574
|
function morphoMarketPosition(client, request, options) {
|
|
48379
|
-
return new APIPromise($
|
|
48575
|
+
return new APIPromise($do28(client, request, options));
|
|
48380
48576
|
}
|
|
48381
|
-
async function $
|
|
48577
|
+
async function $do28(client, request, options) {
|
|
48382
48578
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48383
48579
|
if (!parsed.ok) {
|
|
48384
48580
|
return [parsed, { status: "invalid" }];
|
|
@@ -48455,12 +48651,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
48455
48651
|
});
|
|
48456
48652
|
|
|
48457
48653
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
48458
|
-
var
|
|
48654
|
+
var args28, tool$morphoMarketPosition;
|
|
48459
48655
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
48460
48656
|
init_morphoMarketPosition();
|
|
48461
48657
|
init_operations();
|
|
48462
48658
|
init_tools();
|
|
48463
|
-
|
|
48659
|
+
args28 = {
|
|
48464
48660
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
48465
48661
|
};
|
|
48466
48662
|
tool$morphoMarketPosition = {
|
|
@@ -48469,9 +48665,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
48469
48665
|
|
|
48470
48666
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
48471
48667
|
market.`,
|
|
48472
|
-
args:
|
|
48473
|
-
tool: async (client,
|
|
48474
|
-
const [result, apiCall] = await morphoMarketPosition(client,
|
|
48668
|
+
args: args28,
|
|
48669
|
+
tool: async (client, args29, ctx) => {
|
|
48670
|
+
const [result, apiCall] = await morphoMarketPosition(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48475
48671
|
if (!result.ok) {
|
|
48476
48672
|
return {
|
|
48477
48673
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48486,9 +48682,9 @@ market.`,
|
|
|
48486
48682
|
|
|
48487
48683
|
// src/funcs/morphoMarkets.ts
|
|
48488
48684
|
function morphoMarkets(client, request, options) {
|
|
48489
|
-
return new APIPromise($
|
|
48685
|
+
return new APIPromise($do29(client, request, options));
|
|
48490
48686
|
}
|
|
48491
|
-
async function $
|
|
48687
|
+
async function $do29(client, request, options) {
|
|
48492
48688
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48493
48689
|
if (!parsed.ok) {
|
|
48494
48690
|
return [parsed, { status: "invalid" }];
|
|
@@ -48565,12 +48761,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
48565
48761
|
});
|
|
48566
48762
|
|
|
48567
48763
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
48568
|
-
var
|
|
48764
|
+
var args29, tool$morphoMarkets;
|
|
48569
48765
|
var init_morphoMarkets2 = __esm(() => {
|
|
48570
48766
|
init_morphoMarkets();
|
|
48571
48767
|
init_operations();
|
|
48572
48768
|
init_tools();
|
|
48573
|
-
|
|
48769
|
+
args29 = {
|
|
48574
48770
|
request: MorphoMarketsRequest$inboundSchema
|
|
48575
48771
|
};
|
|
48576
48772
|
tool$morphoMarkets = {
|
|
@@ -48581,9 +48777,9 @@ Query a list of markets you can borrow from.
|
|
|
48581
48777
|
|
|
48582
48778
|
Each market has one unique token that can be borrowed against one unique token that
|
|
48583
48779
|
can be used as collateral.`,
|
|
48584
|
-
args:
|
|
48585
|
-
tool: async (client,
|
|
48586
|
-
const [result, apiCall] = await morphoMarkets(client,
|
|
48780
|
+
args: args29,
|
|
48781
|
+
tool: async (client, args30, ctx) => {
|
|
48782
|
+
const [result, apiCall] = await morphoMarkets(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48587
48783
|
if (!result.ok) {
|
|
48588
48784
|
return {
|
|
48589
48785
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48598,9 +48794,9 @@ can be used as collateral.`,
|
|
|
48598
48794
|
|
|
48599
48795
|
// src/funcs/morphoRepay.ts
|
|
48600
48796
|
function morphoRepay(client, request, options) {
|
|
48601
|
-
return new APIPromise($
|
|
48797
|
+
return new APIPromise($do30(client, request, options));
|
|
48602
48798
|
}
|
|
48603
|
-
async function $
|
|
48799
|
+
async function $do30(client, request, options) {
|
|
48604
48800
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48605
48801
|
if (!parsed.ok) {
|
|
48606
48802
|
return [parsed, { status: "invalid" }];
|
|
@@ -48671,12 +48867,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
48671
48867
|
});
|
|
48672
48868
|
|
|
48673
48869
|
// src/mcp-server/tools/morphoRepay.ts
|
|
48674
|
-
var
|
|
48870
|
+
var args30, tool$morphoRepay;
|
|
48675
48871
|
var init_morphoRepay2 = __esm(() => {
|
|
48676
48872
|
init_morphoRepay();
|
|
48677
48873
|
init_components();
|
|
48678
48874
|
init_tools();
|
|
48679
|
-
|
|
48875
|
+
args30 = {
|
|
48680
48876
|
request: MorphoRepayRequest$inboundSchema
|
|
48681
48877
|
};
|
|
48682
48878
|
tool$morphoRepay = {
|
|
@@ -48697,9 +48893,9 @@ as long as the blockchain it is deployed on is live.
|
|
|
48697
48893
|
- \`Morpho\`
|
|
48698
48894
|
</Info>
|
|
48699
48895
|
`,
|
|
48700
|
-
args:
|
|
48701
|
-
tool: async (client,
|
|
48702
|
-
const [result, apiCall] = await morphoRepay(client,
|
|
48896
|
+
args: args30,
|
|
48897
|
+
tool: async (client, args31, ctx) => {
|
|
48898
|
+
const [result, apiCall] = await morphoRepay(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48703
48899
|
if (!result.ok) {
|
|
48704
48900
|
return {
|
|
48705
48901
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48714,9 +48910,9 @@ as long as the blockchain it is deployed on is live.
|
|
|
48714
48910
|
|
|
48715
48911
|
// src/funcs/morphoSupplyCollateral.ts
|
|
48716
48912
|
function morphoSupplyCollateral(client, request, options) {
|
|
48717
|
-
return new APIPromise($
|
|
48913
|
+
return new APIPromise($do31(client, request, options));
|
|
48718
48914
|
}
|
|
48719
|
-
async function $
|
|
48915
|
+
async function $do31(client, request, options) {
|
|
48720
48916
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48721
48917
|
if (!parsed.ok) {
|
|
48722
48918
|
return [parsed, { status: "invalid" }];
|
|
@@ -48787,12 +48983,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
48787
48983
|
});
|
|
48788
48984
|
|
|
48789
48985
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
48790
|
-
var
|
|
48986
|
+
var args31, tool$morphoSupplyCollateral;
|
|
48791
48987
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
48792
48988
|
init_morphoSupplyCollateral();
|
|
48793
48989
|
init_components();
|
|
48794
48990
|
init_tools();
|
|
48795
|
-
|
|
48991
|
+
args31 = {
|
|
48796
48992
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
48797
48993
|
};
|
|
48798
48994
|
tool$morphoSupplyCollateral = {
|
|
@@ -48813,9 +49009,9 @@ as long as the blockchain it is deployed on is live.
|
|
|
48813
49009
|
- \`Morpho\`
|
|
48814
49010
|
</Info>
|
|
48815
49011
|
`,
|
|
48816
|
-
args:
|
|
48817
|
-
tool: async (client,
|
|
48818
|
-
const [result, apiCall] = await morphoSupplyCollateral(client,
|
|
49012
|
+
args: args31,
|
|
49013
|
+
tool: async (client, args32, ctx) => {
|
|
49014
|
+
const [result, apiCall] = await morphoSupplyCollateral(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48819
49015
|
if (!result.ok) {
|
|
48820
49016
|
return {
|
|
48821
49017
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48830,9 +49026,9 @@ as long as the blockchain it is deployed on is live.
|
|
|
48830
49026
|
|
|
48831
49027
|
// src/funcs/morphoUserPosition.ts
|
|
48832
49028
|
function morphoUserPosition(client, request, options) {
|
|
48833
|
-
return new APIPromise($
|
|
49029
|
+
return new APIPromise($do32(client, request, options));
|
|
48834
49030
|
}
|
|
48835
|
-
async function $
|
|
49031
|
+
async function $do32(client, request, options) {
|
|
48836
49032
|
const parsed = safeParse(request, (value) => MorphoUserPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48837
49033
|
if (!parsed.ok) {
|
|
48838
49034
|
return [parsed, { status: "invalid" }];
|
|
@@ -48908,12 +49104,12 @@ var init_morphoUserPosition = __esm(() => {
|
|
|
48908
49104
|
});
|
|
48909
49105
|
|
|
48910
49106
|
// src/mcp-server/tools/morphoUserPosition.ts
|
|
48911
|
-
var
|
|
49107
|
+
var args32, tool$morphoUserPosition;
|
|
48912
49108
|
var init_morphoUserPosition2 = __esm(() => {
|
|
48913
49109
|
init_morphoUserPosition();
|
|
48914
49110
|
init_operations();
|
|
48915
49111
|
init_tools();
|
|
48916
|
-
|
|
49112
|
+
args32 = {
|
|
48917
49113
|
request: MorphoUserPositionRequest$inboundSchema
|
|
48918
49114
|
};
|
|
48919
49115
|
tool$morphoUserPosition = {
|
|
@@ -48924,9 +49120,9 @@ Check user's overall position across the entire Morpho ecosystem.
|
|
|
48924
49120
|
|
|
48925
49121
|
Inlcuding all vault and market position metrics and relavant metadata of said vaults
|
|
48926
49122
|
and markets.`,
|
|
48927
|
-
args:
|
|
48928
|
-
tool: async (client,
|
|
48929
|
-
const [result, apiCall] = await morphoUserPosition(client,
|
|
49123
|
+
args: args32,
|
|
49124
|
+
tool: async (client, args33, ctx) => {
|
|
49125
|
+
const [result, apiCall] = await morphoUserPosition(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48930
49126
|
if (!result.ok) {
|
|
48931
49127
|
return {
|
|
48932
49128
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48941,9 +49137,9 @@ and markets.`,
|
|
|
48941
49137
|
|
|
48942
49138
|
// src/funcs/morphoVault.ts
|
|
48943
49139
|
function morphoVault(client, request, options) {
|
|
48944
|
-
return new APIPromise($
|
|
49140
|
+
return new APIPromise($do33(client, request, options));
|
|
48945
49141
|
}
|
|
48946
|
-
async function $
|
|
49142
|
+
async function $do33(client, request, options) {
|
|
48947
49143
|
const parsed = safeParse(request, (value) => MorphoVaultRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48948
49144
|
if (!parsed.ok) {
|
|
48949
49145
|
return [parsed, { status: "invalid" }];
|
|
@@ -49021,12 +49217,12 @@ var init_morphoVault = __esm(() => {
|
|
|
49021
49217
|
});
|
|
49022
49218
|
|
|
49023
49219
|
// src/mcp-server/tools/morphoVault.ts
|
|
49024
|
-
var
|
|
49220
|
+
var args33, tool$morphoVault;
|
|
49025
49221
|
var init_morphoVault2 = __esm(() => {
|
|
49026
49222
|
init_morphoVault();
|
|
49027
49223
|
init_operations();
|
|
49028
49224
|
init_tools();
|
|
49029
|
-
|
|
49225
|
+
args33 = {
|
|
49030
49226
|
request: MorphoVaultRequest$inboundSchema
|
|
49031
49227
|
};
|
|
49032
49228
|
tool$morphoVault = {
|
|
@@ -49036,9 +49232,9 @@ var init_morphoVault2 = __esm(() => {
|
|
|
49036
49232
|
Get Vault data & User Position.
|
|
49037
49233
|
|
|
49038
49234
|
The user position is only included if 'user_address' parameter is included.`,
|
|
49039
|
-
args:
|
|
49040
|
-
tool: async (client,
|
|
49041
|
-
const [result, apiCall] = await morphoVault(client,
|
|
49235
|
+
args: args33,
|
|
49236
|
+
tool: async (client, args34, ctx) => {
|
|
49237
|
+
const [result, apiCall] = await morphoVault(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49042
49238
|
if (!result.ok) {
|
|
49043
49239
|
return {
|
|
49044
49240
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49053,9 +49249,9 @@ The user position is only included if 'user_address' parameter is included.`,
|
|
|
49053
49249
|
|
|
49054
49250
|
// src/funcs/morphoVaults.ts
|
|
49055
49251
|
function morphoVaults(client, request, options) {
|
|
49056
|
-
return new APIPromise($
|
|
49252
|
+
return new APIPromise($do34(client, request, options));
|
|
49057
49253
|
}
|
|
49058
|
-
async function $
|
|
49254
|
+
async function $do34(client, request, options) {
|
|
49059
49255
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49060
49256
|
if (!parsed.ok) {
|
|
49061
49257
|
return [parsed, { status: "invalid" }];
|
|
@@ -49131,12 +49327,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
49131
49327
|
});
|
|
49132
49328
|
|
|
49133
49329
|
// src/mcp-server/tools/morphoVaults.ts
|
|
49134
|
-
var
|
|
49330
|
+
var args34, tool$morphoVaults;
|
|
49135
49331
|
var init_morphoVaults2 = __esm(() => {
|
|
49136
49332
|
init_morphoVaults();
|
|
49137
49333
|
init_operations();
|
|
49138
49334
|
init_tools();
|
|
49139
|
-
|
|
49335
|
+
args34 = {
|
|
49140
49336
|
request: MorphoVaultsRequest$inboundSchema
|
|
49141
49337
|
};
|
|
49142
49338
|
tool$morphoVaults = {
|
|
@@ -49148,9 +49344,9 @@ Query a list of vaults you can deposit into.
|
|
|
49148
49344
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
49149
49345
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
49150
49346
|
exchange value increasing over time.`,
|
|
49151
|
-
args:
|
|
49152
|
-
tool: async (client,
|
|
49153
|
-
const [result, apiCall] = await morphoVaults(client,
|
|
49347
|
+
args: args34,
|
|
49348
|
+
tool: async (client, args35, ctx) => {
|
|
49349
|
+
const [result, apiCall] = await morphoVaults(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49154
49350
|
if (!result.ok) {
|
|
49155
49351
|
return {
|
|
49156
49352
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49165,9 +49361,9 @@ exchange value increasing over time.`,
|
|
|
49165
49361
|
|
|
49166
49362
|
// src/funcs/morphoWithdraw.ts
|
|
49167
49363
|
function morphoWithdraw(client, request, options) {
|
|
49168
|
-
return new APIPromise($
|
|
49364
|
+
return new APIPromise($do35(client, request, options));
|
|
49169
49365
|
}
|
|
49170
|
-
async function $
|
|
49366
|
+
async function $do35(client, request, options) {
|
|
49171
49367
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49172
49368
|
if (!parsed.ok) {
|
|
49173
49369
|
return [parsed, { status: "invalid" }];
|
|
@@ -49238,12 +49434,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
49238
49434
|
});
|
|
49239
49435
|
|
|
49240
49436
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
49241
|
-
var
|
|
49437
|
+
var args35, tool$morphoWithdraw;
|
|
49242
49438
|
var init_morphoWithdraw2 = __esm(() => {
|
|
49243
49439
|
init_morphoWithdraw();
|
|
49244
49440
|
init_components();
|
|
49245
49441
|
init_tools();
|
|
49246
|
-
|
|
49442
|
+
args35 = {
|
|
49247
49443
|
request: MorphoWithdrawRequest$inboundSchema
|
|
49248
49444
|
};
|
|
49249
49445
|
tool$morphoWithdraw = {
|
|
@@ -49269,9 +49465,9 @@ state at any time, and withdraw their liquidity at their discretion.
|
|
|
49269
49465
|
- \`<token address>\`
|
|
49270
49466
|
</Info>
|
|
49271
49467
|
`,
|
|
49272
|
-
args:
|
|
49273
|
-
tool: async (client,
|
|
49274
|
-
const [result, apiCall] = await morphoWithdraw(client,
|
|
49468
|
+
args: args35,
|
|
49469
|
+
tool: async (client, args36, ctx) => {
|
|
49470
|
+
const [result, apiCall] = await morphoWithdraw(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49275
49471
|
if (!result.ok) {
|
|
49276
49472
|
return {
|
|
49277
49473
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49286,9 +49482,9 @@ state at any time, and withdraw their liquidity at their discretion.
|
|
|
49286
49482
|
|
|
49287
49483
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
49288
49484
|
function morphoWithdrawCollateral(client, request, options) {
|
|
49289
|
-
return new APIPromise($
|
|
49485
|
+
return new APIPromise($do36(client, request, options));
|
|
49290
49486
|
}
|
|
49291
|
-
async function $
|
|
49487
|
+
async function $do36(client, request, options) {
|
|
49292
49488
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49293
49489
|
if (!parsed.ok) {
|
|
49294
49490
|
return [parsed, { status: "invalid" }];
|
|
@@ -49359,12 +49555,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
49359
49555
|
});
|
|
49360
49556
|
|
|
49361
49557
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
49362
|
-
var
|
|
49558
|
+
var args36, tool$morphoWithdrawCollateral;
|
|
49363
49559
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
49364
49560
|
init_morphoWithdrawCollateral();
|
|
49365
49561
|
init_components();
|
|
49366
49562
|
init_tools();
|
|
49367
|
-
|
|
49563
|
+
args36 = {
|
|
49368
49564
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
49369
49565
|
};
|
|
49370
49566
|
tool$morphoWithdrawCollateral = {
|
|
@@ -49385,9 +49581,9 @@ as long as the blockchain it is deployed on is live.
|
|
|
49385
49581
|
- \`Morpho\`
|
|
49386
49582
|
</Info>
|
|
49387
49583
|
`,
|
|
49388
|
-
args:
|
|
49389
|
-
tool: async (client,
|
|
49390
|
-
const [result, apiCall] = await morphoWithdrawCollateral(client,
|
|
49584
|
+
args: args36,
|
|
49585
|
+
tool: async (client, args37, ctx) => {
|
|
49586
|
+
const [result, apiCall] = await morphoWithdrawCollateral(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49391
49587
|
if (!result.ok) {
|
|
49392
49588
|
return {
|
|
49393
49589
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49402,9 +49598,9 @@ as long as the blockchain it is deployed on is live.
|
|
|
49402
49598
|
|
|
49403
49599
|
// src/funcs/pendleAddLiquidity.ts
|
|
49404
49600
|
function pendleAddLiquidity(client, request, options) {
|
|
49405
|
-
return new APIPromise($
|
|
49601
|
+
return new APIPromise($do37(client, request, options));
|
|
49406
49602
|
}
|
|
49407
|
-
async function $
|
|
49603
|
+
async function $do37(client, request, options) {
|
|
49408
49604
|
const parsed = safeParse(request, (value) => PendleAddLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49409
49605
|
if (!parsed.ok) {
|
|
49410
49606
|
return [parsed, { status: "invalid" }];
|
|
@@ -49475,12 +49671,12 @@ var init_pendleAddLiquidity = __esm(() => {
|
|
|
49475
49671
|
});
|
|
49476
49672
|
|
|
49477
49673
|
// src/mcp-server/tools/pendleAddLiquidity.ts
|
|
49478
|
-
var
|
|
49674
|
+
var args37, tool$pendleAddLiquidity;
|
|
49479
49675
|
var init_pendleAddLiquidity2 = __esm(() => {
|
|
49480
49676
|
init_pendleAddLiquidity();
|
|
49481
49677
|
init_components();
|
|
49482
49678
|
init_tools();
|
|
49483
|
-
|
|
49679
|
+
args37 = {
|
|
49484
49680
|
request: PendleAddLiquidityRequest$inboundSchema
|
|
49485
49681
|
};
|
|
49486
49682
|
tool$pendleAddLiquidity = {
|
|
@@ -49499,9 +49695,9 @@ the liquidity received is the market's Liquidity Provider Token (LP).
|
|
|
49499
49695
|
- \`PendleRouter\`
|
|
49500
49696
|
</Info>
|
|
49501
49697
|
`,
|
|
49502
|
-
args:
|
|
49503
|
-
tool: async (client,
|
|
49504
|
-
const [result, apiCall] = await pendleAddLiquidity(client,
|
|
49698
|
+
args: args37,
|
|
49699
|
+
tool: async (client, args38, ctx) => {
|
|
49700
|
+
const [result, apiCall] = await pendleAddLiquidity(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49505
49701
|
if (!result.ok) {
|
|
49506
49702
|
return {
|
|
49507
49703
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49516,9 +49712,9 @@ the liquidity received is the market's Liquidity Provider Token (LP).
|
|
|
49516
49712
|
|
|
49517
49713
|
// src/funcs/pendleBuyPt.ts
|
|
49518
49714
|
function pendleBuyPt(client, request, options) {
|
|
49519
|
-
return new APIPromise($
|
|
49715
|
+
return new APIPromise($do38(client, request, options));
|
|
49520
49716
|
}
|
|
49521
|
-
async function $
|
|
49717
|
+
async function $do38(client, request, options) {
|
|
49522
49718
|
const parsed = safeParse(request, (value) => PendleBuyPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49523
49719
|
if (!parsed.ok) {
|
|
49524
49720
|
return [parsed, { status: "invalid" }];
|
|
@@ -49589,12 +49785,12 @@ var init_pendleBuyPt = __esm(() => {
|
|
|
49589
49785
|
});
|
|
49590
49786
|
|
|
49591
49787
|
// src/mcp-server/tools/pendleBuyPt.ts
|
|
49592
|
-
var
|
|
49788
|
+
var args38, tool$pendleBuyPt;
|
|
49593
49789
|
var init_pendleBuyPt2 = __esm(() => {
|
|
49594
49790
|
init_pendleBuyPt();
|
|
49595
49791
|
init_components();
|
|
49596
49792
|
init_tools();
|
|
49597
|
-
|
|
49793
|
+
args38 = {
|
|
49598
49794
|
request: PendleBuyPtRequest$inboundSchema
|
|
49599
49795
|
};
|
|
49600
49796
|
tool$pendleBuyPt = {
|
|
@@ -49610,9 +49806,9 @@ Buy Principal Token (PT) with market's Underlying Token.
|
|
|
49610
49806
|
- \`PendleRouter\`
|
|
49611
49807
|
</Info>
|
|
49612
49808
|
`,
|
|
49613
|
-
args:
|
|
49614
|
-
tool: async (client,
|
|
49615
|
-
const [result, apiCall] = await pendleBuyPt(client,
|
|
49809
|
+
args: args38,
|
|
49810
|
+
tool: async (client, args39, ctx) => {
|
|
49811
|
+
const [result, apiCall] = await pendleBuyPt(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49616
49812
|
if (!result.ok) {
|
|
49617
49813
|
return {
|
|
49618
49814
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49627,9 +49823,9 @@ Buy Principal Token (PT) with market's Underlying Token.
|
|
|
49627
49823
|
|
|
49628
49824
|
// src/funcs/pendleBuyYt.ts
|
|
49629
49825
|
function pendleBuyYt(client, request, options) {
|
|
49630
|
-
return new APIPromise($
|
|
49826
|
+
return new APIPromise($do39(client, request, options));
|
|
49631
49827
|
}
|
|
49632
|
-
async function $
|
|
49828
|
+
async function $do39(client, request, options) {
|
|
49633
49829
|
const parsed = safeParse(request, (value) => PendleBuyYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49634
49830
|
if (!parsed.ok) {
|
|
49635
49831
|
return [parsed, { status: "invalid" }];
|
|
@@ -49700,12 +49896,12 @@ var init_pendleBuyYt = __esm(() => {
|
|
|
49700
49896
|
});
|
|
49701
49897
|
|
|
49702
49898
|
// src/mcp-server/tools/pendleBuyYt.ts
|
|
49703
|
-
var
|
|
49899
|
+
var args39, tool$pendleBuyYt;
|
|
49704
49900
|
var init_pendleBuyYt2 = __esm(() => {
|
|
49705
49901
|
init_pendleBuyYt();
|
|
49706
49902
|
init_components();
|
|
49707
49903
|
init_tools();
|
|
49708
|
-
|
|
49904
|
+
args39 = {
|
|
49709
49905
|
request: PendleBuyYtRequest$inboundSchema
|
|
49710
49906
|
};
|
|
49711
49907
|
tool$pendleBuyYt = {
|
|
@@ -49721,9 +49917,9 @@ Buy Yield Token (YT) with market's Underlying Token.
|
|
|
49721
49917
|
- \`PendleRouter\`
|
|
49722
49918
|
</Info>
|
|
49723
49919
|
`,
|
|
49724
|
-
args:
|
|
49725
|
-
tool: async (client,
|
|
49726
|
-
const [result, apiCall] = await pendleBuyYt(client,
|
|
49920
|
+
args: args39,
|
|
49921
|
+
tool: async (client, args40, ctx) => {
|
|
49922
|
+
const [result, apiCall] = await pendleBuyYt(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49727
49923
|
if (!result.ok) {
|
|
49728
49924
|
return {
|
|
49729
49925
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49738,9 +49934,9 @@ Buy Yield Token (YT) with market's Underlying Token.
|
|
|
49738
49934
|
|
|
49739
49935
|
// src/funcs/pendleMarket.ts
|
|
49740
49936
|
function pendleMarket(client, request, options) {
|
|
49741
|
-
return new APIPromise($
|
|
49937
|
+
return new APIPromise($do40(client, request, options));
|
|
49742
49938
|
}
|
|
49743
|
-
async function $
|
|
49939
|
+
async function $do40(client, request, options) {
|
|
49744
49940
|
const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49745
49941
|
if (!parsed.ok) {
|
|
49746
49942
|
return [parsed, { status: "invalid" }];
|
|
@@ -49818,12 +50014,12 @@ var init_pendleMarket = __esm(() => {
|
|
|
49818
50014
|
});
|
|
49819
50015
|
|
|
49820
50016
|
// src/mcp-server/tools/pendleMarket.ts
|
|
49821
|
-
var
|
|
50017
|
+
var args40, tool$pendleMarket;
|
|
49822
50018
|
var init_pendleMarket2 = __esm(() => {
|
|
49823
50019
|
init_pendleMarket();
|
|
49824
50020
|
init_operations();
|
|
49825
50021
|
init_tools();
|
|
49826
|
-
|
|
50022
|
+
args40 = {
|
|
49827
50023
|
request: PendleMarketRequest$inboundSchema
|
|
49828
50024
|
};
|
|
49829
50025
|
tool$pendleMarket = {
|
|
@@ -49833,9 +50029,9 @@ var init_pendleMarket2 = __esm(() => {
|
|
|
49833
50029
|
Get the market's implied APY, maturity date and the associated token data.
|
|
49834
50030
|
|
|
49835
50031
|
The user position is only included if 'user_address' parameter is included.`,
|
|
49836
|
-
args:
|
|
49837
|
-
tool: async (client,
|
|
49838
|
-
const [result, apiCall] = await pendleMarket(client,
|
|
50032
|
+
args: args40,
|
|
50033
|
+
tool: async (client, args41, ctx) => {
|
|
50034
|
+
const [result, apiCall] = await pendleMarket(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49839
50035
|
if (!result.ok) {
|
|
49840
50036
|
return {
|
|
49841
50037
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49850,9 +50046,9 @@ The user position is only included if 'user_address' parameter is included.`,
|
|
|
49850
50046
|
|
|
49851
50047
|
// src/funcs/pendleMarkets.ts
|
|
49852
50048
|
function pendleMarkets(client, request, options) {
|
|
49853
|
-
return new APIPromise($
|
|
50049
|
+
return new APIPromise($do41(client, request, options));
|
|
49854
50050
|
}
|
|
49855
|
-
async function $
|
|
50051
|
+
async function $do41(client, request, options) {
|
|
49856
50052
|
const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49857
50053
|
if (!parsed.ok) {
|
|
49858
50054
|
return [parsed, { status: "invalid" }];
|
|
@@ -49927,12 +50123,12 @@ var init_pendleMarkets = __esm(() => {
|
|
|
49927
50123
|
});
|
|
49928
50124
|
|
|
49929
50125
|
// src/mcp-server/tools/pendleMarkets.ts
|
|
49930
|
-
var
|
|
50126
|
+
var args41, tool$pendleMarkets;
|
|
49931
50127
|
var init_pendleMarkets2 = __esm(() => {
|
|
49932
50128
|
init_pendleMarkets();
|
|
49933
50129
|
init_operations();
|
|
49934
50130
|
init_tools();
|
|
49935
|
-
|
|
50131
|
+
args41 = {
|
|
49936
50132
|
request: PendleMarketsRequest$inboundSchema
|
|
49937
50133
|
};
|
|
49938
50134
|
tool$pendleMarkets = {
|
|
@@ -49940,9 +50136,9 @@ var init_pendleMarkets2 = __esm(() => {
|
|
|
49940
50136
|
description: `List Market Data
|
|
49941
50137
|
|
|
49942
50138
|
Get a list of active markets.`,
|
|
49943
|
-
args:
|
|
49944
|
-
tool: async (client,
|
|
49945
|
-
const [result, apiCall] = await pendleMarkets(client,
|
|
50139
|
+
args: args41,
|
|
50140
|
+
tool: async (client, args42, ctx) => {
|
|
50141
|
+
const [result, apiCall] = await pendleMarkets(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49946
50142
|
if (!result.ok) {
|
|
49947
50143
|
return {
|
|
49948
50144
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49957,9 +50153,9 @@ Get a list of active markets.`,
|
|
|
49957
50153
|
|
|
49958
50154
|
// src/funcs/pendlePositions.ts
|
|
49959
50155
|
function pendlePositions(client, request, options) {
|
|
49960
|
-
return new APIPromise($
|
|
50156
|
+
return new APIPromise($do42(client, request, options));
|
|
49961
50157
|
}
|
|
49962
|
-
async function $
|
|
50158
|
+
async function $do42(client, request, options) {
|
|
49963
50159
|
const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49964
50160
|
if (!parsed.ok) {
|
|
49965
50161
|
return [parsed, { status: "invalid" }];
|
|
@@ -50035,12 +50231,12 @@ var init_pendlePositions = __esm(() => {
|
|
|
50035
50231
|
});
|
|
50036
50232
|
|
|
50037
50233
|
// src/mcp-server/tools/pendlePositions.ts
|
|
50038
|
-
var
|
|
50234
|
+
var args42, tool$pendlePositions;
|
|
50039
50235
|
var init_pendlePositions2 = __esm(() => {
|
|
50040
50236
|
init_pendlePositions();
|
|
50041
50237
|
init_operations();
|
|
50042
50238
|
init_tools();
|
|
50043
|
-
|
|
50239
|
+
args42 = {
|
|
50044
50240
|
request: PendlePositionsRequest$inboundSchema
|
|
50045
50241
|
};
|
|
50046
50242
|
tool$pendlePositions = {
|
|
@@ -50048,9 +50244,9 @@ var init_pendlePositions2 = __esm(() => {
|
|
|
50048
50244
|
description: `List User's Market Positions
|
|
50049
50245
|
|
|
50050
50246
|
List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
50051
|
-
args:
|
|
50052
|
-
tool: async (client,
|
|
50053
|
-
const [result, apiCall] = await pendlePositions(client,
|
|
50247
|
+
args: args42,
|
|
50248
|
+
tool: async (client, args43, ctx) => {
|
|
50249
|
+
const [result, apiCall] = await pendlePositions(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50054
50250
|
if (!result.ok) {
|
|
50055
50251
|
return {
|
|
50056
50252
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50065,9 +50261,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
|
50065
50261
|
|
|
50066
50262
|
// src/funcs/pendleQuote.ts
|
|
50067
50263
|
function pendleQuote(client, request, options) {
|
|
50068
|
-
return new APIPromise($
|
|
50264
|
+
return new APIPromise($do43(client, request, options));
|
|
50069
50265
|
}
|
|
50070
|
-
async function $
|
|
50266
|
+
async function $do43(client, request, options) {
|
|
50071
50267
|
const parsed = safeParse(request, (value) => PendleQuoteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50072
50268
|
if (!parsed.ok) {
|
|
50073
50269
|
return [parsed, { status: "invalid" }];
|
|
@@ -50147,12 +50343,12 @@ var init_pendleQuote = __esm(() => {
|
|
|
50147
50343
|
});
|
|
50148
50344
|
|
|
50149
50345
|
// src/mcp-server/tools/pendleQuote.ts
|
|
50150
|
-
var
|
|
50346
|
+
var args43, tool$pendleQuote;
|
|
50151
50347
|
var init_pendleQuote2 = __esm(() => {
|
|
50152
50348
|
init_pendleQuote();
|
|
50153
50349
|
init_operations();
|
|
50154
50350
|
init_tools();
|
|
50155
|
-
|
|
50351
|
+
args43 = {
|
|
50156
50352
|
request: PendleQuoteRequest$inboundSchema
|
|
50157
50353
|
};
|
|
50158
50354
|
tool$pendleQuote = {
|
|
@@ -50165,9 +50361,9 @@ Provider Token (LP) on Pendle.
|
|
|
50165
50361
|
For \`BUY\`, \`amount\` is the quantity of the Underlying Token to spend, and the quote returns the amount of \`token_type\` received.
|
|
50166
50362
|
|
|
50167
50363
|
For \`SELL\`, \`amount\` is the quantity of \`token_type\` to sell, and the quote returns the amount of Underlying Token received.`,
|
|
50168
|
-
args:
|
|
50169
|
-
tool: async (client,
|
|
50170
|
-
const [result, apiCall] = await pendleQuote(client,
|
|
50364
|
+
args: args43,
|
|
50365
|
+
tool: async (client, args44, ctx) => {
|
|
50366
|
+
const [result, apiCall] = await pendleQuote(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50171
50367
|
if (!result.ok) {
|
|
50172
50368
|
return {
|
|
50173
50369
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50182,9 +50378,9 @@ For \`SELL\`, \`amount\` is the quantity of \`token_type\` to sell, and the quot
|
|
|
50182
50378
|
|
|
50183
50379
|
// src/funcs/pendleRedeemYield.ts
|
|
50184
50380
|
function pendleRedeemYield(client, request, options) {
|
|
50185
|
-
return new APIPromise($
|
|
50381
|
+
return new APIPromise($do44(client, request, options));
|
|
50186
50382
|
}
|
|
50187
|
-
async function $
|
|
50383
|
+
async function $do44(client, request, options) {
|
|
50188
50384
|
const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50189
50385
|
if (!parsed.ok) {
|
|
50190
50386
|
return [parsed, { status: "invalid" }];
|
|
@@ -50255,12 +50451,12 @@ var init_pendleRedeemYield = __esm(() => {
|
|
|
50255
50451
|
});
|
|
50256
50452
|
|
|
50257
50453
|
// src/mcp-server/tools/pendleRedeemYield.ts
|
|
50258
|
-
var
|
|
50454
|
+
var args44, tool$pendleRedeemYield;
|
|
50259
50455
|
var init_pendleRedeemYield2 = __esm(() => {
|
|
50260
50456
|
init_pendleRedeemYield();
|
|
50261
50457
|
init_components();
|
|
50262
50458
|
init_tools();
|
|
50263
|
-
|
|
50459
|
+
args44 = {
|
|
50264
50460
|
request: PendleRedeemYieldRequest$inboundSchema
|
|
50265
50461
|
};
|
|
50266
50462
|
tool$pendleRedeemYield = {
|
|
@@ -50276,9 +50472,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).
|
|
|
50276
50472
|
- \`PendleRouter\`
|
|
50277
50473
|
</Info>
|
|
50278
50474
|
`,
|
|
50279
|
-
args:
|
|
50280
|
-
tool: async (client,
|
|
50281
|
-
const [result, apiCall] = await pendleRedeemYield(client,
|
|
50475
|
+
args: args44,
|
|
50476
|
+
tool: async (client, args45, ctx) => {
|
|
50477
|
+
const [result, apiCall] = await pendleRedeemYield(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50282
50478
|
if (!result.ok) {
|
|
50283
50479
|
return {
|
|
50284
50480
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50293,9 +50489,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).
|
|
|
50293
50489
|
|
|
50294
50490
|
// src/funcs/pendleRemoveLiquidity.ts
|
|
50295
50491
|
function pendleRemoveLiquidity(client, request, options) {
|
|
50296
|
-
return new APIPromise($
|
|
50492
|
+
return new APIPromise($do45(client, request, options));
|
|
50297
50493
|
}
|
|
50298
|
-
async function $
|
|
50494
|
+
async function $do45(client, request, options) {
|
|
50299
50495
|
const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50300
50496
|
if (!parsed.ok) {
|
|
50301
50497
|
return [parsed, { status: "invalid" }];
|
|
@@ -50366,12 +50562,12 @@ var init_pendleRemoveLiquidity = __esm(() => {
|
|
|
50366
50562
|
});
|
|
50367
50563
|
|
|
50368
50564
|
// src/mcp-server/tools/pendleRemoveLiquidity.ts
|
|
50369
|
-
var
|
|
50565
|
+
var args45, tool$pendleRemoveLiquidity;
|
|
50370
50566
|
var init_pendleRemoveLiquidity2 = __esm(() => {
|
|
50371
50567
|
init_pendleRemoveLiquidity();
|
|
50372
50568
|
init_components();
|
|
50373
50569
|
init_tools();
|
|
50374
|
-
|
|
50570
|
+
args45 = {
|
|
50375
50571
|
request: PendleRemoveLiquidityRequest$inboundSchema
|
|
50376
50572
|
};
|
|
50377
50573
|
tool$pendleRemoveLiquidity = {
|
|
@@ -50391,9 +50587,9 @@ market contract must be set beforehand
|
|
|
50391
50587
|
- \`PendleRouter\`
|
|
50392
50588
|
</Info>
|
|
50393
50589
|
`,
|
|
50394
|
-
args:
|
|
50395
|
-
tool: async (client,
|
|
50396
|
-
const [result, apiCall] = await pendleRemoveLiquidity(client,
|
|
50590
|
+
args: args45,
|
|
50591
|
+
tool: async (client, args46, ctx) => {
|
|
50592
|
+
const [result, apiCall] = await pendleRemoveLiquidity(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50397
50593
|
if (!result.ok) {
|
|
50398
50594
|
return {
|
|
50399
50595
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50408,9 +50604,9 @@ market contract must be set beforehand
|
|
|
50408
50604
|
|
|
50409
50605
|
// src/funcs/pendleSellPt.ts
|
|
50410
50606
|
function pendleSellPt(client, request, options) {
|
|
50411
|
-
return new APIPromise($
|
|
50607
|
+
return new APIPromise($do46(client, request, options));
|
|
50412
50608
|
}
|
|
50413
|
-
async function $
|
|
50609
|
+
async function $do46(client, request, options) {
|
|
50414
50610
|
const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50415
50611
|
if (!parsed.ok) {
|
|
50416
50612
|
return [parsed, { status: "invalid" }];
|
|
@@ -50481,12 +50677,12 @@ var init_pendleSellPt = __esm(() => {
|
|
|
50481
50677
|
});
|
|
50482
50678
|
|
|
50483
50679
|
// src/mcp-server/tools/pendleSellPt.ts
|
|
50484
|
-
var
|
|
50680
|
+
var args46, tool$pendleSellPt;
|
|
50485
50681
|
var init_pendleSellPt2 = __esm(() => {
|
|
50486
50682
|
init_pendleSellPt();
|
|
50487
50683
|
init_components();
|
|
50488
50684
|
init_tools();
|
|
50489
|
-
|
|
50685
|
+
args46 = {
|
|
50490
50686
|
request: PendleSellPtRequest$inboundSchema
|
|
50491
50687
|
};
|
|
50492
50688
|
tool$pendleSellPt = {
|
|
@@ -50502,9 +50698,9 @@ Sell Principal Token (PT) for the market's Underlying Token.
|
|
|
50502
50698
|
- \`PendleRouter\`
|
|
50503
50699
|
</Info>
|
|
50504
50700
|
`,
|
|
50505
|
-
args:
|
|
50506
|
-
tool: async (client,
|
|
50507
|
-
const [result, apiCall] = await pendleSellPt(client,
|
|
50701
|
+
args: args46,
|
|
50702
|
+
tool: async (client, args47, ctx) => {
|
|
50703
|
+
const [result, apiCall] = await pendleSellPt(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50508
50704
|
if (!result.ok) {
|
|
50509
50705
|
return {
|
|
50510
50706
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50519,9 +50715,9 @@ Sell Principal Token (PT) for the market's Underlying Token.
|
|
|
50519
50715
|
|
|
50520
50716
|
// src/funcs/pendleSellYt.ts
|
|
50521
50717
|
function pendleSellYt(client, request, options) {
|
|
50522
|
-
return new APIPromise($
|
|
50718
|
+
return new APIPromise($do47(client, request, options));
|
|
50523
50719
|
}
|
|
50524
|
-
async function $
|
|
50720
|
+
async function $do47(client, request, options) {
|
|
50525
50721
|
const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50526
50722
|
if (!parsed.ok) {
|
|
50527
50723
|
return [parsed, { status: "invalid" }];
|
|
@@ -50592,12 +50788,12 @@ var init_pendleSellYt = __esm(() => {
|
|
|
50592
50788
|
});
|
|
50593
50789
|
|
|
50594
50790
|
// src/mcp-server/tools/pendleSellYt.ts
|
|
50595
|
-
var
|
|
50791
|
+
var args47, tool$pendleSellYt;
|
|
50596
50792
|
var init_pendleSellYt2 = __esm(() => {
|
|
50597
50793
|
init_pendleSellYt();
|
|
50598
50794
|
init_components();
|
|
50599
50795
|
init_tools();
|
|
50600
|
-
|
|
50796
|
+
args47 = {
|
|
50601
50797
|
request: PendleSellYtRequest$inboundSchema
|
|
50602
50798
|
};
|
|
50603
50799
|
tool$pendleSellYt = {
|
|
@@ -50613,9 +50809,9 @@ Sell Yield Token (YT) for the market's Underlying Token.
|
|
|
50613
50809
|
- \`PendleRouter\`
|
|
50614
50810
|
</Info>
|
|
50615
50811
|
`,
|
|
50616
|
-
args:
|
|
50617
|
-
tool: async (client,
|
|
50618
|
-
const [result, apiCall] = await pendleSellYt(client,
|
|
50812
|
+
args: args47,
|
|
50813
|
+
tool: async (client, args48, ctx) => {
|
|
50814
|
+
const [result, apiCall] = await pendleSellYt(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50619
50815
|
if (!result.ok) {
|
|
50620
50816
|
return {
|
|
50621
50817
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50630,9 +50826,9 @@ Sell Yield Token (YT) for the market's Underlying Token.
|
|
|
50630
50826
|
|
|
50631
50827
|
// src/funcs/skyBuy.ts
|
|
50632
50828
|
function skyBuy(client, request, options) {
|
|
50633
|
-
return new APIPromise($
|
|
50829
|
+
return new APIPromise($do48(client, request, options));
|
|
50634
50830
|
}
|
|
50635
|
-
async function $
|
|
50831
|
+
async function $do48(client, request, options) {
|
|
50636
50832
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50637
50833
|
if (!parsed.ok) {
|
|
50638
50834
|
return [parsed, { status: "invalid" }];
|
|
@@ -50703,12 +50899,12 @@ var init_skyBuy = __esm(() => {
|
|
|
50703
50899
|
});
|
|
50704
50900
|
|
|
50705
50901
|
// src/mcp-server/tools/skyBuy.ts
|
|
50706
|
-
var
|
|
50902
|
+
var args48, tool$skyBuy;
|
|
50707
50903
|
var init_skyBuy2 = __esm(() => {
|
|
50708
50904
|
init_skyBuy();
|
|
50709
50905
|
init_components();
|
|
50710
50906
|
init_tools();
|
|
50711
|
-
|
|
50907
|
+
args48 = {
|
|
50712
50908
|
request: SkyBuyRequest$inboundSchema
|
|
50713
50909
|
};
|
|
50714
50910
|
tool$skyBuy = {
|
|
@@ -50730,9 +50926,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
50730
50926
|
- \`SkyUsdcUsdsConverter\`
|
|
50731
50927
|
</Info>
|
|
50732
50928
|
`,
|
|
50733
|
-
args:
|
|
50734
|
-
tool: async (client,
|
|
50735
|
-
const [result, apiCall] = await skyBuy(client,
|
|
50929
|
+
args: args48,
|
|
50930
|
+
tool: async (client, args49, ctx) => {
|
|
50931
|
+
const [result, apiCall] = await skyBuy(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50736
50932
|
if (!result.ok) {
|
|
50737
50933
|
return {
|
|
50738
50934
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50747,9 +50943,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
50747
50943
|
|
|
50748
50944
|
// src/funcs/skyDeposit.ts
|
|
50749
50945
|
function skyDeposit(client, request, options) {
|
|
50750
|
-
return new APIPromise($
|
|
50946
|
+
return new APIPromise($do49(client, request, options));
|
|
50751
50947
|
}
|
|
50752
|
-
async function $
|
|
50948
|
+
async function $do49(client, request, options) {
|
|
50753
50949
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50754
50950
|
if (!parsed.ok) {
|
|
50755
50951
|
return [parsed, { status: "invalid" }];
|
|
@@ -50820,12 +51016,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
50820
51016
|
});
|
|
50821
51017
|
|
|
50822
51018
|
// src/mcp-server/tools/skyDeposit.ts
|
|
50823
|
-
var
|
|
51019
|
+
var args49, tool$skyDeposit;
|
|
50824
51020
|
var init_skyDeposit2 = __esm(() => {
|
|
50825
51021
|
init_skyDeposit();
|
|
50826
51022
|
init_components();
|
|
50827
51023
|
init_tools();
|
|
50828
|
-
|
|
51024
|
+
args49 = {
|
|
50829
51025
|
request: SkyDepositRequest$inboundSchema
|
|
50830
51026
|
};
|
|
50831
51027
|
tool$skyDeposit = {
|
|
@@ -50845,9 +51041,9 @@ There are no fees.
|
|
|
50845
51041
|
- \`SkyUsdsVault\`
|
|
50846
51042
|
</Info>
|
|
50847
51043
|
`,
|
|
50848
|
-
args:
|
|
50849
|
-
tool: async (client,
|
|
50850
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
51044
|
+
args: args49,
|
|
51045
|
+
tool: async (client, args50, ctx) => {
|
|
51046
|
+
const [result, apiCall] = await skyDeposit(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50851
51047
|
if (!result.ok) {
|
|
50852
51048
|
return {
|
|
50853
51049
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50862,9 +51058,9 @@ There are no fees.
|
|
|
50862
51058
|
|
|
50863
51059
|
// src/funcs/skyPosition.ts
|
|
50864
51060
|
function skyPosition(client, request, options) {
|
|
50865
|
-
return new APIPromise($
|
|
51061
|
+
return new APIPromise($do50(client, request, options));
|
|
50866
51062
|
}
|
|
50867
|
-
async function $
|
|
51063
|
+
async function $do50(client, request, options) {
|
|
50868
51064
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50869
51065
|
if (!parsed.ok) {
|
|
50870
51066
|
return [parsed, { status: "invalid" }];
|
|
@@ -50940,12 +51136,12 @@ var init_skyPosition = __esm(() => {
|
|
|
50940
51136
|
});
|
|
50941
51137
|
|
|
50942
51138
|
// src/mcp-server/tools/skyPosition.ts
|
|
50943
|
-
var
|
|
51139
|
+
var args50, tool$skyPosition;
|
|
50944
51140
|
var init_skyPosition2 = __esm(() => {
|
|
50945
51141
|
init_skyPosition();
|
|
50946
51142
|
init_operations();
|
|
50947
51143
|
init_tools();
|
|
50948
|
-
|
|
51144
|
+
args50 = {
|
|
50949
51145
|
request: SkyPositionRequest$inboundSchema
|
|
50950
51146
|
};
|
|
50951
51147
|
tool$skyPosition = {
|
|
@@ -50953,9 +51149,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
50953
51149
|
description: `Check USDS Position
|
|
50954
51150
|
|
|
50955
51151
|
Check the USDS overall position.`,
|
|
50956
|
-
args:
|
|
50957
|
-
tool: async (client,
|
|
50958
|
-
const [result, apiCall] = await skyPosition(client,
|
|
51152
|
+
args: args50,
|
|
51153
|
+
tool: async (client, args51, ctx) => {
|
|
51154
|
+
const [result, apiCall] = await skyPosition(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50959
51155
|
if (!result.ok) {
|
|
50960
51156
|
return {
|
|
50961
51157
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50970,9 +51166,9 @@ Check the USDS overall position.`,
|
|
|
50970
51166
|
|
|
50971
51167
|
// src/funcs/skySell.ts
|
|
50972
51168
|
function skySell(client, request, options) {
|
|
50973
|
-
return new APIPromise($
|
|
51169
|
+
return new APIPromise($do51(client, request, options));
|
|
50974
51170
|
}
|
|
50975
|
-
async function $
|
|
51171
|
+
async function $do51(client, request, options) {
|
|
50976
51172
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50977
51173
|
if (!parsed.ok) {
|
|
50978
51174
|
return [parsed, { status: "invalid" }];
|
|
@@ -51043,12 +51239,12 @@ var init_skySell = __esm(() => {
|
|
|
51043
51239
|
});
|
|
51044
51240
|
|
|
51045
51241
|
// src/mcp-server/tools/skySell.ts
|
|
51046
|
-
var
|
|
51242
|
+
var args51, tool$skySell;
|
|
51047
51243
|
var init_skySell2 = __esm(() => {
|
|
51048
51244
|
init_skySell();
|
|
51049
51245
|
init_components();
|
|
51050
51246
|
init_tools();
|
|
51051
|
-
|
|
51247
|
+
args51 = {
|
|
51052
51248
|
request: SkySellRequest$inboundSchema
|
|
51053
51249
|
};
|
|
51054
51250
|
tool$skySell = {
|
|
@@ -51070,9 +51266,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
51070
51266
|
- \`SkyUsdcUsdsConverter\`
|
|
51071
51267
|
</Info>
|
|
51072
51268
|
`,
|
|
51073
|
-
args:
|
|
51074
|
-
tool: async (client,
|
|
51075
|
-
const [result, apiCall] = await skySell(client,
|
|
51269
|
+
args: args51,
|
|
51270
|
+
tool: async (client, args52, ctx) => {
|
|
51271
|
+
const [result, apiCall] = await skySell(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51076
51272
|
if (!result.ok) {
|
|
51077
51273
|
return {
|
|
51078
51274
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51087,9 +51283,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
51087
51283
|
|
|
51088
51284
|
// src/funcs/skyWithdraw.ts
|
|
51089
51285
|
function skyWithdraw(client, request, options) {
|
|
51090
|
-
return new APIPromise($
|
|
51286
|
+
return new APIPromise($do52(client, request, options));
|
|
51091
51287
|
}
|
|
51092
|
-
async function $
|
|
51288
|
+
async function $do52(client, request, options) {
|
|
51093
51289
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51094
51290
|
if (!parsed.ok) {
|
|
51095
51291
|
return [parsed, { status: "invalid" }];
|
|
@@ -51160,12 +51356,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
51160
51356
|
});
|
|
51161
51357
|
|
|
51162
51358
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
51163
|
-
var
|
|
51359
|
+
var args52, tool$skyWithdraw;
|
|
51164
51360
|
var init_skyWithdraw2 = __esm(() => {
|
|
51165
51361
|
init_skyWithdraw();
|
|
51166
51362
|
init_components();
|
|
51167
51363
|
init_tools();
|
|
51168
|
-
|
|
51364
|
+
args52 = {
|
|
51169
51365
|
request: SkyWithdrawRequest$inboundSchema
|
|
51170
51366
|
};
|
|
51171
51367
|
tool$skyWithdraw = {
|
|
@@ -51186,9 +51382,9 @@ There are no fees.
|
|
|
51186
51382
|
- \`SkyUsdsVault\`
|
|
51187
51383
|
</Info>
|
|
51188
51384
|
`,
|
|
51189
|
-
args:
|
|
51190
|
-
tool: async (client,
|
|
51191
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
51385
|
+
args: args52,
|
|
51386
|
+
tool: async (client, args53, ctx) => {
|
|
51387
|
+
const [result, apiCall] = await skyWithdraw(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51192
51388
|
if (!result.ok) {
|
|
51193
51389
|
return {
|
|
51194
51390
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51203,9 +51399,9 @@ There are no fees.
|
|
|
51203
51399
|
|
|
51204
51400
|
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
51205
51401
|
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
51206
|
-
return new APIPromise($
|
|
51402
|
+
return new APIPromise($do53(client, request, options));
|
|
51207
51403
|
}
|
|
51208
|
-
async function $
|
|
51404
|
+
async function $do53(client, request, options) {
|
|
51209
51405
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51210
51406
|
if (!parsed.ok) {
|
|
51211
51407
|
return [parsed, { status: "invalid" }];
|
|
@@ -51276,12 +51472,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
51276
51472
|
});
|
|
51277
51473
|
|
|
51278
51474
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
51279
|
-
var
|
|
51475
|
+
var args53, tool$smartAccountAccountBatchedUserOperations;
|
|
51280
51476
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
51281
51477
|
init_smartAccountAccountBatchedUserOperations();
|
|
51282
51478
|
init_components();
|
|
51283
51479
|
init_tools();
|
|
51284
|
-
|
|
51480
|
+
args53 = {
|
|
51285
51481
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
51286
51482
|
};
|
|
51287
51483
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -51289,9 +51485,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
51289
51485
|
description: `Get Smart Account Batched User Operations
|
|
51290
51486
|
|
|
51291
51487
|
Generate a list of user operations for smart account batching.`,
|
|
51292
|
-
args:
|
|
51293
|
-
tool: async (client,
|
|
51294
|
-
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client,
|
|
51488
|
+
args: args53,
|
|
51489
|
+
tool: async (client, args54, ctx) => {
|
|
51490
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51295
51491
|
if (!result.ok) {
|
|
51296
51492
|
return {
|
|
51297
51493
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51306,9 +51502,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
51306
51502
|
|
|
51307
51503
|
// src/funcs/swapOdos.ts
|
|
51308
51504
|
function swapOdos(client, request, options) {
|
|
51309
|
-
return new APIPromise($
|
|
51505
|
+
return new APIPromise($do54(client, request, options));
|
|
51310
51506
|
}
|
|
51311
|
-
async function $
|
|
51507
|
+
async function $do54(client, request, options) {
|
|
51312
51508
|
const parsed = safeParse(request, (value) => OdosSwapRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51313
51509
|
if (!parsed.ok) {
|
|
51314
51510
|
return [parsed, { status: "invalid" }];
|
|
@@ -51379,12 +51575,12 @@ var init_swapOdos = __esm(() => {
|
|
|
51379
51575
|
});
|
|
51380
51576
|
|
|
51381
51577
|
// src/mcp-server/tools/swapOdos.ts
|
|
51382
|
-
var
|
|
51578
|
+
var args54, tool$swapOdos;
|
|
51383
51579
|
var init_swapOdos2 = __esm(() => {
|
|
51384
51580
|
init_swapOdos();
|
|
51385
51581
|
init_components();
|
|
51386
51582
|
init_tools();
|
|
51387
|
-
|
|
51583
|
+
args54 = {
|
|
51388
51584
|
request: OdosSwapRequest$inboundSchema
|
|
51389
51585
|
};
|
|
51390
51586
|
tool$swapOdos = {
|
|
@@ -51400,9 +51596,9 @@ Swap between two tokens using Odos Smart Order Routing.
|
|
|
51400
51596
|
- \`OdosRouter\`
|
|
51401
51597
|
</Info>
|
|
51402
51598
|
`,
|
|
51403
|
-
args:
|
|
51404
|
-
tool: async (client,
|
|
51405
|
-
const [result, apiCall] = await swapOdos(client,
|
|
51599
|
+
args: args54,
|
|
51600
|
+
tool: async (client, args55, ctx) => {
|
|
51601
|
+
const [result, apiCall] = await swapOdos(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51406
51602
|
if (!result.ok) {
|
|
51407
51603
|
return {
|
|
51408
51604
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51417,9 +51613,9 @@ Swap between two tokens using Odos Smart Order Routing.
|
|
|
51417
51613
|
|
|
51418
51614
|
// src/funcs/tokenAddress.ts
|
|
51419
51615
|
function tokenAddress(client, request, options) {
|
|
51420
|
-
return new APIPromise($
|
|
51616
|
+
return new APIPromise($do55(client, request, options));
|
|
51421
51617
|
}
|
|
51422
|
-
async function $
|
|
51618
|
+
async function $do55(client, request, options) {
|
|
51423
51619
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51424
51620
|
if (!parsed.ok) {
|
|
51425
51621
|
return [parsed, { status: "invalid" }];
|
|
@@ -51495,12 +51691,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
51495
51691
|
});
|
|
51496
51692
|
|
|
51497
51693
|
// src/mcp-server/tools/tokenAddress.ts
|
|
51498
|
-
var
|
|
51694
|
+
var args55, tool$tokenAddress;
|
|
51499
51695
|
var init_tokenAddress2 = __esm(() => {
|
|
51500
51696
|
init_tokenAddress();
|
|
51501
51697
|
init_operations();
|
|
51502
51698
|
init_tools();
|
|
51503
|
-
|
|
51699
|
+
args55 = {
|
|
51504
51700
|
request: TokenAddressRequest$inboundSchema
|
|
51505
51701
|
};
|
|
51506
51702
|
tool$tokenAddress = {
|
|
@@ -51508,9 +51704,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
51508
51704
|
description: `Token Address
|
|
51509
51705
|
|
|
51510
51706
|
This endpoint retrieves the address for a token supported by us.`,
|
|
51511
|
-
args:
|
|
51512
|
-
tool: async (client,
|
|
51513
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
51707
|
+
args: args55,
|
|
51708
|
+
tool: async (client, args56, ctx) => {
|
|
51709
|
+
const [result, apiCall] = await tokenAddress(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51514
51710
|
if (!result.ok) {
|
|
51515
51711
|
return {
|
|
51516
51712
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51525,9 +51721,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
51525
51721
|
|
|
51526
51722
|
// src/funcs/tokenBalance.ts
|
|
51527
51723
|
function tokenBalance(client, request, options) {
|
|
51528
|
-
return new APIPromise($
|
|
51724
|
+
return new APIPromise($do56(client, request, options));
|
|
51529
51725
|
}
|
|
51530
|
-
async function $
|
|
51726
|
+
async function $do56(client, request, options) {
|
|
51531
51727
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51532
51728
|
if (!parsed.ok) {
|
|
51533
51729
|
return [parsed, { status: "invalid" }];
|
|
@@ -51604,12 +51800,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
51604
51800
|
});
|
|
51605
51801
|
|
|
51606
51802
|
// src/mcp-server/tools/tokenBalance.ts
|
|
51607
|
-
var
|
|
51803
|
+
var args56, tool$tokenBalance;
|
|
51608
51804
|
var init_tokenBalance2 = __esm(() => {
|
|
51609
51805
|
init_tokenBalance();
|
|
51610
51806
|
init_operations();
|
|
51611
51807
|
init_tools();
|
|
51612
|
-
|
|
51808
|
+
args56 = {
|
|
51613
51809
|
request: TokenBalanceRequest$inboundSchema
|
|
51614
51810
|
};
|
|
51615
51811
|
tool$tokenBalance = {
|
|
@@ -51617,9 +51813,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
51617
51813
|
description: `Token Balance
|
|
51618
51814
|
|
|
51619
51815
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
51620
|
-
args:
|
|
51621
|
-
tool: async (client,
|
|
51622
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
51816
|
+
args: args56,
|
|
51817
|
+
tool: async (client, args57, ctx) => {
|
|
51818
|
+
const [result, apiCall] = await tokenBalance(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51623
51819
|
if (!result.ok) {
|
|
51624
51820
|
return {
|
|
51625
51821
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51634,9 +51830,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
51634
51830
|
|
|
51635
51831
|
// src/funcs/tokenPrice.ts
|
|
51636
51832
|
function tokenPrice(client, request, options) {
|
|
51637
|
-
return new APIPromise($
|
|
51833
|
+
return new APIPromise($do57(client, request, options));
|
|
51638
51834
|
}
|
|
51639
|
-
async function $
|
|
51835
|
+
async function $do57(client, request, options) {
|
|
51640
51836
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51641
51837
|
if (!parsed.ok) {
|
|
51642
51838
|
return [parsed, { status: "invalid" }];
|
|
@@ -51713,12 +51909,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
51713
51909
|
});
|
|
51714
51910
|
|
|
51715
51911
|
// src/mcp-server/tools/tokenPrice.ts
|
|
51716
|
-
var
|
|
51912
|
+
var args57, tool$tokenPrice;
|
|
51717
51913
|
var init_tokenPrice2 = __esm(() => {
|
|
51718
51914
|
init_tokenPrice();
|
|
51719
51915
|
init_operations();
|
|
51720
51916
|
init_tools();
|
|
51721
|
-
|
|
51917
|
+
args57 = {
|
|
51722
51918
|
request: TokenPriceRequest$inboundSchema
|
|
51723
51919
|
};
|
|
51724
51920
|
tool$tokenPrice = {
|
|
@@ -51730,9 +51926,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
51730
51926
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
51731
51927
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
51732
51928
|
with the update frequency of the oracle.`,
|
|
51733
|
-
args:
|
|
51734
|
-
tool: async (client,
|
|
51735
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
51929
|
+
args: args57,
|
|
51930
|
+
tool: async (client, args58, ctx) => {
|
|
51931
|
+
const [result, apiCall] = await tokenPrice(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51736
51932
|
if (!result.ok) {
|
|
51737
51933
|
return {
|
|
51738
51934
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51747,9 +51943,9 @@ with the update frequency of the oracle.`,
|
|
|
51747
51943
|
|
|
51748
51944
|
// src/funcs/tokenTransfer.ts
|
|
51749
51945
|
function tokenTransfer(client, request, options) {
|
|
51750
|
-
return new APIPromise($
|
|
51946
|
+
return new APIPromise($do58(client, request, options));
|
|
51751
51947
|
}
|
|
51752
|
-
async function $
|
|
51948
|
+
async function $do58(client, request, options) {
|
|
51753
51949
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51754
51950
|
if (!parsed.ok) {
|
|
51755
51951
|
return [parsed, { status: "invalid" }];
|
|
@@ -51820,12 +52016,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
51820
52016
|
});
|
|
51821
52017
|
|
|
51822
52018
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
51823
|
-
var
|
|
52019
|
+
var args58, tool$tokenTransfer;
|
|
51824
52020
|
var init_tokenTransfer2 = __esm(() => {
|
|
51825
52021
|
init_tokenTransfer();
|
|
51826
52022
|
init_components();
|
|
51827
52023
|
init_tools();
|
|
51828
|
-
|
|
52024
|
+
args58 = {
|
|
51829
52025
|
request: TokenTransferRequest$inboundSchema
|
|
51830
52026
|
};
|
|
51831
52027
|
tool$tokenTransfer = {
|
|
@@ -51833,9 +52029,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
51833
52029
|
description: `Transfer ETH or ERC20 Tokens
|
|
51834
52030
|
|
|
51835
52031
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
51836
|
-
args:
|
|
51837
|
-
tool: async (client,
|
|
51838
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
52032
|
+
args: args58,
|
|
52033
|
+
tool: async (client, args59, ctx) => {
|
|
52034
|
+
const [result, apiCall] = await tokenTransfer(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51839
52035
|
if (!result.ok) {
|
|
51840
52036
|
return {
|
|
51841
52037
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51850,9 +52046,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
51850
52046
|
|
|
51851
52047
|
// src/funcs/transactionBundlerBundlerAaveLoop.ts
|
|
51852
52048
|
function transactionBundlerBundlerAaveLoop(client, request, options) {
|
|
51853
|
-
return new APIPromise($
|
|
52049
|
+
return new APIPromise($do59(client, request, options));
|
|
51854
52050
|
}
|
|
51855
|
-
async function $
|
|
52051
|
+
async function $do59(client, request, options) {
|
|
51856
52052
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51857
52053
|
if (!parsed.ok) {
|
|
51858
52054
|
return [parsed, { status: "invalid" }];
|
|
@@ -51923,12 +52119,12 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
|
|
|
51923
52119
|
});
|
|
51924
52120
|
|
|
51925
52121
|
// src/mcp-server/tools/transactionBundlerBundlerAaveLoop.ts
|
|
51926
|
-
var
|
|
52122
|
+
var args59, tool$transactionBundlerBundlerAaveLoop;
|
|
51927
52123
|
var init_transactionBundlerBundlerAaveLoop2 = __esm(() => {
|
|
51928
52124
|
init_transactionBundlerBundlerAaveLoop();
|
|
51929
52125
|
init_components();
|
|
51930
52126
|
init_tools();
|
|
51931
|
-
|
|
52127
|
+
args59 = {
|
|
51932
52128
|
request: AaveLoopRequest$inboundSchema
|
|
51933
52129
|
};
|
|
51934
52130
|
tool$transactionBundlerBundlerAaveLoop = {
|
|
@@ -51946,9 +52142,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
51946
52142
|
- Supplies the swapped tokens
|
|
51947
52143
|
|
|
51948
52144
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
51949
|
-
args:
|
|
51950
|
-
tool: async (client,
|
|
51951
|
-
const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client,
|
|
52145
|
+
args: args59,
|
|
52146
|
+
tool: async (client, args60, ctx) => {
|
|
52147
|
+
const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51952
52148
|
if (!result.ok) {
|
|
51953
52149
|
return {
|
|
51954
52150
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51963,9 +52159,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
51963
52159
|
|
|
51964
52160
|
// src/funcs/transactionBundlerBundlerAuthorization.ts
|
|
51965
52161
|
function transactionBundlerBundlerAuthorization(client, request, options) {
|
|
51966
|
-
return new APIPromise($
|
|
52162
|
+
return new APIPromise($do60(client, request, options));
|
|
51967
52163
|
}
|
|
51968
|
-
async function $
|
|
52164
|
+
async function $do60(client, request, options) {
|
|
51969
52165
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51970
52166
|
if (!parsed.ok) {
|
|
51971
52167
|
return [parsed, { status: "invalid" }];
|
|
@@ -52036,12 +52232,12 @@ var init_transactionBundlerBundlerAuthorization = __esm(() => {
|
|
|
52036
52232
|
});
|
|
52037
52233
|
|
|
52038
52234
|
// src/mcp-server/tools/transactionBundlerBundlerAuthorization.ts
|
|
52039
|
-
var
|
|
52235
|
+
var args60, tool$transactionBundlerBundlerAuthorization;
|
|
52040
52236
|
var init_transactionBundlerBundlerAuthorization2 = __esm(() => {
|
|
52041
52237
|
init_transactionBundlerBundlerAuthorization();
|
|
52042
52238
|
init_components();
|
|
52043
52239
|
init_tools();
|
|
52044
|
-
|
|
52240
|
+
args60 = {
|
|
52045
52241
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
52046
52242
|
};
|
|
52047
52243
|
tool$transactionBundlerBundlerAuthorization = {
|
|
@@ -52054,9 +52250,9 @@ Currently this is required for every transaction bundle to prevent replay attack
|
|
|
52054
52250
|
and ensure transaction ordering when batching multiple actions into a single
|
|
52055
52251
|
transaction. The authorization includes a nonce and chain ID to guarantee
|
|
52056
52252
|
transaction uniqueness and proper network targeting.`,
|
|
52057
|
-
args:
|
|
52058
|
-
tool: async (client,
|
|
52059
|
-
const [result, apiCall] = await transactionBundlerBundlerAuthorization(client,
|
|
52253
|
+
args: args60,
|
|
52254
|
+
tool: async (client, args61, ctx) => {
|
|
52255
|
+
const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52060
52256
|
if (!result.ok) {
|
|
52061
52257
|
return {
|
|
52062
52258
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52071,9 +52267,9 @@ transaction uniqueness and proper network targeting.`,
|
|
|
52071
52267
|
|
|
52072
52268
|
// src/funcs/transactionBundlerBundlerExecute.ts
|
|
52073
52269
|
function transactionBundlerBundlerExecute(client, request, options) {
|
|
52074
|
-
return new APIPromise($
|
|
52270
|
+
return new APIPromise($do61(client, request, options));
|
|
52075
52271
|
}
|
|
52076
|
-
async function $
|
|
52272
|
+
async function $do61(client, request, options) {
|
|
52077
52273
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52078
52274
|
if (!parsed.ok) {
|
|
52079
52275
|
return [parsed, { status: "invalid" }];
|
|
@@ -52144,12 +52340,12 @@ var init_transactionBundlerBundlerExecute = __esm(() => {
|
|
|
52144
52340
|
});
|
|
52145
52341
|
|
|
52146
52342
|
// src/mcp-server/tools/transactionBundlerBundlerExecute.ts
|
|
52147
|
-
var
|
|
52343
|
+
var args61, tool$transactionBundlerBundlerExecute;
|
|
52148
52344
|
var init_transactionBundlerBundlerExecute2 = __esm(() => {
|
|
52149
52345
|
init_transactionBundlerBundlerExecute();
|
|
52150
52346
|
init_components();
|
|
52151
52347
|
init_tools();
|
|
52152
|
-
|
|
52348
|
+
args61 = {
|
|
52153
52349
|
request: MulticallExecuteRequest$inboundSchema
|
|
52154
52350
|
};
|
|
52155
52351
|
tool$transactionBundlerBundlerExecute = {
|
|
@@ -52163,9 +52359,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
52163
52359
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
52164
52360
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
52165
52361
|
prevent replay attacks.`,
|
|
52166
|
-
args:
|
|
52167
|
-
tool: async (client,
|
|
52168
|
-
const [result, apiCall] = await transactionBundlerBundlerExecute(client,
|
|
52362
|
+
args: args61,
|
|
52363
|
+
tool: async (client, args62, ctx) => {
|
|
52364
|
+
const [result, apiCall] = await transactionBundlerBundlerExecute(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52169
52365
|
if (!result.ok) {
|
|
52170
52366
|
return {
|
|
52171
52367
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52180,9 +52376,9 @@ prevent replay attacks.`,
|
|
|
52180
52376
|
|
|
52181
52377
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
52182
52378
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
52183
|
-
return new APIPromise($
|
|
52379
|
+
return new APIPromise($do62(client, request, options));
|
|
52184
52380
|
}
|
|
52185
|
-
async function $
|
|
52381
|
+
async function $do62(client, request, options) {
|
|
52186
52382
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52187
52383
|
if (!parsed.ok) {
|
|
52188
52384
|
return [parsed, { status: "invalid" }];
|
|
@@ -52253,12 +52449,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
52253
52449
|
});
|
|
52254
52450
|
|
|
52255
52451
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
52256
|
-
var
|
|
52452
|
+
var args62, tool$uniswapV3LiquidityProvisionIncrease;
|
|
52257
52453
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
52258
52454
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
52259
52455
|
init_components();
|
|
52260
52456
|
init_tools();
|
|
52261
|
-
|
|
52457
|
+
args62 = {
|
|
52262
52458
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
52263
52459
|
};
|
|
52264
52460
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -52282,9 +52478,9 @@ process.
|
|
|
52282
52478
|
- \`AerodromeSlipstreamRouter\`
|
|
52283
52479
|
</Info>
|
|
52284
52480
|
`,
|
|
52285
|
-
args:
|
|
52286
|
-
tool: async (client,
|
|
52287
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
52481
|
+
args: args62,
|
|
52482
|
+
tool: async (client, args63, ctx) => {
|
|
52483
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52288
52484
|
if (!result.ok) {
|
|
52289
52485
|
return {
|
|
52290
52486
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52299,9 +52495,9 @@ process.
|
|
|
52299
52495
|
|
|
52300
52496
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
52301
52497
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
52302
|
-
return new APIPromise($
|
|
52498
|
+
return new APIPromise($do63(client, request, options));
|
|
52303
52499
|
}
|
|
52304
|
-
async function $
|
|
52500
|
+
async function $do63(client, request, options) {
|
|
52305
52501
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52306
52502
|
if (!parsed.ok) {
|
|
52307
52503
|
return [parsed, { status: "invalid" }];
|
|
@@ -52377,12 +52573,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
52377
52573
|
});
|
|
52378
52574
|
|
|
52379
52575
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
52380
|
-
var
|
|
52576
|
+
var args63, tool$uniswapV3LiquidityProvisionInRange;
|
|
52381
52577
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
52382
52578
|
init_uniswapV3LiquidityProvisionInRange();
|
|
52383
52579
|
init_operations();
|
|
52384
52580
|
init_tools();
|
|
52385
|
-
|
|
52581
|
+
args63 = {
|
|
52386
52582
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
52387
52583
|
};
|
|
52388
52584
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -52397,9 +52593,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
52397
52593
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
52398
52594
|
they are actively participating in the trading activities within the liquidity pool
|
|
52399
52595
|
and earning trading fees.`,
|
|
52400
|
-
args:
|
|
52401
|
-
tool: async (client,
|
|
52402
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
52596
|
+
args: args63,
|
|
52597
|
+
tool: async (client, args64, ctx) => {
|
|
52598
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52403
52599
|
if (!result.ok) {
|
|
52404
52600
|
return {
|
|
52405
52601
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52414,9 +52610,9 @@ and earning trading fees.`,
|
|
|
52414
52610
|
|
|
52415
52611
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
52416
52612
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
52417
|
-
return new APIPromise($
|
|
52613
|
+
return new APIPromise($do64(client, request, options));
|
|
52418
52614
|
}
|
|
52419
|
-
async function $
|
|
52615
|
+
async function $do64(client, request, options) {
|
|
52420
52616
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52421
52617
|
if (!parsed.ok) {
|
|
52422
52618
|
return [parsed, { status: "invalid" }];
|
|
@@ -52487,12 +52683,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
52487
52683
|
});
|
|
52488
52684
|
|
|
52489
52685
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
52490
|
-
var
|
|
52686
|
+
var args64, tool$uniswapV3LiquidityProvisionMint;
|
|
52491
52687
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
52492
52688
|
init_uniswapV3LiquidityProvisionMint();
|
|
52493
52689
|
init_components();
|
|
52494
52690
|
init_tools();
|
|
52495
|
-
|
|
52691
|
+
args64 = {
|
|
52496
52692
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
52497
52693
|
};
|
|
52498
52694
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -52516,9 +52712,9 @@ needed for the minting process.
|
|
|
52516
52712
|
- \`UniswapV3NFTPositionManager\`
|
|
52517
52713
|
</Info>
|
|
52518
52714
|
`,
|
|
52519
|
-
args:
|
|
52520
|
-
tool: async (client,
|
|
52521
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
52715
|
+
args: args64,
|
|
52716
|
+
tool: async (client, args65, ctx) => {
|
|
52717
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52522
52718
|
if (!result.ok) {
|
|
52523
52719
|
return {
|
|
52524
52720
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52533,9 +52729,9 @@ needed for the minting process.
|
|
|
52533
52729
|
|
|
52534
52730
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
52535
52731
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
52536
|
-
return new APIPromise($
|
|
52732
|
+
return new APIPromise($do65(client, request, options));
|
|
52537
52733
|
}
|
|
52538
|
-
async function $
|
|
52734
|
+
async function $do65(client, request, options) {
|
|
52539
52735
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52540
52736
|
if (!parsed.ok) {
|
|
52541
52737
|
return [parsed, { status: "invalid" }];
|
|
@@ -52611,12 +52807,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
52611
52807
|
});
|
|
52612
52808
|
|
|
52613
52809
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
52614
|
-
var
|
|
52810
|
+
var args65, tool$uniswapV3LiquidityProvisionPositions;
|
|
52615
52811
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
52616
52812
|
init_uniswapV3LiquidityProvisionPositions();
|
|
52617
52813
|
init_operations();
|
|
52618
52814
|
init_tools();
|
|
52619
|
-
|
|
52815
|
+
args65 = {
|
|
52620
52816
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
52621
52817
|
};
|
|
52622
52818
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -52630,9 +52826,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
52630
52826
|
positions, including the total number of positions and relevant metadata. This
|
|
52631
52827
|
information is crucial for users to manage and analyze their liquidity provision
|
|
52632
52828
|
activities effectively.`,
|
|
52633
|
-
args:
|
|
52634
|
-
tool: async (client,
|
|
52635
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
52829
|
+
args: args65,
|
|
52830
|
+
tool: async (client, args66, ctx) => {
|
|
52831
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52636
52832
|
if (!result.ok) {
|
|
52637
52833
|
return {
|
|
52638
52834
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52647,9 +52843,9 @@ activities effectively.`,
|
|
|
52647
52843
|
|
|
52648
52844
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
52649
52845
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
52650
|
-
return new APIPromise($
|
|
52846
|
+
return new APIPromise($do66(client, request, options));
|
|
52651
52847
|
}
|
|
52652
|
-
async function $
|
|
52848
|
+
async function $do66(client, request, options) {
|
|
52653
52849
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52654
52850
|
if (!parsed.ok) {
|
|
52655
52851
|
return [parsed, { status: "invalid" }];
|
|
@@ -52720,12 +52916,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
52720
52916
|
});
|
|
52721
52917
|
|
|
52722
52918
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
52723
|
-
var
|
|
52919
|
+
var args66, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
52724
52920
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
52725
52921
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
52726
52922
|
init_components();
|
|
52727
52923
|
init_tools();
|
|
52728
|
-
|
|
52924
|
+
args66 = {
|
|
52729
52925
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
52730
52926
|
};
|
|
52731
52927
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -52750,9 +52946,9 @@ before initiating a withdrawal to avoid potential issues or penalties.
|
|
|
52750
52946
|
- \`UniswapV3NFTPositionManager\`
|
|
52751
52947
|
</Info>
|
|
52752
52948
|
`,
|
|
52753
|
-
args:
|
|
52754
|
-
tool: async (client,
|
|
52755
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
52949
|
+
args: args66,
|
|
52950
|
+
tool: async (client, args67, ctx) => {
|
|
52951
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52756
52952
|
if (!result.ok) {
|
|
52757
52953
|
return {
|
|
52758
52954
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52767,9 +52963,9 @@ before initiating a withdrawal to avoid potential issues or penalties.
|
|
|
52767
52963
|
|
|
52768
52964
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
52769
52965
|
function uniswapV3PoolPrice(client, request, options) {
|
|
52770
|
-
return new APIPromise($
|
|
52966
|
+
return new APIPromise($do67(client, request, options));
|
|
52771
52967
|
}
|
|
52772
|
-
async function $
|
|
52968
|
+
async function $do67(client, request, options) {
|
|
52773
52969
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52774
52970
|
if (!parsed.ok) {
|
|
52775
52971
|
return [parsed, { status: "invalid" }];
|
|
@@ -52847,12 +53043,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
52847
53043
|
});
|
|
52848
53044
|
|
|
52849
53045
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
52850
|
-
var
|
|
53046
|
+
var args67, tool$uniswapV3PoolPrice;
|
|
52851
53047
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
52852
53048
|
init_uniswapV3PoolPrice();
|
|
52853
53049
|
init_operations();
|
|
52854
53050
|
init_tools();
|
|
52855
|
-
|
|
53051
|
+
args67 = {
|
|
52856
53052
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
52857
53053
|
};
|
|
52858
53054
|
tool$uniswapV3PoolPrice = {
|
|
@@ -52862,9 +53058,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
52862
53058
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
52863
53059
|
|
|
52864
53060
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
52865
|
-
args:
|
|
52866
|
-
tool: async (client,
|
|
52867
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
53061
|
+
args: args67,
|
|
53062
|
+
tool: async (client, args68, ctx) => {
|
|
53063
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52868
53064
|
if (!result.ok) {
|
|
52869
53065
|
return {
|
|
52870
53066
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52879,9 +53075,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
52879
53075
|
|
|
52880
53076
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
52881
53077
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
52882
|
-
return new APIPromise($
|
|
53078
|
+
return new APIPromise($do68(client, request, options));
|
|
52883
53079
|
}
|
|
52884
|
-
async function $
|
|
53080
|
+
async function $do68(client, request, options) {
|
|
52885
53081
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52886
53082
|
if (!parsed.ok) {
|
|
52887
53083
|
return [parsed, { status: "invalid" }];
|
|
@@ -52960,12 +53156,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
52960
53156
|
});
|
|
52961
53157
|
|
|
52962
53158
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
52963
|
-
var
|
|
53159
|
+
var args68, tool$uniswapV3QuoteBuyExactly;
|
|
52964
53160
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
52965
53161
|
init_uniswapV3QuoteBuyExactly();
|
|
52966
53162
|
init_operations();
|
|
52967
53163
|
init_tools();
|
|
52968
|
-
|
|
53164
|
+
args68 = {
|
|
52969
53165
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
52970
53166
|
};
|
|
52971
53167
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -52977,9 +53173,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
52977
53173
|
|
|
52978
53174
|
It also provides the resulting price after the transaction. The calculation takes
|
|
52979
53175
|
into account the current pool state and the specified fee tier.`,
|
|
52980
|
-
args:
|
|
52981
|
-
tool: async (client,
|
|
52982
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
53176
|
+
args: args68,
|
|
53177
|
+
tool: async (client, args69, ctx) => {
|
|
53178
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52983
53179
|
if (!result.ok) {
|
|
52984
53180
|
return {
|
|
52985
53181
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52994,9 +53190,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
52994
53190
|
|
|
52995
53191
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
52996
53192
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
52997
|
-
return new APIPromise($
|
|
53193
|
+
return new APIPromise($do69(client, request, options));
|
|
52998
53194
|
}
|
|
52999
|
-
async function $
|
|
53195
|
+
async function $do69(client, request, options) {
|
|
53000
53196
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53001
53197
|
if (!parsed.ok) {
|
|
53002
53198
|
return [parsed, { status: "invalid" }];
|
|
@@ -53075,12 +53271,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
53075
53271
|
});
|
|
53076
53272
|
|
|
53077
53273
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
53078
|
-
var
|
|
53274
|
+
var args69, tool$uniswapV3QuoteSellExactly;
|
|
53079
53275
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
53080
53276
|
init_uniswapV3QuoteSellExactly();
|
|
53081
53277
|
init_operations();
|
|
53082
53278
|
init_tools();
|
|
53083
|
-
|
|
53279
|
+
args69 = {
|
|
53084
53280
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
53085
53281
|
};
|
|
53086
53282
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -53092,9 +53288,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
53092
53288
|
|
|
53093
53289
|
It also provides the resulting price after the transaction. The calculation takes
|
|
53094
53290
|
into account the current pool state and the specified fee tier.`,
|
|
53095
|
-
args:
|
|
53096
|
-
tool: async (client,
|
|
53097
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
53291
|
+
args: args69,
|
|
53292
|
+
tool: async (client, args70, ctx) => {
|
|
53293
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53098
53294
|
if (!result.ok) {
|
|
53099
53295
|
return {
|
|
53100
53296
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53109,9 +53305,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
53109
53305
|
|
|
53110
53306
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
53111
53307
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
53112
|
-
return new APIPromise($
|
|
53308
|
+
return new APIPromise($do70(client, request, options));
|
|
53113
53309
|
}
|
|
53114
|
-
async function $
|
|
53310
|
+
async function $do70(client, request, options) {
|
|
53115
53311
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53116
53312
|
if (!parsed.ok) {
|
|
53117
53313
|
return [parsed, { status: "invalid" }];
|
|
@@ -53182,12 +53378,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
53182
53378
|
});
|
|
53183
53379
|
|
|
53184
53380
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
53185
|
-
var
|
|
53381
|
+
var args70, tool$uniswapV3SwapBuyExactly;
|
|
53186
53382
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
53187
53383
|
init_uniswapV3SwapBuyExactly();
|
|
53188
53384
|
init_components();
|
|
53189
53385
|
init_tools();
|
|
53190
|
-
|
|
53386
|
+
args70 = {
|
|
53191
53387
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
53192
53388
|
};
|
|
53193
53389
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -53209,9 +53405,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.
|
|
|
53209
53405
|
- \`UniswapV3Router\`
|
|
53210
53406
|
</Info>
|
|
53211
53407
|
`,
|
|
53212
|
-
args:
|
|
53213
|
-
tool: async (client,
|
|
53214
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
53408
|
+
args: args70,
|
|
53409
|
+
tool: async (client, args71, ctx) => {
|
|
53410
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53215
53411
|
if (!result.ok) {
|
|
53216
53412
|
return {
|
|
53217
53413
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53226,9 +53422,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.
|
|
|
53226
53422
|
|
|
53227
53423
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
53228
53424
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
53229
|
-
return new APIPromise($
|
|
53425
|
+
return new APIPromise($do71(client, request, options));
|
|
53230
53426
|
}
|
|
53231
|
-
async function $
|
|
53427
|
+
async function $do71(client, request, options) {
|
|
53232
53428
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53233
53429
|
if (!parsed.ok) {
|
|
53234
53430
|
return [parsed, { status: "invalid" }];
|
|
@@ -53299,12 +53495,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
53299
53495
|
});
|
|
53300
53496
|
|
|
53301
53497
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
53302
|
-
var
|
|
53498
|
+
var args71, tool$uniswapV3SwapSellExactly;
|
|
53303
53499
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
53304
53500
|
init_uniswapV3SwapSellExactly();
|
|
53305
53501
|
init_components();
|
|
53306
53502
|
init_tools();
|
|
53307
|
-
|
|
53503
|
+
args71 = {
|
|
53308
53504
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
53309
53505
|
};
|
|
53310
53506
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -53326,9 +53522,9 @@ wrapped, the appropriate amount will be wrapped automatically.
|
|
|
53326
53522
|
- \`UniswapV3Router\`
|
|
53327
53523
|
</Info>
|
|
53328
53524
|
`,
|
|
53329
|
-
args:
|
|
53330
|
-
tool: async (client,
|
|
53331
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
53525
|
+
args: args71,
|
|
53526
|
+
tool: async (client, args72, ctx) => {
|
|
53527
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53332
53528
|
if (!result.ok) {
|
|
53333
53529
|
return {
|
|
53334
53530
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53343,9 +53539,9 @@ wrapped, the appropriate amount will be wrapped automatically.
|
|
|
53343
53539
|
|
|
53344
53540
|
// src/funcs/universalAllowance.ts
|
|
53345
53541
|
function universalAllowance(client, request, options) {
|
|
53346
|
-
return new APIPromise($
|
|
53542
|
+
return new APIPromise($do72(client, request, options));
|
|
53347
53543
|
}
|
|
53348
|
-
async function $
|
|
53544
|
+
async function $do72(client, request, options) {
|
|
53349
53545
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53350
53546
|
if (!parsed.ok) {
|
|
53351
53547
|
return [parsed, { status: "invalid" }];
|
|
@@ -53423,12 +53619,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
53423
53619
|
});
|
|
53424
53620
|
|
|
53425
53621
|
// src/mcp-server/tools/universalAllowance.ts
|
|
53426
|
-
var
|
|
53622
|
+
var args72, tool$universalAllowance;
|
|
53427
53623
|
var init_universalAllowance2 = __esm(() => {
|
|
53428
53624
|
init_universalAllowance();
|
|
53429
53625
|
init_operations();
|
|
53430
53626
|
init_tools();
|
|
53431
|
-
|
|
53627
|
+
args72 = {
|
|
53432
53628
|
request: GenericAllowanceRequest$inboundSchema
|
|
53433
53629
|
};
|
|
53434
53630
|
tool$universalAllowance = {
|
|
@@ -53442,9 +53638,9 @@ tokens on their behalf.
|
|
|
53442
53638
|
This is a crucial step before engaging in any transactions or operations within
|
|
53443
53639
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
53444
53640
|
the user's tokens securely and efficiently.`,
|
|
53445
|
-
args:
|
|
53446
|
-
tool: async (client,
|
|
53447
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
53641
|
+
args: args72,
|
|
53642
|
+
tool: async (client, args73, ctx) => {
|
|
53643
|
+
const [result, apiCall] = await universalAllowance(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53448
53644
|
if (!result.ok) {
|
|
53449
53645
|
return {
|
|
53450
53646
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53459,9 +53655,9 @@ the user's tokens securely and efficiently.`,
|
|
|
53459
53655
|
|
|
53460
53656
|
// src/funcs/universalAllowanceSet.ts
|
|
53461
53657
|
function universalAllowanceSet(client, request, options) {
|
|
53462
|
-
return new APIPromise($
|
|
53658
|
+
return new APIPromise($do73(client, request, options));
|
|
53463
53659
|
}
|
|
53464
|
-
async function $
|
|
53660
|
+
async function $do73(client, request, options) {
|
|
53465
53661
|
const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53466
53662
|
if (!parsed.ok) {
|
|
53467
53663
|
return [parsed, { status: "invalid" }];
|
|
@@ -53532,12 +53728,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
53532
53728
|
});
|
|
53533
53729
|
|
|
53534
53730
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
53535
|
-
var
|
|
53731
|
+
var args73, tool$universalAllowanceSet;
|
|
53536
53732
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
53537
53733
|
init_universalAllowanceSet();
|
|
53538
53734
|
init_components();
|
|
53539
53735
|
init_tools();
|
|
53540
|
-
|
|
53736
|
+
args73 = {
|
|
53541
53737
|
request: SetAllowanceRequest$inboundSchema
|
|
53542
53738
|
};
|
|
53543
53739
|
tool$universalAllowanceSet = {
|
|
@@ -53552,9 +53748,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
53552
53748
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
53553
53749
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
53554
53750
|
within the DeFi ecosystem.`,
|
|
53555
|
-
args:
|
|
53556
|
-
tool: async (client,
|
|
53557
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
53751
|
+
args: args73,
|
|
53752
|
+
tool: async (client, args74, ctx) => {
|
|
53753
|
+
const [result, apiCall] = await universalAllowanceSet(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53558
53754
|
if (!result.ok) {
|
|
53559
53755
|
return {
|
|
53560
53756
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53569,9 +53765,9 @@ within the DeFi ecosystem.`,
|
|
|
53569
53765
|
|
|
53570
53766
|
// src/funcs/universalEns.ts
|
|
53571
53767
|
function universalEns(client, request, options) {
|
|
53572
|
-
return new APIPromise($
|
|
53768
|
+
return new APIPromise($do74(client, request, options));
|
|
53573
53769
|
}
|
|
53574
|
-
async function $
|
|
53770
|
+
async function $do74(client, request, options) {
|
|
53575
53771
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53576
53772
|
if (!parsed.ok) {
|
|
53577
53773
|
return [parsed, { status: "invalid" }];
|
|
@@ -53647,12 +53843,12 @@ var init_universalEns = __esm(() => {
|
|
|
53647
53843
|
});
|
|
53648
53844
|
|
|
53649
53845
|
// src/mcp-server/tools/universalEns.ts
|
|
53650
|
-
var
|
|
53846
|
+
var args74, tool$universalEns;
|
|
53651
53847
|
var init_universalEns2 = __esm(() => {
|
|
53652
53848
|
init_universalEns();
|
|
53653
53849
|
init_operations();
|
|
53654
53850
|
init_tools();
|
|
53655
|
-
|
|
53851
|
+
args74 = {
|
|
53656
53852
|
request: GenericEnsRequest$inboundSchema
|
|
53657
53853
|
};
|
|
53658
53854
|
tool$universalEns = {
|
|
@@ -53663,9 +53859,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
53663
53859
|
|
|
53664
53860
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
53665
53861
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
53666
|
-
args:
|
|
53667
|
-
tool: async (client,
|
|
53668
|
-
const [result, apiCall] = await universalEns(client,
|
|
53862
|
+
args: args74,
|
|
53863
|
+
tool: async (client, args75, ctx) => {
|
|
53864
|
+
const [result, apiCall] = await universalEns(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53669
53865
|
if (!result.ok) {
|
|
53670
53866
|
return {
|
|
53671
53867
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53680,9 +53876,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
53680
53876
|
|
|
53681
53877
|
// src/funcs/universalPortfolio.ts
|
|
53682
53878
|
function universalPortfolio(client, request, options) {
|
|
53683
|
-
return new APIPromise($
|
|
53879
|
+
return new APIPromise($do75(client, request, options));
|
|
53684
53880
|
}
|
|
53685
|
-
async function $
|
|
53881
|
+
async function $do75(client, request, options) {
|
|
53686
53882
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53687
53883
|
if (!parsed.ok) {
|
|
53688
53884
|
return [parsed, { status: "invalid" }];
|
|
@@ -53758,12 +53954,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
53758
53954
|
});
|
|
53759
53955
|
|
|
53760
53956
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
53761
|
-
var
|
|
53957
|
+
var args75, tool$universalPortfolio;
|
|
53762
53958
|
var init_universalPortfolio2 = __esm(() => {
|
|
53763
53959
|
init_universalPortfolio();
|
|
53764
53960
|
init_operations();
|
|
53765
53961
|
init_tools();
|
|
53766
|
-
|
|
53962
|
+
args75 = {
|
|
53767
53963
|
request: GenericPortfolioRequest$inboundSchema
|
|
53768
53964
|
};
|
|
53769
53965
|
tool$universalPortfolio = {
|
|
@@ -53774,9 +53970,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
53774
53970
|
|
|
53775
53971
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
53776
53972
|
balances, including their respective values and quantities.`,
|
|
53777
|
-
args:
|
|
53778
|
-
tool: async (client,
|
|
53779
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
53973
|
+
args: args75,
|
|
53974
|
+
tool: async (client, args76, ctx) => {
|
|
53975
|
+
const [result, apiCall] = await universalPortfolio(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53780
53976
|
if (!result.ok) {
|
|
53781
53977
|
return {
|
|
53782
53978
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53791,9 +53987,9 @@ balances, including their respective values and quantities.`,
|
|
|
53791
53987
|
|
|
53792
53988
|
// src/funcs/universalSupportedTokens.ts
|
|
53793
53989
|
function universalSupportedTokens(client, request, options) {
|
|
53794
|
-
return new APIPromise($
|
|
53990
|
+
return new APIPromise($do76(client, request, options));
|
|
53795
53991
|
}
|
|
53796
|
-
async function $
|
|
53992
|
+
async function $do76(client, request, options) {
|
|
53797
53993
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53798
53994
|
if (!parsed.ok) {
|
|
53799
53995
|
return [parsed, { status: "invalid" }];
|
|
@@ -53868,12 +54064,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
53868
54064
|
});
|
|
53869
54065
|
|
|
53870
54066
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
53871
|
-
var
|
|
54067
|
+
var args76, tool$universalSupportedTokens;
|
|
53872
54068
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
53873
54069
|
init_universalSupportedTokens();
|
|
53874
54070
|
init_operations();
|
|
53875
54071
|
init_tools();
|
|
53876
|
-
|
|
54072
|
+
args76 = {
|
|
53877
54073
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
53878
54074
|
};
|
|
53879
54075
|
tool$universalSupportedTokens = {
|
|
@@ -53881,9 +54077,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
53881
54077
|
description: `List Supported Tokens
|
|
53882
54078
|
|
|
53883
54079
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
53884
|
-
args:
|
|
53885
|
-
tool: async (client,
|
|
53886
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
54080
|
+
args: args76,
|
|
54081
|
+
tool: async (client, args77, ctx) => {
|
|
54082
|
+
const [result, apiCall] = await universalSupportedTokens(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53887
54083
|
if (!result.ok) {
|
|
53888
54084
|
return {
|
|
53889
54085
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53898,9 +54094,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
53898
54094
|
|
|
53899
54095
|
// src/funcs/universalUnwrapWeth.ts
|
|
53900
54096
|
function universalUnwrapWeth(client, request, options) {
|
|
53901
|
-
return new APIPromise($
|
|
54097
|
+
return new APIPromise($do77(client, request, options));
|
|
53902
54098
|
}
|
|
53903
|
-
async function $
|
|
54099
|
+
async function $do77(client, request, options) {
|
|
53904
54100
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53905
54101
|
if (!parsed.ok) {
|
|
53906
54102
|
return [parsed, { status: "invalid" }];
|
|
@@ -53971,12 +54167,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
53971
54167
|
});
|
|
53972
54168
|
|
|
53973
54169
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
53974
|
-
var
|
|
54170
|
+
var args77, tool$universalUnwrapWeth;
|
|
53975
54171
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
53976
54172
|
init_universalUnwrapWeth();
|
|
53977
54173
|
init_components();
|
|
53978
54174
|
init_tools();
|
|
53979
|
-
|
|
54175
|
+
args77 = {
|
|
53980
54176
|
request: UnwrapWethRequest$inboundSchema
|
|
53981
54177
|
};
|
|
53982
54178
|
tool$universalUnwrapWeth = {
|
|
@@ -53985,9 +54181,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
53985
54181
|
|
|
53986
54182
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
53987
54183
|
can be used for gas and other native purposes.`,
|
|
53988
|
-
args:
|
|
53989
|
-
tool: async (client,
|
|
53990
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
54184
|
+
args: args77,
|
|
54185
|
+
tool: async (client, args78, ctx) => {
|
|
54186
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53991
54187
|
if (!result.ok) {
|
|
53992
54188
|
return {
|
|
53993
54189
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54002,9 +54198,9 @@ can be used for gas and other native purposes.`,
|
|
|
54002
54198
|
|
|
54003
54199
|
// src/funcs/universalVisualizePortfolio.ts
|
|
54004
54200
|
function universalVisualizePortfolio(client, request, options) {
|
|
54005
|
-
return new APIPromise($
|
|
54201
|
+
return new APIPromise($do78(client, request, options));
|
|
54006
54202
|
}
|
|
54007
|
-
async function $
|
|
54203
|
+
async function $do78(client, request, options) {
|
|
54008
54204
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54009
54205
|
if (!parsed.ok) {
|
|
54010
54206
|
return [parsed, { status: "invalid" }];
|
|
@@ -54080,12 +54276,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
54080
54276
|
});
|
|
54081
54277
|
|
|
54082
54278
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
54083
|
-
var
|
|
54279
|
+
var args78, tool$universalVisualizePortfolio;
|
|
54084
54280
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
54085
54281
|
init_universalVisualizePortfolio();
|
|
54086
54282
|
init_operations();
|
|
54087
54283
|
init_tools();
|
|
54088
|
-
|
|
54284
|
+
args78 = {
|
|
54089
54285
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
54090
54286
|
};
|
|
54091
54287
|
tool$universalVisualizePortfolio = {
|
|
@@ -54097,9 +54293,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
54097
54293
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
54098
54294
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
54099
54295
|
USD.`,
|
|
54100
|
-
args:
|
|
54101
|
-
tool: async (client,
|
|
54102
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
54296
|
+
args: args78,
|
|
54297
|
+
tool: async (client, args79, ctx) => {
|
|
54298
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54103
54299
|
if (!result.ok) {
|
|
54104
54300
|
return {
|
|
54105
54301
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54114,9 +54310,9 @@ USD.`,
|
|
|
54114
54310
|
|
|
54115
54311
|
// src/funcs/universalWrapEth.ts
|
|
54116
54312
|
function universalWrapEth(client, request, options) {
|
|
54117
|
-
return new APIPromise($
|
|
54313
|
+
return new APIPromise($do79(client, request, options));
|
|
54118
54314
|
}
|
|
54119
|
-
async function $
|
|
54315
|
+
async function $do79(client, request, options) {
|
|
54120
54316
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54121
54317
|
if (!parsed.ok) {
|
|
54122
54318
|
return [parsed, { status: "invalid" }];
|
|
@@ -54187,12 +54383,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
54187
54383
|
});
|
|
54188
54384
|
|
|
54189
54385
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
54190
|
-
var
|
|
54386
|
+
var args79, tool$universalWrapEth;
|
|
54191
54387
|
var init_universalWrapEth2 = __esm(() => {
|
|
54192
54388
|
init_universalWrapEth();
|
|
54193
54389
|
init_components();
|
|
54194
54390
|
init_tools();
|
|
54195
|
-
|
|
54391
|
+
args79 = {
|
|
54196
54392
|
request: WrapEthRequest$inboundSchema
|
|
54197
54393
|
};
|
|
54198
54394
|
tool$universalWrapEth = {
|
|
@@ -54201,9 +54397,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
54201
54397
|
|
|
54202
54398
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
54203
54399
|
it to be traded on DeFi protocols.`,
|
|
54204
|
-
args:
|
|
54205
|
-
tool: async (client,
|
|
54206
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
54400
|
+
args: args79,
|
|
54401
|
+
tool: async (client, args80, ctx) => {
|
|
54402
|
+
const [result, apiCall] = await universalWrapEth(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54207
54403
|
if (!result.ok) {
|
|
54208
54404
|
return {
|
|
54209
54405
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54220,7 +54416,7 @@ it to be traded on DeFi protocols.`,
|
|
|
54220
54416
|
function createMCPServer(deps) {
|
|
54221
54417
|
const server = new McpServer({
|
|
54222
54418
|
name: "CompassApiSDK",
|
|
54223
|
-
version: "0.5.
|
|
54419
|
+
version: "0.5.49"
|
|
54224
54420
|
});
|
|
54225
54421
|
const client = new CompassApiSDKCore({
|
|
54226
54422
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -54234,6 +54430,7 @@ function createMCPServer(deps) {
|
|
|
54234
54430
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
54235
54431
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
54236
54432
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
54433
|
+
tool(tool$aaveV3AaveSupportedTokens);
|
|
54237
54434
|
tool(tool$aaveV3Rate);
|
|
54238
54435
|
tool(tool$aaveV3AvgRate);
|
|
54239
54436
|
tool(tool$aaveV3StdRate);
|
|
@@ -54319,6 +54516,7 @@ var init_server2 = __esm(() => {
|
|
|
54319
54516
|
init_core();
|
|
54320
54517
|
init_resources();
|
|
54321
54518
|
init_tools();
|
|
54519
|
+
init_aaveV3AaveSupportedTokens2();
|
|
54322
54520
|
init_aaveV3AvgRate2();
|
|
54323
54521
|
init_aaveV3Borrow2();
|
|
54324
54522
|
init_aaveV3HistoricalTransactions2();
|
|
@@ -55592,7 +55790,7 @@ var routes = ln({
|
|
|
55592
55790
|
var app = _e(routes, {
|
|
55593
55791
|
name: "mcp",
|
|
55594
55792
|
versionInfo: {
|
|
55595
|
-
currentVersion: "0.5.
|
|
55793
|
+
currentVersion: "0.5.49"
|
|
55596
55794
|
}
|
|
55597
55795
|
});
|
|
55598
55796
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -55600,5 +55798,5 @@ export {
|
|
|
55600
55798
|
app
|
|
55601
55799
|
};
|
|
55602
55800
|
|
|
55603
|
-
//# debugId=
|
|
55801
|
+
//# debugId=4B054E79943581CE64756E2164756E21
|
|
55604
55802
|
//# sourceMappingURL=mcp-server.js.map
|