@compass-labs/api-sdk 0.3.0 → 0.3.2

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 +8 -0
  2. package/bin/mcp-server.js +1044 -308
  3. package/bin/mcp-server.js.map +25 -9
  4. package/dist/commonjs/funcs/pendleBuyPt.d.ts +17 -0
  5. package/dist/commonjs/funcs/pendleBuyPt.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/pendleBuyPt.js +118 -0
  7. package/dist/commonjs/funcs/pendleBuyPt.js.map +1 -0
  8. package/dist/commonjs/funcs/pendleBuyYt.d.ts +17 -0
  9. package/dist/commonjs/funcs/pendleBuyYt.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/pendleBuyYt.js +118 -0
  11. package/dist/commonjs/funcs/pendleBuyYt.js.map +1 -0
  12. package/dist/commonjs/funcs/pendleSellPt.d.ts +17 -0
  13. package/dist/commonjs/funcs/pendleSellPt.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/pendleSellPt.js +118 -0
  15. package/dist/commonjs/funcs/pendleSellPt.js.map +1 -0
  16. package/dist/commonjs/funcs/pendleSellYt.d.ts +17 -0
  17. package/dist/commonjs/funcs/pendleSellYt.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/pendleSellYt.js +118 -0
  19. package/dist/commonjs/funcs/pendleSellYt.js.map +1 -0
  20. package/dist/commonjs/lib/config.d.ts +2 -2
  21. package/dist/commonjs/lib/config.js +2 -2
  22. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  23. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  24. package/dist/commonjs/mcp-server/server.js +9 -1
  25. package/dist/commonjs/mcp-server/server.js.map +1 -1
  26. package/dist/commonjs/mcp-server/tools/pendleBuyPt.d.ts +8 -0
  27. package/dist/commonjs/mcp-server/tools/pendleBuyPt.d.ts.map +1 -0
  28. package/dist/commonjs/mcp-server/tools/pendleBuyPt.js +64 -0
  29. package/dist/commonjs/mcp-server/tools/pendleBuyPt.js.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/pendleBuyYt.d.ts +8 -0
  31. package/dist/commonjs/mcp-server/tools/pendleBuyYt.d.ts.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/pendleBuyYt.js +64 -0
  33. package/dist/commonjs/mcp-server/tools/pendleBuyYt.js.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/pendleSellPt.d.ts +8 -0
  35. package/dist/commonjs/mcp-server/tools/pendleSellPt.d.ts.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/pendleSellPt.js +64 -0
  37. package/dist/commonjs/mcp-server/tools/pendleSellPt.js.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/pendleSellYt.d.ts +8 -0
  39. package/dist/commonjs/mcp-server/tools/pendleSellYt.d.ts.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/pendleSellYt.js +64 -0
  41. package/dist/commonjs/mcp-server/tools/pendleSellYt.js.map +1 -0
  42. package/dist/commonjs/models/components/index.d.ts +8 -0
  43. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/index.js +8 -0
  45. package/dist/commonjs/models/components/index.js.map +1 -1
  46. package/dist/commonjs/models/components/multicallactiontype.d.ts +12 -0
  47. package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/multicallactiontype.js +4 -0
  49. package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
  50. package/dist/commonjs/models/components/pendlebuyptparams.d.ts +61 -0
  51. package/dist/commonjs/models/components/pendlebuyptparams.d.ts.map +1 -0
  52. package/dist/commonjs/models/components/pendlebuyptparams.js +103 -0
  53. package/dist/commonjs/models/components/pendlebuyptparams.js.map +1 -0
  54. package/dist/commonjs/models/components/pendlebuyptrequest.d.ts +72 -0
  55. package/dist/commonjs/models/components/pendlebuyptrequest.d.ts.map +1 -0
  56. package/dist/commonjs/models/components/pendlebuyptrequest.js +108 -0
  57. package/dist/commonjs/models/components/pendlebuyptrequest.js.map +1 -0
  58. package/dist/commonjs/models/components/pendlebuyytparams.d.ts +61 -0
  59. package/dist/commonjs/models/components/pendlebuyytparams.d.ts.map +1 -0
  60. package/dist/commonjs/models/components/pendlebuyytparams.js +103 -0
  61. package/dist/commonjs/models/components/pendlebuyytparams.js.map +1 -0
  62. package/dist/commonjs/models/components/pendlebuyytrequest.d.ts +72 -0
  63. package/dist/commonjs/models/components/pendlebuyytrequest.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/pendlebuyytrequest.js +108 -0
  65. package/dist/commonjs/models/components/pendlebuyytrequest.js.map +1 -0
  66. package/dist/commonjs/models/components/pendlesellptparams.d.ts +61 -0
  67. package/dist/commonjs/models/components/pendlesellptparams.d.ts.map +1 -0
  68. package/dist/commonjs/models/components/pendlesellptparams.js +103 -0
  69. package/dist/commonjs/models/components/pendlesellptparams.js.map +1 -0
  70. package/dist/commonjs/models/components/pendlesellptrequest.d.ts +72 -0
  71. package/dist/commonjs/models/components/pendlesellptrequest.d.ts.map +1 -0
  72. package/dist/commonjs/models/components/pendlesellptrequest.js +108 -0
  73. package/dist/commonjs/models/components/pendlesellptrequest.js.map +1 -0
  74. package/dist/commonjs/models/components/pendlesellytparams.d.ts +61 -0
  75. package/dist/commonjs/models/components/pendlesellytparams.d.ts.map +1 -0
  76. package/dist/commonjs/models/components/pendlesellytparams.js +103 -0
  77. package/dist/commonjs/models/components/pendlesellytparams.js.map +1 -0
  78. package/dist/commonjs/models/components/pendlesellytrequest.d.ts +72 -0
  79. package/dist/commonjs/models/components/pendlesellytrequest.d.ts.map +1 -0
  80. package/dist/commonjs/models/components/pendlesellytrequest.js +108 -0
  81. package/dist/commonjs/models/components/pendlesellytrequest.js.map +1 -0
  82. package/dist/commonjs/models/components/useroperation.d.ts +8 -4
  83. package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/useroperation.js +20 -0
  85. package/dist/commonjs/models/components/useroperation.js.map +1 -1
  86. package/dist/commonjs/sdk/pendle.d.ts +28 -0
  87. package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
  88. package/dist/commonjs/sdk/pendle.js +40 -0
  89. package/dist/commonjs/sdk/pendle.js.map +1 -1
  90. package/dist/esm/funcs/pendleBuyPt.d.ts +17 -0
  91. package/dist/esm/funcs/pendleBuyPt.d.ts.map +1 -0
  92. package/dist/esm/funcs/pendleBuyPt.js +82 -0
  93. package/dist/esm/funcs/pendleBuyPt.js.map +1 -0
  94. package/dist/esm/funcs/pendleBuyYt.d.ts +17 -0
  95. package/dist/esm/funcs/pendleBuyYt.d.ts.map +1 -0
  96. package/dist/esm/funcs/pendleBuyYt.js +82 -0
  97. package/dist/esm/funcs/pendleBuyYt.js.map +1 -0
  98. package/dist/esm/funcs/pendleSellPt.d.ts +17 -0
  99. package/dist/esm/funcs/pendleSellPt.d.ts.map +1 -0
  100. package/dist/esm/funcs/pendleSellPt.js +82 -0
  101. package/dist/esm/funcs/pendleSellPt.js.map +1 -0
  102. package/dist/esm/funcs/pendleSellYt.d.ts +17 -0
  103. package/dist/esm/funcs/pendleSellYt.d.ts.map +1 -0
  104. package/dist/esm/funcs/pendleSellYt.js +82 -0
  105. package/dist/esm/funcs/pendleSellYt.js.map +1 -0
  106. package/dist/esm/lib/config.d.ts +2 -2
  107. package/dist/esm/lib/config.js +2 -2
  108. package/dist/esm/mcp-server/mcp-server.js +1 -1
  109. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  110. package/dist/esm/mcp-server/server.js +9 -1
  111. package/dist/esm/mcp-server/server.js.map +1 -1
  112. package/dist/esm/mcp-server/tools/pendleBuyPt.d.ts +8 -0
  113. package/dist/esm/mcp-server/tools/pendleBuyPt.d.ts.map +1 -0
  114. package/dist/esm/mcp-server/tools/pendleBuyPt.js +28 -0
  115. package/dist/esm/mcp-server/tools/pendleBuyPt.js.map +1 -0
  116. package/dist/esm/mcp-server/tools/pendleBuyYt.d.ts +8 -0
  117. package/dist/esm/mcp-server/tools/pendleBuyYt.d.ts.map +1 -0
  118. package/dist/esm/mcp-server/tools/pendleBuyYt.js +28 -0
  119. package/dist/esm/mcp-server/tools/pendleBuyYt.js.map +1 -0
  120. package/dist/esm/mcp-server/tools/pendleSellPt.d.ts +8 -0
  121. package/dist/esm/mcp-server/tools/pendleSellPt.d.ts.map +1 -0
  122. package/dist/esm/mcp-server/tools/pendleSellPt.js +28 -0
  123. package/dist/esm/mcp-server/tools/pendleSellPt.js.map +1 -0
  124. package/dist/esm/mcp-server/tools/pendleSellYt.d.ts +8 -0
  125. package/dist/esm/mcp-server/tools/pendleSellYt.d.ts.map +1 -0
  126. package/dist/esm/mcp-server/tools/pendleSellYt.js +28 -0
  127. package/dist/esm/mcp-server/tools/pendleSellYt.js.map +1 -0
  128. package/dist/esm/models/components/index.d.ts +8 -0
  129. package/dist/esm/models/components/index.d.ts.map +1 -1
  130. package/dist/esm/models/components/index.js +8 -0
  131. package/dist/esm/models/components/index.js.map +1 -1
  132. package/dist/esm/models/components/multicallactiontype.d.ts +12 -0
  133. package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -1
  134. package/dist/esm/models/components/multicallactiontype.js +4 -0
  135. package/dist/esm/models/components/multicallactiontype.js.map +1 -1
  136. package/dist/esm/models/components/pendlebuyptparams.d.ts +61 -0
  137. package/dist/esm/models/components/pendlebuyptparams.d.ts.map +1 -0
  138. package/dist/esm/models/components/pendlebuyptparams.js +63 -0
  139. package/dist/esm/models/components/pendlebuyptparams.js.map +1 -0
  140. package/dist/esm/models/components/pendlebuyptrequest.d.ts +72 -0
  141. package/dist/esm/models/components/pendlebuyptrequest.d.ts.map +1 -0
  142. package/dist/esm/models/components/pendlebuyptrequest.js +68 -0
  143. package/dist/esm/models/components/pendlebuyptrequest.js.map +1 -0
  144. package/dist/esm/models/components/pendlebuyytparams.d.ts +61 -0
  145. package/dist/esm/models/components/pendlebuyytparams.d.ts.map +1 -0
  146. package/dist/esm/models/components/pendlebuyytparams.js +63 -0
  147. package/dist/esm/models/components/pendlebuyytparams.js.map +1 -0
  148. package/dist/esm/models/components/pendlebuyytrequest.d.ts +72 -0
  149. package/dist/esm/models/components/pendlebuyytrequest.d.ts.map +1 -0
  150. package/dist/esm/models/components/pendlebuyytrequest.js +68 -0
  151. package/dist/esm/models/components/pendlebuyytrequest.js.map +1 -0
  152. package/dist/esm/models/components/pendlesellptparams.d.ts +61 -0
  153. package/dist/esm/models/components/pendlesellptparams.d.ts.map +1 -0
  154. package/dist/esm/models/components/pendlesellptparams.js +63 -0
  155. package/dist/esm/models/components/pendlesellptparams.js.map +1 -0
  156. package/dist/esm/models/components/pendlesellptrequest.d.ts +72 -0
  157. package/dist/esm/models/components/pendlesellptrequest.d.ts.map +1 -0
  158. package/dist/esm/models/components/pendlesellptrequest.js +68 -0
  159. package/dist/esm/models/components/pendlesellptrequest.js.map +1 -0
  160. package/dist/esm/models/components/pendlesellytparams.d.ts +61 -0
  161. package/dist/esm/models/components/pendlesellytparams.d.ts.map +1 -0
  162. package/dist/esm/models/components/pendlesellytparams.js +63 -0
  163. package/dist/esm/models/components/pendlesellytparams.js.map +1 -0
  164. package/dist/esm/models/components/pendlesellytrequest.d.ts +72 -0
  165. package/dist/esm/models/components/pendlesellytrequest.d.ts.map +1 -0
  166. package/dist/esm/models/components/pendlesellytrequest.js +68 -0
  167. package/dist/esm/models/components/pendlesellytrequest.js.map +1 -0
  168. package/dist/esm/models/components/useroperation.d.ts +8 -4
  169. package/dist/esm/models/components/useroperation.d.ts.map +1 -1
  170. package/dist/esm/models/components/useroperation.js +20 -0
  171. package/dist/esm/models/components/useroperation.js.map +1 -1
  172. package/dist/esm/sdk/pendle.d.ts +28 -0
  173. package/dist/esm/sdk/pendle.d.ts.map +1 -1
  174. package/dist/esm/sdk/pendle.js +40 -0
  175. package/dist/esm/sdk/pendle.js.map +1 -1
  176. package/docs/sdks/pendle/README.md +336 -0
  177. package/jsr.json +1 -1
  178. package/package.json +1 -1
  179. package/src/funcs/pendleBuyPt.ts +165 -0
  180. package/src/funcs/pendleBuyYt.ts +165 -0
  181. package/src/funcs/pendleSellPt.ts +165 -0
  182. package/src/funcs/pendleSellYt.ts +165 -0
  183. package/src/lib/config.ts +2 -2
  184. package/src/mcp-server/mcp-server.ts +1 -1
  185. package/src/mcp-server/server.ts +9 -1
  186. package/src/mcp-server/tools/pendleBuyPt.ts +37 -0
  187. package/src/mcp-server/tools/pendleBuyYt.ts +37 -0
  188. package/src/mcp-server/tools/pendleSellPt.ts +37 -0
  189. package/src/mcp-server/tools/pendleSellYt.ts +37 -0
  190. package/src/models/components/index.ts +8 -0
  191. package/src/models/components/multicallactiontype.ts +4 -0
  192. package/src/models/components/pendlebuyptparams.ts +138 -0
  193. package/src/models/components/pendlebuyptrequest.ts +153 -0
  194. package/src/models/components/pendlebuyytparams.ts +138 -0
  195. package/src/models/components/pendlebuyytrequest.ts +153 -0
  196. package/src/models/components/pendlesellptparams.ts +138 -0
  197. package/src/models/components/pendlesellptrequest.ts +153 -0
  198. package/src/models/components/pendlesellytparams.ts +138 -0
  199. package/src/models/components/pendlesellytrequest.ts +153 -0
  200. package/src/models/components/useroperation.ts +56 -0
  201. package/src/sdk/pendle.ts +72 -0
package/bin/mcp-server.js CHANGED
@@ -34205,9 +34205,9 @@ var init_config = __esm(() => {
34205
34205
  SDK_METADATA = {
34206
34206
  language: "typescript",
34207
34207
  openapiDocVersion: "0.0.1",
34208
- sdkVersion: "0.3.0",
34208
+ sdkVersion: "0.3.2",
34209
34209
  genVersion: "2.616.1",
34210
- userAgent: "speakeasy-sdk/typescript 0.3.0 2.616.1 0.0.1 @compass-labs/api-sdk"
34210
+ userAgent: "speakeasy-sdk/typescript 0.3.2 2.616.1 0.0.1 @compass-labs/api-sdk"
34211
34211
  };
34212
34212
  });
34213
34213
 
@@ -37827,6 +37827,10 @@ var init_multicallactiontype = __esm(() => {
37827
37827
  MorphoSupplyCollateral: "MORPHO_SUPPLY_COLLATERAL",
37828
37828
  MorphoWithdraw: "MORPHO_WITHDRAW",
37829
37829
  MorphoWithdrawCollateral: "MORPHO_WITHDRAW_COLLATERAL",
37830
+ PendleBuyPt: "PENDLE_BUY_PT",
37831
+ PendleBuyYt: "PENDLE_BUY_YT",
37832
+ PendleSellPt: "PENDLE_SELL_PT",
37833
+ PendleSellYt: "PENDLE_SELL_YT",
37830
37834
  SkyBuy: "SKY_BUY",
37831
37835
  SkyDeposit: "SKY_DEPOSIT",
37832
37836
  SkySell: "SKY_SELL",
@@ -37848,6 +37852,138 @@ var init_multicallactiontype = __esm(() => {
37848
37852
  })(MulticallActionType$ ||= {});
37849
37853
  });
