@compass-labs/api-sdk 0.0.7 → 0.0.9

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 (535) hide show
  1. package/README.md +7 -8
  2. package/bin/mcp-server.js +2389 -1146
  3. package/bin/mcp-server.js.map +48 -24
  4. package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts +22 -0
  5. package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/{universalTransferErc20.js → transactionBatchingAuthorization.js} +14 -9
  7. package/dist/commonjs/funcs/transactionBatchingAuthorization.js.map +1 -0
  8. package/dist/commonjs/funcs/transactionBatchingExecute.d.ts +22 -0
  9. package/dist/commonjs/funcs/transactionBatchingExecute.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/{universalTransferNativeToken.js → transactionBatchingExecute.js} +14 -9
  11. package/dist/commonjs/funcs/transactionBatchingExecute.js.map +1 -0
  12. package/dist/commonjs/lib/config.d.ts +2 -2
  13. package/dist/commonjs/lib/config.js +2 -2
  14. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  15. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  16. package/dist/commonjs/mcp-server/server.js +5 -9
  17. package/dist/commonjs/mcp-server/server.js.map +1 -1
  18. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts +8 -0
  19. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +1 -0
  20. package/dist/commonjs/mcp-server/tools/{universalTransferErc20.js → transactionBatchingAuthorization.js} +14 -9
  21. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -0
  22. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts +8 -0
  23. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -0
  24. package/dist/commonjs/mcp-server/tools/{universalTransferNativeToken.js → transactionBatchingExecute.js} +14 -9
  25. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js.map +1 -0
  26. package/dist/commonjs/models/components/aaveborrowparams.d.ts +82 -0
  27. package/dist/commonjs/models/components/aaveborrowparams.d.ts.map +1 -0
  28. package/dist/commonjs/models/components/aaveborrowparams.js +111 -0
  29. package/dist/commonjs/models/components/aaveborrowparams.js.map +1 -0
  30. package/dist/commonjs/models/components/aaverepayparams.d.ts +82 -0
  31. package/dist/commonjs/models/components/aaverepayparams.d.ts.map +1 -0
  32. package/dist/commonjs/models/components/aaverepayparams.js +111 -0
  33. package/dist/commonjs/models/components/aaverepayparams.js.map +1 -0
  34. package/dist/commonjs/models/components/aavesupplyparams.d.ts +72 -0
  35. package/dist/commonjs/models/components/aavesupplyparams.d.ts.map +1 -0
  36. package/dist/commonjs/models/components/aavesupplyparams.js +106 -0
  37. package/dist/commonjs/models/components/aavesupplyparams.js.map +1 -0
  38. package/dist/commonjs/models/components/aavewithdrawparams.d.ts +72 -0
  39. package/dist/commonjs/models/components/aavewithdrawparams.d.ts.map +1 -0
  40. package/dist/commonjs/models/components/aavewithdrawparams.js +97 -0
  41. package/dist/commonjs/models/components/aavewithdrawparams.js.map +1 -0
  42. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts +177 -0
  43. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts.map +1 -0
  44. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js +191 -0
  45. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js.map +1 -0
  46. package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts +186 -0
  47. package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts.map +1 -0
  48. package/dist/commonjs/models/components/aerodromeaddliquidityparams.js +197 -0
  49. package/dist/commonjs/models/components/aerodromeaddliquidityparams.js.map +1 -0
  50. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts +151 -0
  51. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts.map +1 -0
  52. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js +167 -0
  53. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js.map +1 -0
  54. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts +161 -0
  55. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts.map +1 -0
  56. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js +173 -0
  57. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js.map +1 -0
  58. package/dist/commonjs/models/components/aerodromeslipstreambuyexactlyparams.d.ts +114 -0
  59. package/dist/commonjs/models/components/aerodromeslipstreambuyexactlyparams.d.ts.map +1 -0
  60. package/dist/commonjs/models/components/aerodromeslipstreambuyexactlyparams.js +141 -0
  61. package/dist/commonjs/models/components/aerodromeslipstreambuyexactlyparams.js.map +1 -0
  62. package/dist/commonjs/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.d.ts +156 -0
  63. package/dist/commonjs/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.js +194 -0
  65. package/dist/commonjs/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.js.map +1 -0
  66. package/dist/commonjs/models/components/aerodromeslipstreammintliquidityprovisionparams.d.ts +187 -0
  67. package/dist/commonjs/models/components/aerodromeslipstreammintliquidityprovisionparams.d.ts.map +1 -0
  68. package/dist/commonjs/models/components/aerodromeslipstreammintliquidityprovisionparams.js +209 -0
  69. package/dist/commonjs/models/components/aerodromeslipstreammintliquidityprovisionparams.js.map +1 -0
  70. package/dist/commonjs/models/components/aerodromeslipstreamsellexactlyparams.d.ts +114 -0
  71. package/dist/commonjs/models/components/aerodromeslipstreamsellexactlyparams.d.ts.map +1 -0
  72. package/dist/commonjs/models/components/aerodromeslipstreamsellexactlyparams.js +141 -0
  73. package/dist/commonjs/models/components/aerodromeslipstreamsellexactlyparams.js.map +1 -0
  74. package/dist/commonjs/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.d.ts +69 -0
  75. package/dist/commonjs/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.d.ts.map +1 -0
  76. package/dist/commonjs/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.js +107 -0
  77. package/dist/commonjs/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.js.map +1 -0
  78. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts +109 -0
  79. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts.map +1 -0
  80. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js +137 -0
  81. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js.map +1 -0
  82. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts +109 -0
  83. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts.map +1 -0
  84. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js +137 -0
  85. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js.map +1 -0
  86. package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts +128 -0
  87. package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts.map +1 -0
  88. package/dist/commonjs/models/components/aerodromeswaptokensparams.js +141 -0
  89. package/dist/commonjs/models/components/aerodromeswaptokensparams.js.map +1 -0
  90. package/dist/commonjs/models/components/contractname.d.ts +96 -0
  91. package/dist/commonjs/models/components/contractname.d.ts.map +1 -0
  92. package/dist/commonjs/models/components/contractname.js +85 -0
  93. package/dist/commonjs/models/components/contractname.js.map +1 -0
  94. package/dist/commonjs/models/components/increaseallowanceanyparams.d.ts +83 -0
  95. package/dist/commonjs/models/components/increaseallowanceanyparams.d.ts.map +1 -0
  96. package/dist/commonjs/models/components/increaseallowanceanyparams.js +107 -0
  97. package/dist/commonjs/models/components/increaseallowanceanyparams.js.map +1 -0
  98. package/dist/commonjs/models/components/increaseallowanceparams.d.ts +122 -0
  99. package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +1 -0
  100. package/dist/commonjs/models/components/increaseallowanceparams.js +133 -0
  101. package/dist/commonjs/models/components/increaseallowanceparams.js.map +1 -0
  102. package/dist/commonjs/models/components/increaseallowancerequest.d.ts +8 -8
  103. package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +1 -1
  104. package/dist/commonjs/models/components/increaseallowancerequest.js +13 -13
  105. package/dist/commonjs/models/components/increaseallowancerequest.js.map +1 -1
  106. package/dist/commonjs/models/components/index.d.ts +34 -4
  107. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  108. package/dist/commonjs/models/components/index.js +34 -4
  109. package/dist/commonjs/models/components/index.js.map +1 -1
  110. package/dist/commonjs/models/components/multicallaction.d.ts +79 -0
  111. package/dist/commonjs/models/components/multicallaction.d.ts.map +1 -0
  112. package/dist/commonjs/models/components/multicallaction.js +239 -0
  113. package/dist/commonjs/models/components/multicallaction.js.map +1 -0
  114. package/dist/commonjs/models/components/multicallactiontype.d.ts +100 -0
  115. package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -0
  116. package/dist/commonjs/models/components/multicallactiontype.js +84 -0
  117. package/dist/commonjs/models/components/multicallactiontype.js.map +1 -0
  118. package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts +47 -0
  119. package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts.map +1 -0
  120. package/dist/commonjs/models/components/{priceresponse.js → multicallauthorizationrequest.js} +22 -28
  121. package/dist/commonjs/models/components/multicallauthorizationrequest.js.map +1 -0
  122. package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts +45 -0
  123. package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts.map +1 -0
  124. package/dist/commonjs/models/components/multicallauthorizationresponse.js +73 -0
  125. package/dist/commonjs/models/components/multicallauthorizationresponse.js.map +1 -0
  126. package/dist/commonjs/models/components/multicallexecuterequest.d.ts +50 -0
  127. package/dist/commonjs/models/components/multicallexecuterequest.d.ts.map +1 -0
  128. package/dist/commonjs/models/components/{balanceinforesponse.js → multicallexecuterequest.js} +30 -30
  129. package/dist/commonjs/models/components/multicallexecuterequest.js.map +1 -0
  130. package/dist/commonjs/models/components/signedauthorization.d.ts +81 -0
  131. package/dist/commonjs/models/components/signedauthorization.d.ts.map +1 -0
  132. package/dist/commonjs/models/components/signedauthorization.js +131 -0
  133. package/dist/commonjs/models/components/signedauthorization.js.map +1 -0
  134. package/dist/commonjs/models/components/tokentransfererc20params.d.ts +75 -0
  135. package/dist/commonjs/models/components/tokentransfererc20params.d.ts.map +1 -0
  136. package/dist/commonjs/models/components/tokentransfererc20params.js +97 -0
  137. package/dist/commonjs/models/components/tokentransfererc20params.js.map +1 -0
  138. package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts +121 -0
  139. package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts.map +1 -0
  140. package/dist/commonjs/models/components/uniswapbuyexactlyparams.js +144 -0
  141. package/dist/commonjs/models/components/uniswapbuyexactlyparams.js.map +1 -0
  142. package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.d.ts +148 -0
  143. package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.d.ts.map +1 -0
  144. package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.js +186 -0
  145. package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.js.map +1 -0
  146. package/dist/commonjs/models/components/uniswapmintliquidityprovisionparams.d.ts +189 -0
  147. package/dist/commonjs/models/components/uniswapmintliquidityprovisionparams.d.ts.map +1 -0
  148. package/dist/commonjs/models/components/uniswapmintliquidityprovisionparams.js +200 -0
  149. package/dist/commonjs/models/components/uniswapmintliquidityprovisionparams.js.map +1 -0
  150. package/dist/commonjs/models/components/uniswapsellexactlyparams.d.ts +124 -0
  151. package/dist/commonjs/models/components/uniswapsellexactlyparams.d.ts.map +1 -0
  152. package/dist/commonjs/models/components/uniswapsellexactlyparams.js +144 -0
  153. package/dist/commonjs/models/components/uniswapsellexactlyparams.js.map +1 -0
  154. package/dist/commonjs/models/components/uniswapwithdrawliquidityprovisionparams.d.ts +69 -0
  155. package/dist/commonjs/models/components/uniswapwithdrawliquidityprovisionparams.d.ts.map +1 -0
  156. package/dist/commonjs/models/components/uniswapwithdrawliquidityprovisionparams.js +107 -0
  157. package/dist/commonjs/models/components/uniswapwithdrawliquidityprovisionparams.js.map +1 -0
  158. package/dist/commonjs/models/components/unsignedmulticalltransaction.d.ts +78 -0
  159. package/dist/commonjs/models/components/unsignedmulticalltransaction.d.ts.map +1 -0
  160. package/dist/commonjs/models/components/unsignedmulticalltransaction.js +88 -0
  161. package/dist/commonjs/models/components/unsignedmulticalltransaction.js.map +1 -0
  162. package/dist/commonjs/models/components/unwrapwethparams.d.ts +59 -0
  163. package/dist/commonjs/models/components/unwrapwethparams.d.ts.map +1 -0
  164. package/dist/commonjs/models/components/unwrapwethparams.js +92 -0
  165. package/dist/commonjs/models/components/unwrapwethparams.js.map +1 -0
  166. package/dist/commonjs/models/components/wrapethparams.d.ts +59 -0
  167. package/dist/commonjs/models/components/wrapethparams.d.ts.map +1 -0
  168. package/dist/commonjs/models/components/wrapethparams.js +92 -0
  169. package/dist/commonjs/models/components/wrapethparams.js.map +1 -0
  170. package/dist/commonjs/models/operations/index.d.ts +0 -2
  171. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  172. package/dist/commonjs/models/operations/index.js +0 -2
  173. package/dist/commonjs/models/operations/index.js.map +1 -1
  174. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  175. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  176. package/dist/commonjs/sdk/sdk.js +4 -0
  177. package/dist/commonjs/sdk/sdk.js.map +1 -1
  178. package/dist/commonjs/sdk/transactionbatching.d.ts +29 -0
  179. package/dist/commonjs/sdk/transactionbatching.d.ts.map +1 -0
  180. package/dist/commonjs/sdk/transactionbatching.js +42 -0
  181. package/dist/commonjs/sdk/transactionbatching.js.map +1 -0
  182. package/dist/commonjs/sdk/universal.d.ts +0 -33
  183. package/dist/commonjs/sdk/universal.d.ts.map +1 -1
  184. package/dist/commonjs/sdk/universal.js +0 -45
  185. package/dist/commonjs/sdk/universal.js.map +1 -1
  186. package/dist/esm/funcs/transactionBatchingAuthorization.d.ts +22 -0
  187. package/dist/esm/funcs/transactionBatchingAuthorization.d.ts.map +1 -0
  188. package/dist/esm/funcs/{universalTransferNativeToken.js → transactionBatchingAuthorization.js} +13 -8
  189. package/dist/esm/funcs/transactionBatchingAuthorization.js.map +1 -0
  190. package/dist/esm/funcs/transactionBatchingExecute.d.ts +22 -0
  191. package/dist/esm/funcs/transactionBatchingExecute.d.ts.map +1 -0
  192. package/dist/esm/funcs/{universalTransferErc20.js → transactionBatchingExecute.js} +13 -8
  193. package/dist/esm/funcs/transactionBatchingExecute.js.map +1 -0
  194. package/dist/esm/lib/config.d.ts +2 -2
  195. package/dist/esm/lib/config.js +2 -2
  196. package/dist/esm/mcp-server/mcp-server.js +1 -1
  197. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  198. package/dist/esm/mcp-server/server.js +5 -9
  199. package/dist/esm/mcp-server/server.js.map +1 -1
  200. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts +8 -0
  201. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +1 -0
  202. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js +33 -0
  203. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -0
  204. package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts +8 -0
  205. package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -0
  206. package/dist/esm/mcp-server/tools/transactionBatchingExecute.js +33 -0
  207. package/dist/esm/mcp-server/tools/transactionBatchingExecute.js.map +1 -0
  208. package/dist/esm/models/components/aaveborrowparams.d.ts +82 -0
  209. package/dist/esm/models/components/aaveborrowparams.d.ts.map +1 -0
  210. package/dist/esm/models/components/aaveborrowparams.js +71 -0
  211. package/dist/esm/models/components/aaveborrowparams.js.map +1 -0
  212. package/dist/esm/models/components/aaverepayparams.d.ts +82 -0
  213. package/dist/esm/models/components/aaverepayparams.d.ts.map +1 -0
  214. package/dist/esm/models/components/aaverepayparams.js +71 -0
  215. package/dist/esm/models/components/aaverepayparams.js.map +1 -0
  216. package/dist/esm/models/components/aavesupplyparams.d.ts +72 -0
  217. package/dist/esm/models/components/aavesupplyparams.d.ts.map +1 -0
  218. package/dist/esm/models/components/aavesupplyparams.js +66 -0
  219. package/dist/esm/models/components/aavesupplyparams.js.map +1 -0
  220. package/dist/esm/models/components/aavewithdrawparams.d.ts +72 -0
  221. package/dist/esm/models/components/aavewithdrawparams.d.ts.map +1 -0
  222. package/dist/esm/models/components/aavewithdrawparams.js +57 -0
  223. package/dist/esm/models/components/aavewithdrawparams.js.map +1 -0
  224. package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts +177 -0
  225. package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts.map +1 -0
  226. package/dist/esm/models/components/aerodromeaddliquidityethparams.js +145 -0
  227. package/dist/esm/models/components/aerodromeaddliquidityethparams.js.map +1 -0
  228. package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts +186 -0
  229. package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts.map +1 -0
  230. package/dist/esm/models/components/aerodromeaddliquidityparams.js +151 -0
  231. package/dist/esm/models/components/aerodromeaddliquidityparams.js.map +1 -0
  232. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts +151 -0
  233. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts.map +1 -0
  234. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js +123 -0
  235. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js.map +1 -0
  236. package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts +161 -0
  237. package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts.map +1 -0
  238. package/dist/esm/models/components/aerodromeremoveliquidityrequest.js +129 -0
  239. package/dist/esm/models/components/aerodromeremoveliquidityrequest.js.map +1 -0
  240. package/dist/esm/models/components/aerodromeslipstreambuyexactlyparams.d.ts +114 -0
  241. package/dist/esm/models/components/aerodromeslipstreambuyexactlyparams.d.ts.map +1 -0
  242. package/dist/esm/models/components/aerodromeslipstreambuyexactlyparams.js +99 -0
  243. package/dist/esm/models/components/aerodromeslipstreambuyexactlyparams.js.map +1 -0
  244. package/dist/esm/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.d.ts +156 -0
  245. package/dist/esm/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.d.ts.map +1 -0
  246. package/dist/esm/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.js +148 -0
  247. package/dist/esm/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.js.map +1 -0
  248. package/dist/esm/models/components/aerodromeslipstreammintliquidityprovisionparams.d.ts +187 -0
  249. package/dist/esm/models/components/aerodromeslipstreammintliquidityprovisionparams.d.ts.map +1 -0
  250. package/dist/esm/models/components/aerodromeslipstreammintliquidityprovisionparams.js +163 -0
  251. package/dist/esm/models/components/aerodromeslipstreammintliquidityprovisionparams.js.map +1 -0
  252. package/dist/esm/models/components/aerodromeslipstreamsellexactlyparams.d.ts +114 -0
  253. package/dist/esm/models/components/aerodromeslipstreamsellexactlyparams.d.ts.map +1 -0
  254. package/dist/esm/models/components/aerodromeslipstreamsellexactlyparams.js +99 -0
  255. package/dist/esm/models/components/aerodromeslipstreamsellexactlyparams.js.map +1 -0
  256. package/dist/esm/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.d.ts +69 -0
  257. package/dist/esm/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.d.ts.map +1 -0
  258. package/dist/esm/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.js +67 -0
  259. package/dist/esm/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.js.map +1 -0
  260. package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts +109 -0
  261. package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts.map +1 -0
  262. package/dist/esm/models/components/aerodromeswapethfortokenparams.js +95 -0
  263. package/dist/esm/models/components/aerodromeswapethfortokenparams.js.map +1 -0
  264. package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts +109 -0
  265. package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts.map +1 -0
  266. package/dist/esm/models/components/aerodromeswaptokenforethparams.js +95 -0
  267. package/dist/esm/models/components/aerodromeswaptokenforethparams.js.map +1 -0
  268. package/dist/esm/models/components/aerodromeswaptokensparams.d.ts +128 -0
  269. package/dist/esm/models/components/aerodromeswaptokensparams.d.ts.map +1 -0
  270. package/dist/esm/models/components/aerodromeswaptokensparams.js +99 -0
  271. package/dist/esm/models/components/aerodromeswaptokensparams.js.map +1 -0
  272. package/dist/esm/models/components/contractname.d.ts +96 -0
  273. package/dist/esm/models/components/contractname.d.ts.map +1 -0
  274. package/dist/esm/models/components/contractname.js +49 -0
  275. package/dist/esm/models/components/contractname.js.map +1 -0
  276. package/dist/esm/models/components/increaseallowanceanyparams.d.ts +83 -0
  277. package/dist/esm/models/components/increaseallowanceanyparams.d.ts.map +1 -0
  278. package/dist/esm/models/components/increaseallowanceanyparams.js +67 -0
  279. package/dist/esm/models/components/increaseallowanceanyparams.js.map +1 -0
  280. package/dist/esm/models/components/increaseallowanceparams.d.ts +122 -0
  281. package/dist/esm/models/components/increaseallowanceparams.d.ts.map +1 -0
  282. package/dist/esm/models/components/increaseallowanceparams.js +93 -0
  283. package/dist/esm/models/components/increaseallowanceparams.js.map +1 -0
  284. package/dist/esm/models/components/increaseallowancerequest.d.ts +8 -8
  285. package/dist/esm/models/components/increaseallowancerequest.d.ts.map +1 -1
  286. package/dist/esm/models/components/increaseallowancerequest.js +12 -12
  287. package/dist/esm/models/components/increaseallowancerequest.js.map +1 -1
  288. package/dist/esm/models/components/index.d.ts +34 -4
  289. package/dist/esm/models/components/index.d.ts.map +1 -1
  290. package/dist/esm/models/components/index.js +34 -4
  291. package/dist/esm/models/components/index.js.map +1 -1
  292. package/dist/esm/models/components/multicallaction.d.ts +79 -0
  293. package/dist/esm/models/components/multicallaction.d.ts.map +1 -0
  294. package/dist/esm/models/components/multicallaction.js +199 -0
  295. package/dist/esm/models/components/multicallaction.js.map +1 -0
  296. package/dist/esm/models/components/multicallactiontype.d.ts +100 -0
  297. package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -0
  298. package/dist/esm/models/components/multicallactiontype.js +48 -0
  299. package/dist/esm/models/components/multicallactiontype.js.map +1 -0
  300. package/dist/esm/models/components/multicallauthorizationrequest.d.ts +47 -0
  301. package/dist/esm/models/components/multicallauthorizationrequest.d.ts.map +1 -0
  302. package/dist/esm/models/components/multicallauthorizationrequest.js +34 -0
  303. package/dist/esm/models/components/multicallauthorizationrequest.js.map +1 -0
  304. package/dist/esm/models/components/multicallauthorizationresponse.d.ts +45 -0
  305. package/dist/esm/models/components/multicallauthorizationresponse.d.ts.map +1 -0
  306. package/dist/esm/models/components/multicallauthorizationresponse.js +35 -0
  307. package/dist/esm/models/components/multicallauthorizationresponse.js.map +1 -0
  308. package/dist/esm/models/components/multicallexecuterequest.d.ts +50 -0
  309. package/dist/esm/models/components/multicallexecuterequest.d.ts.map +1 -0
  310. package/dist/esm/models/components/multicallexecuterequest.js +49 -0
  311. package/dist/esm/models/components/multicallexecuterequest.js.map +1 -0
  312. package/dist/esm/models/components/signedauthorization.d.ts +81 -0
  313. package/dist/esm/models/components/signedauthorization.d.ts.map +1 -0
  314. package/dist/esm/models/components/signedauthorization.js +89 -0
  315. package/dist/esm/models/components/signedauthorization.js.map +1 -0
  316. package/dist/esm/models/components/tokentransfererc20params.d.ts +75 -0
  317. package/dist/esm/models/components/tokentransfererc20params.d.ts.map +1 -0
  318. package/dist/esm/models/components/tokentransfererc20params.js +57 -0
  319. package/dist/esm/models/components/tokentransfererc20params.js.map +1 -0
  320. package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts +121 -0
  321. package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts.map +1 -0
  322. package/dist/esm/models/components/uniswapbuyexactlyparams.js +102 -0
  323. package/dist/esm/models/components/uniswapbuyexactlyparams.js.map +1 -0
  324. package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.d.ts +148 -0
  325. package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.d.ts.map +1 -0
  326. package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.js +140 -0
  327. package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.js.map +1 -0
  328. package/dist/esm/models/components/uniswapmintliquidityprovisionparams.d.ts +189 -0
  329. package/dist/esm/models/components/uniswapmintliquidityprovisionparams.d.ts.map +1 -0
  330. package/dist/esm/models/components/uniswapmintliquidityprovisionparams.js +154 -0
  331. package/dist/esm/models/components/uniswapmintliquidityprovisionparams.js.map +1 -0
  332. package/dist/esm/models/components/uniswapsellexactlyparams.d.ts +124 -0
  333. package/dist/esm/models/components/uniswapsellexactlyparams.d.ts.map +1 -0
  334. package/dist/esm/models/components/uniswapsellexactlyparams.js +102 -0
  335. package/dist/esm/models/components/uniswapsellexactlyparams.js.map +1 -0
  336. package/dist/esm/models/components/uniswapwithdrawliquidityprovisionparams.d.ts +69 -0
  337. package/dist/esm/models/components/uniswapwithdrawliquidityprovisionparams.d.ts.map +1 -0
  338. package/dist/esm/models/components/uniswapwithdrawliquidityprovisionparams.js +67 -0
  339. package/dist/esm/models/components/uniswapwithdrawliquidityprovisionparams.js.map +1 -0
  340. package/dist/esm/models/components/unsignedmulticalltransaction.d.ts +78 -0
  341. package/dist/esm/models/components/unsignedmulticalltransaction.d.ts.map +1 -0
  342. package/dist/esm/models/components/unsignedmulticalltransaction.js +50 -0
  343. package/dist/esm/models/components/unsignedmulticalltransaction.js.map +1 -0
  344. package/dist/esm/models/components/unwrapwethparams.d.ts +59 -0
  345. package/dist/esm/models/components/unwrapwethparams.d.ts.map +1 -0
  346. package/dist/esm/models/components/unwrapwethparams.js +52 -0
  347. package/dist/esm/models/components/unwrapwethparams.js.map +1 -0
  348. package/dist/esm/models/components/wrapethparams.d.ts +59 -0
  349. package/dist/esm/models/components/wrapethparams.d.ts.map +1 -0
  350. package/dist/esm/models/components/wrapethparams.js +52 -0
  351. package/dist/esm/models/components/wrapethparams.js.map +1 -0
  352. package/dist/esm/models/operations/index.d.ts +0 -2
  353. package/dist/esm/models/operations/index.d.ts.map +1 -1
  354. package/dist/esm/models/operations/index.js +0 -2
  355. package/dist/esm/models/operations/index.js.map +1 -1
  356. package/dist/esm/sdk/sdk.d.ts +3 -0
  357. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  358. package/dist/esm/sdk/sdk.js +4 -0
  359. package/dist/esm/sdk/sdk.js.map +1 -1
  360. package/dist/esm/sdk/transactionbatching.d.ts +29 -0
  361. package/dist/esm/sdk/transactionbatching.d.ts.map +1 -0
  362. package/dist/esm/sdk/transactionbatching.js +38 -0
  363. package/dist/esm/sdk/transactionbatching.js.map +1 -0
  364. package/dist/esm/sdk/universal.d.ts +0 -33
  365. package/dist/esm/sdk/universal.d.ts.map +1 -1
  366. package/dist/esm/sdk/universal.js +0 -45
  367. package/dist/esm/sdk/universal.js.map +1 -1
  368. package/docs/sdks/aavev3/README.md +4 -0
  369. package/docs/sdks/transactionbatching/README.md +217 -0
  370. package/docs/sdks/universal/README.md +0 -335
  371. package/jsr.json +1 -1
  372. package/package.json +1 -1
  373. package/src/funcs/{universalTransferNativeToken.ts → transactionBatchingAuthorization.ts} +18 -12
  374. package/src/funcs/{universalTransferErc20.ts → transactionBatchingExecute.ts} +17 -12
  375. package/src/lib/config.ts +2 -2
  376. package/src/mcp-server/mcp-server.ts +1 -1
  377. package/src/mcp-server/server.ts +5 -9
  378. package/src/mcp-server/tools/transactionBatchingAuthorization.ts +44 -0
  379. package/src/mcp-server/tools/transactionBatchingExecute.ts +42 -0
  380. package/src/models/components/aaveborrowparams.ts +173 -0
  381. package/src/models/components/aaverepayparams.ts +171 -0
  382. package/src/models/components/aavesupplyparams.ts +155 -0
  383. package/src/models/components/aavewithdrawparams.ts +146 -0
  384. package/src/models/components/aerodromeaddliquidityethparams.ts +392 -0
  385. package/src/models/components/aerodromeaddliquidityparams.ts +382 -0
  386. package/src/models/components/aerodromeremoveliquidityethrequest.ts +357 -0
  387. package/src/models/components/aerodromeremoveliquidityrequest.ts +363 -0
  388. package/src/models/components/aerodromeslipstreambuyexactlyparams.ts +276 -0
  389. package/src/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.ts +412 -0
  390. package/src/models/components/aerodromeslipstreammintliquidityprovisionparams.ts +461 -0
  391. package/src/models/components/aerodromeslipstreamsellexactlyparams.ts +276 -0
  392. package/src/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.ts +180 -0
  393. package/src/models/components/aerodromeswapethfortokenparams.ts +249 -0
  394. package/src/models/components/aerodromeswaptokenforethparams.ts +249 -0
  395. package/src/models/components/aerodromeswaptokensparams.ts +260 -0
  396. package/src/models/components/contractname.ts +64 -0
  397. package/src/models/components/increaseallowanceanyparams.ts +172 -0
  398. package/src/models/components/increaseallowanceparams.ts +204 -0
  399. package/src/models/components/increaseallowancerequest.ts +21 -14
  400. package/src/models/components/index.ts +34 -4
  401. package/src/models/components/multicallaction.ts +490 -0
  402. package/src/models/components/multicallactiontype.ts +59 -0
  403. package/src/models/components/multicallauthorizationrequest.ts +88 -0
  404. package/src/models/components/multicallauthorizationresponse.ts +88 -0
  405. package/src/models/components/multicallexecuterequest.ts +112 -0
  406. package/src/models/components/signedauthorization.ts +172 -0
  407. package/src/models/components/tokentransfererc20params.ts +151 -0
  408. package/src/models/components/uniswapbuyexactlyparams.ts +259 -0
  409. package/src/models/components/uniswapincreaseliquidityprovisionparams.ts +405 -0
  410. package/src/models/components/uniswapmintliquidityprovisionparams.ts +454 -0
  411. package/src/models/components/uniswapsellexactlyparams.ts +267 -0
  412. package/src/models/components/uniswapwithdrawliquidityprovisionparams.ts +175 -0
  413. package/src/models/components/unsignedmulticalltransaction.ts +140 -0
  414. package/src/models/components/unwrapwethparams.ts +125 -0
  415. package/src/models/components/wrapethparams.ts +121 -0
  416. package/src/models/operations/index.ts +0 -2
  417. package/src/sdk/sdk.ts +8 -0
  418. package/src/sdk/transactionbatching.ts +55 -0
  419. package/src/sdk/universal.ts +0 -77
  420. package/dist/commonjs/funcs/universalBalance.d.ts +0 -18
  421. package/dist/commonjs/funcs/universalBalance.d.ts.map +0 -1
  422. package/dist/commonjs/funcs/universalBalance.js +0 -122
  423. package/dist/commonjs/funcs/universalBalance.js.map +0 -1
  424. package/dist/commonjs/funcs/universalPriceUsd.d.ts +0 -23
  425. package/dist/commonjs/funcs/universalPriceUsd.d.ts.map +0 -1
  426. package/dist/commonjs/funcs/universalPriceUsd.js +0 -126
  427. package/dist/commonjs/funcs/universalPriceUsd.js.map +0 -1
  428. package/dist/commonjs/funcs/universalTransferErc20.d.ts +0 -17
  429. package/dist/commonjs/funcs/universalTransferErc20.d.ts.map +0 -1
  430. package/dist/commonjs/funcs/universalTransferErc20.js.map +0 -1
  431. package/dist/commonjs/funcs/universalTransferNativeToken.d.ts +0 -17
  432. package/dist/commonjs/funcs/universalTransferNativeToken.d.ts.map +0 -1
  433. package/dist/commonjs/funcs/universalTransferNativeToken.js.map +0 -1
  434. package/dist/commonjs/mcp-server/tools/universalBalance.d.ts +0 -8
  435. package/dist/commonjs/mcp-server/tools/universalBalance.d.ts.map +0 -1
  436. package/dist/commonjs/mcp-server/tools/universalBalance.js +0 -64
  437. package/dist/commonjs/mcp-server/tools/universalBalance.js.map +0 -1
  438. package/dist/commonjs/mcp-server/tools/universalPriceUsd.d.ts +0 -8
  439. package/dist/commonjs/mcp-server/tools/universalPriceUsd.d.ts.map +0 -1
  440. package/dist/commonjs/mcp-server/tools/universalPriceUsd.js +0 -69
  441. package/dist/commonjs/mcp-server/tools/universalPriceUsd.js.map +0 -1
  442. package/dist/commonjs/mcp-server/tools/universalTransferErc20.d.ts +0 -8
  443. package/dist/commonjs/mcp-server/tools/universalTransferErc20.d.ts.map +0 -1
  444. package/dist/commonjs/mcp-server/tools/universalTransferErc20.js.map +0 -1
  445. package/dist/commonjs/mcp-server/tools/universalTransferNativeToken.d.ts +0 -8
  446. package/dist/commonjs/mcp-server/tools/universalTransferNativeToken.d.ts.map +0 -1
  447. package/dist/commonjs/mcp-server/tools/universalTransferNativeToken.js.map +0 -1
  448. package/dist/commonjs/models/components/balanceinforesponse.d.ts +0 -56
  449. package/dist/commonjs/models/components/balanceinforesponse.d.ts.map +0 -1
  450. package/dist/commonjs/models/components/balanceinforesponse.js.map +0 -1
  451. package/dist/commonjs/models/components/priceresponse.d.ts +0 -32
  452. package/dist/commonjs/models/components/priceresponse.d.ts.map +0 -1
  453. package/dist/commonjs/models/components/priceresponse.js.map +0 -1
  454. package/dist/commonjs/models/components/transfererc20request.d.ts +0 -86
  455. package/dist/commonjs/models/components/transfererc20request.d.ts.map +0 -1
  456. package/dist/commonjs/models/components/transfererc20request.js +0 -102
  457. package/dist/commonjs/models/components/transfererc20request.js.map +0 -1
  458. package/dist/commonjs/models/components/transferethrequest.d.ts +0 -75
  459. package/dist/commonjs/models/components/transferethrequest.d.ts.map +0 -1
  460. package/dist/commonjs/models/components/transferethrequest.js +0 -99
  461. package/dist/commonjs/models/components/transferethrequest.js.map +0 -1
  462. package/dist/commonjs/models/operations/genericbalance.d.ts +0 -246
  463. package/dist/commonjs/models/operations/genericbalance.d.ts.map +0 -1
  464. package/dist/commonjs/models/operations/genericbalance.js +0 -165
  465. package/dist/commonjs/models/operations/genericbalance.js.map +0 -1
  466. package/dist/commonjs/models/operations/genericpriceusd.d.ts +0 -244
  467. package/dist/commonjs/models/operations/genericpriceusd.d.ts.map +0 -1
  468. package/dist/commonjs/models/operations/genericpriceusd.js +0 -163
  469. package/dist/commonjs/models/operations/genericpriceusd.js.map +0 -1
  470. package/dist/esm/funcs/universalBalance.d.ts +0 -18
  471. package/dist/esm/funcs/universalBalance.d.ts.map +0 -1
  472. package/dist/esm/funcs/universalBalance.js +0 -86
  473. package/dist/esm/funcs/universalBalance.js.map +0 -1
  474. package/dist/esm/funcs/universalPriceUsd.d.ts +0 -23
  475. package/dist/esm/funcs/universalPriceUsd.d.ts.map +0 -1
  476. package/dist/esm/funcs/universalPriceUsd.js +0 -90
  477. package/dist/esm/funcs/universalPriceUsd.js.map +0 -1
  478. package/dist/esm/funcs/universalTransferErc20.d.ts +0 -17
  479. package/dist/esm/funcs/universalTransferErc20.d.ts.map +0 -1
  480. package/dist/esm/funcs/universalTransferErc20.js.map +0 -1
  481. package/dist/esm/funcs/universalTransferNativeToken.d.ts +0 -17
  482. package/dist/esm/funcs/universalTransferNativeToken.d.ts.map +0 -1
  483. package/dist/esm/funcs/universalTransferNativeToken.js.map +0 -1
  484. package/dist/esm/mcp-server/tools/universalBalance.d.ts +0 -8
  485. package/dist/esm/mcp-server/tools/universalBalance.d.ts.map +0 -1
  486. package/dist/esm/mcp-server/tools/universalBalance.js +0 -28
  487. package/dist/esm/mcp-server/tools/universalBalance.js.map +0 -1
  488. package/dist/esm/mcp-server/tools/universalPriceUsd.d.ts +0 -8
  489. package/dist/esm/mcp-server/tools/universalPriceUsd.d.ts.map +0 -1
  490. package/dist/esm/mcp-server/tools/universalPriceUsd.js +0 -33
  491. package/dist/esm/mcp-server/tools/universalPriceUsd.js.map +0 -1
  492. package/dist/esm/mcp-server/tools/universalTransferErc20.d.ts +0 -8
  493. package/dist/esm/mcp-server/tools/universalTransferErc20.d.ts.map +0 -1
  494. package/dist/esm/mcp-server/tools/universalTransferErc20.js +0 -28
  495. package/dist/esm/mcp-server/tools/universalTransferErc20.js.map +0 -1
  496. package/dist/esm/mcp-server/tools/universalTransferNativeToken.d.ts +0 -8
  497. package/dist/esm/mcp-server/tools/universalTransferNativeToken.d.ts.map +0 -1
  498. package/dist/esm/mcp-server/tools/universalTransferNativeToken.js +0 -28
  499. package/dist/esm/mcp-server/tools/universalTransferNativeToken.js.map +0 -1
  500. package/dist/esm/models/components/balanceinforesponse.d.ts +0 -56
  501. package/dist/esm/models/components/balanceinforesponse.d.ts.map +0 -1
  502. package/dist/esm/models/components/balanceinforesponse.js +0 -49
  503. package/dist/esm/models/components/balanceinforesponse.js.map +0 -1
  504. package/dist/esm/models/components/priceresponse.d.ts +0 -32
  505. package/dist/esm/models/components/priceresponse.d.ts.map +0 -1
  506. package/dist/esm/models/components/priceresponse.js +0 -40
  507. package/dist/esm/models/components/priceresponse.js.map +0 -1
  508. package/dist/esm/models/components/transfererc20request.d.ts +0 -86
  509. package/dist/esm/models/components/transfererc20request.d.ts.map +0 -1
  510. package/dist/esm/models/components/transfererc20request.js +0 -62
  511. package/dist/esm/models/components/transfererc20request.js.map +0 -1
  512. package/dist/esm/models/components/transferethrequest.d.ts +0 -75
  513. package/dist/esm/models/components/transferethrequest.d.ts.map +0 -1
  514. package/dist/esm/models/components/transferethrequest.js +0 -59
  515. package/dist/esm/models/components/transferethrequest.js.map +0 -1
  516. package/dist/esm/models/operations/genericbalance.d.ts +0 -246
  517. package/dist/esm/models/operations/genericbalance.d.ts.map +0 -1
  518. package/dist/esm/models/operations/genericbalance.js +0 -127
  519. package/dist/esm/models/operations/genericbalance.js.map +0 -1
  520. package/dist/esm/models/operations/genericpriceusd.d.ts +0 -244
  521. package/dist/esm/models/operations/genericpriceusd.d.ts.map +0 -1
  522. package/dist/esm/models/operations/genericpriceusd.js +0 -125
  523. package/dist/esm/models/operations/genericpriceusd.js.map +0 -1
  524. package/src/funcs/universalBalance.ts +0 -170
  525. package/src/funcs/universalPriceUsd.ts +0 -174
  526. package/src/mcp-server/tools/universalBalance.ts +0 -37
  527. package/src/mcp-server/tools/universalPriceUsd.ts +0 -42
  528. package/src/mcp-server/tools/universalTransferErc20.ts +0 -37
  529. package/src/mcp-server/tools/universalTransferNativeToken.ts +0 -37
  530. package/src/models/components/balanceinforesponse.ts +0 -114
  531. package/src/models/components/priceresponse.ts +0 -74
  532. package/src/models/components/transfererc20request.ts +0 -164
  533. package/src/models/components/transferethrequest.ts +0 -147
  534. package/src/models/operations/genericbalance.ts +0 -205
  535. package/src/models/operations/genericpriceusd.ts +0 -201
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionBatchingAuthorization.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingAuthorization.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,cAAc,CAChE,OAAO,IAAI,CA8BZ,CAAC"}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { transactionBatchingAuthorization } from "../../funcs/transactionBatchingAuthorization.js";
5
+ import * as components from "../../models/components/index.js";
6
+ import { formatResult } from "../tools.js";
7
+ const args = {
8
+ request: components.MulticallAuthorizationRequest$inboundSchema,
9
+ };
10
+ export const tool$transactionBatchingAuthorization = {
11
+ name: "transaction-batching-authorization",
12
+ description: `Get EIP-7702 Authorization
13
+
14
+ Get authorization data for EIP-7702 batching operations.
15
+
16
+ This authorization is required to prevent replay attacks and ensure transaction
17
+ ordering when batching multiple actions into a single transaction. The authorization
18
+ includes a nonce and chain ID to guarantee transaction uniqueness and proper network
19
+ targeting.`,
20
+ args,
21
+ tool: async (client, args, ctx) => {
22
+ const [result, apiCall] = await transactionBatchingAuthorization(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
23
+ if (!result.ok) {
24
+ return {
25
+ content: [{ type: "text", text: result.error.message }],
26
+ isError: true,
27
+ };
28
+ }
29
+ const value = result.value;
30
+ return formatResult(value, apiCall);
31
+ },
32
+ };
33
+ //# sourceMappingURL=transactionBatchingAuthorization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionBatchingAuthorization.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingAuthorization.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAE9C;IACF,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE;;;;;;;WAOJ;IACT,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,gCAAgC,CAC9D,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as components from "../../models/components/index.js";
2
+ import { ToolDefinition } from "../tools.js";
3
+ declare const args: {
4
+ request: import("zod").ZodType<components.MulticallExecuteRequest, import("zod").ZodTypeDef, unknown>;
5
+ };
6
+ export declare const tool$transactionBatchingExecute: ToolDefinition<typeof args>;
7
+ export {};
8
+ //# sourceMappingURL=transactionBatchingExecute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionBatchingExecute.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingExecute.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,cAAc,CAAC,OAAO,IAAI,CA6BvE,CAAC"}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { transactionBatchingExecute } from "../../funcs/transactionBatchingExecute.js";
5
+ import * as components from "../../models/components/index.js";
6
+ import { formatResult } from "../tools.js";
7
+ const args = {
8
+ request: components.MulticallExecuteRequest$inboundSchema,
9
+ };
10
+ export const tool$transactionBatchingExecute = {
11
+ name: "transaction-batching-execute",
12
+ description: `Execute Tx Batching
13
+
14
+ Execute a batch of transactions in a single multicall using EIP-7702.
15
+
16
+ This endpoint allows bundling multiple contract calls into a single atomic
17
+ transaction, reducing gas costs and ensuring all operations succeed or fail
18
+ together. The transaction must be authorized using the /authorization endpoint to
19
+ prevent replay attacks.`,
20
+ args,
21
+ tool: async (client, args, ctx) => {
22
+ const [result, apiCall] = await transactionBatchingExecute(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
23
+ if (!result.ok) {
24
+ return {
25
+ content: [{ type: "text", text: result.error.message }],
26
+ isError: true,
27
+ };
28
+ }
29
+ const value = result.value;
30
+ return formatResult(value, apiCall);
31
+ },
32
+ };
33
+ //# sourceMappingURL=transactionBatchingExecute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionBatchingExecute.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingExecute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,qCAAqC;CAC1D,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAgC;IAC1E,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE;;;;;;;wBAOS;IACtB,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,0BAA0B,CACxD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -0,0 +1,82 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { InterestRateMode } from "./interestratemode.js";
5
+ import { TokenEnum } from "./tokenenum.js";
6
+ /**
7
+ * The amount of the asset to borrow
8
+ */
9
+ export type AaveBorrowParamsAmount = number | string;
10
+ export type AaveBorrowParams = {
11
+ /**
12
+ * A class representing the token.
13
+ *
14
+ * @remarks
15
+ *
16
+ * This class is used to represent the token in the system. Notice individual
17
+ * endpoints' documentation where per chain tokens are presented.
18
+ */
19
+ token: TokenEnum;
20
+ /**
21
+ * The amount of the asset to borrow
22
+ */
23
+ amount: number | string;
24
+ /**
25
+ * On AAVE there are 2 different interest modes.
26
+ *
27
+ * @remarks
28
+ *
29
+ * A stable (but typically higher rate), or a variable rate.
30
+ */
31
+ interestRateMode: InterestRateMode;
32
+ /**
33
+ * The address on behalf of whom the supply is made
34
+ */
35
+ onBehalfOf?: string | null | undefined;
36
+ };
37
+ /** @internal */
38
+ export declare const AaveBorrowParamsAmount$inboundSchema: z.ZodType<AaveBorrowParamsAmount, z.ZodTypeDef, unknown>;
39
+ /** @internal */
40
+ export type AaveBorrowParamsAmount$Outbound = number | string;
41
+ /** @internal */
42
+ export declare const AaveBorrowParamsAmount$outboundSchema: z.ZodType<AaveBorrowParamsAmount$Outbound, z.ZodTypeDef, AaveBorrowParamsAmount>;
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ export declare namespace AaveBorrowParamsAmount$ {
48
+ /** @deprecated use `AaveBorrowParamsAmount$inboundSchema` instead. */
49
+ const inboundSchema: z.ZodType<AaveBorrowParamsAmount, z.ZodTypeDef, unknown>;
50
+ /** @deprecated use `AaveBorrowParamsAmount$outboundSchema` instead. */
51
+ const outboundSchema: z.ZodType<AaveBorrowParamsAmount$Outbound, z.ZodTypeDef, AaveBorrowParamsAmount>;
52
+ /** @deprecated use `AaveBorrowParamsAmount$Outbound` instead. */
53
+ type Outbound = AaveBorrowParamsAmount$Outbound;
54
+ }
55
+ export declare function aaveBorrowParamsAmountToJSON(aaveBorrowParamsAmount: AaveBorrowParamsAmount): string;
56
+ export declare function aaveBorrowParamsAmountFromJSON(jsonString: string): SafeParseResult<AaveBorrowParamsAmount, SDKValidationError>;
57
+ /** @internal */
58
+ export declare const AaveBorrowParams$inboundSchema: z.ZodType<AaveBorrowParams, z.ZodTypeDef, unknown>;
59
+ /** @internal */
60
+ export type AaveBorrowParams$Outbound = {
61
+ token: string;
62
+ amount: number | string;
63
+ interest_rate_mode: string;
64
+ on_behalf_of?: string | null | undefined;
65
+ };
66
+ /** @internal */
67
+ export declare const AaveBorrowParams$outboundSchema: z.ZodType<AaveBorrowParams$Outbound, z.ZodTypeDef, AaveBorrowParams>;
68
+ /**
69
+ * @internal
70
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
+ */
72
+ export declare namespace AaveBorrowParams$ {
73
+ /** @deprecated use `AaveBorrowParams$inboundSchema` instead. */
74
+ const inboundSchema: z.ZodType<AaveBorrowParams, z.ZodTypeDef, unknown>;
75
+ /** @deprecated use `AaveBorrowParams$outboundSchema` instead. */
76
+ const outboundSchema: z.ZodType<AaveBorrowParams$Outbound, z.ZodTypeDef, AaveBorrowParams>;
77
+ /** @deprecated use `AaveBorrowParams$Outbound` instead. */
78
+ type Outbound = AaveBorrowParams$Outbound;
79
+ }
80
+ export declare function aaveBorrowParamsToJSON(aaveBorrowParams: AaveBorrowParams): string;
81
+ export declare function aaveBorrowParamsFromJSON(jsonString: string): SafeParseResult<AaveBorrowParams, SDKValidationError>;
82
+ //# sourceMappingURL=aaveborrowparams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aaveborrowparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/aaveborrowparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD,MAAM,MA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,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAWhB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { InterestRateMode$inboundSchema, InterestRateMode$outboundSchema, } from "./interestratemode.js";
8
+ import { TokenEnum$inboundSchema, TokenEnum$outboundSchema, } from "./tokenenum.js";
9
+ /** @internal */
10
+ export const AaveBorrowParamsAmount$inboundSchema = z.union([z.number(), z.string()]);
11
+ /** @internal */
12
+ export const AaveBorrowParamsAmount$outboundSchema = z.union([z.number(), z.string()]);
13
+ /**
14
+ * @internal
15
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
16
+ */
17
+ export var AaveBorrowParamsAmount$;
18
+ (function (AaveBorrowParamsAmount$) {
19
+ /** @deprecated use `AaveBorrowParamsAmount$inboundSchema` instead. */
20
+ AaveBorrowParamsAmount$.inboundSchema = AaveBorrowParamsAmount$inboundSchema;
21
+ /** @deprecated use `AaveBorrowParamsAmount$outboundSchema` instead. */
22
+ AaveBorrowParamsAmount$.outboundSchema = AaveBorrowParamsAmount$outboundSchema;
23
+ })(AaveBorrowParamsAmount$ || (AaveBorrowParamsAmount$ = {}));
24
+ export function aaveBorrowParamsAmountToJSON(aaveBorrowParamsAmount) {
25
+ return JSON.stringify(AaveBorrowParamsAmount$outboundSchema.parse(aaveBorrowParamsAmount));
26
+ }
27
+ export function aaveBorrowParamsAmountFromJSON(jsonString) {
28
+ return safeParse(jsonString, (x) => AaveBorrowParamsAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AaveBorrowParamsAmount' from JSON`);
29
+ }
30
+ /** @internal */
31
+ export const AaveBorrowParams$inboundSchema = z.object({
32
+ token: TokenEnum$inboundSchema,
33
+ amount: z.union([z.number(), z.string()]),
34
+ interest_rate_mode: InterestRateMode$inboundSchema,
35
+ on_behalf_of: z.nullable(z.string()).optional(),
36
+ }).transform((v) => {
37
+ return remap$(v, {
38
+ "interest_rate_mode": "interestRateMode",
39
+ "on_behalf_of": "onBehalfOf",
40
+ });
41
+ });
42
+ /** @internal */
43
+ export const AaveBorrowParams$outboundSchema = z.object({
44
+ token: TokenEnum$outboundSchema,
45
+ amount: z.union([z.number(), z.string()]),
46
+ interestRateMode: InterestRateMode$outboundSchema,
47
+ onBehalfOf: z.nullable(z.string()).optional(),
48
+ }).transform((v) => {
49
+ return remap$(v, {
50
+ interestRateMode: "interest_rate_mode",
51
+ onBehalfOf: "on_behalf_of",
52
+ });
53
+ });
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export var AaveBorrowParams$;
59
+ (function (AaveBorrowParams$) {
60
+ /** @deprecated use `AaveBorrowParams$inboundSchema` instead. */
61
+ AaveBorrowParams$.inboundSchema = AaveBorrowParams$inboundSchema;
62
+ /** @deprecated use `AaveBorrowParams$outboundSchema` instead. */
63
+ AaveBorrowParams$.outboundSchema = AaveBorrowParams$outboundSchema;
64
+ })(AaveBorrowParams$ || (AaveBorrowParams$ = {}));
65
+ export function aaveBorrowParamsToJSON(aaveBorrowParams) {
66
+ return JSON.stringify(AaveBorrowParams$outboundSchema.parse(aaveBorrowParams));
67
+ }
68
+ export function aaveBorrowParamsFromJSON(jsonString) {
69
+ return safeParse(jsonString, (x) => AaveBorrowParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AaveBorrowParams' from JSON`);
70
+ }
71
+ //# sourceMappingURL=aaveborrowparams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aaveborrowparams.js","sourceRoot":"","sources":["../../../../src/models/components/aaveborrowparams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,8BAA8B,EAC9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AAmCxB,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAKtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC;;;GAGG;AACH,MAAM,KAAW,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,oCAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,qCAAqC,CAAC;AAGtE,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AAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,oBAAoB;QACtC,UAAU,EAAE,cAAc;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,8BAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,+BAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,KAAjB,iBAAiB,QAOjC;AAED,MAAM,UAAU,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,+BAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,82 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { InterestRateMode } from "./interestratemode.js";
5
+ import { TokenEnum } from "./tokenenum.js";
6
+ /**
7
+ * The amount of the asset to repay
8
+ */
9
+ export type AaveRepayParamsAmount = number | string;
10
+ export type AaveRepayParams = {
11
+ /**
12
+ * A class representing the token.
13
+ *
14
+ * @remarks
15
+ *
16
+ * This class is used to represent the token in the system. Notice individual
17
+ * endpoints' documentation where per chain tokens are presented.
18
+ */
19
+ token: TokenEnum;
20
+ /**
21
+ * The amount of the asset to repay
22
+ */
23
+ amount: number | string;
24
+ /**
25
+ * On AAVE there are 2 different interest modes.
26
+ *
27
+ * @remarks
28
+ *
29
+ * A stable (but typically higher rate), or a variable rate.
30
+ */
31
+ interestRateMode: InterestRateMode;
32
+ /**
33
+ * The address on behalf of whom the supply is made
34
+ */
35
+ onBehalfOf?: string | null | undefined;
36
+ };
37
+ /** @internal */
38
+ export declare const AaveRepayParamsAmount$inboundSchema: z.ZodType<AaveRepayParamsAmount, z.ZodTypeDef, unknown>;
39
+ /** @internal */
40
+ export type AaveRepayParamsAmount$Outbound = number | string;
41
+ /** @internal */
42
+ export declare const AaveRepayParamsAmount$outboundSchema: z.ZodType<AaveRepayParamsAmount$Outbound, z.ZodTypeDef, AaveRepayParamsAmount>;
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ export declare namespace AaveRepayParamsAmount$ {
48
+ /** @deprecated use `AaveRepayParamsAmount$inboundSchema` instead. */
49
+ const inboundSchema: z.ZodType<AaveRepayParamsAmount, z.ZodTypeDef, unknown>;
50
+ /** @deprecated use `AaveRepayParamsAmount$outboundSchema` instead. */
51
+ const outboundSchema: z.ZodType<AaveRepayParamsAmount$Outbound, z.ZodTypeDef, AaveRepayParamsAmount>;
52
+ /** @deprecated use `AaveRepayParamsAmount$Outbound` instead. */
53
+ type Outbound = AaveRepayParamsAmount$Outbound;
54
+ }
55
+ export declare function aaveRepayParamsAmountToJSON(aaveRepayParamsAmount: AaveRepayParamsAmount): string;
56
+ export declare function aaveRepayParamsAmountFromJSON(jsonString: string): SafeParseResult<AaveRepayParamsAmount, SDKValidationError>;
57
+ /** @internal */
58
+ export declare const AaveRepayParams$inboundSchema: z.ZodType<AaveRepayParams, z.ZodTypeDef, unknown>;
59
+ /** @internal */
60
+ export type AaveRepayParams$Outbound = {
61
+ token: string;
62
+ amount: number | string;
63
+ interest_rate_mode: string;
64
+ on_behalf_of?: string | null | undefined;
65
+ };
66
+ /** @internal */
67
+ export declare const AaveRepayParams$outboundSchema: z.ZodType<AaveRepayParams$Outbound, z.ZodTypeDef, AaveRepayParams>;
68
+ /**
69
+ * @internal
70
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
+ */
72
+ export declare namespace AaveRepayParams$ {
73
+ /** @deprecated use `AaveRepayParams$inboundSchema` instead. */
74
+ const inboundSchema: z.ZodType<AaveRepayParams, z.ZodTypeDef, unknown>;
75
+ /** @deprecated use `AaveRepayParams$outboundSchema` instead. */
76
+ const outboundSchema: z.ZodType<AaveRepayParams$Outbound, z.ZodTypeDef, AaveRepayParams>;
77
+ /** @deprecated use `AaveRepayParams$Outbound` instead. */
78
+ type Outbound = AaveRepayParams$Outbound;
79
+ }
80
+ export declare function aaveRepayParamsToJSON(aaveRepayParams: AaveRepayParams): string;
81
+ export declare function aaveRepayParamsFromJSON(jsonString: string): SafeParseResult<AaveRepayParams, SDKValidationError>;
82
+ //# sourceMappingURL=aaverepayparams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aaverepayparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/aaverepayparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;;OAOG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,gBAAgB,EAAE,gBAAgB,CAAC;IACnC;;OAE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,eAAe,CAWf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { InterestRateMode$inboundSchema, InterestRateMode$outboundSchema, } from "./interestratemode.js";
8
+ import { TokenEnum$inboundSchema, TokenEnum$outboundSchema, } from "./tokenenum.js";
9
+ /** @internal */
10
+ export const AaveRepayParamsAmount$inboundSchema = z.union([z.number(), z.string()]);
11
+ /** @internal */
12
+ export const AaveRepayParamsAmount$outboundSchema = z.union([z.number(), z.string()]);
13
+ /**
14
+ * @internal
15
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
16
+ */
17
+ export var AaveRepayParamsAmount$;
18
+ (function (AaveRepayParamsAmount$) {
19
+ /** @deprecated use `AaveRepayParamsAmount$inboundSchema` instead. */
20
+ AaveRepayParamsAmount$.inboundSchema = AaveRepayParamsAmount$inboundSchema;
21
+ /** @deprecated use `AaveRepayParamsAmount$outboundSchema` instead. */
22
+ AaveRepayParamsAmount$.outboundSchema = AaveRepayParamsAmount$outboundSchema;
23
+ })(AaveRepayParamsAmount$ || (AaveRepayParamsAmount$ = {}));
24
+ export function aaveRepayParamsAmountToJSON(aaveRepayParamsAmount) {
25
+ return JSON.stringify(AaveRepayParamsAmount$outboundSchema.parse(aaveRepayParamsAmount));
26
+ }
27
+ export function aaveRepayParamsAmountFromJSON(jsonString) {
28
+ return safeParse(jsonString, (x) => AaveRepayParamsAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AaveRepayParamsAmount' from JSON`);
29
+ }
30
+ /** @internal */
31
+ export const AaveRepayParams$inboundSchema = z.object({
32
+ token: TokenEnum$inboundSchema,
33
+ amount: z.union([z.number(), z.string()]),
34
+ interest_rate_mode: InterestRateMode$inboundSchema,
35
+ on_behalf_of: z.nullable(z.string()).optional(),
36
+ }).transform((v) => {
37
+ return remap$(v, {
38
+ "interest_rate_mode": "interestRateMode",
39
+ "on_behalf_of": "onBehalfOf",
40
+ });
41
+ });
42
+ /** @internal */
43
+ export const AaveRepayParams$outboundSchema = z.object({
44
+ token: TokenEnum$outboundSchema,
45
+ amount: z.union([z.number(), z.string()]),
46
+ interestRateMode: InterestRateMode$outboundSchema,
47
+ onBehalfOf: z.nullable(z.string()).optional(),
48
+ }).transform((v) => {
49
+ return remap$(v, {
50
+ interestRateMode: "interest_rate_mode",
51
+ onBehalfOf: "on_behalf_of",
52
+ });
53
+ });
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export var AaveRepayParams$;
59
+ (function (AaveRepayParams$) {
60
+ /** @deprecated use `AaveRepayParams$inboundSchema` instead. */
61
+ AaveRepayParams$.inboundSchema = AaveRepayParams$inboundSchema;
62
+ /** @deprecated use `AaveRepayParams$outboundSchema` instead. */
63
+ AaveRepayParams$.outboundSchema = AaveRepayParams$outboundSchema;
64
+ })(AaveRepayParams$ || (AaveRepayParams$ = {}));
65
+ export function aaveRepayParamsToJSON(aaveRepayParams) {
66
+ return JSON.stringify(AaveRepayParams$outboundSchema.parse(aaveRepayParams));
67
+ }
68
+ export function aaveRepayParamsFromJSON(jsonString) {
69
+ return safeParse(jsonString, (x) => AaveRepayParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AaveRepayParams' from JSON`);
70
+ }
71
+ //# sourceMappingURL=aaverepayparams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aaverepayparams.js","sourceRoot":"","sources":["../../../../src/models/components/aaverepayparams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,8BAA8B,EAC9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AAmCxB,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAKtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC;;;GAGG;AACH,MAAM,KAAW,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,mCAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,oCAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,KAAtB,sBAAsB,QAOtC;AAED,MAAM,UAAU,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UA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B,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,6BAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,8BAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,KAAhB,gBAAgB,QAOhC;AAED,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,72 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { TokenEnum } from "./tokenenum.js";
5
+ /**
6
+ * The amount of the asset to supply
7
+ */
8
+ export type AaveSupplyParamsAmount = number | string;
9
+ export type AaveSupplyParams = {
10
+ /**
11
+ * A class representing the token.
12
+ *
13
+ * @remarks
14
+ *
15
+ * This class is used to represent the token in the system. Notice individual
16
+ * endpoints' documentation where per chain tokens are presented.
17
+ */
18
+ token: TokenEnum;
19
+ /**
20
+ * The amount of the asset to supply
21
+ */
22
+ amount: number | string;
23
+ /**
24
+ * The address on behalf of whom the supply is made. Defaults to the transaction sender.
25
+ */
26
+ onBehalfOf?: string | null | undefined;
27
+ };
28
+ /** @internal */
29
+ export declare const AaveSupplyParamsAmount$inboundSchema: z.ZodType<AaveSupplyParamsAmount, z.ZodTypeDef, unknown>;
30
+ /** @internal */
31
+ export type AaveSupplyParamsAmount$Outbound = number | string;
32
+ /** @internal */
33
+ export declare const AaveSupplyParamsAmount$outboundSchema: z.ZodType<AaveSupplyParamsAmount$Outbound, z.ZodTypeDef, AaveSupplyParamsAmount>;
34
+ /**
35
+ * @internal
36
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
37
+ */
38
+ export declare namespace AaveSupplyParamsAmount$ {
39
+ /** @deprecated use `AaveSupplyParamsAmount$inboundSchema` instead. */
40
+ const inboundSchema: z.ZodType<AaveSupplyParamsAmount, z.ZodTypeDef, unknown>;
41
+ /** @deprecated use `AaveSupplyParamsAmount$outboundSchema` instead. */
42
+ const outboundSchema: z.ZodType<AaveSupplyParamsAmount$Outbound, z.ZodTypeDef, AaveSupplyParamsAmount>;
43
+ /** @deprecated use `AaveSupplyParamsAmount$Outbound` instead. */
44
+ type Outbound = AaveSupplyParamsAmount$Outbound;
45
+ }
46
+ export declare function aaveSupplyParamsAmountToJSON(aaveSupplyParamsAmount: AaveSupplyParamsAmount): string;
47
+ export declare function aaveSupplyParamsAmountFromJSON(jsonString: string): SafeParseResult<AaveSupplyParamsAmount, SDKValidationError>;
48
+ /** @internal */
49
+ export declare const AaveSupplyParams$inboundSchema: z.ZodType<AaveSupplyParams, z.ZodTypeDef, unknown>;
50
+ /** @internal */
51
+ export type AaveSupplyParams$Outbound = {
52
+ token: string;
53
+ amount: number | string;
54
+ on_behalf_of?: string | null | undefined;
55
+ };
56
+ /** @internal */
57
+ export declare const AaveSupplyParams$outboundSchema: z.ZodType<AaveSupplyParams$Outbound, z.ZodTypeDef, AaveSupplyParams>;
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ export declare namespace AaveSupplyParams$ {
63
+ /** @deprecated use `AaveSupplyParams$inboundSchema` instead. */
64
+ const inboundSchema: z.ZodType<AaveSupplyParams, z.ZodTypeDef, unknown>;
65
+ /** @deprecated use `AaveSupplyParams$outboundSchema` instead. */
66
+ const outboundSchema: z.ZodType<AaveSupplyParams$Outbound, z.ZodTypeDef, AaveSupplyParams>;
67
+ /** @deprecated use `AaveSupplyParams$Outbound` instead. */
68
+ type Outbound = AaveSupplyParams$Outbound;
69
+ }
70
+ export declare function aaveSupplyParamsToJSON(aaveSupplyParams: AaveSupplyParams): string;
71
+ export declare function aaveSupplyParamsFromJSON(jsonString: string): SafeParseResult<AaveSupplyParams, SDKValidationError>;
72
+ //# sourceMappingURL=aavesupplyparams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aavesupplyparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/aavesupplyparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;;;;OAOG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAC4B,CAAC;AAEtC,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9D,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CACa,CAAC;AAEtC;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE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+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { TokenEnum$inboundSchema, TokenEnum$outboundSchema, } from "./tokenenum.js";
8
+ /** @internal */
9
+ export const AaveSupplyParamsAmount$inboundSchema = z.union([z.number(), z.string()]);
10
+ /** @internal */
11
+ export const AaveSupplyParamsAmount$outboundSchema = z.union([z.number(), z.string()]);
12
+ /**
13
+ * @internal
14
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
15
+ */
16
+ export var AaveSupplyParamsAmount$;
17
+ (function (AaveSupplyParamsAmount$) {
18
+ /** @deprecated use `AaveSupplyParamsAmount$inboundSchema` instead. */
19
+ AaveSupplyParamsAmount$.inboundSchema = AaveSupplyParamsAmount$inboundSchema;
20
+ /** @deprecated use `AaveSupplyParamsAmount$outboundSchema` instead. */
21
+ AaveSupplyParamsAmount$.outboundSchema = AaveSupplyParamsAmount$outboundSchema;
22
+ })(AaveSupplyParamsAmount$ || (AaveSupplyParamsAmount$ = {}));
23
+ export function aaveSupplyParamsAmountToJSON(aaveSupplyParamsAmount) {
24
+ return JSON.stringify(AaveSupplyParamsAmount$outboundSchema.parse(aaveSupplyParamsAmount));
25
+ }
26
+ export function aaveSupplyParamsAmountFromJSON(jsonString) {
27
+ return safeParse(jsonString, (x) => AaveSupplyParamsAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AaveSupplyParamsAmount' from JSON`);
28
+ }
29
+ /** @internal */
30
+ export const AaveSupplyParams$inboundSchema = z.object({
31
+ token: TokenEnum$inboundSchema,
32
+ amount: z.union([z.number(), z.string()]),
33
+ on_behalf_of: z.nullable(z.string()).optional(),
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ "on_behalf_of": "onBehalfOf",
37
+ });
38
+ });
39
+ /** @internal */
40
+ export const AaveSupplyParams$outboundSchema = z.object({
41
+ token: TokenEnum$outboundSchema,
42
+ amount: z.union([z.number(), z.string()]),
43
+ onBehalfOf: z.nullable(z.string()).optional(),
44
+ }).transform((v) => {
45
+ return remap$(v, {
46
+ onBehalfOf: "on_behalf_of",
47
+ });
48
+ });
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ export var AaveSupplyParams$;
54
+ (function (AaveSupplyParams$) {
55
+ /** @deprecated use `AaveSupplyParams$inboundSchema` instead. */
56
+ AaveSupplyParams$.inboundSchema = AaveSupplyParams$inboundSchema;
57
+ /** @deprecated use `AaveSupplyParams$outboundSchema` instead. */
58
+ AaveSupplyParams$.outboundSchema = AaveSupplyParams$outboundSchema;
59
+ })(AaveSupplyParams$ || (AaveSupplyParams$ = {}));
60
+ export function aaveSupplyParamsToJSON(aaveSupplyParams) {
61
+ return JSON.stringify(AaveSupplyParams$outboundSchema.parse(aaveSupplyParams));
62
+ }
63
+ export function aaveSupplyParamsFromJSON(jsonString) {
64
+ return safeParse(jsonString, (x) => AaveSupplyParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AaveSupplyParams' from JSON`);
65
+ }
66
+ //# sourceMappingURL=aavesupplyparams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aavesupplyparams.js","sourceRoot":"","sources":["../../../../src/models/components/aavesupplyparams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AA2BxB,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAKtC,gBAAgB;AAChB,MAAM,CAAC,M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