@compass-labs/api-sdk 0.5.21 → 0.5.23

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 (249) hide show
  1. package/README.md +7 -2
  2. package/bin/mcp-server.js +951 -820
  3. package/bin/mcp-server.js.map +24 -22
  4. package/dist/commonjs/funcs/universalAllowance.js +1 -1
  5. package/dist/commonjs/funcs/universalAllowance.js.map +1 -1
  6. package/dist/commonjs/funcs/universalAllowanceSet.d.ts +1 -1
  7. package/dist/commonjs/funcs/universalAllowanceSet.d.ts.map +1 -1
  8. package/dist/commonjs/funcs/universalAllowanceSet.js +1 -1
  9. package/dist/commonjs/funcs/universalAllowanceSet.js.map +1 -1
  10. package/dist/commonjs/funcs/vaultsERC4626Deposit.d.ts +20 -0
  11. package/dist/commonjs/funcs/vaultsERC4626Deposit.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/{morphoAllowance.js → vaultsERC4626Deposit.js} +9 -11
  13. package/dist/commonjs/funcs/vaultsERC4626Deposit.js.map +1 -0
  14. package/dist/commonjs/funcs/vaultsERC4626Withdraw.d.ts +22 -0
  15. package/dist/commonjs/funcs/vaultsERC4626Withdraw.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/vaultsERC4626Withdraw.js +122 -0
  17. package/dist/commonjs/funcs/vaultsERC4626Withdraw.js.map +1 -0
  18. package/dist/commonjs/lib/config.d.ts +2 -2
  19. package/dist/commonjs/lib/config.js +2 -2
  20. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  21. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  22. package/dist/commonjs/mcp-server/server.js +5 -3
  23. package/dist/commonjs/mcp-server/server.js.map +1 -1
  24. package/dist/commonjs/mcp-server/tools/universalAllowanceSet.d.ts +1 -1
  25. package/dist/commonjs/mcp-server/tools/universalAllowanceSet.js +1 -1
  26. package/dist/commonjs/mcp-server/tools/universalAllowanceSet.js.map +1 -1
  27. package/dist/commonjs/mcp-server/tools/vaultsERC4626Deposit.d.ts +8 -0
  28. package/dist/commonjs/mcp-server/tools/vaultsERC4626Deposit.d.ts.map +1 -0
  29. package/dist/commonjs/mcp-server/tools/{morphoAllowance.js → vaultsERC4626Deposit.js} +10 -12
  30. package/dist/commonjs/mcp-server/tools/vaultsERC4626Deposit.js.map +1 -0
  31. package/dist/commonjs/mcp-server/tools/vaultsERC4626Withdraw.d.ts +8 -0
  32. package/dist/commonjs/mcp-server/tools/vaultsERC4626Withdraw.d.ts.map +1 -0
  33. package/dist/commonjs/mcp-server/tools/vaultsERC4626Withdraw.js +68 -0
  34. package/dist/commonjs/mcp-server/tools/vaultsERC4626Withdraw.js.map +1 -0
  35. package/dist/commonjs/models/components/index.d.ts +4 -4
  36. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/index.js +4 -4
  38. package/dist/commonjs/models/components/index.js.map +1 -1
  39. package/dist/commonjs/models/components/setallowanceparams.d.ts +173 -0
  40. package/dist/commonjs/models/components/setallowanceparams.d.ts.map +1 -0
  41. package/dist/commonjs/models/components/setallowanceparams.js +185 -0
  42. package/dist/commonjs/models/components/setallowanceparams.js.map +1 -0
  43. package/dist/commonjs/models/components/setallowancerequest.d.ts +184 -0
  44. package/dist/commonjs/models/components/setallowancerequest.d.ts.map +1 -0
  45. package/dist/commonjs/models/components/setallowancerequest.js +193 -0
  46. package/dist/commonjs/models/components/setallowancerequest.js.map +1 -0
  47. package/dist/commonjs/models/components/useroperation.d.ts +18 -18
  48. package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
  49. package/dist/commonjs/models/components/useroperation.js +26 -14
  50. package/dist/commonjs/models/components/useroperation.js.map +1 -1
  51. package/dist/commonjs/models/components/vaultdepositrequest.d.ts +79 -0
  52. package/dist/commonjs/models/components/vaultdepositrequest.d.ts.map +1 -0
  53. package/dist/commonjs/models/components/vaultdepositrequest.js +114 -0
  54. package/dist/commonjs/models/components/vaultdepositrequest.js.map +1 -0
  55. package/dist/commonjs/models/components/vaultwithdrawrequest.d.ts +55 -0
  56. package/dist/commonjs/models/components/vaultwithdrawrequest.d.ts.map +1 -0
  57. package/dist/commonjs/models/components/vaultwithdrawrequest.js +91 -0
  58. package/dist/commonjs/models/components/vaultwithdrawrequest.js.map +1 -0
  59. package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/aavehistoricaltransactions.js +4 -4
  61. package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -1
  62. package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
  63. package/dist/commonjs/models/operations/aaveuserpositionpertoken.js +4 -4
  64. package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
  65. package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
  66. package/dist/commonjs/models/operations/aaveuserpositionsummary.js +4 -4
  67. package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
  68. package/dist/commonjs/models/operations/genericallowance.d.ts +32 -14
  69. package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
  70. package/dist/commonjs/models/operations/genericallowance.js +36 -25
  71. package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
  72. package/dist/commonjs/sdk/morpho.d.ts +0 -11
  73. package/dist/commonjs/sdk/morpho.d.ts.map +1 -1
  74. package/dist/commonjs/sdk/morpho.js +0 -14
  75. package/dist/commonjs/sdk/morpho.js.map +1 -1
  76. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  77. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  78. package/dist/commonjs/sdk/sdk.js +4 -0
  79. package/dist/commonjs/sdk/sdk.js.map +1 -1
  80. package/dist/commonjs/sdk/universal.d.ts +1 -1
  81. package/dist/commonjs/sdk/universal.d.ts.map +1 -1
  82. package/dist/commonjs/sdk/universal.js.map +1 -1
  83. package/dist/commonjs/sdk/vaultserc4626.d.ts +25 -0
  84. package/dist/commonjs/sdk/vaultserc4626.d.ts.map +1 -0
  85. package/dist/commonjs/sdk/vaultserc4626.js +38 -0
  86. package/dist/commonjs/sdk/vaultserc4626.js.map +1 -0
  87. package/dist/esm/funcs/universalAllowance.js +1 -1
  88. package/dist/esm/funcs/universalAllowance.js.map +1 -1
  89. package/dist/esm/funcs/universalAllowanceSet.d.ts +1 -1
  90. package/dist/esm/funcs/universalAllowanceSet.d.ts.map +1 -1
  91. package/dist/esm/funcs/universalAllowanceSet.js +1 -1
  92. package/dist/esm/funcs/universalAllowanceSet.js.map +1 -1
  93. package/dist/esm/funcs/vaultsERC4626Deposit.d.ts +20 -0
  94. package/dist/esm/funcs/vaultsERC4626Deposit.d.ts.map +1 -0
  95. package/dist/esm/funcs/{morphoAllowance.js → vaultsERC4626Deposit.js} +8 -10
  96. package/dist/esm/funcs/vaultsERC4626Deposit.js.map +1 -0
  97. package/dist/esm/funcs/vaultsERC4626Withdraw.d.ts +22 -0
  98. package/dist/esm/funcs/vaultsERC4626Withdraw.d.ts.map +1 -0
  99. package/dist/esm/funcs/vaultsERC4626Withdraw.js +86 -0
  100. package/dist/esm/funcs/vaultsERC4626Withdraw.js.map +1 -0
  101. package/dist/esm/lib/config.d.ts +2 -2
  102. package/dist/esm/lib/config.js +2 -2
  103. package/dist/esm/mcp-server/mcp-server.js +1 -1
  104. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  105. package/dist/esm/mcp-server/server.js +5 -3
  106. package/dist/esm/mcp-server/server.js.map +1 -1
  107. package/dist/esm/mcp-server/tools/universalAllowanceSet.d.ts +1 -1
  108. package/dist/esm/mcp-server/tools/universalAllowanceSet.js +1 -1
  109. package/dist/esm/mcp-server/tools/universalAllowanceSet.js.map +1 -1
  110. package/dist/esm/mcp-server/tools/vaultsERC4626Deposit.d.ts +8 -0
  111. package/dist/esm/mcp-server/tools/vaultsERC4626Deposit.d.ts.map +1 -0
  112. package/dist/esm/mcp-server/tools/vaultsERC4626Deposit.js +30 -0
  113. package/dist/esm/mcp-server/tools/vaultsERC4626Deposit.js.map +1 -0
  114. package/dist/esm/mcp-server/tools/vaultsERC4626Withdraw.d.ts +8 -0
  115. package/dist/esm/mcp-server/tools/vaultsERC4626Withdraw.d.ts.map +1 -0
  116. package/dist/esm/mcp-server/tools/vaultsERC4626Withdraw.js +32 -0
  117. package/dist/esm/mcp-server/tools/vaultsERC4626Withdraw.js.map +1 -0
  118. package/dist/esm/models/components/index.d.ts +4 -4
  119. package/dist/esm/models/components/index.d.ts.map +1 -1
  120. package/dist/esm/models/components/index.js +4 -4
  121. package/dist/esm/models/components/index.js.map +1 -1
  122. package/dist/esm/models/components/setallowanceparams.d.ts +173 -0
  123. package/dist/esm/models/components/setallowanceparams.d.ts.map +1 -0
  124. package/dist/esm/models/components/setallowanceparams.js +141 -0
  125. package/dist/esm/models/components/setallowanceparams.js.map +1 -0
  126. package/dist/esm/models/components/setallowancerequest.d.ts +184 -0
  127. package/dist/esm/models/components/setallowancerequest.d.ts.map +1 -0
  128. package/dist/esm/models/components/setallowancerequest.js +149 -0
  129. package/dist/esm/models/components/setallowancerequest.js.map +1 -0
  130. package/dist/esm/models/components/useroperation.d.ts +18 -18
  131. package/dist/esm/models/components/useroperation.d.ts.map +1 -1
  132. package/dist/esm/models/components/useroperation.js +26 -14
  133. package/dist/esm/models/components/useroperation.js.map +1 -1
  134. package/dist/esm/models/components/vaultdepositrequest.d.ts +79 -0
  135. package/dist/esm/models/components/vaultdepositrequest.d.ts.map +1 -0
  136. package/dist/esm/models/components/vaultdepositrequest.js +74 -0
  137. package/dist/esm/models/components/vaultdepositrequest.js.map +1 -0
  138. package/dist/esm/models/components/vaultwithdrawrequest.d.ts +55 -0
  139. package/dist/esm/models/components/vaultwithdrawrequest.d.ts.map +1 -0
  140. package/dist/esm/models/components/vaultwithdrawrequest.js +53 -0
  141. package/dist/esm/models/components/vaultwithdrawrequest.js.map +1 -0
  142. package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
  143. package/dist/esm/models/operations/aavehistoricaltransactions.js +4 -4
  144. package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -1
  145. package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
  146. package/dist/esm/models/operations/aaveuserpositionpertoken.js +4 -4
  147. package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
  148. package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
  149. package/dist/esm/models/operations/aaveuserpositionsummary.js +4 -4
  150. package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
  151. package/dist/esm/models/operations/genericallowance.d.ts +32 -14
  152. package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
  153. package/dist/esm/models/operations/genericallowance.js +33 -24
  154. package/dist/esm/models/operations/genericallowance.js.map +1 -1
  155. package/dist/esm/sdk/morpho.d.ts +0 -11
  156. package/dist/esm/sdk/morpho.d.ts.map +1 -1
  157. package/dist/esm/sdk/morpho.js +0 -14
  158. package/dist/esm/sdk/morpho.js.map +1 -1
  159. package/dist/esm/sdk/sdk.d.ts +3 -0
  160. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  161. package/dist/esm/sdk/sdk.js +4 -0
  162. package/dist/esm/sdk/sdk.js.map +1 -1
  163. package/dist/esm/sdk/universal.d.ts +1 -1
  164. package/dist/esm/sdk/universal.d.ts.map +1 -1
  165. package/dist/esm/sdk/universal.js.map +1 -1
  166. package/dist/esm/sdk/vaultserc4626.d.ts +25 -0
  167. package/dist/esm/sdk/vaultserc4626.d.ts.map +1 -0
  168. package/dist/esm/sdk/vaultserc4626.js +34 -0
  169. package/dist/esm/sdk/vaultserc4626.js.map +1 -0
  170. package/docs/sdks/morpho/README.md +0 -84
  171. package/docs/sdks/smartaccount/README.md +2 -2
  172. package/docs/sdks/transactionbundler/README.md +2 -2
  173. package/docs/sdks/universal/README.md +5 -3
  174. package/docs/sdks/vaultserc4626/README.md +173 -0
  175. package/jsr.json +1 -1
  176. package/package.json +1 -1
  177. package/src/funcs/universalAllowance.ts +1 -1
  178. package/src/funcs/universalAllowanceSet.ts +3 -3
  179. package/src/funcs/{morphoAllowance.ts → vaultsERC4626Deposit.ts} +9 -12
  180. package/src/funcs/vaultsERC4626Withdraw.ts +173 -0
  181. package/src/lib/config.ts +2 -2
  182. package/src/mcp-server/mcp-server.ts +1 -1
  183. package/src/mcp-server/server.ts +5 -3
  184. package/src/mcp-server/tools/universalAllowanceSet.ts +1 -1
  185. package/src/mcp-server/tools/{morphoAllowance.ts → vaultsERC4626Deposit.ts} +8 -10
  186. package/src/mcp-server/tools/vaultsERC4626Withdraw.ts +41 -0
  187. package/src/models/components/index.ts +4 -4
  188. package/src/models/components/setallowanceparams.ts +310 -0
  189. package/src/models/components/setallowancerequest.ts +328 -0
  190. package/src/models/components/useroperation.ts +60 -64
  191. package/src/models/components/vaultdepositrequest.ts +166 -0
  192. package/src/models/components/vaultwithdrawrequest.ts +113 -0
  193. package/src/models/operations/aavehistoricaltransactions.ts +4 -8
  194. package/src/models/operations/aaveuserpositionpertoken.ts +4 -8
  195. package/src/models/operations/aaveuserpositionsummary.ts +4 -6
  196. package/src/models/operations/genericallowance.ts +63 -29
  197. package/src/sdk/morpho.ts +0 -22
  198. package/src/sdk/sdk.ts +6 -0
  199. package/src/sdk/universal.ts +1 -1
  200. package/src/sdk/vaultserc4626.ts +51 -0
  201. package/dist/commonjs/funcs/morphoAllowance.d.ts +0 -22
  202. package/dist/commonjs/funcs/morphoAllowance.d.ts.map +0 -1
  203. package/dist/commonjs/funcs/morphoAllowance.js.map +0 -1
  204. package/dist/commonjs/mcp-server/tools/morphoAllowance.d.ts +0 -8
  205. package/dist/commonjs/mcp-server/tools/morphoAllowance.d.ts.map +0 -1
  206. package/dist/commonjs/mcp-server/tools/morphoAllowance.js.map +0 -1
  207. package/dist/commonjs/models/components/increaseallowanceparams.d.ts +0 -155
  208. package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +0 -1
  209. package/dist/commonjs/models/components/increaseallowanceparams.js +0 -164
  210. package/dist/commonjs/models/components/increaseallowanceparams.js.map +0 -1
  211. package/dist/commonjs/models/components/increaseallowancerequest.d.ts +0 -166
  212. package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +0 -1
  213. package/dist/commonjs/models/components/increaseallowancerequest.js +0 -169
  214. package/dist/commonjs/models/components/increaseallowancerequest.js.map +0 -1
  215. package/dist/commonjs/models/components/morphosetvaultallowanceparams.d.ts +0 -63
  216. package/dist/commonjs/models/components/morphosetvaultallowanceparams.d.ts.map +0 -1
  217. package/dist/commonjs/models/components/morphosetvaultallowanceparams.js +0 -107
  218. package/dist/commonjs/models/components/morphosetvaultallowanceparams.js.map +0 -1
  219. package/dist/commonjs/models/components/morphosetvaultallowancerequest.d.ts +0 -96
  220. package/dist/commonjs/models/components/morphosetvaultallowancerequest.d.ts.map +0 -1
  221. package/dist/commonjs/models/components/morphosetvaultallowancerequest.js +0 -130
  222. package/dist/commonjs/models/components/morphosetvaultallowancerequest.js.map +0 -1
  223. package/dist/esm/funcs/morphoAllowance.d.ts +0 -22
  224. package/dist/esm/funcs/morphoAllowance.d.ts.map +0 -1
  225. package/dist/esm/funcs/morphoAllowance.js.map +0 -1
  226. package/dist/esm/mcp-server/tools/morphoAllowance.d.ts +0 -8
  227. package/dist/esm/mcp-server/tools/morphoAllowance.d.ts.map +0 -1
  228. package/dist/esm/mcp-server/tools/morphoAllowance.js +0 -32
  229. package/dist/esm/mcp-server/tools/morphoAllowance.js.map +0 -1
  230. package/dist/esm/models/components/increaseallowanceparams.d.ts +0 -155
  231. package/dist/esm/models/components/increaseallowanceparams.d.ts.map +0 -1
  232. package/dist/esm/models/components/increaseallowanceparams.js +0 -122
  233. package/dist/esm/models/components/increaseallowanceparams.js.map +0 -1
  234. package/dist/esm/models/components/increaseallowancerequest.d.ts +0 -166
  235. package/dist/esm/models/components/increaseallowancerequest.d.ts.map +0 -1
  236. package/dist/esm/models/components/increaseallowancerequest.js +0 -127
  237. package/dist/esm/models/components/increaseallowancerequest.js.map +0 -1
  238. package/dist/esm/models/components/morphosetvaultallowanceparams.d.ts +0 -63
  239. package/dist/esm/models/components/morphosetvaultallowanceparams.d.ts.map +0 -1
  240. package/dist/esm/models/components/morphosetvaultallowanceparams.js +0 -67
  241. package/dist/esm/models/components/morphosetvaultallowanceparams.js.map +0 -1
  242. package/dist/esm/models/components/morphosetvaultallowancerequest.d.ts +0 -96
  243. package/dist/esm/models/components/morphosetvaultallowancerequest.d.ts.map +0 -1
  244. package/dist/esm/models/components/morphosetvaultallowancerequest.js +0 -90
  245. package/dist/esm/models/components/morphosetvaultallowancerequest.js.map +0 -1
  246. package/src/models/components/increaseallowanceparams.ts +0 -266
  247. package/src/models/components/increaseallowancerequest.ts +0 -282
  248. package/src/models/components/morphosetvaultallowanceparams.ts +0 -155
  249. package/src/models/components/morphosetvaultallowancerequest.ts +0 -198
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.21",
34208
+ sdkVersion: "0.5.23",
34209
34209
  genVersion: "2.632.2",
34210
- userAgent: "speakeasy-sdk/typescript 0.5.21 2.632.2 0.0.1 @compass-labs/api-sdk"
34210
+ userAgent: "speakeasy-sdk/typescript 0.5.23 2.632.2 0.0.1 @compass-labs/api-sdk"
34211
34211
  };
34212
34212
  });
34213
34213
 
@@ -37663,71 +37663,6 @@ var init_allowanceinforesponse = __esm(() => {
37663
37663
  })(AllowanceInfoResponse$ ||= {});
37664
37664
  });
37665
37665
 
37666
- // src/models/components/increaseallowanceparams.ts
37667
- var IncreaseAllowanceParamsContractName, IncreaseAllowanceParamsToken$inboundSchema, IncreaseAllowanceParamsToken$outboundSchema, IncreaseAllowanceParamsToken$, IncreaseAllowanceParamsContractName$inboundSchema, IncreaseAllowanceParamsContractName$outboundSchema, IncreaseAllowanceParamsContractName$, IncreaseAllowanceParamsAmount$inboundSchema, IncreaseAllowanceParamsAmount$outboundSchema, IncreaseAllowanceParamsAmount$, IncreaseAllowanceParams$inboundSchema, IncreaseAllowanceParams$outboundSchema, IncreaseAllowanceParams$;
37668
- var init_increaseallowanceparams = __esm(() => {
37669
- init_esm();
37670
- init_primitives();
37671
- init_tokenenum();
37672
- IncreaseAllowanceParamsContractName = {
37673
- AaveV3Pool: "AaveV3Pool",
37674
- AerodromeBasicRouter: "AerodromeBasicRouter",
37675
- AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
37676
- AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
37677
- UniswapV3Router: "UniswapV3Router",
37678
- UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
37679
- Morpho: "Morpho",
37680
- SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
37681
- SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
37682
- SkyUsdsVault: "SkyUsdsVault",
37683
- PendleRouter: "PendleRouter"
37684
- };
37685
- IncreaseAllowanceParamsToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
37686
- IncreaseAllowanceParamsToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
37687
- ((IncreaseAllowanceParamsToken$) => {
37688
- IncreaseAllowanceParamsToken$.inboundSchema = IncreaseAllowanceParamsToken$inboundSchema;
37689
- IncreaseAllowanceParamsToken$.outboundSchema = IncreaseAllowanceParamsToken$outboundSchema;
37690
- })(IncreaseAllowanceParamsToken$ ||= {});
37691
- IncreaseAllowanceParamsContractName$inboundSchema = nativeEnumType(IncreaseAllowanceParamsContractName);
37692
- IncreaseAllowanceParamsContractName$outboundSchema = IncreaseAllowanceParamsContractName$inboundSchema;
37693
- ((IncreaseAllowanceParamsContractName$) => {
37694
- IncreaseAllowanceParamsContractName$.inboundSchema = IncreaseAllowanceParamsContractName$inboundSchema;
37695
- IncreaseAllowanceParamsContractName$.outboundSchema = IncreaseAllowanceParamsContractName$outboundSchema;
37696
- })(IncreaseAllowanceParamsContractName$ ||= {});
37697
- IncreaseAllowanceParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
37698
- IncreaseAllowanceParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
37699
- ((IncreaseAllowanceParamsAmount$) => {
37700
- IncreaseAllowanceParamsAmount$.inboundSchema = IncreaseAllowanceParamsAmount$inboundSchema;
37701
- IncreaseAllowanceParamsAmount$.outboundSchema = IncreaseAllowanceParamsAmount$outboundSchema;
37702
- })(IncreaseAllowanceParamsAmount$ ||= {});
37703
- IncreaseAllowanceParams$inboundSchema = objectType({
37704
- action_type: literalType("ALLOWANCE_INCREASE").default("ALLOWANCE_INCREASE"),
37705
- token: unionType([TokenEnum$inboundSchema, stringType()]),
37706
- contract_name: IncreaseAllowanceParamsContractName$inboundSchema,
37707
- amount: unionType([numberType(), stringType()])
37708
- }).transform((v2) => {
37709
- return remap(v2, {
37710
- action_type: "actionType",
37711
- contract_name: "contractName"
37712
- });
37713
- });
37714
- IncreaseAllowanceParams$outboundSchema = objectType({
37715
- actionType: literalType("ALLOWANCE_INCREASE").default("ALLOWANCE_INCREASE"),
37716
- token: unionType([TokenEnum$outboundSchema, stringType()]),
37717
- contractName: IncreaseAllowanceParamsContractName$outboundSchema,
37718
- amount: unionType([numberType(), stringType()])
37719
- }).transform((v2) => {
37720
- return remap(v2, {
37721
- actionType: "action_type",
37722
- contractName: "contract_name"
37723
- });
37724
- });
37725
- ((IncreaseAllowanceParams$) => {
37726
- IncreaseAllowanceParams$.inboundSchema = IncreaseAllowanceParams$inboundSchema;
37727
- IncreaseAllowanceParams$.outboundSchema = IncreaseAllowanceParams$outboundSchema;
37728
- })(IncreaseAllowanceParams$ ||= {});
37729
- });
37730
-
37731
37666
  // src/models/components/morphoborrowparams.ts
37732
37667
  var MorphoBorrowParamsAmount$inboundSchema, MorphoBorrowParamsAmount$outboundSchema, MorphoBorrowParamsAmount$, MorphoBorrowParams$inboundSchema, MorphoBorrowParams$outboundSchema, MorphoBorrowParams$;
37733
37668
  var init_morphoborrowparams = __esm(() => {
@@ -37850,43 +37785,6 @@ var init_morphorepayparams = __esm(() => {
37850
37785
  })(MorphoRepayParams$ ||= {});
37851
37786
  });
37852
37787
 
