@compass-labs/api-sdk 0.0.20 → 0.0.22

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 (208) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/README.md +9 -7
  3. package/bin/mcp-server.js +668 -892
  4. package/bin/mcp-server.js.map +18 -21
  5. package/dist/commonjs/funcs/aaveV3Rate.d.ts +31 -0
  6. package/dist/commonjs/funcs/aaveV3Rate.d.ts.map +1 -0
  7. package/dist/commonjs/funcs/aaveV3Rate.js +134 -0
  8. package/dist/commonjs/funcs/aaveV3Rate.js.map +1 -0
  9. package/dist/commonjs/funcs/skyBuy.d.ts +6 -2
  10. package/dist/commonjs/funcs/skyBuy.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/skyBuy.js +6 -2
  12. package/dist/commonjs/funcs/skyBuy.js.map +1 -1
  13. package/dist/commonjs/funcs/skySell.d.ts +6 -2
  14. package/dist/commonjs/funcs/skySell.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/skySell.js +6 -2
  16. package/dist/commonjs/funcs/skySell.js.map +1 -1
  17. package/dist/commonjs/lib/config.d.ts +2 -2
  18. package/dist/commonjs/lib/config.js +2 -2
  19. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  20. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  21. package/dist/commonjs/mcp-server/server.js +3 -1
  22. package/dist/commonjs/mcp-server/server.js.map +1 -1
  23. package/dist/commonjs/mcp-server/tools/aaveV3Rate.d.ts +8 -0
  24. package/dist/commonjs/mcp-server/tools/aaveV3Rate.d.ts.map +1 -0
  25. package/dist/commonjs/mcp-server/tools/aaveV3Rate.js +77 -0
  26. package/dist/commonjs/mcp-server/tools/aaveV3Rate.js.map +1 -0
  27. package/dist/commonjs/mcp-server/tools/skyBuy.d.ts.map +1 -1
  28. package/dist/commonjs/mcp-server/tools/skyBuy.js +6 -2
  29. package/dist/commonjs/mcp-server/tools/skyBuy.js.map +1 -1
  30. package/dist/commonjs/mcp-server/tools/skySell.d.ts.map +1 -1
  31. package/dist/commonjs/mcp-server/tools/skySell.js +6 -2
  32. package/dist/commonjs/mcp-server/tools/skySell.js.map +1 -1
  33. package/dist/commonjs/models/components/aaverateresponse.d.ts +57 -0
  34. package/dist/commonjs/models/components/aaverateresponse.d.ts.map +1 -0
  35. package/dist/commonjs/models/components/aaverateresponse.js +98 -0
  36. package/dist/commonjs/models/components/aaverateresponse.js.map +1 -0
  37. package/dist/commonjs/models/components/index.d.ts +1 -7
  38. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/index.js +1 -7
  40. package/dist/commonjs/models/components/index.js.map +1 -1
  41. package/dist/commonjs/models/components/multicallaction.d.ts +4 -11
  42. package/dist/commonjs/models/components/multicallaction.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/multicallaction.js +0 -35
  44. package/dist/commonjs/models/components/multicallaction.js.map +1 -1
  45. package/dist/commonjs/models/components/multicallactiontype.d.ts +0 -21
  46. package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/multicallactiontype.js +0 -7
  48. package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
  49. package/dist/commonjs/models/operations/aaverate.d.ts +244 -0
  50. package/dist/commonjs/models/operations/aaverate.d.ts.map +1 -0
  51. package/dist/commonjs/models/operations/aaverate.js +163 -0
  52. package/dist/commonjs/models/operations/aaverate.js.map +1 -0
  53. package/dist/commonjs/models/operations/index.d.ts +1 -0
  54. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  55. package/dist/commonjs/models/operations/index.js +1 -0
  56. package/dist/commonjs/models/operations/index.js.map +1 -1
  57. package/dist/commonjs/sdk/aavev3.d.ts +20 -0
  58. package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
  59. package/dist/commonjs/sdk/aavev3.js +23 -0
  60. package/dist/commonjs/sdk/aavev3.js.map +1 -1
  61. package/dist/commonjs/sdk/sky.d.ts +12 -4
  62. package/dist/commonjs/sdk/sky.d.ts.map +1 -1
  63. package/dist/commonjs/sdk/sky.js +12 -4
  64. package/dist/commonjs/sdk/sky.js.map +1 -1
  65. package/dist/esm/funcs/aaveV3Rate.d.ts +31 -0
  66. package/dist/esm/funcs/aaveV3Rate.d.ts.map +1 -0
  67. package/dist/esm/funcs/aaveV3Rate.js +98 -0
  68. package/dist/esm/funcs/aaveV3Rate.js.map +1 -0
  69. package/dist/esm/funcs/skyBuy.d.ts +6 -2
  70. package/dist/esm/funcs/skyBuy.d.ts.map +1 -1
  71. package/dist/esm/funcs/skyBuy.js +6 -2
  72. package/dist/esm/funcs/skyBuy.js.map +1 -1
  73. package/dist/esm/funcs/skySell.d.ts +6 -2
  74. package/dist/esm/funcs/skySell.d.ts.map +1 -1
  75. package/dist/esm/funcs/skySell.js +6 -2
  76. package/dist/esm/funcs/skySell.js.map +1 -1
  77. package/dist/esm/lib/config.d.ts +2 -2
  78. package/dist/esm/lib/config.js +2 -2
  79. package/dist/esm/mcp-server/mcp-server.js +1 -1
  80. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  81. package/dist/esm/mcp-server/server.js +3 -1
  82. package/dist/esm/mcp-server/server.js.map +1 -1
  83. package/dist/esm/mcp-server/tools/aaveV3Rate.d.ts +8 -0
  84. package/dist/esm/mcp-server/tools/aaveV3Rate.d.ts.map +1 -0
  85. package/dist/esm/mcp-server/tools/aaveV3Rate.js +41 -0
  86. package/dist/esm/mcp-server/tools/aaveV3Rate.js.map +1 -0
  87. package/dist/esm/mcp-server/tools/skyBuy.d.ts.map +1 -1
  88. package/dist/esm/mcp-server/tools/skyBuy.js +6 -2
  89. package/dist/esm/mcp-server/tools/skyBuy.js.map +1 -1
  90. package/dist/esm/mcp-server/tools/skySell.d.ts.map +1 -1
  91. package/dist/esm/mcp-server/tools/skySell.js +6 -2
  92. package/dist/esm/mcp-server/tools/skySell.js.map +1 -1
  93. package/dist/esm/models/components/aaverateresponse.d.ts +57 -0
  94. package/dist/esm/models/components/aaverateresponse.d.ts.map +1 -0
  95. package/dist/esm/models/components/aaverateresponse.js +60 -0
  96. package/dist/esm/models/components/aaverateresponse.js.map +1 -0
  97. package/dist/esm/models/components/index.d.ts +1 -7
  98. package/dist/esm/models/components/index.d.ts.map +1 -1
  99. package/dist/esm/models/components/index.js +1 -7
  100. package/dist/esm/models/components/index.js.map +1 -1
  101. package/dist/esm/models/components/multicallaction.d.ts +4 -11
  102. package/dist/esm/models/components/multicallaction.d.ts.map +1 -1
  103. package/dist/esm/models/components/multicallaction.js +0 -35
  104. package/dist/esm/models/components/multicallaction.js.map +1 -1
  105. package/dist/esm/models/components/multicallactiontype.d.ts +0 -21
  106. package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -1
  107. package/dist/esm/models/components/multicallactiontype.js +0 -7
  108. package/dist/esm/models/components/multicallactiontype.js.map +1 -1
  109. package/dist/esm/models/operations/aaverate.d.ts +244 -0
  110. package/dist/esm/models/operations/aaverate.d.ts.map +1 -0
  111. package/dist/esm/models/operations/aaverate.js +125 -0
  112. package/dist/esm/models/operations/aaverate.js.map +1 -0
  113. package/dist/esm/models/operations/index.d.ts +1 -0
  114. package/dist/esm/models/operations/index.d.ts.map +1 -1
  115. package/dist/esm/models/operations/index.js +1 -0
  116. package/dist/esm/models/operations/index.js.map +1 -1
  117. package/dist/esm/sdk/aavev3.d.ts +20 -0
  118. package/dist/esm/sdk/aavev3.d.ts.map +1 -1
  119. package/dist/esm/sdk/aavev3.js +23 -0
  120. package/dist/esm/sdk/aavev3.js.map +1 -1
  121. package/dist/esm/sdk/sky.d.ts +12 -4
  122. package/dist/esm/sdk/sky.d.ts.map +1 -1
  123. package/dist/esm/sdk/sky.js +12 -4
  124. package/dist/esm/sdk/sky.js.map +1 -1
  125. package/docs/sdks/aavev3/README.md +93 -0
  126. package/docs/sdks/sky/README.md +12 -4
  127. package/jsr.json +1 -1
  128. package/package.json +1 -1
  129. package/src/funcs/aaveV3Rate.ts +182 -0
  130. package/src/funcs/skyBuy.ts +6 -2
  131. package/src/funcs/skySell.ts +6 -2
  132. package/src/lib/config.ts +2 -2
  133. package/src/mcp-server/mcp-server.ts +1 -1
  134. package/src/mcp-server/server.ts +3 -1
  135. package/src/mcp-server/tools/aaveV3Rate.ts +50 -0
  136. package/src/mcp-server/tools/skyBuy.ts +6 -2
  137. package/src/mcp-server/tools/skySell.ts +6 -2
  138. package/src/models/components/aaverateresponse.ts +123 -0
  139. package/src/models/components/index.ts +1 -7
  140. package/src/models/components/multicallaction.ts +0 -98
  141. package/src/models/components/multicallactiontype.ts +0 -7
  142. package/src/models/operations/aaverate.ts +199 -0
  143. package/src/models/operations/index.ts +1 -0
  144. package/src/sdk/aavev3.ts +31 -0
  145. package/src/sdk/sky.ts +12 -4
  146. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts +0 -177
  147. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts.map +0 -1
  148. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js +0 -191
  149. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js.map +0 -1
  150. package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts +0 -186
  151. package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts.map +0 -1
  152. package/dist/commonjs/models/components/aerodromeaddliquidityparams.js +0 -197
  153. package/dist/commonjs/models/components/aerodromeaddliquidityparams.js.map +0 -1
  154. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts +0 -151
  155. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts.map +0 -1
  156. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js +0 -167
  157. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js.map +0 -1
  158. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts +0 -161
  159. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts.map +0 -1
  160. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js +0 -173
  161. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js.map +0 -1
  162. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts +0 -109
  163. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts.map +0 -1
  164. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js +0 -137
  165. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js.map +0 -1
  166. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts +0 -109
  167. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts.map +0 -1
  168. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js +0 -137
  169. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js.map +0 -1
  170. package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts +0 -128
  171. package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts.map +0 -1
  172. package/dist/commonjs/models/components/aerodromeswaptokensparams.js +0 -141
  173. package/dist/commonjs/models/components/aerodromeswaptokensparams.js.map +0 -1
  174. package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts +0 -177
  175. package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts.map +0 -1
  176. package/dist/esm/models/components/aerodromeaddliquidityethparams.js +0 -145
  177. package/dist/esm/models/components/aerodromeaddliquidityethparams.js.map +0 -1
  178. package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts +0 -186
  179. package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts.map +0 -1
  180. package/dist/esm/models/components/aerodromeaddliquidityparams.js +0 -151
  181. package/dist/esm/models/components/aerodromeaddliquidityparams.js.map +0 -1
  182. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts +0 -151
  183. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts.map +0 -1
  184. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js +0 -123
  185. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js.map +0 -1
  186. package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts +0 -161
  187. package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts.map +0 -1
  188. package/dist/esm/models/components/aerodromeremoveliquidityrequest.js +0 -129
  189. package/dist/esm/models/components/aerodromeremoveliquidityrequest.js.map +0 -1
  190. package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts +0 -109
  191. package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts.map +0 -1
  192. package/dist/esm/models/components/aerodromeswapethfortokenparams.js +0 -95
  193. package/dist/esm/models/components/aerodromeswapethfortokenparams.js.map +0 -1
  194. package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts +0 -109
  195. package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts.map +0 -1
  196. package/dist/esm/models/components/aerodromeswaptokenforethparams.js +0 -95
  197. package/dist/esm/models/components/aerodromeswaptokenforethparams.js.map +0 -1
  198. package/dist/esm/models/components/aerodromeswaptokensparams.d.ts +0 -128
  199. package/dist/esm/models/components/aerodromeswaptokensparams.d.ts.map +0 -1
  200. package/dist/esm/models/components/aerodromeswaptokensparams.js +0 -99
  201. package/dist/esm/models/components/aerodromeswaptokensparams.js.map +0 -1
  202. package/src/models/components/aerodromeaddliquidityethparams.ts +0 -392
  203. package/src/models/components/aerodromeaddliquidityparams.ts +0 -382
  204. package/src/models/components/aerodromeremoveliquidityethrequest.ts +0 -357
  205. package/src/models/components/aerodromeremoveliquidityrequest.ts +0 -363
  206. package/src/models/components/aerodromeswapethfortokenparams.ts +0 -249
  207. package/src/models/components/aerodromeswaptokenforethparams.ts +0 -249
  208. package/src/models/components/aerodromeswaptokensparams.ts +0 -260
