@compass-labs/api-sdk 0.5.13 → 0.5.15

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 (283) hide show
  1. package/README.md +9 -0
  2. package/bin/mcp-server.js +919 -384
  3. package/bin/mcp-server.js.map +33 -23
  4. package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts +28 -0
  5. package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/transactionBatchingAaveLoop.js +128 -0
  7. package/dist/commonjs/funcs/transactionBatchingAaveLoop.js.map +1 -0
  8. package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts +23 -0
  9. package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/transactionBatchingAuthorization.js +123 -0
  11. package/dist/commonjs/funcs/transactionBatchingAuthorization.js.map +1 -0
  12. package/dist/commonjs/funcs/transactionBatchingExecute.d.ts +24 -0
  13. package/dist/commonjs/funcs/transactionBatchingExecute.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/transactionBatchingExecute.js +124 -0
  15. package/dist/commonjs/funcs/transactionBatchingExecute.js.map +1 -0
  16. package/dist/commonjs/lib/config.d.ts +3 -3
  17. package/dist/commonjs/lib/config.js +3 -3
  18. package/dist/commonjs/lib/files.d.ts +5 -0
  19. package/dist/commonjs/lib/files.d.ts.map +1 -1
  20. package/dist/commonjs/lib/files.js +41 -0
  21. package/dist/commonjs/lib/files.js.map +1 -1
  22. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  23. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  24. package/dist/commonjs/mcp-server/server.js +7 -1
  25. package/dist/commonjs/mcp-server/server.js.map +1 -1
  26. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts +8 -0
  27. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
  28. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js +74 -0
  29. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts +8 -0
  31. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js +69 -0
  33. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts +8 -0
  35. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js +70 -0
  37. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js.map +1 -0
  38. package/dist/commonjs/models/components/aavelooprequest.d.ts +181 -0
  39. package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -0
  40. package/dist/commonjs/models/components/aavelooprequest.js +199 -0
  41. package/dist/commonjs/models/components/aavelooprequest.js.map +1 -0
  42. package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts +8 -8
  43. package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js +8 -8
  45. package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js.map +1 -1
  46. package/dist/commonjs/models/components/index.d.ts +4 -0
  47. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/index.js +4 -0
  49. package/dist/commonjs/models/components/index.js.map +1 -1
  50. package/dist/commonjs/models/components/metadata.d.ts +0 -4
  51. package/dist/commonjs/models/components/metadata.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/metadata.js +0 -4
  53. package/dist/commonjs/models/components/metadata.js.map +1 -1
  54. package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts +49 -0
  55. package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts.map +1 -0
  56. package/dist/commonjs/models/components/multicallauthorizationrequest.js +72 -0
  57. package/dist/commonjs/models/components/multicallauthorizationrequest.js.map +1 -0
  58. package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts +45 -0
  59. package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts.map +1 -0
  60. package/dist/commonjs/models/components/multicallauthorizationresponse.js +73 -0
  61. package/dist/commonjs/models/components/multicallauthorizationresponse.js.map +1 -0
  62. package/dist/commonjs/models/components/multicallexecuterequest.d.ts +50 -0
  63. package/dist/commonjs/models/components/multicallexecuterequest.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/multicallexecuterequest.js +87 -0
  65. package/dist/commonjs/models/components/multicallexecuterequest.js.map +1 -0
  66. package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts +5 -0
  67. package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/pendleaddliquidityparams.js +4 -0
  69. package/dist/commonjs/models/components/pendleaddliquidityparams.js.map +1 -1
  70. package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts +5 -0
  71. package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
  72. package/dist/commonjs/models/components/pendleaddliquidityrequest.js +4 -0
  73. package/dist/commonjs/models/components/pendleaddliquidityrequest.js.map +1 -1
  74. package/dist/commonjs/models/components/pendlebuyptparams.d.ts +5 -0
  75. package/dist/commonjs/models/components/pendlebuyptparams.d.ts.map +1 -1
  76. package/dist/commonjs/models/components/pendlebuyptparams.js +4 -0
  77. package/dist/commonjs/models/components/pendlebuyptparams.js.map +1 -1
  78. package/dist/commonjs/models/components/pendlebuyptrequest.d.ts +5 -0
  79. package/dist/commonjs/models/components/pendlebuyptrequest.d.ts.map +1 -1
  80. package/dist/commonjs/models/components/pendlebuyptrequest.js +4 -0
  81. package/dist/commonjs/models/components/pendlebuyptrequest.js.map +1 -1
  82. package/dist/commonjs/models/components/pendlebuyytparams.d.ts +5 -0
  83. package/dist/commonjs/models/components/pendlebuyytparams.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/pendlebuyytparams.js +4 -0
  85. package/dist/commonjs/models/components/pendlebuyytparams.js.map +1 -1
  86. package/dist/commonjs/models/components/pendlebuyytrequest.d.ts +5 -0
  87. package/dist/commonjs/models/components/pendlebuyytrequest.d.ts.map +1 -1
  88. package/dist/commonjs/models/components/pendlebuyytrequest.js +4 -0
  89. package/dist/commonjs/models/components/pendlebuyytrequest.js.map +1 -1
  90. package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts +5 -0
  91. package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
  92. package/dist/commonjs/models/components/pendleremoveliquidityparams.js +4 -0
  93. package/dist/commonjs/models/components/pendleremoveliquidityparams.js.map +1 -1
  94. package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts +5 -0
  95. package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
  96. package/dist/commonjs/models/components/pendleremoveliquidityrequest.js +4 -0
  97. package/dist/commonjs/models/components/pendleremoveliquidityrequest.js.map +1 -1
  98. package/dist/commonjs/models/components/pendlesellptparams.d.ts +5 -0
  99. package/dist/commonjs/models/components/pendlesellptparams.d.ts.map +1 -1
  100. package/dist/commonjs/models/components/pendlesellptparams.js +4 -0
  101. package/dist/commonjs/models/components/pendlesellptparams.js.map +1 -1
  102. package/dist/commonjs/models/components/pendlesellptrequest.d.ts +5 -0
  103. package/dist/commonjs/models/components/pendlesellptrequest.d.ts.map +1 -1
  104. package/dist/commonjs/models/components/pendlesellptrequest.js +4 -0
  105. package/dist/commonjs/models/components/pendlesellptrequest.js.map +1 -1
  106. package/dist/commonjs/models/components/pendlesellytparams.d.ts +5 -0
  107. package/dist/commonjs/models/components/pendlesellytparams.d.ts.map +1 -1
  108. package/dist/commonjs/models/components/pendlesellytparams.js +4 -0
  109. package/dist/commonjs/models/components/pendlesellytparams.js.map +1 -1
  110. package/dist/commonjs/models/components/pendlesellytrequest.d.ts +5 -0
  111. package/dist/commonjs/models/components/pendlesellytrequest.d.ts.map +1 -1
  112. package/dist/commonjs/models/components/pendlesellytrequest.js +4 -0
  113. package/dist/commonjs/models/components/pendlesellytrequest.js.map +1 -1
  114. package/dist/commonjs/models/components/useroperation.d.ts +48 -48
  115. package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
  116. package/dist/commonjs/models/components/useroperation.js +56 -56
  117. package/dist/commonjs/models/components/useroperation.js.map +1 -1
  118. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  119. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  120. package/dist/commonjs/sdk/sdk.js +4 -0
  121. package/dist/commonjs/sdk/sdk.js.map +1 -1
  122. package/dist/commonjs/sdk/transactionbatching.d.ts +47 -0
  123. package/dist/commonjs/sdk/transactionbatching.d.ts.map +1 -0
  124. package/dist/commonjs/sdk/transactionbatching.js +63 -0
  125. package/dist/commonjs/sdk/transactionbatching.js.map +1 -0
  126. package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts +28 -0
  127. package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
  128. package/dist/esm/funcs/transactionBatchingAaveLoop.js +92 -0
  129. package/dist/esm/funcs/transactionBatchingAaveLoop.js.map +1 -0
  130. package/dist/esm/funcs/transactionBatchingAuthorization.d.ts +23 -0
  131. package/dist/esm/funcs/transactionBatchingAuthorization.d.ts.map +1 -0
  132. package/dist/esm/funcs/transactionBatchingAuthorization.js +87 -0
  133. package/dist/esm/funcs/transactionBatchingAuthorization.js.map +1 -0
  134. package/dist/esm/funcs/transactionBatchingExecute.d.ts +24 -0
  135. package/dist/esm/funcs/transactionBatchingExecute.d.ts.map +1 -0
  136. package/dist/esm/funcs/transactionBatchingExecute.js +88 -0
  137. package/dist/esm/funcs/transactionBatchingExecute.js.map +1 -0
  138. package/dist/esm/lib/config.d.ts +3 -3
  139. package/dist/esm/lib/config.js +3 -3
  140. package/dist/esm/lib/files.d.ts +5 -0
  141. package/dist/esm/lib/files.d.ts.map +1 -1
  142. package/dist/esm/lib/files.js +40 -0
  143. package/dist/esm/lib/files.js.map +1 -1
  144. package/dist/esm/mcp-server/mcp-server.js +1 -1
  145. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  146. package/dist/esm/mcp-server/server.js +7 -1
  147. package/dist/esm/mcp-server/server.js.map +1 -1
  148. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts +8 -0
  149. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
  150. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js +38 -0
  151. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
  152. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts +8 -0
  153. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +1 -0
  154. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js +33 -0
  155. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -0
  156. package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts +8 -0
  157. package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -0
  158. package/dist/esm/mcp-server/tools/transactionBatchingExecute.js +34 -0
  159. package/dist/esm/mcp-server/tools/transactionBatchingExecute.js.map +1 -0
  160. package/dist/esm/models/components/aavelooprequest.d.ts +181 -0
  161. package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -0
  162. package/dist/esm/models/components/aavelooprequest.js +153 -0
  163. package/dist/esm/models/components/aavelooprequest.js.map +1 -0
  164. package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts +8 -8
  165. package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts.map +1 -1
  166. package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js +8 -8
  167. package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js.map +1 -1
  168. package/dist/esm/models/components/index.d.ts +4 -0
  169. package/dist/esm/models/components/index.d.ts.map +1 -1
  170. package/dist/esm/models/components/index.js +4 -0
  171. package/dist/esm/models/components/index.js.map +1 -1
  172. package/dist/esm/models/components/metadata.d.ts +0 -4
  173. package/dist/esm/models/components/metadata.d.ts.map +1 -1
  174. package/dist/esm/models/components/metadata.js +0 -4
  175. package/dist/esm/models/components/metadata.js.map +1 -1
  176. package/dist/esm/models/components/multicallauthorizationrequest.d.ts +49 -0
  177. package/dist/esm/models/components/multicallauthorizationrequest.d.ts.map +1 -0
  178. package/dist/esm/models/components/multicallauthorizationrequest.js +34 -0
  179. package/dist/esm/models/components/multicallauthorizationrequest.js.map +1 -0
  180. package/dist/esm/models/components/multicallauthorizationresponse.d.ts +45 -0
  181. package/dist/esm/models/components/multicallauthorizationresponse.d.ts.map +1 -0
  182. package/dist/esm/models/components/multicallauthorizationresponse.js +35 -0
  183. package/dist/esm/models/components/multicallauthorizationresponse.js.map +1 -0
  184. package/dist/esm/models/components/multicallexecuterequest.d.ts +50 -0
  185. package/dist/esm/models/components/multicallexecuterequest.d.ts.map +1 -0
  186. package/dist/esm/models/components/multicallexecuterequest.js +49 -0
  187. package/dist/esm/models/components/multicallexecuterequest.js.map +1 -0
  188. package/dist/esm/models/components/pendleaddliquidityparams.d.ts +5 -0
  189. package/dist/esm/models/components/pendleaddliquidityparams.d.ts.map +1 -1
  190. package/dist/esm/models/components/pendleaddliquidityparams.js +4 -0
  191. package/dist/esm/models/components/pendleaddliquidityparams.js.map +1 -1
  192. package/dist/esm/models/components/pendleaddliquidityrequest.d.ts +5 -0
  193. package/dist/esm/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
  194. package/dist/esm/models/components/pendleaddliquidityrequest.js +4 -0
  195. package/dist/esm/models/components/pendleaddliquidityrequest.js.map +1 -1
  196. package/dist/esm/models/components/pendlebuyptparams.d.ts +5 -0
  197. package/dist/esm/models/components/pendlebuyptparams.d.ts.map +1 -1
  198. package/dist/esm/models/components/pendlebuyptparams.js +4 -0
  199. package/dist/esm/models/components/pendlebuyptparams.js.map +1 -1
  200. package/dist/esm/models/components/pendlebuyptrequest.d.ts +5 -0
  201. package/dist/esm/models/components/pendlebuyptrequest.d.ts.map +1 -1
  202. package/dist/esm/models/components/pendlebuyptrequest.js +4 -0
  203. package/dist/esm/models/components/pendlebuyptrequest.js.map +1 -1
  204. package/dist/esm/models/components/pendlebuyytparams.d.ts +5 -0
  205. package/dist/esm/models/components/pendlebuyytparams.d.ts.map +1 -1
  206. package/dist/esm/models/components/pendlebuyytparams.js +4 -0
  207. package/dist/esm/models/components/pendlebuyytparams.js.map +1 -1
  208. package/dist/esm/models/components/pendlebuyytrequest.d.ts +5 -0
  209. package/dist/esm/models/components/pendlebuyytrequest.d.ts.map +1 -1
  210. package/dist/esm/models/components/pendlebuyytrequest.js +4 -0
  211. package/dist/esm/models/components/pendlebuyytrequest.js.map +1 -1
  212. package/dist/esm/models/components/pendleremoveliquidityparams.d.ts +5 -0
  213. package/dist/esm/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
  214. package/dist/esm/models/components/pendleremoveliquidityparams.js +4 -0
  215. package/dist/esm/models/components/pendleremoveliquidityparams.js.map +1 -1
  216. package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts +5 -0
  217. package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
  218. package/dist/esm/models/components/pendleremoveliquidityrequest.js +4 -0
  219. package/dist/esm/models/components/pendleremoveliquidityrequest.js.map +1 -1
  220. package/dist/esm/models/components/pendlesellptparams.d.ts +5 -0
  221. package/dist/esm/models/components/pendlesellptparams.d.ts.map +1 -1
  222. package/dist/esm/models/components/pendlesellptparams.js +4 -0
  223. package/dist/esm/models/components/pendlesellptparams.js.map +1 -1
  224. package/dist/esm/models/components/pendlesellptrequest.d.ts +5 -0
  225. package/dist/esm/models/components/pendlesellptrequest.d.ts.map +1 -1
  226. package/dist/esm/models/components/pendlesellptrequest.js +4 -0
  227. package/dist/esm/models/components/pendlesellptrequest.js.map +1 -1
  228. package/dist/esm/models/components/pendlesellytparams.d.ts +5 -0
  229. package/dist/esm/models/components/pendlesellytparams.d.ts.map +1 -1
  230. package/dist/esm/models/components/pendlesellytparams.js +4 -0
  231. package/dist/esm/models/components/pendlesellytparams.js.map +1 -1
  232. package/dist/esm/models/components/pendlesellytrequest.d.ts +5 -0
  233. package/dist/esm/models/components/pendlesellytrequest.d.ts.map +1 -1
  234. package/dist/esm/models/components/pendlesellytrequest.js +4 -0
  235. package/dist/esm/models/components/pendlesellytrequest.js.map +1 -1
  236. package/dist/esm/models/components/useroperation.d.ts +48 -48
  237. package/dist/esm/models/components/useroperation.d.ts.map +1 -1
  238. package/dist/esm/models/components/useroperation.js +56 -56
  239. package/dist/esm/models/components/useroperation.js.map +1 -1
  240. package/dist/esm/sdk/sdk.d.ts +3 -0
  241. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  242. package/dist/esm/sdk/sdk.js +4 -0
  243. package/dist/esm/sdk/sdk.js.map +1 -1
  244. package/dist/esm/sdk/transactionbatching.d.ts +47 -0
  245. package/dist/esm/sdk/transactionbatching.d.ts.map +1 -0
  246. package/dist/esm/sdk/transactionbatching.js +59 -0
  247. package/dist/esm/sdk/transactionbatching.js.map +1 -0
  248. package/docs/sdks/pendle/README.md +12 -0
  249. package/docs/sdks/transactionbatching/README.md +318 -0
  250. package/jsr.json +1 -1
  251. package/package.json +1 -1
  252. package/src/funcs/transactionBatchingAaveLoop.ts +179 -0
  253. package/src/funcs/transactionBatchingAuthorization.ts +175 -0
  254. package/src/funcs/transactionBatchingExecute.ts +175 -0
  255. package/src/lib/config.ts +3 -3
  256. package/src/lib/files.ts +42 -0
  257. package/src/mcp-server/mcp-server.ts +1 -1
  258. package/src/mcp-server/server.ts +7 -1
  259. package/src/mcp-server/tools/transactionBatchingAaveLoop.ts +47 -0
  260. package/src/mcp-server/tools/transactionBatchingAuthorization.ts +44 -0
  261. package/src/mcp-server/tools/transactionBatchingExecute.ts +43 -0
  262. package/src/models/components/aavelooprequest.ts +368 -0
  263. package/src/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.ts +16 -16
  264. package/src/models/components/index.ts +4 -0
  265. package/src/models/components/metadata.ts +0 -8
  266. package/src/models/components/multicallauthorizationrequest.ts +90 -0
  267. package/src/models/components/multicallauthorizationresponse.ts +88 -0
  268. package/src/models/components/multicallexecuterequest.ts +112 -0
  269. package/src/models/components/pendleaddliquidityparams.ts +9 -0
  270. package/src/models/components/pendleaddliquidityrequest.ts +9 -0
  271. package/src/models/components/pendlebuyptparams.ts +9 -0
  272. package/src/models/components/pendlebuyptrequest.ts +9 -0
  273. package/src/models/components/pendlebuyytparams.ts +9 -0
  274. package/src/models/components/pendlebuyytrequest.ts +9 -0
  275. package/src/models/components/pendleremoveliquidityparams.ts +9 -0
  276. package/src/models/components/pendleremoveliquidityrequest.ts +9 -0
  277. package/src/models/components/pendlesellptparams.ts +9 -0
  278. package/src/models/components/pendlesellptrequest.ts +9 -0
  279. package/src/models/components/pendlesellytparams.ts +9 -0
  280. package/src/models/components/pendlesellytrequest.ts +9 -0
  281. package/src/models/components/useroperation.ts +152 -152
  282. package/src/sdk/sdk.ts +8 -0
  283. package/src/sdk/transactionbatching.ts +84 -0
