@compass-labs/api-sdk 0.1.6 → 0.1.7

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 (201) hide show
  1. package/README.md +4 -2
  2. package/bin/mcp-server.js +534 -285
  3. package/bin/mcp-server.js.map +21 -16
  4. package/dist/commonjs/funcs/{pendleAccruedInterest.d.ts → pendleMarket.d.ts} +6 -3
  5. package/dist/commonjs/funcs/pendleMarket.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/pendleMarket.js +122 -0
  7. package/dist/commonjs/funcs/pendleMarket.js.map +1 -0
  8. package/dist/commonjs/funcs/pendlePosition.d.ts +18 -0
  9. package/dist/commonjs/funcs/pendlePosition.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/{pendleAccruedInterest.js → pendlePosition.js} +11 -8
  11. package/dist/commonjs/funcs/pendlePosition.js.map +1 -0
  12. package/dist/commonjs/lib/config.d.ts +2 -2
  13. package/dist/commonjs/lib/config.js +2 -2
  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 +5 -3
  17. package/dist/commonjs/mcp-server/server.js.map +1 -1
  18. package/dist/commonjs/mcp-server/tools/pendleMarket.d.ts +8 -0
  19. package/dist/commonjs/mcp-server/tools/pendleMarket.d.ts.map +1 -0
  20. package/dist/commonjs/mcp-server/tools/{pendleAccruedInterest.js → pendleMarket.js} +10 -8
  21. package/dist/commonjs/mcp-server/tools/pendleMarket.js.map +1 -0
  22. package/dist/commonjs/mcp-server/tools/pendlePosition.d.ts +8 -0
  23. package/dist/commonjs/mcp-server/tools/pendlePosition.d.ts.map +1 -0
  24. package/dist/commonjs/mcp-server/tools/pendlePosition.js +64 -0
  25. package/dist/commonjs/mcp-server/tools/pendlePosition.js.map +1 -0
  26. package/dist/commonjs/models/components/contractname.d.ts +9 -3
  27. package/dist/commonjs/models/components/contractname.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/contractname.js +3 -1
  29. package/dist/commonjs/models/components/contractname.js.map +1 -1
  30. package/dist/commonjs/models/components/erc20data.d.ts +33 -0
  31. package/dist/commonjs/models/components/erc20data.d.ts.map +1 -0
  32. package/dist/commonjs/models/components/{pendleaccruedinterestresponse.js → erc20data.js} +23 -28
  33. package/dist/commonjs/models/components/erc20data.js.map +1 -0
  34. package/dist/commonjs/models/components/increaseallowanceparams.d.ts +3 -0
  35. package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/increaseallowanceparams.js +1 -0
  37. package/dist/commonjs/models/components/increaseallowanceparams.js.map +1 -1
  38. package/dist/commonjs/models/components/increaseallowancerequest.d.ts +3 -0
  39. package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/increaseallowancerequest.js +1 -0
  41. package/dist/commonjs/models/components/increaseallowancerequest.js.map +1 -1
  42. package/dist/commonjs/models/components/index.d.ts +3 -1
  43. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/index.js +3 -1
  45. package/dist/commonjs/models/components/index.js.map +1 -1
  46. package/dist/commonjs/models/components/pendlegetmarketresponse.d.ts +46 -0
  47. package/dist/commonjs/models/components/pendlegetmarketresponse.d.ts.map +1 -0
  48. package/dist/commonjs/models/components/pendlegetmarketresponse.js +93 -0
  49. package/dist/commonjs/models/components/pendlegetmarketresponse.js.map +1 -0
  50. package/dist/commonjs/models/components/pendlegetuserpositionresponse.d.ts +67 -0
  51. package/dist/commonjs/models/components/pendlegetuserpositionresponse.d.ts.map +1 -0
  52. package/dist/commonjs/models/components/pendlegetuserpositionresponse.js +106 -0
  53. package/dist/commonjs/models/components/pendlegetuserpositionresponse.js.map +1 -0
  54. package/dist/commonjs/models/operations/genericallowance.d.ts +3 -0
  55. package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
  56. package/dist/commonjs/models/operations/genericallowance.js +1 -0
  57. package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
  58. package/dist/commonjs/models/operations/index.d.ts +2 -1
  59. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/index.js +2 -1
  61. package/dist/commonjs/models/operations/index.js.map +1 -1
  62. package/dist/commonjs/models/operations/pendlemarket.d.ts +77 -0
  63. package/dist/commonjs/models/operations/pendlemarket.d.ts.map +1 -0
  64. package/dist/commonjs/models/operations/pendlemarket.js +107 -0
  65. package/dist/commonjs/models/operations/pendlemarket.js.map +1 -0
  66. package/dist/commonjs/models/operations/pendleposition.d.ts +77 -0
  67. package/dist/commonjs/models/operations/pendleposition.d.ts.map +1 -0
  68. package/dist/commonjs/models/operations/pendleposition.js +107 -0
  69. package/dist/commonjs/models/operations/pendleposition.js.map +1 -0
  70. package/dist/commonjs/sdk/pendle.d.ts +12 -2
  71. package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
  72. package/dist/commonjs/sdk/pendle.js +17 -4
  73. package/dist/commonjs/sdk/pendle.js.map +1 -1
  74. package/dist/commonjs/sdk/sdk.d.ts +2 -2
  75. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  76. package/dist/commonjs/sdk/sdk.js +3 -3
  77. package/dist/commonjs/sdk/sdk.js.map +1 -1
  78. package/dist/esm/funcs/{pendleAccruedInterest.d.ts → pendleMarket.d.ts} +6 -3
  79. package/dist/esm/funcs/pendleMarket.d.ts.map +1 -0
  80. package/dist/esm/funcs/pendleMarket.js +86 -0
  81. package/dist/esm/funcs/pendleMarket.js.map +1 -0
  82. package/dist/esm/funcs/pendlePosition.d.ts +18 -0
  83. package/dist/esm/funcs/pendlePosition.d.ts.map +1 -0
  84. package/dist/esm/funcs/{pendleAccruedInterest.js → pendlePosition.js} +10 -7
  85. package/dist/esm/funcs/pendlePosition.js.map +1 -0
  86. package/dist/esm/lib/config.d.ts +2 -2
  87. package/dist/esm/lib/config.js +2 -2
  88. package/dist/esm/mcp-server/mcp-server.js +1 -1
  89. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  90. package/dist/esm/mcp-server/server.js +5 -3
  91. package/dist/esm/mcp-server/server.js.map +1 -1
  92. package/dist/esm/mcp-server/tools/pendleMarket.d.ts +8 -0
  93. package/dist/esm/mcp-server/tools/pendleMarket.d.ts.map +1 -0
  94. package/dist/esm/mcp-server/tools/{pendleAccruedInterest.js → pendleMarket.js} +9 -7
  95. package/dist/esm/mcp-server/tools/pendleMarket.js.map +1 -0
  96. package/dist/esm/mcp-server/tools/pendlePosition.d.ts +8 -0
  97. package/dist/esm/mcp-server/tools/pendlePosition.d.ts.map +1 -0
  98. package/dist/esm/mcp-server/tools/pendlePosition.js +28 -0
  99. package/dist/esm/mcp-server/tools/pendlePosition.js.map +1 -0
  100. package/dist/esm/models/components/contractname.d.ts +9 -3
  101. package/dist/esm/models/components/contractname.d.ts.map +1 -1
  102. package/dist/esm/models/components/contractname.js +3 -1
  103. package/dist/esm/models/components/contractname.js.map +1 -1
  104. package/dist/esm/models/components/erc20data.d.ts +33 -0
  105. package/dist/esm/models/components/erc20data.d.ts.map +1 -0
  106. package/dist/esm/models/components/erc20data.js +35 -0
  107. package/dist/esm/models/components/erc20data.js.map +1 -0
  108. package/dist/esm/models/components/increaseallowanceparams.d.ts +3 -0
  109. package/dist/esm/models/components/increaseallowanceparams.d.ts.map +1 -1
  110. package/dist/esm/models/components/increaseallowanceparams.js +1 -0
  111. package/dist/esm/models/components/increaseallowanceparams.js.map +1 -1
  112. package/dist/esm/models/components/increaseallowancerequest.d.ts +3 -0
  113. package/dist/esm/models/components/increaseallowancerequest.d.ts.map +1 -1
  114. package/dist/esm/models/components/increaseallowancerequest.js +1 -0
  115. package/dist/esm/models/components/increaseallowancerequest.js.map +1 -1
  116. package/dist/esm/models/components/index.d.ts +3 -1
  117. package/dist/esm/models/components/index.d.ts.map +1 -1
  118. package/dist/esm/models/components/index.js +3 -1
  119. package/dist/esm/models/components/index.js.map +1 -1
  120. package/dist/esm/models/components/pendlegetmarketresponse.d.ts +46 -0
  121. package/dist/esm/models/components/pendlegetmarketresponse.d.ts.map +1 -0
  122. package/dist/esm/models/components/pendlegetmarketresponse.js +55 -0
  123. package/dist/esm/models/components/pendlegetmarketresponse.js.map +1 -0
  124. package/dist/esm/models/components/pendlegetuserpositionresponse.d.ts +67 -0
  125. package/dist/esm/models/components/pendlegetuserpositionresponse.d.ts.map +1 -0
  126. package/dist/esm/models/components/pendlegetuserpositionresponse.js +68 -0
  127. package/dist/esm/models/components/pendlegetuserpositionresponse.js.map +1 -0
  128. package/dist/esm/models/operations/genericallowance.d.ts +3 -0
  129. package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
  130. package/dist/esm/models/operations/genericallowance.js +1 -0
  131. package/dist/esm/models/operations/genericallowance.js.map +1 -1
  132. package/dist/esm/models/operations/index.d.ts +2 -1
  133. package/dist/esm/models/operations/index.d.ts.map +1 -1
  134. package/dist/esm/models/operations/index.js +2 -1
  135. package/dist/esm/models/operations/index.js.map +1 -1
  136. package/dist/esm/models/operations/pendlemarket.d.ts +77 -0
  137. package/dist/esm/models/operations/pendlemarket.d.ts.map +1 -0
  138. package/dist/esm/models/operations/pendlemarket.js +69 -0
  139. package/dist/esm/models/operations/pendlemarket.js.map +1 -0
  140. package/dist/esm/models/operations/pendleposition.d.ts +77 -0
  141. package/dist/esm/models/operations/pendleposition.d.ts.map +1 -0
  142. package/dist/esm/models/operations/pendleposition.js +69 -0
  143. package/dist/esm/models/operations/pendleposition.js.map +1 -0
  144. package/dist/esm/sdk/pendle.d.ts +12 -2
  145. package/dist/esm/sdk/pendle.d.ts.map +1 -1
  146. package/dist/esm/sdk/pendle.js +17 -4
  147. package/dist/esm/sdk/pendle.js.map +1 -1
  148. package/dist/esm/sdk/sdk.d.ts +2 -2
  149. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  150. package/dist/esm/sdk/sdk.js +3 -3
  151. package/dist/esm/sdk/sdk.js.map +1 -1
  152. package/docs/sdks/pendle/README.md +96 -14
  153. package/jsr.json +1 -1
  154. package/package.json +1 -1
  155. package/src/funcs/{pendleAccruedInterest.ts → pendleMarket.ts} +14 -12
  156. package/src/funcs/pendlePosition.ts +170 -0
  157. package/src/lib/config.ts +2 -2
  158. package/src/mcp-server/mcp-server.ts +1 -1
  159. package/src/mcp-server/server.ts +5 -3
  160. package/src/mcp-server/tools/{pendleAccruedInterest.ts → pendleMarket.ts} +8 -6
  161. package/src/mcp-server/tools/pendlePosition.ts +37 -0
  162. package/src/models/components/contractname.ts +3 -1
  163. package/src/models/components/erc20data.ts +70 -0
  164. package/src/models/components/increaseallowanceparams.ts +1 -0
  165. package/src/models/components/increaseallowancerequest.ts +1 -0
  166. package/src/models/components/index.ts +3 -1
  167. package/src/models/components/pendlegetmarketresponse.ts +113 -0
  168. package/src/models/components/pendlegetuserpositionresponse.ts +145 -0
  169. package/src/models/operations/genericallowance.ts +1 -0
  170. package/src/models/operations/index.ts +2 -1
  171. package/src/models/operations/pendlemarket.ts +135 -0
  172. package/src/models/operations/pendleposition.ts +135 -0
  173. package/src/sdk/pendle.ts +27 -6
  174. package/src/sdk/sdk.ts +5 -5
  175. package/dist/commonjs/funcs/pendleAccruedInterest.d.ts.map +0 -1
  176. package/dist/commonjs/funcs/pendleAccruedInterest.js.map +0 -1
  177. package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.d.ts +0 -8
  178. package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.d.ts.map +0 -1
  179. package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.js.map +0 -1
  180. package/dist/commonjs/models/components/pendleaccruedinterestresponse.d.ts +0 -32
  181. package/dist/commonjs/models/components/pendleaccruedinterestresponse.d.ts.map +0 -1
  182. package/dist/commonjs/models/components/pendleaccruedinterestresponse.js.map +0 -1
  183. package/dist/commonjs/models/operations/pendleaccruedinterest.d.ts +0 -77
  184. package/dist/commonjs/models/operations/pendleaccruedinterest.d.ts.map +0 -1
  185. package/dist/commonjs/models/operations/pendleaccruedinterest.js +0 -107
  186. package/dist/commonjs/models/operations/pendleaccruedinterest.js.map +0 -1
  187. package/dist/esm/funcs/pendleAccruedInterest.d.ts.map +0 -1
  188. package/dist/esm/funcs/pendleAccruedInterest.js.map +0 -1
  189. package/dist/esm/mcp-server/tools/pendleAccruedInterest.d.ts +0 -8
  190. package/dist/esm/mcp-server/tools/pendleAccruedInterest.d.ts.map +0 -1
  191. package/dist/esm/mcp-server/tools/pendleAccruedInterest.js.map +0 -1
  192. package/dist/esm/models/components/pendleaccruedinterestresponse.d.ts +0 -32
  193. package/dist/esm/models/components/pendleaccruedinterestresponse.d.ts.map +0 -1
  194. package/dist/esm/models/components/pendleaccruedinterestresponse.js +0 -40
  195. package/dist/esm/models/components/pendleaccruedinterestresponse.js.map +0 -1
  196. package/dist/esm/models/operations/pendleaccruedinterest.d.ts +0 -77
  197. package/dist/esm/models/operations/pendleaccruedinterest.d.ts.map +0 -1
  198. package/dist/esm/models/operations/pendleaccruedinterest.js +0 -69
  199. package/dist/esm/models/operations/pendleaccruedinterest.js.map +0 -1
  200. package/src/models/components/pendleaccruedinterestresponse.ts +0 -80
  201. package/src/models/operations/pendleaccruedinterest.ts +0 -139
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.6",
34232
+ sdkVersion: "0.1.7",
34233
34233
  genVersion: "2.610.0",