@@ -31,30 +31,6 @@ import {
31
31
  AaveWithdrawParams$Outbound,
32
32
  AaveWithdrawParams$outboundSchema,
33
33
  } from "./aavewithdrawparams.js";
34
- import {
35
- AerodromeAddLiquidityEthParams,
36
- AerodromeAddLiquidityEthParams$inboundSchema,
37
- AerodromeAddLiquidityEthParams$Outbound,
38
- AerodromeAddLiquidityEthParams$outboundSchema,
39
- } from "./aerodromeaddliquidityethparams.js";
40
- import {
41
- AerodromeAddLiquidityParams,
42
- AerodromeAddLiquidityParams$inboundSchema,
43
- AerodromeAddLiquidityParams$Outbound,
44
- AerodromeAddLiquidityParams$outboundSchema,
45
- } from "./aerodromeaddliquidityparams.js";
46
- import {
47
- AerodromeRemoveLiquidityEthRequest,
48
- AerodromeRemoveLiquidityEthRequest$inboundSchema,
49
- AerodromeRemoveLiquidityEthRequest$Outbound,
50
- AerodromeRemoveLiquidityEthRequest$outboundSchema,
51
- } from "./aerodromeremoveliquidityethrequest.js";
52
- import {
53
- AerodromeRemoveLiquidityRequest,
54
- AerodromeRemoveLiquidityRequest$inboundSchema,
55
- AerodromeRemoveLiquidityRequest$Outbound,
56
- AerodromeRemoveLiquidityRequest$outboundSchema,
57
- } from "./aerodromeremoveliquidityrequest.js";
58
34
  import {
59
35
  AerodromeSlipstreamBuyExactlyParams,
60
36
  AerodromeSlipstreamBuyExactlyParams$inboundSchema,
@@ -85,24 +61,6 @@ import {
85
61
  AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound,
86
62
  AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema,
87
63
  } from "./aerodromeslipstreamwithdrawliquidityprovisionparams.js";
88
- import {
89
- AerodromeSwapEthForTokenParams,
90
- AerodromeSwapEthForTokenParams$inboundSchema,
91
- AerodromeSwapEthForTokenParams$Outbound,
92
- AerodromeSwapEthForTokenParams$outboundSchema,
93
- } from "./aerodromeswapethfortokenparams.js";
94
- import {
95
- AerodromeSwapTokenForEthParams,
96
- AerodromeSwapTokenForEthParams$inboundSchema,
97
- AerodromeSwapTokenForEthParams$Outbound,
98
- AerodromeSwapTokenForEthParams$outboundSchema,
99
- } from "./aerodromeswaptokenforethparams.js";
100
- import {
101
- AerodromeSwapTokensParams,
102
- AerodromeSwapTokensParams$inboundSchema,
103
- AerodromeSwapTokensParams$Outbound,
104
- AerodromeSwapTokensParams$outboundSchema,
105
- } from "./aerodromeswaptokensparams.js";
106
64
  import {
107
65
  IncreaseAllowanceAnyParams,
108
66
  IncreaseAllowanceAnyParams$inboundSchema,
@@ -181,19 +139,12 @@ export type Body =
181
139
  | IncreaseAllowanceAnyParams
182
140
  | AaveBorrowParams
183
141
  | AaveRepayParams
184
- | AerodromeSwapEthForTokenParams
185
- | AerodromeSwapTokenForEthParams
186
142
  | AerodromeSlipstreamIncreaseLiquidityProvisionParams
187
143
  | AerodromeSlipstreamBuyExactlyParams
188
144
  | AerodromeSlipstreamSellExactlyParams
189
145
  | UniswapIncreaseLiquidityProvisionParams
190
- | AerodromeSwapTokensParams
191
146
  | UniswapBuyExactlyParams
192
147
  | UniswapSellExactlyParams
193
- | AerodromeAddLiquidityEthParams
194
- | AerodromeAddLiquidityParams
195
- | AerodromeRemoveLiquidityEthRequest
196
- | AerodromeRemoveLiquidityRequest
197
148
  | AerodromeSlipstreamMintLiquidityProvisionParams
198
149
  | UniswapMintLiquidityProvisionParams;
199
150
 
@@ -211,19 +162,12 @@ export type MulticallAction = {
211
162
  | IncreaseAllowanceAnyParams
212
163
  | AaveBorrowParams
213
164
  | AaveRepayParams
214
- | AerodromeSwapEthForTokenParams
215
- | AerodromeSwapTokenForEthParams
216
165
  | AerodromeSlipstreamIncreaseLiquidityProvisionParams
217
166
  | AerodromeSlipstreamBuyExactlyParams
218
167
  | AerodromeSlipstreamSellExactlyParams
219
168
  | UniswapIncreaseLiquidityProvisionParams
220
- | AerodromeSwapTokensParams
221
169
  | UniswapBuyExactlyParams
222
170
  | UniswapSellExactlyParams
223
- | AerodromeAddLiquidityEthParams
224
- | AerodromeAddLiquidityParams
225
- | AerodromeRemoveLiquidityEthRequest
226
- | AerodromeRemoveLiquidityRequest
227
171
  | AerodromeSlipstreamMintLiquidityProvisionParams
228
172
  | UniswapMintLiquidityProvisionParams;
229
173
  };
@@ -242,19 +186,12 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
242
186
  IncreaseAllowanceAnyParams$inboundSchema,
243
187
  AaveBorrowParams$inboundSchema,
244
188
  AaveRepayParams$inboundSchema,
245
- AerodromeSwapEthForTokenParams$inboundSchema,
246
- AerodromeSwapTokenForEthParams$inboundSchema,
247
189
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema,
248
190
  AerodromeSlipstreamBuyExactlyParams$inboundSchema,
249
191
  AerodromeSlipstreamSellExactlyParams$inboundSchema,
250
192
  UniswapIncreaseLiquidityProvisionParams$inboundSchema,
251
- AerodromeSwapTokensParams$inboundSchema,
252
193
  UniswapBuyExactlyParams$inboundSchema,
253
194
  UniswapSellExactlyParams$inboundSchema,
254
- AerodromeAddLiquidityEthParams$inboundSchema,
255
- AerodromeAddLiquidityParams$inboundSchema,
256
- AerodromeRemoveLiquidityEthRequest$inboundSchema,
257
- AerodromeRemoveLiquidityRequest$inboundSchema,
258
195
  AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema,
259
196
  UniswapMintLiquidityProvisionParams$inboundSchema,
260
197
  ]);