package/bin/mcp-server.js CHANGED
@@ -34205,9 +34205,9 @@ var init_config = __esm(() => {
34205
34205
  SDK_METADATA = {
34206
34206
  language: "typescript",
34207
34207
  openapiDocVersion: "0.0.1",
34208
- sdkVersion: "0.5.13",
34209
- genVersion: "2.623.2",
34210
- userAgent: "speakeasy-sdk/typescript 0.5.13 2.623.2 0.0.1 @compass-labs/api-sdk"
34208
+ sdkVersion: "0.5.15",
34209
+ genVersion: "2.628.0",
34210
+ userAgent: "speakeasy-sdk/typescript 0.5.15 2.628.0 0.0.1 @compass-labs/api-sdk"
34211
34211
  };
34212
34212
  });
34213
34213
 
@@ -36248,6 +36248,128 @@ var init_aaveliquiditychangeresponse = __esm(() => {
36248
36248
  })(AaveLiquidityChangeResponse$ ||= {});
36249
36249
  });
36250
36250
 
36251
+ // src/models/components/signedauthorization.ts
36252
+ var R$inboundSchema, R$outboundSchema, R$, S$inboundSchema, S$outboundSchema, S$, SignedAuthorization$inboundSchema, SignedAuthorization$outboundSchema, SignedAuthorization$;
36253
+ var init_signedauthorization = __esm(() => {
36254
+ init_esm();
36255
+ R$inboundSchema = unionType([
36256
+ numberType().int(),
36257
+ stringType()
36258
+ ]);
36259
+ R$outboundSchema = unionType([numberType().int(), stringType()]);
36260
+ ((R$) => {
36261
+ R$.inboundSchema = R$inboundSchema;
36262
+ R$.outboundSchema = R$outboundSchema;
36263
+ })(R$ ||= {});
36264
+ S$inboundSchema = unionType([
36265
+ numberType().int(),
36266
+ stringType()
36267
+ ]);
36268
+ S$outboundSchema = unionType([numberType().int(), stringType()]);
36269
+ ((S$) => {
36270
+ S$.inboundSchema = S$inboundSchema;
36271
+ S$.outboundSchema = S$outboundSchema;
36272
+ })(S$ ||= {});
36273
+ SignedAuthorization$inboundSchema = objectType({
36274
+ nonce: numberType().int(),
36275
+ address: stringType(),
36276
+ chainId: numberType().int(),
36277
+ r: unionType([numberType().int(), stringType()]),
36278
+ s: unionType([numberType().int(), stringType()]),
36279
+ yParity: numberType().int()
36280
+ });
36281
+ SignedAuthorization$outboundSchema = objectType({
36282
+ nonce: numberType().int(),
36283
+ address: stringType(),
36284
+ chainId: numberType().int(),
36285
+ r: unionType([numberType().int(), stringType()]),
36286
+ s: unionType([numberType().int(), stringType()]),
36287
+ yParity: numberType().int()
36288
+ });
36289
+ ((SignedAuthorization$) => {
36290
+ SignedAuthorization$.inboundSchema = SignedAuthorization$inboundSchema;
36291
+ SignedAuthorization$.outboundSchema = SignedAuthorization$outboundSchema;
36292
+ })(SignedAuthorization$ ||= {});
36293
+ });
36294
+
36295
+ // src/models/components/aavelooprequest.ts
36296
+ var InitialCollateralAmount$inboundSchema, InitialCollateralAmount$outboundSchema, InitialCollateralAmount$, Multiplier$inboundSchema, Multiplier$outboundSchema, Multiplier$, MaxSlippagePercent$inboundSchema, MaxSlippagePercent$outboundSchema, MaxSlippagePercent$, LoanToValue$inboundSchema, LoanToValue$outboundSchema, LoanToValue$, AaveLoopRequest$inboundSchema, AaveLoopRequest$outboundSchema, AaveLoopRequest$;
36297
+ var init_aavelooprequest = __esm(() => {
36298
+ init_esm();
36299
+ init_primitives();
36300
+ init_chain();
36301
+ init_signedauthorization();
36302
+ init_tokenenum();
36303
+ InitialCollateralAmount$inboundSchema = unionType([numberType(), stringType()]);
36304
+ InitialCollateralAmount$outboundSchema = unionType([numberType(), stringType()]);
36305
+ ((InitialCollateralAmount$) => {
36306
+ InitialCollateralAmount$.inboundSchema = InitialCollateralAmount$inboundSchema;
36307
+ InitialCollateralAmount$.outboundSchema = InitialCollateralAmount$outboundSchema;
36308
+ })(InitialCollateralAmount$ ||= {});
36309
+ Multiplier$inboundSchema = unionType([numberType(), stringType()]);
36310
+ Multiplier$outboundSchema = unionType([numberType(), stringType()]);
36311
+ ((Multiplier$) => {
36312
+ Multiplier$.inboundSchema = Multiplier$inboundSchema;
36313
+ Multiplier$.outboundSchema = Multiplier$outboundSchema;
36314
+ })(Multiplier$ ||= {});
36315
+ MaxSlippagePercent$inboundSchema = unionType([numberType(), stringType()]);
36316
+ MaxSlippagePercent$outboundSchema = unionType([numberType(), stringType()]);
36317
+ ((MaxSlippagePercent$) => {
36318
+ MaxSlippagePercent$.inboundSchema = MaxSlippagePercent$inboundSchema;
36319
+ MaxSlippagePercent$.outboundSchema = MaxSlippagePercent$outboundSchema;
36320
+ })(MaxSlippagePercent$ ||= {});
36321
+ LoanToValue$inboundSchema = unionType([numberType(), stringType()]);
36322
+ LoanToValue$outboundSchema = unionType([numberType(), stringType()]);
36323
+ ((LoanToValue$) => {
36324
+ LoanToValue$.inboundSchema = LoanToValue$inboundSchema;
36325
+ LoanToValue$.outboundSchema = LoanToValue$outboundSchema;
36326
+ })(LoanToValue$ ||= {});
36327
+ AaveLoopRequest$inboundSchema = objectType({
36328
+ chain: Chain$inboundSchema,
36329
+ sender: stringType(),
36330
+ signed_authorization: SignedAuthorization$inboundSchema,
36331
+ collateral_token: TokenEnum$inboundSchema,
36332
+ borrow_token: TokenEnum$inboundSchema,
36333
+ initial_collateral_amount: unionType([numberType(), stringType()]),
36334
+ multiplier: unionType([numberType(), stringType()]),
36335
+ max_slippage_percent: unionType([numberType(), stringType()]),
36336
+ loan_to_value: unionType([numberType(), stringType()])
36337
+ }).transform((v2) => {
36338
+ return remap(v2, {
36339
+ signed_authorization: "signedAuthorization",
36340
+ collateral_token: "collateralToken",
36341
+ borrow_token: "borrowToken",
36342
+ initial_collateral_amount: "initialCollateralAmount",
36343
+ max_slippage_percent: "maxSlippagePercent",
36344
+ loan_to_value: "loanToValue"
36345
+ });
36346
+ });
36347
+ AaveLoopRequest$outboundSchema = objectType({
36348
+ chain: Chain$outboundSchema,
36349
+ sender: stringType(),
36350
+ signedAuthorization: SignedAuthorization$outboundSchema,
36351
+ collateralToken: TokenEnum$outboundSchema,
36352
+ borrowToken: TokenEnum$outboundSchema,
36353
+ initialCollateralAmount: unionType([numberType(), stringType()]),
36354
+ multiplier: unionType([numberType(), stringType()]),
36355
+ maxSlippagePercent: unionType([numberType(), stringType()]),
36356
+ loanToValue: unionType([numberType(), stringType()])
36357
+ }).transform((v2) => {
36358
+ return remap(v2, {
36359
+ signedAuthorization: "signed_authorization",
36360
+ collateralToken: "collateral_token",
36361
+ borrowToken: "borrow_token",
36362
+ initialCollateralAmount: "initial_collateral_amount",
36363
+ maxSlippagePercent: "max_slippage_percent",
36364
+ loanToValue: "loan_to_value"
36365
+ });
36366
+ });
36367
+ ((AaveLoopRequest$) => {
36368
+ AaveLoopRequest$.inboundSchema = AaveLoopRequest$inboundSchema;
36369
+ AaveLoopRequest$.outboundSchema = AaveLoopRequest$outboundSchema;
36370
+ })(AaveLoopRequest$ ||= {});
36371
+ });
36372
+
36251
36373
  // src/models/components/aaverateresponse.ts
36252
36374
  var AaveRateResponse$inboundSchema, AaveRateResponse$outboundSchema, AaveRateResponse$;
