@compass-labs/api-sdk 0.0.24 → 0.0.26

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 (462) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +720 -418
  3. package/bin/mcp-server.js.map +55 -56
  4. package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts +27 -0
  5. package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/transactionBatchingAaveLoop.js +126 -0
  7. package/dist/commonjs/funcs/transactionBatchingAaveLoop.js.map +1 -0
  8. package/dist/commonjs/lib/config.d.ts +3 -3
  9. package/dist/commonjs/lib/config.js +3 -3
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  12. package/dist/commonjs/mcp-server/server.js +3 -1
  13. package/dist/commonjs/mcp-server/server.js.map +1 -1
  14. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts +8 -0
  15. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
  16. package/dist/commonjs/{models/components/action.js → mcp-server/tools/transactionBatchingAaveLoop.js} +35 -27
  17. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
  18. package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts +92 -5
  19. package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js +121 -6
  21. package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js.map +1 -1
  22. package/dist/commonjs/models/components/aavelooprequest.d.ts +109 -0
  23. package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -0
  24. package/dist/commonjs/models/components/aavelooprequest.js +132 -0
  25. package/dist/commonjs/models/components/aavelooprequest.js.map +1 -0
  26. package/dist/commonjs/models/components/borrow.d.ts +69 -12
  27. package/dist/commonjs/models/components/borrow.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/borrow.js +39 -13
  29. package/dist/commonjs/models/components/borrow.js.map +1 -1
  30. package/dist/commonjs/models/components/index.d.ts +1 -4
  31. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/index.js +1 -4
  33. package/dist/commonjs/models/components/index.js.map +1 -1
  34. package/dist/commonjs/models/components/liquidationcall.d.ts +32 -14
  35. package/dist/commonjs/models/components/liquidationcall.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/liquidationcall.js +23 -14
  37. package/dist/commonjs/models/components/liquidationcall.js.map +1 -1
  38. package/dist/commonjs/models/components/morphoborrowrequest.d.ts +27 -5
  39. package/dist/commonjs/models/components/morphoborrowrequest.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/morphoborrowrequest.js +22 -4
  41. package/dist/commonjs/models/components/morphoborrowrequest.js.map +1 -1
  42. package/dist/commonjs/models/components/morphodepositrequest.d.ts +27 -5
  43. package/dist/commonjs/models/components/morphodepositrequest.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/morphodepositrequest.js +22 -4
  45. package/dist/commonjs/models/components/morphodepositrequest.js.map +1 -1
  46. package/dist/commonjs/models/components/morphorepayrequest.d.ts +27 -5
  47. package/dist/commonjs/models/components/morphorepayrequest.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/morphorepayrequest.js +22 -4
  49. package/dist/commonjs/models/components/morphorepayrequest.js.map +1 -1
  50. package/dist/commonjs/models/components/morphosetvaultallowancerequest.d.ts +27 -5
  51. package/dist/commonjs/models/components/morphosetvaultallowancerequest.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/morphosetvaultallowancerequest.js +22 -4
  53. package/dist/commonjs/models/components/morphosetvaultallowancerequest.js.map +1 -1
  54. package/dist/commonjs/models/components/morphosupplycollateralrequest.d.ts +27 -5
  55. package/dist/commonjs/models/components/morphosupplycollateralrequest.d.ts.map +1 -1
  56. package/dist/commonjs/models/components/morphosupplycollateralrequest.js +22 -4
  57. package/dist/commonjs/models/components/morphosupplycollateralrequest.js.map +1 -1
  58. package/dist/commonjs/models/components/morphowithdrawcollateralrequest.d.ts +27 -5
  59. package/dist/commonjs/models/components/morphowithdrawcollateralrequest.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/morphowithdrawcollateralrequest.js +22 -4
  61. package/dist/commonjs/models/components/morphowithdrawcollateralrequest.js.map +1 -1
  62. package/dist/commonjs/models/components/morphowithdrawrequest.d.ts +27 -5
  63. package/dist/commonjs/models/components/morphowithdrawrequest.d.ts.map +1 -1
  64. package/dist/commonjs/models/components/morphowithdrawrequest.js +22 -4
  65. package/dist/commonjs/models/components/morphowithdrawrequest.js.map +1 -1
  66. package/dist/commonjs/models/components/redeemunderlying.d.ts +32 -4
  67. package/dist/commonjs/models/components/redeemunderlying.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/redeemunderlying.js +14 -4
  69. package/dist/commonjs/models/components/redeemunderlying.js.map +1 -1
  70. package/dist/commonjs/models/components/repay.d.ts +29 -4
  71. package/dist/commonjs/models/components/repay.d.ts.map +1 -1
  72. package/dist/commonjs/models/components/repay.js +14 -4
  73. package/dist/commonjs/models/components/repay.js.map +1 -1
  74. package/dist/commonjs/models/components/reserve.d.ts +25 -3
  75. package/dist/commonjs/models/components/reserve.d.ts.map +1 -1
  76. package/dist/commonjs/models/components/reserve.js +9 -4
  77. package/dist/commonjs/models/components/reserve.js.map +1 -1
  78. package/dist/commonjs/models/components/supply.d.ts +32 -4
  79. package/dist/commonjs/models/components/supply.d.ts.map +1 -1
  80. package/dist/commonjs/models/components/supply.js +14 -4
  81. package/dist/commonjs/models/components/supply.js.map +1 -1
  82. package/dist/commonjs/models/components/swapborrowrate.d.ts +27 -8
  83. package/dist/commonjs/models/components/swapborrowrate.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/swapborrowrate.js +18 -8
  85. package/dist/commonjs/models/components/swapborrowrate.js.map +1 -1
  86. package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts +15 -15
  87. package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
  88. package/dist/commonjs/models/components/uniswapbuyexactlyparams.js +18 -20
  89. package/dist/commonjs/models/components/uniswapbuyexactlyparams.js.map +1 -1
  90. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts +15 -15
  91. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
  92. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js +18 -20
  93. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js.map +1 -1
  94. package/dist/commonjs/models/components/usageascollateral.d.ts +26 -4
  95. package/dist/commonjs/models/components/usageascollateral.d.ts.map +1 -1
  96. package/dist/commonjs/models/components/usageascollateral.js +14 -4
  97. package/dist/commonjs/models/components/usageascollateral.js.map +1 -1
  98. package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts +9 -0
  99. package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
  100. package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -1
  101. package/dist/commonjs/models/operations/aaveliquiditychange.d.ts +7 -6
  102. package/dist/commonjs/models/operations/aaveliquiditychange.d.ts.map +1 -1
  103. package/dist/commonjs/models/operations/aaveliquiditychange.js.map +1 -1
  104. package/dist/commonjs/models/operations/aaverate.d.ts +1 -6
  105. package/dist/commonjs/models/operations/aaverate.d.ts.map +1 -1
  106. package/dist/commonjs/models/operations/aaverate.js.map +1 -1
  107. package/dist/commonjs/models/operations/aavereserveoverview.d.ts +1 -6
  108. package/dist/commonjs/models/operations/aavereserveoverview.d.ts.map +1 -1
  109. package/dist/commonjs/models/operations/aavereserveoverview.js.map +1 -1
  110. package/dist/commonjs/models/operations/aavetokenprice.d.ts +1 -6
  111. package/dist/commonjs/models/operations/aavetokenprice.d.ts.map +1 -1
  112. package/dist/commonjs/models/operations/aavetokenprice.js.map +1 -1
  113. package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts +4 -6
  114. package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
  115. package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
  116. package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts +3 -0
  117. package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
  118. package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
  119. package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -0
  120. package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
  121. package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
  122. package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts +5 -12
  123. package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
  124. package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
  125. package/dist/commonjs/models/operations/genericallowance.d.ts +13 -6
  126. package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
  127. package/dist/commonjs/models/operations/genericallowance.js +3 -0
  128. package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
  129. package/dist/commonjs/models/operations/genericens.d.ts +3 -0
  130. package/dist/commonjs/models/operations/genericens.d.ts.map +1 -1
  131. package/dist/commonjs/models/operations/genericens.js.map +1 -1
  132. package/dist/commonjs/models/operations/genericportfolio.d.ts +3 -0
  133. package/dist/commonjs/models/operations/genericportfolio.d.ts.map +1 -1
  134. package/dist/commonjs/models/operations/genericportfolio.js.map +1 -1
  135. package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +3 -0
  136. package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
  137. package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +1 -1
  138. package/dist/commonjs/models/operations/morphomarketposition.d.ts +8 -14
  139. package/dist/commonjs/models/operations/morphomarketposition.d.ts.map +1 -1
  140. package/dist/commonjs/models/operations/morphomarketposition.js +1 -5
  141. package/dist/commonjs/models/operations/morphomarketposition.js.map +1 -1
  142. package/dist/commonjs/models/operations/morphomarkets.d.ts +8 -14
  143. package/dist/commonjs/models/operations/morphomarkets.d.ts.map +1 -1
  144. package/dist/commonjs/models/operations/morphomarkets.js +1 -5
  145. package/dist/commonjs/models/operations/morphomarkets.js.map +1 -1
  146. package/dist/commonjs/models/operations/morphovaultposition.d.ts +8 -14
  147. package/dist/commonjs/models/operations/morphovaultposition.d.ts.map +1 -1
  148. package/dist/commonjs/models/operations/morphovaultposition.js +1 -5
  149. package/dist/commonjs/models/operations/morphovaultposition.js.map +1 -1
  150. package/dist/commonjs/models/operations/morphovaults.d.ts +7 -16
  151. package/dist/commonjs/models/operations/morphovaults.d.ts.map +1 -1
  152. package/dist/commonjs/models/operations/morphovaults.js +3 -7
  153. package/dist/commonjs/models/operations/morphovaults.js.map +1 -1
  154. package/dist/commonjs/models/operations/skyposition.d.ts +3 -0
  155. package/dist/commonjs/models/operations/skyposition.d.ts.map +1 -1
  156. package/dist/commonjs/models/operations/skyposition.js.map +1 -1
  157. package/dist/commonjs/models/operations/tokenaddress.d.ts +1 -6
  158. package/dist/commonjs/models/operations/tokenaddress.d.ts.map +1 -1
  159. package/dist/commonjs/models/operations/tokenaddress.js.map +1 -1
  160. package/dist/commonjs/models/operations/tokenbalance.d.ts +9 -0
  161. package/dist/commonjs/models/operations/tokenbalance.d.ts.map +1 -1
  162. package/dist/commonjs/models/operations/tokenbalance.js.map +1 -1
  163. package/dist/commonjs/models/operations/tokenprice.d.ts +1 -6
  164. package/dist/commonjs/models/operations/tokenprice.d.ts.map +1 -1
  165. package/dist/commonjs/models/operations/tokenprice.js.map +1 -1
  166. package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -0
  167. package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
  168. package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
  169. package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -0
  170. package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
  171. package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
  172. package/dist/commonjs/models/operations/uniswappoolprice.d.ts +3 -17
  173. package/dist/commonjs/models/operations/uniswappoolprice.d.ts.map +1 -1
  174. package/dist/commonjs/models/operations/uniswappoolprice.js.map +1 -1
  175. package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts +9 -17
  176. package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
  177. package/dist/commonjs/models/operations/uniswapquotebuyexactly.js.map +1 -1
  178. package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts +9 -17
  179. package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
  180. package/dist/commonjs/models/operations/uniswapquotesellexactly.js.map +1 -1
  181. package/dist/commonjs/sdk/transactionbatching.d.ts +17 -0
  182. package/dist/commonjs/sdk/transactionbatching.d.ts.map +1 -1
  183. package/dist/commonjs/sdk/transactionbatching.js +20 -0
  184. package/dist/commonjs/sdk/transactionbatching.js.map +1 -1
  185. package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts +27 -0
  186. package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
  187. package/dist/esm/funcs/transactionBatchingAaveLoop.js +90 -0
  188. package/dist/esm/funcs/transactionBatchingAaveLoop.js.map +1 -0
  189. package/dist/esm/lib/config.d.ts +3 -3
  190. package/dist/esm/lib/config.js +3 -3
  191. package/dist/esm/mcp-server/mcp-server.js +1 -1
  192. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  193. package/dist/esm/mcp-server/server.js +3 -1
  194. package/dist/esm/mcp-server/server.js.map +1 -1
  195. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts +8 -0
  196. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
  197. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js +38 -0
  198. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
  199. package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts +92 -5
  200. package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -1
  201. package/dist/esm/models/components/aavehistoricaltransactionsresponse.js +118 -5
  202. package/dist/esm/models/components/aavehistoricaltransactionsresponse.js.map +1 -1
  203. package/dist/esm/models/components/aavelooprequest.d.ts +109 -0
  204. package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -0
  205. package/dist/esm/models/components/aavelooprequest.js +92 -0
  206. package/dist/esm/models/components/aavelooprequest.js.map +1 -0
  207. package/dist/esm/models/components/borrow.d.ts +69 -12
  208. package/dist/esm/models/components/borrow.d.ts.map +1 -1
  209. package/dist/esm/models/components/borrow.js +38 -12
  210. package/dist/esm/models/components/borrow.js.map +1 -1
  211. package/dist/esm/models/components/index.d.ts +1 -4
  212. package/dist/esm/models/components/index.d.ts.map +1 -1
  213. package/dist/esm/models/components/index.js +1 -4
  214. package/dist/esm/models/components/index.js.map +1 -1
  215. package/dist/esm/models/components/liquidationcall.d.ts +32 -14
  216. package/dist/esm/models/components/liquidationcall.d.ts.map +1 -1
  217. package/dist/esm/models/components/liquidationcall.js +23 -14
  218. package/dist/esm/models/components/liquidationcall.js.map +1 -1
  219. package/dist/esm/models/components/morphoborrowrequest.d.ts +27 -5
  220. package/dist/esm/models/components/morphoborrowrequest.d.ts.map +1 -1
  221. package/dist/esm/models/components/morphoborrowrequest.js +21 -3
  222. package/dist/esm/models/components/morphoborrowrequest.js.map +1 -1
  223. package/dist/esm/models/components/morphodepositrequest.d.ts +27 -5
  224. package/dist/esm/models/components/morphodepositrequest.d.ts.map +1 -1
  225. package/dist/esm/models/components/morphodepositrequest.js +21 -3
  226. package/dist/esm/models/components/morphodepositrequest.js.map +1 -1
  227. package/dist/esm/models/components/morphorepayrequest.d.ts +27 -5
  228. package/dist/esm/models/components/morphorepayrequest.d.ts.map +1 -1
  229. package/dist/esm/models/components/morphorepayrequest.js +21 -3
  230. package/dist/esm/models/components/morphorepayrequest.js.map +1 -1
  231. package/dist/esm/models/components/morphosetvaultallowancerequest.d.ts +27 -5
  232. package/dist/esm/models/components/morphosetvaultallowancerequest.d.ts.map +1 -1
  233. package/dist/esm/models/components/morphosetvaultallowancerequest.js +21 -3
  234. package/dist/esm/models/components/morphosetvaultallowancerequest.js.map +1 -1
  235. package/dist/esm/models/components/morphosupplycollateralrequest.d.ts +27 -5
  236. package/dist/esm/models/components/morphosupplycollateralrequest.d.ts.map +1 -1
  237. package/dist/esm/models/components/morphosupplycollateralrequest.js +21 -3
  238. package/dist/esm/models/components/morphosupplycollateralrequest.js.map +1 -1
  239. package/dist/esm/models/components/morphowithdrawcollateralrequest.d.ts +27 -5
  240. package/dist/esm/models/components/morphowithdrawcollateralrequest.d.ts.map +1 -1
  241. package/dist/esm/models/components/morphowithdrawcollateralrequest.js +21 -3
  242. package/dist/esm/models/components/morphowithdrawcollateralrequest.js.map +1 -1
  243. package/dist/esm/models/components/morphowithdrawrequest.d.ts +27 -5
  244. package/dist/esm/models/components/morphowithdrawrequest.d.ts.map +1 -1
  245. package/dist/esm/models/components/morphowithdrawrequest.js +21 -3
  246. package/dist/esm/models/components/morphowithdrawrequest.js.map +1 -1
  247. package/dist/esm/models/components/redeemunderlying.d.ts +32 -4
  248. package/dist/esm/models/components/redeemunderlying.d.ts.map +1 -1
  249. package/dist/esm/models/components/redeemunderlying.js +14 -4
  250. package/dist/esm/models/components/redeemunderlying.js.map +1 -1
  251. package/dist/esm/models/components/repay.d.ts +29 -4
  252. package/dist/esm/models/components/repay.d.ts.map +1 -1
  253. package/dist/esm/models/components/repay.js +14 -4
  254. package/dist/esm/models/components/repay.js.map +1 -1
  255. package/dist/esm/models/components/reserve.d.ts +25 -3
  256. package/dist/esm/models/components/reserve.d.ts.map +1 -1
  257. package/dist/esm/models/components/reserve.js +9 -4
  258. package/dist/esm/models/components/reserve.js.map +1 -1
  259. package/dist/esm/models/components/supply.d.ts +32 -4
  260. package/dist/esm/models/components/supply.d.ts.map +1 -1
  261. package/dist/esm/models/components/supply.js +14 -4
  262. package/dist/esm/models/components/supply.js.map +1 -1
  263. package/dist/esm/models/components/swapborrowrate.d.ts +27 -8
  264. package/dist/esm/models/components/swapborrowrate.d.ts.map +1 -1
  265. package/dist/esm/models/components/swapborrowrate.js +18 -8
  266. package/dist/esm/models/components/swapborrowrate.js.map +1 -1
  267. package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts +15 -15
  268. package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
  269. package/dist/esm/models/components/uniswapbuyexactlyparams.js +15 -17
  270. package/dist/esm/models/components/uniswapbuyexactlyparams.js.map +1 -1
  271. package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts +15 -15
  272. package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
  273. package/dist/esm/models/components/uniswapbuyexactlyrequest.js +15 -17
  274. package/dist/esm/models/components/uniswapbuyexactlyrequest.js.map +1 -1
  275. package/dist/esm/models/components/usageascollateral.d.ts +26 -4
  276. package/dist/esm/models/components/usageascollateral.d.ts.map +1 -1
  277. package/dist/esm/models/components/usageascollateral.js +14 -4
  278. package/dist/esm/models/components/usageascollateral.js.map +1 -1
  279. package/dist/esm/models/operations/aavehistoricaltransactions.d.ts +9 -0
  280. package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
  281. package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -1
  282. package/dist/esm/models/operations/aaveliquiditychange.d.ts +7 -6
  283. package/dist/esm/models/operations/aaveliquiditychange.d.ts.map +1 -1
  284. package/dist/esm/models/operations/aaveliquiditychange.js.map +1 -1
  285. package/dist/esm/models/operations/aaverate.d.ts +1 -6
  286. package/dist/esm/models/operations/aaverate.d.ts.map +1 -1
  287. package/dist/esm/models/operations/aaverate.js.map +1 -1
  288. package/dist/esm/models/operations/aavereserveoverview.d.ts +1 -6
  289. package/dist/esm/models/operations/aavereserveoverview.d.ts.map +1 -1
  290. package/dist/esm/models/operations/aavereserveoverview.js.map +1 -1
  291. package/dist/esm/models/operations/aavetokenprice.d.ts +1 -6
  292. package/dist/esm/models/operations/aavetokenprice.d.ts.map +1 -1
  293. package/dist/esm/models/operations/aavetokenprice.js.map +1 -1
  294. package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts +4 -6
  295. package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
  296. package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
  297. package/dist/esm/models/operations/aaveuserpositionsummary.d.ts +3 -0
  298. package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
  299. package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
  300. package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -0
  301. package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
  302. package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
  303. package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts +5 -12
  304. package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
  305. package/dist/esm/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
  306. package/dist/esm/models/operations/genericallowance.d.ts +13 -6
  307. package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
  308. package/dist/esm/models/operations/genericallowance.js +3 -0
  309. package/dist/esm/models/operations/genericallowance.js.map +1 -1
  310. package/dist/esm/models/operations/genericens.d.ts +3 -0
  311. package/dist/esm/models/operations/genericens.d.ts.map +1 -1
  312. package/dist/esm/models/operations/genericens.js.map +1 -1
  313. package/dist/esm/models/operations/genericportfolio.d.ts +3 -0
  314. package/dist/esm/models/operations/genericportfolio.d.ts.map +1 -1
  315. package/dist/esm/models/operations/genericportfolio.js.map +1 -1
  316. package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +3 -0
  317. package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
  318. package/dist/esm/models/operations/genericvisualizeportfolio.js.map +1 -1
  319. package/dist/esm/models/operations/morphomarketposition.d.ts +8 -14
  320. package/dist/esm/models/operations/morphomarketposition.d.ts.map +1 -1
  321. package/dist/esm/models/operations/morphomarketposition.js +1 -5
  322. package/dist/esm/models/operations/morphomarketposition.js.map +1 -1
  323. package/dist/esm/models/operations/morphomarkets.d.ts +8 -14
  324. package/dist/esm/models/operations/morphomarkets.d.ts.map +1 -1
  325. package/dist/esm/models/operations/morphomarkets.js +1 -5
  326. package/dist/esm/models/operations/morphomarkets.js.map +1 -1
  327. package/dist/esm/models/operations/morphovaultposition.d.ts +8 -14
  328. package/dist/esm/models/operations/morphovaultposition.d.ts.map +1 -1
  329. package/dist/esm/models/operations/morphovaultposition.js +1 -5
  330. package/dist/esm/models/operations/morphovaultposition.js.map +1 -1
  331. package/dist/esm/models/operations/morphovaults.d.ts +7 -16
  332. package/dist/esm/models/operations/morphovaults.d.ts.map +1 -1
  333. package/dist/esm/models/operations/morphovaults.js +3 -7
  334. package/dist/esm/models/operations/morphovaults.js.map +1 -1
  335. package/dist/esm/models/operations/skyposition.d.ts +3 -0
  336. package/dist/esm/models/operations/skyposition.d.ts.map +1 -1
  337. package/dist/esm/models/operations/skyposition.js.map +1 -1
  338. package/dist/esm/models/operations/tokenaddress.d.ts +1 -6
  339. package/dist/esm/models/operations/tokenaddress.d.ts.map +1 -1
  340. package/dist/esm/models/operations/tokenaddress.js.map +1 -1
  341. package/dist/esm/models/operations/tokenbalance.d.ts +9 -0
  342. package/dist/esm/models/operations/tokenbalance.d.ts.map +1 -1
  343. package/dist/esm/models/operations/tokenbalance.js.map +1 -1
  344. package/dist/esm/models/operations/tokenprice.d.ts +1 -6
  345. package/dist/esm/models/operations/tokenprice.d.ts.map +1 -1
  346. package/dist/esm/models/operations/tokenprice.js.map +1 -1
  347. package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -0
  348. package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
  349. package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
  350. package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -0
  351. package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
  352. package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
  353. package/dist/esm/models/operations/uniswappoolprice.d.ts +3 -17
  354. package/dist/esm/models/operations/uniswappoolprice.d.ts.map +1 -1
  355. package/dist/esm/models/operations/uniswappoolprice.js.map +1 -1
  356. package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts +9 -17
  357. package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
  358. package/dist/esm/models/operations/uniswapquotebuyexactly.js.map +1 -1
  359. package/dist/esm/models/operations/uniswapquotesellexactly.d.ts +9 -17
  360. package/dist/esm/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
  361. package/dist/esm/models/operations/uniswapquotesellexactly.js.map +1 -1
  362. package/dist/esm/sdk/transactionbatching.d.ts +17 -0
  363. package/dist/esm/sdk/transactionbatching.d.ts.map +1 -1
  364. package/dist/esm/sdk/transactionbatching.js +20 -0
  365. package/dist/esm/sdk/transactionbatching.js.map +1 -1
  366. package/docs/sdks/aavev3/README.md +14 -14
  367. package/docs/sdks/aerodromeslipstream/README.md +30 -30
  368. package/docs/sdks/morpho/README.md +16 -30
  369. package/docs/sdks/sky/README.md +2 -2
  370. package/docs/sdks/token/README.md +2 -2
  371. package/docs/sdks/transactionbatching/README.md +128 -16
  372. package/docs/sdks/uniswapv3/README.md +28 -28
  373. package/docs/sdks/universal/README.md +4 -4
  374. package/jsr.json +1 -1
  375. package/package.json +1 -1
  376. package/src/funcs/transactionBatchingAaveLoop.ts +173 -0
  377. package/src/lib/config.ts +3 -3
  378. package/src/mcp-server/mcp-server.ts +1 -1
  379. package/src/mcp-server/server.ts +3 -1
  380. package/src/mcp-server/tools/transactionBatchingAaveLoop.ts +47 -0
  381. package/src/models/components/aavehistoricaltransactionsresponse.ts +275 -13
  382. package/src/models/components/aavelooprequest.ts +219 -0
  383. package/src/models/components/borrow.ts +87 -24
  384. package/src/models/components/index.ts +1 -4
  385. package/src/models/components/liquidationcall.ts +58 -35
  386. package/src/models/components/morphoborrowrequest.ts +33 -7
  387. package/src/models/components/morphodepositrequest.ts +33 -7
  388. package/src/models/components/morphorepayrequest.ts +33 -7
  389. package/src/models/components/morphosetvaultallowancerequest.ts +35 -7
  390. package/src/models/components/morphosupplycollateralrequest.ts +34 -7
  391. package/src/models/components/morphowithdrawcollateralrequest.ts +36 -7
  392. package/src/models/components/morphowithdrawrequest.ts +33 -7
  393. package/src/models/components/redeemunderlying.ts +46 -8
  394. package/src/models/components/repay.ts +43 -8
  395. package/src/models/components/reserve.ts +37 -7
  396. package/src/models/components/supply.ts +46 -8
  397. package/src/models/components/swapborrowrate.ts +45 -16
  398. package/src/models/components/uniswapbuyexactlyparams.ts +26 -28
  399. package/src/models/components/uniswapbuyexactlyrequest.ts +26 -29
  400. package/src/models/components/usageascollateral.ts +40 -8
  401. package/src/models/operations/aavehistoricaltransactions.ts +9 -0
  402. package/src/models/operations/aaveliquiditychange.ts +7 -6
  403. package/src/models/operations/aaverate.ts +1 -6
  404. package/src/models/operations/aavereserveoverview.ts +1 -6
  405. package/src/models/operations/aavetokenprice.ts +1 -6
  406. package/src/models/operations/aaveuserpositionpertoken.ts +4 -6
  407. package/src/models/operations/aaveuserpositionsummary.ts +3 -0
  408. package/src/models/operations/aerodromeslipstreamliquidityprovisionpositions.ts +3 -0
  409. package/src/models/operations/aerodromeslipstreampoolprice.ts +5 -12
  410. package/src/models/operations/genericallowance.ts +13 -6
  411. package/src/models/operations/genericens.ts +3 -0
  412. package/src/models/operations/genericportfolio.ts +3 -0
  413. package/src/models/operations/genericvisualizeportfolio.ts +3 -0
  414. package/src/models/operations/morphomarketposition.ts +6 -10
  415. package/src/models/operations/morphomarkets.ts +6 -10
  416. package/src/models/operations/morphovaultposition.ts +6 -10
  417. package/src/models/operations/morphovaults.ts +7 -14
  418. package/src/models/operations/skyposition.ts +3 -0
  419. package/src/models/operations/tokenaddress.ts +1 -6
  420. package/src/models/operations/tokenbalance.ts +9 -0
  421. package/src/models/operations/tokenprice.ts +1 -6
  422. package/src/models/operations/uniswapliquidityprovisioninrange.ts +3 -0
  423. package/src/models/operations/uniswapliquidityprovisionpositions.ts +3 -0
  424. package/src/models/operations/uniswappoolprice.ts +3 -17
  425. package/src/models/operations/uniswapquotebuyexactly.ts +9 -17
  426. package/src/models/operations/uniswapquotesellexactly.ts +9 -17
  427. package/src/sdk/transactionbatching.ts +28 -0
  428. package/dist/commonjs/models/components/aavehistoricaltransactionbase.d.ts +0 -57
  429. package/dist/commonjs/models/components/aavehistoricaltransactionbase.d.ts.map +0 -1
  430. package/dist/commonjs/models/components/aavehistoricaltransactionbase.js +0 -97
  431. package/dist/commonjs/models/components/aavehistoricaltransactionbase.js.map +0 -1
  432. package/dist/commonjs/models/components/action.d.ts +0 -43
  433. package/dist/commonjs/models/components/action.d.ts.map +0 -1
  434. package/dist/commonjs/models/components/action.js.map +0 -1
  435. package/dist/commonjs/models/components/collateralreserve.d.ts +0 -31
  436. package/dist/commonjs/models/components/collateralreserve.d.ts.map +0 -1
  437. package/dist/commonjs/models/components/collateralreserve.js +0 -71
  438. package/dist/commonjs/models/components/collateralreserve.js.map +0 -1
  439. package/dist/commonjs/models/components/principalreserve.d.ts +0 -31
  440. package/dist/commonjs/models/components/principalreserve.d.ts.map +0 -1
  441. package/dist/commonjs/models/components/principalreserve.js +0 -71
  442. package/dist/commonjs/models/components/principalreserve.js.map +0 -1
  443. package/dist/esm/models/components/aavehistoricaltransactionbase.d.ts +0 -57
  444. package/dist/esm/models/components/aavehistoricaltransactionbase.d.ts.map +0 -1
  445. package/dist/esm/models/components/aavehistoricaltransactionbase.js +0 -59
  446. package/dist/esm/models/components/aavehistoricaltransactionbase.js.map +0 -1
  447. package/dist/esm/models/components/action.d.ts +0 -43
  448. package/dist/esm/models/components/action.d.ts.map +0 -1
  449. package/dist/esm/models/components/action.js +0 -30
  450. package/dist/esm/models/components/action.js.map +0 -1
  451. package/dist/esm/models/components/collateralreserve.d.ts +0 -31
  452. package/dist/esm/models/components/collateralreserve.d.ts.map +0 -1
  453. package/dist/esm/models/components/collateralreserve.js +0 -33
  454. package/dist/esm/models/components/collateralreserve.js.map +0 -1
  455. package/dist/esm/models/components/principalreserve.d.ts +0 -31
  456. package/dist/esm/models/components/principalreserve.d.ts.map +0 -1
  457. package/dist/esm/models/components/principalreserve.js +0 -33
  458. package/dist/esm/models/components/principalreserve.js.map +0 -1
  459. package/src/models/components/aavehistoricaltransactionbase.ts +0 -155
  460. package/src/models/components/action.ts +0 -36
  461. package/src/models/components/collateralreserve.ts +0 -70
  462. package/src/models/components/principalreserve.ts +0 -70
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.24",
34189
- genVersion: "2.599.0",
34190
- userAgent: "speakeasy-sdk/typescript 0.0.24 2.599.0 0.0.1 @compass-labs/api-sdk"
34188
+ sdkVersion: "0.0.26",
34189
+ genVersion: "2.603.1",
34190
+ userAgent: "speakeasy-sdk/typescript 0.0.26 2.603.1 0.0.1 @compass-labs/api-sdk"
34191
34191
  };