@@ -272,19 +209,12 @@ export type Body$Outbound =
272
209
  | IncreaseAllowanceAnyParams$Outbound
273
210
  | AaveBorrowParams$Outbound
274
211
  | AaveRepayParams$Outbound
275
- | AerodromeSwapEthForTokenParams$Outbound
276
- | AerodromeSwapTokenForEthParams$Outbound
277
212
  | AerodromeSlipstreamIncreaseLiquidityProvisionParams$Outbound
278
213
  | AerodromeSlipstreamBuyExactlyParams$Outbound
279
214
  | AerodromeSlipstreamSellExactlyParams$Outbound
280
215
  | UniswapIncreaseLiquidityProvisionParams$Outbound
281
- | AerodromeSwapTokensParams$Outbound
282
216
  | UniswapBuyExactlyParams$Outbound
283
217
  | UniswapSellExactlyParams$Outbound
284
- | AerodromeAddLiquidityEthParams$Outbound
285
- | AerodromeAddLiquidityParams$Outbound
286
- | AerodromeRemoveLiquidityEthRequest$Outbound
287
- | AerodromeRemoveLiquidityRequest$Outbound
288
218
  | AerodromeSlipstreamMintLiquidityProvisionParams$Outbound
289
219
  | UniswapMintLiquidityProvisionParams$Outbound;