37850
37854
 
37855
+ // src/models/components/pendlebuyptparams.ts
37856
+ var PendleBuyPtParamsAmount$inboundSchema, PendleBuyPtParamsAmount$outboundSchema, PendleBuyPtParamsAmount$, PendleBuyPtParams$inboundSchema, PendleBuyPtParams$outboundSchema, PendleBuyPtParams$;
37857
+ var init_pendlebuyptparams = __esm(() => {
37858
+ init_esm();
37859
+ init_primitives();
37860
+ PendleBuyPtParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
37861
+ PendleBuyPtParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
37862
+ ((PendleBuyPtParamsAmount$) => {
37863
+ PendleBuyPtParamsAmount$.inboundSchema = PendleBuyPtParamsAmount$inboundSchema;
37864
+ PendleBuyPtParamsAmount$.outboundSchema = PendleBuyPtParamsAmount$outboundSchema;
37865
+ })(PendleBuyPtParamsAmount$ ||= {});
37866
+ PendleBuyPtParams$inboundSchema = objectType({
37867
+ market_address: stringType(),
37868
+ amount: unionType([numberType(), stringType()])
37869
+ }).transform((v2) => {
37870
+ return remap(v2, {
37871
+ market_address: "marketAddress"
37872
+ });
37873
+ });
37874
+ PendleBuyPtParams$outboundSchema = objectType({
37875
+ marketAddress: stringType(),
37876
+ amount: unionType([numberType(), stringType()])
37877
+ }).transform((v2) => {
37878
+ return remap(v2, {
37879
+ marketAddress: "market_address"
37880
+ });
37881
+ });
37882
+ ((PendleBuyPtParams$) => {
37883
+ PendleBuyPtParams$.inboundSchema = PendleBuyPtParams$inboundSchema;
37884
+ PendleBuyPtParams$.outboundSchema = PendleBuyPtParams$outboundSchema;
37885
+ })(PendleBuyPtParams$ ||= {});
37886
+ });
37887
+
37888
+ // src/models/components/pendlebuyytparams.ts
37889
+ var PendleBuyYtParamsAmount$inboundSchema, PendleBuyYtParamsAmount$outboundSchema, PendleBuyYtParamsAmount$, PendleBuyYtParams$inboundSchema, PendleBuyYtParams$outboundSchema, PendleBuyYtParams$;
37890
+ var init_pendlebuyytparams = __esm(() => {
37891
+ init_esm();
37892
+ init_primitives();
37893
+ PendleBuyYtParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
37894
+ PendleBuyYtParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
37895
+ ((PendleBuyYtParamsAmount$) => {
37896
+ PendleBuyYtParamsAmount$.inboundSchema = PendleBuyYtParamsAmount$inboundSchema;
37897
+ PendleBuyYtParamsAmount$.outboundSchema = PendleBuyYtParamsAmount$outboundSchema;
37898
+ })(PendleBuyYtParamsAmount$ ||= {});
37899
+ PendleBuyYtParams$inboundSchema = objectType({
37900
+ market_address: stringType(),
37901
+ amount: unionType([numberType(), stringType()])
37902
+ }).transform((v2) => {
37903
+ return remap(v2, {
37904
+ market_address: "marketAddress"
37905
+ });
37906
+ });
37907
+ PendleBuyYtParams$outboundSchema = objectType({
37908
+ marketAddress: stringType(),
37909
+ amount: unionType([numberType(), stringType()])
37910
+ }).transform((v2) => {
37911
+ return remap(v2, {
37912
+ marketAddress: "market_address"
37913
+ });
37914
+ });
37915
+ ((PendleBuyYtParams$) => {
37916
+ PendleBuyYtParams$.inboundSchema = PendleBuyYtParams$inboundSchema;
37917
+ PendleBuyYtParams$.outboundSchema = PendleBuyYtParams$outboundSchema;
37918
+ })(PendleBuyYtParams$ ||= {});
37919
+ });
37920
+
37921
+ // src/models/components/pendlesellptparams.ts
37922
+ var PendleSellPtParamsAmount$inboundSchema, PendleSellPtParamsAmount$outboundSchema, PendleSellPtParamsAmount$, PendleSellPtParams$inboundSchema, PendleSellPtParams$outboundSchema, PendleSellPtParams$;
37923
+ var init_pendlesellptparams = __esm(() => {
37924
+ init_esm();
37925
+ init_primitives();
37926
+ PendleSellPtParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
37927
+ PendleSellPtParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
37928
+ ((PendleSellPtParamsAmount$) => {
37929
+ PendleSellPtParamsAmount$.inboundSchema = PendleSellPtParamsAmount$inboundSchema;
37930
+ PendleSellPtParamsAmount$.outboundSchema = PendleSellPtParamsAmount$outboundSchema;
37931
+ })(PendleSellPtParamsAmount$ ||= {});
37932
+ PendleSellPtParams$inboundSchema = objectType({
37933
+ market_address: stringType(),
37934
+ amount: unionType([numberType(), stringType()])
37935
+ }).transform((v2) => {
37936
+ return remap(v2, {
37937
+ market_address: "marketAddress"
37938
+ });
37939
+ });
37940
+ PendleSellPtParams$outboundSchema = objectType({
37941
+ marketAddress: stringType(),
37942
+ amount: unionType([numberType(), stringType()])
37943
+ }).transform((v2) => {
37944
+ return remap(v2, {
37945
+ marketAddress: "market_address"
37946
+ });
37947
+ });
37948
+ ((PendleSellPtParams$) => {
37949
+ PendleSellPtParams$.inboundSchema = PendleSellPtParams$inboundSchema;
37950
+ PendleSellPtParams$.outboundSchema = PendleSellPtParams$outboundSchema;
37951
+ })(PendleSellPtParams$ ||= {});
37952
+ });
37953
+
37954
+ // src/models/components/pendlesellytparams.ts
37955
+ var PendleSellYtParamsAmount$inboundSchema, PendleSellYtParamsAmount$outboundSchema, PendleSellYtParamsAmount$, PendleSellYtParams$inboundSchema, PendleSellYtParams$outboundSchema, PendleSellYtParams$;
37956
+ var init_pendlesellytparams = __esm(() => {
37957
+ init_esm();
37958
+ init_primitives();
37959
+ PendleSellYtParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
37960
+ PendleSellYtParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
37961
+ ((PendleSellYtParamsAmount$) => {
37962
+ PendleSellYtParamsAmount$.inboundSchema = PendleSellYtParamsAmount$inboundSchema;
37963
+ PendleSellYtParamsAmount$.outboundSchema = PendleSellYtParamsAmount$outboundSchema;
37964
+ })(PendleSellYtParamsAmount$ ||= {});
37965
+ PendleSellYtParams$inboundSchema = objectType({
37966
+ market_address: stringType(),
37967
+ amount: unionType([numberType(), stringType()])
37968
+ }).transform((v2) => {
37969
+ return remap(v2, {
37970
+ market_address: "marketAddress"
37971
+ });
37972
+ });
37973
+ PendleSellYtParams$outboundSchema = objectType({
37974
+ marketAddress: stringType(),
37975
+ amount: unionType([numberType(), stringType()])
37976
+ }).transform((v2) => {
37977
+ return remap(v2, {
37978
+ marketAddress: "market_address"
37979
+ });
37980
+ });
37981
+ ((PendleSellYtParams$) => {
37982
+ PendleSellYtParams$.inboundSchema = PendleSellYtParams$inboundSchema;
37983
+ PendleSellYtParams$.outboundSchema = PendleSellYtParams$outboundSchema;
37984
+ })(PendleSellYtParams$ ||= {});
37985
+ });
37986
+
37851
37987
  // src/models/components/skybuyparams.ts
37852
37988
  var SkyBuyParamsTokenIn, SkyBuyParamsTokenIn$inboundSchema, SkyBuyParamsTokenIn$outboundSchema, SkyBuyParamsTokenIn$, SkyBuyParamsAmount$inboundSchema, SkyBuyParamsAmount$outboundSchema, SkyBuyParamsAmount$, SkyBuyParams$inboundSchema, SkyBuyParams$outboundSchema, SkyBuyParams$;
