@compass-labs/api-sdk 0.0.12 → 0.0.13

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 (244) hide show
  1. package/README.md +13 -0
  2. package/bin/mcp-server.js +1022 -278
  3. package/bin/mcp-server.js.map +29 -13
  4. package/dist/commonjs/funcs/skyBuy.d.ts +19 -0
  5. package/dist/commonjs/funcs/skyBuy.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/skyBuy.js +118 -0
  7. package/dist/commonjs/funcs/skyBuy.js.map +1 -0
  8. package/dist/commonjs/funcs/skyDeposit.d.ts +19 -0
  9. package/dist/commonjs/funcs/skyDeposit.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/skyDeposit.js +118 -0
  11. package/dist/commonjs/funcs/skyDeposit.js.map +1 -0
  12. package/dist/commonjs/funcs/skyPosition.d.ts +18 -0
  13. package/dist/commonjs/funcs/skyPosition.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/skyPosition.js +121 -0
  15. package/dist/commonjs/funcs/skyPosition.js.map +1 -0
  16. package/dist/commonjs/funcs/skySell.d.ts +19 -0
  17. package/dist/commonjs/funcs/skySell.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/skySell.js +118 -0
  19. package/dist/commonjs/funcs/skySell.js.map +1 -0
  20. package/dist/commonjs/funcs/skyWithdraw.d.ts +19 -0
  21. package/dist/commonjs/funcs/skyWithdraw.d.ts.map +1 -0
  22. package/dist/commonjs/funcs/skyWithdraw.js +118 -0
  23. package/dist/commonjs/funcs/skyWithdraw.js.map +1 -0
  24. package/dist/commonjs/lib/config.d.ts +2 -2
  25. package/dist/commonjs/lib/config.js +2 -2
  26. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  27. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  28. package/dist/commonjs/mcp-server/server.js +11 -1
  29. package/dist/commonjs/mcp-server/server.js.map +1 -1
  30. package/dist/commonjs/mcp-server/tools/skyBuy.d.ts +8 -0
  31. package/dist/commonjs/mcp-server/tools/skyBuy.d.ts.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/skyBuy.js +66 -0
  33. package/dist/commonjs/mcp-server/tools/skyBuy.js.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/skyDeposit.d.ts +8 -0
  35. package/dist/commonjs/mcp-server/tools/skyDeposit.d.ts.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/skyDeposit.js +66 -0
  37. package/dist/commonjs/mcp-server/tools/skyDeposit.js.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/skyPosition.d.ts +8 -0
  39. package/dist/commonjs/mcp-server/tools/skyPosition.d.ts.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/skyPosition.js +64 -0
  41. package/dist/commonjs/mcp-server/tools/skyPosition.js.map +1 -0
  42. package/dist/commonjs/mcp-server/tools/skySell.d.ts +8 -0
  43. package/dist/commonjs/mcp-server/tools/skySell.d.ts.map +1 -0
  44. package/dist/commonjs/mcp-server/tools/skySell.js +66 -0
  45. package/dist/commonjs/mcp-server/tools/skySell.js.map +1 -0
  46. package/dist/commonjs/mcp-server/tools/skyWithdraw.d.ts +8 -0
  47. package/dist/commonjs/mcp-server/tools/skyWithdraw.d.ts.map +1 -0
  48. package/dist/commonjs/mcp-server/tools/skyWithdraw.js +66 -0
  49. package/dist/commonjs/mcp-server/tools/skyWithdraw.js.map +1 -0
  50. package/dist/commonjs/models/components/contractname.d.ts +9 -0
  51. package/dist/commonjs/models/components/contractname.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/contractname.js +3 -0
  53. package/dist/commonjs/models/components/contractname.js.map +1 -1
  54. package/dist/commonjs/models/components/increaseallowanceparams.d.ts +9 -0
  55. package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +1 -1
  56. package/dist/commonjs/models/components/increaseallowanceparams.js +3 -0
  57. package/dist/commonjs/models/components/increaseallowanceparams.js.map +1 -1
  58. package/dist/commonjs/models/components/increaseallowancerequest.d.ts +9 -0
  59. package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/increaseallowancerequest.js +3 -0
  61. package/dist/commonjs/models/components/increaseallowancerequest.js.map +1 -1
  62. package/dist/commonjs/models/components/index.d.ts +5 -0
  63. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  64. package/dist/commonjs/models/components/index.js +5 -0
  65. package/dist/commonjs/models/components/index.js.map +1 -1
  66. package/dist/commonjs/models/components/multicallactiontype.d.ts +51 -51
  67. package/dist/commonjs/models/components/multicallactiontype.js +17 -17
  68. package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
  69. package/dist/commonjs/models/components/skybuyrequest.d.ts +100 -0
  70. package/dist/commonjs/models/components/skybuyrequest.d.ts.map +1 -0
  71. package/dist/commonjs/models/components/skybuyrequest.js +130 -0
  72. package/dist/commonjs/models/components/skybuyrequest.js.map +1 -0
  73. package/dist/commonjs/models/components/skycheckpositionresponse.d.ts +34 -0
  74. package/dist/commonjs/models/components/skycheckpositionresponse.d.ts.map +1 -0
  75. package/dist/commonjs/models/components/skycheckpositionresponse.js +80 -0
  76. package/dist/commonjs/models/components/skycheckpositionresponse.js.map +1 -0
  77. package/dist/commonjs/models/components/skydepositrequest.d.ts +68 -0
  78. package/dist/commonjs/models/components/skydepositrequest.d.ts.map +1 -0
  79. package/dist/commonjs/models/components/skydepositrequest.js +98 -0
  80. package/dist/commonjs/models/components/skydepositrequest.js.map +1 -0
  81. package/dist/commonjs/models/components/skysellrequest.d.ts +100 -0
  82. package/dist/commonjs/models/components/skysellrequest.d.ts.map +1 -0
  83. package/dist/commonjs/models/components/skysellrequest.js +130 -0
  84. package/dist/commonjs/models/components/skysellrequest.js.map +1 -0
  85. package/dist/commonjs/models/components/skywithdrawrequest.d.ts +44 -0
  86. package/dist/commonjs/models/components/skywithdrawrequest.d.ts.map +1 -0
  87. package/dist/commonjs/models/components/skywithdrawrequest.js +75 -0
  88. package/dist/commonjs/models/components/skywithdrawrequest.js.map +1 -0
  89. package/dist/commonjs/models/operations/genericallowance.d.ts +9 -0
  90. package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
  91. package/dist/commonjs/models/operations/genericallowance.js +3 -0
  92. package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
  93. package/dist/commonjs/models/operations/index.d.ts +1 -0
  94. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  95. package/dist/commonjs/models/operations/index.js +1 -0
  96. package/dist/commonjs/models/operations/index.js.map +1 -1
  97. package/dist/commonjs/models/operations/skyposition.d.ts +31 -0
  98. package/dist/commonjs/models/operations/skyposition.d.ts.map +1 -0
  99. package/dist/commonjs/models/operations/skyposition.js +80 -0
  100. package/dist/commonjs/models/operations/skyposition.js.map +1 -0
  101. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  102. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  103. package/dist/commonjs/sdk/sdk.js +4 -0
  104. package/dist/commonjs/sdk/sdk.js.map +1 -1
  105. package/dist/commonjs/sdk/sky.d.ts +49 -0
  106. package/dist/commonjs/sdk/sky.d.ts.map +1 -0
  107. package/dist/commonjs/sdk/sky.js +70 -0
  108. package/dist/commonjs/sdk/sky.js.map +1 -0
  109. package/dist/esm/funcs/skyBuy.d.ts +19 -0
  110. package/dist/esm/funcs/skyBuy.d.ts.map +1 -0
  111. package/dist/esm/funcs/skyBuy.js +82 -0
  112. package/dist/esm/funcs/skyBuy.js.map +1 -0
  113. package/dist/esm/funcs/skyDeposit.d.ts +19 -0
  114. package/dist/esm/funcs/skyDeposit.d.ts.map +1 -0
  115. package/dist/esm/funcs/skyDeposit.js +82 -0
  116. package/dist/esm/funcs/skyDeposit.js.map +1 -0
  117. package/dist/esm/funcs/skyPosition.d.ts +18 -0
  118. package/dist/esm/funcs/skyPosition.d.ts.map +1 -0
  119. package/dist/esm/funcs/skyPosition.js +85 -0
  120. package/dist/esm/funcs/skyPosition.js.map +1 -0
  121. package/dist/esm/funcs/skySell.d.ts +19 -0
  122. package/dist/esm/funcs/skySell.d.ts.map +1 -0
  123. package/dist/esm/funcs/skySell.js +82 -0
  124. package/dist/esm/funcs/skySell.js.map +1 -0
  125. package/dist/esm/funcs/skyWithdraw.d.ts +19 -0
  126. package/dist/esm/funcs/skyWithdraw.d.ts.map +1 -0
  127. package/dist/esm/funcs/skyWithdraw.js +82 -0
  128. package/dist/esm/funcs/skyWithdraw.js.map +1 -0
  129. package/dist/esm/lib/config.d.ts +2 -2
  130. package/dist/esm/lib/config.js +2 -2
  131. package/dist/esm/mcp-server/mcp-server.js +1 -1
  132. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  133. package/dist/esm/mcp-server/server.js +11 -1
  134. package/dist/esm/mcp-server/server.js.map +1 -1
  135. package/dist/esm/mcp-server/tools/skyBuy.d.ts +8 -0
  136. package/dist/esm/mcp-server/tools/skyBuy.d.ts.map +1 -0
  137. package/dist/esm/mcp-server/tools/skyBuy.js +30 -0
  138. package/dist/esm/mcp-server/tools/skyBuy.js.map +1 -0
  139. package/dist/esm/mcp-server/tools/skyDeposit.d.ts +8 -0
  140. package/dist/esm/mcp-server/tools/skyDeposit.d.ts.map +1 -0
  141. package/dist/esm/mcp-server/tools/skyDeposit.js +30 -0
  142. package/dist/esm/mcp-server/tools/skyDeposit.js.map +1 -0
  143. package/dist/esm/mcp-server/tools/skyPosition.d.ts +8 -0
  144. package/dist/esm/mcp-server/tools/skyPosition.d.ts.map +1 -0
  145. package/dist/esm/mcp-server/tools/skyPosition.js +28 -0
  146. package/dist/esm/mcp-server/tools/skyPosition.js.map +1 -0
  147. package/dist/esm/mcp-server/tools/skySell.d.ts +8 -0
  148. package/dist/esm/mcp-server/tools/skySell.d.ts.map +1 -0
  149. package/dist/esm/mcp-server/tools/skySell.js +30 -0
  150. package/dist/esm/mcp-server/tools/skySell.js.map +1 -0
  151. package/dist/esm/mcp-server/tools/skyWithdraw.d.ts +8 -0
  152. package/dist/esm/mcp-server/tools/skyWithdraw.d.ts.map +1 -0
  153. package/dist/esm/mcp-server/tools/skyWithdraw.js +30 -0
  154. package/dist/esm/mcp-server/tools/skyWithdraw.js.map +1 -0
  155. package/dist/esm/models/components/contractname.d.ts +9 -0
  156. package/dist/esm/models/components/contractname.d.ts.map +1 -1
  157. package/dist/esm/models/components/contractname.js +3 -0
  158. package/dist/esm/models/components/contractname.js.map +1 -1
  159. package/dist/esm/models/components/increaseallowanceparams.d.ts +9 -0
  160. package/dist/esm/models/components/increaseallowanceparams.d.ts.map +1 -1
  161. package/dist/esm/models/components/increaseallowanceparams.js +3 -0
  162. package/dist/esm/models/components/increaseallowanceparams.js.map +1 -1
  163. package/dist/esm/models/components/increaseallowancerequest.d.ts +9 -0
  164. package/dist/esm/models/components/increaseallowancerequest.d.ts.map +1 -1
  165. package/dist/esm/models/components/increaseallowancerequest.js +3 -0
  166. package/dist/esm/models/components/increaseallowancerequest.js.map +1 -1
  167. package/dist/esm/models/components/index.d.ts +5 -0
  168. package/dist/esm/models/components/index.d.ts.map +1 -1
  169. package/dist/esm/models/components/index.js +5 -0
  170. package/dist/esm/models/components/index.js.map +1 -1
  171. package/dist/esm/models/components/multicallactiontype.d.ts +51 -51
  172. package/dist/esm/models/components/multicallactiontype.js +17 -17
  173. package/dist/esm/models/components/multicallactiontype.js.map +1 -1
  174. package/dist/esm/models/components/skybuyrequest.d.ts +100 -0
  175. package/dist/esm/models/components/skybuyrequest.d.ts.map +1 -0
  176. package/dist/esm/models/components/skybuyrequest.js +90 -0
  177. package/dist/esm/models/components/skybuyrequest.js.map +1 -0
  178. package/dist/esm/models/components/skycheckpositionresponse.d.ts +34 -0
  179. package/dist/esm/models/components/skycheckpositionresponse.d.ts.map +1 -0
  180. package/dist/esm/models/components/skycheckpositionresponse.js +42 -0
  181. package/dist/esm/models/components/skycheckpositionresponse.js.map +1 -0
  182. package/dist/esm/models/components/skydepositrequest.d.ts +68 -0
  183. package/dist/esm/models/components/skydepositrequest.d.ts.map +1 -0
  184. package/dist/esm/models/components/skydepositrequest.js +58 -0
  185. package/dist/esm/models/components/skydepositrequest.js.map +1 -0
  186. package/dist/esm/models/components/skysellrequest.d.ts +100 -0
  187. package/dist/esm/models/components/skysellrequest.d.ts.map +1 -0
  188. package/dist/esm/models/components/skysellrequest.js +90 -0
  189. package/dist/esm/models/components/skysellrequest.js.map +1 -0
  190. package/dist/esm/models/components/skywithdrawrequest.d.ts +44 -0
  191. package/dist/esm/models/components/skywithdrawrequest.d.ts.map +1 -0
  192. package/dist/esm/models/components/skywithdrawrequest.js +37 -0
  193. package/dist/esm/models/components/skywithdrawrequest.js.map +1 -0
  194. package/dist/esm/models/operations/genericallowance.d.ts +9 -0
  195. package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
  196. package/dist/esm/models/operations/genericallowance.js +3 -0
  197. package/dist/esm/models/operations/genericallowance.js.map +1 -1
  198. package/dist/esm/models/operations/index.d.ts +1 -0
  199. package/dist/esm/models/operations/index.d.ts.map +1 -1
  200. package/dist/esm/models/operations/index.js +1 -0
  201. package/dist/esm/models/operations/index.js.map +1 -1
  202. package/dist/esm/models/operations/skyposition.d.ts +31 -0
  203. package/dist/esm/models/operations/skyposition.d.ts.map +1 -0
  204. package/dist/esm/models/operations/skyposition.js +42 -0
  205. package/dist/esm/models/operations/skyposition.js.map +1 -0
  206. package/dist/esm/sdk/sdk.d.ts +3 -0
  207. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  208. package/dist/esm/sdk/sdk.js +4 -0
  209. package/dist/esm/sdk/sdk.js.map +1 -1
  210. package/dist/esm/sdk/sky.d.ts +49 -0
  211. package/dist/esm/sdk/sky.d.ts.map +1 -0
  212. package/dist/esm/sdk/sky.js +66 -0
  213. package/dist/esm/sdk/sky.js.map +1 -0
  214. package/docs/sdks/sky/README.md +417 -0
  215. package/jsr.json +1 -1
  216. package/package.json +1 -1
  217. package/src/funcs/skyBuy.ts +165 -0
  218. package/src/funcs/skyDeposit.ts +165 -0
  219. package/src/funcs/skyPosition.ts +169 -0
  220. package/src/funcs/skySell.ts +165 -0
  221. package/src/funcs/skyWithdraw.ts +165 -0
  222. package/src/lib/config.ts +2 -2
  223. package/src/mcp-server/mcp-server.ts +1 -1
  224. package/src/mcp-server/server.ts +11 -1
  225. package/src/mcp-server/tools/skyBuy.ts +39 -0
  226. package/src/mcp-server/tools/skyDeposit.ts +39 -0
  227. package/src/mcp-server/tools/skyPosition.ts +37 -0
  228. package/src/mcp-server/tools/skySell.ts +39 -0
  229. package/src/mcp-server/tools/skyWithdraw.ts +39 -0
  230. package/src/models/components/contractname.ts +3 -0
  231. package/src/models/components/increaseallowanceparams.ts +3 -0
  232. package/src/models/components/increaseallowancerequest.ts +3 -0
  233. package/src/models/components/index.ts +5 -0
  234. package/src/models/components/multicallactiontype.ts +19 -19
  235. package/src/models/components/skybuyrequest.ts +177 -0
  236. package/src/models/components/skycheckpositionresponse.ts +82 -0
  237. package/src/models/components/skydepositrequest.ts +140 -0
  238. package/src/models/components/skysellrequest.ts +177 -0
  239. package/src/models/components/skywithdrawrequest.ts +87 -0
  240. package/src/models/operations/genericallowance.ts +3 -0
  241. package/src/models/operations/index.ts +1 -0
  242. package/src/models/operations/skyposition.ts +81 -0
  243. package/src/sdk/sdk.ts +6 -0
  244. package/src/sdk/sky.ts +108 -0