290
220
 
@@ -302,19 +232,12 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
302
232
  IncreaseAllowanceAnyParams$outboundSchema,
303
233
  AaveBorrowParams$outboundSchema,
304
234
  AaveRepayParams$outboundSchema,
305
- AerodromeSwapEthForTokenParams$outboundSchema,
306
- AerodromeSwapTokenForEthParams$outboundSchema,
307
235
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema,
308
236
  AerodromeSlipstreamBuyExactlyParams$outboundSchema,
309
237
  AerodromeSlipstreamSellExactlyParams$outboundSchema,
310
238
  UniswapIncreaseLiquidityProvisionParams$outboundSchema,
311
- AerodromeSwapTokensParams$outboundSchema,
312
239
  UniswapBuyExactlyParams$outboundSchema,
313
240
  UniswapSellExactlyParams$outboundSchema,
314
- AerodromeAddLiquidityEthParams$outboundSchema,
315
- AerodromeAddLiquidityParams$outboundSchema,
316
- AerodromeRemoveLiquidityEthRequest$outboundSchema,
317
- AerodromeRemoveLiquidityRequest$outboundSchema,
318
241
  AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema,
319
242
  UniswapMintLiquidityProvisionParams$outboundSchema,
320
243
  ]);
@@ -365,19 +288,12 @@ export const MulticallAction$inboundSchema: z.ZodType<
365
288
  IncreaseAllowanceAnyParams$inboundSchema,