34192
34192
  });
34193
34193
 
@@ -35688,38 +35688,22 @@ var init_aaveborrowrequest = __esm(() => {
35688
35688
  })(AaveBorrowRequest$ ||= {});
35689
35689
  });
35690
35690
 
35691
- // src/models/components/action.ts
35692
- var Action, Action$inboundSchema, Action$outboundSchema, Action$;
35693
- var init_action = __esm(() => {
35694
- init_lib();
35695
- Action = {
35696
- Supply: "supply",
35697
- RedeemUnderlying: "redeemUnderlying",
35698
- Borrow: "borrow",
35699
- UsageAsCollateral: "usageAsCollateral",
35700
- Repay: "repay",
35701
- SwapBorrowRate: "swapBorrowRate",
35702
- LiquidationCall: "liquidationCall"
35703
- };
35704
- Action$inboundSchema = nativeEnumType(Action);
35705
- Action$outboundSchema = Action$inboundSchema;
35706
- ((Action$) => {
35707
- Action$.inboundSchema = Action$inboundSchema;
35708
- Action$.outboundSchema = Action$outboundSchema;
35709
- })(Action$ ||= {});
35710
- });
35711
-
35712
35691
  // src/models/components/reserve.ts
35713
35692
  var Reserve$inboundSchema, Reserve$outboundSchema, Reserve$;
