@compass-labs/api-sdk 0.5.3 → 0.5.4

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