366
289
  AaveBorrowParams$inboundSchema,
367
290
  AaveRepayParams$inboundSchema,
368
- AerodromeSwapEthForTokenParams$inboundSchema,
369
- AerodromeSwapTokenForEthParams$inboundSchema,
370
291
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema,
371
292
  AerodromeSlipstreamBuyExactlyParams$inboundSchema,
372
293
  AerodromeSlipstreamSellExactlyParams$inboundSchema,
373
294
  UniswapIncreaseLiquidityProvisionParams$inboundSchema,
374
- AerodromeSwapTokensParams$inboundSchema,
375
295
  UniswapBuyExactlyParams$inboundSchema,
376
296
  UniswapSellExactlyParams$inboundSchema,
377
- AerodromeAddLiquidityEthParams$inboundSchema,
378
- AerodromeAddLiquidityParams$inboundSchema,
379
- AerodromeRemoveLiquidityEthRequest$inboundSchema,
380
- AerodromeRemoveLiquidityRequest$inboundSchema,
381
297
  AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema,
382
298
  UniswapMintLiquidityProvisionParams$inboundSchema,
383
299
  ]),
@@ -402,19 +318,12 @@ export type MulticallAction$Outbound = {
402
318
  | IncreaseAllowanceAnyParams$Outbound
403
319
  | AaveBorrowParams$Outbound
404
320
  | AaveRepayParams$Outbound
405
- | AerodromeSwapEthForTokenParams$Outbound
406
- | AerodromeSwapTokenForEthParams$Outbound
407
321
  | AerodromeSlipstreamIncreaseLiquidityProvisionParams$Outbound
408
322
  | AerodromeSlipstreamBuyExactlyParams$Outbound
409
323
  | AerodromeSlipstreamSellExactlyParams$Outbound
410
324
  | UniswapIncreaseLiquidityProvisionParams$Outbound
411
- | AerodromeSwapTokensParams$Outbound
412
325
  | UniswapBuyExactlyParams$Outbound
413
326
  | UniswapSellExactlyParams$Outbound
414
- | AerodromeAddLiquidityEthParams$Outbound
415
- | AerodromeAddLiquidityParams$Outbound
416
- | AerodromeRemoveLiquidityEthRequest$Outbound
417
- | AerodromeRemoveLiquidityRequest$Outbound
418
327
  | AerodromeSlipstreamMintLiquidityProvisionParams$Outbound
419
328
  | UniswapMintLiquidityProvisionParams$Outbound;
420
329
  };