34234
- userAgent: "speakeasy-sdk/typescript 0.1.6 2.610.0 0.0.1 @compass-labs/api-sdk"
34234
+ userAgent: "speakeasy-sdk/typescript 0.1.7 2.610.0 0.0.1 @compass-labs/api-sdk"
34235
34235
  };
34236
34236
  });
34237
34237
 
@@ -37563,8 +37563,10 @@ var init_contractname = __esm(() => {
37563
37563
  SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
37564
37564
  SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
37565
37565
  SkyUsdsVault: "SkyUsdsVault",
37566
- PendleYt: "PendleYt",
37566
+ PendleRouter: "PendleRouter",
37567
37567
  PendleMarket: "PendleMarket",
37568
+ PendleSy: "PendleSy",
37569
+ PendleYt: "PendleYt",
37568
37570
  Multicall: "Multicall"
37569
37571
  };
37570
37572
  ContractName$inboundSchema = nativeEnumType(ContractName);
@@ -37628,7 +37630,8 @@ var init_increaseallowanceparams = __esm(() => {
37628
37630
  Morpho: "Morpho",
37629
37631
  SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
37630
37632
  SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
37631
- SkyUsdsVault: "SkyUsdsVault"
37633
+ SkyUsdsVault: "SkyUsdsVault",
37634
+ PendleRouter: "PendleRouter"
37632
37635
  };
37633
37636
  IncreaseAllowanceParamsContractName$inboundSchema = nativeEnumType(IncreaseAllowanceParamsContractName);
37634
37637
  IncreaseAllowanceParamsContractName$outboundSchema = IncreaseAllowanceParamsContractName$inboundSchema;
@@ -39128,6 +39131,26 @@ var init_ensnameinforesponse = __esm(() => {
39128
39131
  })(EnsNameInfoResponse$ ||= {});
39129
39132
  });
39130
39133
 
39134
+ // src/models/components/erc20data.ts
39135
+ var Erc20Data$inboundSchema, Erc20Data$outboundSchema, Erc20Data$;
39136
+ var init_erc20data = __esm(() => {
39137
+ init_esm();
39138
+ Erc20Data$inboundSchema = objectType({
39139
+ address: stringType(),
39140
+ symbol: stringType(),
39141
+ name: stringType()
39142
+ });
39143
+ Erc20Data$outboundSchema = objectType({
39144
+ address: stringType(),
39145
+ symbol: stringType(),
39146
+ name: stringType()
39147
+ });
39148
+ ((Erc20Data$) => {
39149
+ Erc20Data$.inboundSchema = Erc20Data$inboundSchema;
39150
+ Erc20Data$.outboundSchema = Erc20Data$outboundSchema;
39151
+ })(Erc20Data$ ||= {});
39152
+ });
39153
+
39131
39154
  // src/models/components/image.ts
39132
39155
  var Image$inboundSchema, Image$outboundSchema, Image$;