35714
35693
  var init_reserve = __esm(() => {
35715
35694
  init_lib();
35695
+ init_tokenenum();
35716
35696
  Reserve$inboundSchema = objectType({
35717
- symbol: stringType(),
35718
- decimals: numberType().int()
35697
+ symbol: TokenEnum$inboundSchema,
35698
+ decimals: nullableType(numberType().int()).optional(),
35699
+ name: stringType(),
35700
+ underlyingAsset: stringType()
35719
35701
  });
35720
35702
  Reserve$outboundSchema = objectType({
35721
- symbol: stringType(),
35722
- decimals: numberType().int()
35703
+ symbol: TokenEnum$outboundSchema,
35704
+ decimals: nullableType(numberType().int()).optional(),
35705
+ name: stringType(),
35706
+ underlyingAsset: stringType()
35723
35707
  });
35724
35708
  ((Reserve$) => {
35725
35709
  Reserve$.inboundSchema = Reserve$inboundSchema;
@@ -35728,27 +35712,41 @@ var init_reserve = __esm(() => {
35728
35712
  });
35729
35713
 
35730
35714
  // src/models/components/borrow.ts
35731
- var Borrow$inboundSchema, Borrow$outboundSchema, Borrow$;
35715
+ var Borrowratemode, Borrowratemode$inboundSchema, Borrowratemode$outboundSchema, Borrowratemode$, Borrow$inboundSchema, Borrow$outboundSchema, Borrow$;
35732
35716
  var init_borrow = __esm(() => {
35733
35717
  init_lib();
35734
35718
  init_reserve();
35719
+ Borrowratemode = {
35720
+ One: 1,
35721
+ Two: 2
35722
+ };
35723
+ Borrowratemode$inboundSchema = nativeEnumType(Borrowratemode);
35724
+ Borrowratemode$outboundSchema = Borrowratemode$inboundSchema;
35725
+ ((Borrowratemode$) => {
35726
+ Borrowratemode$.inboundSchema = Borrowratemode$inboundSchema;
35727
+ Borrowratemode$.outboundSchema = Borrowratemode$outboundSchema;
35728
+ })(Borrowratemode$ ||= {});
35735
35729
  Borrow$inboundSchema = objectType({
35736
- amount: stringType(),
35737
- borrowRateMode: stringType(),
35738
- borrowRate: stringType(),
35739
- stableTokenDebt: stringType(),
35740
- variableTokenDebt: stringType(),
35730
+ id: stringType(),
35731
+ timestamp: numberType().int(),
35732
+ txHash: stringType(),
35733
+ amount: numberType(),
35734
+ borrowRateMode: Borrowratemode$inboundSchema,
35741
35735
  reserve: Reserve$inboundSchema,
35742
- assetPriceUSD: stringType()
35736
+ assetPriceUSD: numberType(),
35737
+ action: literalType("Borrow").optional(),
35738
+ block: numberType().int()
35743
35739
  });
35744
35740
  Borrow$outboundSchema = objectType({
35745
- amount: stringType(),
35746
- borrowRateMode: stringType(),
35747
- borrowRate: stringType(),
35748
- stableTokenDebt: stringType(),
35749
- variableTokenDebt: stringType(),
35741
+ id: stringType(),
35742
+ timestamp: numberType().int(),
35743
+ txHash: stringType(),
35744
+ amount: numberType(),
35745
+ borrowRateMode: Borrowratemode$outboundSchema,
35750
35746
  reserve: Reserve$outboundSchema,
35751
- assetPriceUSD: stringType()
35747
+ assetPriceUSD: numberType(),
35748
+ action: literalType("Borrow").default("Borrow"),
35749
+ block: numberType().int()
35752
35750
  });
35753
35751
  ((Borrow$) => {
35754
35752
  Borrow$.inboundSchema = Borrow$inboundSchema;
@@ -35756,63 +35754,36 @@ var init_borrow = __esm(() => {
35756
35754
  })(Borrow$ ||= {});
35757
35755
  });
35758
35756
 
35759
- // src/models/components/collateralreserve.ts
35760
- var CollateralReserve$inboundSchema, CollateralReserve$outboundSchema, CollateralReserve$;
35761
- var init_collateralreserve = __esm(() => {
35762
- init_lib();
35763
- CollateralReserve$inboundSchema = objectType({
35764
- symbol: stringType(),
35765
- decimals: numberType().int()
35766
- });
35767
- CollateralReserve$outboundSchema = objectType({
35768
- symbol: stringType(),
35769
- decimals: numberType().int()
35770
- });
35771
- ((CollateralReserve$) => {
35772
- CollateralReserve$.inboundSchema = CollateralReserve$inboundSchema;
35773
- CollateralReserve$.outboundSchema = CollateralReserve$outboundSchema;
35774
- })(CollateralReserve$ ||= {});
35775
- });
35776
-
35777
- // src/models/components/principalreserve.ts
35778
- var PrincipalReserve$inboundSchema, PrincipalReserve$outboundSchema, PrincipalReserve$;
35779
- var init_principalreserve = __esm(() => {
35780
- init_lib();
35781
- PrincipalReserve$inboundSchema = objectType({
35782
- symbol: stringType(),
35783
- decimals: numberType().int()
35784
- });
35785
- PrincipalReserve$outboundSchema = objectType({
35786
- symbol: stringType(),
35787
- decimals: numberType().int()
35788
- });
35789
- ((PrincipalReserve$) => {
35790
- PrincipalReserve$.inboundSchema = PrincipalReserve$inboundSchema;
35791
- PrincipalReserve$.outboundSchema = PrincipalReserve$outboundSchema;
35792
- })(PrincipalReserve$ ||= {});
35793
- });
35794
-
35795
35757
  // src/models/components/liquidationcall.ts
35796
35758
  var LiquidationCall$inboundSchema, LiquidationCall$outboundSchema, LiquidationCall$;
35797
35759
  var init_liquidationcall = __esm(() => {
35798
35760
  init_lib();
35799
- init_collateralreserve();
35800
- init_principalreserve();
35761
+ init_reserve();
35801
35762
  LiquidationCall$inboundSchema = objectType({
35802
- collateralAmount: stringType(),
35803
- collateralReserve: CollateralReserve$inboundSchema,
35804
- principalAmount: stringType(),
35805
- principalReserve: PrincipalReserve$inboundSchema,
35806
- collateralAssetPriceUSD: stringType(),
35807
- borrowAssetPriceUSD: stringType()
35763
+ id: stringType(),
35764
+ timestamp: numberType().int(),
35765
+ txHash: stringType(),
35766
+ collateralAmount: numberType(),
35767
+ collateralReserve: Reserve$inboundSchema,
35768
+ principalAmount: numberType(),
35769
+ principalReserve: Reserve$inboundSchema,
35770
+ collateralAssetPriceUSD: numberType(),
35771
+ borrowAssetPriceUSD: numberType(),
35772
+ action: literalType("LiquidationCall").optional(),
35773
+ block: numberType().int()
35808
35774
  });
35809
35775
  LiquidationCall$outboundSchema = objectType({
35810
- collateralAmount: stringType(),
35811
- collateralReserve: CollateralReserve$outboundSchema,
35812
- principalAmount: stringType(),
35813
- principalReserve: PrincipalReserve$outboundSchema,
35814
- collateralAssetPriceUSD: stringType(),
35815
- borrowAssetPriceUSD: stringType()
35776
+ id: stringType(),
35777
+ timestamp: numberType().int(),
35778
+ txHash: stringType(),
35779
+ collateralAmount: numberType(),
35780
+ collateralReserve: Reserve$outboundSchema,
35781
+ principalAmount: numberType(),
35782
+ principalReserve: Reserve$outboundSchema,
35783
+ collateralAssetPriceUSD: numberType(),
35784
+ borrowAssetPriceUSD: numberType(),
35785
+ action: literalType("LiquidationCall").default("LiquidationCall"),
35786
+ block: numberType().int()
35816
35787
  });
35817
35788
  ((LiquidationCall$) => {
35818
35789
  LiquidationCall$.inboundSchema = LiquidationCall$inboundSchema;
@@ -35826,14 +35797,24 @@ var init_redeemunderlying = __esm(() => {
35826
35797
  init_lib();
35827
35798
  init_reserve();
35828
35799
  RedeemUnderlying$inboundSchema = objectType({
35829
- amount: stringType(),
35800
+ id: stringType(),
35801
+ timestamp: numberType().int(),
35802
+ txHash: stringType(),
35803
+ amount: numberType(),
35830
35804
  reserve: Reserve$inboundSchema,
35831
- assetPriceUSD: stringType()
35805
+ assetPriceUSD: numberType(),
35806
+ action: stringType(),
35807
+ block: numberType().int()
35832
35808
  });
35833
35809
  RedeemUnderlying$outboundSchema = objectType({
35834
- amount: stringType(),
35810
+ id: stringType(),
35811
+ timestamp: numberType().int(),
35812
+ txHash: stringType(),
35813
+ amount: numberType(),
35835
35814
  reserve: Reserve$outboundSchema,
35836
- assetPriceUSD: stringType()
35815
+ assetPriceUSD: numberType(),
35816
+ action: stringType(),
35817
+ block: numberType().int()
35837
35818
  });
35838
35819
  ((RedeemUnderlying$) => {
35839
35820
  RedeemUnderlying$.inboundSchema = RedeemUnderlying$inboundSchema;
@@ -35847,14 +35828,24 @@ var init_repay = __esm(() => {
35847
35828
  init_lib();
35848
35829
  init_reserve();
35849
35830
  Repay$inboundSchema = objectType({
35850
- amount: stringType(),
35831
+ id: stringType(),
35832
+ timestamp: numberType().int(),
35833
+ txHash: stringType(),
35834
+ amount: numberType(),
35851
35835
  reserve: Reserve$inboundSchema,
35852
- assetPriceUSD: stringType()
35836
+ assetPriceUSD: numberType(),
35837
+ action: literalType("Repay").optional(),
35838
+ block: numberType().int()
35853
35839
  });
35854
35840
  Repay$outboundSchema = objectType({
35855
- amount: stringType(),
35841
+ id: stringType(),
35842
+ timestamp: numberType().int(),
35843
+ txHash: stringType(),
35844
+ amount: numberType(),
35856
35845
  reserve: Reserve$outboundSchema,
35857
- assetPriceUSD: stringType()
35846
+ assetPriceUSD: numberType(),
35847
+ action: literalType("Repay").default("Repay"),
35848
+ block: numberType().int()
35858
35849
  });
35859
35850
  ((Repay$) => {
35860
35851
  Repay$.inboundSchema = Repay$inboundSchema;
@@ -35868,14 +35859,24 @@ var init_supply = __esm(() => {
35868
35859
  init_lib();
35869
35860
  init_reserve();
35870
35861
  Supply$inboundSchema = objectType({
35871
- amount: stringType(),
35862
+ id: stringType(),
35863
+ timestamp: numberType().int(),
35864
+ txHash: stringType(),
35865
+ amount: numberType(),
35872
35866
  reserve: Reserve$inboundSchema,
35873
- assetPriceUSD: stringType()
35867
+ assetPriceUSD: numberType(),
35868
+ action: literalType("Supply").optional(),
35869
+ block: numberType().int()
35874
35870
  });
35875
35871
  Supply$outboundSchema = objectType({
35876
- amount: stringType(),
35872
+ id: stringType(),
35873
+ timestamp: numberType().int(),
35874
+ txHash: stringType(),
35875
+ amount: numberType(),
35877
35876
  reserve: Reserve$outboundSchema,
35878
- assetPriceUSD: stringType()
35877
+ assetPriceUSD: numberType(),
35878
+ action: literalType("Supply").default("Supply"),
35879
+ block: numberType().int()
35879
35880
  });
35880
35881
  ((Supply$) => {
35881
35882
  Supply$.inboundSchema = Supply$inboundSchema;
@@ -35889,18 +35890,28 @@ var init_swapborrowrate = __esm(() => {
35889
35890
  init_lib();
35890
35891
  init_reserve();
35891
35892
  SwapBorrowRate$inboundSchema = objectType({
35892
- borrowRateModeFrom: stringType(),
35893
- borrowRateModeTo: stringType(),
35894
- variableBorrowRate: stringType(),
35895
- stableBorrowRate: stringType(),
35896
- reserve: Reserve$inboundSchema
35893
+ id: stringType(),
35894
+ timestamp: numberType().int(),
35895
+ txHash: stringType(),
35896
+ borrowRateModeFrom: numberType().int(),
35897
+ borrowRateModeTo: numberType().int(),
35898
+ variableBorrowRate: numberType().int(),
35899
+ stableBorrowRate: numberType().int(),
35900
+ reserve: Reserve$inboundSchema,
35901
+ action: literalType("SwapBorrowRate").optional(),
35902
+ block: numberType().int()
35897
35903
  });
35898
35904
  SwapBorrowRate$outboundSchema = objectType({
35899
- borrowRateModeFrom: stringType(),
35900
- borrowRateModeTo: stringType(),
35901
- variableBorrowRate: stringType(),
35902
- stableBorrowRate: stringType(),
35903
- reserve: Reserve$outboundSchema
35905
+ id: stringType(),
35906
+ timestamp: numberType().int(),
35907
+ txHash: stringType(),
35908
+ borrowRateModeFrom: numberType().int(),
35909
+ borrowRateModeTo: numberType().int(),
35910
+ variableBorrowRate: numberType().int(),
35911
+ stableBorrowRate: numberType().int(),
35912
+ reserve: Reserve$outboundSchema,
35913
+ action: literalType("SwapBorrowRate").default("SwapBorrowRate"),
35914
+ block: numberType().int()
35904
35915
  });
35905
35916
  ((SwapBorrowRate$) => {
35906
35917
  SwapBorrowRate$.inboundSchema = SwapBorrowRate$inboundSchema;
@@ -35914,14 +35925,24 @@ var init_usageascollateral = __esm(() => {
35914
35925
  init_lib();
35915
35926
  init_reserve();
35916
35927
  UsageAsCollateral$inboundSchema = objectType({
35917
- fromState: stringType(),
35918
- toState: stringType(),
35919
- reserve: Reserve$inboundSchema
35928
+ id: stringType(),
35929
+ timestamp: numberType().int(),
35930
+ txHash: stringType(),
35931
+ fromState: booleanType(),
35932
+ toState: booleanType(),
35933
+ reserve: Reserve$inboundSchema,
35934
+ action: literalType("UsageAsCollateral").optional(),
35935
+ block: numberType().int()
35920
35936
  });
35921
35937
  UsageAsCollateral$outboundSchema = objectType({
35922
- fromState: stringType(),
35923
- toState: stringType(),
35924
- reserve: Reserve$outboundSchema
35938
+ id: stringType(),
35939
+ timestamp: numberType().int(),
35940
+ txHash: stringType(),
35941
+ fromState: booleanType(),
35942
+ toState: booleanType(),
35943
+ reserve: Reserve$outboundSchema,
35944
+ action: literalType("UsageAsCollateral").default("UsageAsCollateral"),
35945
+ block: numberType().int()
35925
35946
  });
35926
35947
  ((UsageAsCollateral$) => {
35927
35948
  UsageAsCollateral$.inboundSchema = UsageAsCollateral$inboundSchema;
@@ -35929,11 +35950,10 @@ var init_usageascollateral = __esm(() => {
35929
35950
  })(UsageAsCollateral$ ||= {});
35930
35951
  });
35931
35952
 
35932
- // src/models/components/aavehistoricaltransactionbase.ts
35933
- var AaveHistoricalTransactionBase$inboundSchema, AaveHistoricalTransactionBase$outboundSchema, AaveHistoricalTransactionBase$;
35934
- var init_aavehistoricaltransactionbase = __esm(() => {
35953
+ // src/models/components/aavehistoricaltransactionsresponse.ts
35954
+ var Transaction$inboundSchema, Transaction$outboundSchema, Transaction$, AaveHistoricalTransactionsResponse$inboundSchema, AaveHistoricalTransactionsResponse$outboundSchema, AaveHistoricalTransactionsResponse$;
35955
+ var init_aavehistoricaltransactionsresponse = __esm(() => {
35935
35956
  init_lib();
35936
- init_action();
35937
35957
  init_borrow();
35938
35958
  init_liquidationcall();
35939
35959
  init_redeemunderlying();
@@ -35941,54 +35961,109 @@ var init_aavehistoricaltransactionbase = __esm(() => {
35941
35961
  init_supply();
35942
35962
  init_swapborrowrate();
35943
35963
  init_usageascollateral();
35944
- AaveHistoricalTransactionBase$inboundSchema = objectType({
35945
- id: stringType(),
35946
- timestamp: numberType().int(),
35947
- txHash: stringType(),
35948
- action: Action$inboundSchema,
35949
- supply: nullableType(Supply$inboundSchema).optional(),
35950
- redeemUnderlying: nullableType(RedeemUnderlying$inboundSchema).optional(),
35951
- borrow: nullableType(Borrow$inboundSchema).optional(),
35952
- usageAsCollateral: nullableType(UsageAsCollateral$inboundSchema).optional(),
35953
- repay: nullableType(Repay$inboundSchema).optional(),
35954
- swapBorrowRate: nullableType(SwapBorrowRate$inboundSchema).optional(),
35955
- liquidationCall: nullableType(LiquidationCall$inboundSchema).optional()
35956
- });
35957
- AaveHistoricalTransactionBase$outboundSchema = objectType({
35958
- id: stringType(),
35959
- timestamp: numberType().int(),
35960
- txHash: stringType(),
35961
- action: Action$outboundSchema,
35962
- supply: nullableType(Supply$outboundSchema).optional(),
35963
- redeemUnderlying: nullableType(RedeemUnderlying$outboundSchema).optional(),
35964
- borrow: nullableType(Borrow$outboundSchema).optional(),
35965
- usageAsCollateral: nullableType(UsageAsCollateral$outboundSchema).optional(),
35966
- repay: nullableType(Repay$outboundSchema).optional(),
35967
- swapBorrowRate: nullableType(SwapBorrowRate$outboundSchema).optional(),
35968
- liquidationCall: nullableType(LiquidationCall$outboundSchema).optional()
35969
- });
35970
- ((AaveHistoricalTransactionBase$) => {
35971
- AaveHistoricalTransactionBase$.inboundSchema = AaveHistoricalTransactionBase$inboundSchema;
35972
- AaveHistoricalTransactionBase$.outboundSchema = AaveHistoricalTransactionBase$outboundSchema;
35973
- })(AaveHistoricalTransactionBase$ ||= {});
35974
- });
35975
-
35976
- // src/models/components/aavehistoricaltransactionsresponse.ts
35977
- var AaveHistoricalTransactionsResponse$inboundSchema, AaveHistoricalTransactionsResponse$outboundSchema, AaveHistoricalTransactionsResponse$;
35978
- var init_aavehistoricaltransactionsresponse = __esm(() => {
35979
- init_lib();
35980
- init_aavehistoricaltransactionbase();
35964
+ Transaction$inboundSchema = unionType([
35965
+ RedeemUnderlying$inboundSchema.and(objectType({ action: literalType("RedeemUnderlying") }).transform((v2) => ({
35966
+ action: v2.action
35967
+ }))),
35968
+ Repay$inboundSchema.and(objectType({ action: literalType("Repay") }).transform((v2) => ({
35969
+ action: v2.action
35970
+ }))),
35971
+ Supply$inboundSchema.and(objectType({ action: literalType("Supply") }).transform((v2) => ({
35972
+ action: v2.action
35973
+ }))),
35974
+ UsageAsCollateral$inboundSchema.and(objectType({ action: literalType("UsageAsCollateral") }).transform((v2) => ({
35975
+ action: v2.action
35976
+ }))),
35977
+ Borrow$inboundSchema.and(objectType({ action: literalType("Borrow") }).transform((v2) => ({
35978
+ action: v2.action
35979
+ }))),
35980
+ SwapBorrowRate$inboundSchema.and(objectType({ action: literalType("SwapBorrowRate") }).transform((v2) => ({
35981
+ action: v2.action
35982
+ }))),
35983
+ LiquidationCall$inboundSchema.and(objectType({ action: literalType("LiquidationCall") }).transform((v2) => ({
35984
+ action: v2.action
35985
+ })))
35986
+ ]);
35987
+ Transaction$outboundSchema = unionType([
35988
+ RedeemUnderlying$outboundSchema.and(objectType({ action: literalType("RedeemUnderlying") }).transform((v2) => ({
35989
+ action: v2.action
35990
+ }))),
35991
+ Repay$outboundSchema.and(objectType({ action: literalType("Repay") }).transform((v2) => ({
35992
+ action: v2.action
35993
+ }))),
35994
+ Supply$outboundSchema.and(objectType({ action: literalType("Supply") }).transform((v2) => ({
35995
+ action: v2.action
35996
+ }))),
35997
+ UsageAsCollateral$outboundSchema.and(objectType({ action: literalType("UsageAsCollateral") }).transform((v2) => ({
35998
+ action: v2.action
35999
+ }))),
36000
+ Borrow$outboundSchema.and(objectType({ action: literalType("Borrow") }).transform((v2) => ({
36001
+ action: v2.action
36002
+ }))),
36003
+ SwapBorrowRate$outboundSchema.and(objectType({ action: literalType("SwapBorrowRate") }).transform((v2) => ({
36004
+ action: v2.action
36005
+ }))),
36006
+ LiquidationCall$outboundSchema.and(objectType({ action: literalType("LiquidationCall") }).transform((v2) => ({
36007
+ action: v2.action
36008
+ })))
36009
+ ]);
36010
+ ((Transaction$) => {
36011
+ Transaction$.inboundSchema = Transaction$inboundSchema;
36012
+ Transaction$.outboundSchema = Transaction$outboundSchema;
36013
+ })(Transaction$ ||= {});
35981
36014
  AaveHistoricalTransactionsResponse$inboundSchema = objectType({
35982
- total: numberType().int(),
35983
36015
  offset: numberType().int(),
35984
36016
  limit: numberType().int(),
35985
- transactions: arrayType(AaveHistoricalTransactionBase$inboundSchema)
36017
+ transactions: arrayType(unionType([
36018
+ RedeemUnderlying$inboundSchema.and(objectType({ action: literalType("RedeemUnderlying") }).transform((v2) => ({
36019
+ action: v2.action
36020
+ }))),
36021
+ Repay$inboundSchema.and(objectType({ action: literalType("Repay") }).transform((v2) => ({
36022
+ action: v2.action
36023
+ }))),
36024
+ Supply$inboundSchema.and(objectType({ action: literalType("Supply") }).transform((v2) => ({
36025
+ action: v2.action
36026
+ }))),
36027
+ UsageAsCollateral$inboundSchema.and(objectType({ action: literalType("UsageAsCollateral") }).transform((v2) => ({
36028
+ action: v2.action
36029
+ }))),
36030
+ Borrow$inboundSchema.and(objectType({ action: literalType("Borrow") }).transform((v2) => ({
36031
+ action: v2.action
36032
+ }))),
36033
+ SwapBorrowRate$inboundSchema.and(objectType({ action: literalType("SwapBorrowRate") }).transform((v2) => ({
36034
+ action: v2.action
36035
+ }))),
36036
+ LiquidationCall$inboundSchema.and(objectType({ action: literalType("LiquidationCall") }).transform((v2) => ({
36037
+ action: v2.action
36038
+ })))
36039
+ ]))
35986
36040
  });
35987
36041
  AaveHistoricalTransactionsResponse$outboundSchema = objectType({
35988
- total: numberType().int(),
35989
36042
  offset: numberType().int(),
35990
36043
  limit: numberType().int(),
35991
- transactions: arrayType(AaveHistoricalTransactionBase$outboundSchema)
36044
+ transactions: arrayType(unionType([
36045
+ RedeemUnderlying$outboundSchema.and(objectType({ action: literalType("RedeemUnderlying") }).transform((v2) => ({
36046
+ action: v2.action
36047
+ }))),
36048
+ Repay$outboundSchema.and(objectType({ action: literalType("Repay") }).transform((v2) => ({
36049
+ action: v2.action
36050
+ }))),
36051
+ Supply$outboundSchema.and(objectType({ action: literalType("Supply") }).transform((v2) => ({
36052
+ action: v2.action
36053
+ }))),
36054
+ UsageAsCollateral$outboundSchema.and(objectType({ action: literalType("UsageAsCollateral") }).transform((v2) => ({
36055
+ action: v2.action
36056
+ }))),
36057
+ Borrow$outboundSchema.and(objectType({ action: literalType("Borrow") }).transform((v2) => ({
36058
+ action: v2.action
36059
+ }))),
36060
+ SwapBorrowRate$outboundSchema.and(objectType({ action: literalType("SwapBorrowRate") }).transform((v2) => ({
36061
+ action: v2.action
36062
+ }))),
36063
+ LiquidationCall$outboundSchema.and(objectType({ action: literalType("LiquidationCall") }).transform((v2) => ({
36064
+ action: v2.action
36065
+ })))
36066
+ ]))
35992
36067
  });
35993
36068
  ((AaveHistoricalTransactionsResponse$) => {
35994
36069
  AaveHistoricalTransactionsResponse$.inboundSchema = AaveHistoricalTransactionsResponse$inboundSchema;
@@ -36029,6 +36104,112 @@ var init_aaveliquiditychangeresponse = __esm(() => {
36029
36104
  })(AaveLiquidityChangeResponse$ ||= {});
36030
36105
  });
36031
36106
 
36107
+ // src/models/components/signedauthorization.ts
36108
+ var R$inboundSchema, R$outboundSchema, R$, S$inboundSchema, S$outboundSchema, S$, SignedAuthorization$inboundSchema, SignedAuthorization$outboundSchema, SignedAuthorization$;
36109
+ var init_signedauthorization = __esm(() => {
36110
+ init_lib();
36111
+ R$inboundSchema = unionType([
36112
+ numberType().int(),
36113
+ stringType()
36114
+ ]);
36115
+ R$outboundSchema = unionType([numberType().int(), stringType()]);
36116
+ ((R$) => {
36117
+ R$.inboundSchema = R$inboundSchema;
36118
+ R$.outboundSchema = R$outboundSchema;
36119
+ })(R$ ||= {});
36120
+ S$inboundSchema = unionType([
36121
+ numberType().int(),
36122
+ stringType()
36123
+ ]);
36124
+ S$outboundSchema = unionType([numberType().int(), stringType()]);
36125
+ ((S$) => {
36126
+ S$.inboundSchema = S$inboundSchema;
36127
+ S$.outboundSchema = S$outboundSchema;
36128
+ })(S$ ||= {});
36129
+ SignedAuthorization$inboundSchema = objectType({
36130
+ nonce: numberType().int(),
36131
+ address: stringType(),
36132
+ chainId: numberType().int(),
36133
+ r: unionType([numberType().int(), stringType()]),
36134
+ s: unionType([numberType().int(), stringType()]),
36135
+ yParity: numberType().int()
36136
+ });
36137
+ SignedAuthorization$outboundSchema = objectType({
36138
+ nonce: numberType().int(),
36139
+ address: stringType(),
36140
+ chainId: numberType().int(),
36141
+ r: unionType([numberType().int(), stringType()]),
36142
+ s: unionType([numberType().int(), stringType()]),
36143
+ yParity: numberType().int()
36144
+ });
36145
+ ((SignedAuthorization$) => {
36146
+ SignedAuthorization$.inboundSchema = SignedAuthorization$inboundSchema;
36147
+ SignedAuthorization$.outboundSchema = SignedAuthorization$outboundSchema;
36148
+ })(SignedAuthorization$ ||= {});
36149
+ });
36150
+
36151
+ // src/models/components/aavelooprequest.ts
36152
+ var CollateralAmount$inboundSchema, CollateralAmount$outboundSchema, CollateralAmount$, AaveLoopRequest$inboundSchema, AaveLoopRequest$outboundSchema, AaveLoopRequest$;
36153
+ var init_aavelooprequest = __esm(() => {
36154
+ init_lib();
36155
+ init_primitives();
36156
+ init_chain();
36157
+ init_signedauthorization();
36158
+ init_tokenenum();
36159
+ CollateralAmount$inboundSchema = unionType([numberType(), stringType()]);
36160
+ CollateralAmount$outboundSchema = unionType([numberType(), stringType()]);
36161
+ ((CollateralAmount$) => {
36162
+ CollateralAmount$.inboundSchema = CollateralAmount$inboundSchema;
36163
+ CollateralAmount$.outboundSchema = CollateralAmount$outboundSchema;
36164
+ })(CollateralAmount$ ||= {});
36165
+ AaveLoopRequest$inboundSchema = objectType({
36166
+ chain: Chain$inboundSchema,
36167
+ sender: stringType(),
36168
+ signed_authorization: SignedAuthorization$inboundSchema,
36169
+ collateral_token: TokenEnum$inboundSchema,
36170
+ borrow_token: TokenEnum$inboundSchema,
36171
+ collateral_amount: unionType([numberType(), stringType()]),
36172
+ loop_count: numberType().int(),
36173
+ max_slippage_percent: numberType(),
36174
+ loan_to_value: numberType()
36175
+ }).transform((v2) => {
36176
+ return remap(v2, {
36177
+ signed_authorization: "signedAuthorization",
36178
+ collateral_token: "collateralToken",
36179
+ borrow_token: "borrowToken",
36180
+ collateral_amount: "collateralAmount",
36181
+ loop_count: "loopCount",
36182
+ max_slippage_percent: "maxSlippagePercent",
36183
+ loan_to_value: "loanToValue"
36184
+ });
36185
+ });
36186
+ AaveLoopRequest$outboundSchema = objectType({
36187
+ chain: Chain$outboundSchema,
36188
+ sender: stringType(),
36189
+ signedAuthorization: SignedAuthorization$outboundSchema,
36190
+ collateralToken: TokenEnum$outboundSchema,
36191
+ borrowToken: TokenEnum$outboundSchema,
36192
+ collateralAmount: unionType([numberType(), stringType()]),
36193
+ loopCount: numberType().int(),
36194
+ maxSlippagePercent: numberType(),
36195
+ loanToValue: numberType()
36196
+ }).transform((v2) => {
36197
+ return remap(v2, {
36198
+ signedAuthorization: "signed_authorization",
36199
+ collateralToken: "collateral_token",
36200
+ borrowToken: "borrow_token",
36201
+ collateralAmount: "collateral_amount",
36202
+ loopCount: "loop_count",
36203
+ maxSlippagePercent: "max_slippage_percent",
36204
+ loanToValue: "loan_to_value"
36205
+ });
36206
+ });
36207
+ ((AaveLoopRequest$) => {
36208
+ AaveLoopRequest$.inboundSchema = AaveLoopRequest$inboundSchema;
36209
+ AaveLoopRequest$.outboundSchema = AaveLoopRequest$outboundSchema;
36210
+ })(AaveLoopRequest$ ||= {});
36211
+ });
36212
+
36032
36213
  // src/models/components/aaverateresponse.ts
36033
36214
  var AaveRateResponse$inboundSchema, AaveRateResponse$outboundSchema, AaveRateResponse$;
36034
36215
  var init_aaverateresponse = __esm(() => {
@@ -37542,23 +37723,32 @@ var init_marketstate = __esm(() => {
37542
37723
  });
37543
37724
 
37544
37725
  // src/models/components/morphoborrowrequest.ts
37545
- var MorphoBorrowRequestAmount$inboundSchema, MorphoBorrowRequestAmount$outboundSchema, MorphoBorrowRequestAmount$, MorphoBorrowRequest$inboundSchema, MorphoBorrowRequest$outboundSchema, MorphoBorrowRequest$;
37726
+ var MorphoBorrowRequestChain, MorphoBorrowRequestAmount$inboundSchema, MorphoBorrowRequestAmount$outboundSchema, MorphoBorrowRequestAmount$, MorphoBorrowRequestChain$inboundSchema, MorphoBorrowRequestChain$outboundSchema, MorphoBorrowRequestChain$, MorphoBorrowRequest$inboundSchema, MorphoBorrowRequest$outboundSchema, MorphoBorrowRequest$;
37546
37727
  var init_morphoborrowrequest = __esm(() => {
37547
37728
  init_lib();
37548
37729
  init_primitives();
37549
- init_chain();
37730
+ MorphoBorrowRequestChain = {
37731
+ EthereumMainnet: "ethereum:mainnet",
37732
+ BaseMainnet: "base:mainnet"
37733
+ };
37550
37734
  MorphoBorrowRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
37551
37735
  MorphoBorrowRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
37552
37736
  ((MorphoBorrowRequestAmount$) => {
37553
37737
  MorphoBorrowRequestAmount$.inboundSchema = MorphoBorrowRequestAmount$inboundSchema;
37554
37738
  MorphoBorrowRequestAmount$.outboundSchema = MorphoBorrowRequestAmount$outboundSchema;
37555
37739
  })(MorphoBorrowRequestAmount$ ||= {});
37740
+ MorphoBorrowRequestChain$inboundSchema = nativeEnumType(MorphoBorrowRequestChain);
37741
+ MorphoBorrowRequestChain$outboundSchema = MorphoBorrowRequestChain$inboundSchema;
37742
+ ((MorphoBorrowRequestChain$) => {
37743
+ MorphoBorrowRequestChain$.inboundSchema = MorphoBorrowRequestChain$inboundSchema;
37744
+ MorphoBorrowRequestChain$.outboundSchema = MorphoBorrowRequestChain$outboundSchema;
37745
+ })(MorphoBorrowRequestChain$ ||= {});
37556
37746
  MorphoBorrowRequest$inboundSchema = objectType({
37557
37747
  amount: unionType([numberType(), stringType()]),
37558
37748
  unique_market_key: stringType(),
37559
37749
  on_behalf_of: nullableType(stringType()).optional(),
37560
37750
  receiver: nullableType(stringType()).optional(),
37561
- chain: Chain$inboundSchema,
37751
+ chain: MorphoBorrowRequestChain$inboundSchema,
37562
37752
  sender: stringType()
37563
37753
  }).transform((v2) => {
37564
37754
  return remap(v2, {
@@ -37571,7 +37761,7 @@ var init_morphoborrowrequest = __esm(() => {
37571
37761
  uniqueMarketKey: stringType(),
37572
37762
  onBehalfOf: nullableType(stringType()).optional(),
37573
37763
  receiver: nullableType(stringType()).optional(),
37574
- chain: Chain$outboundSchema,
37764
+ chain: MorphoBorrowRequestChain$outboundSchema,
37575
37765
  sender: stringType()
37576
37766
  }).transform((v2) => {
37577
37767
  return remap(v2, {
@@ -37654,22 +37844,31 @@ var init_morphocheckvaultpositionresponse = __esm(() => {
37654
37844
  });
37655
37845
 
37656
37846
  // src/models/components/morphodepositrequest.ts
37657
- var MorphoDepositRequestAmount$inboundSchema, MorphoDepositRequestAmount$outboundSchema, MorphoDepositRequestAmount$, MorphoDepositRequest$inboundSchema, MorphoDepositRequest$outboundSchema, MorphoDepositRequest$;
37847
+ var MorphoDepositRequestChain, MorphoDepositRequestAmount$inboundSchema, MorphoDepositRequestAmount$outboundSchema, MorphoDepositRequestAmount$, MorphoDepositRequestChain$inboundSchema, MorphoDepositRequestChain$outboundSchema, MorphoDepositRequestChain$, MorphoDepositRequest$inboundSchema, MorphoDepositRequest$outboundSchema, MorphoDepositRequest$;
37658
37848
  var init_morphodepositrequest = __esm(() => {
37659
37849
  init_lib();
37660
37850
  init_primitives();
37661
- init_chain();
37851
+ MorphoDepositRequestChain = {
37852
+ EthereumMainnet: "ethereum:mainnet",
37853
+ BaseMainnet: "base:mainnet"
37854
+ };
37662
37855
  MorphoDepositRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
37663
37856
  MorphoDepositRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
37664
37857
  ((MorphoDepositRequestAmount$) => {
37665
37858
  MorphoDepositRequestAmount$.inboundSchema = MorphoDepositRequestAmount$inboundSchema;
37666
37859
  MorphoDepositRequestAmount$.outboundSchema = MorphoDepositRequestAmount$outboundSchema;
37667
37860
  })(MorphoDepositRequestAmount$ ||= {});
37861
+ MorphoDepositRequestChain$inboundSchema = nativeEnumType(MorphoDepositRequestChain);
37862
+ MorphoDepositRequestChain$outboundSchema = MorphoDepositRequestChain$inboundSchema;
37863
+ ((MorphoDepositRequestChain$) => {
37864
+ MorphoDepositRequestChain$.inboundSchema = MorphoDepositRequestChain$inboundSchema;
37865
+ MorphoDepositRequestChain$.outboundSchema = MorphoDepositRequestChain$outboundSchema;
37866
+ })(MorphoDepositRequestChain$ ||= {});
37668
37867
  MorphoDepositRequest$inboundSchema = objectType({
37669
37868
  vault_address: stringType(),
37670
37869
  amount: unionType([numberType(), stringType()]),
37671
37870
  receiver: nullableType(stringType()).optional(),
37672
- chain: Chain$inboundSchema,
37871
+ chain: MorphoDepositRequestChain$inboundSchema,
37673
37872
  sender: stringType()
37674
37873
  }).transform((v2) => {
37675
37874
  return remap(v2, {
@@ -37680,7 +37879,7 @@ var init_morphodepositrequest = __esm(() => {
37680
37879
  vaultAddress: stringType(),
37681
37880
  amount: unionType([numberType(), stringType()]),
37682
37881
  receiver: nullableType(stringType()).optional(),
37683
- chain: Chain$outboundSchema,
37882
+ chain: MorphoDepositRequestChain$outboundSchema,
37684
37883
  sender: stringType()
37685
37884
  }).transform((v2) => {
37686
37885
  return remap(v2, {
@@ -37848,18 +38047,27 @@ var init_morphogetvaultsresponse = __esm(() => {
37848
38047
  });
37849
38048
 
37850
38049
  // src/models/components/morphorepayrequest.ts
37851
- var MorphoRepayRequest$inboundSchema, MorphoRepayRequest$outboundSchema, MorphoRepayRequest$;
38050
+ var MorphoRepayRequestChain, MorphoRepayRequestChain$inboundSchema, MorphoRepayRequestChain$outboundSchema, MorphoRepayRequestChain$, MorphoRepayRequest$inboundSchema, MorphoRepayRequest$outboundSchema, MorphoRepayRequest$;
37852
38051
  var init_morphorepayrequest = __esm(() => {
37853
38052
  init_lib();
37854
38053
  init_base64();
37855
38054
  init_primitives();
37856
- init_chain();
38055
+ MorphoRepayRequestChain = {
38056
+ EthereumMainnet: "ethereum:mainnet",
38057
+ BaseMainnet: "base:mainnet"
38058
+ };
38059
+ MorphoRepayRequestChain$inboundSchema = nativeEnumType(MorphoRepayRequestChain);
38060
+ MorphoRepayRequestChain$outboundSchema = MorphoRepayRequestChain$inboundSchema;
38061
+ ((MorphoRepayRequestChain$) => {
38062
+ MorphoRepayRequestChain$.inboundSchema = MorphoRepayRequestChain$inboundSchema;
38063
+ MorphoRepayRequestChain$.outboundSchema = MorphoRepayRequestChain$outboundSchema;
38064
+ })(MorphoRepayRequestChain$ ||= {});
37857
38065
  MorphoRepayRequest$inboundSchema = objectType({
37858
38066
  amount: anyType().optional(),
37859
38067
  unique_market_key: stringType(),
37860
38068
  on_behalf_of: nullableType(stringType()).optional(),
37861
38069
  callback_data: nullableType(zodInbound).optional(),
37862
- chain: Chain$inboundSchema,
38070
+ chain: MorphoRepayRequestChain$inboundSchema,
37863
38071
  sender: stringType()
37864
38072
  }).transform((v2) => {
37865
38073
  return remap(v2, {
@@ -37873,7 +38081,7 @@ var init_morphorepayrequest = __esm(() => {
37873
38081
  uniqueMarketKey: stringType(),
37874
38082
  onBehalfOf: nullableType(stringType()).optional(),
37875
38083
  callbackData: nullableType(zodOutbound).optional(),
37876
- chain: Chain$outboundSchema,
38084
+ chain: MorphoRepayRequestChain$outboundSchema,
37877
38085
  sender: stringType()
37878
38086
  }).transform((v2) => {
37879
38087
  return remap(v2, {
@@ -37889,21 +38097,30 @@ var init_morphorepayrequest = __esm(() => {
37889
38097
  });
37890
38098
 
37891
38099
  // src/models/components/morphosetvaultallowancerequest.ts
37892
- var MorphoSetVaultAllowanceRequestAmount$inboundSchema, MorphoSetVaultAllowanceRequestAmount$outboundSchema, MorphoSetVaultAllowanceRequestAmount$, MorphoSetVaultAllowanceRequest$inboundSchema, MorphoSetVaultAllowanceRequest$outboundSchema, MorphoSetVaultAllowanceRequest$;
38100
+ var MorphoSetVaultAllowanceRequestChain, MorphoSetVaultAllowanceRequestAmount$inboundSchema, MorphoSetVaultAllowanceRequestAmount$outboundSchema, MorphoSetVaultAllowanceRequestAmount$, MorphoSetVaultAllowanceRequestChain$inboundSchema, MorphoSetVaultAllowanceRequestChain$outboundSchema, MorphoSetVaultAllowanceRequestChain$, MorphoSetVaultAllowanceRequest$inboundSchema, MorphoSetVaultAllowanceRequest$outboundSchema, MorphoSetVaultAllowanceRequest$;
37893
38101
  var init_morphosetvaultallowancerequest = __esm(() => {
37894
38102
  init_lib();
37895
38103
  init_primitives();
37896
- init_chain();
38104
+ MorphoSetVaultAllowanceRequestChain = {
38105
+ EthereumMainnet: "ethereum:mainnet",
38106
+ BaseMainnet: "base:mainnet"
38107
+ };
37897
38108
  MorphoSetVaultAllowanceRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
37898
38109
  MorphoSetVaultAllowanceRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
37899
38110
  ((MorphoSetVaultAllowanceRequestAmount$) => {
37900
38111
  MorphoSetVaultAllowanceRequestAmount$.inboundSchema = MorphoSetVaultAllowanceRequestAmount$inboundSchema;
37901
38112
  MorphoSetVaultAllowanceRequestAmount$.outboundSchema = MorphoSetVaultAllowanceRequestAmount$outboundSchema;
37902
38113
  })(MorphoSetVaultAllowanceRequestAmount$ ||= {});
38114
+ MorphoSetVaultAllowanceRequestChain$inboundSchema = nativeEnumType(MorphoSetVaultAllowanceRequestChain);
38115
+ MorphoSetVaultAllowanceRequestChain$outboundSchema = MorphoSetVaultAllowanceRequestChain$inboundSchema;
38116
+ ((MorphoSetVaultAllowanceRequestChain$) => {
38117
+ MorphoSetVaultAllowanceRequestChain$.inboundSchema = MorphoSetVaultAllowanceRequestChain$inboundSchema;
38118
+ MorphoSetVaultAllowanceRequestChain$.outboundSchema = MorphoSetVaultAllowanceRequestChain$outboundSchema;
38119
+ })(MorphoSetVaultAllowanceRequestChain$ ||= {});
37903
38120
  MorphoSetVaultAllowanceRequest$inboundSchema = objectType({
37904
38121
  vault_address: stringType(),
37905
38122
  amount: unionType([numberType(), stringType()]),
37906
- chain: Chain$inboundSchema,
38123
+ chain: MorphoSetVaultAllowanceRequestChain$inboundSchema,
37907
38124
  sender: stringType()
37908
38125
  }).transform((v2) => {
37909
38126
  return remap(v2, {
@@ -37913,7 +38130,7 @@ var init_morphosetvaultallowancerequest = __esm(() => {
37913
38130
  MorphoSetVaultAllowanceRequest$outboundSchema = objectType({
37914
38131
  vaultAddress: stringType(),
37915
38132
  amount: unionType([numberType(), stringType()]),
37916
- chain: Chain$outboundSchema,
38133
+ chain: MorphoSetVaultAllowanceRequestChain$outboundSchema,
37917
38134
  sender: stringType()
37918
38135
  }).transform((v2) => {
37919
38136
  return remap(v2, {
@@ -37927,24 +38144,33 @@ var init_morphosetvaultallowancerequest = __esm(() => {
37927
38144
  });
37928
38145
 
37929
38146
  // src/models/components/morphosupplycollateralrequest.ts
37930
- var MorphoSupplyCollateralRequestAmount$inboundSchema, MorphoSupplyCollateralRequestAmount$outboundSchema, MorphoSupplyCollateralRequestAmount$, MorphoSupplyCollateralRequest$inboundSchema, MorphoSupplyCollateralRequest$outboundSchema, MorphoSupplyCollateralRequest$;
38147
+ var MorphoSupplyCollateralRequestChain, MorphoSupplyCollateralRequestAmount$inboundSchema, MorphoSupplyCollateralRequestAmount$outboundSchema, MorphoSupplyCollateralRequestAmount$, MorphoSupplyCollateralRequestChain$inboundSchema, MorphoSupplyCollateralRequestChain$outboundSchema, MorphoSupplyCollateralRequestChain$, MorphoSupplyCollateralRequest$inboundSchema, MorphoSupplyCollateralRequest$outboundSchema, MorphoSupplyCollateralRequest$;
37931
38148
  var init_morphosupplycollateralrequest = __esm(() => {
37932
38149
  init_lib();
37933
38150
  init_base64();
37934
38151
  init_primitives();
37935
- init_chain();
38152
+ MorphoSupplyCollateralRequestChain = {
38153
+ EthereumMainnet: "ethereum:mainnet",
38154
+ BaseMainnet: "base:mainnet"
38155
+ };
37936
38156
  MorphoSupplyCollateralRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
37937
38157
  MorphoSupplyCollateralRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
37938
38158
  ((MorphoSupplyCollateralRequestAmount$) => {
37939
38159
  MorphoSupplyCollateralRequestAmount$.inboundSchema = MorphoSupplyCollateralRequestAmount$inboundSchema;
37940
38160
  MorphoSupplyCollateralRequestAmount$.outboundSchema = MorphoSupplyCollateralRequestAmount$outboundSchema;
37941
38161
  })(MorphoSupplyCollateralRequestAmount$ ||= {});
38162
+ MorphoSupplyCollateralRequestChain$inboundSchema = nativeEnumType(MorphoSupplyCollateralRequestChain);
38163
+ MorphoSupplyCollateralRequestChain$outboundSchema = MorphoSupplyCollateralRequestChain$inboundSchema;
38164
+ ((MorphoSupplyCollateralRequestChain$) => {
38165
+ MorphoSupplyCollateralRequestChain$.inboundSchema = MorphoSupplyCollateralRequestChain$inboundSchema;
38166
+ MorphoSupplyCollateralRequestChain$.outboundSchema = MorphoSupplyCollateralRequestChain$outboundSchema;
38167
+ })(MorphoSupplyCollateralRequestChain$ ||= {});
37942
38168
  MorphoSupplyCollateralRequest$inboundSchema = objectType({
37943
38169
  amount: unionType([numberType(), stringType()]),
37944
38170
  unique_market_key: stringType(),
37945
38171
  on_behalf_of: nullableType(stringType()).optional(),
37946
38172
  callback_data: nullableType(zodInbound).optional(),
37947
- chain: Chain$inboundSchema,
38173
+ chain: MorphoSupplyCollateralRequestChain$inboundSchema,
37948
38174
  sender: stringType()
37949
38175
  }).transform((v2) => {
37950
38176
  return remap(v2, {
@@ -37958,7 +38184,7 @@ var init_morphosupplycollateralrequest = __esm(() => {
37958
38184
  uniqueMarketKey: stringType(),
37959
38185
  onBehalfOf: nullableType(stringType()).optional(),
37960
38186
  callbackData: nullableType(zodOutbound).optional(),
37961
- chain: Chain$outboundSchema,
38187
+ chain: MorphoSupplyCollateralRequestChain$outboundSchema,
37962
38188
  sender: stringType()
37963
38189
  }).transform((v2) => {
37964
38190
  return remap(v2, {
@@ -37974,23 +38200,32 @@ var init_morphosupplycollateralrequest = __esm(() => {
37974
38200
  });
37975
38201
 
37976
38202
  // src/models/components/morphowithdrawcollateralrequest.ts
37977
- var MorphoWithdrawCollateralRequestAmount$inboundSchema, MorphoWithdrawCollateralRequestAmount$outboundSchema, MorphoWithdrawCollateralRequestAmount$, MorphoWithdrawCollateralRequest$inboundSchema, MorphoWithdrawCollateralRequest$outboundSchema, MorphoWithdrawCollateralRequest$;
38203
+ var MorphoWithdrawCollateralRequestChain, MorphoWithdrawCollateralRequestAmount$inboundSchema, MorphoWithdrawCollateralRequestAmount$outboundSchema, MorphoWithdrawCollateralRequestAmount$, MorphoWithdrawCollateralRequestChain$inboundSchema, MorphoWithdrawCollateralRequestChain$outboundSchema, MorphoWithdrawCollateralRequestChain$, MorphoWithdrawCollateralRequest$inboundSchema, MorphoWithdrawCollateralRequest$outboundSchema, MorphoWithdrawCollateralRequest$;
37978
38204
  var init_morphowithdrawcollateralrequest = __esm(() => {
37979
38205
  init_lib();
37980
38206
  init_primitives();
37981
- init_chain();
38207
+ MorphoWithdrawCollateralRequestChain = {
38208
+ EthereumMainnet: "ethereum:mainnet",
38209
+ BaseMainnet: "base:mainnet"
38210
+ };
37982
38211
  MorphoWithdrawCollateralRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
37983
38212
  MorphoWithdrawCollateralRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
37984
38213
  ((MorphoWithdrawCollateralRequestAmount$) => {
37985
38214
  MorphoWithdrawCollateralRequestAmount$.inboundSchema = MorphoWithdrawCollateralRequestAmount$inboundSchema;
37986
38215
  MorphoWithdrawCollateralRequestAmount$.outboundSchema = MorphoWithdrawCollateralRequestAmount$outboundSchema;
37987
38216
  })(MorphoWithdrawCollateralRequestAmount$ ||= {});
38217
+ MorphoWithdrawCollateralRequestChain$inboundSchema = nativeEnumType(MorphoWithdrawCollateralRequestChain);
38218
+ MorphoWithdrawCollateralRequestChain$outboundSchema = MorphoWithdrawCollateralRequestChain$inboundSchema;
38219
+ ((MorphoWithdrawCollateralRequestChain$) => {
38220
+ MorphoWithdrawCollateralRequestChain$.inboundSchema = MorphoWithdrawCollateralRequestChain$inboundSchema;
38221
+ MorphoWithdrawCollateralRequestChain$.outboundSchema = MorphoWithdrawCollateralRequestChain$outboundSchema;
38222
+ })(MorphoWithdrawCollateralRequestChain$ ||= {});
37988
38223
  MorphoWithdrawCollateralRequest$inboundSchema = objectType({
37989
38224
  amount: unionType([numberType(), stringType()]),
37990
38225
  unique_market_key: stringType(),
37991
38226
  on_behalf_of: nullableType(stringType()).optional(),
37992
38227
  receiver: nullableType(stringType()).optional(),
37993
- chain: Chain$inboundSchema,
38228
+ chain: MorphoWithdrawCollateralRequestChain$inboundSchema,
37994
38229
  sender: stringType()
37995
38230
  }).transform((v2) => {
37996
38231
  return remap(v2, {
@@ -38003,7 +38238,7 @@ var init_morphowithdrawcollateralrequest = __esm(() => {
38003
38238
  uniqueMarketKey: stringType(),
38004
38239
  onBehalfOf: nullableType(stringType()).optional(),
38005
38240
  receiver: nullableType(stringType()).optional(),
38006
- chain: Chain$outboundSchema,
38241
+ chain: MorphoWithdrawCollateralRequestChain$outboundSchema,
38007
38242
  sender: stringType()
38008
38243
  }).transform((v2) => {
38009
38244
  return remap(v2, {
@@ -38018,16 +38253,25 @@ var init_morphowithdrawcollateralrequest = __esm(() => {
38018
38253
  });
38019
38254
 
38020
38255
  // src/models/components/morphowithdrawrequest.ts
38021
- var MorphoWithdrawRequest$inboundSchema, MorphoWithdrawRequest$outboundSchema, MorphoWithdrawRequest$;
38256
+ var MorphoWithdrawRequestChain, MorphoWithdrawRequestChain$inboundSchema, MorphoWithdrawRequestChain$outboundSchema, MorphoWithdrawRequestChain$, MorphoWithdrawRequest$inboundSchema, MorphoWithdrawRequest$outboundSchema, MorphoWithdrawRequest$;
38022
38257
  var init_morphowithdrawrequest = __esm(() => {
38023
38258
  init_lib();
38024
38259
  init_primitives();
38025
- init_chain();
38260
+ MorphoWithdrawRequestChain = {
38261
+ EthereumMainnet: "ethereum:mainnet",
38262
+ BaseMainnet: "base:mainnet"
38263
+ };
38264
+ MorphoWithdrawRequestChain$inboundSchema = nativeEnumType(MorphoWithdrawRequestChain);
38265
+ MorphoWithdrawRequestChain$outboundSchema = MorphoWithdrawRequestChain$inboundSchema;
38266
+ ((MorphoWithdrawRequestChain$) => {
38267
+ MorphoWithdrawRequestChain$.inboundSchema = MorphoWithdrawRequestChain$inboundSchema;
38268
+ MorphoWithdrawRequestChain$.outboundSchema = MorphoWithdrawRequestChain$outboundSchema;
38269
+ })(MorphoWithdrawRequestChain$ ||= {});
38026
38270
  MorphoWithdrawRequest$inboundSchema = objectType({
38027
38271
  vault_address: stringType(),
38028
38272
  amount: anyType().optional(),
38029
38273
  receiver: nullableType(stringType()).optional(),
38030
- chain: Chain$inboundSchema,
38274
+ chain: MorphoWithdrawRequestChain$inboundSchema,
38031
38275
  sender: stringType()
38032
38276
  }).transform((v2) => {
38033
38277
  return remap(v2, {
@@ -38038,7 +38282,7 @@ var init_morphowithdrawrequest = __esm(() => {
38038
38282
  vaultAddress: stringType(),
38039
38283
  amount: anyType().optional(),
38040
38284
  receiver: nullableType(stringType()).optional(),
38041
- chain: Chain$outboundSchema,
38285
+ chain: MorphoWithdrawRequestChain$outboundSchema,
38042
38286
  sender: stringType()
38043
38287
  }).transform((v2) => {
38044
38288
  return remap(v2, {
@@ -38112,30 +38356,29 @@ var init_tokentransfererc20params = __esm(() => {
38112
38356
  });
38113
38357
 
38114
38358
  // src/models/components/uniswapbuyexactlyparams.ts
38115
- var UniswapBuyExactlyParamsAmountOut$inboundSchema, UniswapBuyExactlyParamsAmountOut$outboundSchema, UniswapBuyExactlyParamsAmountOut$, UniswapBuyExactlyParams$inboundSchema, UniswapBuyExactlyParams$outboundSchema, UniswapBuyExactlyParams$;
38359
+ var UniswapBuyExactlyParamsAmount$inboundSchema, UniswapBuyExactlyParamsAmount$outboundSchema, UniswapBuyExactlyParamsAmount$, UniswapBuyExactlyParams$inboundSchema, UniswapBuyExactlyParams$outboundSchema, UniswapBuyExactlyParams$;
38116
38360
  var init_uniswapbuyexactlyparams = __esm(() => {
38117
38361
  init_lib();
38118
38362
  init_primitives();
38119
38363
  init_feeenum();
38120
38364
  init_tokenenum();
38121
- UniswapBuyExactlyParamsAmountOut$inboundSchema = unionType([numberType(), stringType()]);
38122
- UniswapBuyExactlyParamsAmountOut$outboundSchema = unionType([numberType(), stringType()]);
38123
- ((UniswapBuyExactlyParamsAmountOut$) => {
38124
- UniswapBuyExactlyParamsAmountOut$.inboundSchema = UniswapBuyExactlyParamsAmountOut$inboundSchema;
38125
- UniswapBuyExactlyParamsAmountOut$.outboundSchema = UniswapBuyExactlyParamsAmountOut$outboundSchema;
38126
- })(UniswapBuyExactlyParamsAmountOut$ ||= {});
38365
+ UniswapBuyExactlyParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
38366
+ UniswapBuyExactlyParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
38367
+ ((UniswapBuyExactlyParamsAmount$) => {
38368
+ UniswapBuyExactlyParamsAmount$.inboundSchema = UniswapBuyExactlyParamsAmount$inboundSchema;
38369
+ UniswapBuyExactlyParamsAmount$.outboundSchema = UniswapBuyExactlyParamsAmount$outboundSchema;
38370
+ })(UniswapBuyExactlyParamsAmount$ ||= {});
38127
38371
  UniswapBuyExactlyParams$inboundSchema = objectType({
38128
38372
  token_in: TokenEnum$inboundSchema,
38129
38373
  token_out: TokenEnum$inboundSchema,
38130
38374
  fee: FeeEnum$inboundSchema,
38131
- amount_out: unionType([numberType(), stringType()]),
38375
+ amount: unionType([numberType(), stringType()]),
38132
38376
  max_slippage_percent: numberType(),
38133
38377
  wrap_eth: booleanType().default(false)
38134
38378
  }).transform((v2) => {
38135
38379
  return remap(v2, {
38136
38380
  token_in: "tokenIn",
38137
38381
  token_out: "tokenOut",
38138
- amount_out: "amountOut",
38139
38382
  max_slippage_percent: "maxSlippagePercent",
38140
38383
  wrap_eth: "wrapEth"
38141
38384
  });
@@ -38144,14 +38387,13 @@ var init_uniswapbuyexactlyparams = __esm(() => {
38144
38387
  tokenIn: TokenEnum$outboundSchema,
38145
38388
  tokenOut: TokenEnum$outboundSchema,
38146
38389
  fee: FeeEnum$outboundSchema,
38147
- amountOut: unionType([numberType(), stringType()]),
38390
+ amount: unionType([numberType(), stringType()]),
38148
38391
  maxSlippagePercent: numberType(),
38149
38392
  wrapEth: booleanType().default(false)
38150
38393
  }).transform((v2) => {
38151
38394
  return remap(v2, {
38152
38395
  tokenIn: "token_in",
38153
38396
  tokenOut: "token_out",
38154
- amountOut: "amount_out",
38155
38397
  maxSlippagePercent: "max_slippage_percent",
38156
38398
  wrapEth: "wrap_eth"
38157
38399
  });
@@ -38606,53 +38848,9 @@ var init_multicallauthorizationresponse = __esm(() => {
38606
38848
  })(MulticallAuthorizationResponse$ ||= {});
38607
38849
  });
38608
38850
 
38609
- // src/models/components/signedauthorization.ts
38610
- var R$inboundSchema, R$outboundSchema, R$, S$inboundSchema, S$outboundSchema, S$, SignedAuthorization$inboundSchema, SignedAuthorization$outboundSchema, SignedAuthorization$;
38611
- var init_signedauthorization = __esm(() => {
38612
- init_lib();
38613
- R$inboundSchema = unionType([
38614
- numberType().int(),
38615
- stringType()
38616
- ]);
38617
- R$outboundSchema = unionType([numberType().int(), stringType()]);
38618
- ((R$) => {
38619
- R$.inboundSchema = R$inboundSchema;
38620
- R$.outboundSchema = R$outboundSchema;
38621
- })(R$ ||= {});
38622
- S$inboundSchema = unionType([
38623
- numberType().int(),
38624
- stringType()
38625
- ]);
38626
- S$outboundSchema = unionType([numberType().int(), stringType()]);
38627
- ((S$) => {
38628
- S$.inboundSchema = S$inboundSchema;
38629
- S$.outboundSchema = S$outboundSchema;
38630
- })(S$ ||= {});
38631
- SignedAuthorization$inboundSchema = objectType({
38632
- nonce: numberType().int(),
38633
- address: stringType(),
38634
- chainId: numberType().int(),
38635
- r: unionType([numberType().int(), stringType()]),
38636
- s: unionType([numberType().int(), stringType()]),
38637
- yParity: numberType().int()
38638
- });
38639
- SignedAuthorization$outboundSchema = objectType({
38640
- nonce: numberType().int(),
38641
- address: stringType(),
38642
- chainId: numberType().int(),
38643
- r: unionType([numberType().int(), stringType()]),
38644
- s: unionType([numberType().int(), stringType()]),
38645
- yParity: numberType().int()
38646
- });
38647
- ((SignedAuthorization$) => {
38648
- SignedAuthorization$.inboundSchema = SignedAuthorization$inboundSchema;
38649
- SignedAuthorization$.outboundSchema = SignedAuthorization$outboundSchema;
38650
- })(SignedAuthorization$ ||= {});
38651
- });
38652
-
38653
- // src/models/components/multicallexecuterequest.ts
38654
- var MulticallExecuteRequest$inboundSchema, MulticallExecuteRequest$outboundSchema, MulticallExecuteRequest$;
38655
- var init_multicallexecuterequest = __esm(() => {
38851
+ // src/models/components/multicallexecuterequest.ts
38852
+ var MulticallExecuteRequest$inboundSchema, MulticallExecuteRequest$outboundSchema, MulticallExecuteRequest$;
38853
+ var init_multicallexecuterequest = __esm(() => {
38656
38854
  init_lib();
38657
38855
  init_primitives();
38658
38856
  init_chain();
@@ -39078,24 +39276,24 @@ var init_tokentransferrequest = __esm(() => {
39078
39276
  });
39079
39277
 
39080
39278
  // src/models/components/uniswapbuyexactlyrequest.ts
39081
- var UniswapBuyExactlyRequestAmountOut$inboundSchema, UniswapBuyExactlyRequestAmountOut$outboundSchema, UniswapBuyExactlyRequestAmountOut$, UniswapBuyExactlyRequest$inboundSchema, UniswapBuyExactlyRequest$outboundSchema, UniswapBuyExactlyRequest$;
39279
+ var UniswapBuyExactlyRequestAmount$inboundSchema, UniswapBuyExactlyRequestAmount$outboundSchema, UniswapBuyExactlyRequestAmount$, UniswapBuyExactlyRequest$inboundSchema, UniswapBuyExactlyRequest$outboundSchema, UniswapBuyExactlyRequest$;
39082
39280
  var init_uniswapbuyexactlyrequest = __esm(() => {
39083
39281
  init_lib();
39084
39282
  init_primitives();
39085
39283
  init_chain();
39086
39284
  init_feeenum();
39087
39285
  init_tokenenum();
39088
- UniswapBuyExactlyRequestAmountOut$inboundSchema = unionType([numberType(), stringType()]);
39089
- UniswapBuyExactlyRequestAmountOut$outboundSchema = unionType([numberType(), stringType()]);
39090
- ((UniswapBuyExactlyRequestAmountOut$) => {
39091
- UniswapBuyExactlyRequestAmountOut$.inboundSchema = UniswapBuyExactlyRequestAmountOut$inboundSchema;
39092
- UniswapBuyExactlyRequestAmountOut$.outboundSchema = UniswapBuyExactlyRequestAmountOut$outboundSchema;
39093
- })(UniswapBuyExactlyRequestAmountOut$ ||= {});
39286
+ UniswapBuyExactlyRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
39287
+ UniswapBuyExactlyRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
39288
+ ((UniswapBuyExactlyRequestAmount$) => {
39289
+ UniswapBuyExactlyRequestAmount$.inboundSchema = UniswapBuyExactlyRequestAmount$inboundSchema;
39290
+ UniswapBuyExactlyRequestAmount$.outboundSchema = UniswapBuyExactlyRequestAmount$outboundSchema;
39291
+ })(UniswapBuyExactlyRequestAmount$ ||= {});
39094
39292
  UniswapBuyExactlyRequest$inboundSchema = objectType({
39095
39293
  token_in: TokenEnum$inboundSchema,
39096
39294
  token_out: TokenEnum$inboundSchema,
39097
39295
  fee: FeeEnum$inboundSchema,
39098
- amount_out: unionType([numberType(), stringType()]),
39296
+ amount: unionType([numberType(), stringType()]),
39099
39297
  max_slippage_percent: numberType(),
39100
39298
  wrap_eth: booleanType().default(false),
39101
39299
  chain: Chain$inboundSchema,
@@ -39104,7 +39302,6 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
39104
39302
  return remap(v2, {
39105
39303
  token_in: "tokenIn",
39106
39304
  token_out: "tokenOut",
39107
- amount_out: "amountOut",
39108
39305
  max_slippage_percent: "maxSlippagePercent",
39109
39306
  wrap_eth: "wrapEth"
39110
39307
  });
@@ -39113,7 +39310,7 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
39113
39310
  tokenIn: TokenEnum$outboundSchema,
39114
39311
  tokenOut: TokenEnum$outboundSchema,
39115
39312
  fee: FeeEnum$outboundSchema,
39116
- amountOut: unionType([numberType(), stringType()]),
39313
+ amount: unionType([numberType(), stringType()]),
39117
39314
  maxSlippagePercent: numberType(),
39118
39315
  wrapEth: booleanType().default(false),
39119
39316
  chain: Chain$outboundSchema,
@@ -39122,7 +39319,6 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
39122
39319
  return remap(v2, {
39123
39320
  tokenIn: "token_in",
39124
39321
  tokenOut: "token_out",
39125
- amountOut: "amount_out",
39126
39322
  maxSlippagePercent: "max_slippage_percent",
39127
39323
  wrapEth: "wrap_eth"
39128
39324
  });
@@ -39723,9 +39919,9 @@ var init_wrapethrequest = __esm(() => {
39723
39919
  var init_components = __esm(() => {
39724
39920
  init_aaveborrowparams();
39725
39921
  init_aaveborrowrequest();
39726
- init_aavehistoricaltransactionbase();
39727
39922
  init_aavehistoricaltransactionsresponse();
39728
39923
  init_aaveliquiditychangeresponse();
39924
+ init_aavelooprequest();
39729
39925
  init_aaverateresponse();
39730
39926
  init_aaverepayparams();
39731
39927
  init_aaverepayrequest();
@@ -39737,7 +39933,6 @@ var init_components = __esm(() => {
39737
39933
  init_aaveuserpositionsummaryresponse();
39738
39934
  init_aavewithdrawparams();
39739
39935
  init_aavewithdrawrequest();
39740
- init_action();
39741
39936
  init_aerodromelppositionsresponse();
39742
39937
  init_aerodromeposition();
39743
39938
  init_aerodromeslipstreambuyexactlyparams();
@@ -39755,7 +39950,6 @@ var init_components = __esm(() => {
39755
39950
  init_borrow();
39756
39951
  init_chain();
39757
39952
  init_chaininfo();
39758
- init_collateralreserve();
39759
39953
  init_compassapibackendmodelsmorphoreadresponsegetmarketsasset();
39760
39954
  init_compassapibackendmodelsmorphoreadresponsegetvaultsasset();
39761
39955
  init_contractname();
@@ -39787,7 +39981,6 @@ var init_components = __esm(() => {
39787
39981
  init_multicallauthorizationresponse();
39788
39982
  init_multicallexecuterequest();
39789
39983
  init_portfolio();
39790
- init_principalreserve();
39791
39984
  init_redeemunderlying();
39792
39985
  init_repay();
39793
39986
  init_reserve();
@@ -40918,9 +41111,8 @@ var init_morphomarketposition = __esm(() => {
40918
41111
  init_lib();
40919
41112
  init_primitives();
40920
41113
  MorphoMarketPositionChain = {
40921
- BaseMainnet: "base:mainnet",
40922
41114
  EthereumMainnet: "ethereum:mainnet",
40923
- ArbitrumMainnet: "arbitrum:mainnet"
41115
+ BaseMainnet: "base:mainnet"
40924
41116
  };
40925
41117
  MorphoMarketPositionChain$inboundSchema = nativeEnumType(MorphoMarketPositionChain);
40926
41118
  MorphoMarketPositionChain$outboundSchema = MorphoMarketPositionChain$inboundSchema;
@@ -40960,9 +41152,8 @@ var init_morphomarkets = __esm(() => {
40960
41152
  init_lib();
40961
41153
  init_primitives();
40962
41154
  MorphoMarketsChain = {
40963
- BaseMainnet: "base:mainnet",
40964
41155
  EthereumMainnet: "ethereum:mainnet",
40965
- ArbitrumMainnet: "arbitrum:mainnet"
41156
+ BaseMainnet: "base:mainnet"
40966
41157
  };
40967
41158
  MorphoMarketsChain$inboundSchema = nativeEnumType(MorphoMarketsChain);
40968
41159
  MorphoMarketsChain$outboundSchema = MorphoMarketsChain$inboundSchema;
@@ -41002,9 +41193,8 @@ var init_morphovaultposition = __esm(() => {
41002
41193
  init_lib();
41003
41194
  init_primitives();
41004
41195
  MorphoVaultPositionChain = {
41005
- BaseMainnet: "base:mainnet",
41006
41196
  EthereumMainnet: "ethereum:mainnet",
41007
- ArbitrumMainnet: "arbitrum:mainnet"
41197
+ BaseMainnet: "base:mainnet"
41008
41198
  };
41009
41199
  MorphoVaultPositionChain$inboundSchema = nativeEnumType(MorphoVaultPositionChain);
41010
41200
  MorphoVaultPositionChain$outboundSchema = MorphoVaultPositionChain$inboundSchema;
@@ -41044,9 +41234,8 @@ var init_morphovaults = __esm(() => {
41044
41234
  init_lib();
41045
41235
  init_primitives();
41046
41236
  MorphoVaultsChain = {
41047
- BaseMainnet: "base:mainnet",
41048
41237
  EthereumMainnet: "ethereum:mainnet",
41049
- ArbitrumMainnet: "arbitrum:mainnet"
41238
+ BaseMainnet: "base:mainnet"
41050
41239
  };
41051
41240
  MorphoVaultsChain$inboundSchema = nativeEnumType(MorphoVaultsChain);
41052
41241
  MorphoVaultsChain$outboundSchema = MorphoVaultsChain$inboundSchema;
@@ -41056,7 +41245,7 @@ var init_morphovaults = __esm(() => {
41056
41245
  })(MorphoVaultsChain$ ||= {});
41057
41246
  MorphoVaultsRequest$inboundSchema = objectType({
41058
41247
  chain: MorphoVaultsChain$inboundSchema.default("ethereum:mainnet"),
41059
- deposit_token: nullableType(stringType())
41248
+ deposit_token: nullableType(stringType()).optional()
41060
41249
  }).transform((v2) => {
41061
41250
  return remap(v2, {
41062
41251
  deposit_token: "depositToken"
@@ -41064,7 +41253,7 @@ var init_morphovaults = __esm(() => {
41064
41253
  });
41065
41254
  MorphoVaultsRequest$outboundSchema = objectType({
41066
41255
  chain: MorphoVaultsChain$outboundSchema.default("ethereum:mainnet"),
41067
- depositToken: nullableType(stringType())
41256
+ depositToken: nullableType(stringType()).optional()
41068
41257
  }).transform((v2) => {
41069
41258
  return remap(v2, {
41070
41259
  depositToken: "deposit_token"
@@ -45946,11 +46135,122 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
45946
46135
  };
45947
46136
  });
45948
46137
 
45949
- // src/funcs/transactionBatchingAuthorization.ts
45950
- function transactionBatchingAuthorization(client, request, options) {
46138
+ // src/funcs/transactionBatchingAaveLoop.ts
46139
+ function transactionBatchingAaveLoop(client, request, options) {
45951
46140
  return new APIPromise($do39(client, request, options));
45952
46141
  }
45953
46142
  async function $do39(client, request, options) {
46143
+ const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
46144
+ if (!parsed.ok) {
46145
+ return [parsed, { status: "invalid" }];
46146
+ }
46147
+ const payload = parsed.value;
46148
+ const body = encodeJSON("body", payload, { explode: true });
46149
+ const path = pathToFunc("/v0/multicall/aave/loop")();
46150
+ const headers = new Headers(compactMap({
46151
+ "Content-Type": "application/json",
46152
+ Accept: "application/json"
46153
+ }));
46154
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
46155
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
46156
+ const requestSecurity = resolveGlobalSecurity(securityInput);
46157
+ const context = {
46158
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
46159
+ operationID: "multicall_aave_loop",
46160
+ oAuth2Scopes: [],
46161
+ resolvedSecurity: requestSecurity,
46162
+ securitySource: client._options.apiKeyAuth,
46163
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
46164
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
46165
+ };
46166
+ const requestRes = client._createRequest(context, {
46167
+ security: requestSecurity,
46168
+ method: "POST",
46169
+ baseURL: options?.serverURL,
46170
+ path,
46171
+ headers,
46172
+ body,
46173
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46174
+ }, options);
46175
+ if (!requestRes.ok) {
46176
+ return [requestRes, { status: "invalid" }];
46177
+ }
46178
+ const req = requestRes.value;
46179
+ const doResult = await client._do(req, {
46180
+ context,
46181
+ errorCodes: ["422", "4XX", "5XX"],
46182
+ retryConfig: context.retryConfig,
46183
+ retryCodes: context.retryCodes
46184
+ });
46185
+ if (!doResult.ok) {
46186
+ return [doResult, { status: "request-error", request: req }];
46187
+ }
46188
+ const response = doResult.value;
46189
+ const responseFields = {
46190
+ HttpMeta: { Response: response, Request: req }
46191
+ };
46192
+ const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
46193
+ if (!result.ok) {
46194
+ return [result, { status: "complete", request: req, response }];
46195
+ }
46196
+ return [result, { status: "complete", request: req, response }];
46197
+ }
46198
+ var init_transactionBatchingAaveLoop = __esm(() => {
46199
+ init_encodings();
46200
+ init_matchers();
46201
+ init_primitives();
46202
+ init_schemas();
46203
+ init_security();
46204
+ init_url();
46205
+ init_components();
46206
+ init_errors();
46207
+ init_async();
46208
+ });
46209
+
46210
+ // src/mcp-server/tools/transactionBatchingAaveLoop.ts
46211
+ var args39, tool$transactionBatchingAaveLoop;
46212
+ var init_transactionBatchingAaveLoop2 = __esm(() => {
46213
+ init_transactionBatchingAaveLoop();
46214
+ init_components();
46215
+ init_tools();
46216
+ args39 = {
46217
+ request: AaveLoopRequest$inboundSchema
46218
+ };
46219
+ tool$transactionBatchingAaveLoop = {
46220
+ name: "transaction-batching-aave-loop",
46221
+ description: `Execute Aave Loop Strategy
46222
+
46223
+ Execute an Aave looping strategy that involves repeated supply and borrow
46224
+ operations.
46225
+
46226
+ This endpoint creates a multicall transaction that performs a series of operations:
46227
+ 1. Approves and supplies initial token
46228
+ 2. For each loop:
46229
+ - Borrows another token
46230
+ - Swaps borrowed token back to supply token
46231
+ - Supplies the swapped tokens
46232
+
46233
+ The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
46234
+ args: args39,
46235
+ tool: async (client, args40, ctx) => {
46236
+ const [result, apiCall] = await transactionBatchingAaveLoop(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46237
+ if (!result.ok) {
46238
+ return {
46239
+ content: [{ type: "text", text: result.error.message }],
46240
+ isError: true
46241
+ };
46242
+ }
46243
+ const value = result.value;
46244
+ return formatResult(value, apiCall);
46245
+ }
46246
+ };
46247
+ });
46248
+
46249
+ // src/funcs/transactionBatchingAuthorization.ts
46250
+ function transactionBatchingAuthorization(client, request, options) {
46251
+ return new APIPromise($do40(client, request, options));
46252
+ }
46253
+ async function $do40(client, request, options) {
45954
46254
  const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
45955
46255
  if (!parsed.ok) {
45956
46256
  return [parsed, { status: "invalid" }];
@@ -46019,12 +46319,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
46019
46319
  });
46020
46320
 
46021
46321
  // src/mcp-server/tools/transactionBatchingAuthorization.ts
46022
- var args39, tool$transactionBatchingAuthorization;
46322
+ var args40, tool$transactionBatchingAuthorization;
46023
46323
  var init_transactionBatchingAuthorization2 = __esm(() => {
46024
46324
  init_transactionBatchingAuthorization();
46025
46325
  init_components();
46026
46326
  init_tools();
46027
- args39 = {
46327
+ args40 = {
46028
46328
  request: MulticallAuthorizationRequest$inboundSchema
46029
46329
  };
46030
46330
  tool$transactionBatchingAuthorization = {
@@ -46037,9 +46337,9 @@ This authorization is required to prevent replay attacks and ensure transaction
46037
46337
  ordering when batching multiple actions into a single transaction. The authorization
46038
46338
  includes a nonce and chain ID to guarantee transaction uniqueness and proper network
46039
46339
  targeting.`,
46040
- args: args39,
46041
- tool: async (client, args40, ctx) => {
46042
- const [result, apiCall] = await transactionBatchingAuthorization(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46340
+ args: args40,
46341
+ tool: async (client, args41, ctx) => {
46342
+ const [result, apiCall] = await transactionBatchingAuthorization(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46043
46343
  if (!result.ok) {
46044
46344
  return {
46045
46345
  content: [{ type: "text", text: result.error.message }],
@@ -46054,9 +46354,9 @@ targeting.`,
46054
46354
 
46055
46355
  // src/funcs/transactionBatchingExecute.ts
46056
46356
  function transactionBatchingExecute(client, request, options) {
46057
- return new APIPromise($do40(client, request, options));
46357
+ return new APIPromise($do41(client, request, options));
46058
46358
  }
46059
- async function $do40(client, request, options) {
46359
+ async function $do41(client, request, options) {
46060
46360
  const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
46061
46361
  if (!parsed.ok) {
46062
46362
  return [parsed, { status: "invalid" }];
@@ -46125,12 +46425,12 @@ var init_transactionBatchingExecute = __esm(() => {
46125
46425
  });
46126
46426
 
46127
46427
  // src/mcp-server/tools/transactionBatchingExecute.ts
46128
- var args40, tool$transactionBatchingExecute;
46428
+ var args41, tool$transactionBatchingExecute;
46129
46429
  var init_transactionBatchingExecute2 = __esm(() => {
46130
46430
  init_transactionBatchingExecute();
46131
46431
  init_components();
46132
46432
  init_tools();
46133
- args40 = {
46433
+ args41 = {
46134
46434
  request: MulticallExecuteRequest$inboundSchema
46135
46435
  };
46136
46436
  tool$transactionBatchingExecute = {
@@ -46143,9 +46443,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
46143
46443
  transaction, reducing gas costs and ensuring all operations succeed or fail
46144
46444
  together. The transaction must be authorized using the /authorization endpoint to
46145
46445
  prevent replay attacks.`,
46146
- args: args40,
46147
- tool: async (client, args41, ctx) => {
46148
- const [result, apiCall] = await transactionBatchingExecute(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46446
+ args: args41,
46447
+ tool: async (client, args42, ctx) => {
46448
+ const [result, apiCall] = await transactionBatchingExecute(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46149
46449
  if (!result.ok) {
46150
46450
  return {
46151
46451
  content: [{ type: "text", text: result.error.message }],
@@ -46160,9 +46460,9 @@ prevent replay attacks.`,
46160
46460
 
46161
46461
  // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
46162
46462
  function uniswapV3LiquidityProvisionIncrease(client, request, options) {
46163
- return new APIPromise($do41(client, request, options));
46463
+ return new APIPromise($do42(client, request, options));
46164
46464
  }
46165
- async function $do41(client, request, options) {
46465
+ async function $do42(client, request, options) {
46166
46466
  const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
46167
46467
  if (!parsed.ok) {
46168
46468
  return [parsed, { status: "invalid" }];
@@ -46231,12 +46531,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
46231
46531
  });
46232
46532
 
46233
46533
  // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
46234
- var args41, tool$uniswapV3LiquidityProvisionIncrease;
46534
+ var args42, tool$uniswapV3LiquidityProvisionIncrease;
46235
46535
  var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
46236
46536
  init_uniswapV3LiquidityProvisionIncrease();
46237
46537
  init_components();
46238
46538
  init_tools();
46239
- args41 = {
46539
+ args42 = {
46240
46540
  request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
46241
46541
  };
46242
46542
  tool$uniswapV3LiquidityProvisionIncrease = {
@@ -46252,9 +46552,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
46252
46552
  within the pool. The endpoint requires details such as the token pair, additional
46253
46553
  amount to be added, and any other parameters necessary for the liquidity increase
46254
46554
  process.`,
46255
- args: args41,
46256
- tool: async (client, args42, ctx) => {
46257
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46555
+ args: args42,
46556
+ tool: async (client, args43, ctx) => {
46557
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46258
46558
  if (!result.ok) {
46259
46559
  return {
46260
46560
  content: [{ type: "text", text: result.error.message }],
@@ -46269,9 +46569,9 @@ process.`,
46269
46569
 
46270
46570
  // src/funcs/uniswapV3LiquidityProvisionInRange.ts
46271
46571
  function uniswapV3LiquidityProvisionInRange(client, request, options) {
46272
- return new APIPromise($do42(client, request, options));
46572
+ return new APIPromise($do43(client, request, options));
46273
46573
  }
46274
- async function $do42(client, request, options) {
46574
+ async function $do43(client, request, options) {
46275
46575
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
46276
46576
  if (!parsed.ok) {
46277
46577
  return [parsed, { status: "invalid" }];
@@ -46345,12 +46645,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
46345
46645
  });
46346
46646
 
46347
46647
  // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
46348
- var args42, tool$uniswapV3LiquidityProvisionInRange;
46648
+ var args43, tool$uniswapV3LiquidityProvisionInRange;
46349
46649
  var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
46350
46650
  init_uniswapV3LiquidityProvisionInRange();
46351
46651
  init_operations();
46352
46652
  init_tools();
46353
- args42 = {
46653
+ args43 = {
46354
46654
  request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
46355
46655
  };
46356
46656
  tool$uniswapV3LiquidityProvisionInRange = {
@@ -46365,9 +46665,9 @@ position is currently within the tick range where trading occurs. this informati
46365
46665
  is essential for users to monitor the status of their lp positions and ensure that
46366
46666
  they are actively participating in the trading activities within the liquidity pool
46367
46667
  and earning trading fees.`,
46368
- args: args42,
46369
- tool: async (client, args43, ctx) => {
46370
- const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46668
+ args: args43,
46669
+ tool: async (client, args44, ctx) => {
46670
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46371
46671
  if (!result.ok) {
46372
46672
  return {
46373
46673
  content: [{ type: "text", text: result.error.message }],
@@ -46382,9 +46682,9 @@ and earning trading fees.`,
46382
46682
 
46383
46683
  // src/funcs/uniswapV3LiquidityProvisionMint.ts
46384
46684
  function uniswapV3LiquidityProvisionMint(client, request, options) {
46385
- return new APIPromise($do43(client, request, options));
46685
+ return new APIPromise($do44(client, request, options));
46386
46686
  }
46387
- async function $do43(client, request, options) {
46687
+ async function $do44(client, request, options) {
46388
46688
  const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
46389
46689
  if (!parsed.ok) {
46390
46690
  return [parsed, { status: "invalid" }];
@@ -46453,12 +46753,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
46453
46753
  });
46454
46754
 
46455
46755
  // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
46456
- var args43, tool$uniswapV3LiquidityProvisionMint;
46756
+ var args44, tool$uniswapV3LiquidityProvisionMint;
46457
46757
  var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
46458
46758
  init_uniswapV3LiquidityProvisionMint();
46459
46759
  init_components();
46460
46760
  init_tools();
46461
- args43 = {
46761
+ args44 = {
46462
46762
  request: UniswapMintLiquidityProvisionRequest$inboundSchema
46463
46763
  };
46464
46764
  tool$uniswapV3LiquidityProvisionMint = {
@@ -46474,9 +46774,9 @@ This operation is essential for users looking to participate in liquidity provis
46474
46774
  enabling them to earn fees from trades that occur within the pool. The endpoint
46475
46775
  requires details such as the token pair, amount, and any additional parameters
46476
46776
  needed for the minting process.`,
46477
- args: args43,
46478
- tool: async (client, args44, ctx) => {
46479
- const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46777
+ args: args44,
46778
+ tool: async (client, args45, ctx) => {
46779
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46480
46780
  if (!result.ok) {
46481
46781
  return {
46482
46782
  content: [{ type: "text", text: result.error.message }],
@@ -46491,9 +46791,9 @@ needed for the minting process.`,
46491
46791
 
46492
46792
  // src/funcs/uniswapV3LiquidityProvisionPositions.ts
46493
46793
  function uniswapV3LiquidityProvisionPositions(client, request, options) {
46494
- return new APIPromise($do44(client, request, options));
46794
+ return new APIPromise($do45(client, request, options));
46495
46795
  }
46496
- async function $do44(client, request, options) {
46796
+ async function $do45(client, request, options) {
46497
46797
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
46498
46798
  if (!parsed.ok) {
46499
46799
  return [parsed, { status: "invalid" }];
@@ -46567,12 +46867,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
46567
46867
  });
46568
46868
 
46569
46869
  // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
46570
- var args44, tool$uniswapV3LiquidityProvisionPositions;
46870
+ var args45, tool$uniswapV3LiquidityProvisionPositions;
46571
46871
  var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
46572
46872
  init_uniswapV3LiquidityProvisionPositions();
46573
46873
  init_operations();
46574
46874
  init_tools();
46575
- args44 = {
46875
+ args45 = {
46576
46876
  request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
46577
46877
  };
46578
46878
  tool$uniswapV3LiquidityProvisionPositions = {
@@ -46586,9 +46886,9 @@ Users can query this endpoint to obtain detailed information about their LP
46586
46886
  positions, including the total number of positions and relevant metadata. This
46587
46887
  information is crucial for users to manage and analyze their liquidity provision
46588
46888
  activities effectively.`,
46589
- args: args44,
46590
- tool: async (client, args45, ctx) => {
46591
- const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46889
+ args: args45,
46890
+ tool: async (client, args46, ctx) => {
46891
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46592
46892
  if (!result.ok) {
46593
46893
  return {
46594
46894
  content: [{ type: "text", text: result.error.message }],
@@ -46603,9 +46903,9 @@ activities effectively.`,
46603
46903
 
46604
46904
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
46605
46905
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
46606
- return new APIPromise($do45(client, request, options));
46906
+ return new APIPromise($do46(client, request, options));
46607
46907
  }
46608
- async function $do45(client, request, options) {
46908
+ async function $do46(client, request, options) {
46609
46909
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
46610
46910
  if (!parsed.ok) {
46611
46911
  return [parsed, { status: "invalid" }];
@@ -46674,12 +46974,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
46674
46974
  });
46675
46975
 
46676
46976
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
46677
- var args45, tool$uniswapV3LiquidityProvisionWithdraw;
46977
+ var args46, tool$uniswapV3LiquidityProvisionWithdraw;
46678
46978
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
46679
46979
  init_uniswapV3LiquidityProvisionWithdraw();
46680
46980
  init_components();
46681
46981
  init_tools();
46682
- args45 = {
46982
+ args46 = {
46683
46983
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
46684
46984
  };
46685
46985
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -46696,9 +46996,9 @@ pools or investments. The endpoint requires details such as the token pair, the
46696
46996
  amount to be withdrawn, and any additional parameters needed for the withdrawal
46697
46997
  process. Users should ensure they meet any protocol requirements or conditions
46698
46998
  before initiating a withdrawal to avoid potential issues or penalties.`,
46699
- args: args45,
46700
- tool: async (client, args46, ctx) => {
46701
- const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46999
+ args: args46,
47000
+ tool: async (client, args47, ctx) => {
47001
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46702
47002
  if (!result.ok) {
46703
47003
  return {
46704
47004
  content: [{ type: "text", text: result.error.message }],
@@ -46713,9 +47013,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
46713
47013
 
46714
47014
  // src/funcs/uniswapV3PoolPrice.ts
46715
47015
  function uniswapV3PoolPrice(client, request, options) {
46716
- return new APIPromise($do46(client, request, options));
47016
+ return new APIPromise($do47(client, request, options));
46717
47017
  }
46718
- async function $do46(client, request, options) {
47018
+ async function $do47(client, request, options) {
46719
47019
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
46720
47020
  if (!parsed.ok) {
46721
47021
  return [parsed, { status: "invalid" }];
@@ -46791,12 +47091,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
46791
47091
  });
46792
47092
 
46793
47093
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
46794
- var args46, tool$uniswapV3PoolPrice;
47094
+ var args47, tool$uniswapV3PoolPrice;
46795
47095
  var init_uniswapV3PoolPrice2 = __esm(() => {
46796
47096
  init_uniswapV3PoolPrice();
46797
47097
  init_operations();
46798
47098
  init_tools();
46799
- args46 = {
47099
+ args47 = {
46800
47100
  request: UniswapPoolPriceRequest$inboundSchema
46801
47101
  };
46802
47102
  tool$uniswapV3PoolPrice = {
@@ -46806,9 +47106,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
46806
47106
  This endpoint calculates the price of a token in a Uniswap pool.
46807
47107
 
46808
47108
  The price is calculated based on the current pool state and the specified fee tier.`,
46809
- args: args46,
46810
- tool: async (client, args47, ctx) => {
46811
- const [result, apiCall] = await uniswapV3PoolPrice(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47109
+ args: args47,
47110
+ tool: async (client, args48, ctx) => {
47111
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46812
47112
  if (!result.ok) {
46813
47113
  return {
46814
47114
  content: [{ type: "text", text: result.error.message }],
@@ -46823,9 +47123,9 @@ The price is calculated based on the current pool state and the specified fee ti
46823
47123
 
46824
47124
  // src/funcs/uniswapV3QuoteBuyExactly.ts
46825
47125
  function uniswapV3QuoteBuyExactly(client, request, options) {
46826
- return new APIPromise($do47(client, request, options));
47126
+ return new APIPromise($do48(client, request, options));
46827
47127
  }
46828
- async function $do47(client, request, options) {
47128
+ async function $do48(client, request, options) {
46829
47129
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
46830
47130
  if (!parsed.ok) {
46831
47131
  return [parsed, { status: "invalid" }];
@@ -46902,12 +47202,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
46902
47202
  });
46903
47203
 
46904
47204
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
46905
- var args47, tool$uniswapV3QuoteBuyExactly;
47205
+ var args48, tool$uniswapV3QuoteBuyExactly;
46906
47206
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
46907
47207
  init_uniswapV3QuoteBuyExactly();
46908
47208
  init_operations();
46909
47209
  init_tools();
46910
- args47 = {
47210
+ args48 = {
46911
47211
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
46912
47212
  };
46913
47213
  tool$uniswapV3QuoteBuyExactly = {
@@ -46919,9 +47219,9 @@ specified amount of output tokens from a Uniswap pool.
46919
47219
 
46920
47220
  It also provides the resulting price after the transaction. The calculation takes
46921
47221
  into account the current pool state and the specified fee tier.`,
46922
- args: args47,
46923
- tool: async (client, args48, ctx) => {
46924
- const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47222
+ args: args48,
47223
+ tool: async (client, args49, ctx) => {
47224
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46925
47225
  if (!result.ok) {
46926
47226
  return {
46927
47227
  content: [{ type: "text", text: result.error.message }],
@@ -46936,9 +47236,9 @@ into account the current pool state and the specified fee tier.`,
46936
47236
 
46937
47237
  // src/funcs/uniswapV3QuoteSellExactly.ts
46938
47238
  function uniswapV3QuoteSellExactly(client, request, options) {
46939
- return new APIPromise($do48(client, request, options));
47239
+ return new APIPromise($do49(client, request, options));
46940
47240
  }
46941
- async function $do48(client, request, options) {
47241
+ async function $do49(client, request, options) {
46942
47242
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
46943
47243
  if (!parsed.ok) {
46944
47244
  return [parsed, { status: "invalid" }];
@@ -47015,12 +47315,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
47015
47315
  });
47016
47316
 
47017
47317
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
47018
- var args48, tool$uniswapV3QuoteSellExactly;
47318
+ var args49, tool$uniswapV3QuoteSellExactly;
47019
47319
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
47020
47320
  init_uniswapV3QuoteSellExactly();
47021
47321
  init_operations();
47022
47322
  init_tools();
47023
- args48 = {
47323
+ args49 = {
47024
47324
  request: UniswapQuoteSellExactlyRequest$inboundSchema
47025
47325
  };
47026
47326
  tool$uniswapV3QuoteSellExactly = {
@@ -47032,9 +47332,9 @@ specified amount of output tokens from a Uniswap pool.
47032
47332
 
47033
47333
  It also provides the resulting price after the transaction. The calculation takes
47034
47334
  into account the current pool state and the specified fee tier.`,
47035
- args: args48,
47036
- tool: async (client, args49, ctx) => {
47037
- const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47335
+ args: args49,
47336
+ tool: async (client, args50, ctx) => {
47337
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47038
47338
  if (!result.ok) {
47039
47339
  return {
47040
47340
  content: [{ type: "text", text: result.error.message }],
@@ -47049,9 +47349,9 @@ into account the current pool state and the specified fee tier.`,
47049
47349
 
47050
47350
  // src/funcs/uniswapV3SwapBuyExactly.ts
47051
47351
  function uniswapV3SwapBuyExactly(client, request, options) {
47052
- return new APIPromise($do49(client, request, options));
47352
+ return new APIPromise($do50(client, request, options));
47053
47353
  }
47054
- async function $do49(client, request, options) {
47354
+ async function $do50(client, request, options) {
47055
47355
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
47056
47356
  if (!parsed.ok) {
47057
47357
  return [parsed, { status: "invalid" }];
@@ -47120,12 +47420,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
47120
47420
  });
47121
47421
 
47122
47422
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
47123
- var args49, tool$uniswapV3SwapBuyExactly;
47423
+ var args50, tool$uniswapV3SwapBuyExactly;
47124
47424
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
47125
47425
  init_uniswapV3SwapBuyExactly();
47126
47426
  init_components();
47127
47427
  init_tools();
47128
- args49 = {
47428
+ args50 = {
47129
47429
  request: UniswapBuyExactlyRequest$inboundSchema
47130
47430
  };
47131
47431
  tool$uniswapV3SwapBuyExactly = {
@@ -47139,9 +47439,9 @@ The transaction is executed on the specified blockchain network, and the user mu
47139
47439
  provide the necessary transaction details, including the token to buy, the token to
47140
47440
  pay with, and the exact amount to receive. If the token being paid with is WETH and
47141
47441
  needs to be wrapped, the appropriate amount will be wrapped automatically.`,
47142
- args: args49,
47143
- tool: async (client, args50, ctx) => {
47144
- const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47442
+ args: args50,
47443
+ tool: async (client, args51, ctx) => {
47444
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47145
47445
  if (!result.ok) {
47146
47446
  return {
47147
47447
  content: [{ type: "text", text: result.error.message }],
@@ -47156,9 +47456,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
47156
47456
 
47157
47457
  // src/funcs/uniswapV3SwapSellExactly.ts
47158
47458
  function uniswapV3SwapSellExactly(client, request, options) {
47159
- return new APIPromise($do50(client, request, options));
47459
+ return new APIPromise($do51(client, request, options));
47160
47460
  }
47161
- async function $do50(client, request, options) {
47461
+ async function $do51(client, request, options) {
47162
47462
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
47163
47463
  if (!parsed.ok) {
47164
47464
  return [parsed, { status: "invalid" }];
@@ -47227,12 +47527,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
47227
47527
  });
47228
47528
 
47229
47529
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
47230
- var args50, tool$uniswapV3SwapSellExactly;
47530
+ var args51, tool$uniswapV3SwapSellExactly;
47231
47531
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
47232
47532
  init_uniswapV3SwapSellExactly();
47233
47533
  init_components();
47234
47534
  init_tools();
47235
- args50 = {
47535
+ args51 = {
47236
47536
  request: UniswapSellExactlyRequest$inboundSchema
47237
47537
  };
47238
47538
  tool$uniswapV3SwapSellExactly = {
@@ -47246,9 +47546,9 @@ The transaction is executed on the specified blockchain network, and the user mu
47246
47546
  provide the necessary transaction details, including the token to sell, the token to
47247
47547
  receive, and the amount to sell. If the token being sold is WETH and needs to be
47248
47548
  wrapped, the appropriate amount will be wrapped automatically.`,
47249
- args: args50,
47250
- tool: async (client, args51, ctx) => {
47251
- const [result, apiCall] = await uniswapV3SwapSellExactly(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47549
+ args: args51,
47550
+ tool: async (client, args52, ctx) => {
47551
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47252
47552
  if (!result.ok) {
47253
47553
  return {
47254
47554
  content: [{ type: "text", text: result.error.message }],
@@ -47263,9 +47563,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
47263
47563
 
47264
47564
  // src/funcs/universalAllowance.ts
47265
47565
  function universalAllowance(client, request, options) {
47266
- return new APIPromise($do51(client, request, options));
47566
+ return new APIPromise($do52(client, request, options));
47267
47567
  }
47268
- async function $do51(client, request, options) {
47568
+ async function $do52(client, request, options) {
47269
47569
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
47270
47570
  if (!parsed.ok) {
47271
47571
  return [parsed, { status: "invalid" }];
@@ -47341,12 +47641,12 @@ var init_universalAllowance = __esm(() => {
47341
47641
  });
47342
47642
 
47343
47643
  // src/mcp-server/tools/universalAllowance.ts
47344
- var args51, tool$universalAllowance;
47644
+ var args52, tool$universalAllowance;
47345
47645
  var init_universalAllowance2 = __esm(() => {
47346
47646
  init_universalAllowance();
47347
47647
  init_operations();
47348
47648
  init_tools();
47349
- args51 = {
47649
+ args52 = {
47350
47650
  request: GenericAllowanceRequest$inboundSchema
47351
47651
  };
47352
47652
  tool$universalAllowance = {
@@ -47360,9 +47660,9 @@ tokens on their behalf.
47360
47660
  This is a crucial step before engaging in any transactions or operations within
47361
47661
  these protocols, ensuring that the protocol has the necessary permissions to manage
47362
47662
  the user's tokens securely and efficiently.`,
47363
- args: args51,
47364
- tool: async (client, args52, ctx) => {
47365
- const [result, apiCall] = await universalAllowance(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47663
+ args: args52,
47664
+ tool: async (client, args53, ctx) => {
47665
+ const [result, apiCall] = await universalAllowance(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47366
47666
  if (!result.ok) {
47367
47667
  return {
47368
47668
  content: [{ type: "text", text: result.error.message }],
@@ -47377,9 +47677,9 @@ the user's tokens securely and efficiently.`,
47377
47677
 
47378
47678
  // src/funcs/universalAllowanceSet.ts
47379
47679
  function universalAllowanceSet(client, request, options) {
47380
- return new APIPromise($do52(client, request, options));
47680
+ return new APIPromise($do53(client, request, options));
47381
47681
  }
47382
- async function $do52(client, request, options) {
47682
+ async function $do53(client, request, options) {
47383
47683
  const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
47384
47684
  if (!parsed.ok) {
47385
47685
  return [parsed, { status: "invalid" }];
@@ -47448,12 +47748,12 @@ var init_universalAllowanceSet = __esm(() => {
47448
47748
  });
47449
47749
 
47450
47750
  // src/mcp-server/tools/universalAllowanceSet.ts
47451
- var args52, tool$universalAllowanceSet;
47751
+ var args53, tool$universalAllowanceSet;
47452
47752
  var init_universalAllowanceSet2 = __esm(() => {
47453
47753
  init_universalAllowanceSet();
47454
47754
  init_components();
47455
47755
  init_tools();
47456
- args52 = {
47756
+ args53 = {
47457
47757
  request: IncreaseAllowanceRequest$inboundSchema
47458
47758
  };
47459
47759
  tool$universalAllowanceSet = {
@@ -47467,9 +47767,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
47467
47767
  This operation is crucial for ensuring that the protocol can manage the user's
47468
47768
  tokens securely and efficiently, enabling seamless transactions and operations
47469
47769
  within the DeFi ecosystem.`,
47470
- args: args52,
47471
- tool: async (client, args53, ctx) => {
47472
- const [result, apiCall] = await universalAllowanceSet(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47770
+ args: args53,
47771
+ tool: async (client, args54, ctx) => {
47772
+ const [result, apiCall] = await universalAllowanceSet(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47473
47773
  if (!result.ok) {
47474
47774
  return {
47475
47775
  content: [{ type: "text", text: result.error.message }],
@@ -47484,9 +47784,9 @@ within the DeFi ecosystem.`,
47484
47784
 
47485
47785
  // src/funcs/universalEns.ts
47486
47786
  function universalEns(client, request, options) {
47487
- return new APIPromise($do53(client, request, options));
47787
+ return new APIPromise($do54(client, request, options));
47488
47788
  }
47489
- async function $do53(client, request, options) {
47789
+ async function $do54(client, request, options) {
47490
47790
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
47491
47791
  if (!parsed.ok) {
47492
47792
  return [parsed, { status: "invalid" }];
@@ -47560,12 +47860,12 @@ var init_universalEns = __esm(() => {
47560
47860
  });
47561
47861
 
47562
47862
  // src/mcp-server/tools/universalEns.ts
47563
- var args53, tool$universalEns;
47863
+ var args54, tool$universalEns;
47564
47864
  var init_universalEns2 = __esm(() => {
47565
47865
  init_universalEns();
47566
47866
  init_operations();
47567
47867
  init_tools();
47568
- args53 = {
47868
+ args54 = {
47569
47869
  request: GenericEnsRequest$inboundSchema
47570
47870
  };
47571
47871
  tool$universalEns = {
@@ -47576,9 +47876,9 @@ An ENS name is a string ending in \`.eth\`.
47576
47876
 
47577
47877
  E.g. \`vitalik.eth\`. This endpoint can be used to
47578
47878
  query the actual ethereum wallet address behind the ENS name.`,
47579
- args: args53,
47580
- tool: async (client, args54, ctx) => {
47581
- const [result, apiCall] = await universalEns(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47879
+ args: args54,
47880
+ tool: async (client, args55, ctx) => {
47881
+ const [result, apiCall] = await universalEns(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47582
47882
  if (!result.ok) {
47583
47883
  return {
47584
47884
  content: [{ type: "text", text: result.error.message }],
@@ -47593,9 +47893,9 @@ query the actual ethereum wallet address behind the ENS name.`,
47593
47893
 
47594
47894
  // src/funcs/universalPortfolio.ts
47595
47895
  function universalPortfolio(client, request, options) {
47596
- return new APIPromise($do54(client, request, options));
47896
+ return new APIPromise($do55(client, request, options));
47597
47897
  }
47598
- async function $do54(client, request, options) {
47898
+ async function $do55(client, request, options) {
47599
47899
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
47600
47900
  if (!parsed.ok) {
47601
47901
  return [parsed, { status: "invalid" }];
@@ -47669,12 +47969,12 @@ var init_universalPortfolio = __esm(() => {
47669
47969
  });
47670
47970
 
47671
47971
  // src/mcp-server/tools/universalPortfolio.ts
47672
- var args54, tool$universalPortfolio;
47972
+ var args55, tool$universalPortfolio;
47673
47973
  var init_universalPortfolio2 = __esm(() => {
47674
47974
  init_universalPortfolio();
47675
47975
  init_operations();
47676
47976
  init_tools();
47677
- args54 = {
47977
+ args55 = {
47678
47978
  request: GenericPortfolioRequest$inboundSchema
47679
47979
  };
47680
47980
  tool$universalPortfolio = {
@@ -47685,9 +47985,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
47685
47985
 
47686
47986
  This includes the total value of the portfolio in USD and a breakdown of token
47687
47987
  balances, including their respective values and quantities.`,
47688
- args: args54,
47689
- tool: async (client, args55, ctx) => {
47690
- const [result, apiCall] = await universalPortfolio(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47988
+ args: args55,
47989
+ tool: async (client, args56, ctx) => {
47990
+ const [result, apiCall] = await universalPortfolio(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47691
47991
  if (!result.ok) {
47692
47992
  return {
47693
47993
  content: [{ type: "text", text: result.error.message }],
@@ -47702,9 +48002,9 @@ balances, including their respective values and quantities.`,
47702
48002
 
47703
48003
  // src/funcs/universalSupportedTokens.ts
47704
48004
  function universalSupportedTokens(client, request, options) {
47705
- return new APIPromise($do55(client, request, options));
48005
+ return new APIPromise($do56(client, request, options));
47706
48006
  }
47707
- async function $do55(client, request, options) {
48007
+ async function $do56(client, request, options) {
47708
48008
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
47709
48009
  if (!parsed.ok) {
47710
48010
  return [parsed, { status: "invalid" }];
@@ -47777,12 +48077,12 @@ var init_universalSupportedTokens = __esm(() => {
47777
48077
  });
47778
48078
 
47779
48079
  // src/mcp-server/tools/universalSupportedTokens.ts
47780
- var args55, tool$universalSupportedTokens;
48080
+ var args56, tool$universalSupportedTokens;
47781
48081
  var init_universalSupportedTokens2 = __esm(() => {
47782
48082
  init_universalSupportedTokens();
47783
48083
  init_operations();
47784
48084
  init_tools();
47785
- args55 = {
48085
+ args56 = {
47786
48086
  request: GenericSupportedTokensRequest$inboundSchema
47787
48087
  };
47788
48088
  tool$universalSupportedTokens = {
@@ -47790,9 +48090,9 @@ var init_universalSupportedTokens2 = __esm(() => {
47790
48090
  description: `List supported tokens
47791
48091
 
47792
48092
  Get the list of supported tokens on a chain by the Compass API.`,
47793
- args: args55,
47794
- tool: async (client, args56, ctx) => {
47795
- const [result, apiCall] = await universalSupportedTokens(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48093
+ args: args56,
48094
+ tool: async (client, args57, ctx) => {
48095
+ const [result, apiCall] = await universalSupportedTokens(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47796
48096
  if (!result.ok) {
47797
48097
  return {
47798
48098
  content: [{ type: "text", text: result.error.message }],
@@ -47807,9 +48107,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
47807
48107
 
47808
48108
  // src/funcs/universalUnwrapWeth.ts
47809
48109
  function universalUnwrapWeth(client, request, options) {
47810
- return new APIPromise($do56(client, request, options));
48110
+ return new APIPromise($do57(client, request, options));
47811
48111
  }
47812
- async function $do56(client, request, options) {
48112
+ async function $do57(client, request, options) {
47813
48113
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
47814
48114
  if (!parsed.ok) {
47815
48115
  return [parsed, { status: "invalid" }];
@@ -47878,12 +48178,12 @@ var init_universalUnwrapWeth = __esm(() => {
47878
48178
  });
47879
48179
 
47880
48180
  // src/mcp-server/tools/universalUnwrapWeth.ts
47881
- var args56, tool$universalUnwrapWeth;
48181
+ var args57, tool$universalUnwrapWeth;
47882
48182
  var init_universalUnwrapWeth2 = __esm(() => {
47883
48183
  init_universalUnwrapWeth();
47884
48184
  init_components();
47885
48185
  init_tools();
47886
- args56 = {
48186
+ args57 = {
47887
48187
  request: UnwrapWethRequest$inboundSchema
47888
48188
  };
47889
48189
  tool$universalUnwrapWeth = {
@@ -47892,9 +48192,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
47892
48192
 
47893
48193
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
47894
48194
  can be used for gas and other native purposes.`,
47895
- args: args56,
47896
- tool: async (client, args57, ctx) => {
47897
- const [result, apiCall] = await universalUnwrapWeth(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48195
+ args: args57,
48196
+ tool: async (client, args58, ctx) => {
48197
+ const [result, apiCall] = await universalUnwrapWeth(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47898
48198
  if (!result.ok) {
47899
48199
  return {
47900
48200
  content: [{ type: "text", text: result.error.message }],
@@ -47909,9 +48209,9 @@ can be used for gas and other native purposes.`,
47909
48209
 
47910
48210
  // src/funcs/universalVisualizePortfolio.ts
47911
48211
  function universalVisualizePortfolio(client, request, options) {
47912
- return new APIPromise($do57(client, request, options));
48212
+ return new APIPromise($do58(client, request, options));
47913
48213
  }
47914
- async function $do57(client, request, options) {
48214
+ async function $do58(client, request, options) {
47915
48215
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
47916
48216
  if (!parsed.ok) {
47917
48217
  return [parsed, { status: "invalid" }];
@@ -47985,12 +48285,12 @@ var init_universalVisualizePortfolio = __esm(() => {
47985
48285
  });
47986
48286
 
47987
48287
  // src/mcp-server/tools/universalVisualizePortfolio.ts
47988
- var args57, tool$universalVisualizePortfolio;
48288
+ var args58, tool$universalVisualizePortfolio;
47989
48289
  var init_universalVisualizePortfolio2 = __esm(() => {
47990
48290
  init_universalVisualizePortfolio();
47991
48291
  init_operations();
47992
48292
  init_tools();
47993
- args57 = {
48293
+ args58 = {
47994
48294
  request: GenericVisualizePortfolioRequest$inboundSchema
47995
48295
  };
47996
48296
  tool$universalVisualizePortfolio = {
@@ -48002,9 +48302,9 @@ Generate a visual representation of the token portfolio for a wallet address.
48002
48302
  The response is an SVG image of a pie chart depicting the relative distribution of
48003
48303
  tokens held, colored and labeled with token symbols, percentages and token values in
48004
48304
  USD.`,
48005
- args: args57,
48006
- tool: async (client, args58, ctx) => {
48007
- const [result, apiCall] = await universalVisualizePortfolio(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48305
+ args: args58,
48306
+ tool: async (client, args59, ctx) => {
48307
+ const [result, apiCall] = await universalVisualizePortfolio(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48008
48308
  if (!result.ok) {
48009
48309
  return {
48010
48310
  content: [{ type: "text", text: result.error.message }],
@@ -48019,9 +48319,9 @@ USD.`,
48019
48319
 
48020
48320
  // src/funcs/universalWrapEth.ts
48021
48321
  function universalWrapEth(client, request, options) {
48022
- return new APIPromise($do58(client, request, options));
48322
+ return new APIPromise($do59(client, request, options));
48023
48323
  }
48024
- async function $do58(client, request, options) {
48324
+ async function $do59(client, request, options) {
48025
48325
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
48026
48326
  if (!parsed.ok) {
48027
48327
  return [parsed, { status: "invalid" }];
@@ -48090,12 +48390,12 @@ var init_universalWrapEth = __esm(() => {
48090
48390
  });
48091
48391
 
48092
48392
  // src/mcp-server/tools/universalWrapEth.ts
48093
- var args58, tool$universalWrapEth;
48393
+ var args59, tool$universalWrapEth;
48094
48394
  var init_universalWrapEth2 = __esm(() => {
48095
48395
  init_universalWrapEth();
48096
48396
  init_components();
48097
48397
  init_tools();
48098
- args58 = {
48398
+ args59 = {
48099
48399
  request: WrapEthRequest$inboundSchema
48100
48400
  };
48101
48401
  tool$universalWrapEth = {
@@ -48104,9 +48404,9 @@ var init_universalWrapEth2 = __esm(() => {
48104
48404
 
48105
48405
  Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
48106
48406
  it to be traded on DeFi protocols.`,
48107
- args: args58,
48108
- tool: async (client, args59, ctx) => {
48109
- const [result, apiCall] = await universalWrapEth(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48407
+ args: args59,
48408
+ tool: async (client, args60, ctx) => {
48409
+ const [result, apiCall] = await universalWrapEth(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48110
48410
  if (!result.ok) {
48111
48411
  return {
48112
48412
  content: [{ type: "text", text: result.error.message }],
@@ -48123,7 +48423,7 @@ it to be traded on DeFi protocols.`,
48123
48423
  function createMCPServer(deps) {
48124
48424
  const server = new McpServer({
48125
48425
  name: "CompassApiSDK",
48126
- version: "0.0.24"
48426
+ version: "0.0.26"
48127
48427
  });
48128
48428
  const client = new CompassApiSDKCore({
48129
48429
  apiKeyAuth: deps.apiKeyAuth,
@@ -48195,6 +48495,7 @@ function createMCPServer(deps) {
48195
48495
  tool(tool$universalAllowanceSet);
48196
48496
  tool(tool$transactionBatchingAuthorization);
48197
48497
  tool(tool$transactionBatchingExecute);
48498
+ tool(tool$transactionBatchingAaveLoop);
48198
48499
  return server;
48199
48500
  }
48200
48501
  var init_server2 = __esm(() => {
@@ -48240,6 +48541,7 @@ var init_server2 = __esm(() => {
48240
48541
  init_tokenBalance2();
48241
48542
  init_tokenPrice2();
48242
48543
  init_tokenTransfer2();
48544
+ init_transactionBatchingAaveLoop2();
48243
48545
  init_transactionBatchingAuthorization2();
48244
48546
  init_transactionBatchingExecute2();
48245
48547
  init_uniswapV3LiquidityProvisionIncrease2();
@@ -49450,7 +49752,7 @@ var routes = an({
49450
49752
  var app = He(routes, {
49451
49753
  name: "mcp",
49452
49754
  versionInfo: {
49453
- currentVersion: "0.0.24"
49755
+ currentVersion: "0.0.26"
49454
49756
  }
49455
49757
  });
49456
49758
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -49458,5 +49760,5 @@ export {
49458
49760
  app
49459
49761
  };
49460
49762
 
49461
- //# debugId=9F4756AC81C10A5F64756E2164756E21
49763
+ //# debugId=4B35AFA14FF606C264756E2164756E21
49462
49764
  //# sourceMappingURL=mcp-server.js.map