37853
- // src/models/components/morphosetvaultallowanceparams.ts
37854
- var MorphoSetVaultAllowanceParamsAmount$inboundSchema, MorphoSetVaultAllowanceParamsAmount$outboundSchema, MorphoSetVaultAllowanceParamsAmount$, MorphoSetVaultAllowanceParams$inboundSchema, MorphoSetVaultAllowanceParams$outboundSchema, MorphoSetVaultAllowanceParams$;
37855
- var init_morphosetvaultallowanceparams = __esm(() => {
37856
- init_esm();
37857
- init_primitives();
37858
- MorphoSetVaultAllowanceParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
37859
- MorphoSetVaultAllowanceParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
37860
- ((MorphoSetVaultAllowanceParamsAmount$) => {
37861
- MorphoSetVaultAllowanceParamsAmount$.inboundSchema = MorphoSetVaultAllowanceParamsAmount$inboundSchema;
37862
- MorphoSetVaultAllowanceParamsAmount$.outboundSchema = MorphoSetVaultAllowanceParamsAmount$outboundSchema;
37863
- })(MorphoSetVaultAllowanceParamsAmount$ ||= {});
37864
- MorphoSetVaultAllowanceParams$inboundSchema = objectType({
37865
- action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE").default("MORPHO_SET_VAULT_ALLOWANCE"),
37866
- vault_address: stringType(),
37867
- amount: unionType([numberType(), stringType()])
37868
- }).transform((v2) => {
37869
- return remap(v2, {
37870
- action_type: "actionType",
37871
- vault_address: "vaultAddress"
37872
- });
37873
- });
37874
- MorphoSetVaultAllowanceParams$outboundSchema = objectType({
37875
- actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE").default("MORPHO_SET_VAULT_ALLOWANCE"),
37876
- vaultAddress: stringType(),
37877
- amount: unionType([numberType(), stringType()])
37878
- }).transform((v2) => {
37879
- return remap(v2, {
37880
- actionType: "action_type",
37881
- vaultAddress: "vault_address"
37882
- });
37883
- });
37884
- ((MorphoSetVaultAllowanceParams$) => {
37885
- MorphoSetVaultAllowanceParams$.inboundSchema = MorphoSetVaultAllowanceParams$inboundSchema;
37886
- MorphoSetVaultAllowanceParams$.outboundSchema = MorphoSetVaultAllowanceParams$outboundSchema;
37887
- })(MorphoSetVaultAllowanceParams$ ||= {});
37888
- });
37889
-
37890
37788
  // src/models/components/morphosupplycollateralparams.ts
37891
37789
  var MorphoSupplyCollateralParamsAmount$inboundSchema, MorphoSupplyCollateralParamsAmount$outboundSchema, MorphoSupplyCollateralParamsAmount$, MorphoSupplyCollateralParams$inboundSchema, MorphoSupplyCollateralParams$outboundSchema, MorphoSupplyCollateralParams$;
37892
37790
  var init_morphosupplycollateralparams = __esm(() => {
@@ -38284,6 +38182,78 @@ var init_pendlesellytparams = __esm(() => {
38284
38182
  })(PendleSellYtParams$ ||= {});
38285
38183
  });
38286
38184
 
38185
+ // src/models/components/setallowanceparams.ts
38186
+ var SetAllowanceParamsContractEnum, SetAllowanceParamsToken$inboundSchema, SetAllowanceParamsToken$outboundSchema, SetAllowanceParamsToken$, SetAllowanceParamsContractEnum$inboundSchema, SetAllowanceParamsContractEnum$outboundSchema, SetAllowanceParamsContractEnum$, SetAllowanceParamsContractUnion$inboundSchema, SetAllowanceParamsContractUnion$outboundSchema, SetAllowanceParamsContractUnion$, SetAllowanceParamsAmount$inboundSchema, SetAllowanceParamsAmount$outboundSchema, SetAllowanceParamsAmount$, SetAllowanceParams$inboundSchema, SetAllowanceParams$outboundSchema, SetAllowanceParams$;
38187
+ var init_setallowanceparams = __esm(() => {
38188
+ init_esm();
38189
+ init_primitives();
38190
+ init_tokenenum();
38191
+ SetAllowanceParamsContractEnum = {
38192
+ AaveV3Pool: "AaveV3Pool",
38193
+ AerodromeBasicRouter: "AerodromeBasicRouter",
38194
+ AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
38195
+ AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
38196
+ UniswapV3Router: "UniswapV3Router",
38197
+ UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
38198
+ Morpho: "Morpho",
38199
+ SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
38200
+ SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
38201
+ SkyUsdsVault: "SkyUsdsVault",
38202
+ PendleRouter: "PendleRouter"
38203
+ };
38204
+ SetAllowanceParamsToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
38205
+ SetAllowanceParamsToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
38206
+ ((SetAllowanceParamsToken$) => {
38207
+ SetAllowanceParamsToken$.inboundSchema = SetAllowanceParamsToken$inboundSchema;
38208
+ SetAllowanceParamsToken$.outboundSchema = SetAllowanceParamsToken$outboundSchema;
38209
+ })(SetAllowanceParamsToken$ ||= {});
38210
+ SetAllowanceParamsContractEnum$inboundSchema = nativeEnumType(SetAllowanceParamsContractEnum);
38211
+ SetAllowanceParamsContractEnum$outboundSchema = SetAllowanceParamsContractEnum$inboundSchema;
38212
+ ((SetAllowanceParamsContractEnum$) => {
38213
+ SetAllowanceParamsContractEnum$.inboundSchema = SetAllowanceParamsContractEnum$inboundSchema;
38214
+ SetAllowanceParamsContractEnum$.outboundSchema = SetAllowanceParamsContractEnum$outboundSchema;
38215
+ })(SetAllowanceParamsContractEnum$ ||= {});
38216
+ SetAllowanceParamsContractUnion$inboundSchema = unionType([SetAllowanceParamsContractEnum$inboundSchema, stringType()]);
38217
+ SetAllowanceParamsContractUnion$outboundSchema = unionType([SetAllowanceParamsContractEnum$outboundSchema, stringType()]);
38218
+ ((SetAllowanceParamsContractUnion$) => {
38219
+ SetAllowanceParamsContractUnion$.inboundSchema = SetAllowanceParamsContractUnion$inboundSchema;
38220
+ SetAllowanceParamsContractUnion$.outboundSchema = SetAllowanceParamsContractUnion$outboundSchema;
38221
+ })(SetAllowanceParamsContractUnion$ ||= {});
38222
+ SetAllowanceParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
38223
+ SetAllowanceParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
38224
+ ((SetAllowanceParamsAmount$) => {
38225
+ SetAllowanceParamsAmount$.inboundSchema = SetAllowanceParamsAmount$inboundSchema;
38226
+ SetAllowanceParamsAmount$.outboundSchema = SetAllowanceParamsAmount$outboundSchema;
38227
+ })(SetAllowanceParamsAmount$ ||= {});
38228
+ SetAllowanceParams$inboundSchema = objectType({
38229
+ action_type: literalType("SET_ALLOWANCE").default("SET_ALLOWANCE"),
38230
+ token: unionType([TokenEnum$inboundSchema, stringType()]),
38231
+ contract: unionType([SetAllowanceParamsContractEnum$inboundSchema, stringType()]),
38232
+ amount: unionType([numberType(), stringType()])
38233
+ }).transform((v2) => {
38234
+ return remap(v2, {
38235
+ action_type: "actionType"
38236
+ });
38237
+ });
38238
+ SetAllowanceParams$outboundSchema = objectType({
38239
+ actionType: literalType("SET_ALLOWANCE").default("SET_ALLOWANCE"),
38240
+ token: unionType([TokenEnum$outboundSchema, stringType()]),
38241
+ contract: unionType([
38242
+ SetAllowanceParamsContractEnum$outboundSchema,
38243
+ stringType()
38244
+ ]),
38245
+ amount: unionType([numberType(), stringType()])
38246
+ }).transform((v2) => {
38247
+ return remap(v2, {
38248
+ actionType: "action_type"
38249
+ });
38250
+ });
38251
+ ((SetAllowanceParams$) => {
38252
+ SetAllowanceParams$.inboundSchema = SetAllowanceParams$inboundSchema;
38253
+ SetAllowanceParams$.outboundSchema = SetAllowanceParams$outboundSchema;
38254
+ })(SetAllowanceParams$ ||= {});
38255
+ });
38256
+
38287
38257
  // src/models/components/skybuyparams.ts
38288
38258
  var SkyBuyParamsTokenIn, SkyBuyParamsTokenIn$inboundSchema, SkyBuyParamsTokenIn$outboundSchema, SkyBuyParamsTokenIn$, SkyBuyParamsAmount$inboundSchema, SkyBuyParamsAmount$outboundSchema, SkyBuyParamsAmount$, SkyBuyParams$inboundSchema, SkyBuyParams$outboundSchema, SkyBuyParams$;
38289
38259
  var init_skybuyparams = __esm(() => {
@@ -38480,6 +38450,55 @@ var init_tokentransfererc20params = __esm(() => {
38480
38450
  })(TokenTransferErc20Params$ ||= {});
38481
38451
  });
38482
38452
 
38453
+ // src/models/components/tokentransferrequest.ts
38454
+ var TokenTransferRequestAmount$inboundSchema, TokenTransferRequestAmount$outboundSchema, TokenTransferRequestAmount$, TokenTransferRequestToken$inboundSchema, TokenTransferRequestToken$outboundSchema, TokenTransferRequestToken$, TokenTransferRequest$inboundSchema, TokenTransferRequest$outboundSchema, TokenTransferRequest$;
38455
+ var init_tokentransferrequest = __esm(() => {
38456
+ init_esm();
38457
+ init_primitives();
38458
+ init_chain();
38459
+ init_tokenenum();
38460
+ TokenTransferRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
38461
+ TokenTransferRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
38462
+ ((TokenTransferRequestAmount$) => {
38463
+ TokenTransferRequestAmount$.inboundSchema = TokenTransferRequestAmount$inboundSchema;
38464
+ TokenTransferRequestAmount$.outboundSchema = TokenTransferRequestAmount$outboundSchema;
38465
+ })(TokenTransferRequestAmount$ ||= {});
38466
+ TokenTransferRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
38467
+ TokenTransferRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
38468
+ ((TokenTransferRequestToken$) => {
38469
+ TokenTransferRequestToken$.inboundSchema = TokenTransferRequestToken$inboundSchema;
38470
+ TokenTransferRequestToken$.outboundSchema = TokenTransferRequestToken$outboundSchema;
38471
+ })(TokenTransferRequestToken$ ||= {});
38472
+ TokenTransferRequest$inboundSchema = objectType({
38473
+ action_type: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
38474
+ amount: unionType([numberType(), stringType()]),
38475
+ token: unionType([TokenEnum$inboundSchema, stringType()]),
38476
+ to: stringType(),
38477
+ chain: Chain$inboundSchema,
38478
+ sender: stringType()
38479
+ }).transform((v2) => {
38480
+ return remap(v2, {
38481
+ action_type: "actionType"
38482
+ });
38483
+ });
38484
+ TokenTransferRequest$outboundSchema = objectType({
38485
+ actionType: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
38486
+ amount: unionType([numberType(), stringType()]),
38487
+ token: unionType([TokenEnum$outboundSchema, stringType()]),
38488
+ to: stringType(),
38489
+ chain: Chain$outboundSchema,
38490
+ sender: stringType()
38491
+ }).transform((v2) => {
38492
+ return remap(v2, {
38493
+ actionType: "action_type"
38494
+ });
38495
+ });
38496
+ ((TokenTransferRequest$) => {
38497
+ TokenTransferRequest$.inboundSchema = TokenTransferRequest$inboundSchema;
38498
+ TokenTransferRequest$.outboundSchema = TokenTransferRequest$outboundSchema;
38499
+ })(TokenTransferRequest$ ||= {});
38500
+ });
38501
+
38483
38502
  // src/models/components/feeenum.ts
38484
38503
  var FeeEnum, FeeEnum$inboundSchema, FeeEnum$outboundSchema, FeeEnum$;
38485
38504
  var init_feeenum = __esm(() => {
@@ -38874,11 +38893,9 @@ var init_useroperation = __esm(() => {
38874
38893
  init_aerodromeslipstreammintliquidityprovisionparams();
38875
38894
  init_aerodromeslipstreamsellexactlyparams();
38876
38895
  init_aerodromeslipstreamwithdrawliquidityprovisionparams();
38877
- init_increaseallowanceparams();
38878
38896
  init_morphoborrowparams();
38879
38897
  init_morphodepositparams();
38880
38898
  init_morphorepayparams();
38881
- init_morphosetvaultallowanceparams();
38882
38899
  init_morphosupplycollateralparams();
38883
38900
  init_morphowithdrawcollateralparams();
38884
38901
  init_morphowithdrawparams();
@@ -38889,11 +38906,13 @@ var init_useroperation = __esm(() => {
38889
38906
  init_pendleremoveliquidityparams();
38890
38907
  init_pendlesellptparams();
38891
38908
  init_pendlesellytparams();
38909
+ init_setallowanceparams();
38892
38910
  init_skybuyparams();
38893
38911
  init_skydepositparams();
38894
38912
  init_skysellparams();
38895
38913
  init_skywithdrawparams();
38896
38914
  init_tokentransfererc20params();
38915
+ init_tokentransferrequest();
38897
38916
  init_uniswapbuyexactlyparams();
38898
38917
  init_uniswapincreaseliquidityprovisionparams();
38899
38918
  init_uniswapmintliquidityprovisionparams();
@@ -38910,6 +38929,9 @@ var init_useroperation = __esm(() => {
38910
38929
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({
38911
38930
  action_type: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
38912
38931
  }).transform((v2) => ({ actionType: v2.action_type }))),
38932
+ TokenTransferRequest$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
38933
+ actionType: v2.action_type
38934
+ }))),
38913
38935
  UniswapIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
38914
38936
  UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
38915
38937
  UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
@@ -38923,7 +38945,6 @@ var init_useroperation = __esm(() => {
38923
38945
  AaveWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_WITHDRAW") }).transform((v2) => ({
38924
38946
  actionType: v2.action_type
38925
38947
  }))),
38926
- IncreaseAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("ALLOWANCE_INCREASE") }).transform((v2) => ({ actionType: v2.action_type }))),
38927
38948
  PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
38928
38949
  PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
38929
38950
  actionType: v2.action_type
@@ -38938,6 +38959,9 @@ var init_useroperation = __esm(() => {
38938
38959
  PendleSellYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
38939
38960
  actionType: v2.action_type
38940
38961
  }))),
38962
+ SetAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("SET_ALLOWANCE") }).transform((v2) => ({
38963
+ actionType: v2.action_type
38964
+ }))),
38941
38965
  TokenTransferErc20Params$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ actionType: v2.action_type }))),
38942
38966
  AaveSupplyParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_SUPPLY") }).transform((v2) => ({
38943
38967
  actionType: v2.action_type
@@ -38954,7 +38978,6 @@ var init_useroperation = __esm(() => {
38954
38978
  MorphoRepayParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_REPAY") }).transform((v2) => ({
38955
38979
  actionType: v2.action_type
38956
38980
  }))),
38957
- MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
38958
38981
  MorphoSupplyCollateralParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SUPPLY_COLLATERAL") }).transform((v2) => ({ actionType: v2.action_type }))),
38959
38982
  MorphoWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({ actionType: v2.action_type }))),
38960
38983
  MorphoWithdrawCollateralParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW_COLLATERAL") }).transform((v2) => ({ actionType: v2.action_type }))),
@@ -38990,6 +39013,9 @@ var init_useroperation = __esm(() => {
38990
39013
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({
38991
39014
  actionType: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
38992
39015
  }).transform((v2) => ({ action_type: v2.actionType }))),
39016
+ TokenTransferRequest$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
39017
+ action_type: v2.actionType
39018
+ }))),
38993
39019
  UniswapIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
38994
39020
  UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
38995
39021
  UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
@@ -39003,7 +39029,6 @@ var init_useroperation = __esm(() => {
39003
39029
  AaveWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_WITHDRAW") }).transform((v2) => ({
39004
39030
  action_type: v2.actionType
39005
39031
  }))),
39006
- IncreaseAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("ALLOWANCE_INCREASE") }).transform((v2) => ({ action_type: v2.actionType }))),
39007
39032
  PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
39008
39033
  PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
39009
39034
  action_type: v2.actionType
@@ -39018,6 +39043,9 @@ var init_useroperation = __esm(() => {
39018
39043
  PendleSellYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
39019
39044
  action_type: v2.actionType
39020
39045
  }))),
39046
+ SetAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("SET_ALLOWANCE") }).transform((v2) => ({
39047
+ action_type: v2.actionType
39048
+ }))),
39021
39049
  TokenTransferErc20Params$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ action_type: v2.actionType }))),
39022
39050
  AaveSupplyParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_SUPPLY") }).transform((v2) => ({
39023
39051
  action_type: v2.actionType
@@ -39034,7 +39062,6 @@ var init_useroperation = __esm(() => {
39034
39062
  MorphoRepayParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_REPAY") }).transform((v2) => ({
39035
39063
  action_type: v2.actionType
39036
39064
  }))),
39037
- MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
39038
39065
  MorphoSupplyCollateralParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SUPPLY_COLLATERAL") }).transform((v2) => ({ action_type: v2.actionType }))),
39039
39066
  MorphoWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({
39040
39067
  action_type: v2.actionType
@@ -39077,6 +39104,9 @@ var init_useroperation = __esm(() => {
39077
39104
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({
39078
39105
  action_type: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
39079
39106
  }).transform((v2) => ({ actionType: v2.action_type }))),
39107
+ TokenTransferRequest$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
39108
+ actionType: v2.action_type
39109
+ }))),
39080
39110
  UniswapIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
39081
39111
  UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
39082
39112
  UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
@@ -39090,7 +39120,6 @@ var init_useroperation = __esm(() => {
39090
39120
  AaveWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_WITHDRAW") }).transform((v2) => ({
39091
39121
  actionType: v2.action_type
39092
39122
  }))),
39093
- IncreaseAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("ALLOWANCE_INCREASE") }).transform((v2) => ({ actionType: v2.action_type }))),
39094
39123
  PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
39095
39124
  PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
39096
39125
  actionType: v2.action_type
@@ -39105,6 +39134,9 @@ var init_useroperation = __esm(() => {
39105
39134
  PendleSellYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
39106
39135
  actionType: v2.action_type
39107
39136
  }))),
39137
+ SetAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("SET_ALLOWANCE") }).transform((v2) => ({
39138
+ actionType: v2.action_type
39139
+ }))),
39108
39140
  TokenTransferErc20Params$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ actionType: v2.action_type }))),
39109
39141
  AaveSupplyParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_SUPPLY") }).transform((v2) => ({
39110
39142
  actionType: v2.action_type
@@ -39121,7 +39153,6 @@ var init_useroperation = __esm(() => {
39121
39153
  MorphoRepayParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_REPAY") }).transform((v2) => ({
39122
39154
  actionType: v2.action_type
39123
39155
  }))),
39124
- MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
39125
39156
  MorphoSupplyCollateralParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SUPPLY_COLLATERAL") }).transform((v2) => ({ actionType: v2.action_type }))),
39126
39157
  MorphoWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({ actionType: v2.action_type }))),
39127
39158
  MorphoWithdrawCollateralParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW_COLLATERAL") }).transform((v2) => ({ actionType: v2.action_type }))),
@@ -39159,6 +39190,9 @@ var init_useroperation = __esm(() => {
39159
39190
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({
39160
39191
  actionType: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
39161
39192
  }).transform((v2) => ({ action_type: v2.actionType }))),
39193
+ TokenTransferRequest$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
39194
+ action_type: v2.actionType
39195
+ }))),
39162
39196
  UniswapIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
39163
39197
  UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
39164
39198
  UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
@@ -39172,7 +39206,6 @@ var init_useroperation = __esm(() => {
39172
39206
  AaveWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_WITHDRAW") }).transform((v2) => ({
39173
39207
  action_type: v2.actionType
39174
39208
  }))),
39175
- IncreaseAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("ALLOWANCE_INCREASE") }).transform((v2) => ({ action_type: v2.actionType }))),
39176
39209
  PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
39177
39210
  PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
39178
39211
  action_type: v2.actionType
@@ -39187,6 +39220,9 @@ var init_useroperation = __esm(() => {
39187
39220
  PendleSellYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
39188
39221
  action_type: v2.actionType
39189
39222
  }))),
39223
+ SetAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("SET_ALLOWANCE") }).transform((v2) => ({
39224
+ action_type: v2.actionType
39225
+ }))),
39190
39226
  TokenTransferErc20Params$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ action_type: v2.actionType }))),
39191
39227
  AaveSupplyParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_SUPPLY") }).transform((v2) => ({
39192
39228
  action_type: v2.actionType
@@ -39203,7 +39239,6 @@ var init_useroperation = __esm(() => {
39203
39239
  MorphoRepayParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_REPAY") }).transform((v2) => ({
39204
39240
  action_type: v2.actionType
39205
39241
  }))),
39206
- MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
39207
39242
  MorphoSupplyCollateralParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SUPPLY_COLLATERAL") }).transform((v2) => ({ action_type: v2.actionType }))),
39208
39243
  MorphoWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({
39209
39244
  action_type: v2.actionType
@@ -39880,76 +39915,6 @@ var init_image = __esm(() => {
39880
39915
  })(Image$ ||= {});
39881
39916
  });
39882
39917
 
39883
- // src/models/components/increaseallowancerequest.ts
39884
- var IncreaseAllowanceRequestContractName, IncreaseAllowanceRequestToken$inboundSchema, IncreaseAllowanceRequestToken$outboundSchema, IncreaseAllowanceRequestToken$, IncreaseAllowanceRequestContractName$inboundSchema, IncreaseAllowanceRequestContractName$outboundSchema, IncreaseAllowanceRequestContractName$, IncreaseAllowanceRequestAmount$inboundSchema, IncreaseAllowanceRequestAmount$outboundSchema, IncreaseAllowanceRequestAmount$, IncreaseAllowanceRequest$inboundSchema, IncreaseAllowanceRequest$outboundSchema, IncreaseAllowanceRequest$;
39885
- var init_increaseallowancerequest = __esm(() => {
39886
- init_esm();
39887
- init_primitives();
39888
- init_chain();
39889
- init_tokenenum();
39890
- IncreaseAllowanceRequestContractName = {
39891
- AaveV3Pool: "AaveV3Pool",
39892
- AerodromeBasicRouter: "AerodromeBasicRouter",
39893
- AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
39894
- AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
39895
- UniswapV3Router: "UniswapV3Router",
39896
- UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
39897
- Morpho: "Morpho",
39898
- SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
39899
- SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
39900
- SkyUsdsVault: "SkyUsdsVault",
39901
- PendleRouter: "PendleRouter"
39902
- };
39903
- IncreaseAllowanceRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
39904
- IncreaseAllowanceRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
39905
- ((IncreaseAllowanceRequestToken$) => {
39906
- IncreaseAllowanceRequestToken$.inboundSchema = IncreaseAllowanceRequestToken$inboundSchema;
39907
- IncreaseAllowanceRequestToken$.outboundSchema = IncreaseAllowanceRequestToken$outboundSchema;
39908
- })(IncreaseAllowanceRequestToken$ ||= {});
39909
- IncreaseAllowanceRequestContractName$inboundSchema = nativeEnumType(IncreaseAllowanceRequestContractName);
39910
- IncreaseAllowanceRequestContractName$outboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
39911
- ((IncreaseAllowanceRequestContractName$) => {
39912
- IncreaseAllowanceRequestContractName$.inboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
39913
- IncreaseAllowanceRequestContractName$.outboundSchema = IncreaseAllowanceRequestContractName$outboundSchema;
39914
- })(IncreaseAllowanceRequestContractName$ ||= {});
39915
- IncreaseAllowanceRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
39916
- IncreaseAllowanceRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
39917
- ((IncreaseAllowanceRequestAmount$) => {
39918
- IncreaseAllowanceRequestAmount$.inboundSchema = IncreaseAllowanceRequestAmount$inboundSchema;
39919
- IncreaseAllowanceRequestAmount$.outboundSchema = IncreaseAllowanceRequestAmount$outboundSchema;
39920
- })(IncreaseAllowanceRequestAmount$ ||= {});
39921
- IncreaseAllowanceRequest$inboundSchema = objectType({
39922
- action_type: literalType("ALLOWANCE_INCREASE").default("ALLOWANCE_INCREASE"),
39923
- token: unionType([TokenEnum$inboundSchema, stringType()]),
39924
- contract_name: IncreaseAllowanceRequestContractName$inboundSchema,
39925
- amount: unionType([numberType(), stringType()]),
39926
- chain: Chain$inboundSchema,
39927
- sender: stringType()
39928
- }).transform((v2) => {
39929
- return remap(v2, {
39930
- action_type: "actionType",
39931
- contract_name: "contractName"
39932
- });
39933
- });
39934
- IncreaseAllowanceRequest$outboundSchema = objectType({
39935
- actionType: literalType("ALLOWANCE_INCREASE").default("ALLOWANCE_INCREASE"),
39936
- token: unionType([TokenEnum$outboundSchema, stringType()]),
39937
- contractName: IncreaseAllowanceRequestContractName$outboundSchema,
39938
- amount: unionType([numberType(), stringType()]),
39939
- chain: Chain$outboundSchema,
39940
- sender: stringType()
39941
- }).transform((v2) => {
39942
- return remap(v2, {
39943
- actionType: "action_type",
39944
- contractName: "contract_name"
39945
- });
39946
- });
39947
- ((IncreaseAllowanceRequest$) => {
39948
- IncreaseAllowanceRequest$.inboundSchema = IncreaseAllowanceRequest$inboundSchema;
39949
- IncreaseAllowanceRequest$.outboundSchema = IncreaseAllowanceRequest$outboundSchema;
39950
- })(IncreaseAllowanceRequest$ ||= {});
39951
- });
39952
-
39953
39918
  // src/models/components/liquidity.ts