@@ -438,19 +347,12 @@ export const MulticallAction$outboundSchema: z.ZodType<
438
347
  IncreaseAllowanceAnyParams$outboundSchema,
439
348
  AaveBorrowParams$outboundSchema,
440
349
  AaveRepayParams$outboundSchema,
441
- AerodromeSwapEthForTokenParams$outboundSchema,
442
- AerodromeSwapTokenForEthParams$outboundSchema,
443
350
  AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema,
444
351
  AerodromeSlipstreamBuyExactlyParams$outboundSchema,
445
352
  AerodromeSlipstreamSellExactlyParams$outboundSchema,
446
353
  UniswapIncreaseLiquidityProvisionParams$outboundSchema,
447
- AerodromeSwapTokensParams$outboundSchema,
448
354
  UniswapBuyExactlyParams$outboundSchema,
449
355
  UniswapSellExactlyParams$outboundSchema,
450
- AerodromeAddLiquidityEthParams$outboundSchema,
451
- AerodromeAddLiquidityParams$outboundSchema,
452
- AerodromeRemoveLiquidityEthRequest$outboundSchema,
453
- AerodromeRemoveLiquidityRequest$outboundSchema,
454
356
  AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema,
455
357
  UniswapMintLiquidityProvisionParams$outboundSchema,
456
358
  ]),
