@compass-labs/api-sdk 0.1.5 → 0.1.6

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 (102) hide show
  1. package/README.md +5 -0
  2. package/bin/mcp-server.js +400 -222
  3. package/bin/mcp-server.js.map +13 -9
  4. package/dist/commonjs/funcs/pendleAccruedInterest.d.ts +15 -0
  5. package/dist/commonjs/funcs/pendleAccruedInterest.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/pendleAccruedInterest.js +119 -0
  7. package/dist/commonjs/funcs/pendleAccruedInterest.js.map +1 -0
  8. package/dist/commonjs/lib/config.d.ts +2 -2
  9. package/dist/commonjs/lib/config.js +2 -2
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  12. package/dist/commonjs/mcp-server/server.js +3 -1
  13. package/dist/commonjs/mcp-server/server.js.map +1 -1
  14. package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.d.ts +8 -0
  15. package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.d.ts.map +1 -0
  16. package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.js +62 -0
  17. package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.js.map +1 -0
  18. package/dist/commonjs/models/components/contractname.d.ts +6 -0
  19. package/dist/commonjs/models/components/contractname.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/contractname.js +2 -0
  21. package/dist/commonjs/models/components/contractname.js.map +1 -1
  22. package/dist/commonjs/models/components/index.d.ts +1 -0
  23. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/index.js +1 -0
  25. package/dist/commonjs/models/components/index.js.map +1 -1
  26. package/dist/commonjs/models/components/pendleaccruedinterestresponse.d.ts +32 -0
  27. package/dist/commonjs/models/components/pendleaccruedinterestresponse.d.ts.map +1 -0
  28. package/dist/commonjs/models/components/pendleaccruedinterestresponse.js +78 -0
  29. package/dist/commonjs/models/components/pendleaccruedinterestresponse.js.map +1 -0
  30. package/dist/commonjs/models/operations/index.d.ts +1 -0
  31. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  32. package/dist/commonjs/models/operations/index.js +1 -0
  33. package/dist/commonjs/models/operations/index.js.map +1 -1
  34. package/dist/commonjs/models/operations/pendleaccruedinterest.d.ts +77 -0
  35. package/dist/commonjs/models/operations/pendleaccruedinterest.d.ts.map +1 -0
  36. package/dist/commonjs/models/operations/pendleaccruedinterest.js +107 -0
  37. package/dist/commonjs/models/operations/pendleaccruedinterest.js.map +1 -0
  38. package/dist/commonjs/sdk/pendle.d.ts +10 -0
  39. package/dist/commonjs/sdk/pendle.d.ts.map +1 -0
  40. package/dist/commonjs/sdk/pendle.js +19 -0
  41. package/dist/commonjs/sdk/pendle.js.map +1 -0
  42. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  43. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  44. package/dist/commonjs/sdk/sdk.js +4 -0
  45. package/dist/commonjs/sdk/sdk.js.map +1 -1
  46. package/dist/esm/funcs/pendleAccruedInterest.d.ts +15 -0
  47. package/dist/esm/funcs/pendleAccruedInterest.d.ts.map +1 -0
  48. package/dist/esm/funcs/pendleAccruedInterest.js +83 -0
  49. package/dist/esm/funcs/pendleAccruedInterest.js.map +1 -0
  50. package/dist/esm/lib/config.d.ts +2 -2
  51. package/dist/esm/lib/config.js +2 -2
  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/pendleAccruedInterest.d.ts +8 -0
  57. package/dist/esm/mcp-server/tools/pendleAccruedInterest.d.ts.map +1 -0
  58. package/dist/esm/mcp-server/tools/pendleAccruedInterest.js +26 -0
  59. package/dist/esm/mcp-server/tools/pendleAccruedInterest.js.map +1 -0
  60. package/dist/esm/models/components/contractname.d.ts +6 -0
  61. package/dist/esm/models/components/contractname.d.ts.map +1 -1
  62. package/dist/esm/models/components/contractname.js +2 -0
  63. package/dist/esm/models/components/contractname.js.map +1 -1
  64. package/dist/esm/models/components/index.d.ts +1 -0
  65. package/dist/esm/models/components/index.d.ts.map +1 -1
  66. package/dist/esm/models/components/index.js +1 -0
  67. package/dist/esm/models/components/index.js.map +1 -1
  68. package/dist/esm/models/components/pendleaccruedinterestresponse.d.ts +32 -0
  69. package/dist/esm/models/components/pendleaccruedinterestresponse.d.ts.map +1 -0
  70. package/dist/esm/models/components/pendleaccruedinterestresponse.js +40 -0
  71. package/dist/esm/models/components/pendleaccruedinterestresponse.js.map +1 -0
  72. package/dist/esm/models/operations/index.d.ts +1 -0
  73. package/dist/esm/models/operations/index.d.ts.map +1 -1
  74. package/dist/esm/models/operations/index.js +1 -0
  75. package/dist/esm/models/operations/index.js.map +1 -1
  76. package/dist/esm/models/operations/pendleaccruedinterest.d.ts +77 -0
  77. package/dist/esm/models/operations/pendleaccruedinterest.d.ts.map +1 -0
  78. package/dist/esm/models/operations/pendleaccruedinterest.js +69 -0
  79. package/dist/esm/models/operations/pendleaccruedinterest.js.map +1 -0
  80. package/dist/esm/sdk/pendle.d.ts +10 -0
  81. package/dist/esm/sdk/pendle.d.ts.map +1 -0
  82. package/dist/esm/sdk/pendle.js +15 -0
  83. package/dist/esm/sdk/pendle.js.map +1 -0
  84. package/dist/esm/sdk/sdk.d.ts +3 -0
  85. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  86. package/dist/esm/sdk/sdk.js +4 -0
  87. package/dist/esm/sdk/sdk.js.map +1 -1
  88. package/docs/sdks/pendle/README.md +89 -0
  89. package/jsr.json +1 -1
  90. package/package.json +1 -1
  91. package/src/funcs/pendleAccruedInterest.ts +168 -0
  92. package/src/lib/config.ts +2 -2
  93. package/src/mcp-server/mcp-server.ts +1 -1
  94. package/src/mcp-server/server.ts +3 -1
  95. package/src/mcp-server/tools/pendleAccruedInterest.ts +35 -0
  96. package/src/models/components/contractname.ts +2 -0
  97. package/src/models/components/index.ts +1 -0
  98. package/src/models/components/pendleaccruedinterestresponse.ts +80 -0
  99. package/src/models/operations/index.ts +1 -0
  100. package/src/models/operations/pendleaccruedinterest.ts +139 -0
  101. package/src/sdk/pendle.ts +25 -0
  102. package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js CHANGED
@@ -34229,9 +34229,9 @@ var init_config = __esm(() => {
34229
34229
  SDK_METADATA = {
34230
34230
  language: "typescript",
34231
34231
  openapiDocVersion: "0.0.1",
34232
- sdkVersion: "0.1.5",
34232
+ sdkVersion: "0.1.6",
34233
34233
  genVersion: "2.610.0",
34234
- userAgent: "speakeasy-sdk/typescript 0.1.5 2.610.0 0.0.1 @compass-labs/api-sdk"
34234
+ userAgent: "speakeasy-sdk/typescript 0.1.6 2.610.0 0.0.1 @compass-labs/api-sdk"
34235
34235
  };
34236
34236
  });
34237
34237
 
@@ -37563,6 +37563,8 @@ var init_contractname = __esm(() => {
37563
37563
  SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
37564
37564
  SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
37565
37565
  SkyUsdsVault: "SkyUsdsVault",
37566
+ PendleYt: "PendleYt",
37567
+ PendleMarket: "PendleMarket",
37566
37568
  Multicall: "Multicall"
37567
37569
  };
37568
37570
  ContractName$inboundSchema = nativeEnumType(ContractName);
@@ -40072,6 +40074,31 @@ var init_multicallexecuterequest = __esm(() => {
40072
40074
  })(MulticallExecuteRequest$ ||= {});
40073
40075
  });
40074
40076
 
40077
+ // src/models/components/pendleaccruedinterestresponse.ts
40078
+ var PendleAccruedInterestResponse$inboundSchema, PendleAccruedInterestResponse$outboundSchema, PendleAccruedInterestResponse$;
40079
+ var init_pendleaccruedinterestresponse = __esm(() => {
40080
+ init_esm();
40081
+ init_primitives();
40082
+ PendleAccruedInterestResponse$inboundSchema = objectType({
40083
+ accrued_interest: numberType().int()
40084
+ }).transform((v2) => {
40085
+ return remap(v2, {
40086
+ accrued_interest: "accruedInterest"
40087
+ });
40088
+ });
40089
+ PendleAccruedInterestResponse$outboundSchema = objectType({
40090
+ accruedInterest: numberType().int()
40091
+ }).transform((v2) => {
40092
+ return remap(v2, {
40093
+ accruedInterest: "accrued_interest"
40094
+ });
40095
+ });
40096
+ ((PendleAccruedInterestResponse$) => {
40097
+ PendleAccruedInterestResponse$.inboundSchema = PendleAccruedInterestResponse$inboundSchema;
40098
+ PendleAccruedInterestResponse$.outboundSchema = PendleAccruedInterestResponse$outboundSchema;
40099
+ })(PendleAccruedInterestResponse$ ||= {});
40100
+ });
40101
+
40075
40102
  // src/models/components/tokenbalance.ts
40076
40103
  var TokenBalance$inboundSchema, TokenBalance$outboundSchema, TokenBalance$;