39954
39919
  var Liquidity$inboundSchema, Liquidity$outboundSchema, Liquidity$;
39955
39920
  var init_liquidity = __esm(() => {
@@ -40577,57 +40542,6 @@ var init_morphorepayrequest = __esm(() => {
40577
40542
  })(MorphoRepayRequest$ ||= {});
40578
40543
  });
40579
40544
 
40580
- // src/models/components/morphosetvaultallowancerequest.ts
40581
- var MorphoSetVaultAllowanceRequestChain, MorphoSetVaultAllowanceRequestAmount$inboundSchema, MorphoSetVaultAllowanceRequestAmount$outboundSchema, MorphoSetVaultAllowanceRequestAmount$, MorphoSetVaultAllowanceRequestChain$inboundSchema, MorphoSetVaultAllowanceRequestChain$outboundSchema, MorphoSetVaultAllowanceRequestChain$, MorphoSetVaultAllowanceRequest$inboundSchema, MorphoSetVaultAllowanceRequest$outboundSchema, MorphoSetVaultAllowanceRequest$;
40582
- var init_morphosetvaultallowancerequest = __esm(() => {
40583
- init_esm();
40584
- init_primitives();
40585
- MorphoSetVaultAllowanceRequestChain = {
40586
- EthereumMainnet: "ethereum:mainnet",
40587
- BaseMainnet: "base:mainnet"
40588
- };
40589
- MorphoSetVaultAllowanceRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
40590
- MorphoSetVaultAllowanceRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
40591
- ((MorphoSetVaultAllowanceRequestAmount$) => {
40592
- MorphoSetVaultAllowanceRequestAmount$.inboundSchema = MorphoSetVaultAllowanceRequestAmount$inboundSchema;
40593
- MorphoSetVaultAllowanceRequestAmount$.outboundSchema = MorphoSetVaultAllowanceRequestAmount$outboundSchema;
40594
- })(MorphoSetVaultAllowanceRequestAmount$ ||= {});
40595
- MorphoSetVaultAllowanceRequestChain$inboundSchema = nativeEnumType(MorphoSetVaultAllowanceRequestChain);
40596
- MorphoSetVaultAllowanceRequestChain$outboundSchema = MorphoSetVaultAllowanceRequestChain$inboundSchema;
40597
- ((MorphoSetVaultAllowanceRequestChain$) => {
40598
- MorphoSetVaultAllowanceRequestChain$.inboundSchema = MorphoSetVaultAllowanceRequestChain$inboundSchema;
40599
- MorphoSetVaultAllowanceRequestChain$.outboundSchema = MorphoSetVaultAllowanceRequestChain$outboundSchema;
40600
- })(MorphoSetVaultAllowanceRequestChain$ ||= {});
40601
- MorphoSetVaultAllowanceRequest$inboundSchema = objectType({
40602
- action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE").default("MORPHO_SET_VAULT_ALLOWANCE"),
40603
- vault_address: stringType(),
40604
- amount: unionType([numberType(), stringType()]),
40605
- chain: MorphoSetVaultAllowanceRequestChain$inboundSchema,
40606
- sender: stringType()
40607
- }).transform((v2) => {
40608
- return remap(v2, {
40609
- action_type: "actionType",
40610
- vault_address: "vaultAddress"
40611
- });
40612
- });
40613
- MorphoSetVaultAllowanceRequest$outboundSchema = objectType({
40614
- actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE").default("MORPHO_SET_VAULT_ALLOWANCE"),
40615
- vaultAddress: stringType(),
40616
- amount: unionType([numberType(), stringType()]),
40617
- chain: MorphoSetVaultAllowanceRequestChain$outboundSchema,
40618
- sender: stringType()
40619
- }).transform((v2) => {
40620
- return remap(v2, {
40621
- actionType: "action_type",
40622
- vaultAddress: "vault_address"
40623
- });
40624
- });
40625
- ((MorphoSetVaultAllowanceRequest$) => {
40626
- MorphoSetVaultAllowanceRequest$.inboundSchema = MorphoSetVaultAllowanceRequest$inboundSchema;
40627
- MorphoSetVaultAllowanceRequest$.outboundSchema = MorphoSetVaultAllowanceRequest$outboundSchema;
40628
- })(MorphoSetVaultAllowanceRequest$ ||= {});
40629
- });
40630
-
40631
40545
  // src/models/components/morphosupplycollateralrequest.ts
40632
40546
  var MorphoSupplyCollateralRequestChain, MorphoSupplyCollateralRequestAmount$inboundSchema, MorphoSupplyCollateralRequestAmount$outboundSchema, MorphoSupplyCollateralRequestAmount$, MorphoSupplyCollateralRequestChain$inboundSchema, MorphoSupplyCollateralRequestChain$outboundSchema, MorphoSupplyCollateralRequestChain$, MorphoSupplyCollateralRequest$inboundSchema, MorphoSupplyCollateralRequest$outboundSchema, MorphoSupplyCollateralRequest$;
40633
40547
  var init_morphosupplycollateralrequest = __esm(() => {
@@ -41476,6 +41390,86 @@ var init_security2 = __esm(() => {
41476
41390
  })(Security$ ||= {});
41477
41391
  });
41478
41392
 
41393
+ // src/models/components/setallowancerequest.ts
41394
+ var SetAllowanceRequestContractEnum, SetAllowanceRequestToken$inboundSchema, SetAllowanceRequestToken$outboundSchema, SetAllowanceRequestToken$, SetAllowanceRequestContractEnum$inboundSchema, SetAllowanceRequestContractEnum$outboundSchema, SetAllowanceRequestContractEnum$, SetAllowanceRequestContractUnion$inboundSchema, SetAllowanceRequestContractUnion$outboundSchema, SetAllowanceRequestContractUnion$, SetAllowanceRequestAmount$inboundSchema, SetAllowanceRequestAmount$outboundSchema, SetAllowanceRequestAmount$, SetAllowanceRequest$inboundSchema, SetAllowanceRequest$outboundSchema, SetAllowanceRequest$;
41395
+ var init_setallowancerequest = __esm(() => {
41396
+ init_esm();
41397
+ init_primitives();
41398
+ init_chain();
41399
+ init_tokenenum();
41400
+ SetAllowanceRequestContractEnum = {
41401
+ AaveV3Pool: "AaveV3Pool",
41402
+ AerodromeBasicRouter: "AerodromeBasicRouter",
41403
+ AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
41404
+ AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
41405
+ UniswapV3Router: "UniswapV3Router",
41406
+ UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
41407
+ Morpho: "Morpho",
41408
+ SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
41409
+ SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
41410
+ SkyUsdsVault: "SkyUsdsVault",
41411
+ PendleRouter: "PendleRouter"
41412
+ };
41413
+ SetAllowanceRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
41414
+ SetAllowanceRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
41415
+ ((SetAllowanceRequestToken$) => {
41416
+ SetAllowanceRequestToken$.inboundSchema = SetAllowanceRequestToken$inboundSchema;
41417
+ SetAllowanceRequestToken$.outboundSchema = SetAllowanceRequestToken$outboundSchema;
41418
+ })(SetAllowanceRequestToken$ ||= {});
41419
+ SetAllowanceRequestContractEnum$inboundSchema = nativeEnumType(SetAllowanceRequestContractEnum);
41420
+ SetAllowanceRequestContractEnum$outboundSchema = SetAllowanceRequestContractEnum$inboundSchema;
41421
+ ((SetAllowanceRequestContractEnum$) => {
41422
+ SetAllowanceRequestContractEnum$.inboundSchema = SetAllowanceRequestContractEnum$inboundSchema;
41423
+ SetAllowanceRequestContractEnum$.outboundSchema = SetAllowanceRequestContractEnum$outboundSchema;
41424
+ })(SetAllowanceRequestContractEnum$ ||= {});
41425
+ SetAllowanceRequestContractUnion$inboundSchema = unionType([SetAllowanceRequestContractEnum$inboundSchema, stringType()]);
41426
+ SetAllowanceRequestContractUnion$outboundSchema = unionType([SetAllowanceRequestContractEnum$outboundSchema, stringType()]);
41427
+ ((SetAllowanceRequestContractUnion$) => {
41428
+ SetAllowanceRequestContractUnion$.inboundSchema = SetAllowanceRequestContractUnion$inboundSchema;
41429
+ SetAllowanceRequestContractUnion$.outboundSchema = SetAllowanceRequestContractUnion$outboundSchema;
41430
+ })(SetAllowanceRequestContractUnion$ ||= {});
41431
+ SetAllowanceRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
41432
+ SetAllowanceRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
41433
+ ((SetAllowanceRequestAmount$) => {
41434
+ SetAllowanceRequestAmount$.inboundSchema = SetAllowanceRequestAmount$inboundSchema;
41435
+ SetAllowanceRequestAmount$.outboundSchema = SetAllowanceRequestAmount$outboundSchema;
41436
+ })(SetAllowanceRequestAmount$ ||= {});
41437
+ SetAllowanceRequest$inboundSchema = objectType({
41438
+ action_type: literalType("SET_ALLOWANCE").default("SET_ALLOWANCE"),
41439
+ token: unionType([TokenEnum$inboundSchema, stringType()]),
41440
+ contract: unionType([
41441
+ SetAllowanceRequestContractEnum$inboundSchema,
41442
+ stringType()
41443
+ ]),
41444
+ amount: unionType([numberType(), stringType()]),
41445
+ chain: Chain$inboundSchema,
41446
+ sender: stringType()
41447
+ }).transform((v2) => {
41448
+ return remap(v2, {
41449
+ action_type: "actionType"
41450
+ });
41451
+ });
41452
+ SetAllowanceRequest$outboundSchema = objectType({
41453
+ actionType: literalType("SET_ALLOWANCE").default("SET_ALLOWANCE"),
41454
+ token: unionType([TokenEnum$outboundSchema, stringType()]),
41455
+ contract: unionType([
41456
+ SetAllowanceRequestContractEnum$outboundSchema,
41457
+ stringType()
41458
+ ]),
41459
+ amount: unionType([numberType(), stringType()]),
41460
+ chain: Chain$outboundSchema,
41461
+ sender: stringType()
41462
+ }).transform((v2) => {
41463
+ return remap(v2, {
41464
+ actionType: "action_type"
41465
+ });
41466
+ });
41467
+ ((SetAllowanceRequest$) => {
41468
+ SetAllowanceRequest$.inboundSchema = SetAllowanceRequest$inboundSchema;
41469
+ SetAllowanceRequest$.outboundSchema = SetAllowanceRequest$outboundSchema;
41470
+ })(SetAllowanceRequest$ ||= {});
41471
+ });
41472
+
41479
41473
  // src/models/components/skybuyrequest.ts
41480
41474
  var SkyBuyRequestTokenIn, SkyBuyRequestTokenIn$inboundSchema, SkyBuyRequestTokenIn$outboundSchema, SkyBuyRequestTokenIn$, SkyBuyRequestAmount$inboundSchema, SkyBuyRequestAmount$outboundSchema, SkyBuyRequestAmount$, SkyBuyRequest$inboundSchema, SkyBuyRequest$outboundSchema, SkyBuyRequest$;
41481
41475
  var init_skybuyrequest = __esm(() => {
@@ -41766,58 +41760,9 @@ var init_tokenpriceresponse = __esm(() => {
41766
41760
  })(TokenPriceResponse$ ||= {});
41767
41761
  });
41768
41762
 