36253
36375
  var init_aaverateresponse = __esm(() => {
@@ -37902,21 +38024,25 @@ var init_pendleaddliquidityparams = __esm(() => {
37902
38024
  PendleAddLiquidityParams$inboundSchema = objectType({
37903
38025
  action_type: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
37904
38026
  market_address: stringType(),
37905
- amount: unionType([numberType(), stringType()])
38027
+ amount: unionType([numberType(), stringType()]),
38028
+ max_slippage_percent: numberType()
37906
38029
  }).transform((v2) => {
37907
38030
  return remap(v2, {
37908
38031
  action_type: "actionType",
37909
- market_address: "marketAddress"
38032
+ market_address: "marketAddress",
38033
+ max_slippage_percent: "maxSlippagePercent"
37910
38034
  });
37911
38035
  });
37912
38036
  PendleAddLiquidityParams$outboundSchema = objectType({
37913
38037
  actionType: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
37914
38038
  marketAddress: stringType(),
37915
- amount: unionType([numberType(), stringType()])
38039
+ amount: unionType([numberType(), stringType()]),
38040
+ maxSlippagePercent: numberType()
37916
38041
  }).transform((v2) => {
37917
38042
  return remap(v2, {
37918
38043
  actionType: "action_type",
37919
- marketAddress: "market_address"
38044
+ marketAddress: "market_address",
38045
+ maxSlippagePercent: "max_slippage_percent"
37920
38046
  });
37921
38047
  });
37922
38048
  ((PendleAddLiquidityParams$) => {
@@ -37939,21 +38065,25 @@ var init_pendlebuyptparams = __esm(() => {
37939
38065
  PendleBuyPtParams$inboundSchema = objectType({
37940
38066
  action_type: literalType("PENDLE_BUY_PT").default("PENDLE_BUY_PT"),
37941
38067
  market_address: stringType(),
37942
- amount: unionType([numberType(), stringType()])
38068
+ amount: unionType([numberType(), stringType()]),
38069
+ max_slippage_percent: numberType()
37943
38070
  }).transform((v2) => {
37944
38071
  return remap(v2, {
37945
38072
  action_type: "actionType",
37946
- market_address: "marketAddress"
38073
+ market_address: "marketAddress",
38074
+ max_slippage_percent: "maxSlippagePercent"
37947
38075
  });
37948
38076
  });
37949
38077
  PendleBuyPtParams$outboundSchema = objectType({
37950
38078
  actionType: literalType("PENDLE_BUY_PT").default("PENDLE_BUY_PT"),
37951
38079
  marketAddress: stringType(),
37952
- amount: unionType([numberType(), stringType()])
38080
+ amount: unionType([numberType(), stringType()]),
38081
+ maxSlippagePercent: numberType()
37953
38082
  }).transform((v2) => {
37954
38083
  return remap(v2, {
37955
38084
  actionType: "action_type",
37956
- marketAddress: "market_address"
38085
+ marketAddress: "market_address",
38086
+ maxSlippagePercent: "max_slippage_percent"
37957
38087
  });
37958
38088
  });
37959
38089
  ((PendleBuyPtParams$) => {
@@ -37976,21 +38106,25 @@ var init_pendlebuyytparams = __esm(() => {
37976
38106
  PendleBuyYtParams$inboundSchema = objectType({
37977
38107
  action_type: literalType("PENDLE_BUY_YT").default("PENDLE_BUY_YT"),
37978
38108
  market_address: stringType(),
37979
- amount: unionType([numberType(), stringType()])
38109
+ amount: unionType([numberType(), stringType()]),
38110
+ max_slippage_percent: numberType()
37980
38111
  }).transform((v2) => {
37981
38112
  return remap(v2, {
37982
38113
  action_type: "actionType",
37983
- market_address: "marketAddress"
38114
+ market_address: "marketAddress",
38115
+ max_slippage_percent: "maxSlippagePercent"
37984
38116
  });
37985
38117
  });
37986
38118
  PendleBuyYtParams$outboundSchema = objectType({
37987
38119
  actionType: literalType("PENDLE_BUY_YT").default("PENDLE_BUY_YT"),
37988
38120
  marketAddress: stringType(),
37989
- amount: unionType([numberType(), stringType()])
38121
+ amount: unionType([numberType(), stringType()]),
38122
+ maxSlippagePercent: numberType()
37990
38123
  }).transform((v2) => {
37991
38124
  return remap(v2, {
37992
38125
  actionType: "action_type",
37993
- marketAddress: "market_address"
38126
+ marketAddress: "market_address",
38127
+ maxSlippagePercent: "max_slippage_percent"
37994
38128
  });
37995
38129
  });
37996
38130
  ((PendleBuyYtParams$) => {
@@ -38042,21 +38176,25 @@ var init_pendleremoveliquidityparams = __esm(() => {
38042
38176
  PendleRemoveLiquidityParams$inboundSchema = objectType({
38043
38177
  action_type: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
38044
38178
  market_address: stringType(),
38045
- amount: unionType([numberType(), stringType()])
38179
+ amount: unionType([numberType(), stringType()]),
38180
+ max_slippage_percent: numberType()
38046
38181
  }).transform((v2) => {
38047
38182
  return remap(v2, {
38048
38183
  action_type: "actionType",
38049
- market_address: "marketAddress"
38184
+ market_address: "marketAddress",
38185
+ max_slippage_percent: "maxSlippagePercent"
38050
38186
  });
38051
38187
  });
38052
38188
  PendleRemoveLiquidityParams$outboundSchema = objectType({
38053
38189
  actionType: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
38054
38190
  marketAddress: stringType(),
38055
- amount: unionType([numberType(), stringType()])
38191
+ amount: unionType([numberType(), stringType()]),
38192
+ maxSlippagePercent: numberType()
38056
38193
  }).transform((v2) => {
38057
38194
  return remap(v2, {
38058
38195
  actionType: "action_type",
38059
- marketAddress: "market_address"
38196
+ marketAddress: "market_address",
38197
+ maxSlippagePercent: "max_slippage_percent"
38060
38198
  });
38061
38199
  });
38062
38200
  ((PendleRemoveLiquidityParams$) => {
@@ -38079,21 +38217,25 @@ var init_pendlesellptparams = __esm(() => {
38079
38217
  PendleSellPtParams$inboundSchema = objectType({
38080
38218
  action_type: literalType("PENDLE_SELL_PT").default("PENDLE_SELL_PT"),
38081
38219
  market_address: stringType(),
38082
- amount: unionType([numberType(), stringType()])
38220
+ amount: unionType([numberType(), stringType()]),
38221
+ max_slippage_percent: numberType()
38083
38222
  }).transform((v2) => {
38084
38223
  return remap(v2, {
38085
38224
  action_type: "actionType",
38086
- market_address: "marketAddress"
38225
+ market_address: "marketAddress",
38226
+ max_slippage_percent: "maxSlippagePercent"
38087
38227
  });
38088
38228
  });
38089
38229
  PendleSellPtParams$outboundSchema = objectType({
38090
38230
  actionType: literalType("PENDLE_SELL_PT").default("PENDLE_SELL_PT"),
38091
38231
  marketAddress: stringType(),
38092
- amount: unionType([numberType(), stringType()])
38232
+ amount: unionType([numberType(), stringType()]),
38233
+ maxSlippagePercent: numberType()
38093
38234
  }).transform((v2) => {
38094
38235
  return remap(v2, {
38095
38236
  actionType: "action_type",
38096
- marketAddress: "market_address"
38237
+ marketAddress: "market_address",
38238
+ maxSlippagePercent: "max_slippage_percent"
38097
38239
  });
38098
38240
  });
38099
38241
  ((PendleSellPtParams$) => {
@@ -38116,21 +38258,25 @@ var init_pendlesellytparams = __esm(() => {
38116
38258
  PendleSellYtParams$inboundSchema = objectType({
38117
38259
  action_type: literalType("PENDLE_SELL_YT").default("PENDLE_SELL_YT"),
38118
38260
  market_address: stringType(),
38119
- amount: unionType([numberType(), stringType()])
38261
+ amount: unionType([numberType(), stringType()]),
38262
+ max_slippage_percent: numberType()
38120
38263
  }).transform((v2) => {
38121
38264
  return remap(v2, {
38122
38265
  action_type: "actionType",
38123
- market_address: "marketAddress"
38266
+ market_address: "marketAddress",
38267
+ max_slippage_percent: "maxSlippagePercent"
38124
38268
  });
38125
38269
  });
38126
38270
  PendleSellYtParams$outboundSchema = objectType({
38127
38271
  actionType: literalType("PENDLE_SELL_YT").default("PENDLE_SELL_YT"),
38128
38272
  marketAddress: stringType(),
38129
- amount: unionType([numberType(), stringType()])
38273
+ amount: unionType([numberType(), stringType()]),
38274
+ maxSlippagePercent: numberType()
38130
38275
  }).transform((v2) => {
38131
38276
  return remap(v2, {
38132
38277
  actionType: "action_type",
38133
- marketAddress: "market_address"
38278
+ marketAddress: "market_address",
38279
+ maxSlippagePercent: "max_slippage_percent"
38134
38280
  });
38135
38281
  });
38136
38282
  ((PendleSellYtParams$) => {
@@ -38768,20 +38914,6 @@ var init_useroperation = __esm(() => {
38768
38914
  action_type: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
38769
38915
  }).transform((v2) => ({ actionType: v2.action_type }))),
38770
38916
  MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
38771
- PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
38772
- PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
38773
- actionType: v2.action_type
38774
- }))),
38775
- PendleBuyYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
38776
- actionType: v2.action_type
38777
- }))),
38778
- PendleRemoveLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
38779
- PendleSellPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
38780
- actionType: v2.action_type
38781
- }))),
38782
- PendleSellYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
38783
- actionType: v2.action_type
38784
- }))),
38785
38917
  SkyBuyParams$inboundSchema.and(objectType({ action_type: literalType("SKY_BUY") }).transform((v2) => ({
38786
38918
  actionType: v2.action_type
38787
38919
  }))),
@@ -38808,6 +38940,20 @@ var init_useroperation = __esm(() => {
38808
38940
  actionType: v2.action_type
38809
38941
  }))),
38810
38942
  MorphoWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({ actionType: v2.action_type }))),
38943
+ PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
38944
+ PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
38945
+ actionType: v2.action_type
38946
+ }))),
38947
+ PendleBuyYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
38948
+ actionType: v2.action_type
38949
+ }))),
38950
+ PendleRemoveLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
38951
+ PendleSellPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
38952
+ actionType: v2.action_type
38953
+ }))),
38954
+ PendleSellYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
38955
+ actionType: v2.action_type
38956
+ }))),
38811
38957
  TokenTransferErc20Params$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ actionType: v2.action_type }))),
38812
38958
  AaveBorrowParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_BORROW") }).transform((v2) => ({
38813
38959
  actionType: v2.action_type
@@ -38848,20 +38994,6 @@ var init_useroperation = __esm(() => {
38848
38994
  actionType: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
38849
38995
  }).transform((v2) => ({ action_type: v2.actionType }))),
38850
38996
  MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
38851
- PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
38852
- PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
38853
- action_type: v2.actionType
38854
- }))),
38855
- PendleBuyYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
38856
- action_type: v2.actionType
38857
- }))),
38858
- PendleRemoveLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
38859
- PendleSellPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
38860
- action_type: v2.actionType
38861
- }))),
38862
- PendleSellYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
38863
- action_type: v2.actionType
38864
- }))),
38865
38997
  SkyBuyParams$outboundSchema.and(objectType({ actionType: literalType("SKY_BUY") }).transform((v2) => ({
38866
38998
  action_type: v2.actionType
38867
38999
  }))),
@@ -38890,6 +39022,20 @@ var init_useroperation = __esm(() => {
38890
39022
  MorphoWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({
38891
39023
  action_type: v2.actionType
38892
39024
  }))),
39025
+ PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
39026
+ PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
39027
+ action_type: v2.actionType
39028
+ }))),
39029
+ PendleBuyYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
39030
+ action_type: v2.actionType
39031
+ }))),
39032
+ PendleRemoveLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
39033
+ PendleSellPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
39034
+ action_type: v2.actionType
39035
+ }))),
39036
+ PendleSellYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
39037
+ action_type: v2.actionType
39038
+ }))),
38893
39039
  TokenTransferErc20Params$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ action_type: v2.actionType }))),
38894
39040
  AaveBorrowParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_BORROW") }).transform((v2) => ({
38895
39041
  action_type: v2.actionType
@@ -38935,20 +39081,6 @@ var init_useroperation = __esm(() => {
38935
39081
  action_type: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
38936
39082
  }).transform((v2) => ({ actionType: v2.action_type }))),
38937
39083
  MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
38938
- PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
38939
- PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
38940
- actionType: v2.action_type
38941
- }))),
38942
- PendleBuyYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
38943
- actionType: v2.action_type
38944
- }))),
38945
- PendleRemoveLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
38946
- PendleSellPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
38947
- actionType: v2.action_type
38948
- }))),
38949
- PendleSellYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
38950
- actionType: v2.action_type
38951
- }))),
38952
39084
  SkyBuyParams$inboundSchema.and(objectType({ action_type: literalType("SKY_BUY") }).transform((v2) => ({
38953
39085
  actionType: v2.action_type
38954
39086
  }))),
@@ -38975,6 +39107,20 @@ var init_useroperation = __esm(() => {
38975
39107
  actionType: v2.action_type
38976
39108
  }))),
38977
39109
  MorphoWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({ actionType: v2.action_type }))),
39110
+ PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
39111
+ PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
39112
+ actionType: v2.action_type
39113
+ }))),
39114
+ PendleBuyYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
39115
+ actionType: v2.action_type
39116
+ }))),
39117
+ PendleRemoveLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
39118
+ PendleSellPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
39119
+ actionType: v2.action_type
39120
+ }))),
39121
+ PendleSellYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
39122
+ actionType: v2.action_type
39123
+ }))),
38978
39124
  TokenTransferErc20Params$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ actionType: v2.action_type }))),
38979
39125
  AaveBorrowParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_BORROW") }).transform((v2) => ({
38980
39126
  actionType: v2.action_type
@@ -39017,20 +39163,6 @@ var init_useroperation = __esm(() => {
39017
39163
  actionType: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
39018
39164
  }).transform((v2) => ({ action_type: v2.actionType }))),
39019
39165
  MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
39020
- PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
39021
- PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
39022
- action_type: v2.actionType
39023
- }))),
39024
- PendleBuyYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
39025
- action_type: v2.actionType
39026
- }))),
39027
- PendleRemoveLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
39028
- PendleSellPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
39029
- action_type: v2.actionType
39030
- }))),
39031
- PendleSellYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
39032
- action_type: v2.actionType
39033
- }))),
39034
39166
  SkyBuyParams$outboundSchema.and(objectType({ actionType: literalType("SKY_BUY") }).transform((v2) => ({
39035
39167
  action_type: v2.actionType
39036
39168
  }))),
@@ -39059,6 +39191,20 @@ var init_useroperation = __esm(() => {
39059
39191
  MorphoWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({
39060
39192
  action_type: v2.actionType
39061
39193
  }))),
39194
+ PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
39195
+ PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
39196
+ action_type: v2.actionType
39197
+ }))),
39198
+ PendleBuyYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
39199
+ action_type: v2.actionType
39200
+ }))),
39201
+ PendleRemoveLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
39202
+ PendleSellPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
39203
+ action_type: v2.actionType
39204
+ }))),
39205
+ PendleSellYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
39206
+ action_type: v2.actionType
39207
+ }))),
39062
39208
  TokenTransferErc20Params$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ action_type: v2.actionType }))),
39063
39209
  AaveBorrowParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_BORROW") }).transform((v2) => ({
39064
39210
  action_type: v2.actionType