40077
40104
  var init_tokenbalance = __esm(() => {
@@ -41221,6 +41248,7 @@ var init_components = __esm(() => {
41221
41248
  init_multicallauthorizationrequest();
41222
41249
  init_multicallauthorizationresponse();
41223
41250
  init_multicallexecuterequest();
41251
+ init_pendleaccruedinterestresponse();
41224
41252
  init_portfolio();
41225
41253
  init_redeemunderlying();
41226
41254
  init_repay();
@@ -42662,6 +42690,48 @@ var init_morphovaults = __esm(() => {
42662
42690
  })(MorphoVaultsRequest$ ||= {});
42663
42691
  });
42664
42692
 
42693
+ // src/models/operations/pendleaccruedinterest.ts
42694
+ var PendleAccruedInterestChain, PendleAccruedInterestChain$inboundSchema, PendleAccruedInterestChain$outboundSchema, PendleAccruedInterestChain$, PendleAccruedInterestRequest$inboundSchema, PendleAccruedInterestRequest$outboundSchema, PendleAccruedInterestRequest$;
42695
+ var init_pendleaccruedinterest = __esm(() => {
42696
+ init_esm();
42697
+ init_primitives();
42698
+ PendleAccruedInterestChain = {
42699
+ BaseMainnet: "base:mainnet",
42700
+ EthereumMainnet: "ethereum:mainnet",
42701
+ ArbitrumMainnet: "arbitrum:mainnet"
42702
+ };
42703
+ PendleAccruedInterestChain$inboundSchema = nativeEnumType(PendleAccruedInterestChain);
42704
+ PendleAccruedInterestChain$outboundSchema = PendleAccruedInterestChain$inboundSchema;
42705
+ ((PendleAccruedInterestChain$) => {
42706
+ PendleAccruedInterestChain$.inboundSchema = PendleAccruedInterestChain$inboundSchema;
42707
+ PendleAccruedInterestChain$.outboundSchema = PendleAccruedInterestChain$outboundSchema;
42708
+ })(PendleAccruedInterestChain$ ||= {});
42709
+ PendleAccruedInterestRequest$inboundSchema = objectType({
42710
+ chain: PendleAccruedInterestChain$inboundSchema.default("arbitrum:mainnet"),
42711
+ market_address: stringType().default("0xff4d6991658c5844856faef5da9232c252896fca"),
42712
+ user_address: stringType().default("0xebdddbafc3fc3742fe2a3cfec17a20a50e84d598")
42713
+ }).transform((v2) => {
42714
+ return remap(v2, {
42715
+ market_address: "marketAddress",
42716
+ user_address: "userAddress"
42717
+ });
42718
+ });
42719
+ PendleAccruedInterestRequest$outboundSchema = objectType({
42720
+ chain: PendleAccruedInterestChain$outboundSchema.default("arbitrum:mainnet"),
42721
+ marketAddress: stringType().default("0xff4d6991658c5844856faef5da9232c252896fca"),
42722
+ userAddress: stringType().default("0xebdddbafc3fc3742fe2a3cfec17a20a50e84d598")
42723
+ }).transform((v2) => {
42724
+ return remap(v2, {
42725
+ marketAddress: "market_address",
42726
+ userAddress: "user_address"
42727
+ });
42728
+ });
42729
+ ((PendleAccruedInterestRequest$) => {
42730
+ PendleAccruedInterestRequest$.inboundSchema = PendleAccruedInterestRequest$inboundSchema;
42731
+ PendleAccruedInterestRequest$.outboundSchema = PendleAccruedInterestRequest$outboundSchema;
42732
+ })(PendleAccruedInterestRequest$ ||= {});
42733
+ });
42734
+
42665
42735
  // src/models/operations/skyposition.ts
42666
42736
  var SkyPositionRequest$inboundSchema, SkyPositionRequest$outboundSchema, SkyPositionRequest$;
42667
42737
  var init_skyposition = __esm(() => {
@@ -43481,6 +43551,7 @@ var init_operations = __esm(() => {
43481
43551
  init_morphovault2();
43482
43552
  init_morphovaultposition();
43483
43553
  init_morphovaults();
43554
+ init_pendleaccruedinterest();
43484
43555
  init_skyposition();
43485
43556
  init_tokenaddress();
43486
43557
  init_tokenbalance2();
@@ -47269,11 +47340,116 @@ as long as the blockchain it is deployed on is live.`,
47269
47340
  };
47270
47341
  });
47271
47342
 
47272
- // src/funcs/skyBuy.ts
47273
- function skyBuy(client, request, options) {
47343
+ // src/funcs/pendleAccruedInterest.ts
47344
+ function pendleAccruedInterest(client, request, options) {
47274
47345
  return new APIPromise($do35(client, request, options));
47275
47346
  }
47276
47347
  async function $do35(client, request, options) {
47348
+ const parsed = safeParse(request, (value) => PendleAccruedInterestRequest$outboundSchema.parse(value), "Input validation failed");
47349
+ if (!parsed.ok) {
47350
+ return [parsed, { status: "invalid" }];
47351
+ }
47352
+ const payload = parsed.value;
47353
+ const body = null;
47354
+ const path = pathToFunc("/v0/pendle/accrued_interest")();
47355
+ const query = encodeFormQuery({
47356
+ chain: payload.chain,
47357
+ market_address: payload.market_address,
47358
+ user_address: payload.user_address
47359
+ });
47360
+ const headers = new Headers(compactMap({
47361
+ Accept: "application/json"
47362
+ }));
47363
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
47364
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
47365
+ const requestSecurity = resolveGlobalSecurity(securityInput);
47366
+ const context = {
47367
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
47368
+ operationID: "pendle_accrued_interest",
47369
+ oAuth2Scopes: [],
47370
+ resolvedSecurity: requestSecurity,
47371
+ securitySource: client._options.apiKeyAuth,
47372
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
47373
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
47374
+ };
47375
+ const requestRes = client._createRequest(context, {
47376
+ security: requestSecurity,
47377
+ method: "GET",
47378
+ baseURL: options?.serverURL,
47379
+ path,
47380
+ headers,
47381
+ query,
47382
+ body,
47383
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47384
+ }, options);
47385
+ if (!requestRes.ok) {
47386
+ return [requestRes, { status: "invalid" }];
47387
+ }
47388
+ const req = requestRes.value;
47389
+ const doResult = await client._do(req, {
47390
+ context,
47391
+ errorCodes: ["422", "4XX", "5XX"],
47392
+ retryConfig: context.retryConfig,
47393
+ retryCodes: context.retryCodes
47394
+ });
47395
+ if (!doResult.ok) {
47396
+ return [doResult, { status: "request-error", request: req }];
47397
+ }
47398
+ const response = doResult.value;
47399
+ const responseFields = {
47400
+ HttpMeta: { Response: response, Request: req }
47401
+ };
47402
+ const [result] = await match(json(200, PendleAccruedInterestResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
47403
+ if (!result.ok) {
47404
+ return [result, { status: "complete", request: req, response }];
47405
+ }
47406
+ return [result, { status: "complete", request: req, response }];
47407
+ }
47408
+ var init_pendleAccruedInterest = __esm(() => {
47409
+ init_encodings();
47410
+ init_matchers();
47411
+ init_primitives();
47412
+ init_schemas();
47413
+ init_security();
47414
+ init_url();
47415
+ init_components();
47416
+ init_errors2();
47417
+ init_operations();
47418
+ init_async();
47419
+ });
47420
+
47421
+ // src/mcp-server/tools/pendleAccruedInterest.ts
47422
+ var args35, tool$pendleAccruedInterest;
47423
+ var init_pendleAccruedInterest2 = __esm(() => {
47424
+ init_pendleAccruedInterest();
47425
+ init_operations();
47426
+ init_tools();
47427
+ args35 = {
47428
+ request: PendleAccruedInterestRequest$inboundSchema
47429
+ };
47430
+ tool$pendleAccruedInterest = {
47431
+ name: "pendle-accrued-interest",
47432
+ description: `Get Accrued Interest`,
47433
+ args: args35,
47434
+ tool: async (client, args36, ctx) => {
47435
+ const [result, apiCall] = await pendleAccruedInterest(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47436
+ if (!result.ok) {
47437
+ return {
47438
+ content: [{ type: "text", text: result.error.message }],
47439
+ isError: true
47440
+ };
47441
+ }
47442
+ const value = result.value;
47443
+ return formatResult(value, apiCall);
47444
+ }
47445
+ };
47446
+ });
47447
+
47448
+ // src/funcs/skyBuy.ts
47449
+ function skyBuy(client, request, options) {
47450
+ return new APIPromise($do36(client, request, options));
47451
+ }
47452
+ async function $do36(client, request, options) {
47277
47453
  const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
47278
47454
  if (!parsed.ok) {
47279
47455
  return [parsed, { status: "invalid" }];
@@ -47342,12 +47518,12 @@ var init_skyBuy = __esm(() => {
47342
47518
  });
47343
47519
 
47344
47520
  // src/mcp-server/tools/skyBuy.ts
47345
- var args35, tool$skyBuy;
47521
+ var args36, tool$skyBuy;
47346
47522
  var init_skyBuy2 = __esm(() => {
47347
47523
  init_skyBuy();
47348
47524
  init_components();
47349
47525
  init_tools();
47350
- args35 = {
47526
+ args36 = {
47351
47527
  request: SkyBuyRequest$inboundSchema
47352
47528
  };
47353
47529
  tool$skyBuy = {
@@ -47361,9 +47537,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
47361
47537
 
47362
47538
  If buying with USDC, user will need to set an allowance on the USDC contract for the
47363
47539
  'SkyDaiUsdsConverter' contract beforehand.`,
47364
- args: args35,
47365
- tool: async (client, args36, ctx) => {
47366
- const [result, apiCall] = await skyBuy(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47540
+ args: args36,
47541
+ tool: async (client, args37, ctx) => {
47542
+ const [result, apiCall] = await skyBuy(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47367
47543
  if (!result.ok) {
47368
47544
  return {
47369
47545
  content: [{ type: "text", text: result.error.message }],
@@ -47378,9 +47554,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
47378
47554
 
47379
47555
  // src/funcs/skyDeposit.ts
47380
47556
  function skyDeposit(client, request, options) {
47381
- return new APIPromise($do36(client, request, options));
47557
+ return new APIPromise($do37(client, request, options));
47382
47558
  }
47383
- async function $do36(client, request, options) {
47559
+ async function $do37(client, request, options) {
47384
47560
  const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
47385
47561
  if (!parsed.ok) {
47386
47562
  return [parsed, { status: "invalid" }];
@@ -47449,12 +47625,12 @@ var init_skyDeposit = __esm(() => {
47449
47625
  });
47450
47626
 
47451
47627
  // src/mcp-server/tools/skyDeposit.ts
47452
- var args36, tool$skyDeposit;
47628
+ var args37, tool$skyDeposit;
47453
47629
  var init_skyDeposit2 = __esm(() => {
47454
47630
  init_skyDeposit();
47455
47631
  init_components();
47456
47632
  init_tools();
47457
- args36 = {
47633
+ args37 = {
47458
47634
  request: SkyDepositRequest$inboundSchema
47459
47635
  };
47460
47636
  tool$skyDeposit = {
@@ -47464,9 +47640,9 @@ var init_skyDeposit2 = __esm(() => {
47464
47640
  Deposit USDS for sUSDS to earn yield.
47465
47641
 
47466
47642
  There are no fees.`,
47467
- args: args36,
47468
- tool: async (client, args37, ctx) => {
47469
- const [result, apiCall] = await skyDeposit(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47643
+ args: args37,
47644
+ tool: async (client, args38, ctx) => {
47645
+ const [result, apiCall] = await skyDeposit(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47470
47646
  if (!result.ok) {
47471
47647
  return {
47472
47648
  content: [{ type: "text", text: result.error.message }],
@@ -47481,9 +47657,9 @@ There are no fees.`,
47481
47657
 
47482
47658
  // src/funcs/skyPosition.ts
47483
47659
  function skyPosition(client, request, options) {
47484
- return new APIPromise($do37(client, request, options));
47660
+ return new APIPromise($do38(client, request, options));
47485
47661
  }
47486
- async function $do37(client, request, options) {
47662
+ async function $do38(client, request, options) {
47487
47663
  const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
47488
47664
  if (!parsed.ok) {
47489
47665
  return [parsed, { status: "invalid" }];
@@ -47557,12 +47733,12 @@ var init_skyPosition = __esm(() => {
47557
47733
  });
47558
47734
 
47559
47735
  // src/mcp-server/tools/skyPosition.ts
47560
- var args37, tool$skyPosition;
47736
+ var args38, tool$skyPosition;
47561
47737
  var init_skyPosition2 = __esm(() => {
47562
47738
  init_skyPosition();
47563
47739
  init_operations();
47564
47740
  init_tools();
47565
- args37 = {
47741
+ args38 = {
47566
47742
  request: SkyPositionRequest$inboundSchema
47567
47743
  };
47568
47744
  tool$skyPosition = {
@@ -47570,9 +47746,9 @@ var init_skyPosition2 = __esm(() => {
47570
47746
  description: `Check USDS Position
47571
47747
 
47572
47748
  Check the USDS overall position.`,
47573
- args: args37,
47574
- tool: async (client, args38, ctx) => {
47575
- const [result, apiCall] = await skyPosition(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47749
+ args: args38,
47750
+ tool: async (client, args39, ctx) => {
47751
+ const [result, apiCall] = await skyPosition(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47576
47752
  if (!result.ok) {
47577
47753
  return {
47578
47754
  content: [{ type: "text", text: result.error.message }],
@@ -47587,9 +47763,9 @@ Check the USDS overall position.`,
47587
47763
 
47588
47764
  // src/funcs/skySell.ts
47589
47765
  function skySell(client, request, options) {
47590
- return new APIPromise($do38(client, request, options));
47766
+ return new APIPromise($do39(client, request, options));
47591
47767
  }
47592
- async function $do38(client, request, options) {
47768
+ async function $do39(client, request, options) {
47593
47769
  const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
47594
47770
  if (!parsed.ok) {
47595
47771
  return [parsed, { status: "invalid" }];
@@ -47658,12 +47834,12 @@ var init_skySell = __esm(() => {
47658
47834
  });
47659
47835
 
47660
47836
  // src/mcp-server/tools/skySell.ts
47661
- var args38, tool$skySell;
47837
+ var args39, tool$skySell;
47662
47838
  var init_skySell2 = __esm(() => {
47663
47839
  init_skySell();
47664
47840
  init_components();
47665
47841
  init_tools();
47666
- args38 = {
47842
+ args39 = {
47667
47843
  request: SkySellRequest$inboundSchema
47668
47844
  };
47669
47845
  tool$skySell = {
@@ -47677,9 +47853,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
47677
47853
 
47678
47854
  If swapping to USDC, user will need to set an allowance on the USDS contract for the
47679
47855
  'SkyUsdcUsdsConverter' contract beforehand.`,
47680
- args: args38,
47681
- tool: async (client, args39, ctx) => {
47682
- const [result, apiCall] = await skySell(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47856
+ args: args39,
47857
+ tool: async (client, args40, ctx) => {
47858
+ const [result, apiCall] = await skySell(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47683
47859
  if (!result.ok) {
47684
47860
  return {
47685
47861
  content: [{ type: "text", text: result.error.message }],
@@ -47694,9 +47870,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
47694
47870
 
47695
47871
  // src/funcs/skyWithdraw.ts
47696
47872
  function skyWithdraw(client, request, options) {
47697
- return new APIPromise($do39(client, request, options));
47873
+ return new APIPromise($do40(client, request, options));
47698
47874
  }
47699
- async function $do39(client, request, options) {
47875
+ async function $do40(client, request, options) {
47700
47876
  const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
47701
47877
  if (!parsed.ok) {
47702
47878
  return [parsed, { status: "invalid" }];
@@ -47765,12 +47941,12 @@ var init_skyWithdraw = __esm(() => {
47765
47941
  });
47766
47942
 
47767
47943
  // src/mcp-server/tools/skyWithdraw.ts
47768
- var args39, tool$skyWithdraw;
47944
+ var args40, tool$skyWithdraw;
47769
47945
  var init_skyWithdraw2 = __esm(() => {
47770
47946
  init_skyWithdraw();
47771
47947
  init_components();
47772
47948
  init_tools();
47773
- args39 = {
47949
+ args40 = {
47774
47950
  request: SkyWithdrawRequest$inboundSchema
47775
47951
  };
47776
47952
  tool$skyWithdraw = {
@@ -47778,9 +47954,9 @@ var init_skyWithdraw2 = __esm(() => {
47778
47954
  description: `Withdraw USDS
47779
47955
 
47780
47956
  Withdraw USDS for sUSDS to stop earning yield.`,
47781
- args: args39,
47782
- tool: async (client, args40, ctx) => {
47783
- const [result, apiCall] = await skyWithdraw(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47957
+ args: args40,
47958
+ tool: async (client, args41, ctx) => {
47959
+ const [result, apiCall] = await skyWithdraw(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47784
47960
  if (!result.ok) {
47785
47961
  return {
47786
47962
  content: [{ type: "text", text: result.error.message }],
@@ -47795,9 +47971,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
47795
47971
 
47796
47972
  // src/funcs/smartAccountAccountBatchedUserOperations.ts
47797
47973
  function smartAccountAccountBatchedUserOperations(client, request, options) {
47798
- return new APIPromise($do40(client, request, options));
47974
+ return new APIPromise($do41(client, request, options));
47799
47975
  }
47800
- async function $do40(client, request, options) {
47976
+ async function $do41(client, request, options) {
47801
47977
  const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
47802
47978
  if (!parsed.ok) {
47803
47979
  return [parsed, { status: "invalid" }];
@@ -47866,12 +48042,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
47866
48042
  });
47867
48043
 
47868
48044
  // src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
47869
- var args40, tool$smartAccountAccountBatchedUserOperations;
48045
+ var args41, tool$smartAccountAccountBatchedUserOperations;
47870
48046
  var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
47871
48047
  init_smartAccountAccountBatchedUserOperations();
47872
48048
  init_components();
47873
48049
  init_tools();
47874
- args40 = {
48050
+ args41 = {
47875
48051
  request: BatchedUserOperationsRequest$inboundSchema
47876
48052
  };
47877
48053
  tool$smartAccountAccountBatchedUserOperations = {
@@ -47879,9 +48055,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
47879
48055
  description: `Get Smart Account Batched User Operations
47880
48056
 
47881
48057
  Generate a list of user operations for smart account batching.`,
47882
- args: args40,
47883
- tool: async (client, args41, ctx) => {
47884
- const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48058
+ args: args41,
48059
+ tool: async (client, args42, ctx) => {
48060
+ const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47885
48061
  if (!result.ok) {
47886
48062
  return {
47887
48063
  content: [{ type: "text", text: result.error.message }],
@@ -47896,9 +48072,9 @@ Generate a list of user operations for smart account batching.`,
47896
48072
 
47897
48073
  // src/funcs/tokenAddress.ts
47898
48074
  function tokenAddress(client, request, options) {
47899
- return new APIPromise($do41(client, request, options));
48075
+ return new APIPromise($do42(client, request, options));
47900
48076
  }
47901
- async function $do41(client, request, options) {
48077
+ async function $do42(client, request, options) {
47902
48078
  const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
47903
48079
  if (!parsed.ok) {
47904
48080
  return [parsed, { status: "invalid" }];
@@ -47972,12 +48148,12 @@ var init_tokenAddress = __esm(() => {
47972
48148
  });
47973
48149
 
47974
48150
  // src/mcp-server/tools/tokenAddress.ts
47975
- var args41, tool$tokenAddress;
48151
+ var args42, tool$tokenAddress;
47976
48152
  var init_tokenAddress2 = __esm(() => {
47977
48153
  init_tokenAddress();
47978
48154
  init_operations();
47979
48155
  init_tools();
47980
- args41 = {
48156
+ args42 = {
47981
48157
  request: TokenAddressRequest$inboundSchema
47982
48158
  };
47983
48159
  tool$tokenAddress = {
@@ -47985,9 +48161,9 @@ var init_tokenAddress2 = __esm(() => {
47985
48161
  description: `Token Address
47986
48162
 
47987
48163
  This endpoint retrieves the address for a token supported by us.`,
47988
- args: args41,
47989
- tool: async (client, args42, ctx) => {
47990
- const [result, apiCall] = await tokenAddress(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48164
+ args: args42,
48165
+ tool: async (client, args43, ctx) => {
48166
+ const [result, apiCall] = await tokenAddress(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47991
48167
  if (!result.ok) {
47992
48168
  return {
47993
48169
  content: [{ type: "text", text: result.error.message }],
@@ -48002,9 +48178,9 @@ This endpoint retrieves the address for a token supported by us.`,
48002
48178
 
48003
48179
  // src/funcs/tokenBalance.ts
48004
48180
  function tokenBalance(client, request, options) {
48005
- return new APIPromise($do42(client, request, options));
48181
+ return new APIPromise($do43(client, request, options));
48006
48182
  }
48007
- async function $do42(client, request, options) {
48183
+ async function $do43(client, request, options) {
48008
48184
  const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
48009
48185
  if (!parsed.ok) {
48010
48186
  return [parsed, { status: "invalid" }];
@@ -48079,12 +48255,12 @@ var init_tokenBalance = __esm(() => {
48079
48255
  });
48080
48256
 
48081
48257
  // src/mcp-server/tools/tokenBalance.ts
48082
- var args42, tool$tokenBalance;
48258
+ var args43, tool$tokenBalance;
48083
48259
  var init_tokenBalance2 = __esm(() => {
48084
48260
  init_tokenBalance();
48085
48261
  init_operations();
48086
48262
  init_tools();
48087
- args42 = {
48263
+ args43 = {
48088
48264
  request: TokenBalanceRequest$inboundSchema
48089
48265
  };
48090
48266
  tool$tokenBalance = {
@@ -48092,9 +48268,9 @@ var init_tokenBalance2 = __esm(() => {
48092
48268
  description: `Token Balance
48093
48269
 
48094
48270
  Returns the balance of a specific ERC20 token for a given user address.`,
48095
- args: args42,
48096
- tool: async (client, args43, ctx) => {
48097
- const [result, apiCall] = await tokenBalance(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48271
+ args: args43,
48272
+ tool: async (client, args44, ctx) => {
48273
+ const [result, apiCall] = await tokenBalance(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48098
48274
  if (!result.ok) {
48099
48275
  return {
48100
48276
  content: [{ type: "text", text: result.error.message }],
@@ -48109,9 +48285,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
48109
48285
 
48110
48286
  // src/funcs/tokenPrice.ts
48111
48287
  function tokenPrice(client, request, options) {
48112
- return new APIPromise($do43(client, request, options));
48288
+ return new APIPromise($do44(client, request, options));
48113
48289
  }
48114
- async function $do43(client, request, options) {
48290
+ async function $do44(client, request, options) {
48115
48291
  const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
48116
48292
  if (!parsed.ok) {
48117
48293
  return [parsed, { status: "invalid" }];
@@ -48185,12 +48361,12 @@ var init_tokenPrice = __esm(() => {
48185
48361
  });
48186
48362
 
48187
48363
  // src/mcp-server/tools/tokenPrice.ts
48188
- var args43, tool$tokenPrice;
48364
+ var args44, tool$tokenPrice;
48189
48365
  var init_tokenPrice2 = __esm(() => {
48190
48366
  init_tokenPrice();
48191
48367
  init_operations();
48192
48368
  init_tools();
48193
- args43 = {
48369
+ args44 = {
48194
48370
  request: TokenPriceRequest$inboundSchema
48195
48371
  };
48196
48372
  tool$tokenPrice = {
@@ -48202,9 +48378,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
48202
48378
  Chainlink is a decentralized oracle that aggregates price data from off-chain
48203
48379
  sources. This ensures the price is tamper-resistant but the price might be stale
48204
48380
  with the update frequency of the oracle.`,
48205
- args: args43,
48206
- tool: async (client, args44, ctx) => {
48207
- const [result, apiCall] = await tokenPrice(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48381
+ args: args44,
48382
+ tool: async (client, args45, ctx) => {
48383
+ const [result, apiCall] = await tokenPrice(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48208
48384
  if (!result.ok) {
48209
48385
  return {
48210
48386
  content: [{ type: "text", text: result.error.message }],
@@ -48219,9 +48395,9 @@ with the update frequency of the oracle.`,
48219
48395
 
48220
48396
  // src/funcs/tokenTransfer.ts
48221
48397
  function tokenTransfer(client, request, options) {
48222
- return new APIPromise($do44(client, request, options));
48398
+ return new APIPromise($do45(client, request, options));
48223
48399
  }
48224
- async function $do44(client, request, options) {
48400
+ async function $do45(client, request, options) {
48225
48401
  const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
48226
48402
  if (!parsed.ok) {
48227
48403
  return [parsed, { status: "invalid" }];
@@ -48290,12 +48466,12 @@ var init_tokenTransfer = __esm(() => {
48290
48466
  });
48291
48467
 
48292
48468
  // src/mcp-server/tools/tokenTransfer.ts
48293
- var args44, tool$tokenTransfer;
48469
+ var args45, tool$tokenTransfer;
48294
48470
  var init_tokenTransfer2 = __esm(() => {
48295
48471
  init_tokenTransfer();
48296
48472
  init_components();
48297
48473
  init_tools();
48298
- args44 = {
48474
+ args45 = {
48299
48475
  request: TokenTransferRequest$inboundSchema
48300
48476
  };
48301
48477
  tool$tokenTransfer = {
@@ -48303,9 +48479,9 @@ var init_tokenTransfer2 = __esm(() => {
48303
48479
  description: `Transfer ETH or ERC20 Tokens.
48304
48480
 
48305
48481
  Sends native ETH or ERC20 tokens from the sender's address to another address.`,
48306
- args: args44,
48307
- tool: async (client, args45, ctx) => {
48308
- const [result, apiCall] = await tokenTransfer(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48482
+ args: args45,
48483
+ tool: async (client, args46, ctx) => {
48484
+ const [result, apiCall] = await tokenTransfer(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48309
48485
  if (!result.ok) {
48310
48486
  return {
48311
48487
  content: [{ type: "text", text: result.error.message }],
@@ -48320,9 +48496,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
48320
48496
 
48321
48497
  // src/funcs/transactionBatchingAaveLoop.ts
48322
48498
  function transactionBatchingAaveLoop(client, request, options) {
48323
- return new APIPromise($do45(client, request, options));
48499
+ return new APIPromise($do46(client, request, options));
48324
48500
  }
48325
- async function $do45(client, request, options) {
48501
+ async function $do46(client, request, options) {
48326
48502
  const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
48327
48503
  if (!parsed.ok) {
48328
48504
  return [parsed, { status: "invalid" }];
@@ -48391,12 +48567,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
48391
48567
  });
48392
48568
 
48393
48569
  // src/mcp-server/tools/transactionBatchingAaveLoop.ts
48394
- var args45, tool$transactionBatchingAaveLoop;
48570
+ var args46, tool$transactionBatchingAaveLoop;
48395
48571
  var init_transactionBatchingAaveLoop2 = __esm(() => {
48396
48572
  init_transactionBatchingAaveLoop();
48397
48573
  init_components();
48398
48574
  init_tools();
48399
- args45 = {
48575
+ args46 = {
48400
48576
  request: AaveLoopRequest$inboundSchema
48401
48577
  };
48402
48578
  tool$transactionBatchingAaveLoop = {
@@ -48414,9 +48590,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
48414
48590
  - Supplies the swapped tokens
48415
48591
 
48416
48592
  The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
48417
- args: args45,
48418
- tool: async (client, args46, ctx) => {
48419
- const [result, apiCall] = await transactionBatchingAaveLoop(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48593
+ args: args46,
48594
+ tool: async (client, args47, ctx) => {
48595
+ const [result, apiCall] = await transactionBatchingAaveLoop(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48420
48596
  if (!result.ok) {
48421
48597
  return {
48422
48598
  content: [{ type: "text", text: result.error.message }],
@@ -48431,9 +48607,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
48431
48607
 
48432
48608
  // src/funcs/transactionBatchingAuthorization.ts
48433
48609
  function transactionBatchingAuthorization(client, request, options) {
48434
- return new APIPromise($do46(client, request, options));
48610
+ return new APIPromise($do47(client, request, options));
48435
48611
  }
48436
- async function $do46(client, request, options) {
48612
+ async function $do47(client, request, options) {
48437
48613
  const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
48438
48614
  if (!parsed.ok) {
48439
48615
  return [parsed, { status: "invalid" }];
@@ -48502,12 +48678,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
48502
48678
  });
48503
48679
 
48504
48680
  // src/mcp-server/tools/transactionBatchingAuthorization.ts
48505
- var args46, tool$transactionBatchingAuthorization;
48681
+ var args47, tool$transactionBatchingAuthorization;
48506
48682
  var init_transactionBatchingAuthorization2 = __esm(() => {
48507
48683
  init_transactionBatchingAuthorization();
48508
48684
  init_components();
48509
48685
  init_tools();
48510
- args46 = {
48686
+ args47 = {
48511
48687
  request: MulticallAuthorizationRequest$inboundSchema
48512
48688
  };
48513
48689
  tool$transactionBatchingAuthorization = {
@@ -48520,9 +48696,9 @@ This authorization is required to prevent replay attacks and ensure transaction
48520
48696
  ordering when batching multiple actions into a single transaction. The authorization
48521
48697
  includes a nonce and chain ID to guarantee transaction uniqueness and proper network
48522
48698
  targeting.`,
48523
- args: args46,
48524
- tool: async (client, args47, ctx) => {
48525
- const [result, apiCall] = await transactionBatchingAuthorization(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48699
+ args: args47,
48700
+ tool: async (client, args48, ctx) => {
48701
+ const [result, apiCall] = await transactionBatchingAuthorization(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48526
48702
  if (!result.ok) {
48527
48703
  return {
48528
48704
  content: [{ type: "text", text: result.error.message }],
@@ -48537,9 +48713,9 @@ targeting.`,
48537
48713
 
48538
48714
  // src/funcs/transactionBatchingExecute.ts
48539
48715
  function transactionBatchingExecute(client, request, options) {
48540
- return new APIPromise($do47(client, request, options));
48716
+ return new APIPromise($do48(client, request, options));
48541
48717
  }
48542
- async function $do47(client, request, options) {
48718
+ async function $do48(client, request, options) {
48543
48719
  const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
48544
48720
  if (!parsed.ok) {
48545
48721
  return [parsed, { status: "invalid" }];
@@ -48608,12 +48784,12 @@ var init_transactionBatchingExecute = __esm(() => {
48608
48784
  });
48609
48785
 
48610
48786
  // src/mcp-server/tools/transactionBatchingExecute.ts
48611
- var args47, tool$transactionBatchingExecute;
48787
+ var args48, tool$transactionBatchingExecute;
48612
48788
  var init_transactionBatchingExecute2 = __esm(() => {
48613
48789
  init_transactionBatchingExecute();
48614
48790
  init_components();
48615
48791
  init_tools();
48616
- args47 = {
48792
+ args48 = {
48617
48793
  request: MulticallExecuteRequest$inboundSchema
48618
48794
  };
48619
48795
  tool$transactionBatchingExecute = {
@@ -48626,9 +48802,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
48626
48802
  transaction, reducing gas costs and ensuring all operations succeed or fail
48627
48803
  together. The transaction must be authorized using the /authorization endpoint to
48628
48804
  prevent replay attacks.`,
48629
- args: args47,
48630
- tool: async (client, args48, ctx) => {
48631
- const [result, apiCall] = await transactionBatchingExecute(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48805
+ args: args48,
48806
+ tool: async (client, args49, ctx) => {
48807
+ const [result, apiCall] = await transactionBatchingExecute(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48632
48808
  if (!result.ok) {
48633
48809
  return {
48634
48810
  content: [{ type: "text", text: result.error.message }],
@@ -48643,9 +48819,9 @@ prevent replay attacks.`,
48643
48819
 
48644
48820
  // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
48645
48821
  function uniswapV3LiquidityProvisionIncrease(client, request, options) {
48646
- return new APIPromise($do48(client, request, options));
48822
+ return new APIPromise($do49(client, request, options));
48647
48823
  }
48648
- async function $do48(client, request, options) {
48824
+ async function $do49(client, request, options) {
48649
48825
  const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
48650
48826
  if (!parsed.ok) {
48651
48827
  return [parsed, { status: "invalid" }];
@@ -48714,12 +48890,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
48714
48890
  });
48715
48891
 
48716
48892
  // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
48717
- var args48, tool$uniswapV3LiquidityProvisionIncrease;
48893
+ var args49, tool$uniswapV3LiquidityProvisionIncrease;
48718
48894
  var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
48719
48895
  init_uniswapV3LiquidityProvisionIncrease();
48720
48896
  init_components();
48721
48897
  init_tools();
48722
- args48 = {
48898
+ args49 = {
48723
48899
  request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
48724
48900
  };
48725
48901
  tool$uniswapV3LiquidityProvisionIncrease = {
@@ -48735,9 +48911,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
48735
48911
  within the pool. The endpoint requires details such as the token pair, additional
48736
48912
  amount to be added, and any other parameters necessary for the liquidity increase
48737
48913
  process.`,
48738
- args: args48,
48739
- tool: async (client, args49, ctx) => {
48740
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48914
+ args: args49,
48915
+ tool: async (client, args50, ctx) => {
48916
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48741
48917
  if (!result.ok) {
48742
48918
  return {
48743
48919
  content: [{ type: "text", text: result.error.message }],
@@ -48752,9 +48928,9 @@ process.`,
48752
48928
 
48753
48929
  // src/funcs/uniswapV3LiquidityProvisionInRange.ts
48754
48930
  function uniswapV3LiquidityProvisionInRange(client, request, options) {
48755
- return new APIPromise($do49(client, request, options));
48931
+ return new APIPromise($do50(client, request, options));
48756
48932
  }
48757
- async function $do49(client, request, options) {
48933
+ async function $do50(client, request, options) {
48758
48934
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
48759
48935
  if (!parsed.ok) {
48760
48936
  return [parsed, { status: "invalid" }];
@@ -48828,12 +49004,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
48828
49004
  });
48829
49005
 
48830
49006
  // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
48831
- var args49, tool$uniswapV3LiquidityProvisionInRange;
49007
+ var args50, tool$uniswapV3LiquidityProvisionInRange;
48832
49008
  var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
48833
49009
  init_uniswapV3LiquidityProvisionInRange();
48834
49010
  init_operations();
48835
49011
  init_tools();
48836
- args49 = {
49012
+ args50 = {
48837
49013
  request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
48838
49014
  };
48839
49015
  tool$uniswapV3LiquidityProvisionInRange = {
@@ -48848,9 +49024,9 @@ position is currently within the tick range where trading occurs. this informati
48848
49024
  is essential for users to monitor the status of their lp positions and ensure that
48849
49025
  they are actively participating in the trading activities within the liquidity pool
48850
49026
  and earning trading fees.`,
48851
- args: args49,
48852
- tool: async (client, args50, ctx) => {
48853
- const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49027
+ args: args50,
49028
+ tool: async (client, args51, ctx) => {
49029
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48854
49030
  if (!result.ok) {
48855
49031
  return {
48856
49032
  content: [{ type: "text", text: result.error.message }],
@@ -48865,9 +49041,9 @@ and earning trading fees.`,
48865
49041
 
48866
49042
  // src/funcs/uniswapV3LiquidityProvisionMint.ts
48867
49043
  function uniswapV3LiquidityProvisionMint(client, request, options) {
48868
- return new APIPromise($do50(client, request, options));
49044
+ return new APIPromise($do51(client, request, options));
48869
49045
  }
48870
- async function $do50(client, request, options) {
49046
+ async function $do51(client, request, options) {
48871
49047
  const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
48872
49048
  if (!parsed.ok) {
48873
49049
  return [parsed, { status: "invalid" }];
@@ -48936,12 +49112,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
48936
49112
  });
48937
49113
 
48938
49114
  // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
48939
- var args50, tool$uniswapV3LiquidityProvisionMint;
49115
+ var args51, tool$uniswapV3LiquidityProvisionMint;
48940
49116
  var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
48941
49117
  init_uniswapV3LiquidityProvisionMint();
48942
49118
  init_components();
48943
49119
  init_tools();
48944
- args50 = {
49120
+ args51 = {
48945
49121
  request: UniswapMintLiquidityProvisionRequest$inboundSchema
48946
49122
  };
48947
49123
  tool$uniswapV3LiquidityProvisionMint = {
@@ -48957,9 +49133,9 @@ This operation is essential for users looking to participate in liquidity provis
48957
49133
  enabling them to earn fees from trades that occur within the pool. The endpoint
48958
49134
  requires details such as the token pair, amount, and any additional parameters
48959
49135
  needed for the minting process.`,
48960
- args: args50,
48961
- tool: async (client, args51, ctx) => {
48962
- const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49136
+ args: args51,
49137
+ tool: async (client, args52, ctx) => {
49138
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48963
49139
  if (!result.ok) {
48964
49140
  return {
48965
49141
  content: [{ type: "text", text: result.error.message }],
@@ -48974,9 +49150,9 @@ needed for the minting process.`,
48974
49150
 
48975
49151
  // src/funcs/uniswapV3LiquidityProvisionPositions.ts
48976
49152
  function uniswapV3LiquidityProvisionPositions(client, request, options) {
48977
- return new APIPromise($do51(client, request, options));
49153
+ return new APIPromise($do52(client, request, options));
48978
49154
  }
48979
- async function $do51(client, request, options) {
49155
+ async function $do52(client, request, options) {
48980
49156
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
48981
49157
  if (!parsed.ok) {
48982
49158
  return [parsed, { status: "invalid" }];
@@ -49050,12 +49226,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
49050
49226
  });
49051
49227
 
49052
49228
  // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
49053
- var args51, tool$uniswapV3LiquidityProvisionPositions;
49229
+ var args52, tool$uniswapV3LiquidityProvisionPositions;
49054
49230
  var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
49055
49231
  init_uniswapV3LiquidityProvisionPositions();
49056
49232
  init_operations();
49057
49233
  init_tools();
49058
- args51 = {
49234
+ args52 = {
49059
49235
  request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
49060
49236
  };
49061
49237
  tool$uniswapV3LiquidityProvisionPositions = {
@@ -49069,9 +49245,9 @@ Users can query this endpoint to obtain detailed information about their LP
49069
49245
  positions, including the total number of positions and relevant metadata. This
49070
49246
  information is crucial for users to manage and analyze their liquidity provision
49071
49247
  activities effectively.`,
49072
- args: args51,
49073
- tool: async (client, args52, ctx) => {
49074
- const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49248
+ args: args52,
49249
+ tool: async (client, args53, ctx) => {
49250
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49075
49251
  if (!result.ok) {
49076
49252
  return {
49077
49253
  content: [{ type: "text", text: result.error.message }],
@@ -49086,9 +49262,9 @@ activities effectively.`,
49086
49262
 
49087
49263
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
49088
49264
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
49089
- return new APIPromise($do52(client, request, options));
49265
+ return new APIPromise($do53(client, request, options));
49090
49266
  }
49091
- async function $do52(client, request, options) {
49267
+ async function $do53(client, request, options) {
49092
49268
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
49093
49269
  if (!parsed.ok) {
49094
49270
  return [parsed, { status: "invalid" }];
@@ -49157,12 +49333,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
49157
49333
  });
49158
49334
 
49159
49335
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
49160
- var args52, tool$uniswapV3LiquidityProvisionWithdraw;
49336
+ var args53, tool$uniswapV3LiquidityProvisionWithdraw;
49161
49337
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
49162
49338
  init_uniswapV3LiquidityProvisionWithdraw();
49163
49339
  init_components();
49164
49340
  init_tools();
49165
- args52 = {
49341
+ args53 = {
49166
49342
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
49167
49343
  };
49168
49344
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -49179,9 +49355,9 @@ pools or investments. The endpoint requires details such as the token pair, the
49179
49355
  amount to be withdrawn, and any additional parameters needed for the withdrawal
49180
49356
  process. Users should ensure they meet any protocol requirements or conditions
49181
49357
  before initiating a withdrawal to avoid potential issues or penalties.`,
49182
- args: args52,
49183
- tool: async (client, args53, ctx) => {
49184
- const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49358
+ args: args53,
49359
+ tool: async (client, args54, ctx) => {
49360
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49185
49361
  if (!result.ok) {
49186
49362
  return {
49187
49363
  content: [{ type: "text", text: result.error.message }],
@@ -49196,9 +49372,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
49196
49372
 
49197
49373
  // src/funcs/uniswapV3PoolPrice.ts
49198
49374
  function uniswapV3PoolPrice(client, request, options) {
49199
- return new APIPromise($do53(client, request, options));
49375
+ return new APIPromise($do54(client, request, options));
49200
49376
  }
49201
- async function $do53(client, request, options) {
49377
+ async function $do54(client, request, options) {
49202
49378
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
49203
49379
  if (!parsed.ok) {
49204
49380
  return [parsed, { status: "invalid" }];
@@ -49274,12 +49450,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
49274
49450
  });
49275
49451
 
49276
49452
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
49277
- var args53, tool$uniswapV3PoolPrice;
49453
+ var args54, tool$uniswapV3PoolPrice;
49278
49454
  var init_uniswapV3PoolPrice2 = __esm(() => {
49279
49455
  init_uniswapV3PoolPrice();
49280
49456
  init_operations();
49281
49457
  init_tools();
49282
- args53 = {
49458
+ args54 = {
49283
49459
  request: UniswapPoolPriceRequest$inboundSchema
49284
49460
  };
49285
49461
  tool$uniswapV3PoolPrice = {
@@ -49289,9 +49465,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
49289
49465
  This endpoint calculates the price of a token in a Uniswap pool.
49290
49466
 
49291
49467
  The price is calculated based on the current pool state and the specified fee tier.`,
49292
- args: args53,
49293
- tool: async (client, args54, ctx) => {
49294
- const [result, apiCall] = await uniswapV3PoolPrice(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49468
+ args: args54,
49469
+ tool: async (client, args55, ctx) => {
49470
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49295
49471
  if (!result.ok) {
49296
49472
  return {
49297
49473
  content: [{ type: "text", text: result.error.message }],
@@ -49306,9 +49482,9 @@ The price is calculated based on the current pool state and the specified fee ti
49306
49482
 
49307
49483
  // src/funcs/uniswapV3QuoteBuyExactly.ts
49308
49484
  function uniswapV3QuoteBuyExactly(client, request, options) {
49309
- return new APIPromise($do54(client, request, options));
49485
+ return new APIPromise($do55(client, request, options));
49310
49486
  }
49311
- async function $do54(client, request, options) {
49487
+ async function $do55(client, request, options) {
49312
49488
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
49313
49489
  if (!parsed.ok) {
49314
49490
  return [parsed, { status: "invalid" }];
@@ -49385,12 +49561,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
49385
49561
  });
49386
49562
 
49387
49563
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
49388
- var args54, tool$uniswapV3QuoteBuyExactly;
49564
+ var args55, tool$uniswapV3QuoteBuyExactly;
49389
49565
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
49390
49566
  init_uniswapV3QuoteBuyExactly();
49391
49567
  init_operations();
49392
49568
  init_tools();
49393
- args54 = {
49569
+ args55 = {
49394
49570
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
49395
49571
  };
49396
49572
  tool$uniswapV3QuoteBuyExactly = {
@@ -49402,9 +49578,9 @@ specified amount of output tokens from a Uniswap pool.
49402
49578
 
49403
49579
  It also provides the resulting price after the transaction. The calculation takes
49404
49580
  into account the current pool state and the specified fee tier.`,
49405
- args: args54,
49406
- tool: async (client, args55, ctx) => {
49407
- const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49581
+ args: args55,
49582
+ tool: async (client, args56, ctx) => {
49583
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49408
49584
  if (!result.ok) {
49409
49585
  return {
49410
49586
  content: [{ type: "text", text: result.error.message }],
@@ -49419,9 +49595,9 @@ into account the current pool state and the specified fee tier.`,
49419
49595
 
49420
49596
  // src/funcs/uniswapV3QuoteSellExactly.ts
49421
49597
  function uniswapV3QuoteSellExactly(client, request, options) {
49422
- return new APIPromise($do55(client, request, options));
49598
+ return new APIPromise($do56(client, request, options));
49423
49599
  }
49424
- async function $do55(client, request, options) {
49600
+ async function $do56(client, request, options) {
49425
49601
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
49426
49602
  if (!parsed.ok) {
49427
49603
  return [parsed, { status: "invalid" }];
@@ -49498,12 +49674,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
49498
49674
  });
49499
49675
 
49500
49676
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
49501
- var args55, tool$uniswapV3QuoteSellExactly;
49677
+ var args56, tool$uniswapV3QuoteSellExactly;
49502
49678
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
49503
49679
  init_uniswapV3QuoteSellExactly();
49504
49680
  init_operations();
49505
49681
  init_tools();
49506
- args55 = {
49682
+ args56 = {
49507
49683
  request: UniswapQuoteSellExactlyRequest$inboundSchema
49508
49684
  };
49509
49685
  tool$uniswapV3QuoteSellExactly = {
@@ -49515,9 +49691,9 @@ specified amount of output tokens from a Uniswap pool.
49515
49691
 
49516
49692
  It also provides the resulting price after the transaction. The calculation takes
49517
49693
  into account the current pool state and the specified fee tier.`,
49518
- args: args55,
49519
- tool: async (client, args56, ctx) => {
49520
- const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49694
+ args: args56,
49695
+ tool: async (client, args57, ctx) => {
49696
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49521
49697
  if (!result.ok) {
49522
49698
  return {
49523
49699
  content: [{ type: "text", text: result.error.message }],
@@ -49532,9 +49708,9 @@ into account the current pool state and the specified fee tier.`,
49532
49708
 
49533
49709
  // src/funcs/uniswapV3SwapBuyExactly.ts
49534
49710
  function uniswapV3SwapBuyExactly(client, request, options) {
49535
- return new APIPromise($do56(client, request, options));
49711
+ return new APIPromise($do57(client, request, options));
49536
49712
  }
49537
- async function $do56(client, request, options) {
49713
+ async function $do57(client, request, options) {
49538
49714
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
49539
49715
  if (!parsed.ok) {
49540
49716
  return [parsed, { status: "invalid" }];
@@ -49603,12 +49779,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
49603
49779
  });
49604
49780
 
49605
49781
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
49606
- var args56, tool$uniswapV3SwapBuyExactly;
49782
+ var args57, tool$uniswapV3SwapBuyExactly;
49607
49783
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
49608
49784
  init_uniswapV3SwapBuyExactly();
49609
49785
  init_components();
49610
49786
  init_tools();
49611
- args56 = {
49787
+ args57 = {
49612
49788
  request: UniswapBuyExactlyRequest$inboundSchema
49613
49789
  };
49614
49790
  tool$uniswapV3SwapBuyExactly = {
@@ -49622,9 +49798,9 @@ The transaction is executed on the specified blockchain network, and the user mu
49622
49798
  provide the necessary transaction details, including the token to buy, the token to
49623
49799
  pay with, and the exact amount to receive. If the token being paid with is WETH and
49624
49800
  needs to be wrapped, the appropriate amount will be wrapped automatically.`,
49625
- args: args56,
49626
- tool: async (client, args57, ctx) => {
49627
- const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49801
+ args: args57,
49802
+ tool: async (client, args58, ctx) => {
49803
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49628
49804
  if (!result.ok) {
49629
49805
  return {
49630
49806
  content: [{ type: "text", text: result.error.message }],
@@ -49639,9 +49815,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
49639
49815
 
49640
49816
  // src/funcs/uniswapV3SwapSellExactly.ts
49641
49817
  function uniswapV3SwapSellExactly(client, request, options) {
49642
- return new APIPromise($do57(client, request, options));
49818
+ return new APIPromise($do58(client, request, options));
49643
49819
  }
49644
- async function $do57(client, request, options) {
49820
+ async function $do58(client, request, options) {
49645
49821
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
49646
49822
  if (!parsed.ok) {
49647
49823
  return [parsed, { status: "invalid" }];
@@ -49710,12 +49886,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
49710
49886
  });
49711
49887
 
49712
49888
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
49713
- var args57, tool$uniswapV3SwapSellExactly;
49889
+ var args58, tool$uniswapV3SwapSellExactly;
49714
49890
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
49715
49891
  init_uniswapV3SwapSellExactly();
49716
49892
  init_components();
49717
49893
  init_tools();
49718
- args57 = {
49894
+ args58 = {
49719
49895
  request: UniswapSellExactlyRequest$inboundSchema
49720
49896
  };
49721
49897
  tool$uniswapV3SwapSellExactly = {
@@ -49729,9 +49905,9 @@ The transaction is executed on the specified blockchain network, and the user mu
49729
49905
  provide the necessary transaction details, including the token to sell, the token to
49730
49906
  receive, and the amount to sell. If the token being sold is WETH and needs to be
49731
49907
  wrapped, the appropriate amount will be wrapped automatically.`,
49732
- args: args57,
49733
- tool: async (client, args58, ctx) => {
49734
- const [result, apiCall] = await uniswapV3SwapSellExactly(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49908
+ args: args58,
49909
+ tool: async (client, args59, ctx) => {
49910
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49735
49911
  if (!result.ok) {
49736
49912
  return {
49737
49913
  content: [{ type: "text", text: result.error.message }],
@@ -49746,9 +49922,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
49746
49922
 
49747
49923
  // src/funcs/universalAllowance.ts
49748
49924
  function universalAllowance(client, request, options) {
49749
- return new APIPromise($do58(client, request, options));
49925
+ return new APIPromise($do59(client, request, options));
49750
49926
  }
49751
- async function $do58(client, request, options) {
49927
+ async function $do59(client, request, options) {
49752
49928
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
49753
49929
  if (!parsed.ok) {
49754
49930
  return [parsed, { status: "invalid" }];
@@ -49824,12 +50000,12 @@ var init_universalAllowance = __esm(() => {
49824
50000
  });
49825
50001
 
49826
50002
  // src/mcp-server/tools/universalAllowance.ts
49827
- var args58, tool$universalAllowance;
50003
+ var args59, tool$universalAllowance;
49828
50004
  var init_universalAllowance2 = __esm(() => {
49829
50005
  init_universalAllowance();
49830
50006
  init_operations();
49831
50007
  init_tools();
49832
- args58 = {
50008
+ args59 = {
49833
50009
  request: GenericAllowanceRequest$inboundSchema
49834
50010
  };
49835
50011
  tool$universalAllowance = {
@@ -49843,9 +50019,9 @@ tokens on their behalf.
49843
50019
  This is a crucial step before engaging in any transactions or operations within
49844
50020
  these protocols, ensuring that the protocol has the necessary permissions to manage
49845
50021
  the user's tokens securely and efficiently.`,
49846
- args: args58,
49847
- tool: async (client, args59, ctx) => {
49848
- const [result, apiCall] = await universalAllowance(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50022
+ args: args59,
50023
+ tool: async (client, args60, ctx) => {
50024
+ const [result, apiCall] = await universalAllowance(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49849
50025
  if (!result.ok) {
49850
50026
  return {
49851
50027
  content: [{ type: "text", text: result.error.message }],
@@ -49860,9 +50036,9 @@ the user's tokens securely and efficiently.`,
49860
50036
 
49861
50037
  // src/funcs/universalAllowanceSet.ts
49862
50038
  function universalAllowanceSet(client, request, options) {
49863
- return new APIPromise($do59(client, request, options));
50039
+ return new APIPromise($do60(client, request, options));
49864
50040
  }
49865
- async function $do59(client, request, options) {
50041
+ async function $do60(client, request, options) {
49866
50042
  const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
49867
50043
  if (!parsed.ok) {
49868
50044
  return [parsed, { status: "invalid" }];
@@ -49931,12 +50107,12 @@ var init_universalAllowanceSet = __esm(() => {
49931
50107
  });
49932
50108
 
49933
50109
  // src/mcp-server/tools/universalAllowanceSet.ts
49934
- var args59, tool$universalAllowanceSet;
50110
+ var args60, tool$universalAllowanceSet;
49935
50111
  var init_universalAllowanceSet2 = __esm(() => {
49936
50112
  init_universalAllowanceSet();
49937
50113
  init_components();
49938
50114
  init_tools();
49939
- args59 = {
50115
+ args60 = {
49940
50116
  request: IncreaseAllowanceRequest$inboundSchema
49941
50117
  };
49942
50118
  tool$universalAllowanceSet = {
@@ -49950,9 +50126,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
49950
50126
  This operation is crucial for ensuring that the protocol can manage the user's
49951
50127
  tokens securely and efficiently, enabling seamless transactions and operations
49952
50128
  within the DeFi ecosystem.`,
49953
- args: args59,
49954
- tool: async (client, args60, ctx) => {
49955
- const [result, apiCall] = await universalAllowanceSet(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50129
+ args: args60,
50130
+ tool: async (client, args61, ctx) => {
50131
+ const [result, apiCall] = await universalAllowanceSet(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49956
50132
  if (!result.ok) {
49957
50133
  return {
49958
50134
  content: [{ type: "text", text: result.error.message }],
@@ -49967,9 +50143,9 @@ within the DeFi ecosystem.`,
49967
50143
 
49968
50144
  // src/funcs/universalEns.ts
49969
50145
  function universalEns(client, request, options) {
49970
- return new APIPromise($do60(client, request, options));
50146
+ return new APIPromise($do61(client, request, options));
49971
50147
  }
49972
- async function $do60(client, request, options) {
50148
+ async function $do61(client, request, options) {
49973
50149
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
49974
50150
  if (!parsed.ok) {
49975
50151
  return [parsed, { status: "invalid" }];
@@ -50043,12 +50219,12 @@ var init_universalEns = __esm(() => {
50043
50219
  });
50044
50220
 
50045
50221
  // src/mcp-server/tools/universalEns.ts
50046
- var args60, tool$universalEns;
50222
+ var args61, tool$universalEns;
50047
50223
  var init_universalEns2 = __esm(() => {
50048
50224
  init_universalEns();
50049
50225
  init_operations();
50050
50226
  init_tools();
50051
- args60 = {
50227
+ args61 = {
50052
50228
  request: GenericEnsRequest$inboundSchema
50053
50229
  };
50054
50230
  tool$universalEns = {
@@ -50059,9 +50235,9 @@ An ENS name is a string ending in \`.eth\`.
50059
50235
 
50060
50236
  E.g. \`vitalik.eth\`. This endpoint can be used to
50061
50237
  query the actual ethereum wallet address behind the ENS name.`,
50062
- args: args60,
50063
- tool: async (client, args61, ctx) => {
50064
- const [result, apiCall] = await universalEns(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50238
+ args: args61,
50239
+ tool: async (client, args62, ctx) => {
50240
+ const [result, apiCall] = await universalEns(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50065
50241
  if (!result.ok) {
50066
50242
  return {
50067
50243
  content: [{ type: "text", text: result.error.message }],
@@ -50076,9 +50252,9 @@ query the actual ethereum wallet address behind the ENS name.`,
50076
50252
 
50077
50253
  // src/funcs/universalPortfolio.ts
50078
50254
  function universalPortfolio(client, request, options) {
50079
- return new APIPromise($do61(client, request, options));
50255
+ return new APIPromise($do62(client, request, options));
50080
50256
  }
50081
- async function $do61(client, request, options) {
50257
+ async function $do62(client, request, options) {
50082
50258
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
50083
50259
  if (!parsed.ok) {
50084
50260
  return [parsed, { status: "invalid" }];
@@ -50152,12 +50328,12 @@ var init_universalPortfolio = __esm(() => {
50152
50328
  });
50153
50329
 
50154
50330
  // src/mcp-server/tools/universalPortfolio.ts
50155
- var args61, tool$universalPortfolio;
50331
+ var args62, tool$universalPortfolio;
50156
50332
  var init_universalPortfolio2 = __esm(() => {
50157
50333
  init_universalPortfolio();
50158
50334
  init_operations();
50159
50335
  init_tools();
50160
- args61 = {
50336
+ args62 = {
50161
50337
  request: GenericPortfolioRequest$inboundSchema
50162
50338
  };
50163
50339
  tool$universalPortfolio = {
@@ -50168,9 +50344,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
50168
50344
 
50169
50345
  This includes the total value of the portfolio in USD and a breakdown of token
50170
50346
  balances, including their respective values and quantities.`,
50171
- args: args61,
50172
- tool: async (client, args62, ctx) => {
50173
- const [result, apiCall] = await universalPortfolio(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50347
+ args: args62,
50348
+ tool: async (client, args63, ctx) => {
50349
+ const [result, apiCall] = await universalPortfolio(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50174
50350
  if (!result.ok) {
50175
50351
  return {
50176
50352
  content: [{ type: "text", text: result.error.message }],
@@ -50185,9 +50361,9 @@ balances, including their respective values and quantities.`,
50185
50361
 
50186
50362
  // src/funcs/universalSupportedTokens.ts
50187
50363
  function universalSupportedTokens(client, request, options) {
50188
- return new APIPromise($do62(client, request, options));
50364
+ return new APIPromise($do63(client, request, options));
50189
50365
  }
50190
- async function $do62(client, request, options) {
50366
+ async function $do63(client, request, options) {
50191
50367
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
50192
50368
  if (!parsed.ok) {
50193
50369
  return [parsed, { status: "invalid" }];
@@ -50260,12 +50436,12 @@ var init_universalSupportedTokens = __esm(() => {
50260
50436
  });
50261
50437
 
50262
50438
  // src/mcp-server/tools/universalSupportedTokens.ts
50263
- var args62, tool$universalSupportedTokens;
50439
+ var args63, tool$universalSupportedTokens;
50264
50440
  var init_universalSupportedTokens2 = __esm(() => {
50265
50441
  init_universalSupportedTokens();
50266
50442
  init_operations();
50267
50443
  init_tools();
50268
- args62 = {
50444
+ args63 = {
50269
50445
  request: GenericSupportedTokensRequest$inboundSchema
50270
50446
  };
50271
50447
  tool$universalSupportedTokens = {
@@ -50273,9 +50449,9 @@ var init_universalSupportedTokens2 = __esm(() => {
50273
50449
  description: `List supported tokens
50274
50450
 
50275
50451
  Get the list of supported tokens on a chain by the Compass API.`,
50276
- args: args62,
50277
- tool: async (client, args63, ctx) => {
50278
- const [result, apiCall] = await universalSupportedTokens(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50452
+ args: args63,
50453
+ tool: async (client, args64, ctx) => {
50454
+ const [result, apiCall] = await universalSupportedTokens(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50279
50455
  if (!result.ok) {
50280
50456
  return {
50281
50457
  content: [{ type: "text", text: result.error.message }],
@@ -50290,9 +50466,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
50290
50466
 
50291
50467
  // src/funcs/universalUnwrapWeth.ts
50292
50468
  function universalUnwrapWeth(client, request, options) {
50293
- return new APIPromise($do63(client, request, options));
50469
+ return new APIPromise($do64(client, request, options));
50294
50470
  }
50295
- async function $do63(client, request, options) {
50471
+ async function $do64(client, request, options) {
50296
50472
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
50297
50473
  if (!parsed.ok) {
50298
50474
  return [parsed, { status: "invalid" }];
@@ -50361,12 +50537,12 @@ var init_universalUnwrapWeth = __esm(() => {
50361
50537
  });
50362
50538
 
50363
50539
  // src/mcp-server/tools/universalUnwrapWeth.ts
50364
- var args63, tool$universalUnwrapWeth;
50540
+ var args64, tool$universalUnwrapWeth;
50365
50541
  var init_universalUnwrapWeth2 = __esm(() => {
50366
50542
  init_universalUnwrapWeth();
50367
50543
  init_components();
50368
50544
  init_tools();
50369
- args63 = {
50545
+ args64 = {
50370
50546
  request: UnwrapWethRequest$inboundSchema
50371
50547
  };
50372
50548
  tool$universalUnwrapWeth = {
@@ -50375,9 +50551,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
50375
50551
 
50376
50552
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
50377
50553
  can be used for gas and other native purposes.`,
50378
- args: args63,
50379
- tool: async (client, args64, ctx) => {
50380
- const [result, apiCall] = await universalUnwrapWeth(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50554
+ args: args64,
50555
+ tool: async (client, args65, ctx) => {
50556
+ const [result, apiCall] = await universalUnwrapWeth(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50381
50557
  if (!result.ok) {
50382
50558
  return {
50383
50559
  content: [{ type: "text", text: result.error.message }],
@@ -50392,9 +50568,9 @@ can be used for gas and other native purposes.`,
50392
50568
 
50393
50569
  // src/funcs/universalVisualizePortfolio.ts
50394
50570
  function universalVisualizePortfolio(client, request, options) {
50395
- return new APIPromise($do64(client, request, options));
50571
+ return new APIPromise($do65(client, request, options));
50396
50572
  }
50397
- async function $do64(client, request, options) {
50573
+ async function $do65(client, request, options) {
50398
50574
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
50399
50575
  if (!parsed.ok) {
50400
50576
  return [parsed, { status: "invalid" }];
@@ -50468,12 +50644,12 @@ var init_universalVisualizePortfolio = __esm(() => {
50468
50644
  });
50469
50645
 
50470
50646
  // src/mcp-server/tools/universalVisualizePortfolio.ts
50471
- var args64, tool$universalVisualizePortfolio;
50647
+ var args65, tool$universalVisualizePortfolio;
50472
50648
  var init_universalVisualizePortfolio2 = __esm(() => {
50473
50649
  init_universalVisualizePortfolio();
50474
50650
  init_operations();
50475
50651
  init_tools();
50476
- args64 = {
50652
+ args65 = {
50477
50653
  request: GenericVisualizePortfolioRequest$inboundSchema
50478
50654
  };
50479
50655
  tool$universalVisualizePortfolio = {
@@ -50485,9 +50661,9 @@ Generate a visual representation of the token portfolio for a wallet address.
50485
50661
  The response is an SVG image of a pie chart depicting the relative distribution of
50486
50662
  tokens held, colored and labeled with token symbols, percentages and token values in
50487
50663
  USD.`,
50488
- args: args64,
50489
- tool: async (client, args65, ctx) => {
50490
- const [result, apiCall] = await universalVisualizePortfolio(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50664
+ args: args65,
50665
+ tool: async (client, args66, ctx) => {
50666
+ const [result, apiCall] = await universalVisualizePortfolio(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50491
50667
  if (!result.ok) {
50492
50668
  return {
50493
50669
  content: [{ type: "text", text: result.error.message }],
@@ -50502,9 +50678,9 @@ USD.`,
50502
50678
 
50503
50679
  // src/funcs/universalWrapEth.ts
50504
50680
  function universalWrapEth(client, request, options) {
50505
- return new APIPromise($do65(client, request, options));
50681
+ return new APIPromise($do66(client, request, options));
50506
50682
  }
50507
- async function $do65(client, request, options) {
50683
+ async function $do66(client, request, options) {
50508
50684
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
50509
50685
  if (!parsed.ok) {
50510
50686
  return [parsed, { status: "invalid" }];
@@ -50573,12 +50749,12 @@ var init_universalWrapEth = __esm(() => {
50573
50749
  });
50574
50750
 
50575
50751
  // src/mcp-server/tools/universalWrapEth.ts
50576
- var args65, tool$universalWrapEth;
50752
+ var args66, tool$universalWrapEth;
50577
50753
  var init_universalWrapEth2 = __esm(() => {
50578
50754
  init_universalWrapEth();
50579
50755
  init_components();
50580
50756
  init_tools();
50581
- args65 = {
50757
+ args66 = {
50582
50758
  request: WrapEthRequest$inboundSchema
50583
50759
  };
50584
50760
  tool$universalWrapEth = {
@@ -50587,9 +50763,9 @@ var init_universalWrapEth2 = __esm(() => {
50587
50763
 
50588
50764
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
50589
50765
  it to be traded on DeFi protocols.`,
50590
- args: args65,
50591
- tool: async (client, args66, ctx) => {
50592
- const [result, apiCall] = await universalWrapEth(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50766
+ args: args66,
50767
+ tool: async (client, args67, ctx) => {
50768
+ const [result, apiCall] = await universalWrapEth(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50593
50769
  if (!result.ok) {
50594
50770
  return {
50595
50771
  content: [{ type: "text", text: result.error.message }],
@@ -50606,7 +50782,7 @@ it to be traded on DeFi protocols.`,
50606
50782
  function createMCPServer(deps) {
50607
50783
  const server = new McpServer({
50608
50784
  name: "CompassApiSDK",
50609
- version: "0.1.5"
50785
+ version: "0.1.6"
50610
50786
  });
50611
50787
  const client = new CompassApiSDKCore({
50612
50788
  apiKeyAuth: deps.apiKeyAuth,
@@ -50685,6 +50861,7 @@ function createMCPServer(deps) {
50685
50861
  tool(tool$transactionBatchingExecute);
50686
50862
  tool(tool$transactionBatchingAaveLoop);
50687
50863
  tool(tool$smartAccountAccountBatchedUserOperations);
50864
+ tool(tool$pendleAccruedInterest);
50688
50865
  return server;
50689
50866
  }
50690
50867
  var init_server2 = __esm(() => {
@@ -50726,6 +50903,7 @@ var init_server2 = __esm(() => {
50726
50903
  init_morphoVaults2();
50727
50904
  init_morphoWithdraw2();
50728
50905
  init_morphoWithdrawCollateral2();
50906
+ init_pendleAccruedInterest2();
50729
50907
  init_skyBuy2();
50730
50908
  init_skyDeposit2();
50731
50909
  init_skyPosition2();
@@ -51947,7 +52125,7 @@ var routes = an({
51947
52125
  var app = He(routes, {
51948
52126
  name: "mcp",
51949
52127
  versionInfo: {
51950
- currentVersion: "0.1.5"
52128
+ currentVersion: "0.1.6"
51951
52129
  }
51952
52130
  });
51953
52131
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -51955,5 +52133,5 @@ export {
51955
52133
  app
51956
52134
  };
51957
52135
 
51958
- //# debugId=76C6D7FE912B8A3564756E2164756E21
52136
+ //# debugId=8926F98FDF1ECE7E64756E2164756E21
51959
52137
  //# sourceMappingURL=mcp-server.js.map