41769
- // src/models/components/tokentransferrequest.ts
41770
- var TokenTransferRequestAmount$inboundSchema, TokenTransferRequestAmount$outboundSchema, TokenTransferRequestAmount$, TokenTransferRequestToken$inboundSchema, TokenTransferRequestToken$outboundSchema, TokenTransferRequestToken$, TokenTransferRequest$inboundSchema, TokenTransferRequest$outboundSchema, TokenTransferRequest$;
41771
- var init_tokentransferrequest = __esm(() => {
41772
- init_esm();
41773
- init_primitives();
41774
- init_chain();
41775
- init_tokenenum();
41776
- TokenTransferRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
41777
- TokenTransferRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
41778
- ((TokenTransferRequestAmount$) => {
41779
- TokenTransferRequestAmount$.inboundSchema = TokenTransferRequestAmount$inboundSchema;
41780
- TokenTransferRequestAmount$.outboundSchema = TokenTransferRequestAmount$outboundSchema;
41781
- })(TokenTransferRequestAmount$ ||= {});
41782
- TokenTransferRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
41783
- TokenTransferRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
41784
- ((TokenTransferRequestToken$) => {
41785
- TokenTransferRequestToken$.inboundSchema = TokenTransferRequestToken$inboundSchema;
41786
- TokenTransferRequestToken$.outboundSchema = TokenTransferRequestToken$outboundSchema;
41787
- })(TokenTransferRequestToken$ ||= {});
41788
- TokenTransferRequest$inboundSchema = objectType({
41789
- action_type: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
41790
- amount: unionType([numberType(), stringType()]),
41791
- token: unionType([TokenEnum$inboundSchema, stringType()]),
41792
- to: stringType(),
41793
- chain: Chain$inboundSchema,
41794
- sender: stringType()
41795
- }).transform((v2) => {
41796
- return remap(v2, {
41797
- action_type: "actionType"
41798
- });
41799
- });
41800
- TokenTransferRequest$outboundSchema = objectType({
41801
- actionType: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
41802
- amount: unionType([numberType(), stringType()]),
41803
- token: unionType([TokenEnum$outboundSchema, stringType()]),
41804
- to: stringType(),
41805
- chain: Chain$outboundSchema,
41806
- sender: stringType()
41807
- }).transform((v2) => {
41808
- return remap(v2, {
41809
- actionType: "action_type"
41810
- });
41811
- });
41812
- ((TokenTransferRequest$) => {
41813
- TokenTransferRequest$.inboundSchema = TokenTransferRequest$inboundSchema;
41814
- TokenTransferRequest$.outboundSchema = TokenTransferRequest$outboundSchema;
41815
- })(TokenTransferRequest$ ||= {});
41816
- });
41817
-
41818
- // src/models/components/unsignedmulticalltransaction.ts
41819
- var UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, UnsignedMulticallTransaction$;
41820
- var init_unsignedmulticalltransaction = __esm(() => {
41763
+ // src/models/components/unsignedmulticalltransaction.ts
41764
+ var UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, UnsignedMulticallTransaction$;
41765
+ var init_unsignedmulticalltransaction = __esm(() => {
41821
41766
  init_esm();
41822
41767
  init_signedauthorization();
41823
41768
  UnsignedMulticallTransaction$inboundSchema = objectType({
@@ -42482,6 +42427,88 @@ var init_validationerror = __esm(() => {
42482
42427
  })(ValidationError$ ||= {});
42483
42428
  });
42484
42429
 
42430
+ // src/models/components/vaultdepositrequest.ts
42431
+ var VaultDepositRequestAmount$inboundSchema, VaultDepositRequestAmount$outboundSchema, VaultDepositRequestAmount$, VaultDepositRequest$inboundSchema, VaultDepositRequest$outboundSchema, VaultDepositRequest$;
42432
+ var init_vaultdepositrequest = __esm(() => {
42433
+ init_esm();
42434
+ init_primitives();
42435
+ init_chain();
42436
+ VaultDepositRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
42437
+ VaultDepositRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
42438
+ ((VaultDepositRequestAmount$) => {
42439
+ VaultDepositRequestAmount$.inboundSchema = VaultDepositRequestAmount$inboundSchema;
42440
+ VaultDepositRequestAmount$.outboundSchema = VaultDepositRequestAmount$outboundSchema;
42441
+ })(VaultDepositRequestAmount$ ||= {});
42442
+ VaultDepositRequest$inboundSchema = objectType({
42443
+ action_type: literalType("VAULT_DEPOSIT").default("VAULT_DEPOSIT"),
42444
+ vault_address: stringType(),
42445
+ amount: unionType([numberType(), stringType()]),
42446
+ receiver: nullableType(stringType()).optional(),
42447
+ chain: Chain$inboundSchema,
42448
+ sender: stringType()
42449
+ }).transform((v2) => {
42450
+ return remap(v2, {
42451
+ action_type: "actionType",
42452
+ vault_address: "vaultAddress"
42453
+ });
42454
+ });
42455
+ VaultDepositRequest$outboundSchema = objectType({
42456
+ actionType: literalType("VAULT_DEPOSIT").default("VAULT_DEPOSIT"),
42457
+ vaultAddress: stringType(),
42458
+ amount: unionType([numberType(), stringType()]),
42459
+ receiver: nullableType(stringType()).optional(),
42460
+ chain: Chain$outboundSchema,
42461
+ sender: stringType()
42462
+ }).transform((v2) => {
42463
+ return remap(v2, {
42464
+ actionType: "action_type",
42465
+ vaultAddress: "vault_address"
42466
+ });
42467
+ });
42468
+ ((VaultDepositRequest$) => {
42469
+ VaultDepositRequest$.inboundSchema = VaultDepositRequest$inboundSchema;
42470
+ VaultDepositRequest$.outboundSchema = VaultDepositRequest$outboundSchema;
42471
+ })(VaultDepositRequest$ ||= {});
42472
+ });
42473
+
42474
+ // src/models/components/vaultwithdrawrequest.ts
42475
+ var VaultWithdrawRequest$inboundSchema, VaultWithdrawRequest$outboundSchema, VaultWithdrawRequest$;
42476
+ var init_vaultwithdrawrequest = __esm(() => {
42477
+ init_esm();
42478
+ init_primitives();
42479
+ init_chain();
42480
+ VaultWithdrawRequest$inboundSchema = objectType({
42481
+ action_type: literalType("VAULT_WITHDRAW").default("VAULT_WITHDRAW"),
42482
+ vault_address: stringType(),
42483
+ amount: anyType().optional(),
42484
+ receiver: nullableType(stringType()).optional(),
42485
+ chain: Chain$inboundSchema,
42486
+ sender: stringType()
42487
+ }).transform((v2) => {
42488
+ return remap(v2, {
42489
+ action_type: "actionType",
42490
+ vault_address: "vaultAddress"
42491
+ });
42492
+ });
42493
+ VaultWithdrawRequest$outboundSchema = objectType({
42494
+ actionType: literalType("VAULT_WITHDRAW").default("VAULT_WITHDRAW"),
42495
+ vaultAddress: stringType(),
42496
+ amount: anyType().optional(),
42497
+ receiver: nullableType(stringType()).optional(),
42498
+ chain: Chain$outboundSchema,
42499
+ sender: stringType()
42500
+ }).transform((v2) => {
42501
+ return remap(v2, {
42502
+ actionType: "action_type",
42503
+ vaultAddress: "vault_address"
42504
+ });
42505
+ });
42506
+ ((VaultWithdrawRequest$) => {
42507
+ VaultWithdrawRequest$.inboundSchema = VaultWithdrawRequest$inboundSchema;
42508
+ VaultWithdrawRequest$.outboundSchema = VaultWithdrawRequest$outboundSchema;
42509
+ })(VaultWithdrawRequest$ ||= {});
42510
+ });
42511
+
42485
42512
  // src/models/components/wrapethrequest.ts
42486
42513
  var WrapEthRequestAmount$inboundSchema, WrapEthRequestAmount$outboundSchema, WrapEthRequestAmount$, WrapEthRequest$inboundSchema, WrapEthRequest$outboundSchema, WrapEthRequest$;
42487
42514
  var init_wrapethrequest = __esm(() => {
@@ -42580,8 +42607,6 @@ var init_components = __esm(() => {
42580
42607
  init_erc20data();
42581
42608
  init_feeenum();
42582
42609
  init_image();
42583
- init_increaseallowanceparams();
42584
- init_increaseallowancerequest();
42585
42610
  init_interestratemode();
42586
42611
  init_liquidationcall();
42587
42612
  init_liquidity();
@@ -42603,8 +42628,6 @@ var init_components = __esm(() => {
42603
42628
  init_morphomarket();
42604
42629
  init_morphorepayparams();
42605
42630
  init_morphorepayrequest();
42606
- init_morphosetvaultallowanceparams();
42607
- init_morphosetvaultallowancerequest();
42608
42631
  init_morphosupplycollateralparams();
42609
42632
  init_morphosupplycollateralrequest();
42610
42633
  init_morphovault();
@@ -42642,6 +42665,8 @@ var init_components = __esm(() => {
42642
42665
  init_repay();
42643
42666
  init_reserve();
42644
42667
  init_security2();
42668
+ init_setallowanceparams();
42669
+ init_setallowancerequest();
42645
42670
  init_signedauthorization();
42646
42671
  init_skybuyparams();
42647
42672
  init_skybuyrequest();
@@ -42689,7 +42714,9 @@ var init_components = __esm(() => {
42689
42714
  init_userstate();
42690
42715
  init_validationerror();
42691
42716
  init_vault();
42717
+ init_vaultdepositrequest();
42692
42718
  init_vaultposition();
42719
+ init_vaultwithdrawrequest();
42693
42720
  init_weeklyapys();
42694
42721
  init_wrapethparams();
42695
42722
  init_wrapethrequest();
@@ -42848,8 +42875,8 @@ var init_aavehistoricaltransactions = __esm(() => {
42848
42875
  AaveHistoricalTransactionsRequest$inboundSchema = objectType({
42849
42876
  offset: numberType().int().default(0),
42850
42877
  limit: numberType().int().default(100),
42851
- chain: AaveHistoricalTransactionsChain$inboundSchema.default("arbitrum:mainnet"),
42852
- user_address: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
42878
+ chain: AaveHistoricalTransactionsChain$inboundSchema.default("base:mainnet"),
42879
+ user_address: stringType().default("0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07")
42853
42880
  }).transform((v2) => {
42854
42881
  return remap(v2, {
42855
42882
  user_address: "userAddress"
@@ -42858,8 +42885,8 @@ var init_aavehistoricaltransactions = __esm(() => {
42858
42885
  AaveHistoricalTransactionsRequest$outboundSchema = objectType({
42859
42886
  offset: numberType().int().default(0),
42860
42887
  limit: numberType().int().default(100),
42861
- chain: AaveHistoricalTransactionsChain$outboundSchema.default("arbitrum:mainnet"),
42862
- userAddress: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
42888
+ chain: AaveHistoricalTransactionsChain$outboundSchema.default("base:mainnet"),
42889
+ userAddress: stringType().default("0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07")
42863
42890
  }).transform((v2) => {
42864
42891
  return remap(v2, {
42865
42892
  userAddress: "user_address"
@@ -43369,15 +43396,15 @@ var init_aaveuserpositionpertoken = __esm(() => {
43369
43396
  AaveUserPositionPerTokenToken$.outboundSchema = AaveUserPositionPerTokenToken$outboundSchema;
43370
43397
  })(AaveUserPositionPerTokenToken$ ||= {});
43371
43398
  AaveUserPositionPerTokenRequest$inboundSchema = objectType({
43372
- chain: AaveUserPositionPerTokenChain$inboundSchema.default("arbitrum:mainnet"),
43399
+ chain: AaveUserPositionPerTokenChain$inboundSchema.default("base:mainnet"),
43373
43400
  block: nullableType(numberType().int()).optional(),
43374
- user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
43401
+ user: stringType().default("0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07"),
43375
43402
  token: AaveUserPositionPerTokenToken$inboundSchema.default("USDC")
43376
43403
  });
43377
43404
  AaveUserPositionPerTokenRequest$outboundSchema = objectType({
43378
- chain: AaveUserPositionPerTokenChain$outboundSchema.default("arbitrum:mainnet"),
43405
+ chain: AaveUserPositionPerTokenChain$outboundSchema.default("base:mainnet"),
43379
43406
  block: nullableType(numberType().int()).optional(),
43380
- user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
43407
+ user: stringType().default("0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07"),
43381
43408
  token: AaveUserPositionPerTokenToken$outboundSchema.default("USDC")
43382
43409
  });
43383
43410
  ((AaveUserPositionPerTokenRequest$) => {
@@ -43402,14 +43429,14 @@ var init_aaveuserpositionsummary = __esm(() => {
43402
43429
  AaveUserPositionSummaryChain$.outboundSchema = AaveUserPositionSummaryChain$outboundSchema;
43403
43430
  })(AaveUserPositionSummaryChain$ ||= {});
43404
43431
  AaveUserPositionSummaryRequest$inboundSchema = objectType({
43405
- chain: AaveUserPositionSummaryChain$inboundSchema.default("arbitrum:mainnet"),
43432
+ chain: AaveUserPositionSummaryChain$inboundSchema.default("base:mainnet"),
43406
43433
  block: nullableType(numberType().int()).optional(),
43407
- user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
43434
+ user: stringType().default("0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07")
43408
43435
  });
43409
43436
  AaveUserPositionSummaryRequest$outboundSchema = objectType({
43410
- chain: AaveUserPositionSummaryChain$outboundSchema.default("arbitrum:mainnet"),
43437
+ chain: AaveUserPositionSummaryChain$outboundSchema.default("base:mainnet"),
43411
43438
  block: nullableType(numberType().int()).optional(),
43412
- user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
43439
+ user: stringType().default("0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07")
43413
43440
  });
43414
43441
  ((AaveUserPositionSummaryRequest$) => {
43415
43442
  AaveUserPositionSummaryRequest$.inboundSchema = AaveUserPositionSummaryRequest$inboundSchema;
@@ -43597,17 +43624,16 @@ var init_aerodromeslipstreampoolprice = __esm(() => {
43597
43624
  });
43598
43625
 
43599
43626
  // src/models/operations/genericallowance.ts
43600
- var GenericAllowanceChain, ContractName, GenericAllowanceChain$inboundSchema, GenericAllowanceChain$outboundSchema, GenericAllowanceChain$, GenericAllowanceToken$inboundSchema, GenericAllowanceToken$outboundSchema, GenericAllowanceToken$, ContractName$inboundSchema, ContractName$outboundSchema, ContractName$, GenericAllowanceRequest$inboundSchema, GenericAllowanceRequest$outboundSchema, GenericAllowanceRequest$;
43627
+ var GenericAllowanceChain, ContractEnum, GenericAllowanceChain$inboundSchema, GenericAllowanceChain$outboundSchema, GenericAllowanceChain$, GenericAllowanceToken$inboundSchema, GenericAllowanceToken$outboundSchema, GenericAllowanceToken$, ContractEnum$inboundSchema, ContractEnum$outboundSchema, ContractEnum$, Contract$inboundSchema, Contract$outboundSchema, Contract$, GenericAllowanceRequest$inboundSchema, GenericAllowanceRequest$outboundSchema, GenericAllowanceRequest$;
43601
43628
  var init_genericallowance = __esm(() => {
43602
43629
  init_esm();
43603
- init_primitives();
43604
43630
  init_components();
43605
43631
  GenericAllowanceChain = {
43606
43632
  BaseMainnet: "base:mainnet",
43607
43633
  EthereumMainnet: "ethereum:mainnet",
43608
43634
  ArbitrumMainnet: "arbitrum:mainnet"
43609
43635
  };
43610
- ContractName = {
43636
+ ContractEnum = {
43611
43637
  AaveV3Pool: "AaveV3Pool",
43612
43638
  AerodromeBasicRouter: "AerodromeBasicRouter",
43613
43639
  AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
@@ -43632,31 +43658,29 @@ var init_genericallowance = __esm(() => {
43632
43658
  GenericAllowanceToken$.inboundSchema = GenericAllowanceToken$inboundSchema;
43633
43659
  GenericAllowanceToken$.outboundSchema = GenericAllowanceToken$outboundSchema;
43634
43660
  })(GenericAllowanceToken$ ||= {});
43635
- ContractName$inboundSchema = nativeEnumType(ContractName);
43636
- ContractName$outboundSchema = ContractName$inboundSchema;
43637
- ((ContractName$) => {
43638
- ContractName$.inboundSchema = ContractName$inboundSchema;
43639
- ContractName$.outboundSchema = ContractName$outboundSchema;
43640
- })(ContractName$ ||= {});
43661
+ ContractEnum$inboundSchema = nativeEnumType(ContractEnum);
43662
+ ContractEnum$outboundSchema = ContractEnum$inboundSchema;
43663
+ ((ContractEnum$) => {
43664
+ ContractEnum$.inboundSchema = ContractEnum$inboundSchema;
43665
+ ContractEnum$.outboundSchema = ContractEnum$outboundSchema;
43666
+ })(ContractEnum$ ||= {});
43667
+ Contract$inboundSchema = unionType([ContractEnum$inboundSchema, stringType()]);
43668
+ Contract$outboundSchema = unionType([ContractEnum$outboundSchema, stringType()]);
43669
+ ((Contract$) => {
43670
+ Contract$.inboundSchema = Contract$inboundSchema;
43671
+ Contract$.outboundSchema = Contract$outboundSchema;
43672
+ })(Contract$ ||= {});
43641
43673
  GenericAllowanceRequest$inboundSchema = objectType({
43642
43674
  chain: GenericAllowanceChain$inboundSchema.default("arbitrum:mainnet"),
43643
43675
  user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
43644
43676
  token: unionType([TokenEnum$inboundSchema, stringType()]),
43645
- contract_name: ContractName$inboundSchema.default("AaveV3Pool")
43646
- }).transform((v2) => {
43647
- return remap(v2, {
43648
- contract_name: "contractName"
43649
- });
43677
+ contract: unionType([ContractEnum$inboundSchema, stringType()])
43650
43678
  });
43651
43679
  GenericAllowanceRequest$outboundSchema = objectType({
43652
43680
  chain: GenericAllowanceChain$outboundSchema.default("arbitrum:mainnet"),
43653
43681
  user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
43654
43682
  token: unionType([TokenEnum$outboundSchema, stringType()]),
43655
- contractName: ContractName$outboundSchema.default("AaveV3Pool")
43656
- }).transform((v2) => {
43657
- return remap(v2, {
43658
- contractName: "contract_name"
43659
- });
43683
+ contract: unionType([ContractEnum$outboundSchema, stringType()])
43660
43684
  });
43661
43685
  ((GenericAllowanceRequest$) => {
43662
43686
  GenericAllowanceRequest$.inboundSchema = GenericAllowanceRequest$inboundSchema;
@@ -47334,118 +47358,11 @@ token and are willing to accept the resulting amount of the other token.`,
47334
47358
  };
47335
47359
  });
47336
47360
 
47337
- // src/funcs/morphoAllowance.ts
47338
- function morphoAllowance(client, request, options) {
47339
- return new APIPromise($do21(client, request, options));
47340
- }
47341
- async function $do21(client, request, options) {
47342
- const parsed = safeParse(request, (value) => MorphoSetVaultAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
47343
- if (!parsed.ok) {
47344
- return [parsed, { status: "invalid" }];
47345
- }
47346
- const payload = parsed.value;
47347
- const body = encodeJSON("body", payload, { explode: true });
47348
- const path = pathToFunc("/v0/morpho/allowance")();
47349
- const headers = new Headers(compactMap({
47350
- "Content-Type": "application/json",
47351
- Accept: "application/json"
47352
- }));
47353
- const secConfig = await extractSecurity(client._options.apiKeyAuth);
47354
- const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
47355
- const requestSecurity = resolveGlobalSecurity(securityInput);
47356
- const context = {
47357
- options: client._options,
47358
- baseURL: options?.serverURL ?? client._baseURL ?? "",
47359
- operationID: "morpho_allowance",
47360
- oAuth2Scopes: [],
47361
- resolvedSecurity: requestSecurity,
47362
- securitySource: client._options.apiKeyAuth,
47363
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
47364
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
47365
- };
47366
- const requestRes = client._createRequest(context, {
47367
- security: requestSecurity,
47368
- method: "POST",
47369
- baseURL: options?.serverURL,
47370
- path,
47371
- headers,
47372
- body,
47373
- userAgent: client._options.userAgent,
47374
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
47375
- }, options);
47376
- if (!requestRes.ok) {
47377
- return [requestRes, { status: "invalid" }];
47378
- }
47379
- const req = requestRes.value;
47380
- const doResult = await client._do(req, {
47381
- context,
47382
- errorCodes: ["422", "4XX", "5XX"],
47383
- retryConfig: context.retryConfig,
47384
- retryCodes: context.retryCodes
47385
- });
47386
- if (!doResult.ok) {
47387
- return [doResult, { status: "request-error", request: req }];
47388
- }
47389
- const response = doResult.value;
47390
- const responseFields = {
47391
- HttpMeta: { Response: response, Request: req }
47392
- };
47393
- const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
47394
- if (!result.ok) {
47395
- return [result, { status: "complete", request: req, response }];
47396
- }
47397
- return [result, { status: "complete", request: req, response }];
47398
- }
47399
- var init_morphoAllowance = __esm(() => {
47400
- init_encodings();
47401
- init_matchers();
47402
- init_primitives();
47403
- init_schemas();
47404
- init_security();
47405
- init_url();
47406
- init_components();
47407
- init_errors2();
47408
- init_async();
47409
- });
47410
-
47411
- // src/mcp-server/tools/morphoAllowance.ts
47412
- var args21, tool$morphoAllowance;
47413
- var init_morphoAllowance2 = __esm(() => {
47414
- init_morphoAllowance();
47415
- init_components();
47416
- init_tools();
47417
- args21 = {
47418
- request: MorphoSetVaultAllowanceRequest$inboundSchema
47419
- };
47420
- tool$morphoAllowance = {
47421
- name: "morpho-allowance",
47422
- description: `Set Allowance for Vault
47423
-
47424
- Set an allowance for a Morpho vault. You must set this for at least the amount you wish to deposit - before depositing.
47425
-
47426
- Each vault has only one associated token that can be deposited.
47427
-
47428
- Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
47429
- args: args21,
47430
- tool: async (client, args22, ctx) => {
47431
- const [result, apiCall] = await morphoAllowance(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47432
- if (!result.ok) {
47433
- return {
47434
- content: [{ type: "text", text: result.error.message }],
47435
- isError: true
47436
- };
47437
- }
47438
- const value = result.value;
47439
- return formatResult(value, apiCall);
47440
- }
47441
- };
47442
- });
47443
-
47444
47361
  // src/funcs/morphoBorrow.ts
47445
47362
  function morphoBorrow(client, request, options) {
47446
- return new APIPromise($do22(client, request, options));
47363
+ return new APIPromise($do21(client, request, options));
47447
47364
  }
47448
- async function $do22(client, request, options) {
47365
+ async function $do21(client, request, options) {
47449
47366
  const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
47450
47367
  if (!parsed.ok) {
47451
47368
  return [parsed, { status: "invalid" }];
@@ -47516,12 +47433,12 @@ var init_morphoBorrow = __esm(() => {
47516
47433
  });
47517
47434
 
47518
47435
  // src/mcp-server/tools/morphoBorrow.ts
47519
- var args22, tool$morphoBorrow;
47436
+ var args21, tool$morphoBorrow;
47520
47437
  var init_morphoBorrow2 = __esm(() => {
47521
47438
  init_morphoBorrow();
47522
47439
  init_components();
47523
47440
  init_tools();
47524
- args22 = {
47441
+ args21 = {
47525
47442
  request: MorphoBorrowRequest$inboundSchema
47526
47443
  };
47527
47444
  tool$morphoBorrow = {
@@ -47537,9 +47454,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
47537
47454
  loan asset. Each market is isolated (meaning risks are contained within each
47538
47455
  individual market), immutable (cannot be changed after deployment), and will persist
47539
47456
  as long as the blockchain it is deployed on is live.`,
47540
- args: args22,
47541
- tool: async (client, args23, ctx) => {
47542
- const [result, apiCall] = await morphoBorrow(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47457
+ args: args21,
47458
+ tool: async (client, args22, ctx) => {
47459
+ const [result, apiCall] = await morphoBorrow(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47543
47460
  if (!result.ok) {
47544
47461
  return {
47545
47462
  content: [{ type: "text", text: result.error.message }],
@@ -47554,9 +47471,9 @@ as long as the blockchain it is deployed on is live.`,
47554
47471
 
47555
47472
  // src/funcs/morphoDeposit.ts
47556
47473
  function morphoDeposit(client, request, options) {
47557
- return new APIPromise($do23(client, request, options));
47474
+ return new APIPromise($do22(client, request, options));
47558
47475
  }
47559
- async function $do23(client, request, options) {
47476
+ async function $do22(client, request, options) {
47560
47477
  const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
47561
47478
  if (!parsed.ok) {
47562
47479
  return [parsed, { status: "invalid" }];
@@ -47627,12 +47544,12 @@ var init_morphoDeposit = __esm(() => {
47627
47544
  });
47628
47545
 
47629
47546
  // src/mcp-server/tools/morphoDeposit.ts
47630
- var args23, tool$morphoDeposit;
47547
+ var args22, tool$morphoDeposit;
47631
47548
  var init_morphoDeposit2 = __esm(() => {
47632
47549
  init_morphoDeposit();
47633
47550
  init_components();
47634
47551
  init_tools();
47635
- args23 = {
47552
+ args22 = {
47636
47553
  request: MorphoDepositRequest$inboundSchema
47637
47554
  };
47638
47555
  tool$morphoDeposit = {
@@ -47650,9 +47567,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
47650
47567
  exposure for all deposited assets so users don't need to make these decisions
47651
47568
  themselves. Users maintain full control over their assets, can monitor the vault's
47652
47569
  state at any time, and withdraw their liquidity at their discretion.`,
47653
- args: args23,
47654
- tool: async (client, args24, ctx) => {
47655
- const [result, apiCall] = await morphoDeposit(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47570
+ args: args22,
47571
+ tool: async (client, args23, ctx) => {
47572
+ const [result, apiCall] = await morphoDeposit(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47656
47573
  if (!result.ok) {
47657
47574
  return {
47658
47575
  content: [{ type: "text", text: result.error.message }],
@@ -47667,9 +47584,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
47667
47584
 
47668
47585
  // src/funcs/morphoMarket.ts
47669
47586
  function morphoMarket(client, request, options) {
47670
- return new APIPromise($do24(client, request, options));
47587
+ return new APIPromise($do23(client, request, options));
47671
47588
  }
47672
- async function $do24(client, request, options) {
47589
+ async function $do23(client, request, options) {
47673
47590
  const parsed = safeParse(request, (value) => MorphoMarketRequest$outboundSchema.parse(value), "Input validation failed");
47674
47591
  if (!parsed.ok) {
47675
47592
  return [parsed, { status: "invalid" }];
@@ -47745,12 +47662,12 @@ var init_morphoMarket = __esm(() => {
47745
47662
  });
47746
47663
 
47747
47664
  // src/mcp-server/tools/morphoMarket.ts
47748
- var args24, tool$morphoMarket;
47665
+ var args23, tool$morphoMarket;
47749
47666
  var init_morphoMarket2 = __esm(() => {
47750
47667
  init_morphoMarket();
47751
47668
  init_operations();
47752
47669
  init_tools();
47753
- args24 = {
47670
+ args23 = {
47754
47671
  request: MorphoMarketRequest$inboundSchema
47755
47672
  };
47756
47673
  tool$morphoMarket = {
@@ -47767,9 +47684,9 @@ Including:
47767
47684
  - Utilization ratio
47768
47685
  - Pertinent metadata
47769
47686
  - Whitelist status`,
47770
- args: args24,
47771
- tool: async (client, args25, ctx) => {
47772
- const [result, apiCall] = await morphoMarket(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47687
+ args: args23,
47688
+ tool: async (client, args24, ctx) => {
47689
+ const [result, apiCall] = await morphoMarket(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47773
47690
  if (!result.ok) {
47774
47691
  return {
47775
47692
  content: [{ type: "text", text: result.error.message }],
@@ -47784,9 +47701,9 @@ Including:
47784
47701
 
47785
47702
  // src/funcs/morphoMarketPosition.ts
47786
47703
  function morphoMarketPosition(client, request, options) {
47787
- return new APIPromise($do25(client, request, options));
47704
+ return new APIPromise($do24(client, request, options));
47788
47705
  }
47789
- async function $do25(client, request, options) {
47706
+ async function $do24(client, request, options) {
47790
47707
  const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
47791
47708
  if (!parsed.ok) {
47792
47709
  return [parsed, { status: "invalid" }];
@@ -47863,12 +47780,12 @@ var init_morphoMarketPosition = __esm(() => {
47863
47780
  });
47864
47781
 
47865
47782
  // src/mcp-server/tools/morphoMarketPosition.ts
47866
- var args25, tool$morphoMarketPosition;
47783
+ var args24, tool$morphoMarketPosition;
47867
47784
  var init_morphoMarketPosition2 = __esm(() => {
47868
47785
  init_morphoMarketPosition();
47869
47786
  init_operations();
47870
47787
  init_tools();
47871
- args25 = {
47788
+ args24 = {
47872
47789
  request: MorphoMarketPositionRequest$inboundSchema
47873
47790
  };
47874
47791
  tool$morphoMarketPosition = {
@@ -47877,9 +47794,9 @@ var init_morphoMarketPosition2 = __esm(() => {
47877
47794
 
47878
47795
  Check how many shares you've borrowed and the equivalent token amount of a given
47879
47796
  market.`,
47880
- args: args25,
47881
- tool: async (client, args26, ctx) => {
47882
- const [result, apiCall] = await morphoMarketPosition(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47797
+ args: args24,
47798
+ tool: async (client, args25, ctx) => {
47799
+ const [result, apiCall] = await morphoMarketPosition(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47883
47800
  if (!result.ok) {
47884
47801
  return {
47885
47802
  content: [{ type: "text", text: result.error.message }],
@@ -47894,9 +47811,9 @@ market.`,
47894
47811
 
47895
47812
  // src/funcs/morphoMarkets.ts
47896
47813
  function morphoMarkets(client, request, options) {
47897
- return new APIPromise($do26(client, request, options));
47814
+ return new APIPromise($do25(client, request, options));
47898
47815
  }
47899
- async function $do26(client, request, options) {
47816
+ async function $do25(client, request, options) {
47900
47817
  const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
47901
47818
  if (!parsed.ok) {
47902
47819
  return [parsed, { status: "invalid" }];
@@ -47973,12 +47890,12 @@ var init_morphoMarkets = __esm(() => {
47973
47890
  });
47974
47891
 
47975
47892
  // src/mcp-server/tools/morphoMarkets.ts
47976
- var args26, tool$morphoMarkets;
47893
+ var args25, tool$morphoMarkets;
47977
47894
  var init_morphoMarkets2 = __esm(() => {
47978
47895
  init_morphoMarkets();
47979
47896
  init_operations();
47980
47897
  init_tools();
47981
- args26 = {
47898
+ args25 = {
47982
47899
  request: MorphoMarketsRequest$inboundSchema
47983
47900
  };
47984
47901
  tool$morphoMarkets = {
@@ -47989,9 +47906,9 @@ Query a list of markets you can borrow from.
47989
47906
 
47990
47907
  Each market has one unique token that can be borrowed against one unique token that
47991
47908
  can be used as collateral.`,
47992
- args: args26,
47993
- tool: async (client, args27, ctx) => {
47994
- const [result, apiCall] = await morphoMarkets(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47909
+ args: args25,
47910
+ tool: async (client, args26, ctx) => {
47911
+ const [result, apiCall] = await morphoMarkets(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47995
47912
  if (!result.ok) {
47996
47913
  return {
47997
47914
  content: [{ type: "text", text: result.error.message }],
@@ -48006,9 +47923,9 @@ can be used as collateral.`,
48006
47923
 
48007
47924
  // src/funcs/morphoRepay.ts
48008
47925
  function morphoRepay(client, request, options) {
48009
- return new APIPromise($do27(client, request, options));
47926
+ return new APIPromise($do26(client, request, options));
48010
47927
  }
48011
- async function $do27(client, request, options) {
47928
+ async function $do26(client, request, options) {
48012
47929
  const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
48013
47930
  if (!parsed.ok) {
48014
47931
  return [parsed, { status: "invalid" }];
@@ -48079,12 +47996,12 @@ var init_morphoRepay = __esm(() => {
48079
47996
  });
48080
47997
 
48081
47998
  // src/mcp-server/tools/morphoRepay.ts
48082
- var args27, tool$morphoRepay;
47999
+ var args26, tool$morphoRepay;
48083
48000
  var init_morphoRepay2 = __esm(() => {
48084
48001
  init_morphoRepay();
48085
48002
  init_components();
48086
48003
  init_tools();
48087
- args27 = {
48004
+ args26 = {
48088
48005
  request: MorphoRepayRequest$inboundSchema
48089
48006
  };
48090
48007
  tool$morphoRepay = {
@@ -48097,9 +48014,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
48097
48014
  loan asset. Each market is isolated (meaning risks are contained within each
48098
48015
  individual market), immutable (cannot be changed after deployment), and will persist
48099
48016
  as long as the blockchain it is deployed on is live.`,
48100
- args: args27,
48101
- tool: async (client, args28, ctx) => {
48102
- const [result, apiCall] = await morphoRepay(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48017
+ args: args26,
48018
+ tool: async (client, args27, ctx) => {
48019
+ const [result, apiCall] = await morphoRepay(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48103
48020
  if (!result.ok) {
48104
48021
  return {
48105
48022
  content: [{ type: "text", text: result.error.message }],
@@ -48114,9 +48031,9 @@ as long as the blockchain it is deployed on is live.`,
48114
48031
 
48115
48032
  // src/funcs/morphoSupplyCollateral.ts
48116
48033
  function morphoSupplyCollateral(client, request, options) {
48117
- return new APIPromise($do28(client, request, options));
48034
+ return new APIPromise($do27(client, request, options));
48118
48035
  }
48119
- async function $do28(client, request, options) {
48036
+ async function $do27(client, request, options) {
48120
48037
  const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
48121
48038
  if (!parsed.ok) {
48122
48039
  return [parsed, { status: "invalid" }];
@@ -48187,12 +48104,12 @@ var init_morphoSupplyCollateral = __esm(() => {
48187
48104
  });
48188
48105
 
48189
48106
  // src/mcp-server/tools/morphoSupplyCollateral.ts
48190
- var args28, tool$morphoSupplyCollateral;
48107
+ var args27, tool$morphoSupplyCollateral;
48191
48108
  var init_morphoSupplyCollateral2 = __esm(() => {
48192
48109
  init_morphoSupplyCollateral();
48193
48110
  init_components();
48194
48111
  init_tools();
48195
- args28 = {
48112
+ args27 = {
48196
48113
  request: MorphoSupplyCollateralRequest$inboundSchema
48197
48114
  };
48198
48115
  tool$morphoSupplyCollateral = {
@@ -48205,9 +48122,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
48205
48122
  loan asset. Each market is isolated (meaning risks are contained within each
48206
48123
  individual market), immutable (cannot be changed after deployment), and will persist
48207
48124
  as long as the blockchain it is deployed on is live.`,
48208
- args: args28,
48209
- tool: async (client, args29, ctx) => {
48210
- const [result, apiCall] = await morphoSupplyCollateral(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48125
+ args: args27,
48126
+ tool: async (client, args28, ctx) => {
48127
+ const [result, apiCall] = await morphoSupplyCollateral(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48211
48128
  if (!result.ok) {
48212
48129
  return {
48213
48130
  content: [{ type: "text", text: result.error.message }],
@@ -48222,9 +48139,9 @@ as long as the blockchain it is deployed on is live.`,
48222
48139
 
48223
48140
  // src/funcs/morphoUserPosition.ts
48224
48141
  function morphoUserPosition(client, request, options) {
48225
- return new APIPromise($do29(client, request, options));
48142
+ return new APIPromise($do28(client, request, options));
48226
48143
  }
48227
- async function $do29(client, request, options) {
48144
+ async function $do28(client, request, options) {
48228
48145
  const parsed = safeParse(request, (value) => MorphoUserPositionRequest$outboundSchema.parse(value), "Input validation failed");
48229
48146
  if (!parsed.ok) {
48230
48147
  return [parsed, { status: "invalid" }];
@@ -48300,12 +48217,12 @@ var init_morphoUserPosition = __esm(() => {
48300
48217
  });
48301
48218
 
48302
48219
  // src/mcp-server/tools/morphoUserPosition.ts
48303
- var args29, tool$morphoUserPosition;
48220
+ var args28, tool$morphoUserPosition;
48304
48221
  var init_morphoUserPosition2 = __esm(() => {
48305
48222
  init_morphoUserPosition();
48306
48223
  init_operations();
48307
48224
  init_tools();
48308
- args29 = {
48225
+ args28 = {
48309
48226
  request: MorphoUserPositionRequest$inboundSchema
48310
48227
  };
48311
48228
  tool$morphoUserPosition = {
@@ -48316,9 +48233,9 @@ Check user's overall position across the entire Morpho ecosystem.
48316
48233
 
48317
48234
  Inlcuding all vault and market position metrics and relavant metadata of said vaults
48318
48235
  and markets.`,
48319
- args: args29,
48320
- tool: async (client, args30, ctx) => {
48321
- const [result, apiCall] = await morphoUserPosition(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48236
+ args: args28,
48237
+ tool: async (client, args29, ctx) => {
48238
+ const [result, apiCall] = await morphoUserPosition(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48322
48239
  if (!result.ok) {
48323
48240
  return {
48324
48241
  content: [{ type: "text", text: result.error.message }],
@@ -48333,9 +48250,9 @@ and markets.`,
48333
48250
 
48334
48251
  // src/funcs/morphoVault.ts
48335
48252
  function morphoVault(client, request, options) {
48336
- return new APIPromise($do30(client, request, options));
48253
+ return new APIPromise($do29(client, request, options));
48337
48254
  }
48338
- async function $do30(client, request, options) {
48255
+ async function $do29(client, request, options) {
48339
48256
  const parsed = safeParse(request, (value) => MorphoVaultRequest$outboundSchema.parse(value), "Input validation failed");
48340
48257
  if (!parsed.ok) {
48341
48258
  return [parsed, { status: "invalid" }];
@@ -48411,12 +48328,12 @@ var init_morphoVault = __esm(() => {
48411
48328
  });
48412
48329
 
48413
48330
  // src/mcp-server/tools/morphoVault.ts
48414
- var args30, tool$morphoVault;
48331
+ var args29, tool$morphoVault;
48415
48332
  var init_morphoVault2 = __esm(() => {
48416
48333
  init_morphoVault();
48417
48334
  init_operations();
48418
48335
  init_tools();
48419
- args30 = {
48336
+ args29 = {
48420
48337
  request: MorphoVaultRequest$inboundSchema
48421
48338
  };
48422
48339
  tool$morphoVault = {
@@ -48431,9 +48348,9 @@ Including:
48431
48348
  - Total liquidity
48432
48349
  - Pertinent metadata
48433
48350
  - Whitelist status`,
48434
- args: args30,
48435
- tool: async (client, args31, ctx) => {
48436
- const [result, apiCall] = await morphoVault(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48351
+ args: args29,
48352
+ tool: async (client, args30, ctx) => {
48353
+ const [result, apiCall] = await morphoVault(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48437
48354
  if (!result.ok) {
48438
48355
  return {
48439
48356
  content: [{ type: "text", text: result.error.message }],
@@ -48448,9 +48365,9 @@ Including:
48448
48365
 
48449
48366
  // src/funcs/morphoVaultPosition.ts
48450
48367
  function morphoVaultPosition(client, request, options) {
48451
- return new APIPromise($do31(client, request, options));
48368
+ return new APIPromise($do30(client, request, options));
48452
48369
  }
48453
- async function $do31(client, request, options) {
48370
+ async function $do30(client, request, options) {
48454
48371
  const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
48455
48372
  if (!parsed.ok) {
48456
48373
  return [parsed, { status: "invalid" }];
@@ -48527,12 +48444,12 @@ var init_morphoVaultPosition = __esm(() => {
48527
48444
  });
48528
48445
 
48529
48446
  // src/mcp-server/tools/morphoVaultPosition.ts
48530
- var args31, tool$morphoVaultPosition;
48447
+ var args30, tool$morphoVaultPosition;
48531
48448
  var init_morphoVaultPosition2 = __esm(() => {
48532
48449
  init_morphoVaultPosition();
48533
48450
  init_operations();
48534
48451
  init_tools();
48535
- args31 = {
48452
+ args30 = {
48536
48453
  request: MorphoVaultPositionRequest$inboundSchema
48537
48454
  };
48538
48455
  tool$morphoVaultPosition = {
@@ -48541,9 +48458,9 @@ var init_morphoVaultPosition2 = __esm(() => {
48541
48458
 
48542
48459
  Check how many shares you own and the equivalent token amount of a given
48543
48460
  vault.`,
48544
- args: args31,
48545
- tool: async (client, args32, ctx) => {
48546
- const [result, apiCall] = await morphoVaultPosition(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48461
+ args: args30,
48462
+ tool: async (client, args31, ctx) => {
48463
+ const [result, apiCall] = await morphoVaultPosition(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48547
48464
  if (!result.ok) {
48548
48465
  return {
48549
48466
  content: [{ type: "text", text: result.error.message }],
@@ -48558,9 +48475,9 @@ vault.`,
48558
48475
 
48559
48476
  // src/funcs/morphoVaults.ts
48560
48477
  function morphoVaults(client, request, options) {
48561
- return new APIPromise($do32(client, request, options));
48478
+ return new APIPromise($do31(client, request, options));
48562
48479
  }
48563
- async function $do32(client, request, options) {
48480
+ async function $do31(client, request, options) {
48564
48481
  const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
48565
48482
  if (!parsed.ok) {
48566
48483
  return [parsed, { status: "invalid" }];
@@ -48636,12 +48553,12 @@ var init_morphoVaults = __esm(() => {
48636
48553
  });
48637
48554
 
48638
48555
  // src/mcp-server/tools/morphoVaults.ts
48639
- var args32, tool$morphoVaults;
48556
+ var args31, tool$morphoVaults;
48640
48557
  var init_morphoVaults2 = __esm(() => {
48641
48558
  init_morphoVaults();
48642
48559
  init_operations();
48643
48560
  init_tools();
48644
- args32 = {
48561
+ args31 = {
48645
48562
  request: MorphoVaultsRequest$inboundSchema
48646
48563
  };
48647
48564
  tool$morphoVaults = {
@@ -48653,9 +48570,9 @@ Query a list of vaults you can deposit into.
48653
48570
  Each vault has one unique token that can be deposited. In exchange for depositing
48654
48571
  tokens into a vault you receive shares. You earn yield on these shares by their
48655
48572
  exchange value increasing over time.`,
48656
- args: args32,
48657
- tool: async (client, args33, ctx) => {
48658
- const [result, apiCall] = await morphoVaults(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48573
+ args: args31,
48574
+ tool: async (client, args32, ctx) => {
48575
+ const [result, apiCall] = await morphoVaults(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48659
48576
  if (!result.ok) {
48660
48577
  return {
48661
48578
  content: [{ type: "text", text: result.error.message }],
@@ -48670,9 +48587,9 @@ exchange value increasing over time.`,
48670
48587
 
48671
48588
  // src/funcs/morphoWithdraw.ts
48672
48589
  function morphoWithdraw(client, request, options) {
48673
- return new APIPromise($do33(client, request, options));
48590
+ return new APIPromise($do32(client, request, options));
48674
48591
  }
48675
- async function $do33(client, request, options) {
48592
+ async function $do32(client, request, options) {
48676
48593
  const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
48677
48594
  if (!parsed.ok) {
48678
48595
  return [parsed, { status: "invalid" }];
@@ -48743,12 +48660,12 @@ var init_morphoWithdraw = __esm(() => {
48743
48660
  });
48744
48661
 
48745
48662
  // src/mcp-server/tools/morphoWithdraw.ts
48746
- var args33, tool$morphoWithdraw;
48663
+ var args32, tool$morphoWithdraw;
48747
48664
  var init_morphoWithdraw2 = __esm(() => {
48748
48665
  init_morphoWithdraw();
48749
48666
  init_components();
48750
48667
  init_tools();
48751
- args33 = {
48668
+ args32 = {
48752
48669
  request: MorphoWithdrawRequest$inboundSchema
48753
48670
  };
48754
48671
  tool$morphoWithdraw = {
@@ -48766,9 +48683,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
48766
48683
  exposure for all deposited assets so users don't need to make these decisions
48767
48684
  themselves. Users maintain full control over their assets, can monitor the vault's
48768
48685
  state at any time, and withdraw their liquidity at their discretion.`,
48769
- args: args33,
48770
- tool: async (client, args34, ctx) => {
48771
- const [result, apiCall] = await morphoWithdraw(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48686
+ args: args32,
48687
+ tool: async (client, args33, ctx) => {
48688
+ const [result, apiCall] = await morphoWithdraw(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48772
48689
  if (!result.ok) {
48773
48690
  return {
48774
48691
  content: [{ type: "text", text: result.error.message }],
@@ -48783,9 +48700,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
48783
48700
 
48784
48701
  // src/funcs/morphoWithdrawCollateral.ts
48785
48702
  function morphoWithdrawCollateral(client, request, options) {
48786
- return new APIPromise($do34(client, request, options));
48703
+ return new APIPromise($do33(client, request, options));
48787
48704
  }
48788
- async function $do34(client, request, options) {
48705
+ async function $do33(client, request, options) {
48789
48706
  const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
48790
48707
  if (!parsed.ok) {
48791
48708
  return [parsed, { status: "invalid" }];
@@ -48856,12 +48773,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
48856
48773
  });
48857
48774
 
48858
48775
  // src/mcp-server/tools/morphoWithdrawCollateral.ts
48859
- var args34, tool$morphoWithdrawCollateral;
48776
+ var args33, tool$morphoWithdrawCollateral;
48860
48777
  var init_morphoWithdrawCollateral2 = __esm(() => {
48861
48778
  init_morphoWithdrawCollateral();
48862
48779
  init_components();
48863
48780
  init_tools();
48864
- args34 = {
48781
+ args33 = {
48865
48782
  request: MorphoWithdrawCollateralRequest$inboundSchema
48866
48783
  };
48867
48784
  tool$morphoWithdrawCollateral = {
@@ -48874,9 +48791,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
48874
48791
  loan asset. Each market is isolated (meaning risks are contained within each
48875
48792
  individual market), immutable (cannot be changed after deployment), and will persist
48876
48793
  as long as the blockchain it is deployed on is live.`,
48877
- args: args34,
48878
- tool: async (client, args35, ctx) => {
48879
- const [result, apiCall] = await morphoWithdrawCollateral(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48794
+ args: args33,
48795
+ tool: async (client, args34, ctx) => {
48796
+ const [result, apiCall] = await morphoWithdrawCollateral(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48880
48797
  if (!result.ok) {
48881
48798
  return {
48882
48799
  content: [{ type: "text", text: result.error.message }],
@@ -48891,9 +48808,9 @@ as long as the blockchain it is deployed on is live.`,
48891
48808
 
48892
48809
  // src/funcs/pendleAddLiquidity.ts
48893
48810
  function pendleAddLiquidity(client, request, options) {
48894
- return new APIPromise($do35(client, request, options));
48811
+ return new APIPromise($do34(client, request, options));
48895
48812
  }
48896
- async function $do35(client, request, options) {
48813
+ async function $do34(client, request, options) {
48897
48814
  const parsed = safeParse(request, (value) => PendleAddLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
48898
48815
  if (!parsed.ok) {
48899
48816
  return [parsed, { status: "invalid" }];
@@ -48964,12 +48881,12 @@ var init_pendleAddLiquidity = __esm(() => {
48964
48881
  });
48965
48882
 
48966
48883
  // src/mcp-server/tools/pendleAddLiquidity.ts
48967
- var args35, tool$pendleAddLiquidity;
48884
+ var args34, tool$pendleAddLiquidity;
48968
48885
  var init_pendleAddLiquidity2 = __esm(() => {
48969
48886
  init_pendleAddLiquidity();
48970
48887
  init_components();
48971
48888
  init_tools();
48972
- args35 = {
48889
+ args34 = {
48973
48890
  request: PendleAddLiquidityRequest$inboundSchema
48974
48891
  };
48975
48892
  tool$pendleAddLiquidity = {
@@ -48980,9 +48897,9 @@ Add liquidity to a Pendle Market to earn yield.
48980
48897
 
48981
48898
  Liquidity is added in the form of the market's Underlying Token. Representation of
48982
48899
  the liquidity received is the market's Liquidity Provider Token (LP).`,
48983
- args: args35,
48984
- tool: async (client, args36, ctx) => {
48985
- const [result, apiCall] = await pendleAddLiquidity(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48900
+ args: args34,
48901
+ tool: async (client, args35, ctx) => {
48902
+ const [result, apiCall] = await pendleAddLiquidity(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48986
48903
  if (!result.ok) {
48987
48904
  return {
48988
48905
  content: [{ type: "text", text: result.error.message }],
@@ -48997,9 +48914,9 @@ the liquidity received is the market's Liquidity Provider Token (LP).`,
48997
48914
 
48998
48915
  // src/funcs/pendleBuyPt.ts
48999
48916
  function pendleBuyPt(client, request, options) {
49000
- return new APIPromise($do36(client, request, options));
48917
+ return new APIPromise($do35(client, request, options));
49001
48918
  }
49002
- async function $do36(client, request, options) {
48919
+ async function $do35(client, request, options) {
49003
48920
  const parsed = safeParse(request, (value) => PendleBuyPtRequest$outboundSchema.parse(value), "Input validation failed");
49004
48921
  if (!parsed.ok) {
49005
48922
  return [parsed, { status: "invalid" }];
@@ -49070,12 +48987,12 @@ var init_pendleBuyPt = __esm(() => {
49070
48987
  });
49071
48988
 
49072
48989
  // src/mcp-server/tools/pendleBuyPt.ts
49073
- var args36, tool$pendleBuyPt;
48990
+ var args35, tool$pendleBuyPt;
49074
48991
  var init_pendleBuyPt2 = __esm(() => {
49075
48992
  init_pendleBuyPt();
49076
48993
  init_components();
49077
48994
  init_tools();
49078
- args36 = {
48995
+ args35 = {
49079
48996
  request: PendleBuyPtRequest$inboundSchema
49080
48997
  };
49081
48998
  tool$pendleBuyPt = {
@@ -49083,9 +49000,9 @@ var init_pendleBuyPt2 = __esm(() => {
49083
49000
  description: `Buy Principal Token (PT)
49084
49001
 
49085
49002
  Buy Principal Token (PT) with market's Underlying Token.`,
49086
- args: args36,
49087
- tool: async (client, args37, ctx) => {
49088
- const [result, apiCall] = await pendleBuyPt(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49003
+ args: args35,
49004
+ tool: async (client, args36, ctx) => {
49005
+ const [result, apiCall] = await pendleBuyPt(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49089
49006
  if (!result.ok) {
49090
49007
  return {
49091
49008
  content: [{ type: "text", text: result.error.message }],
@@ -49100,9 +49017,9 @@ Buy Principal Token (PT) with market's Underlying Token.`,
49100
49017
 
49101
49018
  // src/funcs/pendleBuyYt.ts
49102
49019
  function pendleBuyYt(client, request, options) {
49103
- return new APIPromise($do37(client, request, options));
49020
+ return new APIPromise($do36(client, request, options));
49104
49021
  }
49105
- async function $do37(client, request, options) {
49022
+ async function $do36(client, request, options) {
49106
49023
  const parsed = safeParse(request, (value) => PendleBuyYtRequest$outboundSchema.parse(value), "Input validation failed");
49107
49024
  if (!parsed.ok) {
49108
49025
  return [parsed, { status: "invalid" }];
@@ -49173,12 +49090,12 @@ var init_pendleBuyYt = __esm(() => {
49173
49090
  });
49174
49091
 
49175
49092
  // src/mcp-server/tools/pendleBuyYt.ts
49176
- var args37, tool$pendleBuyYt;
49093
+ var args36, tool$pendleBuyYt;
49177
49094
  var init_pendleBuyYt2 = __esm(() => {
49178
49095
  init_pendleBuyYt();
49179
49096
  init_components();
49180
49097
  init_tools();
49181
- args37 = {
49098
+ args36 = {
49182
49099
  request: PendleBuyYtRequest$inboundSchema
49183
49100
  };
49184
49101
  tool$pendleBuyYt = {
@@ -49186,9 +49103,9 @@ var init_pendleBuyYt2 = __esm(() => {
49186
49103
  description: `Buy Yield Token (YT)
49187
49104
 
49188
49105
  Buy Yield Token (YT) with market's Underlying Token.`,
49189
- args: args37,
49190
- tool: async (client, args38, ctx) => {
49191
- const [result, apiCall] = await pendleBuyYt(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49106
+ args: args36,
49107
+ tool: async (client, args37, ctx) => {
49108
+ const [result, apiCall] = await pendleBuyYt(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49192
49109
  if (!result.ok) {
49193
49110
  return {
49194
49111
  content: [{ type: "text", text: result.error.message }],
@@ -49203,9 +49120,9 @@ Buy Yield Token (YT) with market's Underlying Token.`,
49203
49120
 
49204
49121
  // src/funcs/pendleMarket.ts
49205
49122
  function pendleMarket(client, request, options) {
49206
- return new APIPromise($do38(client, request, options));
49123
+ return new APIPromise($do37(client, request, options));
49207
49124
  }
49208
- async function $do38(client, request, options) {
49125
+ async function $do37(client, request, options) {
49209
49126
  const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
49210
49127
  if (!parsed.ok) {
49211
49128
  return [parsed, { status: "invalid" }];
@@ -49281,12 +49198,12 @@ var init_pendleMarket = __esm(() => {
49281
49198
  });
49282
49199
 
49283
49200
  // src/mcp-server/tools/pendleMarket.ts
49284
- var args38, tool$pendleMarket;
49201
+ var args37, tool$pendleMarket;
49285
49202
  var init_pendleMarket2 = __esm(() => {
49286
49203
  init_pendleMarket();
49287
49204
  init_operations();
49288
49205
  init_tools();
49289
- args38 = {
49206
+ args37 = {
49290
49207
  request: PendleMarketRequest$inboundSchema
49291
49208
  };
49292
49209
  tool$pendleMarket = {
@@ -49294,9 +49211,9 @@ var init_pendleMarket2 = __esm(() => {
49294
49211
  description: `Get Market Data
49295
49212
 
49296
49213
  Get the market's implied APY, maturity date and the associated token data.`,
49297
- args: args38,
49298
- tool: async (client, args39, ctx) => {
49299
- const [result, apiCall] = await pendleMarket(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49214
+ args: args37,
49215
+ tool: async (client, args38, ctx) => {
49216
+ const [result, apiCall] = await pendleMarket(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49300
49217
  if (!result.ok) {
49301
49218
  return {
49302
49219
  content: [{ type: "text", text: result.error.message }],
@@ -49311,9 +49228,9 @@ Get the market's implied APY, maturity date and the associated token data.`,
49311
49228
 
49312
49229
  // src/funcs/pendleMarkets.ts
49313
49230
  function pendleMarkets(client, request, options) {
49314
- return new APIPromise($do39(client, request, options));
49231
+ return new APIPromise($do38(client, request, options));
49315
49232
  }
49316
- async function $do39(client, request, options) {
49233
+ async function $do38(client, request, options) {
49317
49234
  const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
49318
49235
  if (!parsed.ok) {
49319
49236
  return [parsed, { status: "invalid" }];
@@ -49388,12 +49305,12 @@ var init_pendleMarkets = __esm(() => {
49388
49305
  });
49389
49306
 
49390
49307
  // src/mcp-server/tools/pendleMarkets.ts
49391
- var args39, tool$pendleMarkets;
49308
+ var args38, tool$pendleMarkets;
49392
49309
  var init_pendleMarkets2 = __esm(() => {
49393
49310
  init_pendleMarkets();
49394
49311
  init_operations();
49395
49312
  init_tools();
49396
- args39 = {
49313
+ args38 = {
49397
49314
  request: PendleMarketsRequest$inboundSchema
49398
49315
  };
49399
49316
  tool$pendleMarkets = {
@@ -49401,9 +49318,9 @@ var init_pendleMarkets2 = __esm(() => {
49401
49318
  description: `List Market Data
49402
49319
 
49403
49320
  Get a list of active markets.`,
49404
- args: args39,
49405
- tool: async (client, args40, ctx) => {
49406
- const [result, apiCall] = await pendleMarkets(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49321
+ args: args38,
49322
+ tool: async (client, args39, ctx) => {
49323
+ const [result, apiCall] = await pendleMarkets(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49407
49324
  if (!result.ok) {
49408
49325
  return {
49409
49326
  content: [{ type: "text", text: result.error.message }],
@@ -49418,9 +49335,9 @@ Get a list of active markets.`,
49418
49335
 
49419
49336
  // src/funcs/pendlePosition.ts
49420
49337
  function pendlePosition(client, request, options) {
49421
- return new APIPromise($do40(client, request, options));
49338
+ return new APIPromise($do39(client, request, options));
49422
49339
  }
49423
- async function $do40(client, request, options) {
49340
+ async function $do39(client, request, options) {
49424
49341
  const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
49425
49342
  if (!parsed.ok) {
49426
49343
  return [parsed, { status: "invalid" }];
@@ -49497,12 +49414,12 @@ var init_pendlePosition = __esm(() => {
49497
49414
  });
49498
49415
 
49499
49416
  // src/mcp-server/tools/pendlePosition.ts
49500
- var args40, tool$pendlePosition;
49417
+ var args39, tool$pendlePosition;
49501
49418
  var init_pendlePosition2 = __esm(() => {
49502
49419
  init_pendlePosition();
49503
49420
  init_operations();
49504
49421
  init_tools();
49505
- args40 = {
49422
+ args39 = {
49506
49423
  request: PendlePositionRequest$inboundSchema
49507
49424
  };
49508
49425
  tool$pendlePosition = {
@@ -49510,9 +49427,9 @@ var init_pendlePosition2 = __esm(() => {
49510
49427
  description: `Check User's Market Position
49511
49428
 
49512
49429
  Check the SY, PT, YT and Underlying Token positions for a given market.`,
49513
- args: args40,
49514
- tool: async (client, args41, ctx) => {
49515
- const [result, apiCall] = await pendlePosition(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49430
+ args: args39,
49431
+ tool: async (client, args40, ctx) => {
49432
+ const [result, apiCall] = await pendlePosition(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49516
49433
  if (!result.ok) {
49517
49434
  return {
49518
49435
  content: [{ type: "text", text: result.error.message }],
@@ -49527,9 +49444,9 @@ Check the SY, PT, YT and Underlying Token positions for a given market.`,
49527
49444
 
49528
49445
  // src/funcs/pendlePositions.ts
49529
49446
  function pendlePositions(client, request, options) {
49530
- return new APIPromise($do41(client, request, options));
49447
+ return new APIPromise($do40(client, request, options));
49531
49448
  }
49532
- async function $do41(client, request, options) {
49449
+ async function $do40(client, request, options) {
49533
49450
  const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
49534
49451
  if (!parsed.ok) {
49535
49452
  return [parsed, { status: "invalid" }];
@@ -49605,12 +49522,12 @@ var init_pendlePositions = __esm(() => {
49605
49522
  });
49606
49523
 
49607
49524
  // src/mcp-server/tools/pendlePositions.ts
49608
- var args41, tool$pendlePositions;
49525
+ var args40, tool$pendlePositions;
49609
49526
  var init_pendlePositions2 = __esm(() => {
49610
49527
  init_pendlePositions();
49611
49528
  init_operations();
49612
49529
  init_tools();
49613
- args41 = {
49530
+ args40 = {
49614
49531
  request: PendlePositionsRequest$inboundSchema
49615
49532
  };
49616
49533
  tool$pendlePositions = {
@@ -49618,9 +49535,9 @@ var init_pendlePositions2 = __esm(() => {
49618
49535
  description: `List User's Market Positions
49619
49536
 
49620
49537
  List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
49621
- args: args41,
49622
- tool: async (client, args42, ctx) => {
49623
- const [result, apiCall] = await pendlePositions(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49538
+ args: args40,
49539
+ tool: async (client, args41, ctx) => {
49540
+ const [result, apiCall] = await pendlePositions(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49624
49541
  if (!result.ok) {
49625
49542
  return {
49626
49543
  content: [{ type: "text", text: result.error.message }],
@@ -49635,9 +49552,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
49635
49552
 
49636
49553
  // src/funcs/pendleRedeemYield.ts
49637
49554
  function pendleRedeemYield(client, request, options) {
49638
- return new APIPromise($do42(client, request, options));
49555
+ return new APIPromise($do41(client, request, options));
49639
49556
  }
49640
- async function $do42(client, request, options) {
49557
+ async function $do41(client, request, options) {
49641
49558
  const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
49642
49559
  if (!parsed.ok) {
49643
49560
  return [parsed, { status: "invalid" }];
@@ -49708,12 +49625,12 @@ var init_pendleRedeemYield = __esm(() => {
49708
49625
  });
49709
49626
 
49710
49627
  // src/mcp-server/tools/pendleRedeemYield.ts
49711
- var args42, tool$pendleRedeemYield;
49628
+ var args41, tool$pendleRedeemYield;
49712
49629
  var init_pendleRedeemYield2 = __esm(() => {
49713
49630
  init_pendleRedeemYield();
49714
49631
  init_components();
49715
49632
  init_tools();
49716
- args42 = {
49633
+ args41 = {
49717
49634
  request: PendleRedeemYieldRequest$inboundSchema
49718
49635
  };
49719
49636
  tool$pendleRedeemYield = {
@@ -49721,9 +49638,9 @@ var init_pendleRedeemYield2 = __esm(() => {
49721
49638
  description: `Redeem Claimable Yield
49722
49639
 
49723
49640
  Redeem claimable yield from the market's associated Yield Token (YT).`,
49724
- args: args42,
49725
- tool: async (client, args43, ctx) => {
49726
- const [result, apiCall] = await pendleRedeemYield(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49641
+ args: args41,
49642
+ tool: async (client, args42, ctx) => {
49643
+ const [result, apiCall] = await pendleRedeemYield(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49727
49644
  if (!result.ok) {
49728
49645
  return {
49729
49646
  content: [{ type: "text", text: result.error.message }],
@@ -49738,9 +49655,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).`,
49738
49655
 
49739
49656
  // src/funcs/pendleRemoveLiquidity.ts
49740
49657
  function pendleRemoveLiquidity(client, request, options) {
49741
- return new APIPromise($do43(client, request, options));
49658
+ return new APIPromise($do42(client, request, options));
49742
49659
  }
49743
- async function $do43(client, request, options) {
49660
+ async function $do42(client, request, options) {
49744
49661
  const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
49745
49662
  if (!parsed.ok) {
49746
49663
  return [parsed, { status: "invalid" }];
@@ -49811,12 +49728,12 @@ var init_pendleRemoveLiquidity = __esm(() => {
49811
49728
  });
49812
49729
 
49813
49730
  // src/mcp-server/tools/pendleRemoveLiquidity.ts
49814
- var args43, tool$pendleRemoveLiquidity;
49731
+ var args42, tool$pendleRemoveLiquidity;
49815
49732
  var init_pendleRemoveLiquidity2 = __esm(() => {
49816
49733
  init_pendleRemoveLiquidity();
49817
49734
  init_components();
49818
49735
  init_tools();
49819
- args43 = {
49736
+ args42 = {
49820
49737
  request: PendleRemoveLiquidityRequest$inboundSchema
49821
49738
  };
49822
49739
  tool$pendleRemoveLiquidity = {
@@ -49828,9 +49745,9 @@ Remove liquidity from a Pendle Market.
49828
49745
  Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
49829
49746
  the market's Underlying Token. An appropriate allowance for the Pendle Router on the
49830
49747
  market contract must be set beforehand`,
49831
- args: args43,
49832
- tool: async (client, args44, ctx) => {
49833
- const [result, apiCall] = await pendleRemoveLiquidity(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49748
+ args: args42,
49749
+ tool: async (client, args43, ctx) => {
49750
+ const [result, apiCall] = await pendleRemoveLiquidity(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49834
49751
  if (!result.ok) {
49835
49752
  return {
49836
49753
  content: [{ type: "text", text: result.error.message }],
@@ -49845,9 +49762,9 @@ market contract must be set beforehand`,
49845
49762
 
49846
49763
  // src/funcs/pendleSellPt.ts
49847
49764
  function pendleSellPt(client, request, options) {
49848
- return new APIPromise($do44(client, request, options));
49765
+ return new APIPromise($do43(client, request, options));
49849
49766
  }
49850
- async function $do44(client, request, options) {
49767
+ async function $do43(client, request, options) {
49851
49768
  const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
49852
49769
  if (!parsed.ok) {
49853
49770
  return [parsed, { status: "invalid" }];
@@ -49918,12 +49835,12 @@ var init_pendleSellPt = __esm(() => {
49918
49835
  });
49919
49836
 
49920
49837
  // src/mcp-server/tools/pendleSellPt.ts
49921
- var args44, tool$pendleSellPt;
49838
+ var args43, tool$pendleSellPt;
49922
49839
  var init_pendleSellPt2 = __esm(() => {
49923
49840
  init_pendleSellPt();
49924
49841
  init_components();
49925
49842
  init_tools();
49926
- args44 = {
49843
+ args43 = {
49927
49844
  request: PendleSellPtRequest$inboundSchema
49928
49845
  };
49929
49846
  tool$pendleSellPt = {
@@ -49931,9 +49848,9 @@ var init_pendleSellPt2 = __esm(() => {
49931
49848
  description: `Sell Principal Token (PT)
49932
49849
 
49933
49850
  Sell Principal Token (PT) for the market's Underlying Token.`,
49934
- args: args44,
49935
- tool: async (client, args45, ctx) => {
49936
- const [result, apiCall] = await pendleSellPt(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49851
+ args: args43,
49852
+ tool: async (client, args44, ctx) => {
49853
+ const [result, apiCall] = await pendleSellPt(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49937
49854
  if (!result.ok) {
49938
49855
  return {
49939
49856
  content: [{ type: "text", text: result.error.message }],
@@ -49948,9 +49865,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
49948
49865
 
49949
49866
  // src/funcs/pendleSellYt.ts
49950
49867
  function pendleSellYt(client, request, options) {
49951
- return new APIPromise($do45(client, request, options));
49868
+ return new APIPromise($do44(client, request, options));
49952
49869
  }
49953
- async function $do45(client, request, options) {
49870
+ async function $do44(client, request, options) {
49954
49871
  const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
49955
49872
  if (!parsed.ok) {
49956
49873
  return [parsed, { status: "invalid" }];
@@ -50021,12 +49938,12 @@ var init_pendleSellYt = __esm(() => {
50021
49938
  });
50022
49939
 
50023
49940
  // src/mcp-server/tools/pendleSellYt.ts
50024
- var args45, tool$pendleSellYt;
49941
+ var args44, tool$pendleSellYt;
50025
49942
  var init_pendleSellYt2 = __esm(() => {
50026
49943
  init_pendleSellYt();
50027
49944
  init_components();
50028
49945
  init_tools();
50029
- args45 = {
49946
+ args44 = {
50030
49947
  request: PendleSellYtRequest$inboundSchema
50031
49948
  };
50032
49949
  tool$pendleSellYt = {
@@ -50034,9 +49951,9 @@ var init_pendleSellYt2 = __esm(() => {
50034
49951
  description: `Sell Yield Token (YT)
50035
49952
 
50036
49953
  Sell Yield Token (YT) for the market's Underlying Token.`,
50037
- args: args45,
50038
- tool: async (client, args46, ctx) => {
50039
- const [result, apiCall] = await pendleSellYt(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49954
+ args: args44,
49955
+ tool: async (client, args45, ctx) => {
49956
+ const [result, apiCall] = await pendleSellYt(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50040
49957
  if (!result.ok) {
50041
49958
  return {
50042
49959
  content: [{ type: "text", text: result.error.message }],
@@ -50051,9 +49968,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
50051
49968
 
50052
49969
  // src/funcs/skyBuy.ts
50053
49970
  function skyBuy(client, request, options) {
50054
- return new APIPromise($do46(client, request, options));
49971
+ return new APIPromise($do45(client, request, options));
50055
49972
  }
50056
- async function $do46(client, request, options) {
49973
+ async function $do45(client, request, options) {
50057
49974
  const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
50058
49975
  if (!parsed.ok) {
50059
49976
  return [parsed, { status: "invalid" }];
@@ -50124,12 +50041,12 @@ var init_skyBuy = __esm(() => {
50124
50041
  });
50125
50042
 
50126
50043
  // src/mcp-server/tools/skyBuy.ts
50127
- var args46, tool$skyBuy;
50044
+ var args45, tool$skyBuy;
50128
50045
  var init_skyBuy2 = __esm(() => {
50129
50046
  init_skyBuy();
50130
50047
  init_components();
50131
50048
  init_tools();
50132
- args46 = {
50049
+ args45 = {
50133
50050
  request: SkyBuyRequest$inboundSchema
50134
50051
  };
50135
50052
  tool$skyBuy = {
@@ -50143,9 +50060,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
50143
50060
 
50144
50061
  If buying with USDC, user will need to set an allowance on the USDC contract for the
50145
50062
  'SkyDaiUsdsConverter' contract beforehand.`,
50146
- args: args46,
50147
- tool: async (client, args47, ctx) => {
50148
- const [result, apiCall] = await skyBuy(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50063
+ args: args45,
50064
+ tool: async (client, args46, ctx) => {
50065
+ const [result, apiCall] = await skyBuy(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50149
50066
  if (!result.ok) {
50150
50067
  return {
50151
50068
  content: [{ type: "text", text: result.error.message }],
@@ -50160,9 +50077,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
50160
50077
 
50161
50078
  // src/funcs/skyDeposit.ts
50162
50079
  function skyDeposit(client, request, options) {
50163
- return new APIPromise($do47(client, request, options));
50080
+ return new APIPromise($do46(client, request, options));
50164
50081
  }
50165
- async function $do47(client, request, options) {
50082
+ async function $do46(client, request, options) {
50166
50083
  const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
50167
50084
  if (!parsed.ok) {
50168
50085
  return [parsed, { status: "invalid" }];
@@ -50233,12 +50150,12 @@ var init_skyDeposit = __esm(() => {
50233
50150
  });
50234
50151
 
50235
50152
  // src/mcp-server/tools/skyDeposit.ts
50236
- var args47, tool$skyDeposit;
50153
+ var args46, tool$skyDeposit;
50237
50154
  var init_skyDeposit2 = __esm(() => {
50238
50155
  init_skyDeposit();
50239
50156
  init_components();
50240
50157
  init_tools();
50241
- args47 = {
50158
+ args46 = {
50242
50159
  request: SkyDepositRequest$inboundSchema
50243
50160
  };
50244
50161
  tool$skyDeposit = {
@@ -50248,9 +50165,9 @@ var init_skyDeposit2 = __esm(() => {
50248
50165
  Deposit USDS for sUSDS to earn yield.
50249
50166
 
50250
50167
  There are no fees.`,
50251
- args: args47,
50252
- tool: async (client, args48, ctx) => {
50253
- const [result, apiCall] = await skyDeposit(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50168
+ args: args46,
50169
+ tool: async (client, args47, ctx) => {
50170
+ const [result, apiCall] = await skyDeposit(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50254
50171
  if (!result.ok) {
50255
50172
  return {
50256
50173
  content: [{ type: "text", text: result.error.message }],
@@ -50265,9 +50182,9 @@ There are no fees.`,
50265
50182
 
50266
50183
  // src/funcs/skyPosition.ts
50267
50184
  function skyPosition(client, request, options) {
50268
- return new APIPromise($do48(client, request, options));
50185
+ return new APIPromise($do47(client, request, options));
50269
50186
  }
50270
- async function $do48(client, request, options) {
50187
+ async function $do47(client, request, options) {
50271
50188
  const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
50272
50189
  if (!parsed.ok) {
50273
50190
  return [parsed, { status: "invalid" }];
@@ -50343,12 +50260,12 @@ var init_skyPosition = __esm(() => {
50343
50260
  });
50344
50261
 
50345
50262
  // src/mcp-server/tools/skyPosition.ts
50346
- var args48, tool$skyPosition;
50263
+ var args47, tool$skyPosition;
50347
50264
  var init_skyPosition2 = __esm(() => {
50348
50265
  init_skyPosition();
50349
50266
  init_operations();
50350
50267
  init_tools();
50351
- args48 = {
50268
+ args47 = {
50352
50269
  request: SkyPositionRequest$inboundSchema
50353
50270
  };
50354
50271
  tool$skyPosition = {
@@ -50356,9 +50273,9 @@ var init_skyPosition2 = __esm(() => {
50356
50273
  description: `Check USDS Position
50357
50274
 
50358
50275
  Check the USDS overall position.`,
50359
- args: args48,
50360
- tool: async (client, args49, ctx) => {
50361
- const [result, apiCall] = await skyPosition(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50276
+ args: args47,
50277
+ tool: async (client, args48, ctx) => {
50278
+ const [result, apiCall] = await skyPosition(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50362
50279
  if (!result.ok) {
50363
50280
  return {
50364
50281
  content: [{ type: "text", text: result.error.message }],
@@ -50373,9 +50290,9 @@ Check the USDS overall position.`,
50373
50290
 
50374
50291
  // src/funcs/skySell.ts
50375
50292
  function skySell(client, request, options) {
50376
- return new APIPromise($do49(client, request, options));
50293
+ return new APIPromise($do48(client, request, options));
50377
50294
  }
50378
- async function $do49(client, request, options) {
50295
+ async function $do48(client, request, options) {
50379
50296
  const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
50380
50297
  if (!parsed.ok) {
50381
50298
  return [parsed, { status: "invalid" }];
@@ -50446,12 +50363,12 @@ var init_skySell = __esm(() => {
50446
50363
  });
50447
50364
 
50448
50365
  // src/mcp-server/tools/skySell.ts
50449
- var args49, tool$skySell;
50366
+ var args48, tool$skySell;
50450
50367
  var init_skySell2 = __esm(() => {
50451
50368
  init_skySell();
50452
50369
  init_components();
50453
50370
  init_tools();
50454
- args49 = {
50371
+ args48 = {
50455
50372
  request: SkySellRequest$inboundSchema
50456
50373
  };
50457
50374
  tool$skySell = {
@@ -50465,9 +50382,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
50465
50382
 
50466
50383
  If swapping to USDC, user will need to set an allowance on the USDS contract for the
50467
50384
  'SkyUsdcUsdsConverter' contract beforehand.`,
50468
- args: args49,
50469
- tool: async (client, args50, ctx) => {
50470
- const [result, apiCall] = await skySell(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50385
+ args: args48,
50386
+ tool: async (client, args49, ctx) => {
50387
+ const [result, apiCall] = await skySell(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50471
50388
  if (!result.ok) {
50472
50389
  return {
50473
50390
  content: [{ type: "text", text: result.error.message }],
@@ -50482,9 +50399,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
50482
50399
 
50483
50400
  // src/funcs/skyWithdraw.ts
50484
50401
  function skyWithdraw(client, request, options) {
50485
- return new APIPromise($do50(client, request, options));
50402
+ return new APIPromise($do49(client, request, options));
50486
50403
  }
50487
- async function $do50(client, request, options) {
50404
+ async function $do49(client, request, options) {
50488
50405
  const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
50489
50406
  if (!parsed.ok) {
50490
50407
  return [parsed, { status: "invalid" }];
@@ -50555,12 +50472,12 @@ var init_skyWithdraw = __esm(() => {
50555
50472
  });
50556
50473
 
50557
50474
  // src/mcp-server/tools/skyWithdraw.ts
50558
- var args50, tool$skyWithdraw;
50475
+ var args49, tool$skyWithdraw;
50559
50476
  var init_skyWithdraw2 = __esm(() => {
50560
50477
  init_skyWithdraw();
50561
50478
  init_components();
50562
50479
  init_tools();
50563
- args50 = {
50480
+ args49 = {
50564
50481
  request: SkyWithdrawRequest$inboundSchema
50565
50482
  };
50566
50483
  tool$skyWithdraw = {
@@ -50568,9 +50485,9 @@ var init_skyWithdraw2 = __esm(() => {
50568
50485
  description: `Withdraw USDS
50569
50486
 
50570
50487
  Withdraw USDS for sUSDS to stop earning yield.`,
50571
- args: args50,
50572
- tool: async (client, args51, ctx) => {
50573
- const [result, apiCall] = await skyWithdraw(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50488
+ args: args49,
50489
+ tool: async (client, args50, ctx) => {
50490
+ const [result, apiCall] = await skyWithdraw(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50574
50491
  if (!result.ok) {
50575
50492
  return {
50576
50493
  content: [{ type: "text", text: result.error.message }],
@@ -50585,9 +50502,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
50585
50502
 
50586
50503
  // src/funcs/smartAccountAccountBatchedUserOperations.ts
50587
50504
  function smartAccountAccountBatchedUserOperations(client, request, options) {
50588
- return new APIPromise($do51(client, request, options));
50505
+ return new APIPromise($do50(client, request, options));
50589
50506
  }
50590
- async function $do51(client, request, options) {
50507
+ async function $do50(client, request, options) {
50591
50508
  const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
50592
50509
  if (!parsed.ok) {
50593
50510
  return [parsed, { status: "invalid" }];
@@ -50658,12 +50575,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
50658
50575
  });
50659
50576
 
50660
50577
  // src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
50661
- var args51, tool$smartAccountAccountBatchedUserOperations;
50578
+ var args50, tool$smartAccountAccountBatchedUserOperations;
50662
50579
  var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
50663
50580
  init_smartAccountAccountBatchedUserOperations();
50664
50581
  init_components();
50665
50582
  init_tools();
50666
- args51 = {
50583
+ args50 = {
50667
50584
  request: BatchedUserOperationsRequest$inboundSchema
50668
50585
  };
50669
50586
  tool$smartAccountAccountBatchedUserOperations = {
@@ -50671,9 +50588,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
50671
50588
  description: `Get Smart Account Batched User Operations
50672
50589
 
50673
50590
  Generate a list of user operations for smart account batching.`,
50674
- args: args51,
50675
- tool: async (client, args52, ctx) => {
50676
- const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50591
+ args: args50,
50592
+ tool: async (client, args51, ctx) => {
50593
+ const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50677
50594
  if (!result.ok) {
50678
50595
  return {
50679
50596
  content: [{ type: "text", text: result.error.message }],
@@ -50688,9 +50605,9 @@ Generate a list of user operations for smart account batching.`,
50688
50605
 
50689
50606
  // src/funcs/tokenAddress.ts
50690
50607
  function tokenAddress(client, request, options) {
50691
- return new APIPromise($do52(client, request, options));
50608
+ return new APIPromise($do51(client, request, options));
50692
50609
  }
50693
- async function $do52(client, request, options) {
50610
+ async function $do51(client, request, options) {
50694
50611
  const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
50695
50612
  if (!parsed.ok) {
50696
50613
  return [parsed, { status: "invalid" }];
@@ -50766,12 +50683,12 @@ var init_tokenAddress = __esm(() => {
50766
50683
  });
50767
50684
 
50768
50685
  // src/mcp-server/tools/tokenAddress.ts
50769
- var args52, tool$tokenAddress;
50686
+ var args51, tool$tokenAddress;
50770
50687
  var init_tokenAddress2 = __esm(() => {
50771
50688
  init_tokenAddress();
50772
50689
  init_operations();
50773
50690
  init_tools();
50774
- args52 = {
50691
+ args51 = {
50775
50692
  request: TokenAddressRequest$inboundSchema
50776
50693
  };
50777
50694
  tool$tokenAddress = {
@@ -50779,9 +50696,9 @@ var init_tokenAddress2 = __esm(() => {
50779
50696
  description: `Token Address
50780
50697
 
50781
50698
  This endpoint retrieves the address for a token supported by us.`,
50782
- args: args52,
50783
- tool: async (client, args53, ctx) => {
50784
- const [result, apiCall] = await tokenAddress(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50699
+ args: args51,
50700
+ tool: async (client, args52, ctx) => {
50701
+ const [result, apiCall] = await tokenAddress(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50785
50702
  if (!result.ok) {
50786
50703
  return {
50787
50704
  content: [{ type: "text", text: result.error.message }],
@@ -50796,9 +50713,9 @@ This endpoint retrieves the address for a token supported by us.`,
50796
50713
 
50797
50714
  // src/funcs/tokenBalance.ts
50798
50715
  function tokenBalance(client, request, options) {
50799
- return new APIPromise($do53(client, request, options));
50716
+ return new APIPromise($do52(client, request, options));
50800
50717
  }
50801
- async function $do53(client, request, options) {
50718
+ async function $do52(client, request, options) {
50802
50719
  const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
50803
50720
  if (!parsed.ok) {
50804
50721
  return [parsed, { status: "invalid" }];
@@ -50875,12 +50792,12 @@ var init_tokenBalance = __esm(() => {
50875
50792
  });
50876
50793
 
50877
50794
  // src/mcp-server/tools/tokenBalance.ts
50878
- var args53, tool$tokenBalance;
50795
+ var args52, tool$tokenBalance;
50879
50796
  var init_tokenBalance2 = __esm(() => {
50880
50797
  init_tokenBalance();
50881
50798
  init_operations();
50882
50799
  init_tools();
50883
- args53 = {
50800
+ args52 = {
50884
50801
  request: TokenBalanceRequest$inboundSchema
50885
50802
  };
50886
50803
  tool$tokenBalance = {
@@ -50888,9 +50805,9 @@ var init_tokenBalance2 = __esm(() => {
50888
50805
  description: `Token Balance
50889
50806
 
50890
50807
  Returns the balance of a specific ERC20 token for a given user address.`,
50891
- args: args53,
50892
- tool: async (client, args54, ctx) => {
50893
- const [result, apiCall] = await tokenBalance(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50808
+ args: args52,
50809
+ tool: async (client, args53, ctx) => {
50810
+ const [result, apiCall] = await tokenBalance(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50894
50811
  if (!result.ok) {
50895
50812
  return {
50896
50813
  content: [{ type: "text", text: result.error.message }],
@@ -50905,9 +50822,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
50905
50822
 
50906
50823
  // src/funcs/tokenPrice.ts
50907
50824
  function tokenPrice(client, request, options) {
50908
- return new APIPromise($do54(client, request, options));
50825
+ return new APIPromise($do53(client, request, options));
50909
50826
  }
50910
- async function $do54(client, request, options) {
50827
+ async function $do53(client, request, options) {
50911
50828
  const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
50912
50829
  if (!parsed.ok) {
50913
50830
  return [parsed, { status: "invalid" }];
@@ -50983,12 +50900,12 @@ var init_tokenPrice = __esm(() => {
50983
50900
  });
50984
50901
 
50985
50902
  // src/mcp-server/tools/tokenPrice.ts
50986
- var args54, tool$tokenPrice;
50903
+ var args53, tool$tokenPrice;
50987
50904
  var init_tokenPrice2 = __esm(() => {
50988
50905
  init_tokenPrice();
50989
50906
  init_operations();
50990
50907
  init_tools();
50991
- args54 = {
50908
+ args53 = {
50992
50909
  request: TokenPriceRequest$inboundSchema
50993
50910
  };
50994
50911
  tool$tokenPrice = {
@@ -51000,9 +50917,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
51000
50917
  Chainlink is a decentralized oracle that aggregates price data from off-chain
51001
50918
  sources. This ensures the price is tamper-resistant but the price might be stale
51002
50919
  with the update frequency of the oracle.`,
51003
- args: args54,
51004
- tool: async (client, args55, ctx) => {
51005
- const [result, apiCall] = await tokenPrice(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50920
+ args: args53,
50921
+ tool: async (client, args54, ctx) => {
50922
+ const [result, apiCall] = await tokenPrice(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51006
50923
  if (!result.ok) {
51007
50924
  return {
51008
50925
  content: [{ type: "text", text: result.error.message }],
@@ -51017,9 +50934,9 @@ with the update frequency of the oracle.`,
51017
50934
 
51018
50935
  // src/funcs/tokenTransfer.ts
51019
50936
  function tokenTransfer(client, request, options) {
51020
- return new APIPromise($do55(client, request, options));
50937
+ return new APIPromise($do54(client, request, options));
51021
50938
  }
51022
- async function $do55(client, request, options) {
50939
+ async function $do54(client, request, options) {
51023
50940
  const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
51024
50941
  if (!parsed.ok) {
51025
50942
  return [parsed, { status: "invalid" }];
@@ -51090,12 +51007,12 @@ var init_tokenTransfer = __esm(() => {
51090
51007
  });
51091
51008
 
51092
51009
  // src/mcp-server/tools/tokenTransfer.ts
51093
- var args55, tool$tokenTransfer;
51010
+ var args54, tool$tokenTransfer;
51094
51011
  var init_tokenTransfer2 = __esm(() => {
51095
51012
  init_tokenTransfer();
51096
51013
  init_components();
51097
51014
  init_tools();
51098
- args55 = {
51015
+ args54 = {
51099
51016
  request: TokenTransferRequest$inboundSchema
51100
51017
  };
51101
51018
  tool$tokenTransfer = {
@@ -51103,9 +51020,9 @@ var init_tokenTransfer2 = __esm(() => {
51103
51020
  description: `Transfer ETH or ERC20 Tokens
51104
51021
 
51105
51022
  Sends native ETH or ERC20 tokens from the sender's address to another address.`,
51106
- args: args55,
51107
- tool: async (client, args56, ctx) => {
51108
- const [result, apiCall] = await tokenTransfer(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51023
+ args: args54,
51024
+ tool: async (client, args55, ctx) => {
51025
+ const [result, apiCall] = await tokenTransfer(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51109
51026
  if (!result.ok) {
51110
51027
  return {
51111
51028
  content: [{ type: "text", text: result.error.message }],
@@ -51120,9 +51037,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
51120
51037
 
51121
51038
  // src/funcs/transactionBundlerBundlerAaveLoop.ts
51122
51039
  function transactionBundlerBundlerAaveLoop(client, request, options) {
51123
- return new APIPromise($do56(client, request, options));
51040
+ return new APIPromise($do55(client, request, options));
51124
51041
  }
51125
- async function $do56(client, request, options) {
51042
+ async function $do55(client, request, options) {
51126
51043
  const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
51127
51044
  if (!parsed.ok) {
51128
51045
  return [parsed, { status: "invalid" }];
@@ -51193,12 +51110,12 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
51193
51110
  });
51194
51111
 
51195
51112
  // src/mcp-server/tools/transactionBundlerBundlerAaveLoop.ts
51196
- var args56, tool$transactionBundlerBundlerAaveLoop;
51113
+ var args55, tool$transactionBundlerBundlerAaveLoop;
51197
51114
  var init_transactionBundlerBundlerAaveLoop2 = __esm(() => {
51198
51115
  init_transactionBundlerBundlerAaveLoop();
51199
51116
  init_components();
51200
51117
  init_tools();
51201
- args56 = {
51118
+ args55 = {
51202
51119
  request: AaveLoopRequest$inboundSchema
51203
51120
  };
51204
51121
  tool$transactionBundlerBundlerAaveLoop = {
@@ -51216,9 +51133,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
51216
51133
  - Supplies the swapped tokens
51217
51134
 
51218
51135
  The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
51219
- args: args56,
51220
- tool: async (client, args57, ctx) => {
51221
- const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51136
+ args: args55,
51137
+ tool: async (client, args56, ctx) => {
51138
+ const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51222
51139
  if (!result.ok) {
51223
51140
  return {
51224
51141
  content: [{ type: "text", text: result.error.message }],
@@ -51233,9 +51150,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
51233
51150
 
51234
51151
  // src/funcs/transactionBundlerBundlerAuthorization.ts
51235
51152
  function transactionBundlerBundlerAuthorization(client, request, options) {
51236
- return new APIPromise($do57(client, request, options));
51153
+ return new APIPromise($do56(client, request, options));
51237
51154
  }
51238
- async function $do57(client, request, options) {
51155
+ async function $do56(client, request, options) {
51239
51156
  const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
51240
51157
  if (!parsed.ok) {
51241
51158
  return [parsed, { status: "invalid" }];
@@ -51306,12 +51223,12 @@ var init_transactionBundlerBundlerAuthorization = __esm(() => {
51306
51223
  });
51307
51224
 
51308
51225
  // src/mcp-server/tools/transactionBundlerBundlerAuthorization.ts
51309
- var args57, tool$transactionBundlerBundlerAuthorization;
51226
+ var args56, tool$transactionBundlerBundlerAuthorization;
51310
51227
  var init_transactionBundlerBundlerAuthorization2 = __esm(() => {
51311
51228
  init_transactionBundlerBundlerAuthorization();
51312
51229
  init_components();
51313
51230
  init_tools();
51314
- args57 = {
51231
+ args56 = {
51315
51232
  request: MulticallAuthorizationRequest$inboundSchema
51316
51233
  };
51317
51234
  tool$transactionBundlerBundlerAuthorization = {
@@ -51324,9 +51241,9 @@ Currently this is required for every transaction bundle to prevent replay attack
51324
51241
  and ensure transaction ordering when batching multiple actions into a single
51325
51242
  transaction. The authorization includes a nonce and chain ID to guarantee
51326
51243
  transaction uniqueness and proper network targeting.`,
51327
- args: args57,
51328
- tool: async (client, args58, ctx) => {
51329
- const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51244
+ args: args56,
51245
+ tool: async (client, args57, ctx) => {
51246
+ const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51330
51247
  if (!result.ok) {
51331
51248
  return {
51332
51249
  content: [{ type: "text", text: result.error.message }],
@@ -51341,9 +51258,9 @@ transaction uniqueness and proper network targeting.`,
51341
51258
 
51342
51259
  // src/funcs/transactionBundlerBundlerExecute.ts
51343
51260
  function transactionBundlerBundlerExecute(client, request, options) {
51344
- return new APIPromise($do58(client, request, options));
51261
+ return new APIPromise($do57(client, request, options));
51345
51262
  }
51346
- async function $do58(client, request, options) {
51263
+ async function $do57(client, request, options) {
51347
51264
  const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
51348
51265
  if (!parsed.ok) {
51349
51266
  return [parsed, { status: "invalid" }];
@@ -51414,12 +51331,12 @@ var init_transactionBundlerBundlerExecute = __esm(() => {
51414
51331
  });
51415
51332
 
51416
51333
  // src/mcp-server/tools/transactionBundlerBundlerExecute.ts
51417
- var args58, tool$transactionBundlerBundlerExecute;
51334
+ var args57, tool$transactionBundlerBundlerExecute;
51418
51335
  var init_transactionBundlerBundlerExecute2 = __esm(() => {
51419
51336
  init_transactionBundlerBundlerExecute();
51420
51337
  init_components();
51421
51338
  init_tools();
51422
- args58 = {
51339
+ args57 = {
51423
51340
  request: MulticallExecuteRequest$inboundSchema
51424
51341
  };
51425
51342
  tool$transactionBundlerBundlerExecute = {
@@ -51433,9 +51350,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
51433
51350
  transaction, reducing gas costs and ensuring all operations succeed or fail
51434
51351
  together. The transaction must be authorized using the /authorization endpoint to
51435
51352
  prevent replay attacks.`,
51436
- args: args58,
51437
- tool: async (client, args59, ctx) => {
51438
- const [result, apiCall] = await transactionBundlerBundlerExecute(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51353
+ args: args57,
51354
+ tool: async (client, args58, ctx) => {
51355
+ const [result, apiCall] = await transactionBundlerBundlerExecute(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51439
51356
  if (!result.ok) {
51440
51357
  return {
51441
51358
  content: [{ type: "text", text: result.error.message }],
@@ -51450,9 +51367,9 @@ prevent replay attacks.`,
51450
51367
 
51451
51368
  // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
51452
51369
  function uniswapV3LiquidityProvisionIncrease(client, request, options) {
51453
- return new APIPromise($do59(client, request, options));
51370
+ return new APIPromise($do58(client, request, options));
51454
51371
  }
51455
- async function $do59(client, request, options) {
51372
+ async function $do58(client, request, options) {
51456
51373
  const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51457
51374
  if (!parsed.ok) {
51458
51375
  return [parsed, { status: "invalid" }];
@@ -51523,12 +51440,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
51523
51440
  });
51524
51441
 
51525
51442
  // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
51526
- var args59, tool$uniswapV3LiquidityProvisionIncrease;
51443
+ var args58, tool$uniswapV3LiquidityProvisionIncrease;
51527
51444
  var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
51528
51445
  init_uniswapV3LiquidityProvisionIncrease();
51529
51446
  init_components();
51530
51447
  init_tools();
51531
- args59 = {
51448
+ args58 = {
51532
51449
  request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
51533
51450
  };
51534
51451
  tool$uniswapV3LiquidityProvisionIncrease = {
@@ -51544,9 +51461,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
51544
51461
  within the pool. The endpoint requires details such as the token pair, additional
51545
51462
  amount to be added, and any other parameters necessary for the liquidity increase
51546
51463
  process.`,
51547
- args: args59,
51548
- tool: async (client, args60, ctx) => {
51549
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51464
+ args: args58,
51465
+ tool: async (client, args59, ctx) => {
51466
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51550
51467
  if (!result.ok) {
51551
51468
  return {
51552
51469
  content: [{ type: "text", text: result.error.message }],
@@ -51561,9 +51478,9 @@ process.`,
51561
51478
 
51562
51479
  // src/funcs/uniswapV3LiquidityProvisionInRange.ts
51563
51480
  function uniswapV3LiquidityProvisionInRange(client, request, options) {
51564
- return new APIPromise($do60(client, request, options));
51481
+ return new APIPromise($do59(client, request, options));
51565
51482
  }
51566
- async function $do60(client, request, options) {
51483
+ async function $do59(client, request, options) {
51567
51484
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
51568
51485
  if (!parsed.ok) {
51569
51486
  return [parsed, { status: "invalid" }];
@@ -51639,12 +51556,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
51639
51556
  });
51640
51557
 
51641
51558
  // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
51642
- var args60, tool$uniswapV3LiquidityProvisionInRange;
51559
+ var args59, tool$uniswapV3LiquidityProvisionInRange;
51643
51560
  var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
51644
51561
  init_uniswapV3LiquidityProvisionInRange();
51645
51562
  init_operations();
51646
51563
  init_tools();
51647
- args60 = {
51564
+ args59 = {
51648
51565
  request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
51649
51566
  };
51650
51567
  tool$uniswapV3LiquidityProvisionInRange = {
@@ -51659,9 +51576,9 @@ position is currently within the tick range where trading occurs. this informati
51659
51576
  is essential for users to monitor the status of their lp positions and ensure that
51660
51577
  they are actively participating in the trading activities within the liquidity pool
51661
51578
  and earning trading fees.`,
51662
- args: args60,
51663
- tool: async (client, args61, ctx) => {
51664
- const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51579
+ args: args59,
51580
+ tool: async (client, args60, ctx) => {
51581
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51665
51582
  if (!result.ok) {
51666
51583
  return {
51667
51584
  content: [{ type: "text", text: result.error.message }],
@@ -51676,9 +51593,9 @@ and earning trading fees.`,
51676
51593
 
51677
51594
  // src/funcs/uniswapV3LiquidityProvisionMint.ts
51678
51595
  function uniswapV3LiquidityProvisionMint(client, request, options) {
51679
- return new APIPromise($do61(client, request, options));
51596
+ return new APIPromise($do60(client, request, options));
51680
51597
  }
51681
- async function $do61(client, request, options) {
51598
+ async function $do60(client, request, options) {
51682
51599
  const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51683
51600
  if (!parsed.ok) {
51684
51601
  return [parsed, { status: "invalid" }];
@@ -51749,12 +51666,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
51749
51666
  });
51750
51667
 
51751
51668
  // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
51752
- var args61, tool$uniswapV3LiquidityProvisionMint;
51669
+ var args60, tool$uniswapV3LiquidityProvisionMint;
51753
51670
  var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
51754
51671
  init_uniswapV3LiquidityProvisionMint();
51755
51672
  init_components();
51756
51673
  init_tools();
51757
- args61 = {
51674
+ args60 = {
51758
51675
  request: UniswapMintLiquidityProvisionRequest$inboundSchema
51759
51676
  };
51760
51677
  tool$uniswapV3LiquidityProvisionMint = {
@@ -51770,9 +51687,9 @@ This operation is essential for users looking to participate in liquidity provis
51770
51687
  enabling them to earn fees from trades that occur within the pool. The endpoint
51771
51688
  requires details such as the token pair, amount, and any additional parameters
51772
51689
  needed for the minting process.`,
51773
- args: args61,
51774
- tool: async (client, args62, ctx) => {
51775
- const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51690
+ args: args60,
51691
+ tool: async (client, args61, ctx) => {
51692
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51776
51693
  if (!result.ok) {
51777
51694
  return {
51778
51695
  content: [{ type: "text", text: result.error.message }],
@@ -51787,9 +51704,9 @@ needed for the minting process.`,
51787
51704
 
51788
51705
  // src/funcs/uniswapV3LiquidityProvisionPositions.ts
51789
51706
  function uniswapV3LiquidityProvisionPositions(client, request, options) {
51790
- return new APIPromise($do62(client, request, options));
51707
+ return new APIPromise($do61(client, request, options));
51791
51708
  }
51792
- async function $do62(client, request, options) {
51709
+ async function $do61(client, request, options) {
51793
51710
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
51794
51711
  if (!parsed.ok) {
51795
51712
  return [parsed, { status: "invalid" }];
@@ -51865,12 +51782,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
51865
51782
  });
51866
51783
 
51867
51784
  // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
51868
- var args62, tool$uniswapV3LiquidityProvisionPositions;
51785
+ var args61, tool$uniswapV3LiquidityProvisionPositions;
51869
51786
  var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
51870
51787
  init_uniswapV3LiquidityProvisionPositions();
51871
51788
  init_operations();
51872
51789
  init_tools();
51873
- args62 = {
51790
+ args61 = {
51874
51791
  request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
51875
51792
  };
51876
51793
  tool$uniswapV3LiquidityProvisionPositions = {
@@ -51884,9 +51801,9 @@ Users can query this endpoint to obtain detailed information about their LP
51884
51801
  positions, including the total number of positions and relevant metadata. This
51885
51802
  information is crucial for users to manage and analyze their liquidity provision
51886
51803
  activities effectively.`,
51887
- args: args62,
51888
- tool: async (client, args63, ctx) => {
51889
- const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51804
+ args: args61,
51805
+ tool: async (client, args62, ctx) => {
51806
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51890
51807
  if (!result.ok) {
51891
51808
  return {
51892
51809
  content: [{ type: "text", text: result.error.message }],
@@ -51901,9 +51818,9 @@ activities effectively.`,
51901
51818
 
51902
51819
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
51903
51820
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
51904
- return new APIPromise($do63(client, request, options));
51821
+ return new APIPromise($do62(client, request, options));
51905
51822
  }
51906
- async function $do63(client, request, options) {
51823
+ async function $do62(client, request, options) {
51907
51824
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51908
51825
  if (!parsed.ok) {
51909
51826
  return [parsed, { status: "invalid" }];
@@ -51974,12 +51891,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
51974
51891
  });
51975
51892
 
51976
51893
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
51977
- var args63, tool$uniswapV3LiquidityProvisionWithdraw;
51894
+ var args62, tool$uniswapV3LiquidityProvisionWithdraw;
51978
51895
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
51979
51896
  init_uniswapV3LiquidityProvisionWithdraw();
51980
51897
  init_components();
51981
51898
  init_tools();
51982
- args63 = {
51899
+ args62 = {
51983
51900
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
51984
51901
  };
51985
51902
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -51996,9 +51913,9 @@ pools or investments. The endpoint requires details such as the token pair, the
51996
51913
  amount to be withdrawn, and any additional parameters needed for the withdrawal
51997
51914
  process. Users should ensure they meet any protocol requirements or conditions
51998
51915
  before initiating a withdrawal to avoid potential issues or penalties.`,
51999
- args: args63,
52000
- tool: async (client, args64, ctx) => {
52001
- const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51916
+ args: args62,
51917
+ tool: async (client, args63, ctx) => {
51918
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52002
51919
  if (!result.ok) {
52003
51920
  return {
52004
51921
  content: [{ type: "text", text: result.error.message }],
@@ -52013,9 +51930,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
52013
51930
 
52014
51931
  // src/funcs/uniswapV3PoolPrice.ts
52015
51932
  function uniswapV3PoolPrice(client, request, options) {
52016
- return new APIPromise($do64(client, request, options));
51933
+ return new APIPromise($do63(client, request, options));
52017
51934
  }
52018
- async function $do64(client, request, options) {
51935
+ async function $do63(client, request, options) {
52019
51936
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
52020
51937
  if (!parsed.ok) {
52021
51938
  return [parsed, { status: "invalid" }];
@@ -52093,12 +52010,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
52093
52010
  });
52094
52011
 
52095
52012
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
52096
- var args64, tool$uniswapV3PoolPrice;
52013
+ var args63, tool$uniswapV3PoolPrice;
52097
52014
  var init_uniswapV3PoolPrice2 = __esm(() => {
52098
52015
  init_uniswapV3PoolPrice();
52099
52016
  init_operations();
52100
52017
  init_tools();
52101
- args64 = {
52018
+ args63 = {
52102
52019
  request: UniswapPoolPriceRequest$inboundSchema
52103
52020
  };
52104
52021
  tool$uniswapV3PoolPrice = {
@@ -52108,9 +52025,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
52108
52025
  This endpoint calculates the price of a token in a Uniswap pool.
52109
52026
 
52110
52027
  The price is calculated based on the current pool state and the specified fee tier.`,
52111
- args: args64,
52112
- tool: async (client, args65, ctx) => {
52113
- const [result, apiCall] = await uniswapV3PoolPrice(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52028
+ args: args63,
52029
+ tool: async (client, args64, ctx) => {
52030
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52114
52031
  if (!result.ok) {
52115
52032
  return {
52116
52033
  content: [{ type: "text", text: result.error.message }],
@@ -52125,9 +52042,9 @@ The price is calculated based on the current pool state and the specified fee ti
52125
52042
 
52126
52043
  // src/funcs/uniswapV3QuoteBuyExactly.ts
52127
52044
  function uniswapV3QuoteBuyExactly(client, request, options) {
52128
- return new APIPromise($do65(client, request, options));
52045
+ return new APIPromise($do64(client, request, options));
52129
52046
  }
52130
- async function $do65(client, request, options) {
52047
+ async function $do64(client, request, options) {
52131
52048
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52132
52049
  if (!parsed.ok) {
52133
52050
  return [parsed, { status: "invalid" }];
@@ -52206,12 +52123,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
52206
52123
  });
52207
52124
 
52208
52125
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
52209
- var args65, tool$uniswapV3QuoteBuyExactly;
52126
+ var args64, tool$uniswapV3QuoteBuyExactly;
52210
52127
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
52211
52128
  init_uniswapV3QuoteBuyExactly();
52212
52129
  init_operations();
52213
52130
  init_tools();
52214
- args65 = {
52131
+ args64 = {
52215
52132
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
52216
52133
  };
52217
52134
  tool$uniswapV3QuoteBuyExactly = {
@@ -52223,9 +52140,9 @@ specified amount of output tokens from a Uniswap pool.
52223
52140
 
52224
52141
  It also provides the resulting price after the transaction. The calculation takes
52225
52142
  into account the current pool state and the specified fee tier.`,
52226
- args: args65,
52227
- tool: async (client, args66, ctx) => {
52228
- const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52143
+ args: args64,
52144
+ tool: async (client, args65, ctx) => {
52145
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52229
52146
  if (!result.ok) {
52230
52147
  return {
52231
52148
  content: [{ type: "text", text: result.error.message }],
@@ -52240,9 +52157,9 @@ into account the current pool state and the specified fee tier.`,
52240
52157
 
52241
52158
  // src/funcs/uniswapV3QuoteSellExactly.ts
52242
52159
  function uniswapV3QuoteSellExactly(client, request, options) {
52243
- return new APIPromise($do66(client, request, options));
52160
+ return new APIPromise($do65(client, request, options));
52244
52161
  }
52245
- async function $do66(client, request, options) {
52162
+ async function $do65(client, request, options) {
52246
52163
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52247
52164
  if (!parsed.ok) {
52248
52165
  return [parsed, { status: "invalid" }];
@@ -52321,12 +52238,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
52321
52238
  });
52322
52239
 
52323
52240
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
52324
- var args66, tool$uniswapV3QuoteSellExactly;
52241
+ var args65, tool$uniswapV3QuoteSellExactly;
52325
52242
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
52326
52243
  init_uniswapV3QuoteSellExactly();
52327
52244
  init_operations();
52328
52245
  init_tools();
52329
- args66 = {
52246
+ args65 = {
52330
52247
  request: UniswapQuoteSellExactlyRequest$inboundSchema
52331
52248
  };
52332
52249
  tool$uniswapV3QuoteSellExactly = {
@@ -52338,9 +52255,9 @@ specified amount of output tokens from a Uniswap pool.
52338
52255
 
52339
52256
  It also provides the resulting price after the transaction. The calculation takes
52340
52257
  into account the current pool state and the specified fee tier.`,
52341
- args: args66,
52342
- tool: async (client, args67, ctx) => {
52343
- const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52258
+ args: args65,
52259
+ tool: async (client, args66, ctx) => {
52260
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52344
52261
  if (!result.ok) {
52345
52262
  return {
52346
52263
  content: [{ type: "text", text: result.error.message }],
@@ -52355,9 +52272,9 @@ into account the current pool state and the specified fee tier.`,
52355
52272
 
52356
52273
  // src/funcs/uniswapV3SwapBuyExactly.ts
52357
52274
  function uniswapV3SwapBuyExactly(client, request, options) {
52358
- return new APIPromise($do67(client, request, options));
52275
+ return new APIPromise($do66(client, request, options));
52359
52276
  }
52360
- async function $do67(client, request, options) {
52277
+ async function $do66(client, request, options) {
52361
52278
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52362
52279
  if (!parsed.ok) {
52363
52280
  return [parsed, { status: "invalid" }];
@@ -52428,12 +52345,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
52428
52345
  });
52429
52346
 
52430
52347
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
52431
- var args67, tool$uniswapV3SwapBuyExactly;
52348
+ var args66, tool$uniswapV3SwapBuyExactly;
52432
52349
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
52433
52350
  init_uniswapV3SwapBuyExactly();
52434
52351
  init_components();
52435
52352
  init_tools();
52436
- args67 = {
52353
+ args66 = {
52437
52354
  request: UniswapBuyExactlyRequest$inboundSchema
52438
52355
  };
52439
52356
  tool$uniswapV3SwapBuyExactly = {
@@ -52447,9 +52364,9 @@ The transaction is executed on the specified blockchain network, and the user mu
52447
52364
  provide the necessary transaction details, including the token to buy, the token to
52448
52365
  pay with, and the exact amount to receive. If the token being paid with is WETH and
52449
52366
  needs to be wrapped, the appropriate amount will be wrapped automatically.`,
52450
- args: args67,
52451
- tool: async (client, args68, ctx) => {
52452
- const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52367
+ args: args66,
52368
+ tool: async (client, args67, ctx) => {
52369
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52453
52370
  if (!result.ok) {
52454
52371
  return {
52455
52372
  content: [{ type: "text", text: result.error.message }],
@@ -52464,9 +52381,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
52464
52381
 
52465
52382
  // src/funcs/uniswapV3SwapSellExactly.ts
52466
52383
  function uniswapV3SwapSellExactly(client, request, options) {
52467
- return new APIPromise($do68(client, request, options));
52384
+ return new APIPromise($do67(client, request, options));
52468
52385
  }
52469
- async function $do68(client, request, options) {
52386
+ async function $do67(client, request, options) {
52470
52387
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52471
52388
  if (!parsed.ok) {
52472
52389
  return [parsed, { status: "invalid" }];
@@ -52537,12 +52454,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
52537
52454
  });
52538
52455
 
52539
52456
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
52540
- var args68, tool$uniswapV3SwapSellExactly;
52457
+ var args67, tool$uniswapV3SwapSellExactly;
52541
52458
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
52542
52459
  init_uniswapV3SwapSellExactly();
52543
52460
  init_components();
52544
52461
  init_tools();
52545
- args68 = {
52462
+ args67 = {
52546
52463
  request: UniswapSellExactlyRequest$inboundSchema
52547
52464
  };
52548
52465
  tool$uniswapV3SwapSellExactly = {
@@ -52556,9 +52473,9 @@ The transaction is executed on the specified blockchain network, and the user mu
52556
52473
  provide the necessary transaction details, including the token to sell, the token to
52557
52474
  receive, and the amount to sell. If the token being sold is WETH and needs to be
52558
52475
  wrapped, the appropriate amount will be wrapped automatically.`,
52559
- args: args68,
52560
- tool: async (client, args69, ctx) => {
52561
- const [result, apiCall] = await uniswapV3SwapSellExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52476
+ args: args67,
52477
+ tool: async (client, args68, ctx) => {
52478
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52562
52479
  if (!result.ok) {
52563
52480
  return {
52564
52481
  content: [{ type: "text", text: result.error.message }],
@@ -52573,9 +52490,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
52573
52490
 
52574
52491
  // src/funcs/universalAllowance.ts
52575
52492
  function universalAllowance(client, request, options) {
52576
- return new APIPromise($do69(client, request, options));
52493
+ return new APIPromise($do68(client, request, options));
52577
52494
  }
52578
- async function $do69(client, request, options) {
52495
+ async function $do68(client, request, options) {
52579
52496
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
52580
52497
  if (!parsed.ok) {
52581
52498
  return [parsed, { status: "invalid" }];
@@ -52585,7 +52502,7 @@ async function $do69(client, request, options) {
52585
52502
  const path = pathToFunc("/v0/generic/allowance/get")();
52586
52503
  const query = encodeFormQuery({
52587
52504
  chain: payload.chain,
52588
- contract_name: payload.contract_name,
52505
+ contract: payload.contract,
52589
52506
  token: payload.token,
52590
52507
  user: payload.user
52591
52508
  });
@@ -52653,12 +52570,12 @@ var init_universalAllowance = __esm(() => {
52653
52570
  });
52654
52571
 
52655
52572
  // src/mcp-server/tools/universalAllowance.ts
52656
- var args69, tool$universalAllowance;
52573
+ var args68, tool$universalAllowance;
52657
52574
  var init_universalAllowance2 = __esm(() => {
52658
52575
  init_universalAllowance();
52659
52576
  init_operations();
52660
52577
  init_tools();
52661
- args69 = {
52578
+ args68 = {
52662
52579
  request: GenericAllowanceRequest$inboundSchema
52663
52580
  };
52664
52581
  tool$universalAllowance = {
@@ -52672,9 +52589,9 @@ tokens on their behalf.
52672
52589
  This is a crucial step before engaging in any transactions or operations within
52673
52590
  these protocols, ensuring that the protocol has the necessary permissions to manage
52674
52591
  the user's tokens securely and efficiently.`,
52675
- args: args69,
52676
- tool: async (client, args70, ctx) => {
52677
- const [result, apiCall] = await universalAllowance(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52592
+ args: args68,
52593
+ tool: async (client, args69, ctx) => {
52594
+ const [result, apiCall] = await universalAllowance(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52678
52595
  if (!result.ok) {
52679
52596
  return {
52680
52597
  content: [{ type: "text", text: result.error.message }],
@@ -52689,10 +52606,10 @@ the user's tokens securely and efficiently.`,
52689
52606
 
52690
52607
  // src/funcs/universalAllowanceSet.ts
52691
52608
  function universalAllowanceSet(client, request, options) {
52692
- return new APIPromise($do70(client, request, options));
52609
+ return new APIPromise($do69(client, request, options));
52693
52610
  }
52694
- async function $do70(client, request, options) {
52695
- const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
52611
+ async function $do69(client, request, options) {
52612
+ const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
52696
52613
  if (!parsed.ok) {
52697
52614
  return [parsed, { status: "invalid" }];
52698
52615
  }
@@ -52762,13 +52679,13 @@ var init_universalAllowanceSet = __esm(() => {
52762
52679
  });
52763
52680
 
52764
52681
  // src/mcp-server/tools/universalAllowanceSet.ts
52765
- var args70, tool$universalAllowanceSet;
52682
+ var args69, tool$universalAllowanceSet;
52766
52683
  var init_universalAllowanceSet2 = __esm(() => {
52767
52684
  init_universalAllowanceSet();
52768
52685
  init_components();
52769
52686
  init_tools();
52770
- args70 = {
52771
- request: IncreaseAllowanceRequest$inboundSchema
52687
+ args69 = {
52688
+ request: SetAllowanceRequest$inboundSchema
52772
52689
  };
52773
52690
  tool$universalAllowanceSet = {
52774
52691
  name: "universal-allowance-set",
@@ -52782,9 +52699,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
52782
52699
  This operation is crucial for ensuring that the protocol can manage the user's
52783
52700
  tokens securely and efficiently, enabling seamless transactions and operations
52784
52701
  within the DeFi ecosystem.`,
52785
- args: args70,
52786
- tool: async (client, args71, ctx) => {
52787
- const [result, apiCall] = await universalAllowanceSet(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52702
+ args: args69,
52703
+ tool: async (client, args70, ctx) => {
52704
+ const [result, apiCall] = await universalAllowanceSet(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52788
52705
  if (!result.ok) {
52789
52706
  return {
52790
52707
  content: [{ type: "text", text: result.error.message }],
@@ -52799,9 +52716,9 @@ within the DeFi ecosystem.`,
52799
52716
 
52800
52717
  // src/funcs/universalEns.ts
52801
52718
  function universalEns(client, request, options) {
52802
- return new APIPromise($do71(client, request, options));
52719
+ return new APIPromise($do70(client, request, options));
52803
52720
  }
52804
- async function $do71(client, request, options) {
52721
+ async function $do70(client, request, options) {
52805
52722
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
52806
52723
  if (!parsed.ok) {
52807
52724
  return [parsed, { status: "invalid" }];
@@ -52877,12 +52794,12 @@ var init_universalEns = __esm(() => {
52877
52794
  });
52878
52795
 
52879
52796
  // src/mcp-server/tools/universalEns.ts
52880
- var args71, tool$universalEns;
52797
+ var args70, tool$universalEns;
52881
52798
  var init_universalEns2 = __esm(() => {
52882
52799
  init_universalEns();
52883
52800
  init_operations();
52884
52801
  init_tools();
52885
- args71 = {
52802
+ args70 = {
52886
52803
  request: GenericEnsRequest$inboundSchema
52887
52804
  };
52888
52805
  tool$universalEns = {
@@ -52893,9 +52810,9 @@ An ENS name is a string ending in \`.eth\`.
52893
52810
 
52894
52811
  E.g. \`vitalik.eth\`. This endpoint can be used to
52895
52812
  query the actual ethereum wallet address behind the ENS name.`,
52896
- args: args71,
52897
- tool: async (client, args72, ctx) => {
52898
- const [result, apiCall] = await universalEns(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52813
+ args: args70,
52814
+ tool: async (client, args71, ctx) => {
52815
+ const [result, apiCall] = await universalEns(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52899
52816
  if (!result.ok) {
52900
52817
  return {
52901
52818
  content: [{ type: "text", text: result.error.message }],
@@ -52910,9 +52827,9 @@ query the actual ethereum wallet address behind the ENS name.`,
52910
52827
 
52911
52828
  // src/funcs/universalPortfolio.ts
52912
52829
  function universalPortfolio(client, request, options) {
52913
- return new APIPromise($do72(client, request, options));
52830
+ return new APIPromise($do71(client, request, options));
52914
52831
  }
52915
- async function $do72(client, request, options) {
52832
+ async function $do71(client, request, options) {
52916
52833
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
52917
52834
  if (!parsed.ok) {
52918
52835
  return [parsed, { status: "invalid" }];
@@ -52988,12 +52905,12 @@ var init_universalPortfolio = __esm(() => {
52988
52905
  });
52989
52906
 
52990
52907
  // src/mcp-server/tools/universalPortfolio.ts
52991
- var args72, tool$universalPortfolio;
52908
+ var args71, tool$universalPortfolio;
52992
52909
  var init_universalPortfolio2 = __esm(() => {
52993
52910
  init_universalPortfolio();
52994
52911
  init_operations();
52995
52912
  init_tools();
52996
- args72 = {
52913
+ args71 = {
52997
52914
  request: GenericPortfolioRequest$inboundSchema
52998
52915
  };
52999
52916
  tool$universalPortfolio = {
@@ -53004,9 +52921,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
53004
52921
 
53005
52922
  This includes the total value of the portfolio in USD and a breakdown of token
53006
52923
  balances, including their respective values and quantities.`,
53007
- args: args72,
53008
- tool: async (client, args73, ctx) => {
53009
- const [result, apiCall] = await universalPortfolio(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52924
+ args: args71,
52925
+ tool: async (client, args72, ctx) => {
52926
+ const [result, apiCall] = await universalPortfolio(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53010
52927
  if (!result.ok) {
53011
52928
  return {
53012
52929
  content: [{ type: "text", text: result.error.message }],
@@ -53021,9 +52938,9 @@ balances, including their respective values and quantities.`,
53021
52938
 
53022
52939
  // src/funcs/universalSupportedTokens.ts
53023
52940
  function universalSupportedTokens(client, request, options) {
53024
- return new APIPromise($do73(client, request, options));
52941
+ return new APIPromise($do72(client, request, options));
53025
52942
  }
53026
- async function $do73(client, request, options) {
52943
+ async function $do72(client, request, options) {
53027
52944
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
53028
52945
  if (!parsed.ok) {
53029
52946
  return [parsed, { status: "invalid" }];
@@ -53098,12 +53015,12 @@ var init_universalSupportedTokens = __esm(() => {
53098
53015
  });
53099
53016
 
53100
53017
  // src/mcp-server/tools/universalSupportedTokens.ts
53101
- var args73, tool$universalSupportedTokens;
53018
+ var args72, tool$universalSupportedTokens;
53102
53019
  var init_universalSupportedTokens2 = __esm(() => {
53103
53020
  init_universalSupportedTokens();
53104
53021
  init_operations();
53105
53022
  init_tools();
53106
- args73 = {
53023
+ args72 = {
53107
53024
  request: GenericSupportedTokensRequest$inboundSchema
53108
53025
  };
53109
53026
  tool$universalSupportedTokens = {
@@ -53111,9 +53028,9 @@ var init_universalSupportedTokens2 = __esm(() => {
53111
53028
  description: `List Supported Tokens
53112
53029
 
53113
53030
  Get the list of supported tokens on a chain by the Compass API.`,
53114
- args: args73,
53115
- tool: async (client, args74, ctx) => {
53116
- const [result, apiCall] = await universalSupportedTokens(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53031
+ args: args72,
53032
+ tool: async (client, args73, ctx) => {
53033
+ const [result, apiCall] = await universalSupportedTokens(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53117
53034
  if (!result.ok) {
53118
53035
  return {
53119
53036
  content: [{ type: "text", text: result.error.message }],
@@ -53128,9 +53045,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
53128
53045
 
53129
53046
  // src/funcs/universalUnwrapWeth.ts
53130
53047
  function universalUnwrapWeth(client, request, options) {
53131
- return new APIPromise($do74(client, request, options));
53048
+ return new APIPromise($do73(client, request, options));
53132
53049
  }
53133
- async function $do74(client, request, options) {
53050
+ async function $do73(client, request, options) {
53134
53051
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
53135
53052
  if (!parsed.ok) {
53136
53053
  return [parsed, { status: "invalid" }];
@@ -53201,12 +53118,12 @@ var init_universalUnwrapWeth = __esm(() => {
53201
53118
  });
53202
53119
 
53203
53120
  // src/mcp-server/tools/universalUnwrapWeth.ts
53204
- var args74, tool$universalUnwrapWeth;
53121
+ var args73, tool$universalUnwrapWeth;
53205
53122
  var init_universalUnwrapWeth2 = __esm(() => {
53206
53123
  init_universalUnwrapWeth();
53207
53124
  init_components();
53208
53125
  init_tools();
53209
- args74 = {
53126
+ args73 = {
53210
53127
  request: UnwrapWethRequest$inboundSchema
53211
53128
  };
53212
53129
  tool$universalUnwrapWeth = {
@@ -53215,9 +53132,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
53215
53132
 
53216
53133
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
53217
53134
  can be used for gas and other native purposes.`,
53218
- args: args74,
53219
- tool: async (client, args75, ctx) => {
53220
- const [result, apiCall] = await universalUnwrapWeth(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53135
+ args: args73,
53136
+ tool: async (client, args74, ctx) => {
53137
+ const [result, apiCall] = await universalUnwrapWeth(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53221
53138
  if (!result.ok) {
53222
53139
  return {
53223
53140
  content: [{ type: "text", text: result.error.message }],
@@ -53232,9 +53149,9 @@ can be used for gas and other native purposes.`,
53232
53149
 
53233
53150
  // src/funcs/universalVisualizePortfolio.ts
53234
53151
  function universalVisualizePortfolio(client, request, options) {
53235
- return new APIPromise($do75(client, request, options));
53152
+ return new APIPromise($do74(client, request, options));
53236
53153
  }
53237
- async function $do75(client, request, options) {
53154
+ async function $do74(client, request, options) {
53238
53155
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
53239
53156
  if (!parsed.ok) {
53240
53157
  return [parsed, { status: "invalid" }];
@@ -53310,12 +53227,12 @@ var init_universalVisualizePortfolio = __esm(() => {
53310
53227
  });
53311
53228
 
53312
53229
  // src/mcp-server/tools/universalVisualizePortfolio.ts
53313
- var args75, tool$universalVisualizePortfolio;
53230
+ var args74, tool$universalVisualizePortfolio;
53314
53231
  var init_universalVisualizePortfolio2 = __esm(() => {
53315
53232
  init_universalVisualizePortfolio();
53316
53233
  init_operations();
53317
53234
  init_tools();
53318
- args75 = {
53235
+ args74 = {
53319
53236
  request: GenericVisualizePortfolioRequest$inboundSchema
53320
53237
  };
53321
53238
  tool$universalVisualizePortfolio = {
@@ -53327,9 +53244,9 @@ Generate a visual representation of the token portfolio for a wallet address.
53327
53244
  The response is an SVG image of a pie chart depicting the relative distribution of
53328
53245
  tokens held, colored and labeled with token symbols, percentages and token values in
53329
53246
  USD.`,
53330
- args: args75,
53331
- tool: async (client, args76, ctx) => {
53332
- const [result, apiCall] = await universalVisualizePortfolio(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53247
+ args: args74,
53248
+ tool: async (client, args75, ctx) => {
53249
+ const [result, apiCall] = await universalVisualizePortfolio(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53333
53250
  if (!result.ok) {
53334
53251
  return {
53335
53252
  content: [{ type: "text", text: result.error.message }],
@@ -53344,9 +53261,9 @@ USD.`,
53344
53261
 
53345
53262
  // src/funcs/universalWrapEth.ts
53346
53263
  function universalWrapEth(client, request, options) {
53347
- return new APIPromise($do76(client, request, options));
53264
+ return new APIPromise($do75(client, request, options));
53348
53265
  }
53349
- async function $do76(client, request, options) {
53266
+ async function $do75(client, request, options) {
53350
53267
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
53351
53268
  if (!parsed.ok) {
53352
53269
  return [parsed, { status: "invalid" }];
@@ -53417,12 +53334,12 @@ var init_universalWrapEth = __esm(() => {
53417
53334
  });
53418
53335
 
53419
53336
  // src/mcp-server/tools/universalWrapEth.ts
53420
- var args76, tool$universalWrapEth;
53337
+ var args75, tool$universalWrapEth;
53421
53338
  var init_universalWrapEth2 = __esm(() => {
53422
53339
  init_universalWrapEth();
53423
53340
  init_components();
53424
53341
  init_tools();
53425
- args76 = {
53342
+ args75 = {
53426
53343
  request: WrapEthRequest$inboundSchema
53427
53344
  };
53428
53345
  tool$universalWrapEth = {
@@ -53431,9 +53348,221 @@ var init_universalWrapEth2 = __esm(() => {
53431
53348
 
53432
53349
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
53433
53350
  it to be traded on DeFi protocols.`,
53351
+ args: args75,
53352
+ tool: async (client, args76, ctx) => {
53353
+ const [result, apiCall] = await universalWrapEth(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53354
+ if (!result.ok) {
53355
+ return {
53356
+ content: [{ type: "text", text: result.error.message }],
53357
+ isError: true
53358
+ };
53359
+ }
53360
+ const value = result.value;
53361
+ return formatResult(value, apiCall);
53362
+ }
53363
+ };
53364
+ });
53365
+
53366
+ // src/funcs/vaultsERC4626Deposit.ts
53367
+ function vaultsERC4626Deposit(client, request, options) {
53368
+ return new APIPromise($do76(client, request, options));
53369
+ }
53370
+ async function $do76(client, request, options) {
53371
+ const parsed = safeParse(request, (value) => VaultDepositRequest$outboundSchema.parse(value), "Input validation failed");
53372
+ if (!parsed.ok) {
53373
+ return [parsed, { status: "invalid" }];
53374
+ }
53375
+ const payload = parsed.value;
53376
+ const body = encodeJSON("body", payload, { explode: true });
53377
+ const path = pathToFunc("/v0/vaults/deposit")();
53378
+ const headers = new Headers(compactMap({
53379
+ "Content-Type": "application/json",
53380
+ Accept: "application/json"
53381
+ }));
53382
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
53383
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
53384
+ const requestSecurity = resolveGlobalSecurity(securityInput);
53385
+ const context = {
53386
+ options: client._options,
53387
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
53388
+ operationID: "vaults_deposit",
53389
+ oAuth2Scopes: [],
53390
+ resolvedSecurity: requestSecurity,
53391
+ securitySource: client._options.apiKeyAuth,
53392
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
53393
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
53394
+ };
53395
+ const requestRes = client._createRequest(context, {
53396
+ security: requestSecurity,
53397
+ method: "POST",
53398
+ baseURL: options?.serverURL,
53399
+ path,
53400
+ headers,
53401
+ body,
53402
+ userAgent: client._options.userAgent,
53403
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
53404
+ }, options);
53405
+ if (!requestRes.ok) {
53406
+ return [requestRes, { status: "invalid" }];
53407
+ }
53408
+ const req = requestRes.value;
53409
+ const doResult = await client._do(req, {
53410
+ context,
53411
+ errorCodes: ["422", "4XX", "5XX"],
53412
+ retryConfig: context.retryConfig,
53413
+ retryCodes: context.retryCodes
53414
+ });
53415
+ if (!doResult.ok) {
53416
+ return [doResult, { status: "request-error", request: req }];
53417
+ }
53418
+ const response = doResult.value;
53419
+ const responseFields = {
53420
+ HttpMeta: { Response: response, Request: req }
53421
+ };
53422
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
53423
+ if (!result.ok) {
53424
+ return [result, { status: "complete", request: req, response }];
53425
+ }
53426
+ return [result, { status: "complete", request: req, response }];
53427
+ }
53428
+ var init_vaultsERC4626Deposit = __esm(() => {
53429
+ init_encodings();
53430
+ init_matchers();
53431
+ init_primitives();
53432
+ init_schemas();
53433
+ init_security();
53434
+ init_url();
53435
+ init_components();
53436
+ init_errors2();
53437
+ init_async();
53438
+ });
53439
+
53440
+ // src/mcp-server/tools/vaultsERC4626Deposit.ts
53441
+ var args76, tool$vaultsERC4626Deposit;
53442
+ var init_vaultsERC4626Deposit2 = __esm(() => {
53443
+ init_vaultsERC4626Deposit();
53444
+ init_components();
53445
+ init_tools();
53446
+ args76 = {
53447
+ request: VaultDepositRequest$inboundSchema
53448
+ };
53449
+ tool$vaultsERC4626Deposit = {
53450
+ name: "vaults-(erc-4626-)-deposit",
53451
+ description: `Deposit to Vault
53452
+
53453
+ Deposit tokens into a Vault (ERC-4626 Standard) to earn passive yield.
53454
+
53455
+ Each vault accepts one unique token that can be deposited.`,
53434
53456
  args: args76,
53435
53457
  tool: async (client, args77, ctx) => {
53436
- const [result, apiCall] = await universalWrapEth(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53458
+ const [result, apiCall] = await vaultsERC4626Deposit(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53459
+ if (!result.ok) {
53460
+ return {
53461
+ content: [{ type: "text", text: result.error.message }],
53462
+ isError: true
53463
+ };
53464
+ }
53465
+ const value = result.value;
53466
+ return formatResult(value, apiCall);
53467
+ }
53468
+ };
53469
+ });
53470
+
53471
+ // src/funcs/vaultsERC4626Withdraw.ts
53472
+ function vaultsERC4626Withdraw(client, request, options) {
53473
+ return new APIPromise($do77(client, request, options));
53474
+ }
53475
+ async function $do77(client, request, options) {
53476
+ const parsed = safeParse(request, (value) => VaultWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
53477
+ if (!parsed.ok) {
53478
+ return [parsed, { status: "invalid" }];
53479
+ }
53480
+ const payload = parsed.value;
53481
+ const body = encodeJSON("body", payload, { explode: true });
53482
+ const path = pathToFunc("/v0/vaults/withdraw")();
53483
+ const headers = new Headers(compactMap({
53484
+ "Content-Type": "application/json",
53485
+ Accept: "application/json"
53486
+ }));
53487
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
53488
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
53489
+ const requestSecurity = resolveGlobalSecurity(securityInput);
53490
+ const context = {
53491
+ options: client._options,
53492
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
53493
+ operationID: "vaults_withdraw",
53494
+ oAuth2Scopes: [],
53495
+ resolvedSecurity: requestSecurity,
53496
+ securitySource: client._options.apiKeyAuth,
53497
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
53498
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
53499
+ };
53500
+ const requestRes = client._createRequest(context, {
53501
+ security: requestSecurity,
53502
+ method: "POST",
53503
+ baseURL: options?.serverURL,
53504
+ path,
53505
+ headers,
53506
+ body,
53507
+ userAgent: client._options.userAgent,
53508
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
53509
+ }, options);
53510
+ if (!requestRes.ok) {
53511
+ return [requestRes, { status: "invalid" }];
53512
+ }
53513
+ const req = requestRes.value;
53514
+ const doResult = await client._do(req, {
53515
+ context,
53516
+ errorCodes: ["422", "4XX", "5XX"],
53517
+ retryConfig: context.retryConfig,
53518
+ retryCodes: context.retryCodes
53519
+ });
53520
+ if (!doResult.ok) {
53521
+ return [doResult, { status: "request-error", request: req }];
53522
+ }
53523
+ const response = doResult.value;
53524
+ const responseFields = {
53525
+ HttpMeta: { Response: response, Request: req }
53526
+ };
53527
+ const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
53528
+ if (!result.ok) {
53529
+ return [result, { status: "complete", request: req, response }];
53530
+ }
53531
+ return [result, { status: "complete", request: req, response }];
53532
+ }
53533
+ var init_vaultsERC4626Withdraw = __esm(() => {
53534
+ init_encodings();
53535
+ init_matchers();
53536
+ init_primitives();
53537
+ init_schemas();
53538
+ init_security();
53539
+ init_url();
53540
+ init_components();
53541
+ init_errors2();
53542
+ init_async();
53543
+ });
53544
+
53545
+ // src/mcp-server/tools/vaultsERC4626Withdraw.ts
53546
+ var args77, tool$vaultsERC4626Withdraw;
53547
+ var init_vaultsERC4626Withdraw2 = __esm(() => {
53548
+ init_vaultsERC4626Withdraw();
53549
+ init_components();
53550
+ init_tools();
53551
+ args77 = {
53552
+ request: VaultWithdrawRequest$inboundSchema
53553
+ };
53554
+ tool$vaultsERC4626Withdraw = {
53555
+ name: "vaults-(erc-4626-)-withdraw",
53556
+ description: `Withdraw from Vault
53557
+
53558
+ Withdraw deposited tokens from a Vault (ERC-4626 Standard).
53559
+
53560
+ The passive yield earned on token deposits is represented by the increased value of
53561
+ the shares received upon depositing tokens. Trade in these shares for the tokens you
53562
+ deposited plus any accrued yield.`,
53563
+ args: args77,
53564
+ tool: async (client, args78, ctx) => {
53565
+ const [result, apiCall] = await vaultsERC4626Withdraw(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53437
53566
  if (!result.ok) {
53438
53567
  return {
53439
53568
  content: [{ type: "text", text: result.error.message }],
@@ -53450,7 +53579,7 @@ it to be traded on DeFi protocols.`,
53450
53579
  function createMCPServer(deps) {
53451
53580
  const server = new McpServer({
53452
53581
  name: "CompassApiSDK",
53453
- version: "0.5.21"
53582
+ version: "0.5.23"
53454
53583
  });
53455
53584
  const client = new CompassApiSDKCore({
53456
53585
  apiKeyAuth: deps.apiKeyAuth,
@@ -53491,7 +53620,6 @@ function createMCPServer(deps) {
53491
53620
  tool(tool$morphoMarket);
53492
53621
  tool(tool$morphoMarketPosition);
53493
53622
  tool(tool$morphoUserPosition);
53494
- tool(tool$morphoAllowance);
53495
53623
  tool(tool$morphoDeposit);
53496
53624
  tool(tool$morphoWithdraw);
53497
53625
  tool(tool$morphoSupplyCollateral);
@@ -53540,6 +53668,8 @@ function createMCPServer(deps) {
53540
53668
  tool(tool$transactionBundlerBundlerExecute);
53541
53669
  tool(tool$transactionBundlerBundlerAaveLoop);
53542
53670
  tool(tool$smartAccountAccountBatchedUserOperations);
53671
+ tool(tool$vaultsERC4626Deposit);
53672
+ tool(tool$vaultsERC4626Withdraw);
53543
53673
  return server;
53544
53674
  }
53545
53675
  var init_server2 = __esm(() => {
@@ -53567,7 +53697,6 @@ var init_server2 = __esm(() => {
53567
53697
  init_aerodromeSlipstreamSlipstreamPoolPrice2();
53568
53698
  init_aerodromeSlipstreamSlipstreamSwapBuyExactly2();
53569
53699
  init_aerodromeSlipstreamSlipstreamSwapSellExactly2();
53570
- init_morphoAllowance2();
53571
53700
  init_morphoBorrow2();
53572
53701
  init_morphoDeposit2();
53573
53702
  init_morphoMarket2();
@@ -53623,6 +53752,8 @@ var init_server2 = __esm(() => {
53623
53752
  init_universalUnwrapWeth2();
53624
53753
  init_universalVisualizePortfolio2();
53625
53754
  init_universalWrapEth2();
53755
+ init_vaultsERC4626Deposit2();
53756
+ init_vaultsERC4626Withdraw2();
53626
53757
  });
53627
53758
 
53628
53759
  // src/mcp-server/cli/start/impl.ts
@@ -54813,7 +54944,7 @@ var routes = an({
54813
54944
  var app = He(routes, {
54814
54945
  name: "mcp",
54815
54946
  versionInfo: {
54816
- currentVersion: "0.5.21"
54947
+ currentVersion: "0.5.23"
54817
54948
  }
54818
54949
  });
54819
54950
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -54821,5 +54952,5 @@ export {
54821
54952
  app
54822
54953
  };
54823
54954
 
54824
- //# debugId=F95DEC22565B8BBA64756E2164756E21
54955
+ //# debugId=45D0AA6035F1763F64756E2164756E21
54825
54956
  //# sourceMappingURL=mcp-server.js.map