39133
39156
  var init_image = __esm(() => {
@@ -39161,7 +39184,8 @@ var init_increaseallowancerequest = __esm(() => {
39161
39184
  Morpho: "Morpho",
39162
39185
  SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
39163
39186
  SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
39164
- SkyUsdsVault: "SkyUsdsVault"
39187
+ SkyUsdsVault: "SkyUsdsVault",
39188
+ PendleRouter: "PendleRouter"
39165
39189
  };
39166
39190
  IncreaseAllowanceRequestContractName$inboundSchema = nativeEnumType(IncreaseAllowanceRequestContractName);
39167
39191
  IncreaseAllowanceRequestContractName$outboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
@@ -40074,29 +40098,97 @@ var init_multicallexecuterequest = __esm(() => {
40074
40098
  })(MulticallExecuteRequest$ ||= {});
40075
40099
  });
40076
40100
 
40077
- // src/models/components/pendleaccruedinterestresponse.ts
40078
- var PendleAccruedInterestResponse$inboundSchema, PendleAccruedInterestResponse$outboundSchema, PendleAccruedInterestResponse$;
40079
- var init_pendleaccruedinterestresponse = __esm(() => {
40101
+ // src/models/components/pendlegetmarketresponse.ts
40102
+ var PendleGetMarketResponse$inboundSchema, PendleGetMarketResponse$outboundSchema, PendleGetMarketResponse$;
40103
+ var init_pendlegetmarketresponse = __esm(() => {
40080
40104
  init_esm();
40081
40105
  init_primitives();
40082
- PendleAccruedInterestResponse$inboundSchema = objectType({
40083
- accrued_interest: numberType().int()
40106
+ init_erc20data();
40107
+ PendleGetMarketResponse$inboundSchema = objectType({
40108
+ implied_apy: stringType(),
40109
+ maturity_date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
40110
+ underlying_token: Erc20Data$inboundSchema,
40111
+ sy: Erc20Data$inboundSchema,
40112
+ pt: Erc20Data$inboundSchema,
40113
+ yt: Erc20Data$inboundSchema
40114
+ }).transform((v2) => {
40115
+ return remap(v2, {
40116
+ implied_apy: "impliedApy",
40117
+ maturity_date: "maturityDate",
40118
+ underlying_token: "underlyingToken"
40119
+ });
40120
+ });
40121
+ PendleGetMarketResponse$outboundSchema = objectType({
40122
+ impliedApy: stringType(),
40123
+ maturityDate: dateType().transform((v2) => v2.toISOString()),
40124
+ underlyingToken: Erc20Data$outboundSchema,
40125
+ sy: Erc20Data$outboundSchema,
40126
+ pt: Erc20Data$outboundSchema,
40127
+ yt: Erc20Data$outboundSchema
40084
40128
  }).transform((v2) => {
40085
40129
  return remap(v2, {
40086
- accrued_interest: "accruedInterest"
40130
+ impliedApy: "implied_apy",
40131
+ maturityDate: "maturity_date",
40132
+ underlyingToken: "underlying_token"
40087
40133
  });
40088
40134
  });
40089
- PendleAccruedInterestResponse$outboundSchema = objectType({
40090
- accruedInterest: numberType().int()
40135
+ ((PendleGetMarketResponse$) => {
40136
+ PendleGetMarketResponse$.inboundSchema = PendleGetMarketResponse$inboundSchema;
40137
+ PendleGetMarketResponse$.outboundSchema = PendleGetMarketResponse$outboundSchema;
40138
+ })(PendleGetMarketResponse$ ||= {});
40139
+ });
40140
+
40141
+ // src/models/components/pendlegetuserpositionresponse.ts
40142
+ var PendleGetUserPositionResponse$inboundSchema, PendleGetUserPositionResponse$outboundSchema, PendleGetUserPositionResponse$;
40143
+ var init_pendlegetuserpositionresponse = __esm(() => {
40144
+ init_esm();
40145
+ init_primitives();
40146
+ PendleGetUserPositionResponse$inboundSchema = objectType({
40147
+ claimable_yield: stringType(),
40148
+ sy_balance: stringType(),
40149
+ pt_balance: stringType(),
40150
+ yt_balance: stringType(),
40151
+ underlying_token_balance: stringType(),
40152
+ underlying_token_name: stringType(),
40153
+ underlying_token_symbol: stringType(),
40154
+ maturity_date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
40155
+ }).transform((v2) => {
40156
+ return remap(v2, {
40157
+ claimable_yield: "claimableYield",
40158
+ sy_balance: "syBalance",
40159
+ pt_balance: "ptBalance",
40160
+ yt_balance: "ytBalance",
40161
+ underlying_token_balance: "underlyingTokenBalance",
40162
+ underlying_token_name: "underlyingTokenName",
40163
+ underlying_token_symbol: "underlyingTokenSymbol",
40164
+ maturity_date: "maturityDate"
40165
+ });
40166
+ });
40167
+ PendleGetUserPositionResponse$outboundSchema = objectType({
40168
+ claimableYield: stringType(),
40169
+ syBalance: stringType(),
40170
+ ptBalance: stringType(),
40171
+ ytBalance: stringType(),
40172
+ underlyingTokenBalance: stringType(),
40173
+ underlyingTokenName: stringType(),
40174
+ underlyingTokenSymbol: stringType(),
40175
+ maturityDate: dateType().transform((v2) => v2.toISOString())
40091
40176
  }).transform((v2) => {
40092
40177
  return remap(v2, {
40093
- accruedInterest: "accrued_interest"
40178
+ claimableYield: "claimable_yield",
40179
+ syBalance: "sy_balance",
40180
+ ptBalance: "pt_balance",
40181
+ ytBalance: "yt_balance",
40182
+ underlyingTokenBalance: "underlying_token_balance",
40183
+ underlyingTokenName: "underlying_token_name",
40184
+ underlyingTokenSymbol: "underlying_token_symbol",
40185
+ maturityDate: "maturity_date"
40094
40186
  });
40095
40187
  });
40096
- ((PendleAccruedInterestResponse$) => {
40097
- PendleAccruedInterestResponse$.inboundSchema = PendleAccruedInterestResponse$inboundSchema;
40098
- PendleAccruedInterestResponse$.outboundSchema = PendleAccruedInterestResponse$outboundSchema;
40099
- })(PendleAccruedInterestResponse$ ||= {});
40188
+ ((PendleGetUserPositionResponse$) => {
40189
+ PendleGetUserPositionResponse$.inboundSchema = PendleGetUserPositionResponse$inboundSchema;
40190
+ PendleGetUserPositionResponse$.outboundSchema = PendleGetUserPositionResponse$outboundSchema;
40191
+ })(PendleGetUserPositionResponse$ ||= {});
40100
40192
  });
40101
40193
 
40102
40194
  // src/models/components/tokenbalance.ts
@@ -41210,6 +41302,7 @@ var init_components = __esm(() => {
41210
41302
  init_contractname();
41211
41303
  init_curator();
41212
41304
  init_ensnameinforesponse();
41305
+ init_erc20data();
41213
41306
  init_feeenum();
41214
41307
  init_image();
41215
41308
  init_increaseallowanceanyparams();
@@ -41248,7 +41341,8 @@ var init_components = __esm(() => {
41248
41341
  init_multicallauthorizationrequest();
41249
41342
  init_multicallauthorizationresponse();
41250
41343
  init_multicallexecuterequest();
41251
- init_pendleaccruedinterestresponse();
41344
+ init_pendlegetmarketresponse();
41345
+ init_pendlegetuserpositionresponse();
41252
41346
  init_portfolio();
41253
41347
  init_redeemunderlying();
41254
41348
  init_repay();
@@ -42250,7 +42344,8 @@ var init_genericallowance = __esm(() => {
42250
42344
  Morpho: "Morpho",
42251
42345
  SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
42252
42346
  SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
42253
- SkyUsdsVault: "SkyUsdsVault"
42347
+ SkyUsdsVault: "SkyUsdsVault",
42348
+ PendleRouter: "PendleRouter"
42254
42349
  };
42255
42350
  GenericAllowanceChain$inboundSchema = nativeEnumType(GenericAllowanceChain);
42256
42351
  GenericAllowanceChain$outboundSchema = GenericAllowanceChain$inboundSchema;
@@ -42690,46 +42785,88 @@ var init_morphovaults = __esm(() => {
42690
42785
  })(MorphoVaultsRequest$ ||= {});
42691
42786
  });
42692
42787
 
42693
- // src/models/operations/pendleaccruedinterest.ts
42694
- var PendleAccruedInterestChain, PendleAccruedInterestChain$inboundSchema, PendleAccruedInterestChain$outboundSchema, PendleAccruedInterestChain$, PendleAccruedInterestRequest$inboundSchema, PendleAccruedInterestRequest$outboundSchema, PendleAccruedInterestRequest$;
42695
- var init_pendleaccruedinterest = __esm(() => {
42788
+ // src/models/operations/pendlemarket.ts
42789
+ var PendleMarketChain, PendleMarketChain$inboundSchema, PendleMarketChain$outboundSchema, PendleMarketChain$, PendleMarketRequest$inboundSchema, PendleMarketRequest$outboundSchema, PendleMarketRequest$;
42790
+ var init_pendlemarket = __esm(() => {
42696
42791
  init_esm();
42697
42792
  init_primitives();
42698
- PendleAccruedInterestChain = {
42793
+ PendleMarketChain = {
42699
42794
  BaseMainnet: "base:mainnet",
42700
42795
  EthereumMainnet: "ethereum:mainnet",
42701
42796
  ArbitrumMainnet: "arbitrum:mainnet"
42702
42797
  };
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")
42798
+ PendleMarketChain$inboundSchema = nativeEnumType(PendleMarketChain);
42799
+ PendleMarketChain$outboundSchema = PendleMarketChain$inboundSchema;
42800
+ ((PendleMarketChain$) => {
42801
+ PendleMarketChain$.inboundSchema = PendleMarketChain$inboundSchema;
42802
+ PendleMarketChain$.outboundSchema = PendleMarketChain$outboundSchema;
42803
+ })(PendleMarketChain$ ||= {});
42804
+ PendleMarketRequest$inboundSchema = objectType({
42805
+ chain: PendleMarketChain$inboundSchema.default("ethereum:mainnet"),
42806
+ user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
42807
+ market_address: stringType().default("0xdace1121e10500e9e29d071f01593fd76b000f08")
42713
42808
  }).transform((v2) => {
42714
42809
  return remap(v2, {
42715
- market_address: "marketAddress",
42716
- user_address: "userAddress"
42810
+ user_address: "userAddress",
42811
+ market_address: "marketAddress"
42717
42812
  });
42718
42813
  });
42719
- PendleAccruedInterestRequest$outboundSchema = objectType({
42720
- chain: PendleAccruedInterestChain$outboundSchema.default("arbitrum:mainnet"),
42721
- marketAddress: stringType().default("0xff4d6991658c5844856faef5da9232c252896fca"),
42722
- userAddress: stringType().default("0xebdddbafc3fc3742fe2a3cfec17a20a50e84d598")
42814
+ PendleMarketRequest$outboundSchema = objectType({
42815
+ chain: PendleMarketChain$outboundSchema.default("ethereum:mainnet"),
42816
+ userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
42817
+ marketAddress: stringType().default("0xdace1121e10500e9e29d071f01593fd76b000f08")
42723
42818
  }).transform((v2) => {
42724
42819
  return remap(v2, {
42725
- marketAddress: "market_address",
42726
- userAddress: "user_address"
42820
+ userAddress: "user_address",
42821
+ marketAddress: "market_address"
42727
42822
  });
42728
42823
  });
42729
- ((PendleAccruedInterestRequest$) => {
42730
- PendleAccruedInterestRequest$.inboundSchema = PendleAccruedInterestRequest$inboundSchema;
42731
- PendleAccruedInterestRequest$.outboundSchema = PendleAccruedInterestRequest$outboundSchema;
42732
- })(PendleAccruedInterestRequest$ ||= {});
42824
+ ((PendleMarketRequest$) => {
42825
+ PendleMarketRequest$.inboundSchema = PendleMarketRequest$inboundSchema;
42826
+ PendleMarketRequest$.outboundSchema = PendleMarketRequest$outboundSchema;
42827
+ })(PendleMarketRequest$ ||= {});
42828
+ });
42829
+
42830
+ // src/models/operations/pendleposition.ts
42831
+ var PendlePositionChain, PendlePositionChain$inboundSchema, PendlePositionChain$outboundSchema, PendlePositionChain$, PendlePositionRequest$inboundSchema, PendlePositionRequest$outboundSchema, PendlePositionRequest$;
42832
+ var init_pendleposition = __esm(() => {
42833
+ init_esm();
42834
+ init_primitives();
42835
+ PendlePositionChain = {
42836
+ BaseMainnet: "base:mainnet",
42837
+ EthereumMainnet: "ethereum:mainnet",
42838
+ ArbitrumMainnet: "arbitrum:mainnet"
42839
+ };
42840
+ PendlePositionChain$inboundSchema = nativeEnumType(PendlePositionChain);
42841
+ PendlePositionChain$outboundSchema = PendlePositionChain$inboundSchema;
42842
+ ((PendlePositionChain$) => {
42843
+ PendlePositionChain$.inboundSchema = PendlePositionChain$inboundSchema;
42844
+ PendlePositionChain$.outboundSchema = PendlePositionChain$outboundSchema;
42845
+ })(PendlePositionChain$ ||= {});
42846
+ PendlePositionRequest$inboundSchema = objectType({
42847
+ chain: PendlePositionChain$inboundSchema.default("ethereum:mainnet"),
42848
+ user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
42849
+ market_address: stringType().default("0xdace1121e10500e9e29d071f01593fd76b000f08")
42850
+ }).transform((v2) => {
42851
+ return remap(v2, {
42852
+ user_address: "userAddress",
42853
+ market_address: "marketAddress"
42854
+ });
42855
+ });
42856
+ PendlePositionRequest$outboundSchema = objectType({
42857
+ chain: PendlePositionChain$outboundSchema.default("ethereum:mainnet"),
42858
+ userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
42859
+ marketAddress: stringType().default("0xdace1121e10500e9e29d071f01593fd76b000f08")
42860
+ }).transform((v2) => {
42861
+ return remap(v2, {
42862
+ userAddress: "user_address",
42863
+ marketAddress: "market_address"
42864
+ });
42865
+ });
42866
+ ((PendlePositionRequest$) => {
42867
+ PendlePositionRequest$.inboundSchema = PendlePositionRequest$inboundSchema;
42868
+ PendlePositionRequest$.outboundSchema = PendlePositionRequest$outboundSchema;
42869
+ })(PendlePositionRequest$ ||= {});
42733
42870
  });
42734
42871
 
42735
42872
  // src/models/operations/skyposition.ts
@@ -43551,7 +43688,8 @@ var init_operations = __esm(() => {
43551
43688
  init_morphovault2();
43552
43689
  init_morphovaultposition();
43553
43690
  init_morphovaults();
43554
- init_pendleaccruedinterest();
43691
+ init_pendlemarket();
43692
+ init_pendleposition();
43555
43693
  init_skyposition();
43556
43694
  init_tokenaddress();
43557
43695
  init_tokenbalance2();
@@ -47340,18 +47478,18 @@ as long as the blockchain it is deployed on is live.`,
47340
47478
  };
47341
47479
  });
47342
47480
 
47343
- // src/funcs/pendleAccruedInterest.ts
47344
- function pendleAccruedInterest(client, request, options) {
47481
+ // src/funcs/pendleMarket.ts
47482
+ function pendleMarket(client, request, options) {
47345
47483
  return new APIPromise($do35(client, request, options));
47346
47484
  }
47347
47485
  async function $do35(client, request, options) {
47348
- const parsed = safeParse(request, (value) => PendleAccruedInterestRequest$outboundSchema.parse(value), "Input validation failed");
47486
+ const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
47349
47487
  if (!parsed.ok) {
47350
47488
  return [parsed, { status: "invalid" }];
47351
47489
  }
47352
47490
  const payload = parsed.value;
47353
47491
  const body = null;
47354
- const path = pathToFunc("/v0/pendle/accrued_interest")();
47492
+ const path = pathToFunc("/v0/pendle/market")();
47355
47493
  const query = encodeFormQuery({
47356
47494
  chain: payload.chain,
47357
47495
  market_address: payload.market_address,
@@ -47365,7 +47503,7 @@ async function $do35(client, request, options) {
47365
47503
  const requestSecurity = resolveGlobalSecurity(securityInput);
47366
47504
  const context = {
47367
47505
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47368
- operationID: "pendle_accrued_interest",
47506
+ operationID: "pendle_market",
47369
47507
  oAuth2Scopes: [],
47370
47508
  resolvedSecurity: requestSecurity,
47371
47509
  securitySource: client._options.apiKeyAuth,
@@ -47399,13 +47537,13 @@ async function $do35(client, request, options) {
47399
47537
  const responseFields = {
47400
47538
  HttpMeta: { Response: response, Request: req }
47401
47539
  };
47402
- const [result] = await match(json(200, PendleAccruedInterestResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
47540
+ const [result] = await match(json(200, PendleGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
47403
47541
  if (!result.ok) {
47404
47542
  return [result, { status: "complete", request: req, response }];
47405
47543
  }
47406
47544
  return [result, { status: "complete", request: req, response }];
47407
47545
  }
47408
- var init_pendleAccruedInterest = __esm(() => {
47546
+ var init_pendleMarket = __esm(() => {
47409
47547
  init_encodings();
47410
47548
  init_matchers();
47411
47549
  init_primitives();
@@ -47418,21 +47556,23 @@ var init_pendleAccruedInterest = __esm(() => {
47418
47556
  init_async();
47419
47557
  });
47420
47558
 
47421
- // src/mcp-server/tools/pendleAccruedInterest.ts
47422
- var args35, tool$pendleAccruedInterest;
47423
- var init_pendleAccruedInterest2 = __esm(() => {
47424
- init_pendleAccruedInterest();
47559
+ // src/mcp-server/tools/pendleMarket.ts
47560
+ var args35, tool$pendleMarket;
47561
+ var init_pendleMarket2 = __esm(() => {
47562
+ init_pendleMarket();
47425
47563
  init_operations();
47426
47564
  init_tools();
47427
47565
  args35 = {
47428
- request: PendleAccruedInterestRequest$inboundSchema
47566
+ request: PendleMarketRequest$inboundSchema
47429
47567
  };
47430
- tool$pendleAccruedInterest = {
47431
- name: "pendle-accrued-interest",
47432
- description: `Get Accrued Interest`,
47568
+ tool$pendleMarket = {
47569
+ name: "pendle-market",
47570
+ description: `Get Market Data
47571
+
47572
+ Get market data.`,
47433
47573
  args: args35,
47434
47574
  tool: async (client, args36, ctx) => {
47435
- const [result, apiCall] = await pendleAccruedInterest(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47575
+ const [result, apiCall] = await pendleMarket(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47436
47576
  if (!result.ok) {
47437
47577
  return {
47438
47578
  content: [{ type: "text", text: result.error.message }],
@@ -47445,11 +47585,118 @@ var init_pendleAccruedInterest2 = __esm(() => {
47445
47585
  };
47446
47586
  });
47447
47587
 
47448
- // src/funcs/skyBuy.ts
47449
- function skyBuy(client, request, options) {
47588
+ // src/funcs/pendlePosition.ts
47589
+ function pendlePosition(client, request, options) {
47450
47590
  return new APIPromise($do36(client, request, options));
47451
47591
  }
47452
47592
  async function $do36(client, request, options) {
47593
+ const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
47594
+ if (!parsed.ok) {
47595
+ return [parsed, { status: "invalid" }];
47596
+ }
47597
+ const payload = parsed.value;
47598
+ const body = null;
47599
+ const path = pathToFunc("/v0/pendle/position")();
47600
+ const query = encodeFormQuery({
47601
+ chain: payload.chain,
47602
+ market_address: payload.market_address,
47603
+ user_address: payload.user_address
47604
+ });
47605
+ const headers = new Headers(compactMap({
47606
+ Accept: "application/json"
47607
+ }));
47608
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
47609
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
47610
+ const requestSecurity = resolveGlobalSecurity(securityInput);
47611
+ const context = {
47612
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
47613
+ operationID: "pendle_position",
47614
+ oAuth2Scopes: [],
47615
+ resolvedSecurity: requestSecurity,
47616
+ securitySource: client._options.apiKeyAuth,
47617
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
47618
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
47619
+ };
47620
+ const requestRes = client._createRequest(context, {
47621
+ security: requestSecurity,
47622
+ method: "GET",
47623
+ baseURL: options?.serverURL,
47624
+ path,
47625
+ headers,
47626
+ query,
47627
+ body,
47628
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47629
+ }, options);
47630
+ if (!requestRes.ok) {
47631
+ return [requestRes, { status: "invalid" }];
47632
+ }
47633
+ const req = requestRes.value;
47634
+ const doResult = await client._do(req, {
47635
+ context,
47636
+ errorCodes: ["422", "4XX", "5XX"],
47637
+ retryConfig: context.retryConfig,
47638
+ retryCodes: context.retryCodes
47639
+ });
47640
+ if (!doResult.ok) {
47641
+ return [doResult, { status: "request-error", request: req }];
47642
+ }
47643
+ const response = doResult.value;
47644
+ const responseFields = {
47645
+ HttpMeta: { Response: response, Request: req }
47646
+ };
47647
+ const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
47648
+ if (!result.ok) {
47649
+ return [result, { status: "complete", request: req, response }];
47650
+ }
47651
+ return [result, { status: "complete", request: req, response }];
47652
+ }
47653
+ var init_pendlePosition = __esm(() => {
47654
+ init_encodings();
47655
+ init_matchers();
47656
+ init_primitives();
47657
+ init_schemas();
47658
+ init_security();
47659
+ init_url();
47660
+ init_components();
47661
+ init_errors2();
47662
+ init_operations();
47663
+ init_async();
47664
+ });
47665
+
47666
+ // src/mcp-server/tools/pendlePosition.ts
47667
+ var args36, tool$pendlePosition;
47668
+ var init_pendlePosition2 = __esm(() => {
47669
+ init_pendlePosition();
47670
+ init_operations();
47671
+ init_tools();
47672
+ args36 = {
47673
+ request: PendlePositionRequest$inboundSchema
47674
+ };
47675
+ tool$pendlePosition = {
47676
+ name: "pendle-position",
47677
+ description: `Check User's Market Position
47678
+
47679
+ Check the SY, PT, and YT positions for a given market.`,
47680
+ args: args36,
47681
+ tool: async (client, args37, ctx) => {
47682
+ const [result, apiCall] = await pendlePosition(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47683
+ if (!result.ok) {
47684
+ return {
47685
+ content: [{ type: "text", text: result.error.message }],
47686
+ isError: true
47687
+ };
47688
+ }
47689
+ const value = result.value;
47690
+ return formatResult(value, apiCall);
47691
+ }
47692
+ };
47693
+ });
47694
+
47695
+ // src/funcs/skyBuy.ts
47696
+ function skyBuy(client, request, options) {
47697
+ return new APIPromise($do37(client, request, options));
47698
+ }
47699
+ async function $do37(client, request, options) {
47453
47700
  const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
47454
47701
  if (!parsed.ok) {
47455
47702
  return [parsed, { status: "invalid" }];
@@ -47518,12 +47765,12 @@ var init_skyBuy = __esm(() => {
47518
47765
  });
47519
47766
 
47520
47767
  // src/mcp-server/tools/skyBuy.ts
47521
- var args36, tool$skyBuy;
47768
+ var args37, tool$skyBuy;
47522
47769
  var init_skyBuy2 = __esm(() => {
47523
47770
  init_skyBuy();
47524
47771
  init_components();
47525
47772
  init_tools();
47526
- args36 = {
47773
+ args37 = {
47527
47774
  request: SkyBuyRequest$inboundSchema
47528
47775
  };
47529
47776
  tool$skyBuy = {
@@ -47537,9 +47784,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
47537
47784
 
47538
47785
  If buying with USDC, user will need to set an allowance on the USDC contract for the
47539
47786
  'SkyDaiUsdsConverter' contract beforehand.`,
47540
- args: args36,
47541
- tool: async (client, args37, ctx) => {
47542
- const [result, apiCall] = await skyBuy(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47787
+ args: args37,
47788
+ tool: async (client, args38, ctx) => {
47789
+ const [result, apiCall] = await skyBuy(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47543
47790
  if (!result.ok) {
47544
47791
  return {
47545
47792
  content: [{ type: "text", text: result.error.message }],
@@ -47554,9 +47801,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
47554
47801
 
47555
47802
  // src/funcs/skyDeposit.ts
47556
47803
  function skyDeposit(client, request, options) {
47557
- return new APIPromise($do37(client, request, options));
47804
+ return new APIPromise($do38(client, request, options));
47558
47805
  }
47559
- async function $do37(client, request, options) {
47806
+ async function $do38(client, request, options) {
47560
47807
  const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
47561
47808
  if (!parsed.ok) {
47562
47809
  return [parsed, { status: "invalid" }];
@@ -47625,12 +47872,12 @@ var init_skyDeposit = __esm(() => {
47625
47872
  });
47626
47873
 
47627
47874
  // src/mcp-server/tools/skyDeposit.ts
47628
- var args37, tool$skyDeposit;
47875
+ var args38, tool$skyDeposit;
47629
47876
  var init_skyDeposit2 = __esm(() => {
47630
47877
  init_skyDeposit();
47631
47878
  init_components();
47632
47879
  init_tools();
47633
- args37 = {
47880
+ args38 = {
47634
47881
  request: SkyDepositRequest$inboundSchema
47635
47882
  };
47636
47883
  tool$skyDeposit = {
@@ -47640,9 +47887,9 @@ var init_skyDeposit2 = __esm(() => {
47640
47887
  Deposit USDS for sUSDS to earn yield.
47641
47888
 
47642
47889
  There are no fees.`,
47643
- args: args37,
47644
- tool: async (client, args38, ctx) => {
47645
- const [result, apiCall] = await skyDeposit(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47890
+ args: args38,
47891
+ tool: async (client, args39, ctx) => {
47892
+ const [result, apiCall] = await skyDeposit(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47646
47893
  if (!result.ok) {
47647
47894
  return {
47648
47895
  content: [{ type: "text", text: result.error.message }],
@@ -47657,9 +47904,9 @@ There are no fees.`,
47657
47904
 
47658
47905
  // src/funcs/skyPosition.ts
47659
47906
  function skyPosition(client, request, options) {
47660
- return new APIPromise($do38(client, request, options));
47907
+ return new APIPromise($do39(client, request, options));
47661
47908
  }
47662
- async function $do38(client, request, options) {
47909
+ async function $do39(client, request, options) {
47663
47910
  const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
47664
47911
  if (!parsed.ok) {
47665
47912
  return [parsed, { status: "invalid" }];
@@ -47733,12 +47980,12 @@ var init_skyPosition = __esm(() => {
47733
47980
  });
47734
47981
 
47735
47982
  // src/mcp-server/tools/skyPosition.ts
47736
- var args38, tool$skyPosition;
47983
+ var args39, tool$skyPosition;
47737
47984
  var init_skyPosition2 = __esm(() => {
47738
47985
  init_skyPosition();
47739
47986
  init_operations();
47740
47987
  init_tools();
47741
- args38 = {
47988
+ args39 = {
47742
47989
  request: SkyPositionRequest$inboundSchema
47743
47990
  };
47744
47991
  tool$skyPosition = {
@@ -47746,9 +47993,9 @@ var init_skyPosition2 = __esm(() => {
47746
47993
  description: `Check USDS Position
47747
47994
 
47748
47995
  Check the USDS overall position.`,
47749
- args: args38,
47750
- tool: async (client, args39, ctx) => {
47751
- const [result, apiCall] = await skyPosition(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47996
+ args: args39,
47997
+ tool: async (client, args40, ctx) => {
47998
+ const [result, apiCall] = await skyPosition(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47752
47999
  if (!result.ok) {
47753
48000
  return {
47754
48001
  content: [{ type: "text", text: result.error.message }],
@@ -47763,9 +48010,9 @@ Check the USDS overall position.`,
47763
48010
 
47764
48011
  // src/funcs/skySell.ts
47765
48012
  function skySell(client, request, options) {
47766
- return new APIPromise($do39(client, request, options));
48013
+ return new APIPromise($do40(client, request, options));
47767
48014
  }
47768
- async function $do39(client, request, options) {
48015
+ async function $do40(client, request, options) {
47769
48016
  const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
47770
48017
  if (!parsed.ok) {
47771
48018
  return [parsed, { status: "invalid" }];
@@ -47834,12 +48081,12 @@ var init_skySell = __esm(() => {
47834
48081
  });
47835
48082
 
47836
48083
  // src/mcp-server/tools/skySell.ts
47837
- var args39, tool$skySell;
48084
+ var args40, tool$skySell;
47838
48085
  var init_skySell2 = __esm(() => {
47839
48086
  init_skySell();
47840
48087
  init_components();
47841
48088
  init_tools();
47842
- args39 = {
48089
+ args40 = {
47843
48090
  request: SkySellRequest$inboundSchema
47844
48091
  };
47845
48092
  tool$skySell = {
@@ -47853,9 +48100,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
47853
48100
 
47854
48101
  If swapping to USDC, user will need to set an allowance on the USDS contract for the
47855
48102
  'SkyUsdcUsdsConverter' contract beforehand.`,
47856
- args: args39,
47857
- tool: async (client, args40, ctx) => {
47858
- const [result, apiCall] = await skySell(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48103
+ args: args40,
48104
+ tool: async (client, args41, ctx) => {
48105
+ const [result, apiCall] = await skySell(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47859
48106
  if (!result.ok) {
47860
48107
  return {
47861
48108
  content: [{ type: "text", text: result.error.message }],
@@ -47870,9 +48117,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
47870
48117
 
47871
48118
  // src/funcs/skyWithdraw.ts
47872
48119
  function skyWithdraw(client, request, options) {
47873
- return new APIPromise($do40(client, request, options));
48120
+ return new APIPromise($do41(client, request, options));
47874
48121
  }
47875
- async function $do40(client, request, options) {
48122
+ async function $do41(client, request, options) {
47876
48123
  const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
47877
48124
  if (!parsed.ok) {
47878
48125
  return [parsed, { status: "invalid" }];
@@ -47941,12 +48188,12 @@ var init_skyWithdraw = __esm(() => {
47941
48188
  });
47942
48189
 
47943
48190
  // src/mcp-server/tools/skyWithdraw.ts
47944
- var args40, tool$skyWithdraw;
48191
+ var args41, tool$skyWithdraw;
47945
48192
  var init_skyWithdraw2 = __esm(() => {
47946
48193
  init_skyWithdraw();
47947
48194
  init_components();
47948
48195
  init_tools();
47949
- args40 = {
48196
+ args41 = {
47950
48197
  request: SkyWithdrawRequest$inboundSchema
47951
48198
  };
47952
48199
  tool$skyWithdraw = {
@@ -47954,9 +48201,9 @@ var init_skyWithdraw2 = __esm(() => {
47954
48201
  description: `Withdraw USDS
47955
48202
 
47956
48203
  Withdraw USDS for sUSDS to stop earning yield.`,
47957
- args: args40,
47958
- tool: async (client, args41, ctx) => {
47959
- const [result, apiCall] = await skyWithdraw(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48204
+ args: args41,
48205
+ tool: async (client, args42, ctx) => {
48206
+ const [result, apiCall] = await skyWithdraw(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47960
48207
  if (!result.ok) {
47961
48208
  return {
47962
48209
  content: [{ type: "text", text: result.error.message }],
@@ -47971,9 +48218,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
47971
48218
 
47972
48219
  // src/funcs/smartAccountAccountBatchedUserOperations.ts
47973
48220
  function smartAccountAccountBatchedUserOperations(client, request, options) {
47974
- return new APIPromise($do41(client, request, options));
48221
+ return new APIPromise($do42(client, request, options));
47975
48222
  }
47976
- async function $do41(client, request, options) {
48223
+ async function $do42(client, request, options) {
47977
48224
  const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
47978
48225
  if (!parsed.ok) {
47979
48226
  return [parsed, { status: "invalid" }];
@@ -48042,12 +48289,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
48042
48289
  });
48043
48290
 
48044
48291
  // src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
48045
- var args41, tool$smartAccountAccountBatchedUserOperations;
48292
+ var args42, tool$smartAccountAccountBatchedUserOperations;
48046
48293
  var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
48047
48294
  init_smartAccountAccountBatchedUserOperations();
48048
48295
  init_components();
48049
48296
  init_tools();
48050
- args41 = {
48297
+ args42 = {
48051
48298
  request: BatchedUserOperationsRequest$inboundSchema
48052
48299
  };
48053
48300
  tool$smartAccountAccountBatchedUserOperations = {
@@ -48055,9 +48302,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
48055
48302
  description: `Get Smart Account Batched User Operations
48056
48303
 
48057
48304
  Generate a list of user operations for smart account batching.`,
48058
- args: args41,
48059
- tool: async (client, args42, ctx) => {
48060
- const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48305
+ args: args42,
48306
+ tool: async (client, args43, ctx) => {
48307
+ const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48061
48308
  if (!result.ok) {
48062
48309
  return {
48063
48310
  content: [{ type: "text", text: result.error.message }],
@@ -48072,9 +48319,9 @@ Generate a list of user operations for smart account batching.`,
48072
48319
 
48073
48320
  // src/funcs/tokenAddress.ts
48074
48321
  function tokenAddress(client, request, options) {
48075
- return new APIPromise($do42(client, request, options));
48322
+ return new APIPromise($do43(client, request, options));
48076
48323
  }
48077
- async function $do42(client, request, options) {
48324
+ async function $do43(client, request, options) {
48078
48325
  const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
48079
48326
  if (!parsed.ok) {
48080
48327
  return [parsed, { status: "invalid" }];
@@ -48148,12 +48395,12 @@ var init_tokenAddress = __esm(() => {
48148
48395
  });
48149
48396
 
48150
48397
  // src/mcp-server/tools/tokenAddress.ts
48151
- var args42, tool$tokenAddress;
48398
+ var args43, tool$tokenAddress;
48152
48399
  var init_tokenAddress2 = __esm(() => {
48153
48400
  init_tokenAddress();
48154
48401
  init_operations();
48155
48402
  init_tools();
48156
- args42 = {
48403
+ args43 = {
48157
48404
  request: TokenAddressRequest$inboundSchema
48158
48405
  };
48159
48406
  tool$tokenAddress = {
@@ -48161,9 +48408,9 @@ var init_tokenAddress2 = __esm(() => {
48161
48408
  description: `Token Address
48162
48409
 
48163
48410
  This endpoint retrieves the address for a token supported by us.`,
48164
- args: args42,
48165
- tool: async (client, args43, ctx) => {
48166
- const [result, apiCall] = await tokenAddress(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48411
+ args: args43,
48412
+ tool: async (client, args44, ctx) => {
48413
+ const [result, apiCall] = await tokenAddress(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48167
48414
  if (!result.ok) {
48168
48415
  return {
48169
48416
  content: [{ type: "text", text: result.error.message }],
@@ -48178,9 +48425,9 @@ This endpoint retrieves the address for a token supported by us.`,
48178
48425
 
48179
48426
  // src/funcs/tokenBalance.ts
48180
48427
  function tokenBalance(client, request, options) {
48181
- return new APIPromise($do43(client, request, options));
48428
+ return new APIPromise($do44(client, request, options));
48182
48429
  }
48183
- async function $do43(client, request, options) {
48430
+ async function $do44(client, request, options) {
48184
48431
  const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
48185
48432
  if (!parsed.ok) {
48186
48433
  return [parsed, { status: "invalid" }];
@@ -48255,12 +48502,12 @@ var init_tokenBalance = __esm(() => {
48255
48502
  });
48256
48503
 
48257
48504
  // src/mcp-server/tools/tokenBalance.ts
48258
- var args43, tool$tokenBalance;
48505
+ var args44, tool$tokenBalance;
48259
48506
  var init_tokenBalance2 = __esm(() => {
48260
48507
  init_tokenBalance();
48261
48508
  init_operations();
48262
48509
  init_tools();
48263
- args43 = {
48510
+ args44 = {
48264
48511
  request: TokenBalanceRequest$inboundSchema
48265
48512
  };
48266
48513
  tool$tokenBalance = {
@@ -48268,9 +48515,9 @@ var init_tokenBalance2 = __esm(() => {
48268
48515
  description: `Token Balance
48269
48516
 
48270
48517
  Returns the balance of a specific ERC20 token for a given user address.`,
48271
- args: args43,
48272
- tool: async (client, args44, ctx) => {
48273
- const [result, apiCall] = await tokenBalance(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48518
+ args: args44,
48519
+ tool: async (client, args45, ctx) => {
48520
+ const [result, apiCall] = await tokenBalance(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48274
48521
  if (!result.ok) {
48275
48522
  return {
48276
48523
  content: [{ type: "text", text: result.error.message }],
@@ -48285,9 +48532,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
48285
48532
 
48286
48533
  // src/funcs/tokenPrice.ts
48287
48534
  function tokenPrice(client, request, options) {
48288
- return new APIPromise($do44(client, request, options));
48535
+ return new APIPromise($do45(client, request, options));
48289
48536
  }
48290
- async function $do44(client, request, options) {
48537
+ async function $do45(client, request, options) {
48291
48538
  const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
48292
48539
  if (!parsed.ok) {
48293
48540
  return [parsed, { status: "invalid" }];
@@ -48361,12 +48608,12 @@ var init_tokenPrice = __esm(() => {
48361
48608
  });
48362
48609
 
48363
48610
  // src/mcp-server/tools/tokenPrice.ts
48364
- var args44, tool$tokenPrice;
48611
+ var args45, tool$tokenPrice;
48365
48612
  var init_tokenPrice2 = __esm(() => {
48366
48613
  init_tokenPrice();
48367
48614
  init_operations();
48368
48615
  init_tools();
48369
- args44 = {
48616
+ args45 = {
48370
48617
  request: TokenPriceRequest$inboundSchema
48371
48618
  };
48372
48619
  tool$tokenPrice = {
@@ -48378,9 +48625,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
48378
48625
  Chainlink is a decentralized oracle that aggregates price data from off-chain
48379
48626
  sources. This ensures the price is tamper-resistant but the price might be stale
48380
48627
  with the update frequency of the oracle.`,
48381
- args: args44,
48382
- tool: async (client, args45, ctx) => {
48383
- const [result, apiCall] = await tokenPrice(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48628
+ args: args45,
48629
+ tool: async (client, args46, ctx) => {
48630
+ const [result, apiCall] = await tokenPrice(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48384
48631
  if (!result.ok) {
48385
48632
  return {
48386
48633
  content: [{ type: "text", text: result.error.message }],
@@ -48395,9 +48642,9 @@ with the update frequency of the oracle.`,
48395
48642
 
48396
48643
  // src/funcs/tokenTransfer.ts
48397
48644
  function tokenTransfer(client, request, options) {
48398
- return new APIPromise($do45(client, request, options));
48645
+ return new APIPromise($do46(client, request, options));
48399
48646
  }
48400
- async function $do45(client, request, options) {
48647
+ async function $do46(client, request, options) {
48401
48648
  const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
48402
48649
  if (!parsed.ok) {
48403
48650
  return [parsed, { status: "invalid" }];
@@ -48466,12 +48713,12 @@ var init_tokenTransfer = __esm(() => {
48466
48713
  });
48467
48714
 
48468
48715
  // src/mcp-server/tools/tokenTransfer.ts
48469
- var args45, tool$tokenTransfer;
48716
+ var args46, tool$tokenTransfer;
48470
48717
  var init_tokenTransfer2 = __esm(() => {
48471
48718
  init_tokenTransfer();
48472
48719
  init_components();
48473
48720
  init_tools();
48474
- args45 = {
48721
+ args46 = {
48475
48722
  request: TokenTransferRequest$inboundSchema
48476
48723
  };
48477
48724
  tool$tokenTransfer = {
@@ -48479,9 +48726,9 @@ var init_tokenTransfer2 = __esm(() => {
48479
48726
  description: `Transfer ETH or ERC20 Tokens.
48480
48727
 
48481
48728
  Sends native ETH or ERC20 tokens from the sender's address to another address.`,
48482
- args: args45,
48483
- tool: async (client, args46, ctx) => {
48484
- const [result, apiCall] = await tokenTransfer(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48729
+ args: args46,
48730
+ tool: async (client, args47, ctx) => {
48731
+ const [result, apiCall] = await tokenTransfer(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48485
48732
  if (!result.ok) {
48486
48733
  return {
48487
48734
  content: [{ type: "text", text: result.error.message }],
@@ -48496,9 +48743,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
48496
48743
 
48497
48744
  // src/funcs/transactionBatchingAaveLoop.ts
48498
48745
  function transactionBatchingAaveLoop(client, request, options) {
48499
- return new APIPromise($do46(client, request, options));
48746
+ return new APIPromise($do47(client, request, options));
48500
48747
  }
48501
- async function $do46(client, request, options) {
48748
+ async function $do47(client, request, options) {
48502
48749
  const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
48503
48750
  if (!parsed.ok) {
48504
48751
  return [parsed, { status: "invalid" }];
@@ -48567,12 +48814,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
48567
48814
  });
48568
48815
 
48569
48816
  // src/mcp-server/tools/transactionBatchingAaveLoop.ts
48570
- var args46, tool$transactionBatchingAaveLoop;
48817
+ var args47, tool$transactionBatchingAaveLoop;
48571
48818
  var init_transactionBatchingAaveLoop2 = __esm(() => {
48572
48819
  init_transactionBatchingAaveLoop();
48573
48820
  init_components();
48574
48821
  init_tools();
48575
- args46 = {
48822
+ args47 = {
48576
48823
  request: AaveLoopRequest$inboundSchema
48577
48824
  };
48578
48825
  tool$transactionBatchingAaveLoop = {
@@ -48590,9 +48837,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
48590
48837
  - Supplies the swapped tokens
48591
48838
 
48592
48839
  The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
48593
- args: args46,
48594
- tool: async (client, args47, ctx) => {
48595
- const [result, apiCall] = await transactionBatchingAaveLoop(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48840
+ args: args47,
48841
+ tool: async (client, args48, ctx) => {
48842
+ const [result, apiCall] = await transactionBatchingAaveLoop(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48596
48843
  if (!result.ok) {
48597
48844
  return {
48598
48845
  content: [{ type: "text", text: result.error.message }],
@@ -48607,9 +48854,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
48607
48854
 
48608
48855
  // src/funcs/transactionBatchingAuthorization.ts
48609
48856
  function transactionBatchingAuthorization(client, request, options) {
48610
- return new APIPromise($do47(client, request, options));
48857
+ return new APIPromise($do48(client, request, options));
48611
48858
  }
48612
- async function $do47(client, request, options) {
48859
+ async function $do48(client, request, options) {
48613
48860
  const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
48614
48861
  if (!parsed.ok) {
48615
48862
  return [parsed, { status: "invalid" }];
@@ -48678,12 +48925,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
48678
48925
  });
48679
48926
 
48680
48927
  // src/mcp-server/tools/transactionBatchingAuthorization.ts
48681
- var args47, tool$transactionBatchingAuthorization;
48928
+ var args48, tool$transactionBatchingAuthorization;
48682
48929
  var init_transactionBatchingAuthorization2 = __esm(() => {
48683
48930
  init_transactionBatchingAuthorization();
48684
48931
  init_components();
48685
48932
  init_tools();
48686
- args47 = {
48933
+ args48 = {
48687
48934
  request: MulticallAuthorizationRequest$inboundSchema
48688
48935
  };
48689
48936
  tool$transactionBatchingAuthorization = {
@@ -48696,9 +48943,9 @@ This authorization is required to prevent replay attacks and ensure transaction
48696
48943
  ordering when batching multiple actions into a single transaction. The authorization
48697
48944
  includes a nonce and chain ID to guarantee transaction uniqueness and proper network
48698
48945
  targeting.`,
48699
- args: args47,
48700
- tool: async (client, args48, ctx) => {
48701
- const [result, apiCall] = await transactionBatchingAuthorization(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48946
+ args: args48,
48947
+ tool: async (client, args49, ctx) => {
48948
+ const [result, apiCall] = await transactionBatchingAuthorization(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48702
48949
  if (!result.ok) {
48703
48950
  return {
48704
48951
  content: [{ type: "text", text: result.error.message }],
@@ -48713,9 +48960,9 @@ targeting.`,
48713
48960
 
48714
48961
  // src/funcs/transactionBatchingExecute.ts
48715
48962
  function transactionBatchingExecute(client, request, options) {
48716
- return new APIPromise($do48(client, request, options));
48963
+ return new APIPromise($do49(client, request, options));
48717
48964
  }
48718
- async function $do48(client, request, options) {
48965
+ async function $do49(client, request, options) {
48719
48966
  const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
48720
48967
  if (!parsed.ok) {
48721
48968
  return [parsed, { status: "invalid" }];
@@ -48784,12 +49031,12 @@ var init_transactionBatchingExecute = __esm(() => {
48784
49031
  });
48785
49032
 
48786
49033
  // src/mcp-server/tools/transactionBatchingExecute.ts
48787
- var args48, tool$transactionBatchingExecute;
49034
+ var args49, tool$transactionBatchingExecute;
48788
49035
  var init_transactionBatchingExecute2 = __esm(() => {
48789
49036
  init_transactionBatchingExecute();
48790
49037
  init_components();
48791
49038
  init_tools();
48792
- args48 = {
49039
+ args49 = {
48793
49040
  request: MulticallExecuteRequest$inboundSchema
48794
49041
  };
48795
49042
  tool$transactionBatchingExecute = {
@@ -48802,9 +49049,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
48802
49049
  transaction, reducing gas costs and ensuring all operations succeed or fail
48803
49050
  together. The transaction must be authorized using the /authorization endpoint to
48804
49051
  prevent replay attacks.`,
48805
- args: args48,
48806
- tool: async (client, args49, ctx) => {
48807
- const [result, apiCall] = await transactionBatchingExecute(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49052
+ args: args49,
49053
+ tool: async (client, args50, ctx) => {
49054
+ const [result, apiCall] = await transactionBatchingExecute(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48808
49055
  if (!result.ok) {
48809
49056
  return {
48810
49057
  content: [{ type: "text", text: result.error.message }],
@@ -48819,9 +49066,9 @@ prevent replay attacks.`,
48819
49066
 
48820
49067
  // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
48821
49068
  function uniswapV3LiquidityProvisionIncrease(client, request, options) {
48822
- return new APIPromise($do49(client, request, options));
49069
+ return new APIPromise($do50(client, request, options));
48823
49070
  }
48824
- async function $do49(client, request, options) {
49071
+ async function $do50(client, request, options) {
48825
49072
  const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
48826
49073
  if (!parsed.ok) {
48827
49074
  return [parsed, { status: "invalid" }];
@@ -48890,12 +49137,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
48890
49137
  });
48891
49138
 
48892
49139
  // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
48893
- var args49, tool$uniswapV3LiquidityProvisionIncrease;
49140
+ var args50, tool$uniswapV3LiquidityProvisionIncrease;
48894
49141
  var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
48895
49142
  init_uniswapV3LiquidityProvisionIncrease();
48896
49143
  init_components();
48897
49144
  init_tools();
48898
- args49 = {
49145
+ args50 = {
48899
49146
  request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
48900
49147
  };
48901
49148
  tool$uniswapV3LiquidityProvisionIncrease = {
@@ -48911,9 +49158,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
48911
49158
  within the pool. The endpoint requires details such as the token pair, additional
48912
49159
  amount to be added, and any other parameters necessary for the liquidity increase
48913
49160
  process.`,
48914
- args: args49,
48915
- tool: async (client, args50, ctx) => {
48916
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49161
+ args: args50,
49162
+ tool: async (client, args51, ctx) => {
49163
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48917
49164
  if (!result.ok) {
48918
49165
  return {
48919
49166
  content: [{ type: "text", text: result.error.message }],
@@ -48928,9 +49175,9 @@ process.`,
48928
49175
 
48929
49176
  // src/funcs/uniswapV3LiquidityProvisionInRange.ts
48930
49177
  function uniswapV3LiquidityProvisionInRange(client, request, options) {
48931
- return new APIPromise($do50(client, request, options));
49178
+ return new APIPromise($do51(client, request, options));
48932
49179
  }
48933
- async function $do50(client, request, options) {
49180
+ async function $do51(client, request, options) {
48934
49181
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
48935
49182
  if (!parsed.ok) {
48936
49183
  return [parsed, { status: "invalid" }];
@@ -49004,12 +49251,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
49004
49251
  });
49005
49252
 
49006
49253
  // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
49007
- var args50, tool$uniswapV3LiquidityProvisionInRange;
49254
+ var args51, tool$uniswapV3LiquidityProvisionInRange;
49008
49255
  var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
49009
49256
  init_uniswapV3LiquidityProvisionInRange();
49010
49257
  init_operations();
49011
49258
  init_tools();
49012
- args50 = {
49259
+ args51 = {
49013
49260
  request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
49014
49261
  };
49015
49262
  tool$uniswapV3LiquidityProvisionInRange = {
@@ -49024,9 +49271,9 @@ position is currently within the tick range where trading occurs. this informati
49024
49271
  is essential for users to monitor the status of their lp positions and ensure that
49025
49272
  they are actively participating in the trading activities within the liquidity pool
49026
49273
  and earning trading fees.`,
49027
- args: args50,
49028
- tool: async (client, args51, ctx) => {
49029
- const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49274
+ args: args51,
49275
+ tool: async (client, args52, ctx) => {
49276
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49030
49277
  if (!result.ok) {
49031
49278
  return {
49032
49279
  content: [{ type: "text", text: result.error.message }],
@@ -49041,9 +49288,9 @@ and earning trading fees.`,
49041
49288
 
49042
49289
  // src/funcs/uniswapV3LiquidityProvisionMint.ts
49043
49290
  function uniswapV3LiquidityProvisionMint(client, request, options) {
49044
- return new APIPromise($do51(client, request, options));
49291
+ return new APIPromise($do52(client, request, options));
49045
49292
  }
49046
- async function $do51(client, request, options) {
49293
+ async function $do52(client, request, options) {
49047
49294
  const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
49048
49295
  if (!parsed.ok) {
49049
49296
  return [parsed, { status: "invalid" }];
@@ -49112,12 +49359,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
49112
49359
  });
49113
49360
 
49114
49361
  // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
49115
- var args51, tool$uniswapV3LiquidityProvisionMint;
49362
+ var args52, tool$uniswapV3LiquidityProvisionMint;
49116
49363
  var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
49117
49364
  init_uniswapV3LiquidityProvisionMint();
49118
49365
  init_components();
49119
49366
  init_tools();
49120
- args51 = {
49367
+ args52 = {
49121
49368
  request: UniswapMintLiquidityProvisionRequest$inboundSchema
49122
49369
  };
49123
49370
  tool$uniswapV3LiquidityProvisionMint = {
@@ -49133,9 +49380,9 @@ This operation is essential for users looking to participate in liquidity provis
49133
49380
  enabling them to earn fees from trades that occur within the pool. The endpoint
49134
49381
  requires details such as the token pair, amount, and any additional parameters
49135
49382
  needed for the minting process.`,
49136
- args: args51,
49137
- tool: async (client, args52, ctx) => {
49138
- const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49383
+ args: args52,
49384
+ tool: async (client, args53, ctx) => {
49385
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49139
49386
  if (!result.ok) {
49140
49387
  return {
49141
49388
  content: [{ type: "text", text: result.error.message }],
@@ -49150,9 +49397,9 @@ needed for the minting process.`,
49150
49397
 
49151
49398
  // src/funcs/uniswapV3LiquidityProvisionPositions.ts
49152
49399
  function uniswapV3LiquidityProvisionPositions(client, request, options) {
49153
- return new APIPromise($do52(client, request, options));
49400
+ return new APIPromise($do53(client, request, options));
49154
49401
  }
49155
- async function $do52(client, request, options) {
49402
+ async function $do53(client, request, options) {
49156
49403
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
49157
49404
  if (!parsed.ok) {
49158
49405
  return [parsed, { status: "invalid" }];
@@ -49226,12 +49473,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
49226
49473
  });
49227
49474
 
49228
49475
  // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
49229
- var args52, tool$uniswapV3LiquidityProvisionPositions;
49476
+ var args53, tool$uniswapV3LiquidityProvisionPositions;
49230
49477
  var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
49231
49478
  init_uniswapV3LiquidityProvisionPositions();
49232
49479
  init_operations();
49233
49480
  init_tools();
49234
- args52 = {
49481
+ args53 = {
49235
49482
  request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
49236
49483
  };
49237
49484
  tool$uniswapV3LiquidityProvisionPositions = {
@@ -49245,9 +49492,9 @@ Users can query this endpoint to obtain detailed information about their LP
49245
49492
  positions, including the total number of positions and relevant metadata. This
49246
49493
  information is crucial for users to manage and analyze their liquidity provision
49247
49494
  activities effectively.`,
49248
- args: args52,
49249
- tool: async (client, args53, ctx) => {
49250
- const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49495
+ args: args53,
49496
+ tool: async (client, args54, ctx) => {
49497
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49251
49498
  if (!result.ok) {
49252
49499
  return {
49253
49500
  content: [{ type: "text", text: result.error.message }],
@@ -49262,9 +49509,9 @@ activities effectively.`,
49262
49509
 
49263
49510
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
49264
49511
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
49265
- return new APIPromise($do53(client, request, options));
49512
+ return new APIPromise($do54(client, request, options));
49266
49513
  }
49267
- async function $do53(client, request, options) {
49514
+ async function $do54(client, request, options) {
49268
49515
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
49269
49516
  if (!parsed.ok) {
49270
49517
  return [parsed, { status: "invalid" }];
@@ -49333,12 +49580,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
49333
49580
  });
49334
49581
 
49335
49582
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
49336
- var args53, tool$uniswapV3LiquidityProvisionWithdraw;
49583
+ var args54, tool$uniswapV3LiquidityProvisionWithdraw;
49337
49584
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
49338
49585
  init_uniswapV3LiquidityProvisionWithdraw();
49339
49586
  init_components();
49340
49587
  init_tools();
49341
- args53 = {
49588
+ args54 = {
49342
49589
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
49343
49590
  };
49344
49591
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -49355,9 +49602,9 @@ pools or investments. The endpoint requires details such as the token pair, the
49355
49602
  amount to be withdrawn, and any additional parameters needed for the withdrawal
49356
49603
  process. Users should ensure they meet any protocol requirements or conditions
49357
49604
  before initiating a withdrawal to avoid potential issues or penalties.`,
49358
- args: args53,
49359
- tool: async (client, args54, ctx) => {
49360
- const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49605
+ args: args54,
49606
+ tool: async (client, args55, ctx) => {
49607
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49361
49608
  if (!result.ok) {
49362
49609
  return {
49363
49610
  content: [{ type: "text", text: result.error.message }],
@@ -49372,9 +49619,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
49372
49619
 
49373
49620
  // src/funcs/uniswapV3PoolPrice.ts
49374
49621
  function uniswapV3PoolPrice(client, request, options) {
49375
- return new APIPromise($do54(client, request, options));
49622
+ return new APIPromise($do55(client, request, options));
49376
49623
  }
49377
- async function $do54(client, request, options) {
49624
+ async function $do55(client, request, options) {
49378
49625
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
49379
49626
  if (!parsed.ok) {
49380
49627
  return [parsed, { status: "invalid" }];
@@ -49450,12 +49697,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
49450
49697
  });
49451
49698
 
49452
49699
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
49453
- var args54, tool$uniswapV3PoolPrice;
49700
+ var args55, tool$uniswapV3PoolPrice;
49454
49701
  var init_uniswapV3PoolPrice2 = __esm(() => {
49455
49702
  init_uniswapV3PoolPrice();
49456
49703
  init_operations();
49457
49704
  init_tools();
49458
- args54 = {
49705
+ args55 = {
49459
49706
  request: UniswapPoolPriceRequest$inboundSchema
49460
49707
  };
49461
49708
  tool$uniswapV3PoolPrice = {
@@ -49465,9 +49712,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
49465
49712
  This endpoint calculates the price of a token in a Uniswap pool.
49466
49713
 
49467
49714
  The price is calculated based on the current pool state and the specified fee tier.`,
49468
- args: args54,
49469
- tool: async (client, args55, ctx) => {
49470
- const [result, apiCall] = await uniswapV3PoolPrice(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49715
+ args: args55,
49716
+ tool: async (client, args56, ctx) => {
49717
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49471
49718
  if (!result.ok) {
49472
49719
  return {
49473
49720
  content: [{ type: "text", text: result.error.message }],
@@ -49482,9 +49729,9 @@ The price is calculated based on the current pool state and the specified fee ti
49482
49729
 
49483
49730
  // src/funcs/uniswapV3QuoteBuyExactly.ts
49484
49731
  function uniswapV3QuoteBuyExactly(client, request, options) {
49485
- return new APIPromise($do55(client, request, options));
49732
+ return new APIPromise($do56(client, request, options));
49486
49733
  }
49487
- async function $do55(client, request, options) {
49734
+ async function $do56(client, request, options) {
49488
49735
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
49489
49736
  if (!parsed.ok) {
49490
49737
  return [parsed, { status: "invalid" }];
@@ -49561,12 +49808,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
49561
49808
  });
49562
49809
 
49563
49810
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
49564
- var args55, tool$uniswapV3QuoteBuyExactly;
49811
+ var args56, tool$uniswapV3QuoteBuyExactly;
49565
49812
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
49566
49813
  init_uniswapV3QuoteBuyExactly();
49567
49814
  init_operations();
49568
49815
  init_tools();
49569
- args55 = {
49816
+ args56 = {
49570
49817
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
49571
49818
  };
49572
49819
  tool$uniswapV3QuoteBuyExactly = {
@@ -49578,9 +49825,9 @@ specified amount of output tokens from a Uniswap pool.
49578
49825
 
49579
49826
  It also provides the resulting price after the transaction. The calculation takes
49580
49827
  into account the current pool state and the specified fee tier.`,
49581
- args: args55,
49582
- tool: async (client, args56, ctx) => {
49583
- const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49828
+ args: args56,
49829
+ tool: async (client, args57, ctx) => {
49830
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49584
49831
  if (!result.ok) {
49585
49832
  return {
49586
49833
  content: [{ type: "text", text: result.error.message }],
@@ -49595,9 +49842,9 @@ into account the current pool state and the specified fee tier.`,
49595
49842
 
49596
49843
  // src/funcs/uniswapV3QuoteSellExactly.ts
49597
49844
  function uniswapV3QuoteSellExactly(client, request, options) {
49598
- return new APIPromise($do56(client, request, options));
49845
+ return new APIPromise($do57(client, request, options));
49599
49846
  }
49600
- async function $do56(client, request, options) {
49847
+ async function $do57(client, request, options) {
49601
49848
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
49602
49849
  if (!parsed.ok) {
49603
49850
  return [parsed, { status: "invalid" }];
@@ -49674,12 +49921,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
49674
49921
  });
49675
49922
 
49676
49923
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
49677
- var args56, tool$uniswapV3QuoteSellExactly;
49924
+ var args57, tool$uniswapV3QuoteSellExactly;
49678
49925
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
49679
49926
  init_uniswapV3QuoteSellExactly();
49680
49927
  init_operations();
49681
49928
  init_tools();
49682
- args56 = {
49929
+ args57 = {
49683
49930
  request: UniswapQuoteSellExactlyRequest$inboundSchema
49684
49931
  };
49685
49932
  tool$uniswapV3QuoteSellExactly = {
@@ -49691,9 +49938,9 @@ specified amount of output tokens from a Uniswap pool.
49691
49938
 
49692
49939
  It also provides the resulting price after the transaction. The calculation takes
49693
49940
  into account the current pool state and the specified fee tier.`,
49694
- args: args56,
49695
- tool: async (client, args57, ctx) => {
49696
- const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49941
+ args: args57,
49942
+ tool: async (client, args58, ctx) => {
49943
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49697
49944
  if (!result.ok) {
49698
49945
  return {
49699
49946
  content: [{ type: "text", text: result.error.message }],
@@ -49708,9 +49955,9 @@ into account the current pool state and the specified fee tier.`,
49708
49955
 
49709
49956
  // src/funcs/uniswapV3SwapBuyExactly.ts
49710
49957
  function uniswapV3SwapBuyExactly(client, request, options) {
49711
- return new APIPromise($do57(client, request, options));
49958
+ return new APIPromise($do58(client, request, options));
49712
49959
  }
49713
- async function $do57(client, request, options) {
49960
+ async function $do58(client, request, options) {
49714
49961
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
49715
49962
  if (!parsed.ok) {
49716
49963
  return [parsed, { status: "invalid" }];
@@ -49779,12 +50026,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
49779
50026
  });
49780
50027
 
49781
50028
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
49782
- var args57, tool$uniswapV3SwapBuyExactly;
50029
+ var args58, tool$uniswapV3SwapBuyExactly;
49783
50030
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
49784
50031
  init_uniswapV3SwapBuyExactly();
49785
50032
  init_components();
49786
50033
  init_tools();
49787
- args57 = {
50034
+ args58 = {
49788
50035
  request: UniswapBuyExactlyRequest$inboundSchema
49789
50036
  };
49790
50037
  tool$uniswapV3SwapBuyExactly = {
@@ -49798,9 +50045,9 @@ The transaction is executed on the specified blockchain network, and the user mu
49798
50045
  provide the necessary transaction details, including the token to buy, the token to
49799
50046
  pay with, and the exact amount to receive. If the token being paid with is WETH and
49800
50047
  needs to be wrapped, the appropriate amount will be wrapped automatically.`,
49801
- args: args57,
49802
- tool: async (client, args58, ctx) => {
49803
- const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50048
+ args: args58,
50049
+ tool: async (client, args59, ctx) => {
50050
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49804
50051
  if (!result.ok) {
49805
50052
  return {
49806
50053
  content: [{ type: "text", text: result.error.message }],
@@ -49815,9 +50062,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
49815
50062
 
49816
50063
  // src/funcs/uniswapV3SwapSellExactly.ts
49817
50064
  function uniswapV3SwapSellExactly(client, request, options) {
49818
- return new APIPromise($do58(client, request, options));
50065
+ return new APIPromise($do59(client, request, options));
49819
50066
  }
49820
- async function $do58(client, request, options) {
50067
+ async function $do59(client, request, options) {
49821
50068
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
49822
50069
  if (!parsed.ok) {
49823
50070
  return [parsed, { status: "invalid" }];
@@ -49886,12 +50133,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
49886
50133
  });
49887
50134
 
49888
50135
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
49889
- var args58, tool$uniswapV3SwapSellExactly;
50136
+ var args59, tool$uniswapV3SwapSellExactly;
49890
50137
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
49891
50138
  init_uniswapV3SwapSellExactly();
49892
50139
  init_components();
49893
50140
  init_tools();
49894
- args58 = {
50141
+ args59 = {
49895
50142
  request: UniswapSellExactlyRequest$inboundSchema
49896
50143
  };
49897
50144
  tool$uniswapV3SwapSellExactly = {
@@ -49905,9 +50152,9 @@ The transaction is executed on the specified blockchain network, and the user mu
49905
50152
  provide the necessary transaction details, including the token to sell, the token to
49906
50153
  receive, and the amount to sell. If the token being sold is WETH and needs to be
49907
50154
  wrapped, the appropriate amount will be wrapped automatically.`,
49908
- args: args58,
49909
- tool: async (client, args59, ctx) => {
49910
- const [result, apiCall] = await uniswapV3SwapSellExactly(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50155
+ args: args59,
50156
+ tool: async (client, args60, ctx) => {
50157
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49911
50158
  if (!result.ok) {
49912
50159
  return {
49913
50160
  content: [{ type: "text", text: result.error.message }],
@@ -49922,9 +50169,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
49922
50169
 
49923
50170
  // src/funcs/universalAllowance.ts
49924
50171
  function universalAllowance(client, request, options) {
49925
- return new APIPromise($do59(client, request, options));
50172
+ return new APIPromise($do60(client, request, options));
49926
50173
  }
49927
- async function $do59(client, request, options) {
50174
+ async function $do60(client, request, options) {
49928
50175
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
49929
50176
  if (!parsed.ok) {
49930
50177
  return [parsed, { status: "invalid" }];
@@ -50000,12 +50247,12 @@ var init_universalAllowance = __esm(() => {
50000
50247
  });
50001
50248
 
50002
50249
  // src/mcp-server/tools/universalAllowance.ts
50003
- var args59, tool$universalAllowance;
50250
+ var args60, tool$universalAllowance;
50004
50251
  var init_universalAllowance2 = __esm(() => {
50005
50252
  init_universalAllowance();
50006
50253
  init_operations();
50007
50254
  init_tools();
50008
- args59 = {
50255
+ args60 = {
50009
50256
  request: GenericAllowanceRequest$inboundSchema
50010
50257
  };
50011
50258
  tool$universalAllowance = {
@@ -50019,9 +50266,9 @@ tokens on their behalf.
50019
50266
  This is a crucial step before engaging in any transactions or operations within
50020
50267
  these protocols, ensuring that the protocol has the necessary permissions to manage
50021
50268
  the user's tokens securely and efficiently.`,
50022
- args: args59,
50023
- tool: async (client, args60, ctx) => {
50024
- const [result, apiCall] = await universalAllowance(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50269
+ args: args60,
50270
+ tool: async (client, args61, ctx) => {
50271
+ const [result, apiCall] = await universalAllowance(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50025
50272
  if (!result.ok) {
50026
50273
  return {
50027
50274
  content: [{ type: "text", text: result.error.message }],
@@ -50036,9 +50283,9 @@ the user's tokens securely and efficiently.`,
50036
50283
 
50037
50284
  // src/funcs/universalAllowanceSet.ts
50038
50285
  function universalAllowanceSet(client, request, options) {
50039
- return new APIPromise($do60(client, request, options));
50286
+ return new APIPromise($do61(client, request, options));
50040
50287
  }
50041
- async function $do60(client, request, options) {
50288
+ async function $do61(client, request, options) {
50042
50289
  const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
50043
50290
  if (!parsed.ok) {
50044
50291
  return [parsed, { status: "invalid" }];
@@ -50107,12 +50354,12 @@ var init_universalAllowanceSet = __esm(() => {
50107
50354
  });
50108
50355
 
50109
50356
  // src/mcp-server/tools/universalAllowanceSet.ts
50110
- var args60, tool$universalAllowanceSet;
50357
+ var args61, tool$universalAllowanceSet;
50111
50358
  var init_universalAllowanceSet2 = __esm(() => {
50112
50359
  init_universalAllowanceSet();
50113
50360
  init_components();
50114
50361
  init_tools();
50115
- args60 = {
50362
+ args61 = {
50116
50363
  request: IncreaseAllowanceRequest$inboundSchema
50117
50364
  };
50118
50365
  tool$universalAllowanceSet = {
@@ -50126,9 +50373,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
50126
50373
  This operation is crucial for ensuring that the protocol can manage the user's
50127
50374
  tokens securely and efficiently, enabling seamless transactions and operations
50128
50375
  within the DeFi ecosystem.`,
50129
- args: args60,
50130
- tool: async (client, args61, ctx) => {
50131
- const [result, apiCall] = await universalAllowanceSet(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50376
+ args: args61,
50377
+ tool: async (client, args62, ctx) => {
50378
+ const [result, apiCall] = await universalAllowanceSet(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50132
50379
  if (!result.ok) {
50133
50380
  return {
50134
50381
  content: [{ type: "text", text: result.error.message }],
@@ -50143,9 +50390,9 @@ within the DeFi ecosystem.`,
50143
50390
 
50144
50391
  // src/funcs/universalEns.ts
50145
50392
  function universalEns(client, request, options) {
50146
- return new APIPromise($do61(client, request, options));
50393
+ return new APIPromise($do62(client, request, options));
50147
50394
  }
50148
- async function $do61(client, request, options) {
50395
+ async function $do62(client, request, options) {
50149
50396
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
50150
50397
  if (!parsed.ok) {
50151
50398
  return [parsed, { status: "invalid" }];
@@ -50219,12 +50466,12 @@ var init_universalEns = __esm(() => {
50219
50466
  });
50220
50467
 
50221
50468
  // src/mcp-server/tools/universalEns.ts
50222
- var args61, tool$universalEns;
50469
+ var args62, tool$universalEns;
50223
50470
  var init_universalEns2 = __esm(() => {
50224
50471
  init_universalEns();
50225
50472
  init_operations();
50226
50473
  init_tools();
50227
- args61 = {
50474
+ args62 = {
50228
50475
  request: GenericEnsRequest$inboundSchema
50229
50476
  };
50230
50477
  tool$universalEns = {
@@ -50235,9 +50482,9 @@ An ENS name is a string ending in \`.eth\`.
50235
50482
 
50236
50483
  E.g. \`vitalik.eth\`. This endpoint can be used to
50237
50484
  query the actual ethereum wallet address behind the ENS name.`,
50238
- args: args61,
50239
- tool: async (client, args62, ctx) => {
50240
- const [result, apiCall] = await universalEns(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50485
+ args: args62,
50486
+ tool: async (client, args63, ctx) => {
50487
+ const [result, apiCall] = await universalEns(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50241
50488
  if (!result.ok) {
50242
50489
  return {
50243
50490
  content: [{ type: "text", text: result.error.message }],
@@ -50252,9 +50499,9 @@ query the actual ethereum wallet address behind the ENS name.`,
50252
50499
 
50253
50500
  // src/funcs/universalPortfolio.ts
50254
50501
  function universalPortfolio(client, request, options) {
50255
- return new APIPromise($do62(client, request, options));
50502
+ return new APIPromise($do63(client, request, options));
50256
50503
  }
50257
- async function $do62(client, request, options) {
50504
+ async function $do63(client, request, options) {
50258
50505
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
50259
50506
  if (!parsed.ok) {
50260
50507
  return [parsed, { status: "invalid" }];
@@ -50328,12 +50575,12 @@ var init_universalPortfolio = __esm(() => {
50328
50575
  });
50329
50576
 
50330
50577
  // src/mcp-server/tools/universalPortfolio.ts
50331
- var args62, tool$universalPortfolio;
50578
+ var args63, tool$universalPortfolio;
50332
50579
  var init_universalPortfolio2 = __esm(() => {
50333
50580
  init_universalPortfolio();
50334
50581
  init_operations();
50335
50582
  init_tools();
50336
- args62 = {
50583
+ args63 = {
50337
50584
  request: GenericPortfolioRequest$inboundSchema
50338
50585
  };
50339
50586
  tool$universalPortfolio = {
@@ -50344,9 +50591,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
50344
50591
 
50345
50592
  This includes the total value of the portfolio in USD and a breakdown of token
50346
50593
  balances, including their respective values and quantities.`,
50347
- args: args62,
50348
- tool: async (client, args63, ctx) => {
50349
- const [result, apiCall] = await universalPortfolio(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50594
+ args: args63,
50595
+ tool: async (client, args64, ctx) => {
50596
+ const [result, apiCall] = await universalPortfolio(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50350
50597
  if (!result.ok) {
50351
50598
  return {
50352
50599
  content: [{ type: "text", text: result.error.message }],
@@ -50361,9 +50608,9 @@ balances, including their respective values and quantities.`,
50361
50608
 
50362
50609
  // src/funcs/universalSupportedTokens.ts
50363
50610
  function universalSupportedTokens(client, request, options) {
50364
- return new APIPromise($do63(client, request, options));
50611
+ return new APIPromise($do64(client, request, options));
50365
50612
  }
50366
- async function $do63(client, request, options) {
50613
+ async function $do64(client, request, options) {
50367
50614
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
50368
50615
  if (!parsed.ok) {
50369
50616
  return [parsed, { status: "invalid" }];
@@ -50436,12 +50683,12 @@ var init_universalSupportedTokens = __esm(() => {
50436
50683
  });
50437
50684
 
50438
50685
  // src/mcp-server/tools/universalSupportedTokens.ts
50439
- var args63, tool$universalSupportedTokens;
50686
+ var args64, tool$universalSupportedTokens;
50440
50687
  var init_universalSupportedTokens2 = __esm(() => {
50441
50688
  init_universalSupportedTokens();
50442
50689
  init_operations();
50443
50690
  init_tools();
50444
- args63 = {
50691
+ args64 = {
50445
50692
  request: GenericSupportedTokensRequest$inboundSchema
50446
50693
  };
50447
50694
  tool$universalSupportedTokens = {
@@ -50449,9 +50696,9 @@ var init_universalSupportedTokens2 = __esm(() => {
50449
50696
  description: `List supported tokens
50450
50697
 
50451
50698
  Get the list of supported tokens on a chain by the Compass API.`,
50452
- args: args63,
50453
- tool: async (client, args64, ctx) => {
50454
- const [result, apiCall] = await universalSupportedTokens(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50699
+ args: args64,
50700
+ tool: async (client, args65, ctx) => {
50701
+ const [result, apiCall] = await universalSupportedTokens(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50455
50702
  if (!result.ok) {
50456
50703
  return {
50457
50704
  content: [{ type: "text", text: result.error.message }],
@@ -50466,9 +50713,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
50466
50713
 
50467
50714
  // src/funcs/universalUnwrapWeth.ts
50468
50715
  function universalUnwrapWeth(client, request, options) {
50469
- return new APIPromise($do64(client, request, options));
50716
+ return new APIPromise($do65(client, request, options));
50470
50717
  }
50471
- async function $do64(client, request, options) {
50718
+ async function $do65(client, request, options) {
50472
50719
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
50473
50720
  if (!parsed.ok) {
50474
50721
  return [parsed, { status: "invalid" }];
@@ -50537,12 +50784,12 @@ var init_universalUnwrapWeth = __esm(() => {
50537
50784
  });
50538
50785
 
50539
50786
  // src/mcp-server/tools/universalUnwrapWeth.ts
50540
- var args64, tool$universalUnwrapWeth;
50787
+ var args65, tool$universalUnwrapWeth;
50541
50788
  var init_universalUnwrapWeth2 = __esm(() => {
50542
50789
  init_universalUnwrapWeth();
50543
50790
  init_components();
50544
50791
  init_tools();
50545
- args64 = {
50792
+ args65 = {
50546
50793
  request: UnwrapWethRequest$inboundSchema
50547
50794
  };
50548
50795
  tool$universalUnwrapWeth = {
@@ -50551,9 +50798,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
50551
50798
 
50552
50799
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
50553
50800
  can be used for gas and other native purposes.`,
50554
- args: args64,
50555
- tool: async (client, args65, ctx) => {
50556
- const [result, apiCall] = await universalUnwrapWeth(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50801
+ args: args65,
50802
+ tool: async (client, args66, ctx) => {
50803
+ const [result, apiCall] = await universalUnwrapWeth(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50557
50804
  if (!result.ok) {
50558
50805
  return {
50559
50806
  content: [{ type: "text", text: result.error.message }],
@@ -50568,9 +50815,9 @@ can be used for gas and other native purposes.`,
50568
50815
 
50569
50816
  // src/funcs/universalVisualizePortfolio.ts
50570
50817
  function universalVisualizePortfolio(client, request, options) {
50571
- return new APIPromise($do65(client, request, options));
50818
+ return new APIPromise($do66(client, request, options));
50572
50819
  }
50573
- async function $do65(client, request, options) {
50820
+ async function $do66(client, request, options) {
50574
50821
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
50575
50822
  if (!parsed.ok) {
50576
50823
  return [parsed, { status: "invalid" }];
@@ -50644,12 +50891,12 @@ var init_universalVisualizePortfolio = __esm(() => {
50644
50891
  });
50645
50892
 
50646
50893
  // src/mcp-server/tools/universalVisualizePortfolio.ts
50647
- var args65, tool$universalVisualizePortfolio;
50894
+ var args66, tool$universalVisualizePortfolio;
50648
50895
  var init_universalVisualizePortfolio2 = __esm(() => {
50649
50896
  init_universalVisualizePortfolio();
50650
50897
  init_operations();
50651
50898
  init_tools();
50652
- args65 = {
50899
+ args66 = {
50653
50900
  request: GenericVisualizePortfolioRequest$inboundSchema
50654
50901
  };
50655
50902
  tool$universalVisualizePortfolio = {
@@ -50661,9 +50908,9 @@ Generate a visual representation of the token portfolio for a wallet address.
50661
50908
  The response is an SVG image of a pie chart depicting the relative distribution of
50662
50909
  tokens held, colored and labeled with token symbols, percentages and token values in
50663
50910
  USD.`,
50664
- args: args65,
50665
- tool: async (client, args66, ctx) => {
50666
- const [result, apiCall] = await universalVisualizePortfolio(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50911
+ args: args66,
50912
+ tool: async (client, args67, ctx) => {
50913
+ const [result, apiCall] = await universalVisualizePortfolio(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50667
50914
  if (!result.ok) {
50668
50915
  return {
50669
50916
  content: [{ type: "text", text: result.error.message }],
@@ -50678,9 +50925,9 @@ USD.`,
50678
50925
 
50679
50926
  // src/funcs/universalWrapEth.ts
50680
50927
  function universalWrapEth(client, request, options) {
50681
- return new APIPromise($do66(client, request, options));
50928
+ return new APIPromise($do67(client, request, options));
50682
50929
  }
50683
- async function $do66(client, request, options) {
50930
+ async function $do67(client, request, options) {
50684
50931
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
50685
50932
  if (!parsed.ok) {
50686
50933
  return [parsed, { status: "invalid" }];
@@ -50749,12 +50996,12 @@ var init_universalWrapEth = __esm(() => {
50749
50996
  });
50750
50997
 
50751
50998
  // src/mcp-server/tools/universalWrapEth.ts
50752
- var args66, tool$universalWrapEth;
50999
+ var args67, tool$universalWrapEth;
50753
51000
  var init_universalWrapEth2 = __esm(() => {
50754
51001
  init_universalWrapEth();
50755
51002
  init_components();
50756
51003
  init_tools();
50757
- args66 = {
51004
+ args67 = {
50758
51005
  request: WrapEthRequest$inboundSchema
50759
51006
  };
50760
51007
  tool$universalWrapEth = {
@@ -50763,9 +51010,9 @@ var init_universalWrapEth2 = __esm(() => {
50763
51010
 
50764
51011
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
50765
51012
  it to be traded on DeFi protocols.`,
50766
- args: args66,
50767
- tool: async (client, args67, ctx) => {
50768
- const [result, apiCall] = await universalWrapEth(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51013
+ args: args67,
51014
+ tool: async (client, args68, ctx) => {
51015
+ const [result, apiCall] = await universalWrapEth(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50769
51016
  if (!result.ok) {
50770
51017
  return {
50771
51018
  content: [{ type: "text", text: result.error.message }],
@@ -50782,7 +51029,7 @@ it to be traded on DeFi protocols.`,
50782
51029
  function createMCPServer(deps) {
50783
51030
  const server = new McpServer({
50784
51031
  name: "CompassApiSDK",
50785
- version: "0.1.6"
51032
+ version: "0.1.7"
50786
51033
  });
50787
51034
  const client = new CompassApiSDKCore({
50788
51035
  apiKeyAuth: deps.apiKeyAuth,
@@ -50857,11 +51104,12 @@ function createMCPServer(deps) {
50857
51104
  tool(tool$universalWrapEth);
50858
51105
  tool(tool$universalUnwrapWeth);
50859
51106
  tool(tool$universalAllowanceSet);
51107
+ tool(tool$pendlePosition);
51108
+ tool(tool$pendleMarket);
50860
51109
  tool(tool$transactionBatchingAuthorization);
50861
51110
  tool(tool$transactionBatchingExecute);
50862
51111
  tool(tool$transactionBatchingAaveLoop);
50863
51112
  tool(tool$smartAccountAccountBatchedUserOperations);
50864
- tool(tool$pendleAccruedInterest);
50865
51113
  return server;
50866
51114
  }
50867
51115
  var init_server2 = __esm(() => {
@@ -50903,7 +51151,8 @@ var init_server2 = __esm(() => {
50903
51151
  init_morphoVaults2();
50904
51152
  init_morphoWithdraw2();
50905
51153
  init_morphoWithdrawCollateral2();
50906
- init_pendleAccruedInterest2();
51154
+ init_pendleMarket2();
51155
+ init_pendlePosition2();
50907
51156
  init_skyBuy2();
50908
51157
  init_skyDeposit2();
50909
51158
  init_skyPosition2();
@@ -52125,7 +52374,7 @@ var routes = an({
52125
52374
  var app = He(routes, {
52126
52375
  name: "mcp",
52127
52376
  versionInfo: {
52128
- currentVersion: "0.1.6"
52377
+ currentVersion: "0.1.7"
52129
52378
  }
52130
52379
  });
52131
52380
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -52133,5 +52382,5 @@ export {
52133
52382
  app
52134
52383
  };
52135
52384
 
52136
- //# debugId=8926F98FDF1ECE7E64756E2164756E21
52385
+ //# debugId=2A07D85B3C9972AC64756E2164756E21
52137
52386
  //# sourceMappingURL=mcp-server.js.map