@@ -10,13 +10,6 @@ export const MulticallActionType = {
10
10
  AaveRepay: "AAVE_REPAY",
11
11
  AaveSupply: "AAVE_SUPPLY",
12
12
  AaveWithdraw: "AAVE_WITHDRAW",
13
- AerodromeBasicAddLiquidity: "AERODROME_BASIC_ADD_LIQUIDITY",
14
- AerodromeBasicAddLiquidityEth: "AERODROME_BASIC_ADD_LIQUIDITY_ETH",
15
- AerodromeBasicRemoveLiquidity: "AERODROME_BASIC_REMOVE_LIQUIDITY",
16
- AerodromeBasicRemoveLiquidityEth: "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH",
17
- AerodromeBasicSwapEthForToken: "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN",
18
- AerodromeBasicSwapToken: "AERODROME_BASIC_SWAP_TOKEN",
19
- AerodromeBasicSwapTokenForEth: "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH",
20
13
  AerodromeSlipstreamBuyExactly: "AERODROME_SLIPSTREAM_BUY_EXACTLY",
21
14
  AerodromeSlipstreamIncreaseLiquidity:
22
15
  "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY",
@@ -0,0 +1,199 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * The chain to use.
13
+ */
14
+ export const AaveRateChain = {
15
+ BaseMainnet: "base:mainnet",
16
+ EthereumMainnet: "ethereum:mainnet",
17
+ ArbitrumMainnet: "arbitrum:mainnet",
18
+ } as const;
19
+ /**
20
+ * The chain to use.
21
+ */
22
+ export type AaveRateChain = ClosedEnum<typeof AaveRateChain>;
23
+
24
+ /**
25
+ * A class representing the token.
26
+ *
27
+ * @remarks
28
+ *
29
+ * This class is used to represent the token in the system. Notice individual
30
+ * endpoints' documentation where per chain tokens are presented.
31
+ */
32
+ export const AaveRateToken = {
33
+ OneINCH: "1INCH",
34
+ Aave: "AAVE",
35
+ Bal: "BAL",
36
+ CbBTC: "cbBTC",
37
+ CbETH: "cbETH",
38
+ Crv: "CRV",
39
+ CrvUSD: "crvUSD",
40
+ Dai: "DAI",
41
+ Ens: "ENS",
42
+ ETHx: "ETHx",
43
+ Frax: "FRAX",
44
+ Fxs: "FXS",
45
+ Gho: "GHO",
46
+ Knc: "KNC",
47
+ Ldo: "LDO",
48
+ Link: "LINK",
49
+ Lusd: "LUSD",
50
+ Mkr: "MKR",
51
+ OsETH: "osETH",
52
+ Pyusd: "PYUSD",
53
+ RETH: "rETH",
54
+ Rpl: "RPL",
55
+ RsETH: "rsETH",
56
+ SDAI: "sDAI",
57
+ Snx: "SNX",
58
+ Stg: "STG",
59
+ SUSDe: "sUSDe",
60
+ TBTC: "tBTC",
61
+ Uni: "UNI",
62
+ Usdc: "USDC",
63
+ USDe: "USDe",
64
+ Usds: "USDS",
65
+ Usdt: "USDT",
66
+ Wbtc: "WBTC",
67
+ WeETH: "weETH",
68
+ Weth: "WETH",
69
+ WstETH: "wstETH",
70
+ Arb: "ARB",
71
+ Eurs: "EURS",
72
+ Mai: "MAI",
73
+ USDCe: "USDCe",
74
+ Aero: "AERO",
75
+ Eur: "EUR",
76
+ Virtual: "VIRTUAL",
77
+ } as const;
78
+ /**
79
+ * A class representing the token.
80
+ *
81
+ * @remarks
82
+ *
83
+ * This class is used to represent the token in the system. Notice individual
84
+ * endpoints' documentation where per chain tokens are presented.
85
+ */
86
+ export type AaveRateToken = ClosedEnum<typeof AaveRateToken>;
87
+
88
+ export type AaveRateRequest = {
89
+ /**
90
+ * The chain to use.
91
+ */
92
+ chain?: AaveRateChain | undefined;
93
+ /**
94
+ * A class representing the token.
95
+ *
96
+ * @remarks
97
+ *
98
+ * This class is used to represent the token in the system. Notice individual
99
+ * endpoints' documentation where per chain tokens are presented.
100
+ */
101
+ token?: AaveRateToken | undefined;
102
+ };
103
+
104
+ /** @internal */
105
+ export const AaveRateChain$inboundSchema: z.ZodNativeEnum<
106
+ typeof AaveRateChain
107
+ > = z.nativeEnum(AaveRateChain);
108
+
109
+ /** @internal */
110
+ export const AaveRateChain$outboundSchema: z.ZodNativeEnum<
111
+ typeof AaveRateChain
112
+ > = AaveRateChain$inboundSchema;
113
+
114
+ /**
115
+ * @internal
116
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
117
+ */
118
+ export namespace AaveRateChain$ {
119
+ /** @deprecated use `AaveRateChain$inboundSchema` instead. */
120
+ export const inboundSchema = AaveRateChain$inboundSchema;
121
+ /** @deprecated use `AaveRateChain$outboundSchema` instead. */
122
+ export const outboundSchema = AaveRateChain$outboundSchema;
123
+ }
124
+
125
+ /** @internal */
126
+ export const AaveRateToken$inboundSchema: z.ZodNativeEnum<
127
+ typeof AaveRateToken
128
+ > = z.nativeEnum(AaveRateToken);
129
+
130
+ /** @internal */
131
+ export const AaveRateToken$outboundSchema: z.ZodNativeEnum<
132
+ typeof AaveRateToken
133
+ > = AaveRateToken$inboundSchema;
134
+
135
+ /**
136
+ * @internal
137
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
138
+ */
139
+ export namespace AaveRateToken$ {
140
+ /** @deprecated use `AaveRateToken$inboundSchema` instead. */
141
+ export const inboundSchema = AaveRateToken$inboundSchema;
142
+ /** @deprecated use `AaveRateToken$outboundSchema` instead. */
143
+ export const outboundSchema = AaveRateToken$outboundSchema;
144
+ }
145
+
146
+ /** @internal */
147
+ export const AaveRateRequest$inboundSchema: z.ZodType<
148
+ AaveRateRequest,
149
+ z.ZodTypeDef,
150
+ unknown
151
+ > = z.object({
152
+ chain: AaveRateChain$inboundSchema.default("arbitrum:mainnet"),
153
+ token: AaveRateToken$inboundSchema.default("USDC"),
154
+ });
155
+
156
+ /** @internal */
157
+ export type AaveRateRequest$Outbound = {
158
+ chain: string;
159
+ token: string;
160
+ };
161
+
162
+ /** @internal */
163
+ export const AaveRateRequest$outboundSchema: z.ZodType<
164
+ AaveRateRequest$Outbound,
165
+ z.ZodTypeDef,
166
+ AaveRateRequest
167
+ > = z.object({
168
+ chain: AaveRateChain$outboundSchema.default("arbitrum:mainnet"),
169
+ token: AaveRateToken$outboundSchema.default("USDC"),
170
+ });
171
+
172
+ /**
173
+ * @internal
174
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
175
+ */
176
+ export namespace AaveRateRequest$ {
177
+ /** @deprecated use `AaveRateRequest$inboundSchema` instead. */
178
+ export const inboundSchema = AaveRateRequest$inboundSchema;
179
+ /** @deprecated use `AaveRateRequest$outboundSchema` instead. */
180
+ export const outboundSchema = AaveRateRequest$outboundSchema;
181
+ /** @deprecated use `AaveRateRequest$Outbound` instead. */
182
+ export type Outbound = AaveRateRequest$Outbound;
183
+ }
184
+
185
+ export function aaveRateRequestToJSON(
186
+ aaveRateRequest: AaveRateRequest,
187
+ ): string {
188
+ return JSON.stringify(AaveRateRequest$outboundSchema.parse(aaveRateRequest));
189
+ }
190
+
191
+ export function aaveRateRequestFromJSON(
192
+ jsonString: string,
193
+ ): SafeParseResult<AaveRateRequest, SDKValidationError> {
194
+ return safeParse(
195
+ jsonString,
196
+ (x) => AaveRateRequest$inboundSchema.parse(JSON.parse(x)),
197
+ `Failed to parse 'AaveRateRequest' from JSON`,
198
+ );
199
+ }
@@ -4,6 +4,7 @@
4
4
 
5
5
  export * from "./aavehistoricaltransactions.js";
6
6
  export * from "./aaveliquiditychange.js";
7
+ export * from "./aaverate.js";
7
8
  export * from "./aavetokenprice.js";
8
9
  export * from "./aaveuserpositionpertoken.js";
9
10
  export * from "./aaveuserpositionsummary.js";
package/src/sdk/aavev3.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  import { aaveV3Borrow } from "../funcs/aaveV3Borrow.js";
6
6
  import { aaveV3HistoricalTransactions } from "../funcs/aaveV3HistoricalTransactions.js";
7
7
  import { aaveV3LiquidityChange } from "../funcs/aaveV3LiquidityChange.js";
8
+ import { aaveV3Rate } from "../funcs/aaveV3Rate.js";
8
9
  import { aaveV3Repay } from "../funcs/aaveV3Repay.js";
9
10
  import { aaveV3Supply } from "../funcs/aaveV3Supply.js";
10
11
  import { aaveV3TokenPrice } from "../funcs/aaveV3TokenPrice.js";
@@ -17,6 +18,36 @@ import * as operations from "../models/operations/index.js";
17
18
  import { unwrapAsync } from "../types/fp.js";
18
19
 
19
20
  export class AaveV3 extends ClientSDK {
21
+ /**
22
+ * Interest rates
23
+ *
24
+ * @remarks
25
+ * Returns the latest APY and APR rates for a specified token on Aave, for both
26
+ * deposits and loans.
27
+ *
28
+ * **Annual percentage yield (APY)** is the yearly return/cost after continuous
29
+ * compounding of the per-second rate stored on-chain. This value is the same value as
30
+ * seen the on [app.aave.com](
31
+ * https://app.aave.com/)
32
+ * but more up-to-date as it is taken directly from the
33
+ * blockchain every time this endpoint is called.
34
+ *
35
+ * **Annual percentage rate (APR)** is the yearly simple interest rate (no
36
+ * compounding).
37
+ *
38
+ * For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
39
+ */
40
+ async rate(
41
+ request: operations.AaveRateRequest,
42
+ options?: RequestOptions,
43
+ ): Promise<components.AaveRateResponse> {
44
+ return unwrapAsync(aaveV3Rate(
45
+ this,
46
+ request,
47
+ options,
48
+ ));
49
+ }
50
+
20
51
  /**
21
52
  * Token prices
22
53
  *
package/src/sdk/sky.ts CHANGED
@@ -34,9 +34,13 @@ export class Sky extends ClientSDK {
34
34
  * Buy USDS
35
35
  *
36
36
  * @remarks
37
- * Buy USDS with DAI or USDC on a 1:1 basis.
37
+ * Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
38
38
  *
39
- * There are no fees.
39
+ * If buying with DAI, user will need to set an allowance on the DAI contract for the
40
+ * 'SkyDaiUsdsConverter' contract beforehand.
41
+ *
42
+ * If buying with USDC, user will need to set an allowance on the USDC contract for the
43
+ * 'SkyDaiUsdsConverter' contract beforehand.
40
44
  */
41
45
  async buy(
42
46
  request: components.SkyBuyRequest,
@@ -53,9 +57,13 @@ export class Sky extends ClientSDK {
53
57
  * Sell USDS
54
58
  *
55
59
  * @remarks
56
- * Sell USDS for DAI or USDC on a 1:1 basis.
60
+ * Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
57
61
  *
58
- * There are no fees.
62
+ * If swapping to DAI, user will need to set an allowance on the USDS contract for the
63
+ * 'SkyDaiUsdsConverter' contract beforehand.
64
+ *
65
+ * If swapping to USDC, user will need to set an allowance on the USDS contract for the
66
+ * 'SkyUsdcUsdsConverter' contract beforehand.
59
67
  */
60
68
  async sell(
61
69
  request: components.SkySellRequest,