package/bin/mcp-server.js CHANGED
@@ -34185,9 +34185,9 @@ var init_config = __esm(() => {
34185
34185
  SDK_METADATA = {
34186
34186
  language: "typescript",
34187
34187
  openapiDocVersion: "0.0.1",
34188
- sdkVersion: "0.0.12",
34188
+ sdkVersion: "0.0.13",
34189
34189
  genVersion: "2.596.2",
34190
- userAgent: "speakeasy-sdk/typescript 0.0.12 2.596.2 0.0.1 @compass-labs/api-sdk"
34190
+ userAgent: "speakeasy-sdk/typescript 0.0.13 2.596.2 0.0.1 @compass-labs/api-sdk"
34191
34191
  };
34192
34192
  });
34193
34193
 
@@ -37338,6 +37338,9 @@ var init_contractname = __esm(() => {
37338
37338
  Morpho: "Morpho",
37339
37339
  MorphoVault: "MorphoVault",
37340
37340
  MorphoOracle: "MorphoOracle",
37341
+ SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
37342
+ SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
37343
+ SkyUsdsVault: "SkyUsdsVault",
37341
37344
  Multicall: "Multicall"
37342
37345
  };
37343
37346
  ContractName$inboundSchema = nativeEnumType(ContractName);
@@ -37459,7 +37462,10 @@ var init_increaseallowanceparams = __esm(() => {
37459
37462
  AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
37460
37463
  UniswapV3Router: "UniswapV3Router",
37461
37464
  UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
37462
- Morpho: "Morpho"
37465
+ Morpho: "Morpho",
37466
+ SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
37467
+ SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
37468
+ SkyUsdsVault: "SkyUsdsVault"
37463
37469
  };
37464
37470
  IncreaseAllowanceParamsContractName$inboundSchema = nativeEnumType(IncreaseAllowanceParamsContractName);
37465
37471
  IncreaseAllowanceParamsContractName$outboundSchema = IncreaseAllowanceParamsContractName$inboundSchema;
@@ -37511,7 +37517,10 @@ var init_increaseallowancerequest = __esm(() => {
37511
37517
  AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
37512
37518
  UniswapV3Router: "UniswapV3Router",
37513
37519
  UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
37514
- Morpho: "Morpho"
37520
+ Morpho: "Morpho",
37521
+ SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
37522
+ SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
37523
+ SkyUsdsVault: "SkyUsdsVault"
37515
37524
  };
37516
37525
  IncreaseAllowanceRequestContractName$inboundSchema = nativeEnumType(IncreaseAllowanceRequestContractName);
37517
37526
  IncreaseAllowanceRequestContractName$outboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
@@ -38098,32 +38107,32 @@ var MulticallActionType, MulticallActionType$inboundSchema, MulticallActionType$
38098
38107
  var init_multicallactiontype = __esm(() => {
38099
38108
  init_lib();
38100
38109
  MulticallActionType = {
38101
- AaveBorrow: "AAVE_BORROW",
38102
- AaveSupply: "AAVE_SUPPLY",
38110
+ WrapEth: "WRAP_ETH",
38111
+ AerodromeBasicSwapEthForToken: "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN",
38103
38112
  AllowanceIncreaseAny: "ALLOWANCE_INCREASE_ANY",
38104
- AerodromeBasicSwapToken: "AERODROME_BASIC_SWAP_TOKEN",
38105
- UniswapSellExactly: "UNISWAP_SELL_EXACTLY",
38113
+ UniswapWithdrawLiquidity: "UNISWAP_WITHDRAW_LIQUIDITY",
38114
+ AerodromeBasicRemoveLiquidity: "AERODROME_BASIC_REMOVE_LIQUIDITY",
38115
+ AerodromeSlipstreamWithdrawLiquidity: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY",
38116
+ AerodromeSlipstreamSellExactly: "AERODROME_SLIPSTREAM_SELL_EXACTLY",
38106
38117
  UniswapBuyExactly: "UNISWAP_BUY_EXACTLY",
38107
- AerodromeBasicAddLiquidity: "AERODROME_BASIC_ADD_LIQUIDITY",
38108
- AerodromeBasicRemoveLiquidityEth: "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH",
38109
- AerodromeSlipstreamIncreaseLiquidity: "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY",
38110
38118
  AaveWithdraw: "AAVE_WITHDRAW",
38111
- AerodromeBasicRemoveLiquidity: "AERODROME_BASIC_REMOVE_LIQUIDITY",
38112
- AerodromeBasicSwapTokenForEth: "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH",
38113
- AllowanceIncrease: "ALLOWANCE_INCREASE",
38114
- WrapEth: "WRAP_ETH",
38115
38119
  UniswapMintLiquidity: "UNISWAP_MINT_LIQUIDITY",
38116
- AaveRepay: "AAVE_REPAY",
38117
- AerodromeBasicSwapEthForToken: "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN",
38118
- AerodromeSlipstreamWithdrawLiquidity: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY",
38119
- AerodromeBasicAddLiquidityEth: "AERODROME_BASIC_ADD_LIQUIDITY_ETH",
38120
+ AerodromeBasicSwapTokenForEth: "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH",
38120
38121
  AerodromeSlipstreamMintLiquidity: "AERODROME_SLIPSTREAM_MINT_LIQUIDITY",
38122
+ UniswapSellExactly: "UNISWAP_SELL_EXACTLY",
38123
+ AaveBorrow: "AAVE_BORROW",
38124
+ AaveSupply: "AAVE_SUPPLY",
38121
38125
  AerodromeSlipstreamBuyExactly: "AERODROME_SLIPSTREAM_BUY_EXACTLY",
38122
38126
  TransferErc20: "TRANSFER_ERC20",
38123
- UniswapWithdrawLiquidity: "UNISWAP_WITHDRAW_LIQUIDITY",
38127
+ AllowanceIncrease: "ALLOWANCE_INCREASE",
38128
+ AerodromeBasicRemoveLiquidityEth: "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH",
38129
+ AerodromeSlipstreamIncreaseLiquidity: "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY",
38124
38130
  UnwrapWeth: "UNWRAP_WETH",
38125
- AerodromeSlipstreamSellExactly: "AERODROME_SLIPSTREAM_SELL_EXACTLY",
38126
- UniswapAddLiquidity: "UNISWAP_ADD_LIQUIDITY"
38131
+ AerodromeBasicSwapToken: "AERODROME_BASIC_SWAP_TOKEN",
38132
+ AerodromeBasicAddLiquidityEth: "AERODROME_BASIC_ADD_LIQUIDITY_ETH",
38133
+ AerodromeBasicAddLiquidity: "AERODROME_BASIC_ADD_LIQUIDITY",
38134
+ UniswapAddLiquidity: "UNISWAP_ADD_LIQUIDITY",
38135
+ AaveRepay: "AAVE_REPAY"
38127
38136
  };
38128
38137
  MulticallActionType$inboundSchema = nativeEnumType(MulticallActionType);
38129
38138
  MulticallActionType$outboundSchema = MulticallActionType$inboundSchema;
@@ -38877,6 +38886,177 @@ var init_security2 = __esm(() => {
38877
38886
  })(Security$ ||= {});
38878
38887
  });
38879
38888
 
38889
+ // src/models/components/skybuyrequest.ts
38890
+ var TokenIn, TokenIn$inboundSchema, TokenIn$outboundSchema, TokenIn$, SkyBuyRequestAmount$inboundSchema, SkyBuyRequestAmount$outboundSchema, SkyBuyRequestAmount$, SkyBuyRequest$inboundSchema, SkyBuyRequest$outboundSchema, SkyBuyRequest$;
38891
+ var init_skybuyrequest = __esm(() => {
38892
+ init_lib();
38893
+ init_primitives();
38894
+ TokenIn = {
38895
+ Dai: "DAI",
38896
+ Usdc: "USDC"
38897
+ };
38898
+ TokenIn$inboundSchema = nativeEnumType(TokenIn);
38899
+ TokenIn$outboundSchema = TokenIn$inboundSchema;
38900
+ ((TokenIn$) => {
38901
+ TokenIn$.inboundSchema = TokenIn$inboundSchema;
38902
+ TokenIn$.outboundSchema = TokenIn$outboundSchema;
38903
+ })(TokenIn$ ||= {});
38904
+ SkyBuyRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
38905
+ SkyBuyRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
38906
+ ((SkyBuyRequestAmount$) => {
38907
+ SkyBuyRequestAmount$.inboundSchema = SkyBuyRequestAmount$inboundSchema;
38908
+ SkyBuyRequestAmount$.outboundSchema = SkyBuyRequestAmount$outboundSchema;
38909
+ })(SkyBuyRequestAmount$ ||= {});
38910
+ SkyBuyRequest$inboundSchema = objectType({
38911
+ token_in: TokenIn$inboundSchema,
38912
+ amount: unionType([numberType(), stringType()]),
38913
+ chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
38914
+ sender: stringType()
38915
+ }).transform((v2) => {
38916
+ return remap(v2, {
38917
+ token_in: "tokenIn"
38918
+ });
38919
+ });
38920
+ SkyBuyRequest$outboundSchema = objectType({
38921
+ tokenIn: TokenIn$outboundSchema,
38922
+ amount: unionType([numberType(), stringType()]),
38923
+ chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
38924
+ sender: stringType()
38925
+ }).transform((v2) => {
38926
+ return remap(v2, {
38927
+ tokenIn: "token_in"
38928
+ });
38929
+ });
38930
+ ((SkyBuyRequest$) => {
38931
+ SkyBuyRequest$.inboundSchema = SkyBuyRequest$inboundSchema;
38932
+ SkyBuyRequest$.outboundSchema = SkyBuyRequest$outboundSchema;
38933
+ })(SkyBuyRequest$ ||= {});
38934
+ });
38935
+
38936
+ // src/models/components/skycheckpositionresponse.ts
38937
+ var SkyCheckPositionResponse$inboundSchema, SkyCheckPositionResponse$outboundSchema, SkyCheckPositionResponse$;
38938
+ var init_skycheckpositionresponse = __esm(() => {
38939
+ init_lib();
38940
+ init_primitives();
38941
+ SkyCheckPositionResponse$inboundSchema = objectType({
38942
+ usds_value_of_deposits: stringType(),
38943
+ shares: numberType().int()
38944
+ }).transform((v2) => {
38945
+ return remap(v2, {
38946
+ usds_value_of_deposits: "usdsValueOfDeposits"
38947
+ });
38948
+ });
38949
+ SkyCheckPositionResponse$outboundSchema = objectType({
38950
+ usdsValueOfDeposits: stringType(),
38951
+ shares: numberType().int()
38952
+ }).transform((v2) => {
38953
+ return remap(v2, {
38954
+ usdsValueOfDeposits: "usds_value_of_deposits"
38955
+ });
38956
+ });
38957
+ ((SkyCheckPositionResponse$) => {
38958
+ SkyCheckPositionResponse$.inboundSchema = SkyCheckPositionResponse$inboundSchema;
38959
+ SkyCheckPositionResponse$.outboundSchema = SkyCheckPositionResponse$outboundSchema;
38960
+ })(SkyCheckPositionResponse$ ||= {});
38961
+ });
38962
+
38963
+ // src/models/components/skydepositrequest.ts
38964
+ var SkyDepositRequestAmount$inboundSchema, SkyDepositRequestAmount$outboundSchema, SkyDepositRequestAmount$, SkyDepositRequest$inboundSchema, SkyDepositRequest$outboundSchema, SkyDepositRequest$;
38965
+ var init_skydepositrequest = __esm(() => {
38966
+ init_lib();
38967
+ SkyDepositRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
38968
+ SkyDepositRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
38969
+ ((SkyDepositRequestAmount$) => {
38970
+ SkyDepositRequestAmount$.inboundSchema = SkyDepositRequestAmount$inboundSchema;
38971
+ SkyDepositRequestAmount$.outboundSchema = SkyDepositRequestAmount$outboundSchema;
38972
+ })(SkyDepositRequestAmount$ ||= {});
38973
+ SkyDepositRequest$inboundSchema = objectType({
38974
+ amount: unionType([numberType(), stringType()]),
38975
+ receiver: nullableType(stringType()).optional(),
38976
+ chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
38977
+ sender: stringType()
38978
+ });
38979
+ SkyDepositRequest$outboundSchema = objectType({
38980
+ amount: unionType([numberType(), stringType()]),
38981
+ receiver: nullableType(stringType()).optional(),
38982
+ chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
38983
+ sender: stringType()
38984
+ });
38985
+ ((SkyDepositRequest$) => {
38986
+ SkyDepositRequest$.inboundSchema = SkyDepositRequest$inboundSchema;
38987
+ SkyDepositRequest$.outboundSchema = SkyDepositRequest$outboundSchema;
38988
+ })(SkyDepositRequest$ ||= {});
38989
+ });
38990
+
38991
+ // src/models/components/skysellrequest.ts
38992
+ var TokenOut, TokenOut$inboundSchema, TokenOut$outboundSchema, TokenOut$, SkySellRequestAmount$inboundSchema, SkySellRequestAmount$outboundSchema, SkySellRequestAmount$, SkySellRequest$inboundSchema, SkySellRequest$outboundSchema, SkySellRequest$;
38993
+ var init_skysellrequest = __esm(() => {
38994
+ init_lib();
38995
+ init_primitives();
38996
+ TokenOut = {
38997
+ Dai: "DAI",
38998
+ Usdc: "USDC"
38999
+ };
39000
+ TokenOut$inboundSchema = nativeEnumType(TokenOut);
39001
+ TokenOut$outboundSchema = TokenOut$inboundSchema;
39002
+ ((TokenOut$) => {
39003
+ TokenOut$.inboundSchema = TokenOut$inboundSchema;
39004
+ TokenOut$.outboundSchema = TokenOut$outboundSchema;
39005
+ })(TokenOut$ ||= {});
39006
+ SkySellRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
39007
+ SkySellRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
39008
+ ((SkySellRequestAmount$) => {
39009
+ SkySellRequestAmount$.inboundSchema = SkySellRequestAmount$inboundSchema;
39010
+ SkySellRequestAmount$.outboundSchema = SkySellRequestAmount$outboundSchema;
39011
+ })(SkySellRequestAmount$ ||= {});
39012
+ SkySellRequest$inboundSchema = objectType({
39013
+ token_out: TokenOut$inboundSchema,
39014
+ amount: unionType([numberType(), stringType()]),
39015
+ chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
39016
+ sender: stringType()
39017
+ }).transform((v2) => {
39018
+ return remap(v2, {
39019
+ token_out: "tokenOut"
39020
+ });
39021
+ });
39022
+ SkySellRequest$outboundSchema = objectType({
39023
+ tokenOut: TokenOut$outboundSchema,
39024
+ amount: unionType([numberType(), stringType()]),
39025
+ chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
39026
+ sender: stringType()
39027
+ }).transform((v2) => {
39028
+ return remap(v2, {
39029
+ tokenOut: "token_out"
39030
+ });
39031
+ });
39032
+ ((SkySellRequest$) => {
39033
+ SkySellRequest$.inboundSchema = SkySellRequest$inboundSchema;
39034
+ SkySellRequest$.outboundSchema = SkySellRequest$outboundSchema;
39035
+ })(SkySellRequest$ ||= {});
39036
+ });
39037
+
39038
+ // src/models/components/skywithdrawrequest.ts
39039
+ var SkyWithdrawRequest$inboundSchema, SkyWithdrawRequest$outboundSchema, SkyWithdrawRequest$;
39040
+ var init_skywithdrawrequest = __esm(() => {
39041
+ init_lib();
39042
+ SkyWithdrawRequest$inboundSchema = objectType({
39043
+ amount: anyType().optional(),
39044
+ receiver: nullableType(stringType()).optional(),
39045
+ chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
39046
+ sender: stringType()
39047
+ });
39048
+ SkyWithdrawRequest$outboundSchema = objectType({
39049
+ amount: anyType().optional(),
39050
+ receiver: nullableType(stringType()).optional(),
39051
+ chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
39052
+ sender: stringType()
39053
+ });
39054
+ ((SkyWithdrawRequest$) => {
39055
+ SkyWithdrawRequest$.inboundSchema = SkyWithdrawRequest$inboundSchema;
39056
+ SkyWithdrawRequest$.outboundSchema = SkyWithdrawRequest$outboundSchema;
39057
+ })(SkyWithdrawRequest$ ||= {});
39058
+ });
39059
+
38880
39060
  // src/models/components/tokenaddressresponse.ts
38881
39061
  var TokenAddressResponse$inboundSchema, TokenAddressResponse$outboundSchema, TokenAddressResponse$;
38882
39062
  var init_tokenaddressresponse = __esm(() => {
@@ -39729,6 +39909,11 @@ var init_components = __esm(() => {
39729
39909
  init_portfolio();
39730
39910
  init_security2();
39731
39911
  init_signedauthorization();
39912
+ init_skybuyrequest();
39913
+ init_skycheckpositionresponse();
39914
+ init_skydepositrequest();
39915
+ init_skysellrequest();
39916
+ init_skywithdrawrequest();
39732
39917
  init_tokenaddressresponse();
39733
39918
  init_tokenbalance();
39734
39919
  init_tokenbalanceresponse();
@@ -40485,7 +40670,10 @@ var init_genericallowance = __esm(() => {
40485
40670
  AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
40486
40671
  UniswapV3Router: "UniswapV3Router",
40487
40672
  UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
40488
- Morpho: "Morpho"
40673
+ Morpho: "Morpho",
40674
+ SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
40675
+ SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
40676
+ SkyUsdsVault: "SkyUsdsVault"
40489
40677
  };
40490
40678
  GenericAllowanceChain$inboundSchema = nativeEnumType(GenericAllowanceChain);
40491
40679
  GenericAllowanceChain$outboundSchema = GenericAllowanceChain$inboundSchema;
@@ -40842,6 +41030,33 @@ var init_morphovaults = __esm(() => {
40842
41030
  })(MorphoVaultsRequest$ ||= {});
40843
41031
  });
40844
41032
 
41033
+ // src/models/operations/skyposition.ts
41034
+ var SkyPositionRequest$inboundSchema, SkyPositionRequest$outboundSchema, SkyPositionRequest$;
41035
+ var init_skyposition = __esm(() => {
41036
+ init_lib();
41037
+ init_primitives();
41038
+ SkyPositionRequest$inboundSchema = objectType({
41039
+ chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
41040
+ user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
41041
+ }).transform((v2) => {
41042
+ return remap(v2, {
41043
+ user_address: "userAddress"
41044
+ });
41045
+ });
41046
+ SkyPositionRequest$outboundSchema = objectType({
41047
+ chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
41048
+ userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
41049
+ }).transform((v2) => {
41050
+ return remap(v2, {
41051
+ userAddress: "user_address"
41052
+ });
41053
+ });
41054
+ ((SkyPositionRequest$) => {
41055
+ SkyPositionRequest$.inboundSchema = SkyPositionRequest$inboundSchema;
41056
+ SkyPositionRequest$.outboundSchema = SkyPositionRequest$outboundSchema;
41057
+ })(SkyPositionRequest$ ||= {});
41058
+ });
41059
+
40845
41060
  // src/models/operations/tokenaddress.ts
40846
41061
  var TokenAddressChain, TokenAddressToken, TokenAddressChain$inboundSchema, TokenAddressChain$outboundSchema, TokenAddressChain$, TokenAddressToken$inboundSchema, TokenAddressToken$outboundSchema, TokenAddressToken$, TokenAddressRequest$inboundSchema, TokenAddressRequest$outboundSchema, TokenAddressRequest$;
40847
41062
  var init_tokenaddress = __esm(() => {
@@ -41650,6 +41865,7 @@ var init_operations = __esm(() => {
41650
41865
  init_morphomarkets();
41651
41866
  init_morphovaultposition();
41652
41867
  init_morphovaults();
41868
+ init_skyposition();
41653
41869
  init_tokenaddress();
41654
41870
  init_tokenbalance2();
41655
41871
  init_tokenprice();
@@ -44412,23 +44628,20 @@ as long as the blockchain it is deployed on is live.`,
44412
44628
  };
44413
44629
  });
44414
44630
 
44415
- // src/funcs/tokenAddress.ts
44416
- function tokenAddress(client, request, options) {
44631
+ // src/funcs/skyBuy.ts
44632
+ function skyBuy(client, request, options) {
44417
44633
  return new APIPromise($do27(client, request, options));
44418
44634
  }
44419
44635
  async function $do27(client, request, options) {
44420
- const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
44636
+ const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
44421
44637
  if (!parsed.ok) {
44422
44638
  return [parsed, { status: "invalid" }];
44423
44639
  }
44424
44640
  const payload = parsed.value;
44425
- const body = null;
44426
- const path = pathToFunc("/v0/token/address/get")();
44427
- const query = encodeFormQuery({
44428
- chain: payload.chain,
44429
- token: payload.token
44430
- });
44641
+ const body = encodeJSON("body", payload, { explode: true });
44642
+ const path = pathToFunc("/v0/sky/buy")();
44431
44643
  const headers = new Headers(compactMap({
44644
+ "Content-Type": "application/json",
44432
44645
  Accept: "application/json"
44433
44646
  }));
44434
44647
  const secConfig = await extractSecurity(client._options.apiKeyAuth);
@@ -44436,7 +44649,7 @@ async function $do27(client, request, options) {
44436
44649
  const requestSecurity = resolveGlobalSecurity(securityInput);
44437
44650
  const context = {
44438
44651
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44439
- operationID: "token_address",
44652
+ operationID: "sky_buy",
44440
44653
  oAuth2Scopes: [],
44441
44654
  resolvedSecurity: requestSecurity,
44442
44655
  securitySource: client._options.apiKeyAuth,
@@ -44445,11 +44658,10 @@ async function $do27(client, request, options) {
44445
44658
  };
44446
44659
  const requestRes = client._createRequest(context, {
44447
44660
  security: requestSecurity,
44448
- method: "GET",
44661
+ method: "POST",
44449
44662
  baseURL: options?.serverURL,
44450
44663
  path,
44451
44664
  headers,
44452
- query,
44453
44665
  body,
44454
44666
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44455
44667
  }, options);
@@ -44470,13 +44682,13 @@ async function $do27(client, request, options) {
44470
44682
  const responseFields = {
44471
44683
  HttpMeta: { Response: response, Request: req }
44472
44684
  };
44473
- const [result] = await match(json(200, TokenAddressResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44685
+ const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44474
44686
  if (!result.ok) {
44475
44687
  return [result, { status: "complete", request: req, response }];
44476
44688
  }
44477
44689
  return [result, { status: "complete", request: req, response }];
44478
44690
  }
44479
- var init_tokenAddress = __esm(() => {
44691
+ var init_skyBuy = __esm(() => {
44480
44692
  init_encodings();
44481
44693
  init_matchers();
44482
44694
  init_primitives();
@@ -44485,27 +44697,28 @@ var init_tokenAddress = __esm(() => {
44485
44697
  init_url();
44486
44698
  init_components();
44487
44699
  init_errors();
44488
- init_operations();
44489
44700
  init_async();
44490
44701
  });
44491
44702
 
44492
- // src/mcp-server/tools/tokenAddress.ts
44493
- var args27, tool$tokenAddress;
44494
- var init_tokenAddress2 = __esm(() => {
44495
- init_tokenAddress();
44496
- init_operations();
44703
+ // src/mcp-server/tools/skyBuy.ts
44704
+ var args27, tool$skyBuy;
44705
+ var init_skyBuy2 = __esm(() => {
44706
+ init_skyBuy();
44707
+ init_components();
44497
44708
  init_tools();
44498
44709
  args27 = {
44499
- request: TokenAddressRequest$inboundSchema
44710
+ request: SkyBuyRequest$inboundSchema
44500
44711
  };
44501
- tool$tokenAddress = {
44502
- name: "token-address",
44503
- description: `Token Address
44712
+ tool$skyBuy = {
44713
+ name: "sky-buy",
44714
+ description: `Buy USDS
44504
44715
 
44505
- This endpoint retrieves the address for a token supported by us.`,
44716
+ Buy USDS with DAI or USDC on a 1:1 basis.
44717
+
44718
+ There are no fees.`,
44506
44719
  args: args27,
44507
44720
  tool: async (client, args28, ctx) => {
44508
- const [result, apiCall] = await tokenAddress(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44721
+ const [result, apiCall] = await skyBuy(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44509
44722
  if (!result.ok) {
44510
44723
  return {
44511
44724
  content: [{ type: "text", text: result.error.message }],
@@ -44518,24 +44731,20 @@ This endpoint retrieves the address for a token supported by us.`,
44518
44731
  };
44519
44732
  });
44520
44733
 
44521
- // src/funcs/tokenBalance.ts
44522
- function tokenBalance(client, request, options) {
44734
+ // src/funcs/skyDeposit.ts
44735
+ function skyDeposit(client, request, options) {
44523
44736
  return new APIPromise($do28(client, request, options));
44524
44737
  }
44525
44738
  async function $do28(client, request, options) {
44526
- const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
44739
+ const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
44527
44740
  if (!parsed.ok) {
44528
44741
  return [parsed, { status: "invalid" }];
44529
44742
  }
44530
44743
  const payload = parsed.value;
44531
- const body = null;
44532
- const path = pathToFunc("/v0/token/balance/get")();
44533
- const query = encodeFormQuery({
44534
- chain: payload.chain,
44535
- token: payload.token,
44536
- user: payload.user
44537
- });
44744
+ const body = encodeJSON("body", payload, { explode: true });
44745
+ const path = pathToFunc("/v0/sky/deposit")();
44538
44746
  const headers = new Headers(compactMap({
44747
+ "Content-Type": "application/json",
44539
44748
  Accept: "application/json"
44540
44749
  }));
44541
44750
  const secConfig = await extractSecurity(client._options.apiKeyAuth);
@@ -44543,7 +44752,7 @@ async function $do28(client, request, options) {
44543
44752
  const requestSecurity = resolveGlobalSecurity(securityInput);
44544
44753
  const context = {
44545
44754
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44546
- operationID: "token_balance",
44755
+ operationID: "sky_deposit",
44547
44756
  oAuth2Scopes: [],
44548
44757
  resolvedSecurity: requestSecurity,
44549
44758
  securitySource: client._options.apiKeyAuth,
@@ -44552,11 +44761,10 @@ async function $do28(client, request, options) {
44552
44761
  };
44553
44762
  const requestRes = client._createRequest(context, {
44554
44763
  security: requestSecurity,
44555
- method: "GET",
44764
+ method: "POST",
44556
44765
  baseURL: options?.serverURL,
44557
44766
  path,
44558
44767
  headers,
44559
- query,
44560
44768
  body,
44561
44769
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44562
44770
  }, options);
@@ -44577,13 +44785,13 @@ async function $do28(client, request, options) {
44577
44785
  const responseFields = {
44578
44786
  HttpMeta: { Response: response, Request: req }
44579
44787
  };
44580
- const [result] = await match(json(200, TokenBalanceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44788
+ const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44581
44789
  if (!result.ok) {
44582
44790
  return [result, { status: "complete", request: req, response }];
44583
44791
  }
44584
44792
  return [result, { status: "complete", request: req, response }];
44585
44793
  }
44586
- var init_tokenBalance = __esm(() => {
44794
+ var init_skyDeposit = __esm(() => {
44587
44795
  init_encodings();
44588
44796
  init_matchers();
44589
44797
  init_primitives();
@@ -44592,27 +44800,28 @@ var init_tokenBalance = __esm(() => {
44592
44800
  init_url();
44593
44801
  init_components();
44594
44802
  init_errors();
44595
- init_operations();
44596
44803
  init_async();
44597
44804
  });
44598
44805
 
44599
- // src/mcp-server/tools/tokenBalance.ts
44600
- var args28, tool$tokenBalance;
44601
- var init_tokenBalance2 = __esm(() => {
44602
- init_tokenBalance();
44603
- init_operations();
44806
+ // src/mcp-server/tools/skyDeposit.ts
44807
+ var args28, tool$skyDeposit;
44808
+ var init_skyDeposit2 = __esm(() => {
44809
+ init_skyDeposit();
44810
+ init_components();
44604
44811
  init_tools();
44605
44812
  args28 = {
44606
- request: TokenBalanceRequest$inboundSchema
44813
+ request: SkyDepositRequest$inboundSchema
44607
44814
  };
44608
- tool$tokenBalance = {
44609
- name: "token-balance",
44610
- description: `Token Balance
44815
+ tool$skyDeposit = {
44816
+ name: "sky-deposit",
44817
+ description: `Deposit USDS
44611
44818
 
44612
- Returns the balance of a specific ERC20 token for a given user address.`,
44819
+ Deposit USDS for sUSDS to earn yield.
44820
+
44821
+ There are no fees.`,
44613
44822
  args: args28,
44614
44823
  tool: async (client, args29, ctx) => {
44615
- const [result, apiCall] = await tokenBalance(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44824
+ const [result, apiCall] = await skyDeposit(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44616
44825
  if (!result.ok) {
44617
44826
  return {
44618
44827
  content: [{ type: "text", text: result.error.message }],
@@ -44625,21 +44834,21 @@ Returns the balance of a specific ERC20 token for a given user address.`,
44625
44834
  };
44626
44835
  });
44627
44836
 
44628
- // src/funcs/tokenPrice.ts
44629
- function tokenPrice(client, request, options) {
44837
+ // src/funcs/skyPosition.ts
44838
+ function skyPosition(client, request, options) {
44630
44839
  return new APIPromise($do29(client, request, options));
44631
44840
  }
44632
44841
  async function $do29(client, request, options) {
44633
- const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
44842
+ const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
44634
44843
  if (!parsed.ok) {
44635
44844
  return [parsed, { status: "invalid" }];
44636
44845
  }
44637
44846
  const payload = parsed.value;
44638
44847
  const body = null;
44639
- const path = pathToFunc("/v0/token/price/get")();
44848
+ const path = pathToFunc("/v0/sky/position")();
44640
44849
  const query = encodeFormQuery({
44641
44850
  chain: payload.chain,
44642
- token: payload.token
44851
+ user_address: payload.user_address
44643
44852
  });
44644
44853
  const headers = new Headers(compactMap({
44645
44854
  Accept: "application/json"
@@ -44649,7 +44858,7 @@ async function $do29(client, request, options) {
44649
44858
  const requestSecurity = resolveGlobalSecurity(securityInput);
44650
44859
  const context = {
44651
44860
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44652
- operationID: "token_price",
44861
+ operationID: "sky_position",
44653
44862
  oAuth2Scopes: [],
44654
44863
  resolvedSecurity: requestSecurity,
44655
44864
  securitySource: client._options.apiKeyAuth,
@@ -44683,13 +44892,13 @@ async function $do29(client, request, options) {
44683
44892
  const responseFields = {
44684
44893
  HttpMeta: { Response: response, Request: req }
44685
44894
  };
44686
- const [result] = await match(json(200, TokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44895
+ const [result] = await match(json(200, SkyCheckPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44687
44896
  if (!result.ok) {
44688
44897
  return [result, { status: "complete", request: req, response }];
44689
44898
  }
44690
44899
  return [result, { status: "complete", request: req, response }];
44691
44900
  }
44692
- var init_tokenPrice = __esm(() => {
44901
+ var init_skyPosition = __esm(() => {
44693
44902
  init_encodings();
44694
44903
  init_matchers();
44695
44904
  init_primitives();
@@ -44702,27 +44911,23 @@ var init_tokenPrice = __esm(() => {
44702
44911
  init_async();
44703
44912
  });
44704
44913
 
44705
- // src/mcp-server/tools/tokenPrice.ts
44706
- var args29, tool$tokenPrice;
44707
- var init_tokenPrice2 = __esm(() => {
44708
- init_tokenPrice();
44914
+ // src/mcp-server/tools/skyPosition.ts
44915
+ var args29, tool$skyPosition;
44916
+ var init_skyPosition2 = __esm(() => {
44917
+ init_skyPosition();
44709
44918
  init_operations();
44710
44919
  init_tools();
44711
44920
  args29 = {
44712
- request: TokenPriceRequest$inboundSchema
44921
+ request: SkyPositionRequest$inboundSchema
44713
44922
  };
44714
- tool$tokenPrice = {
44715
- name: "token-price",
44716
- description: `Token Price
44717
-
44718
- Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
44923
+ tool$skyPosition = {
44924
+ name: "sky-position",
44925
+ description: `Check USDS Position
44719
44926
 
44720
- Chainlink is a decentralized oracle that aggregates price data from off-chain
44721
- sources. This ensures the price is tamper-resistant but the price might be stale
44722
- with the update frequency of the oracle.`,
44927
+ Check the USDS overall position.`,
44723
44928
  args: args29,
44724
44929
  tool: async (client, args30, ctx) => {
44725
- const [result, apiCall] = await tokenPrice(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44930
+ const [result, apiCall] = await skyPosition(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44726
44931
  if (!result.ok) {
44727
44932
  return {
44728
44933
  content: [{ type: "text", text: result.error.message }],
@@ -44735,18 +44940,18 @@ with the update frequency of the oracle.`,
44735
44940
  };
44736
44941
  });
44737
44942
 
44738
- // src/funcs/tokenTransfer.ts
44739
- function tokenTransfer(client, request, options) {
44943
+ // src/funcs/skySell.ts
44944
+ function skySell(client, request, options) {
44740
44945
  return new APIPromise($do30(client, request, options));
44741
44946
  }
44742
44947
  async function $do30(client, request, options) {
44743
- const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
44948
+ const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
44744
44949
  if (!parsed.ok) {
44745
44950
  return [parsed, { status: "invalid" }];
44746
44951
  }
44747
44952
  const payload = parsed.value;
44748
44953
  const body = encodeJSON("body", payload, { explode: true });
44749
- const path = pathToFunc("/v0/token/transfer")();
44954
+ const path = pathToFunc("/v0/sky/sell")();
44750
44955
  const headers = new Headers(compactMap({
44751
44956
  "Content-Type": "application/json",
44752
44957
  Accept: "application/json"
@@ -44756,7 +44961,7 @@ async function $do30(client, request, options) {
44756
44961
  const requestSecurity = resolveGlobalSecurity(securityInput);
44757
44962
  const context = {
44758
44963
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44759
- operationID: "token_transfer",
44964
+ operationID: "sky_sell",
44760
44965
  oAuth2Scopes: [],
44761
44966
  resolvedSecurity: requestSecurity,
44762
44967
  securitySource: client._options.apiKeyAuth,
@@ -44795,7 +45000,7 @@ async function $do30(client, request, options) {
44795
45000
  }
44796
45001
  return [result, { status: "complete", request: req, response }];
44797
45002
  }
44798
- var init_tokenTransfer = __esm(() => {
45003
+ var init_skySell = __esm(() => {
44799
45004
  init_encodings();
44800
45005
  init_matchers();
44801
45006
  init_primitives();
@@ -44807,23 +45012,25 @@ var init_tokenTransfer = __esm(() => {
44807
45012
  init_async();
44808
45013
  });
44809
45014
 
44810
- // src/mcp-server/tools/tokenTransfer.ts
44811
- var args30, tool$tokenTransfer;
44812
- var init_tokenTransfer2 = __esm(() => {
44813
- init_tokenTransfer();
45015
+ // src/mcp-server/tools/skySell.ts
45016
+ var args30, tool$skySell;
45017
+ var init_skySell2 = __esm(() => {
45018
+ init_skySell();
44814
45019
  init_components();
44815
45020
  init_tools();
44816
45021
  args30 = {
44817
- request: TokenTransferRequest$inboundSchema
45022
+ request: SkySellRequest$inboundSchema
44818
45023
  };
44819
- tool$tokenTransfer = {
44820
- name: "token-transfer",
44821
- description: `Transfer ETH or ERC20 Tokens
45024
+ tool$skySell = {
45025
+ name: "sky-sell",
45026
+ description: `Sell USDS
44822
45027
 
44823
- Sends native ETH or ERC20 tokens from the sender's address to another address.`,
45028
+ Sell USDS for DAI or USDC on a 1:1 basis.
45029
+
45030
+ There are no fees.`,
44824
45031
  args: args30,
44825
45032
  tool: async (client, args31, ctx) => {
44826
- const [result, apiCall] = await tokenTransfer(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45033
+ const [result, apiCall] = await skySell(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44827
45034
  if (!result.ok) {
44828
45035
  return {
44829
45036
  content: [{ type: "text", text: result.error.message }],
@@ -44836,18 +45043,18 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
44836
45043
  };
44837
45044
  });
44838
45045
 
44839
- // src/funcs/transactionBatchingAuthorization.ts
44840
- function transactionBatchingAuthorization(client, request, options) {
45046
+ // src/funcs/skyWithdraw.ts
45047
+ function skyWithdraw(client, request, options) {
44841
45048
  return new APIPromise($do31(client, request, options));
44842
45049
  }
44843
45050
  async function $do31(client, request, options) {
44844
- const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
45051
+ const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
44845
45052
  if (!parsed.ok) {
44846
45053
  return [parsed, { status: "invalid" }];
44847
45054
  }
44848
45055
  const payload = parsed.value;
44849
45056
  const body = encodeJSON("body", payload, { explode: true });
44850
- const path = pathToFunc("/v0/multicall/authorization")();
45057
+ const path = pathToFunc("/v0/sky/withdraw")();
44851
45058
  const headers = new Headers(compactMap({
44852
45059
  "Content-Type": "application/json",
44853
45060
  Accept: "application/json"
@@ -44857,7 +45064,7 @@ async function $do31(client, request, options) {
44857
45064
  const requestSecurity = resolveGlobalSecurity(securityInput);
44858
45065
  const context = {
44859
45066
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44860
- operationID: "multicall_authorization",
45067
+ operationID: "sky_withdraw",
44861
45068
  oAuth2Scopes: [],
44862
45069
  resolvedSecurity: requestSecurity,
44863
45070
  securitySource: client._options.apiKeyAuth,
@@ -44890,13 +45097,13 @@ async function $do31(client, request, options) {
44890
45097
  const responseFields = {
44891
45098
  HttpMeta: { Response: response, Request: req }
44892
45099
  };
44893
- const [result] = await match(json(200, MulticallAuthorizationResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45100
+ const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
44894
45101
  if (!result.ok) {
44895
45102
  return [result, { status: "complete", request: req, response }];
44896
45103
  }
44897
45104
  return [result, { status: "complete", request: req, response }];
44898
45105
  }
44899
- var init_transactionBatchingAuthorization = __esm(() => {
45106
+ var init_skyWithdraw = __esm(() => {
44900
45107
  init_encodings();
44901
45108
  init_matchers();
44902
45109
  init_primitives();
@@ -44908,28 +45115,25 @@ var init_transactionBatchingAuthorization = __esm(() => {
44908
45115
  init_async();
44909
45116
  });
44910
45117
 
44911
- // src/mcp-server/tools/transactionBatchingAuthorization.ts
44912
- var args31, tool$transactionBatchingAuthorization;
44913
- var init_transactionBatchingAuthorization2 = __esm(() => {
44914
- init_transactionBatchingAuthorization();
45118
+ // src/mcp-server/tools/skyWithdraw.ts
45119
+ var args31, tool$skyWithdraw;
45120
+ var init_skyWithdraw2 = __esm(() => {
45121
+ init_skyWithdraw();
44915
45122
  init_components();
44916
45123
  init_tools();
44917
45124
  args31 = {
44918
- request: MulticallAuthorizationRequest$inboundSchema
45125
+ request: SkyWithdrawRequest$inboundSchema
44919
45126
  };
44920
- tool$transactionBatchingAuthorization = {
44921
- name: "transaction-batching-authorization",
44922
- description: `Get EIP-7702 Authorization
45127
+ tool$skyWithdraw = {
45128
+ name: "sky-withdraw",
45129
+ description: `Withdraw USDS
44923
45130
 
44924
- Get authorization data for EIP-7702 batching operations.
45131
+ Withdraw USDS for sUSDS to stop earning yield.
44925
45132
 
44926
- This authorization is required to prevent replay attacks and ensure transaction
44927
- ordering when batching multiple actions into a single transaction. The authorization
44928
- includes a nonce and chain ID to guarantee transaction uniqueness and proper network
44929
- targeting.`,
45133
+ There are no fees.`,
44930
45134
  args: args31,
44931
45135
  tool: async (client, args32, ctx) => {
44932
- const [result, apiCall] = await transactionBatchingAuthorization(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45136
+ const [result, apiCall] = await skyWithdraw(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44933
45137
  if (!result.ok) {
44934
45138
  return {
44935
45139
  content: [{ type: "text", text: result.error.message }],
@@ -44942,20 +45146,23 @@ targeting.`,
44942
45146
  };
44943
45147
  });
44944
45148
 
44945
- // src/funcs/transactionBatchingExecute.ts
44946
- function transactionBatchingExecute(client, request, options) {
45149
+ // src/funcs/tokenAddress.ts
45150
+ function tokenAddress(client, request, options) {
44947
45151
  return new APIPromise($do32(client, request, options));
44948
45152
  }
44949
45153
  async function $do32(client, request, options) {
44950
- const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
45154
+ const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
44951
45155
  if (!parsed.ok) {
44952
45156
  return [parsed, { status: "invalid" }];
44953
45157
  }
44954
45158
  const payload = parsed.value;
44955
- const body = encodeJSON("body", payload, { explode: true });
44956
- const path = pathToFunc("/v0/multicall/execute")();
45159
+ const body = null;
45160
+ const path = pathToFunc("/v0/token/address/get")();
45161
+ const query = encodeFormQuery({
45162
+ chain: payload.chain,
45163
+ token: payload.token
45164
+ });
44957
45165
  const headers = new Headers(compactMap({
44958
- "Content-Type": "application/json",
44959
45166
  Accept: "application/json"
44960
45167
  }));
44961
45168
  const secConfig = await extractSecurity(client._options.apiKeyAuth);
@@ -44963,7 +45170,7 @@ async function $do32(client, request, options) {
44963
45170
  const requestSecurity = resolveGlobalSecurity(securityInput);
44964
45171
  const context = {
44965
45172
  baseURL: options?.serverURL ?? client._baseURL ?? "",
44966
- operationID: "multicall_execute",
45173
+ operationID: "token_address",
44967
45174
  oAuth2Scopes: [],
44968
45175
  resolvedSecurity: requestSecurity,
44969
45176
  securitySource: client._options.apiKeyAuth,
@@ -44972,10 +45179,11 @@ async function $do32(client, request, options) {
44972
45179
  };
44973
45180
  const requestRes = client._createRequest(context, {
44974
45181
  security: requestSecurity,
44975
- method: "POST",
45182
+ method: "GET",
44976
45183
  baseURL: options?.serverURL,
44977
45184
  path,
44978
45185
  headers,
45186
+ query,
44979
45187
  body,
44980
45188
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
44981
45189
  }, options);
@@ -44996,7 +45204,533 @@ async function $do32(client, request, options) {
44996
45204
  const responseFields = {
44997
45205
  HttpMeta: { Response: response, Request: req }
44998
45206
  };
44999
- const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45207
+ const [result] = await match(json(200, TokenAddressResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45208
+ if (!result.ok) {
45209
+ return [result, { status: "complete", request: req, response }];
45210
+ }
45211
+ return [result, { status: "complete", request: req, response }];
45212
+ }
45213
+ var init_tokenAddress = __esm(() => {
45214
+ init_encodings();
45215
+ init_matchers();
45216
+ init_primitives();
45217
+ init_schemas();
45218
+ init_security();
45219
+ init_url();
45220
+ init_components();
45221
+ init_errors();
45222
+ init_operations();
45223
+ init_async();
45224
+ });
45225
+
45226
+ // src/mcp-server/tools/tokenAddress.ts
45227
+ var args32, tool$tokenAddress;
45228
+ var init_tokenAddress2 = __esm(() => {
45229
+ init_tokenAddress();
45230
+ init_operations();
45231
+ init_tools();
45232
+ args32 = {
45233
+ request: TokenAddressRequest$inboundSchema
45234
+ };
45235
+ tool$tokenAddress = {
45236
+ name: "token-address",
45237
+ description: `Token Address
45238
+
45239
+ This endpoint retrieves the address for a token supported by us.`,
45240
+ args: args32,
45241
+ tool: async (client, args33, ctx) => {
45242
+ const [result, apiCall] = await tokenAddress(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45243
+ if (!result.ok) {
45244
+ return {
45245
+ content: [{ type: "text", text: result.error.message }],
45246
+ isError: true
45247
+ };
45248
+ }
45249
+ const value = result.value;
45250
+ return formatResult(value, apiCall);
45251
+ }
45252
+ };
45253
+ });
45254
+
45255
+ // src/funcs/tokenBalance.ts
45256
+ function tokenBalance(client, request, options) {
45257
+ return new APIPromise($do33(client, request, options));
45258
+ }
45259
+ async function $do33(client, request, options) {
45260
+ const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
45261
+ if (!parsed.ok) {
45262
+ return [parsed, { status: "invalid" }];
45263
+ }
45264
+ const payload = parsed.value;
45265
+ const body = null;
45266
+ const path = pathToFunc("/v0/token/balance/get")();
45267
+ const query = encodeFormQuery({
45268
+ chain: payload.chain,
45269
+ token: payload.token,
45270
+ user: payload.user
45271
+ });
45272
+ const headers = new Headers(compactMap({
45273
+ Accept: "application/json"
45274
+ }));
45275
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
45276
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
45277
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45278
+ const context = {
45279
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45280
+ operationID: "token_balance",
45281
+ oAuth2Scopes: [],
45282
+ resolvedSecurity: requestSecurity,
45283
+ securitySource: client._options.apiKeyAuth,
45284
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45285
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45286
+ };
45287
+ const requestRes = client._createRequest(context, {
45288
+ security: requestSecurity,
45289
+ method: "GET",
45290
+ baseURL: options?.serverURL,
45291
+ path,
45292
+ headers,
45293
+ query,
45294
+ body,
45295
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45296
+ }, options);
45297
+ if (!requestRes.ok) {
45298
+ return [requestRes, { status: "invalid" }];
45299
+ }
45300
+ const req = requestRes.value;
45301
+ const doResult = await client._do(req, {
45302
+ context,
45303
+ errorCodes: ["422", "4XX", "5XX"],
45304
+ retryConfig: context.retryConfig,
45305
+ retryCodes: context.retryCodes
45306
+ });
45307
+ if (!doResult.ok) {
45308
+ return [doResult, { status: "request-error", request: req }];
45309
+ }
45310
+ const response = doResult.value;
45311
+ const responseFields = {
45312
+ HttpMeta: { Response: response, Request: req }
45313
+ };
45314
+ const [result] = await match(json(200, TokenBalanceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45315
+ if (!result.ok) {
45316
+ return [result, { status: "complete", request: req, response }];
45317
+ }
45318
+ return [result, { status: "complete", request: req, response }];
45319
+ }
45320
+ var init_tokenBalance = __esm(() => {
45321
+ init_encodings();
45322
+ init_matchers();
45323
+ init_primitives();
45324
+ init_schemas();
45325
+ init_security();
45326
+ init_url();
45327
+ init_components();
45328
+ init_errors();
45329
+ init_operations();
45330
+ init_async();
45331
+ });
45332
+
45333
+ // src/mcp-server/tools/tokenBalance.ts
45334
+ var args33, tool$tokenBalance;
45335
+ var init_tokenBalance2 = __esm(() => {
45336
+ init_tokenBalance();
45337
+ init_operations();
45338
+ init_tools();
45339
+ args33 = {
45340
+ request: TokenBalanceRequest$inboundSchema
45341
+ };
45342
+ tool$tokenBalance = {
45343
+ name: "token-balance",
45344
+ description: `Token Balance
45345
+
45346
+ Returns the balance of a specific ERC20 token for a given user address.`,
45347
+ args: args33,
45348
+ tool: async (client, args34, ctx) => {
45349
+ const [result, apiCall] = await tokenBalance(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45350
+ if (!result.ok) {
45351
+ return {
45352
+ content: [{ type: "text", text: result.error.message }],
45353
+ isError: true
45354
+ };
45355
+ }
45356
+ const value = result.value;
45357
+ return formatResult(value, apiCall);
45358
+ }
45359
+ };
45360
+ });
45361
+
45362
+ // src/funcs/tokenPrice.ts
45363
+ function tokenPrice(client, request, options) {
45364
+ return new APIPromise($do34(client, request, options));
45365
+ }
45366
+ async function $do34(client, request, options) {
45367
+ const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
45368
+ if (!parsed.ok) {
45369
+ return [parsed, { status: "invalid" }];
45370
+ }
45371
+ const payload = parsed.value;
45372
+ const body = null;
45373
+ const path = pathToFunc("/v0/token/price/get")();
45374
+ const query = encodeFormQuery({
45375
+ chain: payload.chain,
45376
+ token: payload.token
45377
+ });
45378
+ const headers = new Headers(compactMap({
45379
+ Accept: "application/json"
45380
+ }));
45381
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
45382
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
45383
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45384
+ const context = {
45385
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45386
+ operationID: "token_price",
45387
+ oAuth2Scopes: [],
45388
+ resolvedSecurity: requestSecurity,
45389
+ securitySource: client._options.apiKeyAuth,
45390
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45391
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45392
+ };
45393
+ const requestRes = client._createRequest(context, {
45394
+ security: requestSecurity,
45395
+ method: "GET",
45396
+ baseURL: options?.serverURL,
45397
+ path,
45398
+ headers,
45399
+ query,
45400
+ body,
45401
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45402
+ }, options);
45403
+ if (!requestRes.ok) {
45404
+ return [requestRes, { status: "invalid" }];
45405
+ }
45406
+ const req = requestRes.value;
45407
+ const doResult = await client._do(req, {
45408
+ context,
45409
+ errorCodes: ["422", "4XX", "5XX"],
45410
+ retryConfig: context.retryConfig,
45411
+ retryCodes: context.retryCodes
45412
+ });
45413
+ if (!doResult.ok) {
45414
+ return [doResult, { status: "request-error", request: req }];
45415
+ }
45416
+ const response = doResult.value;
45417
+ const responseFields = {
45418
+ HttpMeta: { Response: response, Request: req }
45419
+ };
45420
+ const [result] = await match(json(200, TokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45421
+ if (!result.ok) {
45422
+ return [result, { status: "complete", request: req, response }];
45423
+ }
45424
+ return [result, { status: "complete", request: req, response }];
45425
+ }
45426
+ var init_tokenPrice = __esm(() => {
45427
+ init_encodings();
45428
+ init_matchers();
45429
+ init_primitives();
45430
+ init_schemas();
45431
+ init_security();
45432
+ init_url();
45433
+ init_components();
45434
+ init_errors();
45435
+ init_operations();
45436
+ init_async();
45437
+ });
45438
+
45439
+ // src/mcp-server/tools/tokenPrice.ts
45440
+ var args34, tool$tokenPrice;
45441
+ var init_tokenPrice2 = __esm(() => {
45442
+ init_tokenPrice();
45443
+ init_operations();
45444
+ init_tools();
45445
+ args34 = {
45446
+ request: TokenPriceRequest$inboundSchema
45447
+ };
45448
+ tool$tokenPrice = {
45449
+ name: "token-price",
45450
+ description: `Token Price
45451
+
45452
+ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
45453
+
45454
+ Chainlink is a decentralized oracle that aggregates price data from off-chain
45455
+ sources. This ensures the price is tamper-resistant but the price might be stale
45456
+ with the update frequency of the oracle.`,
45457
+ args: args34,
45458
+ tool: async (client, args35, ctx) => {
45459
+ const [result, apiCall] = await tokenPrice(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45460
+ if (!result.ok) {
45461
+ return {
45462
+ content: [{ type: "text", text: result.error.message }],
45463
+ isError: true
45464
+ };
45465
+ }
45466
+ const value = result.value;
45467
+ return formatResult(value, apiCall);
45468
+ }
45469
+ };
45470
+ });
45471
+
45472
+ // src/funcs/tokenTransfer.ts
45473
+ function tokenTransfer(client, request, options) {
45474
+ return new APIPromise($do35(client, request, options));
45475
+ }
45476
+ async function $do35(client, request, options) {
45477
+ const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
45478
+ if (!parsed.ok) {
45479
+ return [parsed, { status: "invalid" }];
45480
+ }
45481
+ const payload = parsed.value;
45482
+ const body = encodeJSON("body", payload, { explode: true });
45483
+ const path = pathToFunc("/v0/token/transfer")();
45484
+ const headers = new Headers(compactMap({
45485
+ "Content-Type": "application/json",
45486
+ Accept: "application/json"
45487
+ }));
45488
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
45489
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
45490
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45491
+ const context = {
45492
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45493
+ operationID: "token_transfer",
45494
+ oAuth2Scopes: [],
45495
+ resolvedSecurity: requestSecurity,
45496
+ securitySource: client._options.apiKeyAuth,
45497
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45498
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45499
+ };
45500
+ const requestRes = client._createRequest(context, {
45501
+ security: requestSecurity,
45502
+ method: "POST",
45503
+ baseURL: options?.serverURL,
45504
+ path,
45505
+ headers,
45506
+ body,
45507
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45508
+ }, options);
45509
+ if (!requestRes.ok) {
45510
+ return [requestRes, { status: "invalid" }];
45511
+ }
45512
+ const req = requestRes.value;
45513
+ const doResult = await client._do(req, {
45514
+ context,
45515
+ errorCodes: ["422", "4XX", "5XX"],
45516
+ retryConfig: context.retryConfig,
45517
+ retryCodes: context.retryCodes
45518
+ });
45519
+ if (!doResult.ok) {
45520
+ return [doResult, { status: "request-error", request: req }];
45521
+ }
45522
+ const response = doResult.value;
45523
+ const responseFields = {
45524
+ HttpMeta: { Response: response, Request: req }
45525
+ };
45526
+ const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45527
+ if (!result.ok) {
45528
+ return [result, { status: "complete", request: req, response }];
45529
+ }
45530
+ return [result, { status: "complete", request: req, response }];
45531
+ }
45532
+ var init_tokenTransfer = __esm(() => {
45533
+ init_encodings();
45534
+ init_matchers();
45535
+ init_primitives();
45536
+ init_schemas();
45537
+ init_security();
45538
+ init_url();
45539
+ init_components();
45540
+ init_errors();
45541
+ init_async();
45542
+ });
45543
+
45544
+ // src/mcp-server/tools/tokenTransfer.ts
45545
+ var args35, tool$tokenTransfer;
45546
+ var init_tokenTransfer2 = __esm(() => {
45547
+ init_tokenTransfer();
45548
+ init_components();
45549
+ init_tools();
45550
+ args35 = {
45551
+ request: TokenTransferRequest$inboundSchema
45552
+ };
45553
+ tool$tokenTransfer = {
45554
+ name: "token-transfer",
45555
+ description: `Transfer ETH or ERC20 Tokens
45556
+
45557
+ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
45558
+ args: args35,
45559
+ tool: async (client, args36, ctx) => {
45560
+ const [result, apiCall] = await tokenTransfer(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45561
+ if (!result.ok) {
45562
+ return {
45563
+ content: [{ type: "text", text: result.error.message }],
45564
+ isError: true
45565
+ };
45566
+ }
45567
+ const value = result.value;
45568
+ return formatResult(value, apiCall);
45569
+ }
45570
+ };
45571
+ });
45572
+
45573
+ // src/funcs/transactionBatchingAuthorization.ts
45574
+ function transactionBatchingAuthorization(client, request, options) {
45575
+ return new APIPromise($do36(client, request, options));
45576
+ }
45577
+ async function $do36(client, request, options) {
45578
+ const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
45579
+ if (!parsed.ok) {
45580
+ return [parsed, { status: "invalid" }];
45581
+ }
45582
+ const payload = parsed.value;
45583
+ const body = encodeJSON("body", payload, { explode: true });
45584
+ const path = pathToFunc("/v0/multicall/authorization")();
45585
+ const headers = new Headers(compactMap({
45586
+ "Content-Type": "application/json",
45587
+ Accept: "application/json"
45588
+ }));
45589
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
45590
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
45591
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45592
+ const context = {
45593
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45594
+ operationID: "multicall_authorization",
45595
+ oAuth2Scopes: [],
45596
+ resolvedSecurity: requestSecurity,
45597
+ securitySource: client._options.apiKeyAuth,
45598
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45599
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45600
+ };
45601
+ const requestRes = client._createRequest(context, {
45602
+ security: requestSecurity,
45603
+ method: "POST",
45604
+ baseURL: options?.serverURL,
45605
+ path,
45606
+ headers,
45607
+ body,
45608
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45609
+ }, options);
45610
+ if (!requestRes.ok) {
45611
+ return [requestRes, { status: "invalid" }];
45612
+ }
45613
+ const req = requestRes.value;
45614
+ const doResult = await client._do(req, {
45615
+ context,
45616
+ errorCodes: ["422", "4XX", "5XX"],
45617
+ retryConfig: context.retryConfig,
45618
+ retryCodes: context.retryCodes
45619
+ });
45620
+ if (!doResult.ok) {
45621
+ return [doResult, { status: "request-error", request: req }];
45622
+ }
45623
+ const response = doResult.value;
45624
+ const responseFields = {
45625
+ HttpMeta: { Response: response, Request: req }
45626
+ };
45627
+ const [result] = await match(json(200, MulticallAuthorizationResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45628
+ if (!result.ok) {
45629
+ return [result, { status: "complete", request: req, response }];
45630
+ }
45631
+ return [result, { status: "complete", request: req, response }];
45632
+ }
45633
+ var init_transactionBatchingAuthorization = __esm(() => {
45634
+ init_encodings();
45635
+ init_matchers();
45636
+ init_primitives();
45637
+ init_schemas();
45638
+ init_security();
45639
+ init_url();
45640
+ init_components();
45641
+ init_errors();
45642
+ init_async();
45643
+ });
45644
+
45645
+ // src/mcp-server/tools/transactionBatchingAuthorization.ts
45646
+ var args36, tool$transactionBatchingAuthorization;
45647
+ var init_transactionBatchingAuthorization2 = __esm(() => {
45648
+ init_transactionBatchingAuthorization();
45649
+ init_components();
45650
+ init_tools();
45651
+ args36 = {
45652
+ request: MulticallAuthorizationRequest$inboundSchema
45653
+ };
45654
+ tool$transactionBatchingAuthorization = {
45655
+ name: "transaction-batching-authorization",
45656
+ description: `Get EIP-7702 Authorization
45657
+
45658
+ Get authorization data for EIP-7702 batching operations.
45659
+
45660
+ This authorization is required to prevent replay attacks and ensure transaction
45661
+ ordering when batching multiple actions into a single transaction. The authorization
45662
+ includes a nonce and chain ID to guarantee transaction uniqueness and proper network
45663
+ targeting.`,
45664
+ args: args36,
45665
+ tool: async (client, args37, ctx) => {
45666
+ const [result, apiCall] = await transactionBatchingAuthorization(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45667
+ if (!result.ok) {
45668
+ return {
45669
+ content: [{ type: "text", text: result.error.message }],
45670
+ isError: true
45671
+ };
45672
+ }
45673
+ const value = result.value;
45674
+ return formatResult(value, apiCall);
45675
+ }
45676
+ };
45677
+ });
45678
+
45679
+ // src/funcs/transactionBatchingExecute.ts
45680
+ function transactionBatchingExecute(client, request, options) {
45681
+ return new APIPromise($do37(client, request, options));
45682
+ }
45683
+ async function $do37(client, request, options) {
45684
+ const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
45685
+ if (!parsed.ok) {
45686
+ return [parsed, { status: "invalid" }];
45687
+ }
45688
+ const payload = parsed.value;
45689
+ const body = encodeJSON("body", payload, { explode: true });
45690
+ const path = pathToFunc("/v0/multicall/execute")();
45691
+ const headers = new Headers(compactMap({
45692
+ "Content-Type": "application/json",
45693
+ Accept: "application/json"
45694
+ }));
45695
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
45696
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
45697
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45698
+ const context = {
45699
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45700
+ operationID: "multicall_execute",
45701
+ oAuth2Scopes: [],
45702
+ resolvedSecurity: requestSecurity,
45703
+ securitySource: client._options.apiKeyAuth,
45704
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45705
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45706
+ };
45707
+ const requestRes = client._createRequest(context, {
45708
+ security: requestSecurity,
45709
+ method: "POST",
45710
+ baseURL: options?.serverURL,
45711
+ path,
45712
+ headers,
45713
+ body,
45714
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45715
+ }, options);
45716
+ if (!requestRes.ok) {
45717
+ return [requestRes, { status: "invalid" }];
45718
+ }
45719
+ const req = requestRes.value;
45720
+ const doResult = await client._do(req, {
45721
+ context,
45722
+ errorCodes: ["422", "4XX", "5XX"],
45723
+ retryConfig: context.retryConfig,
45724
+ retryCodes: context.retryCodes
45725
+ });
45726
+ if (!doResult.ok) {
45727
+ return [doResult, { status: "request-error", request: req }];
45728
+ }
45729
+ const response = doResult.value;
45730
+ const responseFields = {
45731
+ HttpMeta: { Response: response, Request: req }
45732
+ };
45733
+ const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45000
45734
  if (!result.ok) {
45001
45735
  return [result, { status: "complete", request: req, response }];
45002
45736
  }
@@ -45015,12 +45749,12 @@ var init_transactionBatchingExecute = __esm(() => {
45015
45749
  });
45016
45750
 
45017
45751
  // src/mcp-server/tools/transactionBatchingExecute.ts
45018
- var args32, tool$transactionBatchingExecute;
45752
+ var args37, tool$transactionBatchingExecute;
45019
45753
  var init_transactionBatchingExecute2 = __esm(() => {
45020
45754
  init_transactionBatchingExecute();
45021
45755
  init_components();
45022
45756
  init_tools();
45023
- args32 = {
45757
+ args37 = {
45024
45758
  request: MulticallExecuteRequest$inboundSchema
45025
45759
  };
45026
45760
  tool$transactionBatchingExecute = {
@@ -45033,9 +45767,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
45033
45767
  transaction, reducing gas costs and ensuring all operations succeed or fail
45034
45768
  together. The transaction must be authorized using the /authorization endpoint to
45035
45769
  prevent replay attacks.`,
45036
- args: args32,
45037
- tool: async (client, args33, ctx) => {
45038
- const [result, apiCall] = await transactionBatchingExecute(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45770
+ args: args37,
45771
+ tool: async (client, args38, ctx) => {
45772
+ const [result, apiCall] = await transactionBatchingExecute(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45039
45773
  if (!result.ok) {
45040
45774
  return {
45041
45775
  content: [{ type: "text", text: result.error.message }],
@@ -45050,9 +45784,9 @@ prevent replay attacks.`,
45050
45784
 
45051
45785
  // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
45052
45786
  function uniswapV3LiquidityProvisionIncrease(client, request, options) {
45053
- return new APIPromise($do33(client, request, options));
45787
+ return new APIPromise($do38(client, request, options));
45054
45788
  }
45055
- async function $do33(client, request, options) {
45789
+ async function $do38(client, request, options) {
45056
45790
  const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
45057
45791
  if (!parsed.ok) {
45058
45792
  return [parsed, { status: "invalid" }];
@@ -45121,12 +45855,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
45121
45855
  });
45122
45856
 
45123
45857
  // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
45124
- var args33, tool$uniswapV3LiquidityProvisionIncrease;
45858
+ var args38, tool$uniswapV3LiquidityProvisionIncrease;
45125
45859
  var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
45126
45860
  init_uniswapV3LiquidityProvisionIncrease();
45127
45861
  init_components();
45128
45862
  init_tools();
45129
- args33 = {
45863
+ args38 = {
45130
45864
  request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
45131
45865
  };
45132
45866
  tool$uniswapV3LiquidityProvisionIncrease = {
@@ -45142,9 +45876,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
45142
45876
  within the pool. The endpoint requires details such as the token pair, additional
45143
45877
  amount to be added, and any other parameters necessary for the liquidity increase
45144
45878
  process.`,
45145
- args: args33,
45146
- tool: async (client, args34, ctx) => {
45147
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45879
+ args: args38,
45880
+ tool: async (client, args39, ctx) => {
45881
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45148
45882
  if (!result.ok) {
45149
45883
  return {
45150
45884
  content: [{ type: "text", text: result.error.message }],
@@ -45159,9 +45893,9 @@ process.`,
45159
45893
 
45160
45894
  // src/funcs/uniswapV3LiquidityProvisionInRange.ts
45161
45895
  function uniswapV3LiquidityProvisionInRange(client, request, options) {
45162
- return new APIPromise($do34(client, request, options));
45896
+ return new APIPromise($do39(client, request, options));
45163
45897
  }
45164
- async function $do34(client, request, options) {
45898
+ async function $do39(client, request, options) {
45165
45899
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
45166
45900
  if (!parsed.ok) {
45167
45901
  return [parsed, { status: "invalid" }];
@@ -45235,12 +45969,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
45235
45969
  });
45236
45970
 
45237
45971
  // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
45238
- var args34, tool$uniswapV3LiquidityProvisionInRange;
45972
+ var args39, tool$uniswapV3LiquidityProvisionInRange;
45239
45973
  var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
45240
45974
  init_uniswapV3LiquidityProvisionInRange();
45241
45975
  init_operations();
45242
45976
  init_tools();
45243
- args34 = {
45977
+ args39 = {
45244
45978
  request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
45245
45979
  };
45246
45980
  tool$uniswapV3LiquidityProvisionInRange = {
@@ -45255,9 +45989,9 @@ position is currently within the tick range where trading occurs. this informati
45255
45989
  is essential for users to monitor the status of their lp positions and ensure that
45256
45990
  they are actively participating in the trading activities within the liquidity pool
45257
45991
  and earning trading fees.`,
45258
- args: args34,
45259
- tool: async (client, args35, ctx) => {
45260
- const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45992
+ args: args39,
45993
+ tool: async (client, args40, ctx) => {
45994
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45261
45995
  if (!result.ok) {
45262
45996
  return {
45263
45997
  content: [{ type: "text", text: result.error.message }],
@@ -45272,9 +46006,9 @@ and earning trading fees.`,
45272
46006
 
45273
46007
  // src/funcs/uniswapV3LiquidityProvisionMint.ts
45274
46008
  function uniswapV3LiquidityProvisionMint(client, request, options) {
45275
- return new APIPromise($do35(client, request, options));
46009
+ return new APIPromise($do40(client, request, options));
45276
46010
  }
45277
- async function $do35(client, request, options) {
46011
+ async function $do40(client, request, options) {
45278
46012
  const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
45279
46013
  if (!parsed.ok) {
45280
46014
  return [parsed, { status: "invalid" }];
@@ -45343,12 +46077,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
45343
46077
  });
45344
46078
 
45345
46079
  // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
45346
- var args35, tool$uniswapV3LiquidityProvisionMint;
46080
+ var args40, tool$uniswapV3LiquidityProvisionMint;
45347
46081
  var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
45348
46082
  init_uniswapV3LiquidityProvisionMint();
45349
46083
  init_components();
45350
46084
  init_tools();
45351
- args35 = {
46085
+ args40 = {
45352
46086
  request: UniswapMintLiquidityProvisionRequest$inboundSchema
45353
46087
  };
45354
46088
  tool$uniswapV3LiquidityProvisionMint = {
@@ -45364,9 +46098,9 @@ This operation is essential for users looking to participate in liquidity provis
45364
46098
  enabling them to earn fees from trades that occur within the pool. The endpoint
45365
46099
  requires details such as the token pair, amount, and any additional parameters
45366
46100
  needed for the minting process.`,
45367
- args: args35,
45368
- tool: async (client, args36, ctx) => {
45369
- const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46101
+ args: args40,
46102
+ tool: async (client, args41, ctx) => {
46103
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45370
46104
  if (!result.ok) {
45371
46105
  return {
45372
46106
  content: [{ type: "text", text: result.error.message }],
@@ -45381,9 +46115,9 @@ needed for the minting process.`,
45381
46115
 
45382
46116
  // src/funcs/uniswapV3LiquidityProvisionPositions.ts
45383
46117
  function uniswapV3LiquidityProvisionPositions(client, request, options) {
45384
- return new APIPromise($do36(client, request, options));
46118
+ return new APIPromise($do41(client, request, options));
45385
46119
  }
45386
- async function $do36(client, request, options) {
46120
+ async function $do41(client, request, options) {
45387
46121
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
45388
46122
  if (!parsed.ok) {
45389
46123
  return [parsed, { status: "invalid" }];
@@ -45457,12 +46191,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
45457
46191
  });
45458
46192
 
45459
46193
  // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
45460
- var args36, tool$uniswapV3LiquidityProvisionPositions;
46194
+ var args41, tool$uniswapV3LiquidityProvisionPositions;
45461
46195
  var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
45462
46196
  init_uniswapV3LiquidityProvisionPositions();
45463
46197
  init_operations();
45464
46198
  init_tools();
45465
- args36 = {
46199
+ args41 = {
45466
46200
  request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
45467
46201
  };
45468
46202
  tool$uniswapV3LiquidityProvisionPositions = {
@@ -45476,9 +46210,9 @@ Users can query this endpoint to obtain detailed information about their LP
45476
46210
  positions, including the total number of positions and relevant metadata. This
45477
46211
  information is crucial for users to manage and analyze their liquidity provision
45478
46212
  activities effectively.`,
45479
- args: args36,
45480
- tool: async (client, args37, ctx) => {
45481
- const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46213
+ args: args41,
46214
+ tool: async (client, args42, ctx) => {
46215
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45482
46216
  if (!result.ok) {
45483
46217
  return {
45484
46218
  content: [{ type: "text", text: result.error.message }],
@@ -45493,9 +46227,9 @@ activities effectively.`,
45493
46227
 
45494
46228
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
45495
46229
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
45496
- return new APIPromise($do37(client, request, options));
46230
+ return new APIPromise($do42(client, request, options));
45497
46231
  }
45498
- async function $do37(client, request, options) {
46232
+ async function $do42(client, request, options) {
45499
46233
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
45500
46234
  if (!parsed.ok) {
45501
46235
  return [parsed, { status: "invalid" }];
@@ -45564,12 +46298,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
45564
46298
  });
45565
46299
 
45566
46300
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
45567
- var args37, tool$uniswapV3LiquidityProvisionWithdraw;
46301
+ var args42, tool$uniswapV3LiquidityProvisionWithdraw;
45568
46302
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
45569
46303
  init_uniswapV3LiquidityProvisionWithdraw();
45570
46304
  init_components();
45571
46305
  init_tools();
45572
- args37 = {
46306
+ args42 = {
45573
46307
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
45574
46308
  };
45575
46309
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -45586,9 +46320,9 @@ pools or investments. The endpoint requires details such as the token pair, the
45586
46320
  amount to be withdrawn, and any additional parameters needed for the withdrawal
45587
46321
  process. Users should ensure they meet any protocol requirements or conditions
45588
46322
  before initiating a withdrawal to avoid potential issues or penalties.`,
45589
- args: args37,
45590
- tool: async (client, args38, ctx) => {
45591
- const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46323
+ args: args42,
46324
+ tool: async (client, args43, ctx) => {
46325
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45592
46326
  if (!result.ok) {
45593
46327
  return {
45594
46328
  content: [{ type: "text", text: result.error.message }],
@@ -45603,9 +46337,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
45603
46337
 
45604
46338
  // src/funcs/uniswapV3PoolPrice.ts
45605
46339
  function uniswapV3PoolPrice(client, request, options) {
45606
- return new APIPromise($do38(client, request, options));
46340
+ return new APIPromise($do43(client, request, options));
45607
46341
  }
45608
- async function $do38(client, request, options) {
46342
+ async function $do43(client, request, options) {
45609
46343
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
45610
46344
  if (!parsed.ok) {
45611
46345
  return [parsed, { status: "invalid" }];
@@ -45681,12 +46415,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
45681
46415
  });
45682
46416
 
45683
46417
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
45684
- var args38, tool$uniswapV3PoolPrice;
46418
+ var args43, tool$uniswapV3PoolPrice;
45685
46419
  var init_uniswapV3PoolPrice2 = __esm(() => {
45686
46420
  init_uniswapV3PoolPrice();
45687
46421
  init_operations();
45688
46422
  init_tools();
45689
- args38 = {
46423
+ args43 = {
45690
46424
  request: UniswapPoolPriceRequest$inboundSchema
45691
46425
  };
45692
46426
  tool$uniswapV3PoolPrice = {
@@ -45696,9 +46430,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
45696
46430
  This endpoint calculates the price of a token in a Uniswap pool.
45697
46431
 
45698
46432
  The price is calculated based on the current pool state and the specified fee tier.`,
45699
- args: args38,
45700
- tool: async (client, args39, ctx) => {
45701
- const [result, apiCall] = await uniswapV3PoolPrice(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46433
+ args: args43,
46434
+ tool: async (client, args44, ctx) => {
46435
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45702
46436
  if (!result.ok) {
45703
46437
  return {
45704
46438
  content: [{ type: "text", text: result.error.message }],
@@ -45713,9 +46447,9 @@ The price is calculated based on the current pool state and the specified fee ti
45713
46447
 
45714
46448
  // src/funcs/uniswapV3QuoteBuyExactly.ts
45715
46449
  function uniswapV3QuoteBuyExactly(client, request, options) {
45716
- return new APIPromise($do39(client, request, options));
46450
+ return new APIPromise($do44(client, request, options));
45717
46451
  }
45718
- async function $do39(client, request, options) {
46452
+ async function $do44(client, request, options) {
45719
46453
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
45720
46454
  if (!parsed.ok) {
45721
46455
  return [parsed, { status: "invalid" }];
@@ -45792,12 +46526,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
45792
46526
  });
45793
46527
 
45794
46528
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
45795
- var args39, tool$uniswapV3QuoteBuyExactly;
46529
+ var args44, tool$uniswapV3QuoteBuyExactly;
45796
46530
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
45797
46531
  init_uniswapV3QuoteBuyExactly();
45798
46532
  init_operations();
45799
46533
  init_tools();
45800
- args39 = {
46534
+ args44 = {
45801
46535
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
45802
46536
  };
45803
46537
  tool$uniswapV3QuoteBuyExactly = {
@@ -45809,9 +46543,9 @@ specified amount of output tokens from a Uniswap pool.
45809
46543
 
45810
46544
  It also provides the resulting price after the transaction. The calculation takes
45811
46545
  into account the current pool state and the specified fee tier.`,
45812
- args: args39,
45813
- tool: async (client, args40, ctx) => {
45814
- const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46546
+ args: args44,
46547
+ tool: async (client, args45, ctx) => {
46548
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45815
46549
  if (!result.ok) {
45816
46550
  return {
45817
46551
  content: [{ type: "text", text: result.error.message }],
@@ -45826,9 +46560,9 @@ into account the current pool state and the specified fee tier.`,
45826
46560
 
45827
46561
  // src/funcs/uniswapV3QuoteSellExactly.ts
45828
46562
  function uniswapV3QuoteSellExactly(client, request, options) {
45829
- return new APIPromise($do40(client, request, options));
46563
+ return new APIPromise($do45(client, request, options));
45830
46564
  }
45831
- async function $do40(client, request, options) {
46565
+ async function $do45(client, request, options) {
45832
46566
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
45833
46567
  if (!parsed.ok) {
45834
46568
  return [parsed, { status: "invalid" }];
@@ -45905,12 +46639,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
45905
46639
  });
45906
46640
 
45907
46641
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
45908
- var args40, tool$uniswapV3QuoteSellExactly;
46642
+ var args45, tool$uniswapV3QuoteSellExactly;
45909
46643
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
45910
46644
  init_uniswapV3QuoteSellExactly();
45911
46645
  init_operations();
45912
46646
  init_tools();
45913
- args40 = {
46647
+ args45 = {
45914
46648
  request: UniswapQuoteSellExactlyRequest$inboundSchema
45915
46649
  };
45916
46650
  tool$uniswapV3QuoteSellExactly = {
@@ -45922,9 +46656,9 @@ specified amount of output tokens from a Uniswap pool.
45922
46656
 
45923
46657
  It also provides the resulting price after the transaction. The calculation takes
45924
46658
  into account the current pool state and the specified fee tier.`,
45925
- args: args40,
45926
- tool: async (client, args41, ctx) => {
45927
- const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46659
+ args: args45,
46660
+ tool: async (client, args46, ctx) => {
46661
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45928
46662
  if (!result.ok) {
45929
46663
  return {
45930
46664
  content: [{ type: "text", text: result.error.message }],
@@ -45939,9 +46673,9 @@ into account the current pool state and the specified fee tier.`,
45939
46673
 
45940
46674
  // src/funcs/uniswapV3SwapBuyExactly.ts
45941
46675
  function uniswapV3SwapBuyExactly(client, request, options) {
45942
- return new APIPromise($do41(client, request, options));
46676
+ return new APIPromise($do46(client, request, options));
45943
46677
  }
45944
- async function $do41(client, request, options) {
46678
+ async function $do46(client, request, options) {
45945
46679
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
45946
46680
  if (!parsed.ok) {
45947
46681
  return [parsed, { status: "invalid" }];
@@ -46010,12 +46744,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
46010
46744
  });
46011
46745
 
46012
46746
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
46013
- var args41, tool$uniswapV3SwapBuyExactly;
46747
+ var args46, tool$uniswapV3SwapBuyExactly;
46014
46748
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
46015
46749
  init_uniswapV3SwapBuyExactly();
46016
46750
  init_components();
46017
46751
  init_tools();
46018
- args41 = {
46752
+ args46 = {
46019
46753
  request: UniswapBuyExactlyRequest$inboundSchema
46020
46754
  };
46021
46755
  tool$uniswapV3SwapBuyExactly = {
@@ -46029,9 +46763,9 @@ The transaction is executed on the specified blockchain network, and the user mu
46029
46763
  provide the necessary transaction details, including the token to buy, the token to
46030
46764
  pay with, and the exact amount to receive. If the token being paid with is WETH and
46031
46765
  needs to be wrapped, the appropriate amount will be wrapped automatically.`,
46032
- args: args41,
46033
- tool: async (client, args42, ctx) => {
46034
- const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46766
+ args: args46,
46767
+ tool: async (client, args47, ctx) => {
46768
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46035
46769
  if (!result.ok) {
46036
46770
  return {
46037
46771
  content: [{ type: "text", text: result.error.message }],
@@ -46046,9 +46780,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
46046
46780
 
46047
46781
  // src/funcs/uniswapV3SwapSellExactly.ts
46048
46782
  function uniswapV3SwapSellExactly(client, request, options) {
46049
- return new APIPromise($do42(client, request, options));
46783
+ return new APIPromise($do47(client, request, options));
46050
46784
  }
46051
- async function $do42(client, request, options) {
46785
+ async function $do47(client, request, options) {
46052
46786
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
46053
46787
  if (!parsed.ok) {
46054
46788
  return [parsed, { status: "invalid" }];
@@ -46117,12 +46851,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
46117
46851
  });
46118
46852
 
46119
46853
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
46120
- var args42, tool$uniswapV3SwapSellExactly;
46854
+ var args47, tool$uniswapV3SwapSellExactly;
46121
46855
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
46122
46856
  init_uniswapV3SwapSellExactly();
46123
46857
  init_components();
46124
46858
  init_tools();
46125
- args42 = {
46859
+ args47 = {
46126
46860
  request: UniswapSellExactlyRequest$inboundSchema
46127
46861
  };
46128
46862
  tool$uniswapV3SwapSellExactly = {
@@ -46136,9 +46870,9 @@ The transaction is executed on the specified blockchain network, and the user mu
46136
46870
  provide the necessary transaction details, including the token to sell, the token to
46137
46871
  receive, and the amount to sell. If the token being sold is WETH and needs to be
46138
46872
  wrapped, the appropriate amount will be wrapped automatically.`,
46139
- args: args42,
46140
- tool: async (client, args43, ctx) => {
46141
- const [result, apiCall] = await uniswapV3SwapSellExactly(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46873
+ args: args47,
46874
+ tool: async (client, args48, ctx) => {
46875
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46142
46876
  if (!result.ok) {
46143
46877
  return {
46144
46878
  content: [{ type: "text", text: result.error.message }],
@@ -46153,9 +46887,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
46153
46887
 
46154
46888
  // src/funcs/universalAllowance.ts
46155
46889
  function universalAllowance(client, request, options) {
46156
- return new APIPromise($do43(client, request, options));
46890
+ return new APIPromise($do48(client, request, options));
46157
46891
  }
46158
- async function $do43(client, request, options) {
46892
+ async function $do48(client, request, options) {
46159
46893
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
46160
46894
  if (!parsed.ok) {
46161
46895
  return [parsed, { status: "invalid" }];
@@ -46231,12 +46965,12 @@ var init_universalAllowance = __esm(() => {
46231
46965
  });
46232
46966
 
46233
46967
  // src/mcp-server/tools/universalAllowance.ts
46234
- var args43, tool$universalAllowance;
46968
+ var args48, tool$universalAllowance;
46235
46969
  var init_universalAllowance2 = __esm(() => {
46236
46970
  init_universalAllowance();
46237
46971
  init_operations();
46238
46972
  init_tools();
46239
- args43 = {
46973
+ args48 = {
46240
46974
  request: GenericAllowanceRequest$inboundSchema
46241
46975
  };
46242
46976
  tool$universalAllowance = {
@@ -46250,9 +46984,9 @@ tokens on their behalf.
46250
46984
  This is a crucial step before engaging in any transactions or operations within
46251
46985
  these protocols, ensuring that the protocol has the necessary permissions to manage
46252
46986
  the user's tokens securely and efficiently.`,
46253
- args: args43,
46254
- tool: async (client, args44, ctx) => {
46255
- const [result, apiCall] = await universalAllowance(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46987
+ args: args48,
46988
+ tool: async (client, args49, ctx) => {
46989
+ const [result, apiCall] = await universalAllowance(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46256
46990
  if (!result.ok) {
46257
46991
  return {
46258
46992
  content: [{ type: "text", text: result.error.message }],
@@ -46267,9 +47001,9 @@ the user's tokens securely and efficiently.`,
46267
47001
 
46268
47002
  // src/funcs/universalAllowanceSet.ts
46269
47003
  function universalAllowanceSet(client, request, options) {
46270
- return new APIPromise($do44(client, request, options));
47004
+ return new APIPromise($do49(client, request, options));
46271
47005
  }
46272
- async function $do44(client, request, options) {
47006
+ async function $do49(client, request, options) {
46273
47007
  const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
46274
47008
  if (!parsed.ok) {
46275
47009
  return [parsed, { status: "invalid" }];
@@ -46338,12 +47072,12 @@ var init_universalAllowanceSet = __esm(() => {
46338
47072
  });
46339
47073
 
46340
47074
  // src/mcp-server/tools/universalAllowanceSet.ts
46341
- var args44, tool$universalAllowanceSet;
47075
+ var args49, tool$universalAllowanceSet;
46342
47076
  var init_universalAllowanceSet2 = __esm(() => {
46343
47077
  init_universalAllowanceSet();
46344
47078
  init_components();
46345
47079
  init_tools();
46346
- args44 = {
47080
+ args49 = {
46347
47081
  request: IncreaseAllowanceRequest$inboundSchema
46348
47082
  };
46349
47083
  tool$universalAllowanceSet = {
@@ -46357,9 +47091,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
46357
47091
  This operation is crucial for ensuring that the protocol can manage the user's
46358
47092
  tokens securely and efficiently, enabling seamless transactions and operations
46359
47093
  within the DeFi ecosystem.`,
46360
- args: args44,
46361
- tool: async (client, args45, ctx) => {
46362
- const [result, apiCall] = await universalAllowanceSet(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47094
+ args: args49,
47095
+ tool: async (client, args50, ctx) => {
47096
+ const [result, apiCall] = await universalAllowanceSet(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46363
47097
  if (!result.ok) {
46364
47098
  return {
46365
47099
  content: [{ type: "text", text: result.error.message }],
@@ -46374,9 +47108,9 @@ within the DeFi ecosystem.`,
46374
47108
 
46375
47109
  // src/funcs/universalEns.ts
46376
47110
  function universalEns(client, request, options) {
46377
- return new APIPromise($do45(client, request, options));
47111
+ return new APIPromise($do50(client, request, options));
46378
47112
  }
46379
- async function $do45(client, request, options) {
47113
+ async function $do50(client, request, options) {
46380
47114
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
46381
47115
  if (!parsed.ok) {
46382
47116
  return [parsed, { status: "invalid" }];
@@ -46450,12 +47184,12 @@ var init_universalEns = __esm(() => {
46450
47184
  });
46451
47185
 
46452
47186
  // src/mcp-server/tools/universalEns.ts
46453
- var args45, tool$universalEns;
47187
+ var args50, tool$universalEns;
46454
47188
  var init_universalEns2 = __esm(() => {
46455
47189
  init_universalEns();
46456
47190
  init_operations();
46457
47191
  init_tools();
46458
- args45 = {
47192
+ args50 = {
46459
47193
  request: GenericEnsRequest$inboundSchema
46460
47194
  };
46461
47195
  tool$universalEns = {
@@ -46466,9 +47200,9 @@ An ENS name is a string ending in \`.eth\`.
46466
47200
 
46467
47201
  E.g. \`vitalik.eth\`. This endpoint can be used to
46468
47202
  query the actual ethereum wallet address behind the ENS name.`,
46469
- args: args45,
46470
- tool: async (client, args46, ctx) => {
46471
- const [result, apiCall] = await universalEns(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47203
+ args: args50,
47204
+ tool: async (client, args51, ctx) => {
47205
+ const [result, apiCall] = await universalEns(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46472
47206
  if (!result.ok) {
46473
47207
  return {
46474
47208
  content: [{ type: "text", text: result.error.message }],
@@ -46483,9 +47217,9 @@ query the actual ethereum wallet address behind the ENS name.`,
46483
47217
 
46484
47218
  // src/funcs/universalPortfolio.ts
46485
47219
  function universalPortfolio(client, request, options) {
46486
- return new APIPromise($do46(client, request, options));
47220
+ return new APIPromise($do51(client, request, options));
46487
47221
  }
46488
- async function $do46(client, request, options) {
47222
+ async function $do51(client, request, options) {
46489
47223
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
46490
47224
  if (!parsed.ok) {
46491
47225
  return [parsed, { status: "invalid" }];
@@ -46559,12 +47293,12 @@ var init_universalPortfolio = __esm(() => {
46559
47293
  });
46560
47294
 
46561
47295
  // src/mcp-server/tools/universalPortfolio.ts
46562
- var args46, tool$universalPortfolio;
47296
+ var args51, tool$universalPortfolio;
46563
47297
  var init_universalPortfolio2 = __esm(() => {
46564
47298
  init_universalPortfolio();
46565
47299
  init_operations();
46566
47300
  init_tools();
46567
- args46 = {
47301
+ args51 = {
46568
47302
  request: GenericPortfolioRequest$inboundSchema
46569
47303
  };
46570
47304
  tool$universalPortfolio = {
@@ -46575,9 +47309,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
46575
47309
 
46576
47310
  This includes the total value of the portfolio in USD and a breakdown of token
46577
47311
  balances, including their respective values and quantities.`,
46578
- args: args46,
46579
- tool: async (client, args47, ctx) => {
46580
- const [result, apiCall] = await universalPortfolio(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47312
+ args: args51,
47313
+ tool: async (client, args52, ctx) => {
47314
+ const [result, apiCall] = await universalPortfolio(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46581
47315
  if (!result.ok) {
46582
47316
  return {
46583
47317
  content: [{ type: "text", text: result.error.message }],
@@ -46592,9 +47326,9 @@ balances, including their respective values and quantities.`,
46592
47326
 
46593
47327
  // src/funcs/universalSupportedTokens.ts
46594
47328
  function universalSupportedTokens(client, request, options) {
46595
- return new APIPromise($do47(client, request, options));
47329
+ return new APIPromise($do52(client, request, options));
46596
47330
  }
46597
- async function $do47(client, request, options) {
47331
+ async function $do52(client, request, options) {
46598
47332
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
46599
47333
  if (!parsed.ok) {
46600
47334
  return [parsed, { status: "invalid" }];
@@ -46667,12 +47401,12 @@ var init_universalSupportedTokens = __esm(() => {
46667
47401
  });
46668
47402
 
46669
47403
  // src/mcp-server/tools/universalSupportedTokens.ts
46670
- var args47, tool$universalSupportedTokens;
47404
+ var args52, tool$universalSupportedTokens;
46671
47405
  var init_universalSupportedTokens2 = __esm(() => {
46672
47406
  init_universalSupportedTokens();
46673
47407
  init_operations();
46674
47408
  init_tools();
46675
- args47 = {
47409
+ args52 = {
46676
47410
  request: GenericSupportedTokensRequest$inboundSchema
46677
47411
  };
46678
47412
  tool$universalSupportedTokens = {
@@ -46680,9 +47414,9 @@ var init_universalSupportedTokens2 = __esm(() => {
46680
47414
  description: `List supported tokens
46681
47415
 
46682
47416
  Get the list of supported tokens on a chain by the Compass API.`,
46683
- args: args47,
46684
- tool: async (client, args48, ctx) => {
46685
- const [result, apiCall] = await universalSupportedTokens(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47417
+ args: args52,
47418
+ tool: async (client, args53, ctx) => {
47419
+ const [result, apiCall] = await universalSupportedTokens(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46686
47420
  if (!result.ok) {
46687
47421
  return {
46688
47422
  content: [{ type: "text", text: result.error.message }],
@@ -46697,9 +47431,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
46697
47431
 
46698
47432
  // src/funcs/universalUnwrapWeth.ts
46699
47433
  function universalUnwrapWeth(client, request, options) {
46700
- return new APIPromise($do48(client, request, options));
47434
+ return new APIPromise($do53(client, request, options));
46701
47435
  }
46702
- async function $do48(client, request, options) {
47436
+ async function $do53(client, request, options) {
46703
47437
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
46704
47438
  if (!parsed.ok) {
46705
47439
  return [parsed, { status: "invalid" }];
@@ -46768,12 +47502,12 @@ var init_universalUnwrapWeth = __esm(() => {
46768
47502
  });
46769
47503
 
46770
47504
  // src/mcp-server/tools/universalUnwrapWeth.ts
46771
- var args48, tool$universalUnwrapWeth;
47505
+ var args53, tool$universalUnwrapWeth;
46772
47506
  var init_universalUnwrapWeth2 = __esm(() => {
46773
47507
  init_universalUnwrapWeth();
46774
47508
  init_components();
46775
47509
  init_tools();
46776
- args48 = {
47510
+ args53 = {
46777
47511
  request: UnwrapWethRequest$inboundSchema
46778
47512
  };
46779
47513
  tool$universalUnwrapWeth = {
@@ -46782,9 +47516,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
46782
47516
 
46783
47517
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
46784
47518
  can be used for gas and other native purposes.`,
46785
- args: args48,
46786
- tool: async (client, args49, ctx) => {
46787
- const [result, apiCall] = await universalUnwrapWeth(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47519
+ args: args53,
47520
+ tool: async (client, args54, ctx) => {
47521
+ const [result, apiCall] = await universalUnwrapWeth(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46788
47522
  if (!result.ok) {
46789
47523
  return {
46790
47524
  content: [{ type: "text", text: result.error.message }],
@@ -46799,9 +47533,9 @@ can be used for gas and other native purposes.`,
46799
47533
 
46800
47534
  // src/funcs/universalVisualizePortfolio.ts
46801
47535
  function universalVisualizePortfolio(client, request, options) {
46802
- return new APIPromise($do49(client, request, options));
47536
+ return new APIPromise($do54(client, request, options));
46803
47537
  }
46804
- async function $do49(client, request, options) {
47538
+ async function $do54(client, request, options) {
46805
47539
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
46806
47540
  if (!parsed.ok) {
46807
47541
  return [parsed, { status: "invalid" }];
@@ -46875,12 +47609,12 @@ var init_universalVisualizePortfolio = __esm(() => {
46875
47609
  });
46876
47610
 
46877
47611
  // src/mcp-server/tools/universalVisualizePortfolio.ts
46878
- var args49, tool$universalVisualizePortfolio;
47612
+ var args54, tool$universalVisualizePortfolio;
46879
47613
  var init_universalVisualizePortfolio2 = __esm(() => {
46880
47614
  init_universalVisualizePortfolio();
46881
47615
  init_operations();
46882
47616
  init_tools();
46883
- args49 = {
47617
+ args54 = {
46884
47618
  request: GenericVisualizePortfolioRequest$inboundSchema
46885
47619
  };
46886
47620
  tool$universalVisualizePortfolio = {
@@ -46892,9 +47626,9 @@ Generate a visual representation of the token portfolio for a wallet address.
46892
47626
  The response is an SVG image of a pie chart depicting the relative distribution of
46893
47627
  tokens held, colored and labeled with token symbols, percentages and token values in
46894
47628
  USD.`,
46895
- args: args49,
46896
- tool: async (client, args50, ctx) => {
46897
- const [result, apiCall] = await universalVisualizePortfolio(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47629
+ args: args54,
47630
+ tool: async (client, args55, ctx) => {
47631
+ const [result, apiCall] = await universalVisualizePortfolio(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46898
47632
  if (!result.ok) {
46899
47633
  return {
46900
47634
  content: [{ type: "text", text: result.error.message }],
@@ -46909,9 +47643,9 @@ USD.`,
46909
47643
 
46910
47644
  // src/funcs/universalWrapEth.ts
46911
47645
  function universalWrapEth(client, request, options) {
46912
- return new APIPromise($do50(client, request, options));
47646
+ return new APIPromise($do55(client, request, options));
46913
47647
  }
46914
- async function $do50(client, request, options) {
47648
+ async function $do55(client, request, options) {
46915
47649
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
46916
47650
  if (!parsed.ok) {
46917
47651
  return [parsed, { status: "invalid" }];
@@ -46980,12 +47714,12 @@ var init_universalWrapEth = __esm(() => {
46980
47714
  });
46981
47715
 
46982
47716
  // src/mcp-server/tools/universalWrapEth.ts
46983
- var args50, tool$universalWrapEth;
47717
+ var args55, tool$universalWrapEth;
46984
47718
  var init_universalWrapEth2 = __esm(() => {
46985
47719
  init_universalWrapEth();
46986
47720
  init_components();
46987
47721
  init_tools();
46988
- args50 = {
47722
+ args55 = {
46989
47723
  request: WrapEthRequest$inboundSchema
46990
47724
  };
46991
47725
  tool$universalWrapEth = {
@@ -46994,9 +47728,9 @@ var init_universalWrapEth2 = __esm(() => {
46994
47728
 
46995
47729
  Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
46996
47730
  it to be traded on DeFi protocols.`,
46997
- args: args50,
46998
- tool: async (client, args51, ctx) => {
46999
- const [result, apiCall] = await universalWrapEth(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47731
+ args: args55,
47732
+ tool: async (client, args56, ctx) => {
47733
+ const [result, apiCall] = await universalWrapEth(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47000
47734
  if (!result.ok) {
47001
47735
  return {
47002
47736
  content: [{ type: "text", text: result.error.message }],
@@ -47013,7 +47747,7 @@ it to be traded on DeFi protocols.`,
47013
47747
  function createMCPServer(deps) {
47014
47748
  const server = new McpServer({
47015
47749
  name: "CompassApiSDK",
47016
- version: "0.0.12"
47750
+ version: "0.0.13"
47017
47751
  });
47018
47752
  const client = new CompassApiSDKCore({
47019
47753
  apiKeyAuth: deps.apiKeyAuth,
@@ -47053,6 +47787,11 @@ function createMCPServer(deps) {
47053
47787
  tool(tool$morphoWithdrawCollateral);
47054
47788
  tool(tool$morphoBorrow);
47055
47789
  tool(tool$morphoRepay);
47790
+ tool(tool$skyPosition);
47791
+ tool(tool$skyBuy);
47792
+ tool(tool$skySell);
47793
+ tool(tool$skyDeposit);
47794
+ tool(tool$skyWithdraw);
47056
47795
  tool(tool$tokenAddress);
47057
47796
  tool(tool$tokenPrice);
47058
47797
  tool(tool$tokenBalance);
@@ -47110,6 +47849,11 @@ var init_server2 = __esm(() => {
47110
47849
  init_morphoVaults2();
47111
47850
  init_morphoWithdraw2();
47112
47851
  init_morphoWithdrawCollateral2();
47852
+ init_skyBuy2();
47853
+ init_skyDeposit2();
47854
+ init_skyPosition2();
47855
+ init_skySell2();
47856
+ init_skyWithdraw2();
47113
47857
  init_tokenAddress2();
47114
47858
  init_tokenBalance2();
47115
47859
  init_tokenPrice2();
@@ -48324,7 +49068,7 @@ var routes = an({
48324
49068
  var app = He(routes, {
48325
49069
  name: "mcp",
48326
49070
  versionInfo: {
48327
- currentVersion: "0.0.12"
49071
+ currentVersion: "0.0.13"
48328
49072
  }
48329
49073
  });
48330
49074
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -48332,5 +49076,5 @@ export {
48332
49076
  app
48333
49077
  };
48334
49078
 
48335
- //# debugId=21648F64957645AB64756E2164756E21
49079
+ //# debugId=27D71A19A4D8A3CD64756E2164756E21
48336
49080
  //# sourceMappingURL=mcp-server.js.map