@@ -39361,25 +39507,25 @@ var init_compassapibackendmodelsmorphoreadresponsegetmarketmarketstate = __esm((
39361
39507
  init_esm();
39362
39508
  CompassApiBackendModelsMorphoReadResponseGetMarketMarketState$inboundSchema = objectType({
39363
39509
  utilization: stringType(),
39364
- collateralAssets: stringType(),
39510
+ collateralAssets: nullableType(stringType()).optional(),
39365
39511
  collateralAssetsUsd: nullableType(stringType()).optional(),
39366
39512
  borrowAssets: stringType(),
39367
- borrowAssetsUsd: stringType(),
39513
+ borrowAssetsUsd: nullableType(stringType()).optional(),
39368
39514
  liquidityAssets: stringType(),
39369
- liquidityAssetsUsd: stringType(),
39515
+ liquidityAssetsUsd: nullableType(stringType()).optional(),
39370
39516
  totalLiquidity: stringType(),
39371
- totalLiquidityUsd: stringType()
39517
+ totalLiquidityUsd: nullableType(stringType()).optional()
39372
39518
  });
39373
39519
  CompassApiBackendModelsMorphoReadResponseGetMarketMarketState$outboundSchema = objectType({
39374
39520
  utilization: stringType(),
39375
- collateralAssets: stringType(),
39521
+ collateralAssets: nullableType(stringType()).optional(),
39376
39522
  collateralAssetsUsd: nullableType(stringType()).optional(),
39377
39523
  borrowAssets: stringType(),
39378
- borrowAssetsUsd: stringType(),
39524
+ borrowAssetsUsd: nullableType(stringType()).optional(),
39379
39525
  liquidityAssets: stringType(),
39380
- liquidityAssetsUsd: stringType(),
39526
+ liquidityAssetsUsd: nullableType(stringType()).optional(),
39381
39527
  totalLiquidity: stringType(),
39382
- totalLiquidityUsd: stringType()
39528
+ totalLiquidityUsd: nullableType(stringType()).optional()
39383
39529
  });
39384
39530
  ((CompassApiBackendModelsMorphoReadResponseGetMarketMarketState$) => {
39385
39531
  CompassApiBackendModelsMorphoReadResponseGetMarketMarketState$.inboundSchema = CompassApiBackendModelsMorphoReadResponseGetMarketMarketState$inboundSchema;
@@ -39887,14 +40033,10 @@ var init_metadata = __esm(() => {
39887
40033
  init_esm();
39888
40034
  init_curator();
39889
40035
  Metadata$inboundSchema = objectType({
39890
- description: nullableType(stringType()),
39891
- image: nullableType(stringType()),
39892
40036
  forumLink: nullableType(stringType()),
39893
40037
  curators: arrayType(Curator$inboundSchema)
39894
40038
  });
39895
40039
  Metadata$outboundSchema = objectType({
39896
- description: nullableType(stringType()),
39897
- image: nullableType(stringType()),
39898
40040
  forumLink: nullableType(stringType()),
39899
40041
  curators: arrayType(Curator$outboundSchema)
39900
40042
  });
@@ -40649,36 +40791,109 @@ var init_morphowithdrawrequest = __esm(() => {
40649
40791
  })(MorphoWithdrawRequest$ ||= {});
40650
40792
  });
40651
40793
 
40652
- // src/models/components/openposition.ts
40653
- var OpenPosition$inboundSchema, OpenPosition$outboundSchema, OpenPosition$;
40654
- var init_openposition = __esm(() => {
40794
+ // src/models/components/multicallauthorizationrequest.ts
40795
+ var MulticallAuthorizationRequest$inboundSchema, MulticallAuthorizationRequest$outboundSchema, MulticallAuthorizationRequest$;
40796
+ var init_multicallauthorizationrequest = __esm(() => {
40655
40797
  init_esm();
40656
- init_compassapibackendmodelspendlereadresponsepositionstokenbalance();
40657
- init_lpbalance();
40658
- OpenPosition$inboundSchema = objectType({
40659
- marketId: stringType(),
40660
- pt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema,
40661
- yt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema,
40662
- lp: LpBalance$inboundSchema
40798
+ init_chain();
40799
+ MulticallAuthorizationRequest$inboundSchema = objectType({
40800
+ chain: Chain$inboundSchema,
40801
+ sender: stringType()
40663
40802
  });
40664
- OpenPosition$outboundSchema = objectType({
40665
- marketId: stringType(),
40666
- pt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema,
40667
- yt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema,
40668
- lp: LpBalance$outboundSchema
40803
+ MulticallAuthorizationRequest$outboundSchema = objectType({
40804
+ chain: Chain$outboundSchema,
40805
+ sender: stringType()
40669
40806
  });
40670
- ((OpenPosition$) => {
40671
- OpenPosition$.inboundSchema = OpenPosition$inboundSchema;
40672
- OpenPosition$.outboundSchema = OpenPosition$outboundSchema;
40673
- })(OpenPosition$ ||= {});
40807
+ ((MulticallAuthorizationRequest$) => {
40808
+ MulticallAuthorizationRequest$.inboundSchema = MulticallAuthorizationRequest$inboundSchema;
40809
+ MulticallAuthorizationRequest$.outboundSchema = MulticallAuthorizationRequest$outboundSchema;
40810
+ })(MulticallAuthorizationRequest$ ||= {});
40674
40811
  });
40675
40812
 
40676
- // src/models/components/pendleaddliquidityrequest.ts
40677
- var PendleAddLiquidityRequestAmount$inboundSchema, PendleAddLiquidityRequestAmount$outboundSchema, PendleAddLiquidityRequestAmount$, PendleAddLiquidityRequest$inboundSchema, PendleAddLiquidityRequest$outboundSchema, PendleAddLiquidityRequest$;
40678
- var init_pendleaddliquidityrequest = __esm(() => {
40813
+ // src/models/components/multicallauthorizationresponse.ts
40814
+ var MulticallAuthorizationResponse$inboundSchema, MulticallAuthorizationResponse$outboundSchema, MulticallAuthorizationResponse$;
40815
+ var init_multicallauthorizationresponse = __esm(() => {
40679
40816
  init_esm();
40680
- init_primitives();
40681
- init_chain();
40817
+ MulticallAuthorizationResponse$inboundSchema = objectType({
40818
+ nonce: numberType().int(),
40819
+ address: stringType(),
40820
+ chainId: numberType().int()
40821
+ });
40822
+ MulticallAuthorizationResponse$outboundSchema = objectType({
40823
+ nonce: numberType().int(),
40824
+ address: stringType(),
40825
+ chainId: numberType().int()
40826
+ });
40827
+ ((MulticallAuthorizationResponse$) => {
40828
+ MulticallAuthorizationResponse$.inboundSchema = MulticallAuthorizationResponse$inboundSchema;
40829
+ MulticallAuthorizationResponse$.outboundSchema = MulticallAuthorizationResponse$outboundSchema;
40830
+ })(MulticallAuthorizationResponse$ ||= {});
40831
+ });
40832
+
40833
+ // src/models/components/multicallexecuterequest.ts
40834
+ var MulticallExecuteRequest$inboundSchema, MulticallExecuteRequest$outboundSchema, MulticallExecuteRequest$;
40835
+ var init_multicallexecuterequest = __esm(() => {
40836
+ init_esm();
40837
+ init_primitives();
40838
+ init_chain();
40839
+ init_signedauthorization();
40840
+ init_useroperation();
40841
+ MulticallExecuteRequest$inboundSchema = objectType({
40842
+ chain: Chain$inboundSchema,
40843
+ sender: stringType(),
40844
+ signed_authorization: SignedAuthorization$inboundSchema,
40845
+ actions: arrayType(UserOperation$inboundSchema)
40846
+ }).transform((v2) => {
40847
+ return remap(v2, {
40848
+ signed_authorization: "signedAuthorization"
40849
+ });
40850
+ });
40851
+ MulticallExecuteRequest$outboundSchema = objectType({
40852
+ chain: Chain$outboundSchema,
40853
+ sender: stringType(),
40854
+ signedAuthorization: SignedAuthorization$outboundSchema,
40855
+ actions: arrayType(UserOperation$outboundSchema)
40856
+ }).transform((v2) => {
40857
+ return remap(v2, {
40858
+ signedAuthorization: "signed_authorization"
40859
+ });
40860
+ });
40861
+ ((MulticallExecuteRequest$) => {
40862
+ MulticallExecuteRequest$.inboundSchema = MulticallExecuteRequest$inboundSchema;
40863
+ MulticallExecuteRequest$.outboundSchema = MulticallExecuteRequest$outboundSchema;
40864
+ })(MulticallExecuteRequest$ ||= {});
40865
+ });
40866
+
40867
+ // src/models/components/openposition.ts
40868
+ var OpenPosition$inboundSchema, OpenPosition$outboundSchema, OpenPosition$;
40869
+ var init_openposition = __esm(() => {
40870
+ init_esm();
40871
+ init_compassapibackendmodelspendlereadresponsepositionstokenbalance();
40872
+ init_lpbalance();
40873
+ OpenPosition$inboundSchema = objectType({
40874
+ marketId: stringType(),
40875
+ pt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema,
40876
+ yt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema,
40877
+ lp: LpBalance$inboundSchema
40878
+ });
40879
+ OpenPosition$outboundSchema = objectType({
40880
+ marketId: stringType(),
40881
+ pt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema,
40882
+ yt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema,
40883
+ lp: LpBalance$outboundSchema
40884
+ });
40885
+ ((OpenPosition$) => {
40886
+ OpenPosition$.inboundSchema = OpenPosition$inboundSchema;
40887
+ OpenPosition$.outboundSchema = OpenPosition$outboundSchema;
40888
+ })(OpenPosition$ ||= {});
40889
+ });
40890
+
40891
+ // src/models/components/pendleaddliquidityrequest.ts
40892
+ var PendleAddLiquidityRequestAmount$inboundSchema, PendleAddLiquidityRequestAmount$outboundSchema, PendleAddLiquidityRequestAmount$, PendleAddLiquidityRequest$inboundSchema, PendleAddLiquidityRequest$outboundSchema, PendleAddLiquidityRequest$;
40893
+ var init_pendleaddliquidityrequest = __esm(() => {
40894
+ init_esm();
40895
+ init_primitives();
40896
+ init_chain();
40682
40897
  PendleAddLiquidityRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
40683
40898
  PendleAddLiquidityRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
40684
40899
  ((PendleAddLiquidityRequestAmount$) => {
@@ -40689,24 +40904,28 @@ var init_pendleaddliquidityrequest = __esm(() => {
40689
40904
  action_type: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
40690
40905
  market_address: stringType(),
40691
40906
  amount: unionType([numberType(), stringType()]),
40907
+ max_slippage_percent: numberType(),
40692
40908
  chain: Chain$inboundSchema,
40693
40909
  sender: stringType()
40694
40910
  }).transform((v2) => {
40695
40911
  return remap(v2, {
40696
40912
  action_type: "actionType",
40697
- market_address: "marketAddress"
40913
+ market_address: "marketAddress",
40914
+ max_slippage_percent: "maxSlippagePercent"
40698
40915
  });
40699
40916
  });
40700
40917
  PendleAddLiquidityRequest$outboundSchema = objectType({
40701
40918
  actionType: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
40702
40919
  marketAddress: stringType(),
40703
40920
  amount: unionType([numberType(), stringType()]),
40921
+ maxSlippagePercent: numberType(),
40704
40922
  chain: Chain$outboundSchema,
40705
40923
  sender: stringType()
40706
40924
  }).transform((v2) => {
40707
40925
  return remap(v2, {
40708
40926
  actionType: "action_type",
40709
- marketAddress: "market_address"
40927
+ marketAddress: "market_address",
40928
+ maxSlippagePercent: "max_slippage_percent"
40710
40929
  });
40711
40930
  });
40712
40931
  ((PendleAddLiquidityRequest$) => {
@@ -40731,24 +40950,28 @@ var init_pendlebuyptrequest = __esm(() => {
40731
40950
  action_type: literalType("PENDLE_BUY_PT").default("PENDLE_BUY_PT"),
40732
40951
  market_address: stringType(),
40733
40952
  amount: unionType([numberType(), stringType()]),
40953
+ max_slippage_percent: numberType(),
40734
40954
  chain: Chain$inboundSchema,
40735
40955
  sender: stringType()
40736
40956
  }).transform((v2) => {
40737
40957
  return remap(v2, {
40738
40958
  action_type: "actionType",
40739
- market_address: "marketAddress"
40959
+ market_address: "marketAddress",
40960
+ max_slippage_percent: "maxSlippagePercent"
40740
40961
  });
40741
40962
  });
40742
40963
  PendleBuyPtRequest$outboundSchema = objectType({
40743
40964
  actionType: literalType("PENDLE_BUY_PT").default("PENDLE_BUY_PT"),
40744
40965
  marketAddress: stringType(),
40745
40966
  amount: unionType([numberType(), stringType()]),
40967
+ maxSlippagePercent: numberType(),
40746
40968
  chain: Chain$outboundSchema,
40747
40969
  sender: stringType()
40748
40970
  }).transform((v2) => {
40749
40971
  return remap(v2, {
40750
40972
  actionType: "action_type",
40751
- marketAddress: "market_address"
40973
+ marketAddress: "market_address",
40974
+ maxSlippagePercent: "max_slippage_percent"
40752
40975
  });
40753
40976
  });
40754
40977
  ((PendleBuyPtRequest$) => {
@@ -40773,24 +40996,28 @@ var init_pendlebuyytrequest = __esm(() => {
40773
40996
  action_type: literalType("PENDLE_BUY_YT").default("PENDLE_BUY_YT"),
40774
40997
  market_address: stringType(),
40775
40998
  amount: unionType([numberType(), stringType()]),
40999
+ max_slippage_percent: numberType(),
40776
41000
  chain: Chain$inboundSchema,
40777
41001
  sender: stringType()
40778
41002
  }).transform((v2) => {
40779
41003
  return remap(v2, {
40780
41004
  action_type: "actionType",
40781
- market_address: "marketAddress"
41005
+ market_address: "marketAddress",
41006
+ max_slippage_percent: "maxSlippagePercent"
40782
41007
  });
40783
41008
  });
40784
41009
  PendleBuyYtRequest$outboundSchema = objectType({
40785
41010
  actionType: literalType("PENDLE_BUY_YT").default("PENDLE_BUY_YT"),
40786
41011
  marketAddress: stringType(),
40787
41012
  amount: unionType([numberType(), stringType()]),
41013
+ maxSlippagePercent: numberType(),
40788
41014
  chain: Chain$outboundSchema,
40789
41015
  sender: stringType()
40790
41016
  }).transform((v2) => {
40791
41017
  return remap(v2, {
40792
41018
  actionType: "action_type",
40793
- marketAddress: "market_address"
41019
+ marketAddress: "market_address",
41020
+ maxSlippagePercent: "max_slippage_percent"
40794
41021
  });
40795
41022
  });
40796
41023
  ((PendleBuyYtRequest$) => {
@@ -41071,24 +41298,28 @@ var init_pendleremoveliquidityrequest = __esm(() => {
41071
41298
  action_type: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
41072
41299
  market_address: stringType(),
41073
41300
  amount: unionType([numberType(), stringType()]),
41301
+ max_slippage_percent: numberType(),
41074
41302
  chain: Chain$inboundSchema,
41075
41303
  sender: stringType()
41076
41304
  }).transform((v2) => {
41077
41305
  return remap(v2, {
41078
41306
  action_type: "actionType",
41079
- market_address: "marketAddress"
41307
+ market_address: "marketAddress",
41308
+ max_slippage_percent: "maxSlippagePercent"
41080
41309
  });
41081
41310
  });
41082
41311
  PendleRemoveLiquidityRequest$outboundSchema = objectType({
41083
41312
  actionType: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
41084
41313
  marketAddress: stringType(),
41085
41314
  amount: unionType([numberType(), stringType()]),
41315
+ maxSlippagePercent: numberType(),
41086
41316
  chain: Chain$outboundSchema,
41087
41317
  sender: stringType()
41088
41318
  }).transform((v2) => {
41089
41319
  return remap(v2, {
41090
41320
  actionType: "action_type",
41091
- marketAddress: "market_address"
41321
+ marketAddress: "market_address",
41322
+ maxSlippagePercent: "max_slippage_percent"
41092
41323
  });
41093
41324
  });
41094
41325
  ((PendleRemoveLiquidityRequest$) => {
@@ -41113,24 +41344,28 @@ var init_pendlesellptrequest = __esm(() => {
41113
41344
  action_type: literalType("PENDLE_SELL_PT").default("PENDLE_SELL_PT"),
41114
41345
  market_address: stringType(),
41115
41346
  amount: unionType([numberType(), stringType()]),
41347
+ max_slippage_percent: numberType(),
41116
41348
  chain: Chain$inboundSchema,
41117
41349
  sender: stringType()
41118
41350
  }).transform((v2) => {
41119
41351
  return remap(v2, {
41120
41352
  action_type: "actionType",
41121
- market_address: "marketAddress"
41353
+ market_address: "marketAddress",
41354
+ max_slippage_percent: "maxSlippagePercent"
41122
41355
  });
41123
41356
  });
41124
41357
  PendleSellPtRequest$outboundSchema = objectType({
41125
41358
  actionType: literalType("PENDLE_SELL_PT").default("PENDLE_SELL_PT"),
41126
41359
  marketAddress: stringType(),
41127
41360
  amount: unionType([numberType(), stringType()]),
41361
+ maxSlippagePercent: numberType(),
41128
41362
  chain: Chain$outboundSchema,
41129
41363
  sender: stringType()
41130
41364
  }).transform((v2) => {
41131
41365
  return remap(v2, {
41132
41366
  actionType: "action_type",
41133
- marketAddress: "market_address"
41367
+ marketAddress: "market_address",
41368
+ maxSlippagePercent: "max_slippage_percent"
41134
41369
  });
41135
41370
  });
41136
41371
  ((PendleSellPtRequest$) => {
@@ -41155,24 +41390,28 @@ var init_pendlesellytrequest = __esm(() => {
41155
41390
  action_type: literalType("PENDLE_SELL_YT").default("PENDLE_SELL_YT"),
41156
41391
  market_address: stringType(),
41157
41392
  amount: unionType([numberType(), stringType()]),
41393
+ max_slippage_percent: numberType(),
41158
41394
  chain: Chain$inboundSchema,
41159
41395
  sender: stringType()
41160
41396
  }).transform((v2) => {
41161
41397
  return remap(v2, {
41162
41398
  action_type: "actionType",
41163
- market_address: "marketAddress"
41399
+ market_address: "marketAddress",
41400
+ max_slippage_percent: "maxSlippagePercent"
41164
41401
  });
41165
41402
  });
41166
41403
  PendleSellYtRequest$outboundSchema = objectType({
41167
41404
  actionType: literalType("PENDLE_SELL_YT").default("PENDLE_SELL_YT"),
41168
41405
  marketAddress: stringType(),
41169
41406
  amount: unionType([numberType(), stringType()]),
41407
+ maxSlippagePercent: numberType(),
41170
41408
  chain: Chain$outboundSchema,
41171
41409
  sender: stringType()
41172
41410
  }).transform((v2) => {
41173
41411
  return remap(v2, {
41174
41412
  actionType: "action_type",
41175
- marketAddress: "market_address"
41413
+ marketAddress: "market_address",
41414
+ maxSlippagePercent: "max_slippage_percent"
41176
41415
  });
41177
41416
  });
41178
41417
  ((PendleSellYtRequest$) => {
@@ -41236,50 +41475,6 @@ var init_security2 = __esm(() => {
41236
41475
  })(Security$ ||= {});
41237
41476
  });
41238
41477
 
41239
- // src/models/components/signedauthorization.ts
41240
- var R$inboundSchema, R$outboundSchema, R$, S$inboundSchema, S$outboundSchema, S$, SignedAuthorization$inboundSchema, SignedAuthorization$outboundSchema, SignedAuthorization$;
41241
- var init_signedauthorization = __esm(() => {
41242
- init_esm();
41243
- R$inboundSchema = unionType([
41244
- numberType().int(),
41245
- stringType()
41246
- ]);
41247
- R$outboundSchema = unionType([numberType().int(), stringType()]);
41248
- ((R$) => {
41249
- R$.inboundSchema = R$inboundSchema;
41250
- R$.outboundSchema = R$outboundSchema;
41251
- })(R$ ||= {});
41252
- S$inboundSchema = unionType([
41253
- numberType().int(),
41254
- stringType()
41255
- ]);
41256
- S$outboundSchema = unionType([numberType().int(), stringType()]);
41257
- ((S$) => {
41258
- S$.inboundSchema = S$inboundSchema;
41259
- S$.outboundSchema = S$outboundSchema;
41260
- })(S$ ||= {});
41261
- SignedAuthorization$inboundSchema = objectType({
41262
- nonce: numberType().int(),
41263
- address: stringType(),
41264
- chainId: numberType().int(),
41265
- r: unionType([numberType().int(), stringType()]),
41266
- s: unionType([numberType().int(), stringType()]),
41267
- yParity: numberType().int()
41268
- });
41269
- SignedAuthorization$outboundSchema = objectType({
41270
- nonce: numberType().int(),
41271
- address: stringType(),
41272
- chainId: numberType().int(),
41273
- r: unionType([numberType().int(), stringType()]),
41274
- s: unionType([numberType().int(), stringType()]),
41275
- yParity: numberType().int()
41276
- });
41277
- ((SignedAuthorization$) => {
41278
- SignedAuthorization$.inboundSchema = SignedAuthorization$inboundSchema;
41279
- SignedAuthorization$.outboundSchema = SignedAuthorization$outboundSchema;
41280
- })(SignedAuthorization$ ||= {});
41281
- });
41282
-
41283
41478
  // src/models/components/skybuyrequest.ts
41284
41479
  var SkyBuyRequestTokenIn, SkyBuyRequestTokenIn$inboundSchema, SkyBuyRequestTokenIn$outboundSchema, SkyBuyRequestTokenIn$, SkyBuyRequestAmount$inboundSchema, SkyBuyRequestAmount$outboundSchema, SkyBuyRequestAmount$, SkyBuyRequest$inboundSchema, SkyBuyRequest$outboundSchema, SkyBuyRequest$;
41285
41480
  var init_skybuyrequest = __esm(() => {
@@ -42331,6 +42526,7 @@ var init_components = __esm(() => {
42331
42526
  init_aaveborrowrequest();
42332
42527
  init_aavehistoricaltransactionsresponse();
42333
42528
  init_aaveliquiditychangeresponse();
42529
+ init_aavelooprequest();
42334
42530
  init_aaverateresponse();
42335
42531
  init_aaverepayparams();
42336
42532
  init_aaverepayrequest();
@@ -42416,6 +42612,9 @@ var init_components = __esm(() => {
42416
42612
  init_morphowithdrawparams();
42417
42613
  init_morphowithdrawrequest();
42418
42614
  init_movement10percent();
42615
+ init_multicallauthorizationrequest();
42616
+ init_multicallauthorizationresponse();
42617
+ init_multicallexecuterequest();
42419
42618
  init_openposition();
42420
42619
  init_pendleaddliquidityparams();
42421
42620
  init_pendleaddliquidityrequest();
@@ -50963,18 +51162,18 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
50963
51162
  };
50964
51163
  });
50965
51164
 
50966
- // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
50967
- function uniswapV3LiquidityProvisionIncrease(client, request, options) {
51165
+ // src/funcs/transactionBatchingAaveLoop.ts
51166
+ function transactionBatchingAaveLoop(client, request, options) {
50968
51167
  return new APIPromise($do56(client, request, options));
50969
51168
  }
50970
51169
  async function $do56(client, request, options) {
50971
- const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51170
+ const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
50972
51171
  if (!parsed.ok) {
50973
51172
  return [parsed, { status: "invalid" }];
50974
51173
  }
50975
51174
  const payload = parsed.value;
50976
51175
  const body = encodeJSON("body", payload, { explode: true });
50977
- const path = pathToFunc("/v0/uniswap/liquidity_provision/increase")();
51176
+ const path = pathToFunc("/v0/multicall/aave/loop")();
50978
51177
  const headers = new Headers(compactMap({
50979
51178
  "Content-Type": "application/json",
50980
51179
  Accept: "application/json"
@@ -50985,7 +51184,7 @@ async function $do56(client, request, options) {
50985
51184
  const context = {
50986
51185
  options: client._options,
50987
51186
  baseURL: options?.serverURL ?? client._baseURL ?? "",
50988
- operationID: "uniswap_liquidity_provision_increase",
51187
+ operationID: "multicall_aave_loop",
50989
51188
  oAuth2Scopes: [],
50990
51189
  resolvedSecurity: requestSecurity,
50991
51190
  securitySource: client._options.apiKeyAuth,
@@ -51019,13 +51218,13 @@ async function $do56(client, request, options) {
51019
51218
  const responseFields = {
51020
51219
  HttpMeta: { Response: response, Request: req }
51021
51220
  };
51022
- const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51221
+ const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51023
51222
  if (!result.ok) {
51024
51223
  return [result, { status: "complete", request: req, response }];
51025
51224
  }
51026
51225
  return [result, { status: "complete", request: req, response }];
51027
51226
  }
51028
- var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
51227
+ var init_transactionBatchingAaveLoop = __esm(() => {
51029
51228
  init_encodings();
51030
51229
  init_matchers();
51031
51230
  init_primitives();
@@ -51037,31 +51236,33 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
51037
51236
  init_async();
51038
51237
  });
51039
51238
 
51040
- // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
51041
- var args56, tool$uniswapV3LiquidityProvisionIncrease;
51042
- var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
51043
- init_uniswapV3LiquidityProvisionIncrease();
51239
+ // src/mcp-server/tools/transactionBatchingAaveLoop.ts
51240
+ var args56, tool$transactionBatchingAaveLoop;
51241
+ var init_transactionBatchingAaveLoop2 = __esm(() => {
51242
+ init_transactionBatchingAaveLoop();
51044
51243
  init_components();
51045
51244
  init_tools();
51046
51245
  args56 = {
51047
- request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
51246
+ request: AaveLoopRequest$inboundSchema
51048
51247
  };
51049
- tool$uniswapV3LiquidityProvisionIncrease = {
51050
- name: "uniswap-v3-liquidity-provision-increase",
51051
- description: `Increase an LP position
51248
+ tool$transactionBatchingAaveLoop = {
51249
+ name: "transaction-batching-aave-loop",
51250
+ description: `AAVE leverage long/short
51052
51251
 
51053
- This endpoint allows users to increase their existing Liquidity Provider (LP)
51054
- positions on the Uniswap platform.
51252
+ Execute an Aave looping strategy that involves repeated supply and borrow
51253
+ operations.
51055
51254
 
51056
- By providing the necessary parameters, users can add more liquidity to their current
51057
- positions, thereby increasing their stake in the liquidity pool. This operation is
51058
- beneficial for users who wish to enhance their potential earnings from trading fees
51059
- within the pool. The endpoint requires details such as the token pair, additional
51060
- amount to be added, and any other parameters necessary for the liquidity increase
51061
- process.`,
51255
+ This endpoint creates a multicall transaction that performs a series of operations:
51256
+ 1. Approves and supplies initial token
51257
+ 2. For each loop:
51258
+ - Borrows another token
51259
+ - Swaps borrowed token back to supply token
51260
+ - Supplies the swapped tokens
51261
+
51262
+ The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
51062
51263
  args: args56,
51063
51264
  tool: async (client, args57, ctx) => {
51064
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51265
+ const [result, apiCall] = await transactionBatchingAaveLoop(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51065
51266
  if (!result.ok) {
51066
51267
  return {
51067
51268
  content: [{ type: "text", text: result.error.message }],
@@ -51074,23 +51275,20 @@ process.`,
51074
51275
  };
51075
51276
  });
51076
51277
 
51077
- // src/funcs/uniswapV3LiquidityProvisionInRange.ts
51078
- function uniswapV3LiquidityProvisionInRange(client, request, options) {
51278
+ // src/funcs/transactionBatchingAuthorization.ts
51279
+ function transactionBatchingAuthorization(client, request, options) {
51079
51280
  return new APIPromise($do57(client, request, options));
51080
51281
  }
51081
51282
  async function $do57(client, request, options) {
51082
- const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
51283
+ const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
51083
51284
  if (!parsed.ok) {
51084
51285
  return [parsed, { status: "invalid" }];
51085
51286
  }
51086
51287
  const payload = parsed.value;
51087
- const body = null;
51088
- const path = pathToFunc("/v0/uniswap/liquidity_provision/in_range/get")();
51089
- const query = encodeFormQuery({
51090
- chain: payload.chain,
51091
- token_id: payload.token_id
51092
- });
51288
+ const body = encodeJSON("body", payload, { explode: true });
51289
+ const path = pathToFunc("/v0/multicall/authorization")();
51093
51290
  const headers = new Headers(compactMap({
51291
+ "Content-Type": "application/json",
51094
51292
  Accept: "application/json"
51095
51293
  }));
51096
51294
  const secConfig = await extractSecurity(client._options.apiKeyAuth);
@@ -51099,7 +51297,7 @@ async function $do57(client, request, options) {
51099
51297
  const context = {
51100
51298
  options: client._options,
51101
51299
  baseURL: options?.serverURL ?? client._baseURL ?? "",
51102
- operationID: "uniswap_liquidity_provision_in_range",
51300
+ operationID: "multicall_authorization",
51103
51301
  oAuth2Scopes: [],
51104
51302
  resolvedSecurity: requestSecurity,
51105
51303
  securitySource: client._options.apiKeyAuth,
@@ -51108,11 +51306,10 @@ async function $do57(client, request, options) {
51108
51306
  };
51109
51307
  const requestRes = client._createRequest(context, {
51110
51308
  security: requestSecurity,
51111
- method: "GET",
51309
+ method: "POST",
51112
51310
  baseURL: options?.serverURL,
51113
51311
  path,
51114
51312
  headers,
51115
- query,
51116
51313
  body,
51117
51314
  userAgent: client._options.userAgent,
51118
51315
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -51134,13 +51331,13 @@ async function $do57(client, request, options) {
51134
51331
  const responseFields = {
51135
51332
  HttpMeta: { Response: response, Request: req }
51136
51333
  };
51137
- const [result] = await match(json(200, UniswapCheckInRangeResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51334
+ const [result] = await match(json(200, MulticallAuthorizationResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51138
51335
  if (!result.ok) {
51139
51336
  return [result, { status: "complete", request: req, response }];
51140
51337
  }
51141
51338
  return [result, { status: "complete", request: req, response }];
51142
51339
  }
51143
- var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
51340
+ var init_transactionBatchingAuthorization = __esm(() => {
51144
51341
  init_encodings();
51145
51342
  init_matchers();
51146
51343
  init_primitives();
@@ -51149,34 +51346,31 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
51149
51346
  init_url();
51150
51347
  init_components();
51151
51348
  init_errors2();
51152
- init_operations();
51153
51349
  init_async();
51154
51350
  });
51155
51351
 
51156
- // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
51157
- var args57, tool$uniswapV3LiquidityProvisionInRange;
51158
- var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
51159
- init_uniswapV3LiquidityProvisionInRange();
51160
- init_operations();
51352
+ // src/mcp-server/tools/transactionBatchingAuthorization.ts
51353
+ var args57, tool$transactionBatchingAuthorization;
51354
+ var init_transactionBatchingAuthorization2 = __esm(() => {
51355
+ init_transactionBatchingAuthorization();
51356
+ init_components();
51161
51357
  init_tools();
51162
51358
  args57 = {
51163
- request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
51359
+ request: MulticallAuthorizationRequest$inboundSchema
51164
51360
  };
51165
- tool$uniswapV3LiquidityProvisionInRange = {
51166
- name: "uniswap-v3-liquidity-provision-in-range",
51167
- description: `Check if LP is active.
51361
+ tool$transactionBatchingAuthorization = {
51362
+ name: "transaction-batching-authorization",
51363
+ description: `Enable transaction bundling.
51168
51364
 
51169
- This endpoint allows users to check whether a specific liquidity provider ()
51170
- position is within the active tick range on the uniswap platform.
51365
+ Get authorization for bundling transactions.
51171
51366
 
51172
- by providing the token id associated with the position, users can verify if the
51173
- position is currently within the tick range where trading occurs. this information
51174
- is essential for users to monitor the status of their lp positions and ensure that
51175
- they are actively participating in the trading activities within the liquidity pool
51176
- and earning trading fees.`,
51367
+ Currently this is required for every transaction bundle to prevent replay attacks
51368
+ and ensure transaction ordering when batching multiple actions into a single
51369
+ transaction. The authorization includes a nonce and chain ID to guarantee
51370
+ transaction uniqueness and proper network targeting.`,
51177
51371
  args: args57,
51178
51372
  tool: async (client, args58, ctx) => {
51179
- const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51373
+ const [result, apiCall] = await transactionBatchingAuthorization(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51180
51374
  if (!result.ok) {
51181
51375
  return {
51182
51376
  content: [{ type: "text", text: result.error.message }],
@@ -51189,18 +51383,18 @@ and earning trading fees.`,
51189
51383
  };
51190
51384
  });
51191
51385
 
51192
- // src/funcs/uniswapV3LiquidityProvisionMint.ts
51193
- function uniswapV3LiquidityProvisionMint(client, request, options) {
51386
+ // src/funcs/transactionBatchingExecute.ts
51387
+ function transactionBatchingExecute(client, request, options) {
51194
51388
  return new APIPromise($do58(client, request, options));
51195
51389
  }
51196
51390
  async function $do58(client, request, options) {
51197
- const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51391
+ const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
51198
51392
  if (!parsed.ok) {
51199
51393
  return [parsed, { status: "invalid" }];
51200
51394
  }
51201
51395
  const payload = parsed.value;
51202
51396
  const body = encodeJSON("body", payload, { explode: true });
51203
- const path = pathToFunc("/v0/uniswap/liquidity_provision/mint")();
51397
+ const path = pathToFunc("/v0/multicall/execute")();
51204
51398
  const headers = new Headers(compactMap({
51205
51399
  "Content-Type": "application/json",
51206
51400
  Accept: "application/json"
@@ -51211,7 +51405,7 @@ async function $do58(client, request, options) {
51211
51405
  const context = {
51212
51406
  options: client._options,
51213
51407
  baseURL: options?.serverURL ?? client._baseURL ?? "",
51214
- operationID: "uniswap_liquidity_provision_mint",
51408
+ operationID: "multicall_execute",
51215
51409
  oAuth2Scopes: [],
51216
51410
  resolvedSecurity: requestSecurity,
51217
51411
  securitySource: client._options.apiKeyAuth,
@@ -51245,13 +51439,13 @@ async function $do58(client, request, options) {
51245
51439
  const responseFields = {
51246
51440
  HttpMeta: { Response: response, Request: req }
51247
51441
  };
51248
- const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51442
+ const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51249
51443
  if (!result.ok) {
51250
51444
  return [result, { status: "complete", request: req, response }];
51251
51445
  }
51252
51446
  return [result, { status: "complete", request: req, response }];
51253
51447
  }
51254
- var init_uniswapV3LiquidityProvisionMint = __esm(() => {
51448
+ var init_transactionBatchingExecute = __esm(() => {
51255
51449
  init_encodings();
51256
51450
  init_matchers();
51257
51451
  init_primitives();
@@ -51263,31 +51457,29 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
51263
51457
  init_async();
51264
51458
  });
51265
51459
 
51266
- // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
51267
- var args58, tool$uniswapV3LiquidityProvisionMint;
51268
- var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
51269
- init_uniswapV3LiquidityProvisionMint();
51460
+ // src/mcp-server/tools/transactionBatchingExecute.ts
51461
+ var args58, tool$transactionBatchingExecute;
51462
+ var init_transactionBatchingExecute2 = __esm(() => {
51463
+ init_transactionBatchingExecute();
51270
51464
  init_components();
51271
51465
  init_tools();
51272
51466
  args58 = {
51273
- request: UniswapMintLiquidityProvisionRequest$inboundSchema
51467
+ request: MulticallExecuteRequest$inboundSchema
51274
51468
  };
51275
- tool$uniswapV3LiquidityProvisionMint = {
51276
- name: "uniswap-v3-liquidity-provision-mint",
51277
- description: `Open a new LP position
51469
+ tool$transactionBatchingExecute = {
51470
+ name: "transaction-batching-execute",
51471
+ description: `Construct Bundled Transaction
51278
51472
 
51279
- This endpoint allows users to open a new Liquidity Provider (LP) position on the
51280
- Uniswap platform.
51473
+ Bundle arbitrary transactions together into a single multicall transaction using
51474
+ EIP-7702.
51281
51475
 
51282
- By providing the necessary parameters, users can initiate a minting process to
51283
- create a new LP token, which represents their stake in a specific liquidity pool.
51284
- This operation is essential for users looking to participate in liquidity provision,
51285
- enabling them to earn fees from trades that occur within the pool. The endpoint
51286
- requires details such as the token pair, amount, and any additional parameters
51287
- needed for the minting process.`,
51476
+ This endpoint allows bundling multiple contract calls into a single atomic
51477
+ transaction, reducing gas costs and ensuring all operations succeed or fail
51478
+ together. The transaction must be authorized using the /authorization endpoint to
51479
+ prevent replay attacks.`,
51288
51480
  args: args58,
51289
51481
  tool: async (client, args59, ctx) => {
51290
- const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51482
+ const [result, apiCall] = await transactionBatchingExecute(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51291
51483
  if (!result.ok) {
51292
51484
  return {
51293
51485
  content: [{ type: "text", text: result.error.message }],
@@ -51300,23 +51492,20 @@ needed for the minting process.`,
51300
51492
  };
51301
51493
  });
51302
51494
 
51303
- // src/funcs/uniswapV3LiquidityProvisionPositions.ts
51304
- function uniswapV3LiquidityProvisionPositions(client, request, options) {
51495
+ // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
51496
+ function uniswapV3LiquidityProvisionIncrease(client, request, options) {
51305
51497
  return new APIPromise($do59(client, request, options));
51306
51498
  }
51307
51499
  async function $do59(client, request, options) {
51308
- const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
51500
+ const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51309
51501
  if (!parsed.ok) {
51310
51502
  return [parsed, { status: "invalid" }];
51311
51503
  }
51312
51504
  const payload = parsed.value;
51313
- const body = null;
51314
- const path = pathToFunc("/v0/uniswap/liquidity_provision/positions/get")();
51315
- const query = encodeFormQuery({
51316
- chain: payload.chain,
51317
- user: payload.user
51318
- });
51505
+ const body = encodeJSON("body", payload, { explode: true });
51506
+ const path = pathToFunc("/v0/uniswap/liquidity_provision/increase")();
51319
51507
  const headers = new Headers(compactMap({
51508
+ "Content-Type": "application/json",
51320
51509
  Accept: "application/json"
51321
51510
  }));
51322
51511
  const secConfig = await extractSecurity(client._options.apiKeyAuth);
@@ -51325,7 +51514,7 @@ async function $do59(client, request, options) {
51325
51514
  const context = {
51326
51515
  options: client._options,
51327
51516
  baseURL: options?.serverURL ?? client._baseURL ?? "",
51328
- operationID: "uniswap_liquidity_provision_positions",
51517
+ operationID: "uniswap_liquidity_provision_increase",
51329
51518
  oAuth2Scopes: [],
51330
51519
  resolvedSecurity: requestSecurity,
51331
51520
  securitySource: client._options.apiKeyAuth,
@@ -51334,11 +51523,10 @@ async function $do59(client, request, options) {
51334
51523
  };
51335
51524
  const requestRes = client._createRequest(context, {
51336
51525
  security: requestSecurity,
51337
- method: "GET",
51526
+ method: "POST",
51338
51527
  baseURL: options?.serverURL,
51339
51528
  path,
51340
51529
  headers,
51341
- query,
51342
51530
  body,
51343
51531
  userAgent: client._options.userAgent,
51344
51532
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -51360,13 +51548,13 @@ async function $do59(client, request, options) {
51360
51548
  const responseFields = {
51361
51549
  HttpMeta: { Response: response, Request: req }
51362
51550
  };
51363
- const [result] = await match(json(200, UniswapLPPositionsInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51551
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51364
51552
  if (!result.ok) {
51365
51553
  return [result, { status: "complete", request: req, response }];
51366
51554
  }
51367
51555
  return [result, { status: "complete", request: req, response }];
51368
51556
  }
51369
- var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
51557
+ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
51370
51558
  init_encodings();
51371
51559
  init_matchers();
51372
51560
  init_primitives();
@@ -51375,33 +51563,374 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
51375
51563
  init_url();
51376
51564
  init_components();
51377
51565
  init_errors2();
51378
- init_operations();
51379
51566
  init_async();
51380
51567
  });
51381
51568
 
51382
- // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
51383
- var args59, tool$uniswapV3LiquidityProvisionPositions;
51384
- var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
51385
- init_uniswapV3LiquidityProvisionPositions();
51386
- init_operations();
51569
+ // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
51570
+ var args59, tool$uniswapV3LiquidityProvisionIncrease;
51571
+ var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
51572
+ init_uniswapV3LiquidityProvisionIncrease();
51573
+ init_components();
51387
51574
  init_tools();
51388
51575
  args59 = {
51389
- request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
51576
+ request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
51390
51577
  };
51391
- tool$uniswapV3LiquidityProvisionPositions = {
51392
- name: "uniswap-v3-liquidity-provision-positions",
51393
- description: `List LP
51578
+ tool$uniswapV3LiquidityProvisionIncrease = {
51579
+ name: "uniswap-v3-liquidity-provision-increase",
51580
+ description: `Increase an LP position
51394
51581
 
51395
- This endpoint retrieves the number of Liquidity Provider (LP) positions
51582
+ This endpoint allows users to increase their existing Liquidity Provider (LP)
51583
+ positions on the Uniswap platform.
51584
+
51585
+ By providing the necessary parameters, users can add more liquidity to their current
51586
+ positions, thereby increasing their stake in the liquidity pool. This operation is
51587
+ beneficial for users who wish to enhance their potential earnings from trading fees
51588
+ within the pool. The endpoint requires details such as the token pair, additional
51589
+ amount to be added, and any other parameters necessary for the liquidity increase
51590
+ process.`,
51591
+ args: args59,
51592
+ tool: async (client, args60, ctx) => {
51593
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51594
+ if (!result.ok) {
51595
+ return {
51596
+ content: [{ type: "text", text: result.error.message }],
51597
+ isError: true
51598
+ };
51599
+ }
51600
+ const value = result.value;
51601
+ return formatResult(value, apiCall);
51602
+ }
51603
+ };
51604
+ });
51605
+
51606
+ // src/funcs/uniswapV3LiquidityProvisionInRange.ts
51607
+ function uniswapV3LiquidityProvisionInRange(client, request, options) {
51608
+ return new APIPromise($do60(client, request, options));
51609
+ }
51610
+ async function $do60(client, request, options) {
51611
+ const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
51612
+ if (!parsed.ok) {
51613
+ return [parsed, { status: "invalid" }];
51614
+ }
51615
+ const payload = parsed.value;
51616
+ const body = null;
51617
+ const path = pathToFunc("/v0/uniswap/liquidity_provision/in_range/get")();
51618
+ const query = encodeFormQuery({
51619
+ chain: payload.chain,
51620
+ token_id: payload.token_id
51621
+ });
51622
+ const headers = new Headers(compactMap({
51623
+ Accept: "application/json"
51624
+ }));
51625
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
51626
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
51627
+ const requestSecurity = resolveGlobalSecurity(securityInput);
51628
+ const context = {
51629
+ options: client._options,
51630
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
51631
+ operationID: "uniswap_liquidity_provision_in_range",
51632
+ oAuth2Scopes: [],
51633
+ resolvedSecurity: requestSecurity,
51634
+ securitySource: client._options.apiKeyAuth,
51635
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
51636
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
51637
+ };
51638
+ const requestRes = client._createRequest(context, {
51639
+ security: requestSecurity,
51640
+ method: "GET",
51641
+ baseURL: options?.serverURL,
51642
+ path,
51643
+ headers,
51644
+ query,
51645
+ body,
51646
+ userAgent: client._options.userAgent,
51647
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
51648
+ }, options);
51649
+ if (!requestRes.ok) {
51650
+ return [requestRes, { status: "invalid" }];
51651
+ }
51652
+ const req = requestRes.value;
51653
+ const doResult = await client._do(req, {
51654
+ context,
51655
+ errorCodes: ["422", "4XX", "5XX"],
51656
+ retryConfig: context.retryConfig,
51657
+ retryCodes: context.retryCodes
51658
+ });
51659
+ if (!doResult.ok) {
51660
+ return [doResult, { status: "request-error", request: req }];
51661
+ }
51662
+ const response = doResult.value;
51663
+ const responseFields = {
51664
+ HttpMeta: { Response: response, Request: req }
51665
+ };
51666
+ const [result] = await match(json(200, UniswapCheckInRangeResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51667
+ if (!result.ok) {
51668
+ return [result, { status: "complete", request: req, response }];
51669
+ }
51670
+ return [result, { status: "complete", request: req, response }];
51671
+ }
51672
+ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
51673
+ init_encodings();
51674
+ init_matchers();
51675
+ init_primitives();
51676
+ init_schemas();
51677
+ init_security();
51678
+ init_url();
51679
+ init_components();
51680
+ init_errors2();
51681
+ init_operations();
51682
+ init_async();
51683
+ });
51684
+
51685
+ // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
51686
+ var args60, tool$uniswapV3LiquidityProvisionInRange;
51687
+ var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
51688
+ init_uniswapV3LiquidityProvisionInRange();
51689
+ init_operations();
51690
+ init_tools();
51691
+ args60 = {
51692
+ request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
51693
+ };
51694
+ tool$uniswapV3LiquidityProvisionInRange = {
51695
+ name: "uniswap-v3-liquidity-provision-in-range",
51696
+ description: `Check if LP is active.
51697
+
51698
+ This endpoint allows users to check whether a specific liquidity provider ()
51699
+ position is within the active tick range on the uniswap platform.
51700
+
51701
+ by providing the token id associated with the position, users can verify if the
51702
+ position is currently within the tick range where trading occurs. this information
51703
+ is essential for users to monitor the status of their lp positions and ensure that
51704
+ they are actively participating in the trading activities within the liquidity pool
51705
+ and earning trading fees.`,
51706
+ args: args60,
51707
+ tool: async (client, args61, ctx) => {
51708
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51709
+ if (!result.ok) {
51710
+ return {
51711
+ content: [{ type: "text", text: result.error.message }],
51712
+ isError: true
51713
+ };
51714
+ }
51715
+ const value = result.value;
51716
+ return formatResult(value, apiCall);
51717
+ }
51718
+ };
51719
+ });
51720
+
51721
+ // src/funcs/uniswapV3LiquidityProvisionMint.ts
51722
+ function uniswapV3LiquidityProvisionMint(client, request, options) {
51723
+ return new APIPromise($do61(client, request, options));
51724
+ }
51725
+ async function $do61(client, request, options) {
51726
+ const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51727
+ if (!parsed.ok) {
51728
+ return [parsed, { status: "invalid" }];
51729
+ }
51730
+ const payload = parsed.value;
51731
+ const body = encodeJSON("body", payload, { explode: true });
51732
+ const path = pathToFunc("/v0/uniswap/liquidity_provision/mint")();
51733
+ const headers = new Headers(compactMap({
51734
+ "Content-Type": "application/json",
51735
+ Accept: "application/json"
51736
+ }));
51737
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
51738
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
51739
+ const requestSecurity = resolveGlobalSecurity(securityInput);
51740
+ const context = {
51741
+ options: client._options,
51742
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
51743
+ operationID: "uniswap_liquidity_provision_mint",
51744
+ oAuth2Scopes: [],
51745
+ resolvedSecurity: requestSecurity,
51746
+ securitySource: client._options.apiKeyAuth,
51747
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
51748
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
51749
+ };
51750
+ const requestRes = client._createRequest(context, {
51751
+ security: requestSecurity,
51752
+ method: "POST",
51753
+ baseURL: options?.serverURL,
51754
+ path,
51755
+ headers,
51756
+ body,
51757
+ userAgent: client._options.userAgent,
51758
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
51759
+ }, options);
51760
+ if (!requestRes.ok) {
51761
+ return [requestRes, { status: "invalid" }];
51762
+ }
51763
+ const req = requestRes.value;
51764
+ const doResult = await client._do(req, {
51765
+ context,
51766
+ errorCodes: ["422", "4XX", "5XX"],
51767
+ retryConfig: context.retryConfig,
51768
+ retryCodes: context.retryCodes
51769
+ });
51770
+ if (!doResult.ok) {
51771
+ return [doResult, { status: "request-error", request: req }];
51772
+ }
51773
+ const response = doResult.value;
51774
+ const responseFields = {
51775
+ HttpMeta: { Response: response, Request: req }
51776
+ };
51777
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51778
+ if (!result.ok) {
51779
+ return [result, { status: "complete", request: req, response }];
51780
+ }
51781
+ return [result, { status: "complete", request: req, response }];
51782
+ }
51783
+ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
51784
+ init_encodings();
51785
+ init_matchers();
51786
+ init_primitives();
51787
+ init_schemas();
51788
+ init_security();
51789
+ init_url();
51790
+ init_components();
51791
+ init_errors2();
51792
+ init_async();
51793
+ });
51794
+
51795
+ // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
51796
+ var args61, tool$uniswapV3LiquidityProvisionMint;
51797
+ var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
51798
+ init_uniswapV3LiquidityProvisionMint();
51799
+ init_components();
51800
+ init_tools();
51801
+ args61 = {
51802
+ request: UniswapMintLiquidityProvisionRequest$inboundSchema
51803
+ };
51804
+ tool$uniswapV3LiquidityProvisionMint = {
51805
+ name: "uniswap-v3-liquidity-provision-mint",
51806
+ description: `Open a new LP position
51807
+
51808
+ This endpoint allows users to open a new Liquidity Provider (LP) position on the
51809
+ Uniswap platform.
51810
+
51811
+ By providing the necessary parameters, users can initiate a minting process to
51812
+ create a new LP token, which represents their stake in a specific liquidity pool.
51813
+ This operation is essential for users looking to participate in liquidity provision,
51814
+ enabling them to earn fees from trades that occur within the pool. The endpoint
51815
+ requires details such as the token pair, amount, and any additional parameters
51816
+ needed for the minting process.`,
51817
+ args: args61,
51818
+ tool: async (client, args62, ctx) => {
51819
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51820
+ if (!result.ok) {
51821
+ return {
51822
+ content: [{ type: "text", text: result.error.message }],
51823
+ isError: true
51824
+ };
51825
+ }
51826
+ const value = result.value;
51827
+ return formatResult(value, apiCall);
51828
+ }
51829
+ };
51830
+ });
51831
+
51832
+ // src/funcs/uniswapV3LiquidityProvisionPositions.ts
51833
+ function uniswapV3LiquidityProvisionPositions(client, request, options) {
51834
+ return new APIPromise($do62(client, request, options));
51835
+ }
51836
+ async function $do62(client, request, options) {
51837
+ const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
51838
+ if (!parsed.ok) {
51839
+ return [parsed, { status: "invalid" }];
51840
+ }
51841
+ const payload = parsed.value;
51842
+ const body = null;
51843
+ const path = pathToFunc("/v0/uniswap/liquidity_provision/positions/get")();
51844
+ const query = encodeFormQuery({
51845
+ chain: payload.chain,
51846
+ user: payload.user
51847
+ });
51848
+ const headers = new Headers(compactMap({
51849
+ Accept: "application/json"
51850
+ }));
51851
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
51852
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
51853
+ const requestSecurity = resolveGlobalSecurity(securityInput);
51854
+ const context = {
51855
+ options: client._options,
51856
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
51857
+ operationID: "uniswap_liquidity_provision_positions",
51858
+ oAuth2Scopes: [],
51859
+ resolvedSecurity: requestSecurity,
51860
+ securitySource: client._options.apiKeyAuth,
51861
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
51862
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
51863
+ };
51864
+ const requestRes = client._createRequest(context, {
51865
+ security: requestSecurity,
51866
+ method: "GET",
51867
+ baseURL: options?.serverURL,
51868
+ path,
51869
+ headers,
51870
+ query,
51871
+ body,
51872
+ userAgent: client._options.userAgent,
51873
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
51874
+ }, options);
51875
+ if (!requestRes.ok) {
51876
+ return [requestRes, { status: "invalid" }];
51877
+ }
51878
+ const req = requestRes.value;
51879
+ const doResult = await client._do(req, {
51880
+ context,
51881
+ errorCodes: ["422", "4XX", "5XX"],
51882
+ retryConfig: context.retryConfig,
51883
+ retryCodes: context.retryCodes
51884
+ });
51885
+ if (!doResult.ok) {
51886
+ return [doResult, { status: "request-error", request: req }];
51887
+ }
51888
+ const response = doResult.value;
51889
+ const responseFields = {
51890
+ HttpMeta: { Response: response, Request: req }
51891
+ };
51892
+ const [result] = await match(json(200, UniswapLPPositionsInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51893
+ if (!result.ok) {
51894
+ return [result, { status: "complete", request: req, response }];
51895
+ }
51896
+ return [result, { status: "complete", request: req, response }];
51897
+ }
51898
+ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
51899
+ init_encodings();
51900
+ init_matchers();
51901
+ init_primitives();
51902
+ init_schemas();
51903
+ init_security();
51904
+ init_url();
51905
+ init_components();
51906
+ init_errors2();
51907
+ init_operations();
51908
+ init_async();
51909
+ });
51910
+
51911
+ // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
51912
+ var args62, tool$uniswapV3LiquidityProvisionPositions;
51913
+ var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
51914
+ init_uniswapV3LiquidityProvisionPositions();
51915
+ init_operations();
51916
+ init_tools();
51917
+ args62 = {
51918
+ request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
51919
+ };
51920
+ tool$uniswapV3LiquidityProvisionPositions = {
51921
+ name: "uniswap-v3-liquidity-provision-positions",
51922
+ description: `List LP
51923
+
51924
+ This endpoint retrieves the number of Liquidity Provider (LP) positions
51396
51925
  associated with a specific sender address on the Uniswap platform.
51397
51926
 
51398
51927
  Users can query this endpoint to obtain detailed information about their LP
51399
51928
  positions, including the total number of positions and relevant metadata. This
51400
51929
  information is crucial for users to manage and analyze their liquidity provision
51401
51930
  activities effectively.`,
51402
- args: args59,
51403
- tool: async (client, args60, ctx) => {
51404
- const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51931
+ args: args62,
51932
+ tool: async (client, args63, ctx) => {
51933
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51405
51934
  if (!result.ok) {
51406
51935
  return {
51407
51936
  content: [{ type: "text", text: result.error.message }],
@@ -51416,9 +51945,9 @@ activities effectively.`,
51416
51945
 
51417
51946
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
51418
51947
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
51419
- return new APIPromise($do60(client, request, options));
51948
+ return new APIPromise($do63(client, request, options));
51420
51949
  }
51421
- async function $do60(client, request, options) {
51950
+ async function $do63(client, request, options) {
51422
51951
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51423
51952
  if (!parsed.ok) {
51424
51953
  return [parsed, { status: "invalid" }];
@@ -51489,12 +52018,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
51489
52018
  });
51490
52019
 
51491
52020
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
51492
- var args60, tool$uniswapV3LiquidityProvisionWithdraw;
52021
+ var args63, tool$uniswapV3LiquidityProvisionWithdraw;
51493
52022
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
51494
52023
  init_uniswapV3LiquidityProvisionWithdraw();
51495
52024
  init_components();
51496
52025
  init_tools();
51497
- args60 = {
52026
+ args63 = {
51498
52027
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
51499
52028
  };
51500
52029
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -51511,9 +52040,9 @@ pools or investments. The endpoint requires details such as the token pair, the
51511
52040
  amount to be withdrawn, and any additional parameters needed for the withdrawal
51512
52041
  process. Users should ensure they meet any protocol requirements or conditions
51513
52042
  before initiating a withdrawal to avoid potential issues or penalties.`,
51514
- args: args60,
51515
- tool: async (client, args61, ctx) => {
51516
- const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52043
+ args: args63,
52044
+ tool: async (client, args64, ctx) => {
52045
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51517
52046
  if (!result.ok) {
51518
52047
  return {
51519
52048
  content: [{ type: "text", text: result.error.message }],
@@ -51528,9 +52057,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
51528
52057
 
51529
52058
  // src/funcs/uniswapV3PoolPrice.ts
51530
52059
  function uniswapV3PoolPrice(client, request, options) {
51531
- return new APIPromise($do61(client, request, options));
52060
+ return new APIPromise($do64(client, request, options));
51532
52061
  }
51533
- async function $do61(client, request, options) {
52062
+ async function $do64(client, request, options) {
51534
52063
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
51535
52064
  if (!parsed.ok) {
51536
52065
  return [parsed, { status: "invalid" }];
@@ -51608,12 +52137,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
51608
52137
  });
51609
52138
 
51610
52139
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
51611
- var args61, tool$uniswapV3PoolPrice;
52140
+ var args64, tool$uniswapV3PoolPrice;
51612
52141
  var init_uniswapV3PoolPrice2 = __esm(() => {
51613
52142
  init_uniswapV3PoolPrice();
51614
52143
  init_operations();
51615
52144
  init_tools();
51616
- args61 = {
52145
+ args64 = {
51617
52146
  request: UniswapPoolPriceRequest$inboundSchema
51618
52147
  };
51619
52148
  tool$uniswapV3PoolPrice = {
@@ -51623,9 +52152,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
51623
52152
  This endpoint calculates the price of a token in a Uniswap pool.
51624
52153
 
51625
52154
  The price is calculated based on the current pool state and the specified fee tier.`,
51626
- args: args61,
51627
- tool: async (client, args62, ctx) => {
51628
- const [result, apiCall] = await uniswapV3PoolPrice(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52155
+ args: args64,
52156
+ tool: async (client, args65, ctx) => {
52157
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51629
52158
  if (!result.ok) {
51630
52159
  return {
51631
52160
  content: [{ type: "text", text: result.error.message }],
@@ -51640,9 +52169,9 @@ The price is calculated based on the current pool state and the specified fee ti
51640
52169
 
51641
52170
  // src/funcs/uniswapV3QuoteBuyExactly.ts
51642
52171
  function uniswapV3QuoteBuyExactly(client, request, options) {
51643
- return new APIPromise($do62(client, request, options));
52172
+ return new APIPromise($do65(client, request, options));
51644
52173
  }
51645
- async function $do62(client, request, options) {
52174
+ async function $do65(client, request, options) {
51646
52175
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
51647
52176
  if (!parsed.ok) {
51648
52177
  return [parsed, { status: "invalid" }];
@@ -51721,12 +52250,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
51721
52250
  });
51722
52251
 
51723
52252
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
51724
- var args62, tool$uniswapV3QuoteBuyExactly;
52253
+ var args65, tool$uniswapV3QuoteBuyExactly;
51725
52254
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
51726
52255
  init_uniswapV3QuoteBuyExactly();
51727
52256
  init_operations();
51728
52257
  init_tools();
51729
- args62 = {
52258
+ args65 = {
51730
52259
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
51731
52260
  };
51732
52261
  tool$uniswapV3QuoteBuyExactly = {
@@ -51738,9 +52267,9 @@ specified amount of output tokens from a Uniswap pool.
51738
52267
 
51739
52268
  It also provides the resulting price after the transaction. The calculation takes
51740
52269
  into account the current pool state and the specified fee tier.`,
51741
- args: args62,
51742
- tool: async (client, args63, ctx) => {
51743
- const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52270
+ args: args65,
52271
+ tool: async (client, args66, ctx) => {
52272
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51744
52273
  if (!result.ok) {
51745
52274
  return {
51746
52275
  content: [{ type: "text", text: result.error.message }],
@@ -51755,9 +52284,9 @@ into account the current pool state and the specified fee tier.`,
51755
52284
 
51756
52285
  // src/funcs/uniswapV3QuoteSellExactly.ts
51757
52286
  function uniswapV3QuoteSellExactly(client, request, options) {
51758
- return new APIPromise($do63(client, request, options));
52287
+ return new APIPromise($do66(client, request, options));
51759
52288
  }
51760
- async function $do63(client, request, options) {
52289
+ async function $do66(client, request, options) {
51761
52290
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
51762
52291
  if (!parsed.ok) {
51763
52292
  return [parsed, { status: "invalid" }];
@@ -51836,12 +52365,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
51836
52365
  });
51837
52366
 
51838
52367
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
51839
- var args63, tool$uniswapV3QuoteSellExactly;
52368
+ var args66, tool$uniswapV3QuoteSellExactly;
51840
52369
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
51841
52370
  init_uniswapV3QuoteSellExactly();
51842
52371
  init_operations();
51843
52372
  init_tools();
51844
- args63 = {
52373
+ args66 = {
51845
52374
  request: UniswapQuoteSellExactlyRequest$inboundSchema
51846
52375
  };
51847
52376
  tool$uniswapV3QuoteSellExactly = {
@@ -51853,9 +52382,9 @@ specified amount of output tokens from a Uniswap pool.
51853
52382
 
51854
52383
  It also provides the resulting price after the transaction. The calculation takes
51855
52384
  into account the current pool state and the specified fee tier.`,
51856
- args: args63,
51857
- tool: async (client, args64, ctx) => {
51858
- const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52385
+ args: args66,
52386
+ tool: async (client, args67, ctx) => {
52387
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51859
52388
  if (!result.ok) {
51860
52389
  return {
51861
52390
  content: [{ type: "text", text: result.error.message }],
@@ -51870,9 +52399,9 @@ into account the current pool state and the specified fee tier.`,
51870
52399
 
51871
52400
  // src/funcs/uniswapV3SwapBuyExactly.ts
51872
52401
  function uniswapV3SwapBuyExactly(client, request, options) {
51873
- return new APIPromise($do64(client, request, options));
52402
+ return new APIPromise($do67(client, request, options));
51874
52403
  }
51875
- async function $do64(client, request, options) {
52404
+ async function $do67(client, request, options) {
51876
52405
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
51877
52406
  if (!parsed.ok) {
51878
52407
  return [parsed, { status: "invalid" }];
@@ -51943,12 +52472,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
51943
52472
  });
51944
52473
 
51945
52474
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
51946
- var args64, tool$uniswapV3SwapBuyExactly;
52475
+ var args67, tool$uniswapV3SwapBuyExactly;
51947
52476
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
51948
52477
  init_uniswapV3SwapBuyExactly();
51949
52478
  init_components();
51950
52479
  init_tools();
51951
- args64 = {
52480
+ args67 = {
51952
52481
  request: UniswapBuyExactlyRequest$inboundSchema
51953
52482
  };
51954
52483
  tool$uniswapV3SwapBuyExactly = {
@@ -51962,9 +52491,9 @@ The transaction is executed on the specified blockchain network, and the user mu
51962
52491
  provide the necessary transaction details, including the token to buy, the token to
51963
52492
  pay with, and the exact amount to receive. If the token being paid with is WETH and
51964
52493
  needs to be wrapped, the appropriate amount will be wrapped automatically.`,
51965
- args: args64,
51966
- tool: async (client, args65, ctx) => {
51967
- const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52494
+ args: args67,
52495
+ tool: async (client, args68, ctx) => {
52496
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51968
52497
  if (!result.ok) {
51969
52498
  return {
51970
52499
  content: [{ type: "text", text: result.error.message }],
@@ -51979,9 +52508,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
51979
52508
 
51980
52509
  // src/funcs/uniswapV3SwapSellExactly.ts
51981
52510
  function uniswapV3SwapSellExactly(client, request, options) {
51982
- return new APIPromise($do65(client, request, options));
52511
+ return new APIPromise($do68(client, request, options));
51983
52512
  }
51984
- async function $do65(client, request, options) {
52513
+ async function $do68(client, request, options) {
51985
52514
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
51986
52515
  if (!parsed.ok) {
51987
52516
  return [parsed, { status: "invalid" }];
@@ -52052,12 +52581,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
52052
52581
  });
52053
52582
 
52054
52583
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
52055
- var args65, tool$uniswapV3SwapSellExactly;
52584
+ var args68, tool$uniswapV3SwapSellExactly;
52056
52585
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
52057
52586
  init_uniswapV3SwapSellExactly();
52058
52587
  init_components();
52059
52588
  init_tools();
52060
- args65 = {
52589
+ args68 = {
52061
52590
  request: UniswapSellExactlyRequest$inboundSchema
52062
52591
  };
52063
52592
  tool$uniswapV3SwapSellExactly = {
@@ -52071,9 +52600,9 @@ The transaction is executed on the specified blockchain network, and the user mu
52071
52600
  provide the necessary transaction details, including the token to sell, the token to
52072
52601
  receive, and the amount to sell. If the token being sold is WETH and needs to be
52073
52602
  wrapped, the appropriate amount will be wrapped automatically.`,
52074
- args: args65,
52075
- tool: async (client, args66, ctx) => {
52076
- const [result, apiCall] = await uniswapV3SwapSellExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52603
+ args: args68,
52604
+ tool: async (client, args69, ctx) => {
52605
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52077
52606
  if (!result.ok) {
52078
52607
  return {
52079
52608
  content: [{ type: "text", text: result.error.message }],
@@ -52088,9 +52617,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
52088
52617
 
52089
52618
  // src/funcs/universalAllowance.ts
52090
52619
  function universalAllowance(client, request, options) {
52091
- return new APIPromise($do66(client, request, options));
52620
+ return new APIPromise($do69(client, request, options));
52092
52621
  }
52093
- async function $do66(client, request, options) {
52622
+ async function $do69(client, request, options) {
52094
52623
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
52095
52624
  if (!parsed.ok) {
52096
52625
  return [parsed, { status: "invalid" }];
@@ -52168,12 +52697,12 @@ var init_universalAllowance = __esm(() => {
52168
52697
  });
52169
52698
 
52170
52699
  // src/mcp-server/tools/universalAllowance.ts
52171
- var args66, tool$universalAllowance;
52700
+ var args69, tool$universalAllowance;
52172
52701
  var init_universalAllowance2 = __esm(() => {
52173
52702
  init_universalAllowance();
52174
52703
  init_operations();
52175
52704
  init_tools();
52176
- args66 = {
52705
+ args69 = {
52177
52706
  request: GenericAllowanceRequest$inboundSchema
52178
52707
  };
52179
52708
  tool$universalAllowance = {
@@ -52187,9 +52716,9 @@ tokens on their behalf.
52187
52716
  This is a crucial step before engaging in any transactions or operations within
52188
52717
  these protocols, ensuring that the protocol has the necessary permissions to manage
52189
52718
  the user's tokens securely and efficiently.`,
52190
- args: args66,
52191
- tool: async (client, args67, ctx) => {
52192
- const [result, apiCall] = await universalAllowance(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52719
+ args: args69,
52720
+ tool: async (client, args70, ctx) => {
52721
+ const [result, apiCall] = await universalAllowance(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52193
52722
  if (!result.ok) {
52194
52723
  return {
52195
52724
  content: [{ type: "text", text: result.error.message }],
@@ -52204,9 +52733,9 @@ the user's tokens securely and efficiently.`,
52204
52733
 
52205
52734
  // src/funcs/universalAllowanceSet.ts
52206
52735
  function universalAllowanceSet(client, request, options) {
52207
- return new APIPromise($do67(client, request, options));
52736
+ return new APIPromise($do70(client, request, options));
52208
52737
  }
52209
- async function $do67(client, request, options) {
52738
+ async function $do70(client, request, options) {
52210
52739
  const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
52211
52740
  if (!parsed.ok) {
52212
52741
  return [parsed, { status: "invalid" }];
@@ -52277,12 +52806,12 @@ var init_universalAllowanceSet = __esm(() => {
52277
52806
  });
52278
52807
 
52279
52808
  // src/mcp-server/tools/universalAllowanceSet.ts
52280
- var args67, tool$universalAllowanceSet;
52809
+ var args70, tool$universalAllowanceSet;
52281
52810
  var init_universalAllowanceSet2 = __esm(() => {
52282
52811
  init_universalAllowanceSet();
52283
52812
  init_components();
52284
52813
  init_tools();
52285
- args67 = {
52814
+ args70 = {
52286
52815
  request: IncreaseAllowanceRequest$inboundSchema
52287
52816
  };
52288
52817
  tool$universalAllowanceSet = {
@@ -52297,9 +52826,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
52297
52826
  This operation is crucial for ensuring that the protocol can manage the user's
52298
52827
  tokens securely and efficiently, enabling seamless transactions and operations
52299
52828
  within the DeFi ecosystem.`,
52300
- args: args67,
52301
- tool: async (client, args68, ctx) => {
52302
- const [result, apiCall] = await universalAllowanceSet(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52829
+ args: args70,
52830
+ tool: async (client, args71, ctx) => {
52831
+ const [result, apiCall] = await universalAllowanceSet(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52303
52832
  if (!result.ok) {
52304
52833
  return {
52305
52834
  content: [{ type: "text", text: result.error.message }],
@@ -52314,9 +52843,9 @@ within the DeFi ecosystem.`,
52314
52843
 
52315
52844
  // src/funcs/universalEns.ts
52316
52845
  function universalEns(client, request, options) {
52317
- return new APIPromise($do68(client, request, options));
52846
+ return new APIPromise($do71(client, request, options));
52318
52847
  }
52319
- async function $do68(client, request, options) {
52848
+ async function $do71(client, request, options) {
52320
52849
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
52321
52850
  if (!parsed.ok) {
52322
52851
  return [parsed, { status: "invalid" }];
@@ -52392,12 +52921,12 @@ var init_universalEns = __esm(() => {
52392
52921
  });
52393
52922
 
52394
52923
  // src/mcp-server/tools/universalEns.ts
52395
- var args68, tool$universalEns;
52924
+ var args71, tool$universalEns;
52396
52925
  var init_universalEns2 = __esm(() => {
52397
52926
  init_universalEns();
52398
52927
  init_operations();
52399
52928
  init_tools();
52400
- args68 = {
52929
+ args71 = {
52401
52930
  request: GenericEnsRequest$inboundSchema
52402
52931
  };
52403
52932
  tool$universalEns = {
@@ -52408,9 +52937,9 @@ An ENS name is a string ending in \`.eth\`.
52408
52937
 
52409
52938
  E.g. \`vitalik.eth\`. This endpoint can be used to
52410
52939
  query the actual ethereum wallet address behind the ENS name.`,
52411
- args: args68,
52412
- tool: async (client, args69, ctx) => {
52413
- const [result, apiCall] = await universalEns(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52940
+ args: args71,
52941
+ tool: async (client, args72, ctx) => {
52942
+ const [result, apiCall] = await universalEns(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52414
52943
  if (!result.ok) {
52415
52944
  return {
52416
52945
  content: [{ type: "text", text: result.error.message }],
@@ -52425,9 +52954,9 @@ query the actual ethereum wallet address behind the ENS name.`,
52425
52954
 
52426
52955
  // src/funcs/universalPortfolio.ts
52427
52956
  function universalPortfolio(client, request, options) {
52428
- return new APIPromise($do69(client, request, options));
52957
+ return new APIPromise($do72(client, request, options));
52429
52958
  }
52430
- async function $do69(client, request, options) {
52959
+ async function $do72(client, request, options) {
52431
52960
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
52432
52961
  if (!parsed.ok) {
52433
52962
  return [parsed, { status: "invalid" }];
@@ -52503,12 +53032,12 @@ var init_universalPortfolio = __esm(() => {
52503
53032
  });
52504
53033
 
52505
53034
  // src/mcp-server/tools/universalPortfolio.ts
52506
- var args69, tool$universalPortfolio;
53035
+ var args72, tool$universalPortfolio;
52507
53036
  var init_universalPortfolio2 = __esm(() => {
52508
53037
  init_universalPortfolio();
52509
53038
  init_operations();
52510
53039
  init_tools();
52511
- args69 = {
53040
+ args72 = {
52512
53041
  request: GenericPortfolioRequest$inboundSchema
52513
53042
  };
52514
53043
  tool$universalPortfolio = {
@@ -52519,9 +53048,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
52519
53048
 
52520
53049
  This includes the total value of the portfolio in USD and a breakdown of token
52521
53050
  balances, including their respective values and quantities.`,
52522
- args: args69,
52523
- tool: async (client, args70, ctx) => {
52524
- const [result, apiCall] = await universalPortfolio(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53051
+ args: args72,
53052
+ tool: async (client, args73, ctx) => {
53053
+ const [result, apiCall] = await universalPortfolio(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52525
53054
  if (!result.ok) {
52526
53055
  return {
52527
53056
  content: [{ type: "text", text: result.error.message }],
@@ -52536,9 +53065,9 @@ balances, including their respective values and quantities.`,
52536
53065
 
52537
53066
  // src/funcs/universalSupportedTokens.ts
52538
53067
  function universalSupportedTokens(client, request, options) {
52539
- return new APIPromise($do70(client, request, options));
53068
+ return new APIPromise($do73(client, request, options));
52540
53069
  }
52541
- async function $do70(client, request, options) {
53070
+ async function $do73(client, request, options) {
52542
53071
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
52543
53072
  if (!parsed.ok) {
52544
53073
  return [parsed, { status: "invalid" }];
@@ -52613,12 +53142,12 @@ var init_universalSupportedTokens = __esm(() => {
52613
53142
  });
52614
53143
 
52615
53144
  // src/mcp-server/tools/universalSupportedTokens.ts
52616
- var args70, tool$universalSupportedTokens;
53145
+ var args73, tool$universalSupportedTokens;
52617
53146
  var init_universalSupportedTokens2 = __esm(() => {
52618
53147
  init_universalSupportedTokens();
52619
53148
  init_operations();
52620
53149
  init_tools();
52621
- args70 = {
53150
+ args73 = {
52622
53151
  request: GenericSupportedTokensRequest$inboundSchema
52623
53152
  };
52624
53153
  tool$universalSupportedTokens = {
@@ -52626,9 +53155,9 @@ var init_universalSupportedTokens2 = __esm(() => {
52626
53155
  description: `List supported tokens
52627
53156
 
52628
53157
  Get the list of supported tokens on a chain by the Compass API.`,
52629
- args: args70,
52630
- tool: async (client, args71, ctx) => {
52631
- const [result, apiCall] = await universalSupportedTokens(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53158
+ args: args73,
53159
+ tool: async (client, args74, ctx) => {
53160
+ const [result, apiCall] = await universalSupportedTokens(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52632
53161
  if (!result.ok) {
52633
53162
  return {
52634
53163
  content: [{ type: "text", text: result.error.message }],
@@ -52643,9 +53172,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
52643
53172
 
52644
53173
  // src/funcs/universalUnwrapWeth.ts
52645
53174
  function universalUnwrapWeth(client, request, options) {
52646
- return new APIPromise($do71(client, request, options));
53175
+ return new APIPromise($do74(client, request, options));
52647
53176
  }
52648
- async function $do71(client, request, options) {
53177
+ async function $do74(client, request, options) {
52649
53178
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
52650
53179
  if (!parsed.ok) {
52651
53180
  return [parsed, { status: "invalid" }];
@@ -52716,12 +53245,12 @@ var init_universalUnwrapWeth = __esm(() => {
52716
53245
  });
52717
53246
 
52718
53247
  // src/mcp-server/tools/universalUnwrapWeth.ts
52719
- var args71, tool$universalUnwrapWeth;
53248
+ var args74, tool$universalUnwrapWeth;
52720
53249
  var init_universalUnwrapWeth2 = __esm(() => {
52721
53250
  init_universalUnwrapWeth();
52722
53251
  init_components();
52723
53252
  init_tools();
52724
- args71 = {
53253
+ args74 = {
52725
53254
  request: UnwrapWethRequest$inboundSchema
52726
53255
  };
52727
53256
  tool$universalUnwrapWeth = {
@@ -52730,9 +53259,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
52730
53259
 
52731
53260
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
52732
53261
  can be used for gas and other native purposes.`,
52733
- args: args71,
52734
- tool: async (client, args72, ctx) => {
52735
- const [result, apiCall] = await universalUnwrapWeth(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53262
+ args: args74,
53263
+ tool: async (client, args75, ctx) => {
53264
+ const [result, apiCall] = await universalUnwrapWeth(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52736
53265
  if (!result.ok) {
52737
53266
  return {
52738
53267
  content: [{ type: "text", text: result.error.message }],
@@ -52747,9 +53276,9 @@ can be used for gas and other native purposes.`,
52747
53276
 
52748
53277
  // src/funcs/universalVisualizePortfolio.ts
52749
53278
  function universalVisualizePortfolio(client, request, options) {
52750
- return new APIPromise($do72(client, request, options));
53279
+ return new APIPromise($do75(client, request, options));
52751
53280
  }
52752
- async function $do72(client, request, options) {
53281
+ async function $do75(client, request, options) {
52753
53282
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
52754
53283
  if (!parsed.ok) {
52755
53284
  return [parsed, { status: "invalid" }];
@@ -52825,12 +53354,12 @@ var init_universalVisualizePortfolio = __esm(() => {
52825
53354
  });
52826
53355
 
52827
53356
  // src/mcp-server/tools/universalVisualizePortfolio.ts
52828
- var args72, tool$universalVisualizePortfolio;
53357
+ var args75, tool$universalVisualizePortfolio;
52829
53358
  var init_universalVisualizePortfolio2 = __esm(() => {
52830
53359
  init_universalVisualizePortfolio();
52831
53360
  init_operations();
52832
53361
  init_tools();
52833
- args72 = {
53362
+ args75 = {
52834
53363
  request: GenericVisualizePortfolioRequest$inboundSchema
52835
53364
  };
52836
53365
  tool$universalVisualizePortfolio = {
@@ -52842,9 +53371,9 @@ Generate a visual representation of the token portfolio for a wallet address.
52842
53371
  The response is an SVG image of a pie chart depicting the relative distribution of
52843
53372
  tokens held, colored and labeled with token symbols, percentages and token values in
52844
53373
  USD.`,
52845
- args: args72,
52846
- tool: async (client, args73, ctx) => {
52847
- const [result, apiCall] = await universalVisualizePortfolio(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53374
+ args: args75,
53375
+ tool: async (client, args76, ctx) => {
53376
+ const [result, apiCall] = await universalVisualizePortfolio(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52848
53377
  if (!result.ok) {
52849
53378
  return {
52850
53379
  content: [{ type: "text", text: result.error.message }],
@@ -52859,9 +53388,9 @@ USD.`,
52859
53388
 
52860
53389
  // src/funcs/universalWrapEth.ts
52861
53390
  function universalWrapEth(client, request, options) {
52862
- return new APIPromise($do73(client, request, options));
53391
+ return new APIPromise($do76(client, request, options));
52863
53392
  }
52864
- async function $do73(client, request, options) {
53393
+ async function $do76(client, request, options) {
52865
53394
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
52866
53395
  if (!parsed.ok) {
52867
53396
  return [parsed, { status: "invalid" }];
@@ -52932,12 +53461,12 @@ var init_universalWrapEth = __esm(() => {
52932
53461
  });
52933
53462
 
52934
53463
  // src/mcp-server/tools/universalWrapEth.ts
52935
- var args73, tool$universalWrapEth;
53464
+ var args76, tool$universalWrapEth;
52936
53465
  var init_universalWrapEth2 = __esm(() => {
52937
53466
  init_universalWrapEth();
52938
53467
  init_components();
52939
53468
  init_tools();
52940
- args73 = {
53469
+ args76 = {
52941
53470
  request: WrapEthRequest$inboundSchema
52942
53471
  };
52943
53472
  tool$universalWrapEth = {
@@ -52946,9 +53475,9 @@ var init_universalWrapEth2 = __esm(() => {
52946
53475
 
52947
53476
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
52948
53477
  it to be traded on DeFi protocols.`,
52949
- args: args73,
52950
- tool: async (client, args74, ctx) => {
52951
- const [result, apiCall] = await universalWrapEth(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53478
+ args: args76,
53479
+ tool: async (client, args77, ctx) => {
53480
+ const [result, apiCall] = await universalWrapEth(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52952
53481
  if (!result.ok) {
52953
53482
  return {
52954
53483
  content: [{ type: "text", text: result.error.message }],
@@ -52965,7 +53494,7 @@ it to be traded on DeFi protocols.`,
52965
53494
  function createMCPServer(deps) {
52966
53495
  const server = new McpServer({
52967
53496
  name: "CompassApiSDK",
52968
- version: "0.5.13"
53497
+ version: "0.5.15"
52969
53498
  });
52970
53499
  const client = new CompassApiSDKCore({
52971
53500
  apiKeyAuth: deps.apiKeyAuth,
@@ -53051,6 +53580,9 @@ function createMCPServer(deps) {
53051
53580
  tool(tool$pendleRedeemYield);
53052
53581
  tool(tool$pendleAddLiquidity);
53053
53582
  tool(tool$pendleRemoveLiquidity);
53583
+ tool(tool$transactionBatchingAuthorization);
53584
+ tool(tool$transactionBatchingExecute);
53585
+ tool(tool$transactionBatchingAaveLoop);
53054
53586
  tool(tool$smartAccountAccountBatchedUserOperations);
53055
53587
  return server;
53056
53588
  }
@@ -53114,6 +53646,9 @@ var init_server2 = __esm(() => {
53114
53646
  init_tokenBalance2();
53115
53647
  init_tokenPrice2();
53116
53648
  init_tokenTransfer2();
53649
+ init_transactionBatchingAaveLoop2();
53650
+ init_transactionBatchingAuthorization2();
53651
+ init_transactionBatchingExecute2();
53117
53652
  init_uniswapV3LiquidityProvisionIncrease2();
53118
53653
  init_uniswapV3LiquidityProvisionInRange2();
53119
53654
  init_uniswapV3LiquidityProvisionMint2();
@@ -54322,7 +54857,7 @@ var routes = an({
54322
54857
  var app = He(routes, {
54323
54858
  name: "mcp",
54324
54859
  versionInfo: {
54325
- currentVersion: "0.5.13"
54860
+ currentVersion: "0.5.15"
54326
54861
  }
54327
54862
  });
54328
54863
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -54330,5 +54865,5 @@ export {
54330
54865
  app
54331
54866
  };
54332
54867
 
54333
- //# debugId=A09AEF55DB6A972464756E2164756E21
54868
+ //# debugId=076052EF8D7DA8D864756E2164756E21
54334
54869
  //# sourceMappingURL=mcp-server.js.map