37853
37989
  var init_skybuyparams = __esm(() => {
@@ -38365,6 +38501,10 @@ var init_useroperation = __esm(() => {
38365
38501
  init_morphowithdrawcollateralparams();
38366
38502
  init_morphowithdrawparams();
38367
38503
  init_multicallactiontype();
38504
+ init_pendlebuyptparams();
38505
+ init_pendlebuyytparams();
38506
+ init_pendlesellptparams();
38507
+ init_pendlesellytparams();
38368
38508
  init_skybuyparams();
38369
38509
  init_skydepositparams();
38370
38510
  init_skysellparams();
@@ -38385,6 +38525,10 @@ var init_useroperation = __esm(() => {
38385
38525
  SkySellParams$inboundSchema,
38386
38526
  SkyDepositParams$inboundSchema,
38387
38527
  SkyWithdrawParams$inboundSchema,
38528
+ PendleBuyPtParams$inboundSchema,
38529
+ PendleSellPtParams$inboundSchema,
38530
+ PendleBuyYtParams$inboundSchema,
38531
+ PendleSellYtParams$inboundSchema,
38388
38532
  AerodromeSlipstreamWithdrawLiquidityProvisionParams$inboundSchema,
38389
38533
  UniswapWithdrawLiquidityProvisionParams$inboundSchema,
38390
38534
  AaveSupplyParams$inboundSchema,
@@ -38416,6 +38560,10 @@ var init_useroperation = __esm(() => {
38416
38560
  SkySellParams$outboundSchema,
38417
38561
  SkyDepositParams$outboundSchema,
38418
38562
  SkyWithdrawParams$outboundSchema,
38563
+ PendleBuyPtParams$outboundSchema,
38564
+ PendleSellPtParams$outboundSchema,
38565
+ PendleBuyYtParams$outboundSchema,
38566
+ PendleSellYtParams$outboundSchema,
38419
38567
  AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema,
38420
38568
  UniswapWithdrawLiquidityProvisionParams$outboundSchema,
38421
38569
  AaveSupplyParams$outboundSchema,
@@ -38453,6 +38601,10 @@ var init_useroperation = __esm(() => {
38453
38601
  SkySellParams$inboundSchema,
38454
38602
  SkyDepositParams$inboundSchema,
38455
38603
  SkyWithdrawParams$inboundSchema,
38604
+ PendleBuyPtParams$inboundSchema,
38605
+ PendleSellPtParams$inboundSchema,
38606
+ PendleBuyYtParams$inboundSchema,
38607
+ PendleSellYtParams$inboundSchema,
38456
38608
  AerodromeSlipstreamWithdrawLiquidityProvisionParams$inboundSchema,
38457
38609
  UniswapWithdrawLiquidityProvisionParams$inboundSchema,
38458
38610
  AaveSupplyParams$inboundSchema,
@@ -38491,6 +38643,10 @@ var init_useroperation = __esm(() => {
38491
38643
  SkySellParams$outboundSchema,
38492
38644
  SkyDepositParams$outboundSchema,
38493
38645
  SkyWithdrawParams$outboundSchema,
38646
+ PendleBuyPtParams$outboundSchema,
38647
+ PendleSellPtParams$outboundSchema,
38648
+ PendleBuyYtParams$outboundSchema,
38649
+ PendleSellYtParams$outboundSchema,
38494
38650
  AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema,
38495
38651
  UniswapWithdrawLiquidityProvisionParams$outboundSchema,
38496
38652
  AaveSupplyParams$outboundSchema,
@@ -40145,6 +40301,82 @@ var init_openposition = __esm(() => {
40145
40301
  })(OpenPosition$ ||= {});
40146
40302
  });
40147
40303
 
40304
+ // src/models/components/pendlebuyptrequest.ts
40305
+ var PendleBuyPtRequestAmount$inboundSchema, PendleBuyPtRequestAmount$outboundSchema, PendleBuyPtRequestAmount$, PendleBuyPtRequest$inboundSchema, PendleBuyPtRequest$outboundSchema, PendleBuyPtRequest$;
40306
+ var init_pendlebuyptrequest = __esm(() => {
40307
+ init_esm();
40308
+ init_primitives();
40309
+ init_chain();
40310
+ PendleBuyPtRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
40311
+ PendleBuyPtRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
40312
+ ((PendleBuyPtRequestAmount$) => {
40313
+ PendleBuyPtRequestAmount$.inboundSchema = PendleBuyPtRequestAmount$inboundSchema;
40314
+ PendleBuyPtRequestAmount$.outboundSchema = PendleBuyPtRequestAmount$outboundSchema;
40315
+ })(PendleBuyPtRequestAmount$ ||= {});
40316
+ PendleBuyPtRequest$inboundSchema = objectType({
40317
+ market_address: stringType(),
40318
+ amount: unionType([numberType(), stringType()]),
40319
+ chain: Chain$inboundSchema,
40320
+ sender: stringType()
40321
+ }).transform((v2) => {
40322
+ return remap(v2, {
40323
+ market_address: "marketAddress"
40324
+ });
40325
+ });
40326
+ PendleBuyPtRequest$outboundSchema = objectType({
40327
+ marketAddress: stringType(),
40328
+ amount: unionType([numberType(), stringType()]),
40329
+ chain: Chain$outboundSchema,
40330
+ sender: stringType()
40331
+ }).transform((v2) => {
40332
+ return remap(v2, {
40333
+ marketAddress: "market_address"
40334
+ });
40335
+ });
40336
+ ((PendleBuyPtRequest$) => {
40337
+ PendleBuyPtRequest$.inboundSchema = PendleBuyPtRequest$inboundSchema;
40338
+ PendleBuyPtRequest$.outboundSchema = PendleBuyPtRequest$outboundSchema;
40339
+ })(PendleBuyPtRequest$ ||= {});
40340
+ });
40341
+
40342
+ // src/models/components/pendlebuyytrequest.ts
40343
+ var PendleBuyYtRequestAmount$inboundSchema, PendleBuyYtRequestAmount$outboundSchema, PendleBuyYtRequestAmount$, PendleBuyYtRequest$inboundSchema, PendleBuyYtRequest$outboundSchema, PendleBuyYtRequest$;
40344
+ var init_pendlebuyytrequest = __esm(() => {
40345
+ init_esm();
40346
+ init_primitives();
40347
+ init_chain();
40348
+ PendleBuyYtRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
40349
+ PendleBuyYtRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
40350
+ ((PendleBuyYtRequestAmount$) => {
40351
+ PendleBuyYtRequestAmount$.inboundSchema = PendleBuyYtRequestAmount$inboundSchema;
40352
+ PendleBuyYtRequestAmount$.outboundSchema = PendleBuyYtRequestAmount$outboundSchema;
40353
+ })(PendleBuyYtRequestAmount$ ||= {});
40354
+ PendleBuyYtRequest$inboundSchema = objectType({
40355
+ market_address: stringType(),
40356
+ amount: unionType([numberType(), stringType()]),
40357
+ chain: Chain$inboundSchema,
40358
+ sender: stringType()
40359
+ }).transform((v2) => {
40360
+ return remap(v2, {
40361
+ market_address: "marketAddress"
40362
+ });
40363
+ });
40364
+ PendleBuyYtRequest$outboundSchema = objectType({
40365
+ marketAddress: stringType(),
40366
+ amount: unionType([numberType(), stringType()]),
40367
+ chain: Chain$outboundSchema,
40368
+ sender: stringType()
40369
+ }).transform((v2) => {
40370
+ return remap(v2, {
40371
+ marketAddress: "market_address"
40372
+ });
40373
+ });
40374
+ ((PendleBuyYtRequest$) => {
40375
+ PendleBuyYtRequest$.inboundSchema = PendleBuyYtRequest$inboundSchema;
40376
+ PendleBuyYtRequest$.outboundSchema = PendleBuyYtRequest$outboundSchema;
40377
+ })(PendleBuyYtRequest$ ||= {});
40378
+ });
40379
+
40148
40380
  // src/models/components/pendlegetmarketresponse.ts
40149
40381
  var PendleGetMarketResponse$inboundSchema, PendleGetMarketResponse$outboundSchema, PendleGetMarketResponse$;
40150
40382
  var init_pendlegetmarketresponse = __esm(() => {
@@ -40359,6 +40591,82 @@ var init_pendlelistuserpositionsresponse = __esm(() => {
40359
40591
  })(PendleListUserPositionsResponse$ ||= {});
40360
40592
  });
40361
40593
 
40594
+ // src/models/components/pendlesellptrequest.ts
40595
+ var PendleSellPtRequestAmount$inboundSchema, PendleSellPtRequestAmount$outboundSchema, PendleSellPtRequestAmount$, PendleSellPtRequest$inboundSchema, PendleSellPtRequest$outboundSchema, PendleSellPtRequest$;
40596
+ var init_pendlesellptrequest = __esm(() => {
40597
+ init_esm();
40598
+ init_primitives();
40599
+ init_chain();
40600
+ PendleSellPtRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
40601
+ PendleSellPtRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
40602
+ ((PendleSellPtRequestAmount$) => {
40603
+ PendleSellPtRequestAmount$.inboundSchema = PendleSellPtRequestAmount$inboundSchema;
40604
+ PendleSellPtRequestAmount$.outboundSchema = PendleSellPtRequestAmount$outboundSchema;
40605
+ })(PendleSellPtRequestAmount$ ||= {});
40606
+ PendleSellPtRequest$inboundSchema = objectType({
40607
+ market_address: stringType(),
40608
+ amount: unionType([numberType(), stringType()]),
40609
+ chain: Chain$inboundSchema,
40610
+ sender: stringType()
40611
+ }).transform((v2) => {
40612
+ return remap(v2, {
40613
+ market_address: "marketAddress"
40614
+ });
40615
+ });
40616
+ PendleSellPtRequest$outboundSchema = objectType({
40617
+ marketAddress: stringType(),
40618
+ amount: unionType([numberType(), stringType()]),
40619
+ chain: Chain$outboundSchema,
40620
+ sender: stringType()
40621
+ }).transform((v2) => {
40622
+ return remap(v2, {
40623
+ marketAddress: "market_address"
40624
+ });
40625
+ });
40626
+ ((PendleSellPtRequest$) => {
40627
+ PendleSellPtRequest$.inboundSchema = PendleSellPtRequest$inboundSchema;
40628
+ PendleSellPtRequest$.outboundSchema = PendleSellPtRequest$outboundSchema;
40629
+ })(PendleSellPtRequest$ ||= {});
40630
+ });
40631
+
40632
+ // src/models/components/pendlesellytrequest.ts
40633
+ var PendleSellYtRequestAmount$inboundSchema, PendleSellYtRequestAmount$outboundSchema, PendleSellYtRequestAmount$, PendleSellYtRequest$inboundSchema, PendleSellYtRequest$outboundSchema, PendleSellYtRequest$;
40634
+ var init_pendlesellytrequest = __esm(() => {
40635
+ init_esm();
40636
+ init_primitives();
40637
+ init_chain();
40638
+ PendleSellYtRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
40639
+ PendleSellYtRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
40640
+ ((PendleSellYtRequestAmount$) => {
40641
+ PendleSellYtRequestAmount$.inboundSchema = PendleSellYtRequestAmount$inboundSchema;
40642
+ PendleSellYtRequestAmount$.outboundSchema = PendleSellYtRequestAmount$outboundSchema;
40643
+ })(PendleSellYtRequestAmount$ ||= {});
40644
+ PendleSellYtRequest$inboundSchema = objectType({
40645
+ market_address: stringType(),
40646
+ amount: unionType([numberType(), stringType()]),
40647
+ chain: Chain$inboundSchema,
40648
+ sender: stringType()
40649
+ }).transform((v2) => {
40650
+ return remap(v2, {
40651
+ market_address: "marketAddress"
40652
+ });
40653
+ });
40654
+ PendleSellYtRequest$outboundSchema = objectType({
40655
+ marketAddress: stringType(),
40656
+ amount: unionType([numberType(), stringType()]),
40657
+ chain: Chain$outboundSchema,
40658
+ sender: stringType()
40659
+ }).transform((v2) => {
40660
+ return remap(v2, {
40661
+ marketAddress: "market_address"
40662
+ });
40663
+ });
40664
+ ((PendleSellYtRequest$) => {
40665
+ PendleSellYtRequest$.inboundSchema = PendleSellYtRequest$inboundSchema;
40666
+ PendleSellYtRequest$.outboundSchema = PendleSellYtRequest$outboundSchema;
40667
+ })(PendleSellYtRequest$ ||= {});
40668
+ });
40669
+
40362
40670
  // src/models/components/portfolio.ts
40363
40671
  var Portfolio$inboundSchema, Portfolio$outboundSchema, Portfolio$;
40364
40672
  var init_portfolio = __esm(() => {
@@ -41473,11 +41781,19 @@ var init_components = __esm(() => {
41473
41781
  init_multicallauthorizationresponse();
41474
41782
  init_multicallexecuterequest();
41475
41783
  init_openposition();
41784
+ init_pendlebuyptparams();
41785
+ init_pendlebuyptrequest();
41786
+ init_pendlebuyytparams();
41787
+ init_pendlebuyytrequest();
41476
41788
  init_pendlegetmarketresponse();
41477
41789
  init_pendlegetuserpositionresponse();
41478
41790
  init_pendlelistmarketsresponse();
41479
41791
  init_pendlelistuserpositionsresponse();
41480
41792
  init_pendlemarket();
41793
+ init_pendlesellptparams();
41794
+ init_pendlesellptrequest();
41795
+ init_pendlesellytparams();
41796
+ init_pendlesellytrequest();
41481
41797
  init_portfolio();
41482
41798
  init_position();
41483
41799
  init_redeemunderlying();
@@ -47834,24 +48150,20 @@ as long as the blockchain it is deployed on is live.`,
47834
48150
  };
47835
48151
  });
47836
48152
 
47837
- // src/funcs/pendleMarket.ts
47838
- function pendleMarket(client, request, options) {
48153
+ // src/funcs/pendleBuyPt.ts
48154
+ function pendleBuyPt(client, request, options) {
47839
48155
  return new APIPromise($do35(client, request, options));
47840
48156
  }
47841
48157
  async function $do35(client, request, options) {
47842
- const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
48158
+ const parsed = safeParse(request, (value) => PendleBuyPtRequest$outboundSchema.parse(value), "Input validation failed");
47843
48159
  if (!parsed.ok) {
47844
48160
  return [parsed, { status: "invalid" }];
47845
48161
  }
47846
48162
  const payload = parsed.value;
47847
- const body = null;
47848
- const path = pathToFunc("/v0/pendle/market")();
47849
- const query = encodeFormQuery({
47850
- block: payload.block,
47851
- chain: payload.chain,
47852
- market_address: payload.market_address
47853
- });
48163
+ const body = encodeJSON("body", payload, { explode: true });
48164
+ const path = pathToFunc("/v0/pendle/buy_pt")();
47854
48165
  const headers = new Headers(compactMap({
48166
+ "Content-Type": "application/json",
47855
48167
  Accept: "application/json"
47856
48168
  }));
47857
48169
  const secConfig = await extractSecurity(client._options.apiKeyAuth);
@@ -47860,7 +48172,7 @@ async function $do35(client, request, options) {
47860
48172
  const context = {
47861
48173
  options: client._options,
47862
48174
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47863
- operationID: "pendle_market",
48175
+ operationID: "pendle_buy_pt",
47864
48176
  oAuth2Scopes: [],
47865
48177
  resolvedSecurity: requestSecurity,
47866
48178
  securitySource: client._options.apiKeyAuth,
@@ -47869,11 +48181,10 @@ async function $do35(client, request, options) {
47869
48181
  };
47870
48182
  const requestRes = client._createRequest(context, {
47871
48183
  security: requestSecurity,
47872
- method: "GET",
48184
+ method: "POST",
47873
48185
  baseURL: options?.serverURL,
47874
48186
  path,
47875
48187
  headers,
47876
- query,
47877
48188
  body,
47878
48189
  userAgent: client._options.userAgent,
47879
48190
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -47895,13 +48206,13 @@ async function $do35(client, request, options) {
47895
48206
  const responseFields = {
47896
48207
  HttpMeta: { Response: response, Request: req }
47897
48208
  };
47898
- const [result] = await match(json(200, PendleGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48209
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
47899
48210
  if (!result.ok) {
47900
48211
  return [result, { status: "complete", request: req, response }];
47901
48212
  }
47902
48213
  return [result, { status: "complete", request: req, response }];
47903
48214
  }
47904
- var init_pendleMarket = __esm(() => {
48215
+ var init_pendleBuyPt = __esm(() => {
47905
48216
  init_encodings();
47906
48217
  init_matchers();
47907
48218
  init_primitives();
@@ -47910,27 +48221,26 @@ var init_pendleMarket = __esm(() => {
47910
48221
  init_url();
47911
48222
  init_components();
47912
48223
  init_errors2();
47913
- init_operations();
47914
48224
  init_async();
47915
48225
  });
47916
48226
 
47917
- // src/mcp-server/tools/pendleMarket.ts
47918
- var args35, tool$pendleMarket;
47919
- var init_pendleMarket2 = __esm(() => {
47920
- init_pendleMarket();
47921
- init_operations();
48227
+ // src/mcp-server/tools/pendleBuyPt.ts
48228
+ var args35, tool$pendleBuyPt;
48229
+ var init_pendleBuyPt2 = __esm(() => {
48230
+ init_pendleBuyPt();
48231
+ init_components();
47922
48232
  init_tools();
47923
48233
  args35 = {
47924
- request: PendleMarketRequest$inboundSchema
48234
+ request: PendleBuyPtRequest$inboundSchema
47925
48235
  };
47926
- tool$pendleMarket = {
47927
- name: "pendle-market",
47928
- description: `Get Market Data
48236
+ tool$pendleBuyPt = {
48237
+ name: "pendle-buy-pt",
48238
+ description: `Buy Princpal Token (PT)
47929
48239
 
47930
- Get the market's implied APY, maturity date and the associated token data.`,
48240
+ Buy Principal Token (PT) with market's Underlying Token.`,
47931
48241
  args: args35,
47932
48242
  tool: async (client, args36, ctx) => {
47933
- const [result, apiCall] = await pendleMarket(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48243
+ const [result, apiCall] = await pendleBuyPt(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47934
48244
  if (!result.ok) {
47935
48245
  return {
47936
48246
  content: [{ type: "text", text: result.error.message }],
@@ -47943,23 +48253,20 @@ Get the market's implied APY, maturity date and the associated token data.`,
47943
48253
  };
47944
48254
  });
47945
48255
 
47946
- // src/funcs/pendleMarkets.ts
47947
- function pendleMarkets(client, request, options) {
48256
+ // src/funcs/pendleBuyYt.ts
48257
+ function pendleBuyYt(client, request, options) {
47948
48258
  return new APIPromise($do36(client, request, options));
47949
48259
  }
47950
48260
  async function $do36(client, request, options) {
47951
- const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
48261
+ const parsed = safeParse(request, (value) => PendleBuyYtRequest$outboundSchema.parse(value), "Input validation failed");
47952
48262
  if (!parsed.ok) {
47953
48263
  return [parsed, { status: "invalid" }];
47954
48264
  }
47955
48265
  const payload = parsed.value;
47956
- const body = null;
47957
- const path = pathToFunc("/v0/pendle/markets")();
47958
- const query = encodeFormQuery({
47959
- block: payload.block,
47960
- chain: payload.chain
47961
- });
48266
+ const body = encodeJSON("body", payload, { explode: true });
48267
+ const path = pathToFunc("/v0/pendle/buy_yt")();
47962
48268
  const headers = new Headers(compactMap({
48269
+ "Content-Type": "application/json",
47963
48270
  Accept: "application/json"
47964
48271
  }));
47965
48272
  const secConfig = await extractSecurity(client._options.apiKeyAuth);
@@ -47968,7 +48275,7 @@ async function $do36(client, request, options) {
47968
48275
  const context = {
47969
48276
  options: client._options,
47970
48277
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47971
- operationID: "pendle_markets",
48278
+ operationID: "pendle_buy_yt",
47972
48279
  oAuth2Scopes: [],
47973
48280
  resolvedSecurity: requestSecurity,
47974
48281
  securitySource: client._options.apiKeyAuth,
@@ -47977,11 +48284,10 @@ async function $do36(client, request, options) {
47977
48284
  };
47978
48285
  const requestRes = client._createRequest(context, {
47979
48286
  security: requestSecurity,
47980
- method: "GET",
48287
+ method: "POST",
47981
48288
  baseURL: options?.serverURL,
47982
48289
  path,
47983
48290
  headers,
47984
- query,
47985
48291
  body,
47986
48292
  userAgent: client._options.userAgent,
47987
48293
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -48003,13 +48309,13 @@ async function $do36(client, request, options) {
48003
48309
  const responseFields = {
48004
48310
  HttpMeta: { Response: response, Request: req }
48005
48311
  };
48006
- const [result] = await match(json(200, PendleListMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48312
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48007
48313
  if (!result.ok) {
48008
48314
  return [result, { status: "complete", request: req, response }];
48009
48315
  }
48010
48316
  return [result, { status: "complete", request: req, response }];
48011
48317
  }
48012
- var init_pendleMarkets = __esm(() => {
48318
+ var init_pendleBuyYt = __esm(() => {
48013
48319
  init_encodings();
48014
48320
  init_matchers();
48015
48321
  init_primitives();
@@ -48018,27 +48324,26 @@ var init_pendleMarkets = __esm(() => {
48018
48324
  init_url();
48019
48325
  init_components();
48020
48326
  init_errors2();
48021
- init_operations();
48022
48327
  init_async();
48023
48328
  });
48024
48329
 
48025
- // src/mcp-server/tools/pendleMarkets.ts
48026
- var args36, tool$pendleMarkets;
48027
- var init_pendleMarkets2 = __esm(() => {
48028
- init_pendleMarkets();
48029
- init_operations();
48330
+ // src/mcp-server/tools/pendleBuyYt.ts
48331
+ var args36, tool$pendleBuyYt;
48332
+ var init_pendleBuyYt2 = __esm(() => {
48333
+ init_pendleBuyYt();
48334
+ init_components();
48030
48335
  init_tools();
48031
48336
  args36 = {
48032
- request: PendleMarketsRequest$inboundSchema
48337
+ request: PendleBuyYtRequest$inboundSchema
48033
48338
  };
48034
- tool$pendleMarkets = {
48035
- name: "pendle-markets",
48036
- description: `List Market Data
48339
+ tool$pendleBuyYt = {
48340
+ name: "pendle-buy-yt",
48341
+ description: `Buy Yield Token (YT)
48037
48342
 
48038
- Get a list of active markets.`,
48343
+ Buy Yield Token (YT) with market's Underlying Token.`,
48039
48344
  args: args36,
48040
48345
  tool: async (client, args37, ctx) => {
48041
- const [result, apiCall] = await pendleMarkets(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48346
+ const [result, apiCall] = await pendleBuyYt(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48042
48347
  if (!result.ok) {
48043
48348
  return {
48044
48349
  content: [{ type: "text", text: result.error.message }],
@@ -48051,23 +48356,22 @@ Get a list of active markets.`,
48051
48356
  };
48052
48357
  });
48053
48358
 
48054
- // src/funcs/pendlePosition.ts
48055
- function pendlePosition(client, request, options) {
48359
+ // src/funcs/pendleMarket.ts
48360
+ function pendleMarket(client, request, options) {
48056
48361
  return new APIPromise($do37(client, request, options));
48057
48362
  }
48058
48363
  async function $do37(client, request, options) {
48059
- const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
48364
+ const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
48060
48365
  if (!parsed.ok) {
48061
48366
  return [parsed, { status: "invalid" }];
48062
48367
  }
48063
48368
  const payload = parsed.value;
48064
48369
  const body = null;
48065
- const path = pathToFunc("/v0/pendle/position")();
48370
+ const path = pathToFunc("/v0/pendle/market")();
48066
48371
  const query = encodeFormQuery({
48067
48372
  block: payload.block,
48068
48373
  chain: payload.chain,
48069
- market_address: payload.market_address,
48070
- user_address: payload.user_address
48374
+ market_address: payload.market_address
48071
48375
  });
48072
48376
  const headers = new Headers(compactMap({
48073
48377
  Accept: "application/json"
@@ -48078,7 +48382,7 @@ async function $do37(client, request, options) {
48078
48382
  const context = {
48079
48383
  options: client._options,
48080
48384
  baseURL: options?.serverURL ?? client._baseURL ?? "",
48081
- operationID: "pendle_position",
48385
+ operationID: "pendle_market",
48082
48386
  oAuth2Scopes: [],
48083
48387
  resolvedSecurity: requestSecurity,
48084
48388
  securitySource: client._options.apiKeyAuth,
@@ -48113,13 +48417,13 @@ async function $do37(client, request, options) {
48113
48417
  const responseFields = {
48114
48418
  HttpMeta: { Response: response, Request: req }
48115
48419
  };
48116
- const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48420
+ const [result] = await match(json(200, PendleGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48117
48421
  if (!result.ok) {
48118
48422
  return [result, { status: "complete", request: req, response }];
48119
48423
  }
48120
48424
  return [result, { status: "complete", request: req, response }];
48121
48425
  }
48122
- var init_pendlePosition = __esm(() => {
48426
+ var init_pendleMarket = __esm(() => {
48123
48427
  init_encodings();
48124
48428
  init_matchers();
48125
48429
  init_primitives();
@@ -48132,23 +48436,23 @@ var init_pendlePosition = __esm(() => {
48132
48436
  init_async();
48133
48437
  });
48134
48438
 
48135
- // src/mcp-server/tools/pendlePosition.ts
48136
- var args37, tool$pendlePosition;
48137
- var init_pendlePosition2 = __esm(() => {
48138
- init_pendlePosition();
48439
+ // src/mcp-server/tools/pendleMarket.ts
48440
+ var args37, tool$pendleMarket;
48441
+ var init_pendleMarket2 = __esm(() => {
48442
+ init_pendleMarket();
48139
48443
  init_operations();
48140
48444
  init_tools();
48141
48445
  args37 = {
48142
- request: PendlePositionRequest$inboundSchema
48446
+ request: PendleMarketRequest$inboundSchema
48143
48447
  };
48144
- tool$pendlePosition = {
48145
- name: "pendle-position",
48146
- description: `Check User's Market Position
48448
+ tool$pendleMarket = {
48449
+ name: "pendle-market",
48450
+ description: `Get Market Data
48147
48451
 
48148
- Check the SY, PT, YT and Underlying Token positions for a given market.`,
48452
+ Get the market's implied APY, maturity date and the associated token data.`,
48149
48453
  args: args37,
48150
48454
  tool: async (client, args38, ctx) => {
48151
- const [result, apiCall] = await pendlePosition(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48455
+ const [result, apiCall] = await pendleMarket(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48152
48456
  if (!result.ok) {
48153
48457
  return {
48154
48458
  content: [{ type: "text", text: result.error.message }],
@@ -48161,22 +48465,21 @@ Check the SY, PT, YT and Underlying Token positions for a given market.`,
48161
48465
  };
48162
48466
  });
48163
48467
 
48164
- // src/funcs/pendlePositions.ts
48165
- function pendlePositions(client, request, options) {
48468
+ // src/funcs/pendleMarkets.ts
48469
+ function pendleMarkets(client, request, options) {
48166
48470
  return new APIPromise($do38(client, request, options));
48167
48471
  }
48168
48472
  async function $do38(client, request, options) {
48169
- const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
48473
+ const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
48170
48474
  if (!parsed.ok) {
48171
48475
  return [parsed, { status: "invalid" }];
48172
48476
  }
48173
48477
  const payload = parsed.value;
48174
48478
  const body = null;
48175
- const path = pathToFunc("/v0/pendle/positions")();
48479
+ const path = pathToFunc("/v0/pendle/markets")();
48176
48480
  const query = encodeFormQuery({
48177
48481
  block: payload.block,
48178
- chain: payload.chain,
48179
- user_address: payload.user_address
48482
+ chain: payload.chain
48180
48483
  });
48181
48484
  const headers = new Headers(compactMap({
48182
48485
  Accept: "application/json"
@@ -48187,7 +48490,7 @@ async function $do38(client, request, options) {
48187
48490
  const context = {
48188
48491
  options: client._options,
48189
48492
  baseURL: options?.serverURL ?? client._baseURL ?? "",
48190
- operationID: "pendle_positions",
48493
+ operationID: "pendle_markets",
48191
48494
  oAuth2Scopes: [],
48192
48495
  resolvedSecurity: requestSecurity,
48193
48496
  securitySource: client._options.apiKeyAuth,
@@ -48222,13 +48525,232 @@ async function $do38(client, request, options) {
48222
48525
  const responseFields = {
48223
48526
  HttpMeta: { Response: response, Request: req }
48224
48527
  };
48225
- const [result] = await match(json(200, PendleListUserPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48528
+ const [result] = await match(json(200, PendleListMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48226
48529
  if (!result.ok) {
48227
48530
  return [result, { status: "complete", request: req, response }];
48228
48531
  }
48229
48532
  return [result, { status: "complete", request: req, response }];
48230
48533
  }
48231
- var init_pendlePositions = __esm(() => {
48534
+ var init_pendleMarkets = __esm(() => {
48535
+ init_encodings();
48536
+ init_matchers();
48537
+ init_primitives();
48538
+ init_schemas();
48539
+ init_security();
48540
+ init_url();
48541
+ init_components();
48542
+ init_errors2();
48543
+ init_operations();
48544
+ init_async();
48545
+ });
48546
+
48547
+ // src/mcp-server/tools/pendleMarkets.ts
48548
+ var args38, tool$pendleMarkets;
48549
+ var init_pendleMarkets2 = __esm(() => {
48550
+ init_pendleMarkets();
48551
+ init_operations();
48552
+ init_tools();
48553
+ args38 = {
48554
+ request: PendleMarketsRequest$inboundSchema
48555
+ };
48556
+ tool$pendleMarkets = {
48557
+ name: "pendle-markets",
48558
+ description: `List Market Data
48559
+
48560
+ Get a list of active markets.`,
48561
+ args: args38,
48562
+ tool: async (client, args39, ctx) => {
48563
+ const [result, apiCall] = await pendleMarkets(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48564
+ if (!result.ok) {
48565
+ return {
48566
+ content: [{ type: "text", text: result.error.message }],
48567
+ isError: true
48568
+ };
48569
+ }
48570
+ const value = result.value;
48571
+ return formatResult(value, apiCall);
48572
+ }
48573
+ };
48574
+ });
48575
+
48576
+ // src/funcs/pendlePosition.ts
48577
+ function pendlePosition(client, request, options) {
48578
+ return new APIPromise($do39(client, request, options));
48579
+ }
48580
+ async function $do39(client, request, options) {
48581
+ const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
48582
+ if (!parsed.ok) {
48583
+ return [parsed, { status: "invalid" }];
48584
+ }
48585
+ const payload = parsed.value;
48586
+ const body = null;
48587
+ const path = pathToFunc("/v0/pendle/position")();
48588
+ const query = encodeFormQuery({
48589
+ block: payload.block,
48590
+ chain: payload.chain,
48591
+ market_address: payload.market_address,
48592
+ user_address: payload.user_address
48593
+ });
48594
+ const headers = new Headers(compactMap({
48595
+ Accept: "application/json"
48596
+ }));
48597
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
48598
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
48599
+ const requestSecurity = resolveGlobalSecurity(securityInput);
48600
+ const context = {
48601
+ options: client._options,
48602
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
48603
+ operationID: "pendle_position",
48604
+ oAuth2Scopes: [],
48605
+ resolvedSecurity: requestSecurity,
48606
+ securitySource: client._options.apiKeyAuth,
48607
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48608
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48609
+ };
48610
+ const requestRes = client._createRequest(context, {
48611
+ security: requestSecurity,
48612
+ method: "GET",
48613
+ baseURL: options?.serverURL,
48614
+ path,
48615
+ headers,
48616
+ query,
48617
+ body,
48618
+ userAgent: client._options.userAgent,
48619
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48620
+ }, options);
48621
+ if (!requestRes.ok) {
48622
+ return [requestRes, { status: "invalid" }];
48623
+ }
48624
+ const req = requestRes.value;
48625
+ const doResult = await client._do(req, {
48626
+ context,
48627
+ errorCodes: ["422", "4XX", "5XX"],
48628
+ retryConfig: context.retryConfig,
48629
+ retryCodes: context.retryCodes
48630
+ });
48631
+ if (!doResult.ok) {
48632
+ return [doResult, { status: "request-error", request: req }];
48633
+ }
48634
+ const response = doResult.value;
48635
+ const responseFields = {
48636
+ HttpMeta: { Response: response, Request: req }
48637
+ };
48638
+ const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48639
+ if (!result.ok) {
48640
+ return [result, { status: "complete", request: req, response }];
48641
+ }
48642
+ return [result, { status: "complete", request: req, response }];
48643
+ }
48644
+ var init_pendlePosition = __esm(() => {
48645
+ init_encodings();
48646
+ init_matchers();
48647
+ init_primitives();
48648
+ init_schemas();
48649
+ init_security();
48650
+ init_url();
48651
+ init_components();
48652
+ init_errors2();
48653
+ init_operations();
48654
+ init_async();
48655
+ });
48656
+
48657
+ // src/mcp-server/tools/pendlePosition.ts
48658
+ var args39, tool$pendlePosition;
48659
+ var init_pendlePosition2 = __esm(() => {
48660
+ init_pendlePosition();
48661
+ init_operations();
48662
+ init_tools();
48663
+ args39 = {
48664
+ request: PendlePositionRequest$inboundSchema
48665
+ };
48666
+ tool$pendlePosition = {
48667
+ name: "pendle-position",
48668
+ description: `Check User's Market Position
48669
+
48670
+ Check the SY, PT, YT and Underlying Token positions for a given market.`,
48671
+ args: args39,
48672
+ tool: async (client, args40, ctx) => {
48673
+ const [result, apiCall] = await pendlePosition(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48674
+ if (!result.ok) {
48675
+ return {
48676
+ content: [{ type: "text", text: result.error.message }],
48677
+ isError: true
48678
+ };
48679
+ }
48680
+ const value = result.value;
48681
+ return formatResult(value, apiCall);
48682
+ }
48683
+ };
48684
+ });
48685
+
48686
+ // src/funcs/pendlePositions.ts
48687
+ function pendlePositions(client, request, options) {
48688
+ return new APIPromise($do40(client, request, options));
48689
+ }
48690
+ async function $do40(client, request, options) {
48691
+ const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
48692
+ if (!parsed.ok) {
48693
+ return [parsed, { status: "invalid" }];
48694
+ }
48695
+ const payload = parsed.value;
48696
+ const body = null;
48697
+ const path = pathToFunc("/v0/pendle/positions")();
48698
+ const query = encodeFormQuery({
48699
+ block: payload.block,
48700
+ chain: payload.chain,
48701
+ user_address: payload.user_address
48702
+ });
48703
+ const headers = new Headers(compactMap({
48704
+ Accept: "application/json"
48705
+ }));
48706
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
48707
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
48708
+ const requestSecurity = resolveGlobalSecurity(securityInput);
48709
+ const context = {
48710
+ options: client._options,
48711
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
48712
+ operationID: "pendle_positions",
48713
+ oAuth2Scopes: [],
48714
+ resolvedSecurity: requestSecurity,
48715
+ securitySource: client._options.apiKeyAuth,
48716
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48717
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48718
+ };
48719
+ const requestRes = client._createRequest(context, {
48720
+ security: requestSecurity,
48721
+ method: "GET",
48722
+ baseURL: options?.serverURL,
48723
+ path,
48724
+ headers,
48725
+ query,
48726
+ body,
48727
+ userAgent: client._options.userAgent,
48728
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48729
+ }, options);
48730
+ if (!requestRes.ok) {
48731
+ return [requestRes, { status: "invalid" }];
48732
+ }
48733
+ const req = requestRes.value;
48734
+ const doResult = await client._do(req, {
48735
+ context,
48736
+ errorCodes: ["422", "4XX", "5XX"],
48737
+ retryConfig: context.retryConfig,
48738
+ retryCodes: context.retryCodes
48739
+ });
48740
+ if (!doResult.ok) {
48741
+ return [doResult, { status: "request-error", request: req }];
48742
+ }
48743
+ const response = doResult.value;
48744
+ const responseFields = {
48745
+ HttpMeta: { Response: response, Request: req }
48746
+ };
48747
+ const [result] = await match(json(200, PendleListUserPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48748
+ if (!result.ok) {
48749
+ return [result, { status: "complete", request: req, response }];
48750
+ }
48751
+ return [result, { status: "complete", request: req, response }];
48752
+ }
48753
+ var init_pendlePositions = __esm(() => {
48232
48754
  init_encodings();
48233
48755
  init_matchers();
48234
48756
  init_primitives();
@@ -48242,12 +48764,12 @@ var init_pendlePositions = __esm(() => {
48242
48764
  });
48243
48765
 
48244
48766
  // src/mcp-server/tools/pendlePositions.ts
48245
- var args38, tool$pendlePositions;
48767
+ var args40, tool$pendlePositions;
48246
48768
  var init_pendlePositions2 = __esm(() => {
48247
48769
  init_pendlePositions();
48248
48770
  init_operations();
48249
48771
  init_tools();
48250
- args38 = {
48772
+ args40 = {
48251
48773
  request: PendlePositionsRequest$inboundSchema
48252
48774
  };
48253
48775
  tool$pendlePositions = {
@@ -48255,9 +48777,215 @@ var init_pendlePositions2 = __esm(() => {
48255
48777
  description: `List User's Market Positions
48256
48778
 
48257
48779
  List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
48258
- args: args38,
48259
- tool: async (client, args39, ctx) => {
48260
- const [result, apiCall] = await pendlePositions(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48780
+ args: args40,
48781
+ tool: async (client, args41, ctx) => {
48782
+ const [result, apiCall] = await pendlePositions(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48783
+ if (!result.ok) {
48784
+ return {
48785
+ content: [{ type: "text", text: result.error.message }],
48786
+ isError: true
48787
+ };
48788
+ }
48789
+ const value = result.value;
48790
+ return formatResult(value, apiCall);
48791
+ }
48792
+ };
48793
+ });
48794
+
48795
+ // src/funcs/pendleSellPt.ts
48796
+ function pendleSellPt(client, request, options) {
48797
+ return new APIPromise($do41(client, request, options));
48798
+ }
48799
+ async function $do41(client, request, options) {
48800
+ const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
48801
+ if (!parsed.ok) {
48802
+ return [parsed, { status: "invalid" }];
48803
+ }
48804
+ const payload = parsed.value;
48805
+ const body = encodeJSON("body", payload, { explode: true });
48806
+ const path = pathToFunc("/v0/pendle/sell_pt")();
48807
+ const headers = new Headers(compactMap({
48808
+ "Content-Type": "application/json",
48809
+ Accept: "application/json"
48810
+ }));
48811
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
48812
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
48813
+ const requestSecurity = resolveGlobalSecurity(securityInput);
48814
+ const context = {
48815
+ options: client._options,
48816
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
48817
+ operationID: "pendle_sell_pt",
48818
+ oAuth2Scopes: [],
48819
+ resolvedSecurity: requestSecurity,
48820
+ securitySource: client._options.apiKeyAuth,
48821
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48822
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48823
+ };
48824
+ const requestRes = client._createRequest(context, {
48825
+ security: requestSecurity,
48826
+ method: "POST",
48827
+ baseURL: options?.serverURL,
48828
+ path,
48829
+ headers,
48830
+ body,
48831
+ userAgent: client._options.userAgent,
48832
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48833
+ }, options);
48834
+ if (!requestRes.ok) {
48835
+ return [requestRes, { status: "invalid" }];
48836
+ }
48837
+ const req = requestRes.value;
48838
+ const doResult = await client._do(req, {
48839
+ context,
48840
+ errorCodes: ["422", "4XX", "5XX"],
48841
+ retryConfig: context.retryConfig,
48842
+ retryCodes: context.retryCodes
48843
+ });
48844
+ if (!doResult.ok) {
48845
+ return [doResult, { status: "request-error", request: req }];
48846
+ }
48847
+ const response = doResult.value;
48848
+ const responseFields = {
48849
+ HttpMeta: { Response: response, Request: req }
48850
+ };
48851
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48852
+ if (!result.ok) {
48853
+ return [result, { status: "complete", request: req, response }];
48854
+ }
48855
+ return [result, { status: "complete", request: req, response }];
48856
+ }
48857
+ var init_pendleSellPt = __esm(() => {
48858
+ init_encodings();
48859
+ init_matchers();
48860
+ init_primitives();
48861
+ init_schemas();
48862
+ init_security();
48863
+ init_url();
48864
+ init_components();
48865
+ init_errors2();
48866
+ init_async();
48867
+ });
48868
+
48869
+ // src/mcp-server/tools/pendleSellPt.ts
48870
+ var args41, tool$pendleSellPt;
48871
+ var init_pendleSellPt2 = __esm(() => {
48872
+ init_pendleSellPt();
48873
+ init_components();
48874
+ init_tools();
48875
+ args41 = {
48876
+ request: PendleSellPtRequest$inboundSchema
48877
+ };
48878
+ tool$pendleSellPt = {
48879
+ name: "pendle-sell-pt",
48880
+ description: `Sell Princpal Token (PT)
48881
+
48882
+ Sell Principal Token (PT) for the market's Underlying Token.`,
48883
+ args: args41,
48884
+ tool: async (client, args42, ctx) => {
48885
+ const [result, apiCall] = await pendleSellPt(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48886
+ if (!result.ok) {
48887
+ return {
48888
+ content: [{ type: "text", text: result.error.message }],
48889
+ isError: true
48890
+ };
48891
+ }
48892
+ const value = result.value;
48893
+ return formatResult(value, apiCall);
48894
+ }
48895
+ };
48896
+ });
48897
+
48898
+ // src/funcs/pendleSellYt.ts
48899
+ function pendleSellYt(client, request, options) {
48900
+ return new APIPromise($do42(client, request, options));
48901
+ }
48902
+ async function $do42(client, request, options) {
48903
+ const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
48904
+ if (!parsed.ok) {
48905
+ return [parsed, { status: "invalid" }];
48906
+ }
48907
+ const payload = parsed.value;
48908
+ const body = encodeJSON("body", payload, { explode: true });
48909
+ const path = pathToFunc("/v0/pendle/sell_yt")();
48910
+ const headers = new Headers(compactMap({
48911
+ "Content-Type": "application/json",
48912
+ Accept: "application/json"
48913
+ }));
48914
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
48915
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
48916
+ const requestSecurity = resolveGlobalSecurity(securityInput);
48917
+ const context = {
48918
+ options: client._options,
48919
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
48920
+ operationID: "pendle_sell_yt",
48921
+ oAuth2Scopes: [],
48922
+ resolvedSecurity: requestSecurity,
48923
+ securitySource: client._options.apiKeyAuth,
48924
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48925
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48926
+ };
48927
+ const requestRes = client._createRequest(context, {
48928
+ security: requestSecurity,
48929
+ method: "POST",
48930
+ baseURL: options?.serverURL,
48931
+ path,
48932
+ headers,
48933
+ body,
48934
+ userAgent: client._options.userAgent,
48935
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48936
+ }, options);
48937
+ if (!requestRes.ok) {
48938
+ return [requestRes, { status: "invalid" }];
48939
+ }
48940
+ const req = requestRes.value;
48941
+ const doResult = await client._do(req, {
48942
+ context,
48943
+ errorCodes: ["422", "4XX", "5XX"],
48944
+ retryConfig: context.retryConfig,
48945
+ retryCodes: context.retryCodes
48946
+ });
48947
+ if (!doResult.ok) {
48948
+ return [doResult, { status: "request-error", request: req }];
48949
+ }
48950
+ const response = doResult.value;
48951
+ const responseFields = {
48952
+ HttpMeta: { Response: response, Request: req }
48953
+ };
48954
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48955
+ if (!result.ok) {
48956
+ return [result, { status: "complete", request: req, response }];
48957
+ }
48958
+ return [result, { status: "complete", request: req, response }];
48959
+ }
48960
+ var init_pendleSellYt = __esm(() => {
48961
+ init_encodings();
48962
+ init_matchers();
48963
+ init_primitives();
48964
+ init_schemas();
48965
+ init_security();
48966
+ init_url();
48967
+ init_components();
48968
+ init_errors2();
48969
+ init_async();
48970
+ });
48971
+
48972
+ // src/mcp-server/tools/pendleSellYt.ts
48973
+ var args42, tool$pendleSellYt;
48974
+ var init_pendleSellYt2 = __esm(() => {
48975
+ init_pendleSellYt();
48976
+ init_components();
48977
+ init_tools();
48978
+ args42 = {
48979
+ request: PendleSellYtRequest$inboundSchema
48980
+ };
48981
+ tool$pendleSellYt = {
48982
+ name: "pendle-sell-yt",
48983
+ description: `Sell Yield Token (YT)
48984
+
48985
+ Sell Yield Token (YT) for the market's Underlying Token.`,
48986
+ args: args42,
48987
+ tool: async (client, args43, ctx) => {
48988
+ const [result, apiCall] = await pendleSellYt(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48261
48989
  if (!result.ok) {
48262
48990
  return {
48263
48991
  content: [{ type: "text", text: result.error.message }],
@@ -48272,9 +49000,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
48272
49000
 
48273
49001
  // src/funcs/skyBuy.ts
48274
49002
  function skyBuy(client, request, options) {
48275
- return new APIPromise($do39(client, request, options));
49003
+ return new APIPromise($do43(client, request, options));
48276
49004
  }
48277
- async function $do39(client, request, options) {
49005
+ async function $do43(client, request, options) {
48278
49006
  const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
48279
49007
  if (!parsed.ok) {
48280
49008
  return [parsed, { status: "invalid" }];
@@ -48345,12 +49073,12 @@ var init_skyBuy = __esm(() => {
48345
49073
  });
48346
49074
 
48347
49075
  // src/mcp-server/tools/skyBuy.ts
48348
- var args39, tool$skyBuy;
49076
+ var args43, tool$skyBuy;
48349
49077
  var init_skyBuy2 = __esm(() => {
48350
49078
  init_skyBuy();
48351
49079
  init_components();
48352
49080
  init_tools();
48353
- args39 = {
49081
+ args43 = {
48354
49082
  request: SkyBuyRequest$inboundSchema
48355
49083
  };
48356
49084
  tool$skyBuy = {
@@ -48364,9 +49092,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
48364
49092
 
48365
49093
  If buying with USDC, user will need to set an allowance on the USDC contract for the
48366
49094
  'SkyDaiUsdsConverter' contract beforehand.`,
48367
- args: args39,
48368
- tool: async (client, args40, ctx) => {
48369
- const [result, apiCall] = await skyBuy(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49095
+ args: args43,
49096
+ tool: async (client, args44, ctx) => {
49097
+ const [result, apiCall] = await skyBuy(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48370
49098
  if (!result.ok) {
48371
49099
  return {
48372
49100
  content: [{ type: "text", text: result.error.message }],
@@ -48381,9 +49109,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
48381
49109
 
48382
49110
  // src/funcs/skyDeposit.ts
48383
49111
  function skyDeposit(client, request, options) {
48384
- return new APIPromise($do40(client, request, options));
49112
+ return new APIPromise($do44(client, request, options));
48385
49113
  }
48386
- async function $do40(client, request, options) {
49114
+ async function $do44(client, request, options) {
48387
49115
  const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
48388
49116
  if (!parsed.ok) {
48389
49117
  return [parsed, { status: "invalid" }];
@@ -48454,12 +49182,12 @@ var init_skyDeposit = __esm(() => {
48454
49182
  });
48455
49183
 
48456
49184
  // src/mcp-server/tools/skyDeposit.ts
48457
- var args40, tool$skyDeposit;
49185
+ var args44, tool$skyDeposit;
48458
49186
  var init_skyDeposit2 = __esm(() => {
48459
49187
  init_skyDeposit();
48460
49188
  init_components();
48461
49189
  init_tools();
48462
- args40 = {
49190
+ args44 = {
48463
49191
  request: SkyDepositRequest$inboundSchema
48464
49192
  };
48465
49193
  tool$skyDeposit = {
@@ -48469,9 +49197,9 @@ var init_skyDeposit2 = __esm(() => {
48469
49197
  Deposit USDS for sUSDS to earn yield.
48470
49198
 
48471
49199
  There are no fees.`,
48472
- args: args40,
48473
- tool: async (client, args41, ctx) => {
48474
- const [result, apiCall] = await skyDeposit(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49200
+ args: args44,
49201
+ tool: async (client, args45, ctx) => {
49202
+ const [result, apiCall] = await skyDeposit(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48475
49203
  if (!result.ok) {
48476
49204
  return {
48477
49205
  content: [{ type: "text", text: result.error.message }],
@@ -48486,9 +49214,9 @@ There are no fees.`,
48486
49214
 
48487
49215
  // src/funcs/skyPosition.ts
48488
49216
  function skyPosition(client, request, options) {
48489
- return new APIPromise($do41(client, request, options));
49217
+ return new APIPromise($do45(client, request, options));
48490
49218
  }
48491
- async function $do41(client, request, options) {
49219
+ async function $do45(client, request, options) {
48492
49220
  const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
48493
49221
  if (!parsed.ok) {
48494
49222
  return [parsed, { status: "invalid" }];
@@ -48565,12 +49293,12 @@ var init_skyPosition = __esm(() => {
48565
49293
  });
48566
49294
 
48567
49295
  // src/mcp-server/tools/skyPosition.ts
48568
- var args41, tool$skyPosition;
49296
+ var args45, tool$skyPosition;
48569
49297
  var init_skyPosition2 = __esm(() => {
48570
49298
  init_skyPosition();
48571
49299
  init_operations();
48572
49300
  init_tools();
48573
- args41 = {
49301
+ args45 = {
48574
49302
  request: SkyPositionRequest$inboundSchema
48575
49303
  };
48576
49304
  tool$skyPosition = {
@@ -48578,9 +49306,9 @@ var init_skyPosition2 = __esm(() => {
48578
49306
  description: `Check USDS Position
48579
49307
 
48580
49308
  Check the USDS overall position.`,
48581
- args: args41,
48582
- tool: async (client, args42, ctx) => {
48583
- const [result, apiCall] = await skyPosition(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49309
+ args: args45,
49310
+ tool: async (client, args46, ctx) => {
49311
+ const [result, apiCall] = await skyPosition(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48584
49312
  if (!result.ok) {
48585
49313
  return {
48586
49314
  content: [{ type: "text", text: result.error.message }],
@@ -48595,9 +49323,9 @@ Check the USDS overall position.`,
48595
49323
 
48596
49324
  // src/funcs/skySell.ts
48597
49325
  function skySell(client, request, options) {
48598
- return new APIPromise($do42(client, request, options));
49326
+ return new APIPromise($do46(client, request, options));
48599
49327
  }
48600
- async function $do42(client, request, options) {
49328
+ async function $do46(client, request, options) {
48601
49329
  const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
48602
49330
  if (!parsed.ok) {
48603
49331
  return [parsed, { status: "invalid" }];
@@ -48668,12 +49396,12 @@ var init_skySell = __esm(() => {
48668
49396
  });
48669
49397
 
48670
49398
  // src/mcp-server/tools/skySell.ts
48671
- var args42, tool$skySell;
49399
+ var args46, tool$skySell;
48672
49400
  var init_skySell2 = __esm(() => {
48673
49401
  init_skySell();
48674
49402
  init_components();
48675
49403
  init_tools();
48676
- args42 = {
49404
+ args46 = {
48677
49405
  request: SkySellRequest$inboundSchema
48678
49406
  };
48679
49407
  tool$skySell = {
@@ -48687,9 +49415,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
48687
49415
 
48688
49416
  If swapping to USDC, user will need to set an allowance on the USDS contract for the
48689
49417
  'SkyUsdcUsdsConverter' contract beforehand.`,
48690
- args: args42,
48691
- tool: async (client, args43, ctx) => {
48692
- const [result, apiCall] = await skySell(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49418
+ args: args46,
49419
+ tool: async (client, args47, ctx) => {
49420
+ const [result, apiCall] = await skySell(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48693
49421
  if (!result.ok) {
48694
49422
  return {
48695
49423
  content: [{ type: "text", text: result.error.message }],
@@ -48704,9 +49432,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
48704
49432
 
48705
49433
  // src/funcs/skyWithdraw.ts
48706
49434
  function skyWithdraw(client, request, options) {
48707
- return new APIPromise($do43(client, request, options));
49435
+ return new APIPromise($do47(client, request, options));
48708
49436
  }
48709
- async function $do43(client, request, options) {
49437
+ async function $do47(client, request, options) {
48710
49438
  const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
48711
49439
  if (!parsed.ok) {
48712
49440
  return [parsed, { status: "invalid" }];
@@ -48777,12 +49505,12 @@ var init_skyWithdraw = __esm(() => {
48777
49505
  });
48778
49506
 
48779
49507
  // src/mcp-server/tools/skyWithdraw.ts
48780
- var args43, tool$skyWithdraw;
49508
+ var args47, tool$skyWithdraw;
48781
49509
  var init_skyWithdraw2 = __esm(() => {
48782
49510
  init_skyWithdraw();
48783
49511
  init_components();
48784
49512
  init_tools();
48785
- args43 = {
49513
+ args47 = {
48786
49514
  request: SkyWithdrawRequest$inboundSchema
48787
49515
  };
48788
49516
  tool$skyWithdraw = {
@@ -48790,9 +49518,9 @@ var init_skyWithdraw2 = __esm(() => {
48790
49518
  description: `Withdraw USDS
48791
49519
 
48792
49520
  Withdraw USDS for sUSDS to stop earning yield.`,
48793
- args: args43,
48794
- tool: async (client, args44, ctx) => {
48795
- const [result, apiCall] = await skyWithdraw(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49521
+ args: args47,
49522
+ tool: async (client, args48, ctx) => {
49523
+ const [result, apiCall] = await skyWithdraw(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48796
49524
  if (!result.ok) {
48797
49525
  return {
48798
49526
  content: [{ type: "text", text: result.error.message }],
@@ -48807,9 +49535,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
48807
49535
 
48808
49536
  // src/funcs/smartAccountAccountBatchedUserOperations.ts
48809
49537
  function smartAccountAccountBatchedUserOperations(client, request, options) {
48810
- return new APIPromise($do44(client, request, options));
49538
+ return new APIPromise($do48(client, request, options));
48811
49539
  }
48812
- async function $do44(client, request, options) {
49540
+ async function $do48(client, request, options) {
48813
49541
  const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
48814
49542
  if (!parsed.ok) {
48815
49543
  return [parsed, { status: "invalid" }];
@@ -48880,12 +49608,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
48880
49608
  });
48881
49609
 
48882
49610
  // src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
48883
- var args44, tool$smartAccountAccountBatchedUserOperations;
49611
+ var args48, tool$smartAccountAccountBatchedUserOperations;
48884
49612
  var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
48885
49613
  init_smartAccountAccountBatchedUserOperations();
48886
49614
  init_components();
48887
49615
  init_tools();
48888
- args44 = {
49616
+ args48 = {
48889
49617
  request: BatchedUserOperationsRequest$inboundSchema
48890
49618
  };
48891
49619
  tool$smartAccountAccountBatchedUserOperations = {
@@ -48893,9 +49621,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
48893
49621
  description: `Get Smart Account Batched User Operations
48894
49622
 
48895
49623
  Generate a list of user operations for smart account batching.`,
48896
- args: args44,
48897
- tool: async (client, args45, ctx) => {
48898
- const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49624
+ args: args48,
49625
+ tool: async (client, args49, ctx) => {
49626
+ const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48899
49627
  if (!result.ok) {
48900
49628
  return {
48901
49629
  content: [{ type: "text", text: result.error.message }],
@@ -48910,9 +49638,9 @@ Generate a list of user operations for smart account batching.`,
48910
49638
 
48911
49639
  // src/funcs/tokenAddress.ts
48912
49640
  function tokenAddress(client, request, options) {
48913
- return new APIPromise($do45(client, request, options));
49641
+ return new APIPromise($do49(client, request, options));
48914
49642
  }
48915
- async function $do45(client, request, options) {
49643
+ async function $do49(client, request, options) {
48916
49644
  const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
48917
49645
  if (!parsed.ok) {
48918
49646
  return [parsed, { status: "invalid" }];
@@ -48989,12 +49717,12 @@ var init_tokenAddress = __esm(() => {
48989
49717
  });
48990
49718
 
48991
49719
  // src/mcp-server/tools/tokenAddress.ts
48992
- var args45, tool$tokenAddress;
49720
+ var args49, tool$tokenAddress;
48993
49721
  var init_tokenAddress2 = __esm(() => {
48994
49722
  init_tokenAddress();
48995
49723
  init_operations();
48996
49724
  init_tools();
48997
- args45 = {
49725
+ args49 = {
48998
49726
  request: TokenAddressRequest$inboundSchema
48999
49727
  };
49000
49728
  tool$tokenAddress = {
@@ -49002,9 +49730,9 @@ var init_tokenAddress2 = __esm(() => {
49002
49730
  description: `Token Address
49003
49731
 
49004
49732
  This endpoint retrieves the address for a token supported by us.`,
49005
- args: args45,
49006
- tool: async (client, args46, ctx) => {
49007
- const [result, apiCall] = await tokenAddress(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49733
+ args: args49,
49734
+ tool: async (client, args50, ctx) => {
49735
+ const [result, apiCall] = await tokenAddress(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49008
49736
  if (!result.ok) {
49009
49737
  return {
49010
49738
  content: [{ type: "text", text: result.error.message }],
@@ -49019,9 +49747,9 @@ This endpoint retrieves the address for a token supported by us.`,
49019
49747
 
49020
49748
  // src/funcs/tokenBalance.ts
49021
49749
  function tokenBalance(client, request, options) {
49022
- return new APIPromise($do46(client, request, options));
49750
+ return new APIPromise($do50(client, request, options));
49023
49751
  }
49024
- async function $do46(client, request, options) {
49752
+ async function $do50(client, request, options) {
49025
49753
  const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
49026
49754
  if (!parsed.ok) {
49027
49755
  return [parsed, { status: "invalid" }];
@@ -49099,12 +49827,12 @@ var init_tokenBalance = __esm(() => {
49099
49827
  });
49100
49828
 
49101
49829
  // src/mcp-server/tools/tokenBalance.ts
49102
- var args46, tool$tokenBalance;
49830
+ var args50, tool$tokenBalance;
49103
49831
  var init_tokenBalance2 = __esm(() => {
49104
49832
  init_tokenBalance();
49105
49833
  init_operations();
49106
49834
  init_tools();
49107
- args46 = {
49835
+ args50 = {
49108
49836
  request: TokenBalanceRequest$inboundSchema
49109
49837
  };
49110
49838
  tool$tokenBalance = {
@@ -49112,9 +49840,9 @@ var init_tokenBalance2 = __esm(() => {
49112
49840
  description: `Token Balance
49113
49841
 
49114
49842
  Returns the balance of a specific ERC20 token for a given user address.`,
49115
- args: args46,
49116
- tool: async (client, args47, ctx) => {
49117
- const [result, apiCall] = await tokenBalance(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49843
+ args: args50,
49844
+ tool: async (client, args51, ctx) => {
49845
+ const [result, apiCall] = await tokenBalance(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49118
49846
  if (!result.ok) {
49119
49847
  return {
49120
49848
  content: [{ type: "text", text: result.error.message }],
@@ -49129,9 +49857,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
49129
49857
 
49130
49858
  // src/funcs/tokenPrice.ts
49131
49859
  function tokenPrice(client, request, options) {
49132
- return new APIPromise($do47(client, request, options));
49860
+ return new APIPromise($do51(client, request, options));
49133
49861
  }
49134
- async function $do47(client, request, options) {
49862
+ async function $do51(client, request, options) {
49135
49863
  const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
49136
49864
  if (!parsed.ok) {
49137
49865
  return [parsed, { status: "invalid" }];
@@ -49207,12 +49935,12 @@ var init_tokenPrice = __esm(() => {
49207
49935
  });
49208
49936
 
49209
49937
  // src/mcp-server/tools/tokenPrice.ts
49210
- var args47, tool$tokenPrice;
49938
+ var args51, tool$tokenPrice;
49211
49939
  var init_tokenPrice2 = __esm(() => {
49212
49940
  init_tokenPrice();
49213
49941
  init_operations();
49214
49942
  init_tools();
49215
- args47 = {
49943
+ args51 = {
49216
49944
  request: TokenPriceRequest$inboundSchema
49217
49945
  };
49218
49946
  tool$tokenPrice = {
@@ -49224,9 +49952,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
49224
49952
  Chainlink is a decentralized oracle that aggregates price data from off-chain
49225
49953
  sources. This ensures the price is tamper-resistant but the price might be stale
49226
49954
  with the update frequency of the oracle.`,
49227
- args: args47,
49228
- tool: async (client, args48, ctx) => {
49229
- const [result, apiCall] = await tokenPrice(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49955
+ args: args51,
49956
+ tool: async (client, args52, ctx) => {
49957
+ const [result, apiCall] = await tokenPrice(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49230
49958
  if (!result.ok) {
49231
49959
  return {
49232
49960
  content: [{ type: "text", text: result.error.message }],
@@ -49241,9 +49969,9 @@ with the update frequency of the oracle.`,
49241
49969
 
49242
49970
  // src/funcs/tokenTransfer.ts
49243
49971
  function tokenTransfer(client, request, options) {
49244
- return new APIPromise($do48(client, request, options));
49972
+ return new APIPromise($do52(client, request, options));
49245
49973
  }
49246
- async function $do48(client, request, options) {
49974
+ async function $do52(client, request, options) {
49247
49975
  const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
49248
49976
  if (!parsed.ok) {
49249
49977
  return [parsed, { status: "invalid" }];
@@ -49314,12 +50042,12 @@ var init_tokenTransfer = __esm(() => {
49314
50042
  });
49315
50043
 
49316
50044
  // src/mcp-server/tools/tokenTransfer.ts
49317
- var args48, tool$tokenTransfer;
50045
+ var args52, tool$tokenTransfer;
49318
50046
  var init_tokenTransfer2 = __esm(() => {
49319
50047
  init_tokenTransfer();
49320
50048
  init_components();
49321
50049
  init_tools();
49322
- args48 = {
50050
+ args52 = {
49323
50051
  request: TokenTransferRequest$inboundSchema
49324
50052
  };
49325
50053
  tool$tokenTransfer = {
@@ -49327,9 +50055,9 @@ var init_tokenTransfer2 = __esm(() => {
49327
50055
  description: `Transfer ETH or ERC20 Tokens.
49328
50056
 
49329
50057
  Sends native ETH or ERC20 tokens from the sender's address to another address.`,
49330
- args: args48,
49331
- tool: async (client, args49, ctx) => {
49332
- const [result, apiCall] = await tokenTransfer(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50058
+ args: args52,
50059
+ tool: async (client, args53, ctx) => {
50060
+ const [result, apiCall] = await tokenTransfer(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49333
50061
  if (!result.ok) {
49334
50062
  return {
49335
50063
  content: [{ type: "text", text: result.error.message }],
@@ -49344,9 +50072,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
49344
50072
 
49345
50073
  // src/funcs/transactionBatchingAaveLoop.ts
49346
50074
  function transactionBatchingAaveLoop(client, request, options) {
49347
- return new APIPromise($do49(client, request, options));
50075
+ return new APIPromise($do53(client, request, options));
49348
50076
  }
49349
- async function $do49(client, request, options) {
50077
+ async function $do53(client, request, options) {
49350
50078
  const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
49351
50079
  if (!parsed.ok) {
49352
50080
  return [parsed, { status: "invalid" }];
@@ -49417,12 +50145,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
49417
50145
  });
49418
50146
 
49419
50147
  // src/mcp-server/tools/transactionBatchingAaveLoop.ts
49420
- var args49, tool$transactionBatchingAaveLoop;
50148
+ var args53, tool$transactionBatchingAaveLoop;
49421
50149
  var init_transactionBatchingAaveLoop2 = __esm(() => {
49422
50150
  init_transactionBatchingAaveLoop();
49423
50151
  init_components();
49424
50152
  init_tools();
49425
- args49 = {
50153
+ args53 = {
49426
50154
  request: AaveLoopRequest$inboundSchema
49427
50155
  };
49428
50156
  tool$transactionBatchingAaveLoop = {
@@ -49440,9 +50168,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
49440
50168
  - Supplies the swapped tokens
49441
50169
 
49442
50170
  The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
49443
- args: args49,
49444
- tool: async (client, args50, ctx) => {
49445
- const [result, apiCall] = await transactionBatchingAaveLoop(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50171
+ args: args53,
50172
+ tool: async (client, args54, ctx) => {
50173
+ const [result, apiCall] = await transactionBatchingAaveLoop(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49446
50174
  if (!result.ok) {
49447
50175
  return {
49448
50176
  content: [{ type: "text", text: result.error.message }],
@@ -49457,9 +50185,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
49457
50185
 
49458
50186
  // src/funcs/transactionBatchingAuthorization.ts
49459
50187
  function transactionBatchingAuthorization(client, request, options) {
49460
- return new APIPromise($do50(client, request, options));
50188
+ return new APIPromise($do54(client, request, options));
49461
50189
  }
49462
- async function $do50(client, request, options) {
50190
+ async function $do54(client, request, options) {
49463
50191
  const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
49464
50192
  if (!parsed.ok) {
49465
50193
  return [parsed, { status: "invalid" }];
@@ -49530,12 +50258,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
49530
50258
  });
49531
50259
 
49532
50260
  // src/mcp-server/tools/transactionBatchingAuthorization.ts
49533
- var args50, tool$transactionBatchingAuthorization;
50261
+ var args54, tool$transactionBatchingAuthorization;
49534
50262
  var init_transactionBatchingAuthorization2 = __esm(() => {
49535
50263
  init_transactionBatchingAuthorization();
49536
50264
  init_components();
49537
50265
  init_tools();
49538
- args50 = {
50266
+ args54 = {
49539
50267
  request: MulticallAuthorizationRequest$inboundSchema
49540
50268
  };
49541
50269
  tool$transactionBatchingAuthorization = {
@@ -49548,9 +50276,9 @@ This authorization is required to prevent replay attacks and ensure transaction
49548
50276
  ordering when batching multiple actions into a single transaction. The authorization
49549
50277
  includes a nonce and chain ID to guarantee transaction uniqueness and proper network
49550
50278
  targeting.`,
49551
- args: args50,
49552
- tool: async (client, args51, ctx) => {
49553
- const [result, apiCall] = await transactionBatchingAuthorization(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50279
+ args: args54,
50280
+ tool: async (client, args55, ctx) => {
50281
+ const [result, apiCall] = await transactionBatchingAuthorization(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49554
50282
  if (!result.ok) {
49555
50283
  return {
49556
50284
  content: [{ type: "text", text: result.error.message }],
@@ -49565,9 +50293,9 @@ targeting.`,
49565
50293
 
49566
50294
  // src/funcs/transactionBatchingExecute.ts
49567
50295
  function transactionBatchingExecute(client, request, options) {
49568
- return new APIPromise($do51(client, request, options));
50296
+ return new APIPromise($do55(client, request, options));
49569
50297
  }
49570
- async function $do51(client, request, options) {
50298
+ async function $do55(client, request, options) {
49571
50299
  const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
49572
50300
  if (!parsed.ok) {
49573
50301
  return [parsed, { status: "invalid" }];
@@ -49638,12 +50366,12 @@ var init_transactionBatchingExecute = __esm(() => {
49638
50366
  });
49639
50367
 
49640
50368
  // src/mcp-server/tools/transactionBatchingExecute.ts
49641
- var args51, tool$transactionBatchingExecute;
50369
+ var args55, tool$transactionBatchingExecute;
49642
50370
  var init_transactionBatchingExecute2 = __esm(() => {
49643
50371
  init_transactionBatchingExecute();
49644
50372
  init_components();
49645
50373
  init_tools();
49646
- args51 = {
50374
+ args55 = {
49647
50375
  request: MulticallExecuteRequest$inboundSchema
49648
50376
  };
49649
50377
  tool$transactionBatchingExecute = {
@@ -49656,9 +50384,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
49656
50384
  transaction, reducing gas costs and ensuring all operations succeed or fail
49657
50385
  together. The transaction must be authorized using the /authorization endpoint to
49658
50386
  prevent replay attacks.`,
49659
- args: args51,
49660
- tool: async (client, args52, ctx) => {
49661
- const [result, apiCall] = await transactionBatchingExecute(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50387
+ args: args55,
50388
+ tool: async (client, args56, ctx) => {
50389
+ const [result, apiCall] = await transactionBatchingExecute(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49662
50390
  if (!result.ok) {
49663
50391
  return {
49664
50392
  content: [{ type: "text", text: result.error.message }],
@@ -49673,9 +50401,9 @@ prevent replay attacks.`,
49673
50401
 
49674
50402
  // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
49675
50403
  function uniswapV3LiquidityProvisionIncrease(client, request, options) {
49676
- return new APIPromise($do52(client, request, options));
50404
+ return new APIPromise($do56(client, request, options));
49677
50405
  }
49678
- async function $do52(client, request, options) {
50406
+ async function $do56(client, request, options) {
49679
50407
  const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
49680
50408
  if (!parsed.ok) {
49681
50409
  return [parsed, { status: "invalid" }];
@@ -49746,12 +50474,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
49746
50474
  });
49747
50475
 
49748
50476
  // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
49749
- var args52, tool$uniswapV3LiquidityProvisionIncrease;
50477
+ var args56, tool$uniswapV3LiquidityProvisionIncrease;
49750
50478
  var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
49751
50479
  init_uniswapV3LiquidityProvisionIncrease();
49752
50480
  init_components();
49753
50481
  init_tools();
49754
- args52 = {
50482
+ args56 = {
49755
50483
  request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
49756
50484
  };
49757
50485
  tool$uniswapV3LiquidityProvisionIncrease = {
@@ -49767,9 +50495,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
49767
50495
  within the pool. The endpoint requires details such as the token pair, additional
49768
50496
  amount to be added, and any other parameters necessary for the liquidity increase
49769
50497
  process.`,
49770
- args: args52,
49771
- tool: async (client, args53, ctx) => {
49772
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50498
+ args: args56,
50499
+ tool: async (client, args57, ctx) => {
50500
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49773
50501
  if (!result.ok) {
49774
50502
  return {
49775
50503
  content: [{ type: "text", text: result.error.message }],
@@ -49784,9 +50512,9 @@ process.`,
49784
50512
 
49785
50513
  // src/funcs/uniswapV3LiquidityProvisionInRange.ts
49786
50514
  function uniswapV3LiquidityProvisionInRange(client, request, options) {
49787
- return new APIPromise($do53(client, request, options));
50515
+ return new APIPromise($do57(client, request, options));
49788
50516
  }
49789
- async function $do53(client, request, options) {
50517
+ async function $do57(client, request, options) {
49790
50518
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
49791
50519
  if (!parsed.ok) {
49792
50520
  return [parsed, { status: "invalid" }];
@@ -49863,12 +50591,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
49863
50591
  });
49864
50592
 
49865
50593
  // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
49866
- var args53, tool$uniswapV3LiquidityProvisionInRange;
50594
+ var args57, tool$uniswapV3LiquidityProvisionInRange;
49867
50595
  var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
49868
50596
  init_uniswapV3LiquidityProvisionInRange();
49869
50597
  init_operations();
49870
50598
  init_tools();
49871
- args53 = {
50599
+ args57 = {
49872
50600
  request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
49873
50601
  };
49874
50602
  tool$uniswapV3LiquidityProvisionInRange = {
@@ -49883,9 +50611,9 @@ position is currently within the tick range where trading occurs. this informati
49883
50611
  is essential for users to monitor the status of their lp positions and ensure that
49884
50612
  they are actively participating in the trading activities within the liquidity pool
49885
50613
  and earning trading fees.`,
49886
- args: args53,
49887
- tool: async (client, args54, ctx) => {
49888
- const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50614
+ args: args57,
50615
+ tool: async (client, args58, ctx) => {
50616
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49889
50617
  if (!result.ok) {
49890
50618
  return {
49891
50619
  content: [{ type: "text", text: result.error.message }],
@@ -49900,9 +50628,9 @@ and earning trading fees.`,
49900
50628
 
49901
50629
  // src/funcs/uniswapV3LiquidityProvisionMint.ts
49902
50630
  function uniswapV3LiquidityProvisionMint(client, request, options) {
49903
- return new APIPromise($do54(client, request, options));
50631
+ return new APIPromise($do58(client, request, options));
49904
50632
  }
49905
- async function $do54(client, request, options) {
50633
+ async function $do58(client, request, options) {
49906
50634
  const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
49907
50635
  if (!parsed.ok) {
49908
50636
  return [parsed, { status: "invalid" }];
@@ -49973,12 +50701,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
49973
50701
  });
49974
50702
 
49975
50703
  // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
49976
- var args54, tool$uniswapV3LiquidityProvisionMint;
50704
+ var args58, tool$uniswapV3LiquidityProvisionMint;
49977
50705
  var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
49978
50706
  init_uniswapV3LiquidityProvisionMint();
49979
50707
  init_components();
49980
50708
  init_tools();
49981
- args54 = {
50709
+ args58 = {
49982
50710
  request: UniswapMintLiquidityProvisionRequest$inboundSchema
49983
50711
  };
49984
50712
  tool$uniswapV3LiquidityProvisionMint = {
@@ -49994,9 +50722,9 @@ This operation is essential for users looking to participate in liquidity provis
49994
50722
  enabling them to earn fees from trades that occur within the pool. The endpoint
49995
50723
  requires details such as the token pair, amount, and any additional parameters
49996
50724
  needed for the minting process.`,
49997
- args: args54,
49998
- tool: async (client, args55, ctx) => {
49999
- const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50725
+ args: args58,
50726
+ tool: async (client, args59, ctx) => {
50727
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50000
50728
  if (!result.ok) {
50001
50729
  return {
50002
50730
  content: [{ type: "text", text: result.error.message }],
@@ -50011,9 +50739,9 @@ needed for the minting process.`,
50011
50739
 
50012
50740
  // src/funcs/uniswapV3LiquidityProvisionPositions.ts
50013
50741
  function uniswapV3LiquidityProvisionPositions(client, request, options) {
50014
- return new APIPromise($do55(client, request, options));
50742
+ return new APIPromise($do59(client, request, options));
50015
50743
  }
50016
- async function $do55(client, request, options) {
50744
+ async function $do59(client, request, options) {
50017
50745
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
50018
50746
  if (!parsed.ok) {
50019
50747
  return [parsed, { status: "invalid" }];
@@ -50090,12 +50818,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
50090
50818
  });
50091
50819
 
50092
50820
  // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
50093
- var args55, tool$uniswapV3LiquidityProvisionPositions;
50821
+ var args59, tool$uniswapV3LiquidityProvisionPositions;
50094
50822
  var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
50095
50823
  init_uniswapV3LiquidityProvisionPositions();
50096
50824
  init_operations();
50097
50825
  init_tools();
50098
- args55 = {
50826
+ args59 = {
50099
50827
  request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
50100
50828
  };
50101
50829
  tool$uniswapV3LiquidityProvisionPositions = {
@@ -50109,9 +50837,9 @@ Users can query this endpoint to obtain detailed information about their LP
50109
50837
  positions, including the total number of positions and relevant metadata. This
50110
50838
  information is crucial for users to manage and analyze their liquidity provision
50111
50839
  activities effectively.`,
50112
- args: args55,
50113
- tool: async (client, args56, ctx) => {
50114
- const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50840
+ args: args59,
50841
+ tool: async (client, args60, ctx) => {
50842
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50115
50843
  if (!result.ok) {
50116
50844
  return {
50117
50845
  content: [{ type: "text", text: result.error.message }],
@@ -50126,9 +50854,9 @@ activities effectively.`,
50126
50854
 
50127
50855
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
50128
50856
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
50129
- return new APIPromise($do56(client, request, options));
50857
+ return new APIPromise($do60(client, request, options));
50130
50858
  }
50131
- async function $do56(client, request, options) {
50859
+ async function $do60(client, request, options) {
50132
50860
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
50133
50861
  if (!parsed.ok) {
50134
50862
  return [parsed, { status: "invalid" }];
@@ -50199,12 +50927,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
50199
50927
  });
50200
50928
 
50201
50929
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
50202
- var args56, tool$uniswapV3LiquidityProvisionWithdraw;
50930
+ var args60, tool$uniswapV3LiquidityProvisionWithdraw;
50203
50931
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
50204
50932
  init_uniswapV3LiquidityProvisionWithdraw();
50205
50933
  init_components();
50206
50934
  init_tools();
50207
- args56 = {
50935
+ args60 = {
50208
50936
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
50209
50937
  };
50210
50938
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -50221,9 +50949,9 @@ pools or investments. The endpoint requires details such as the token pair, the
50221
50949
  amount to be withdrawn, and any additional parameters needed for the withdrawal
50222
50950
  process. Users should ensure they meet any protocol requirements or conditions
50223
50951
  before initiating a withdrawal to avoid potential issues or penalties.`,
50224
- args: args56,
50225
- tool: async (client, args57, ctx) => {
50226
- const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50952
+ args: args60,
50953
+ tool: async (client, args61, ctx) => {
50954
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50227
50955
  if (!result.ok) {
50228
50956
  return {
50229
50957
  content: [{ type: "text", text: result.error.message }],
@@ -50238,9 +50966,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
50238
50966
 
50239
50967
  // src/funcs/uniswapV3PoolPrice.ts
50240
50968
  function uniswapV3PoolPrice(client, request, options) {
50241
- return new APIPromise($do57(client, request, options));
50969
+ return new APIPromise($do61(client, request, options));
50242
50970
  }
50243
- async function $do57(client, request, options) {
50971
+ async function $do61(client, request, options) {
50244
50972
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
50245
50973
  if (!parsed.ok) {
50246
50974
  return [parsed, { status: "invalid" }];
@@ -50319,12 +51047,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
50319
51047
  });
50320
51048
 
50321
51049
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
50322
- var args57, tool$uniswapV3PoolPrice;
51050
+ var args61, tool$uniswapV3PoolPrice;
50323
51051
  var init_uniswapV3PoolPrice2 = __esm(() => {
50324
51052
  init_uniswapV3PoolPrice();
50325
51053
  init_operations();
50326
51054
  init_tools();
50327
- args57 = {
51055
+ args61 = {
50328
51056
  request: UniswapPoolPriceRequest$inboundSchema
50329
51057
  };
50330
51058
  tool$uniswapV3PoolPrice = {
@@ -50334,9 +51062,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
50334
51062
  This endpoint calculates the price of a token in a Uniswap pool.
50335
51063
 
50336
51064
  The price is calculated based on the current pool state and the specified fee tier.`,
50337
- args: args57,
50338
- tool: async (client, args58, ctx) => {
50339
- const [result, apiCall] = await uniswapV3PoolPrice(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51065
+ args: args61,
51066
+ tool: async (client, args62, ctx) => {
51067
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50340
51068
  if (!result.ok) {
50341
51069
  return {
50342
51070
  content: [{ type: "text", text: result.error.message }],
@@ -50351,9 +51079,9 @@ The price is calculated based on the current pool state and the specified fee ti
50351
51079
 
50352
51080
  // src/funcs/uniswapV3QuoteBuyExactly.ts
50353
51081
  function uniswapV3QuoteBuyExactly(client, request, options) {
50354
- return new APIPromise($do58(client, request, options));
51082
+ return new APIPromise($do62(client, request, options));
50355
51083
  }
50356
- async function $do58(client, request, options) {
51084
+ async function $do62(client, request, options) {
50357
51085
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
50358
51086
  if (!parsed.ok) {
50359
51087
  return [parsed, { status: "invalid" }];
@@ -50433,12 +51161,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
50433
51161
  });
50434
51162
 
50435
51163
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
50436
- var args58, tool$uniswapV3QuoteBuyExactly;
51164
+ var args62, tool$uniswapV3QuoteBuyExactly;
50437
51165
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
50438
51166
  init_uniswapV3QuoteBuyExactly();
50439
51167
  init_operations();
50440
51168
  init_tools();
50441
- args58 = {
51169
+ args62 = {
50442
51170
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
50443
51171
  };
50444
51172
  tool$uniswapV3QuoteBuyExactly = {
@@ -50450,9 +51178,9 @@ specified amount of output tokens from a Uniswap pool.
50450
51178
 
50451
51179
  It also provides the resulting price after the transaction. The calculation takes
50452
51180
  into account the current pool state and the specified fee tier.`,
50453
- args: args58,
50454
- tool: async (client, args59, ctx) => {
50455
- const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51181
+ args: args62,
51182
+ tool: async (client, args63, ctx) => {
51183
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50456
51184
  if (!result.ok) {
50457
51185
  return {
50458
51186
  content: [{ type: "text", text: result.error.message }],
@@ -50467,9 +51195,9 @@ into account the current pool state and the specified fee tier.`,
50467
51195
 
50468
51196
  // src/funcs/uniswapV3QuoteSellExactly.ts
50469
51197
  function uniswapV3QuoteSellExactly(client, request, options) {
50470
- return new APIPromise($do59(client, request, options));
51198
+ return new APIPromise($do63(client, request, options));
50471
51199
  }
50472
- async function $do59(client, request, options) {
51200
+ async function $do63(client, request, options) {
50473
51201
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
50474
51202
  if (!parsed.ok) {
50475
51203
  return [parsed, { status: "invalid" }];
@@ -50549,12 +51277,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
50549
51277
  });
50550
51278
 
50551
51279
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
50552
- var args59, tool$uniswapV3QuoteSellExactly;
51280
+ var args63, tool$uniswapV3QuoteSellExactly;
50553
51281
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
50554
51282
  init_uniswapV3QuoteSellExactly();
50555
51283
  init_operations();
50556
51284
  init_tools();
50557
- args59 = {
51285
+ args63 = {
50558
51286
  request: UniswapQuoteSellExactlyRequest$inboundSchema
50559
51287
  };
50560
51288
  tool$uniswapV3QuoteSellExactly = {
@@ -50566,9 +51294,9 @@ specified amount of output tokens from a Uniswap pool.
50566
51294
 
50567
51295
  It also provides the resulting price after the transaction. The calculation takes
50568
51296
  into account the current pool state and the specified fee tier.`,
50569
- args: args59,
50570
- tool: async (client, args60, ctx) => {
50571
- const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51297
+ args: args63,
51298
+ tool: async (client, args64, ctx) => {
51299
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50572
51300
  if (!result.ok) {
50573
51301
  return {
50574
51302
  content: [{ type: "text", text: result.error.message }],
@@ -50583,9 +51311,9 @@ into account the current pool state and the specified fee tier.`,
50583
51311
 
50584
51312
  // src/funcs/uniswapV3SwapBuyExactly.ts
50585
51313
  function uniswapV3SwapBuyExactly(client, request, options) {
50586
- return new APIPromise($do60(client, request, options));
51314
+ return new APIPromise($do64(client, request, options));
50587
51315
  }
50588
- async function $do60(client, request, options) {
51316
+ async function $do64(client, request, options) {
50589
51317
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
50590
51318
  if (!parsed.ok) {
50591
51319
  return [parsed, { status: "invalid" }];
@@ -50656,12 +51384,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
50656
51384
  });
50657
51385
 
50658
51386
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
50659
- var args60, tool$uniswapV3SwapBuyExactly;
51387
+ var args64, tool$uniswapV3SwapBuyExactly;
50660
51388
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
50661
51389
  init_uniswapV3SwapBuyExactly();
50662
51390
  init_components();
50663
51391
  init_tools();
50664
- args60 = {
51392
+ args64 = {
50665
51393
  request: UniswapBuyExactlyRequest$inboundSchema
50666
51394
  };
50667
51395
  tool$uniswapV3SwapBuyExactly = {
@@ -50675,9 +51403,9 @@ The transaction is executed on the specified blockchain network, and the user mu
50675
51403
  provide the necessary transaction details, including the token to buy, the token to
50676
51404
  pay with, and the exact amount to receive. If the token being paid with is WETH and
50677
51405
  needs to be wrapped, the appropriate amount will be wrapped automatically.`,
50678
- args: args60,
50679
- tool: async (client, args61, ctx) => {
50680
- const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51406
+ args: args64,
51407
+ tool: async (client, args65, ctx) => {
51408
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50681
51409
  if (!result.ok) {
50682
51410
  return {
50683
51411
  content: [{ type: "text", text: result.error.message }],
@@ -50692,9 +51420,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
50692
51420
 
50693
51421
  // src/funcs/uniswapV3SwapSellExactly.ts
50694
51422
  function uniswapV3SwapSellExactly(client, request, options) {
50695
- return new APIPromise($do61(client, request, options));
51423
+ return new APIPromise($do65(client, request, options));
50696
51424
  }
50697
- async function $do61(client, request, options) {
51425
+ async function $do65(client, request, options) {
50698
51426
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
50699
51427
  if (!parsed.ok) {
50700
51428
  return [parsed, { status: "invalid" }];
@@ -50765,12 +51493,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
50765
51493
  });
50766
51494
 
50767
51495
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
50768
- var args61, tool$uniswapV3SwapSellExactly;
51496
+ var args65, tool$uniswapV3SwapSellExactly;
50769
51497
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
50770
51498
  init_uniswapV3SwapSellExactly();
50771
51499
  init_components();
50772
51500
  init_tools();
50773
- args61 = {
51501
+ args65 = {
50774
51502
  request: UniswapSellExactlyRequest$inboundSchema
50775
51503
  };
50776
51504
  tool$uniswapV3SwapSellExactly = {
@@ -50784,9 +51512,9 @@ The transaction is executed on the specified blockchain network, and the user mu
50784
51512
  provide the necessary transaction details, including the token to sell, the token to
50785
51513
  receive, and the amount to sell. If the token being sold is WETH and needs to be
50786
51514
  wrapped, the appropriate amount will be wrapped automatically.`,
50787
- args: args61,
50788
- tool: async (client, args62, ctx) => {
50789
- const [result, apiCall] = await uniswapV3SwapSellExactly(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51515
+ args: args65,
51516
+ tool: async (client, args66, ctx) => {
51517
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50790
51518
  if (!result.ok) {
50791
51519
  return {
50792
51520
  content: [{ type: "text", text: result.error.message }],
@@ -50801,9 +51529,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
50801
51529
 
50802
51530
  // src/funcs/universalAllowance.ts
50803
51531
  function universalAllowance(client, request, options) {
50804
- return new APIPromise($do62(client, request, options));
51532
+ return new APIPromise($do66(client, request, options));
50805
51533
  }
50806
- async function $do62(client, request, options) {
51534
+ async function $do66(client, request, options) {
50807
51535
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
50808
51536
  if (!parsed.ok) {
50809
51537
  return [parsed, { status: "invalid" }];
@@ -50882,12 +51610,12 @@ var init_universalAllowance = __esm(() => {
50882
51610
  });
50883
51611
 
50884
51612
  // src/mcp-server/tools/universalAllowance.ts
50885
- var args62, tool$universalAllowance;
51613
+ var args66, tool$universalAllowance;
50886
51614
  var init_universalAllowance2 = __esm(() => {
50887
51615
  init_universalAllowance();
50888
51616
  init_operations();
50889
51617
  init_tools();
50890
- args62 = {
51618
+ args66 = {
50891
51619
  request: GenericAllowanceRequest$inboundSchema
50892
51620
  };
50893
51621
  tool$universalAllowance = {
@@ -50901,9 +51629,9 @@ tokens on their behalf.
50901
51629
  This is a crucial step before engaging in any transactions or operations within
50902
51630
  these protocols, ensuring that the protocol has the necessary permissions to manage
50903
51631
  the user's tokens securely and efficiently.`,
50904
- args: args62,
50905
- tool: async (client, args63, ctx) => {
50906
- const [result, apiCall] = await universalAllowance(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51632
+ args: args66,
51633
+ tool: async (client, args67, ctx) => {
51634
+ const [result, apiCall] = await universalAllowance(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50907
51635
  if (!result.ok) {
50908
51636
  return {
50909
51637
  content: [{ type: "text", text: result.error.message }],
@@ -50918,9 +51646,9 @@ the user's tokens securely and efficiently.`,
50918
51646
 
50919
51647
  // src/funcs/universalAllowanceSet.ts
50920
51648
  function universalAllowanceSet(client, request, options) {
50921
- return new APIPromise($do63(client, request, options));
51649
+ return new APIPromise($do67(client, request, options));
50922
51650
  }
50923
- async function $do63(client, request, options) {
51651
+ async function $do67(client, request, options) {
50924
51652
  const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
50925
51653
  if (!parsed.ok) {
50926
51654
  return [parsed, { status: "invalid" }];
@@ -50991,12 +51719,12 @@ var init_universalAllowanceSet = __esm(() => {
50991
51719
  });
50992
51720
 
50993
51721
  // src/mcp-server/tools/universalAllowanceSet.ts
50994
- var args63, tool$universalAllowanceSet;
51722
+ var args67, tool$universalAllowanceSet;
50995
51723
  var init_universalAllowanceSet2 = __esm(() => {
50996
51724
  init_universalAllowanceSet();
50997
51725
  init_components();
50998
51726
  init_tools();
50999
- args63 = {
51727
+ args67 = {
51000
51728
  request: IncreaseAllowanceRequest$inboundSchema
51001
51729
  };
51002
51730
  tool$universalAllowanceSet = {
@@ -51010,9 +51738,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
51010
51738
  This operation is crucial for ensuring that the protocol can manage the user's
51011
51739
  tokens securely and efficiently, enabling seamless transactions and operations
51012
51740
  within the DeFi ecosystem.`,
51013
- args: args63,
51014
- tool: async (client, args64, ctx) => {
51015
- const [result, apiCall] = await universalAllowanceSet(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51741
+ args: args67,
51742
+ tool: async (client, args68, ctx) => {
51743
+ const [result, apiCall] = await universalAllowanceSet(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51016
51744
  if (!result.ok) {
51017
51745
  return {
51018
51746
  content: [{ type: "text", text: result.error.message }],
@@ -51027,9 +51755,9 @@ within the DeFi ecosystem.`,
51027
51755
 
51028
51756
  // src/funcs/universalEns.ts
51029
51757
  function universalEns(client, request, options) {
51030
- return new APIPromise($do64(client, request, options));
51758
+ return new APIPromise($do68(client, request, options));
51031
51759
  }
51032
- async function $do64(client, request, options) {
51760
+ async function $do68(client, request, options) {
51033
51761
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
51034
51762
  if (!parsed.ok) {
51035
51763
  return [parsed, { status: "invalid" }];
@@ -51106,12 +51834,12 @@ var init_universalEns = __esm(() => {
51106
51834
  });
51107
51835
 
51108
51836
  // src/mcp-server/tools/universalEns.ts
51109
- var args64, tool$universalEns;
51837
+ var args68, tool$universalEns;
51110
51838
  var init_universalEns2 = __esm(() => {
51111
51839
  init_universalEns();
51112
51840
  init_operations();
51113
51841
  init_tools();
51114
- args64 = {
51842
+ args68 = {
51115
51843
  request: GenericEnsRequest$inboundSchema
51116
51844
  };
51117
51845
  tool$universalEns = {
@@ -51122,9 +51850,9 @@ An ENS name is a string ending in \`.eth\`.
51122
51850
 
51123
51851
  E.g. \`vitalik.eth\`. This endpoint can be used to
51124
51852
  query the actual ethereum wallet address behind the ENS name.`,
51125
- args: args64,
51126
- tool: async (client, args65, ctx) => {
51127
- const [result, apiCall] = await universalEns(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51853
+ args: args68,
51854
+ tool: async (client, args69, ctx) => {
51855
+ const [result, apiCall] = await universalEns(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51128
51856
  if (!result.ok) {
51129
51857
  return {
51130
51858
  content: [{ type: "text", text: result.error.message }],
@@ -51139,9 +51867,9 @@ query the actual ethereum wallet address behind the ENS name.`,
51139
51867
 
51140
51868
  // src/funcs/universalPortfolio.ts
51141
51869
  function universalPortfolio(client, request, options) {
51142
- return new APIPromise($do65(client, request, options));
51870
+ return new APIPromise($do69(client, request, options));
51143
51871
  }
51144
- async function $do65(client, request, options) {
51872
+ async function $do69(client, request, options) {
51145
51873
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
51146
51874
  if (!parsed.ok) {
51147
51875
  return [parsed, { status: "invalid" }];
@@ -51218,12 +51946,12 @@ var init_universalPortfolio = __esm(() => {
51218
51946
  });
51219
51947
 
51220
51948
  // src/mcp-server/tools/universalPortfolio.ts
51221
- var args65, tool$universalPortfolio;
51949
+ var args69, tool$universalPortfolio;
51222
51950
  var init_universalPortfolio2 = __esm(() => {
51223
51951
  init_universalPortfolio();
51224
51952
  init_operations();
51225
51953
  init_tools();
51226
- args65 = {
51954
+ args69 = {
51227
51955
  request: GenericPortfolioRequest$inboundSchema
51228
51956
  };
51229
51957
  tool$universalPortfolio = {
@@ -51234,9 +51962,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
51234
51962
 
51235
51963
  This includes the total value of the portfolio in USD and a breakdown of token
51236
51964
  balances, including their respective values and quantities.`,
51237
- args: args65,
51238
- tool: async (client, args66, ctx) => {
51239
- const [result, apiCall] = await universalPortfolio(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51965
+ args: args69,
51966
+ tool: async (client, args70, ctx) => {
51967
+ const [result, apiCall] = await universalPortfolio(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51240
51968
  if (!result.ok) {
51241
51969
  return {
51242
51970
  content: [{ type: "text", text: result.error.message }],
@@ -51251,9 +51979,9 @@ balances, including their respective values and quantities.`,
51251
51979
 
51252
51980
  // src/funcs/universalSupportedTokens.ts
51253
51981
  function universalSupportedTokens(client, request, options) {
51254
- return new APIPromise($do66(client, request, options));
51982
+ return new APIPromise($do70(client, request, options));
51255
51983
  }
51256
- async function $do66(client, request, options) {
51984
+ async function $do70(client, request, options) {
51257
51985
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
51258
51986
  if (!parsed.ok) {
51259
51987
  return [parsed, { status: "invalid" }];
@@ -51329,12 +52057,12 @@ var init_universalSupportedTokens = __esm(() => {
51329
52057
  });
51330
52058
 
51331
52059
  // src/mcp-server/tools/universalSupportedTokens.ts
51332
- var args66, tool$universalSupportedTokens;
52060
+ var args70, tool$universalSupportedTokens;
51333
52061
  var init_universalSupportedTokens2 = __esm(() => {
51334
52062
  init_universalSupportedTokens();
51335
52063
  init_operations();
51336
52064
  init_tools();
51337
- args66 = {
52065
+ args70 = {
51338
52066
  request: GenericSupportedTokensRequest$inboundSchema
51339
52067
  };
51340
52068
  tool$universalSupportedTokens = {
@@ -51342,9 +52070,9 @@ var init_universalSupportedTokens2 = __esm(() => {
51342
52070
  description: `List supported tokens
51343
52071
 
51344
52072
  Get the list of supported tokens on a chain by the Compass API.`,
51345
- args: args66,
51346
- tool: async (client, args67, ctx) => {
51347
- const [result, apiCall] = await universalSupportedTokens(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52073
+ args: args70,
52074
+ tool: async (client, args71, ctx) => {
52075
+ const [result, apiCall] = await universalSupportedTokens(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51348
52076
  if (!result.ok) {
51349
52077
  return {
51350
52078
  content: [{ type: "text", text: result.error.message }],
@@ -51359,9 +52087,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
51359
52087
 
51360
52088
  // src/funcs/universalUnwrapWeth.ts
51361
52089
  function universalUnwrapWeth(client, request, options) {
51362
- return new APIPromise($do67(client, request, options));
52090
+ return new APIPromise($do71(client, request, options));
51363
52091
  }
51364
- async function $do67(client, request, options) {
52092
+ async function $do71(client, request, options) {
51365
52093
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
51366
52094
  if (!parsed.ok) {
51367
52095
  return [parsed, { status: "invalid" }];
@@ -51432,12 +52160,12 @@ var init_universalUnwrapWeth = __esm(() => {
51432
52160
  });
51433
52161
 
51434
52162
  // src/mcp-server/tools/universalUnwrapWeth.ts
51435
- var args67, tool$universalUnwrapWeth;
52163
+ var args71, tool$universalUnwrapWeth;
51436
52164
  var init_universalUnwrapWeth2 = __esm(() => {
51437
52165
  init_universalUnwrapWeth();
51438
52166
  init_components();
51439
52167
  init_tools();
51440
- args67 = {
52168
+ args71 = {
51441
52169
  request: UnwrapWethRequest$inboundSchema
51442
52170
  };
51443
52171
  tool$universalUnwrapWeth = {
@@ -51446,9 +52174,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
51446
52174
 
51447
52175
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
51448
52176
  can be used for gas and other native purposes.`,
51449
- args: args67,
51450
- tool: async (client, args68, ctx) => {
51451
- const [result, apiCall] = await universalUnwrapWeth(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52177
+ args: args71,
52178
+ tool: async (client, args72, ctx) => {
52179
+ const [result, apiCall] = await universalUnwrapWeth(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51452
52180
  if (!result.ok) {
51453
52181
  return {
51454
52182
  content: [{ type: "text", text: result.error.message }],
@@ -51463,9 +52191,9 @@ can be used for gas and other native purposes.`,
51463
52191
 
51464
52192
  // src/funcs/universalVisualizePortfolio.ts
51465
52193
  function universalVisualizePortfolio(client, request, options) {
51466
- return new APIPromise($do68(client, request, options));
52194
+ return new APIPromise($do72(client, request, options));
51467
52195
  }
51468
- async function $do68(client, request, options) {
52196
+ async function $do72(client, request, options) {
51469
52197
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
51470
52198
  if (!parsed.ok) {
51471
52199
  return [parsed, { status: "invalid" }];
@@ -51542,12 +52270,12 @@ var init_universalVisualizePortfolio = __esm(() => {
51542
52270
  });
51543
52271
 
51544
52272
  // src/mcp-server/tools/universalVisualizePortfolio.ts
51545
- var args68, tool$universalVisualizePortfolio;
52273
+ var args72, tool$universalVisualizePortfolio;
51546
52274
  var init_universalVisualizePortfolio2 = __esm(() => {
51547
52275
  init_universalVisualizePortfolio();
51548
52276
  init_operations();
51549
52277
  init_tools();
51550
- args68 = {
52278
+ args72 = {
51551
52279
  request: GenericVisualizePortfolioRequest$inboundSchema
51552
52280
  };
51553
52281
  tool$universalVisualizePortfolio = {
@@ -51559,9 +52287,9 @@ Generate a visual representation of the token portfolio for a wallet address.
51559
52287
  The response is an SVG image of a pie chart depicting the relative distribution of
51560
52288
  tokens held, colored and labeled with token symbols, percentages and token values in
51561
52289
  USD.`,
51562
- args: args68,
51563
- tool: async (client, args69, ctx) => {
51564
- const [result, apiCall] = await universalVisualizePortfolio(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52290
+ args: args72,
52291
+ tool: async (client, args73, ctx) => {
52292
+ const [result, apiCall] = await universalVisualizePortfolio(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51565
52293
  if (!result.ok) {
51566
52294
  return {
51567
52295
  content: [{ type: "text", text: result.error.message }],
@@ -51576,9 +52304,9 @@ USD.`,
51576
52304
 
51577
52305
  // src/funcs/universalWrapEth.ts
51578
52306
  function universalWrapEth(client, request, options) {
51579
- return new APIPromise($do69(client, request, options));
52307
+ return new APIPromise($do73(client, request, options));
51580
52308
  }
51581
- async function $do69(client, request, options) {
52309
+ async function $do73(client, request, options) {
51582
52310
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
51583
52311
  if (!parsed.ok) {
51584
52312
  return [parsed, { status: "invalid" }];
@@ -51649,12 +52377,12 @@ var init_universalWrapEth = __esm(() => {
51649
52377
  });
51650
52378
 
51651
52379
  // src/mcp-server/tools/universalWrapEth.ts
51652
- var args69, tool$universalWrapEth;
52380
+ var args73, tool$universalWrapEth;
51653
52381
  var init_universalWrapEth2 = __esm(() => {
51654
52382
  init_universalWrapEth();
51655
52383
  init_components();
51656
52384
  init_tools();
51657
- args69 = {
52385
+ args73 = {
51658
52386
  request: WrapEthRequest$inboundSchema
51659
52387
  };
51660
52388
  tool$universalWrapEth = {
@@ -51663,9 +52391,9 @@ var init_universalWrapEth2 = __esm(() => {
51663
52391
 
51664
52392
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
51665
52393
  it to be traded on DeFi protocols.`,
51666
- args: args69,
51667
- tool: async (client, args70, ctx) => {
51668
- const [result, apiCall] = await universalWrapEth(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52394
+ args: args73,
52395
+ tool: async (client, args74, ctx) => {
52396
+ const [result, apiCall] = await universalWrapEth(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51669
52397
  if (!result.ok) {
51670
52398
  return {
51671
52399
  content: [{ type: "text", text: result.error.message }],
@@ -51682,7 +52410,7 @@ it to be traded on DeFi protocols.`,
51682
52410
  function createMCPServer(deps) {
51683
52411
  const server = new McpServer({
51684
52412
  name: "CompassApiSDK",
51685
- version: "0.3.0"
52413
+ version: "0.3.2"
51686
52414
  });
51687
52415
  const client = new CompassApiSDKCore({
51688
52416
  apiKeyAuth: deps.apiKeyAuth,
@@ -51761,6 +52489,10 @@ function createMCPServer(deps) {
51761
52489
  tool(tool$pendlePositions);
51762
52490
  tool(tool$pendleMarkets);
51763
52491
  tool(tool$pendleMarket);
52492
+ tool(tool$pendleBuyPt);
52493
+ tool(tool$pendleSellPt);
52494
+ tool(tool$pendleBuyYt);
52495
+ tool(tool$pendleSellYt);
51764
52496
  tool(tool$transactionBatchingAuthorization);
51765
52497
  tool(tool$transactionBatchingExecute);
51766
52498
  tool(tool$transactionBatchingAaveLoop);
@@ -51806,10 +52538,14 @@ var init_server2 = __esm(() => {
51806
52538
  init_morphoVaults2();
51807
52539
  init_morphoWithdraw2();
51808
52540
  init_morphoWithdrawCollateral2();
52541
+ init_pendleBuyPt2();
52542
+ init_pendleBuyYt2();
51809
52543
  init_pendleMarket2();
51810
52544
  init_pendleMarkets2();
51811
52545
  init_pendlePosition2();
51812
52546
  init_pendlePositions2();
52547
+ init_pendleSellPt2();
52548
+ init_pendleSellYt2();
51813
52549
  init_skyBuy2();
51814
52550
  init_skyDeposit2();
51815
52551
  init_skyPosition2();
@@ -53031,7 +53767,7 @@ var routes = an({
53031
53767
  var app = He(routes, {
53032
53768
  name: "mcp",
53033
53769
  versionInfo: {
53034
- currentVersion: "0.3.0"
53770
+ currentVersion: "0.3.2"
53035
53771
  }
53036
53772
  });
53037
53773
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -53039,5 +53775,5 @@ export {
53039
53775
  app
53040
53776
  };
53041
53777
 
53042
- //# debugId=D69703958E100F5564756E2164756E21
53778
+ //# debugId=44CD68CC3E24DCE964756E2164756E21
53043
53779
  //# sourceMappingURL=mcp-server.js.map