@compass-labs/api-sdk 0.0.21 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/README.md +9 -7
  3. package/bin/mcp-server.js +631 -885
  4. package/bin/mcp-server.js.map +14 -17
  5. package/dist/commonjs/funcs/aaveV3ReserveOverview.d.ts +23 -0
  6. package/dist/commonjs/funcs/aaveV3ReserveOverview.d.ts.map +1 -0
  7. package/dist/commonjs/funcs/aaveV3ReserveOverview.js +126 -0
  8. package/dist/commonjs/funcs/aaveV3ReserveOverview.js.map +1 -0
  9. package/dist/commonjs/lib/config.d.ts +2 -2
  10. package/dist/commonjs/lib/config.js +2 -2
  11. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  12. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  13. package/dist/commonjs/mcp-server/server.js +3 -1
  14. package/dist/commonjs/mcp-server/server.js.map +1 -1
  15. package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.d.ts +8 -0
  16. package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.d.ts.map +1 -0
  17. package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.js +69 -0
  18. package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.js.map +1 -0
  19. package/dist/commonjs/models/components/aavereserveoverviewresponse.d.ts +42 -0
  20. package/dist/commonjs/models/components/aavereserveoverviewresponse.d.ts.map +1 -0
  21. package/dist/commonjs/models/components/aavereserveoverviewresponse.js +84 -0
  22. package/dist/commonjs/models/components/aavereserveoverviewresponse.js.map +1 -0
  23. package/dist/commonjs/models/components/index.d.ts +1 -7
  24. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/index.js +1 -7
  26. package/dist/commonjs/models/components/index.js.map +1 -1
  27. package/dist/commonjs/models/components/multicallaction.d.ts +4 -11
  28. package/dist/commonjs/models/components/multicallaction.d.ts.map +1 -1
  29. package/dist/commonjs/models/components/multicallaction.js +0 -35
  30. package/dist/commonjs/models/components/multicallaction.js.map +1 -1
  31. package/dist/commonjs/models/components/multicallactiontype.d.ts +0 -21
  32. package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/multicallactiontype.js +0 -7
  34. package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
  35. package/dist/commonjs/models/operations/aavereserveoverview.d.ts +244 -0
  36. package/dist/commonjs/models/operations/aavereserveoverview.d.ts.map +1 -0
  37. package/dist/commonjs/models/operations/aavereserveoverview.js +163 -0
  38. package/dist/commonjs/models/operations/aavereserveoverview.js.map +1 -0
  39. package/dist/commonjs/models/operations/index.d.ts +1 -0
  40. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  41. package/dist/commonjs/models/operations/index.js +1 -0
  42. package/dist/commonjs/models/operations/index.js.map +1 -1
  43. package/dist/commonjs/sdk/aavev3.d.ts +12 -0
  44. package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
  45. package/dist/commonjs/sdk/aavev3.js +15 -0
  46. package/dist/commonjs/sdk/aavev3.js.map +1 -1
  47. package/dist/esm/funcs/aaveV3ReserveOverview.d.ts +23 -0
  48. package/dist/esm/funcs/aaveV3ReserveOverview.d.ts.map +1 -0
  49. package/dist/esm/funcs/aaveV3ReserveOverview.js +90 -0
  50. package/dist/esm/funcs/aaveV3ReserveOverview.js.map +1 -0
  51. package/dist/esm/lib/config.d.ts +2 -2
  52. package/dist/esm/lib/config.js +2 -2
  53. package/dist/esm/mcp-server/mcp-server.js +1 -1
  54. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  55. package/dist/esm/mcp-server/server.js +3 -1
  56. package/dist/esm/mcp-server/server.js.map +1 -1
  57. package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.d.ts +8 -0
  58. package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.d.ts.map +1 -0
  59. package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.js +33 -0
  60. package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.js.map +1 -0
  61. package/dist/esm/models/components/aavereserveoverviewresponse.d.ts +42 -0
  62. package/dist/esm/models/components/aavereserveoverviewresponse.d.ts.map +1 -0
  63. package/dist/esm/models/components/aavereserveoverviewresponse.js +46 -0
  64. package/dist/esm/models/components/aavereserveoverviewresponse.js.map +1 -0
  65. package/dist/esm/models/components/index.d.ts +1 -7
  66. package/dist/esm/models/components/index.d.ts.map +1 -1
  67. package/dist/esm/models/components/index.js +1 -7
  68. package/dist/esm/models/components/index.js.map +1 -1
  69. package/dist/esm/models/components/multicallaction.d.ts +4 -11
  70. package/dist/esm/models/components/multicallaction.d.ts.map +1 -1
  71. package/dist/esm/models/components/multicallaction.js +0 -35
  72. package/dist/esm/models/components/multicallaction.js.map +1 -1
  73. package/dist/esm/models/components/multicallactiontype.d.ts +0 -21
  74. package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -1
  75. package/dist/esm/models/components/multicallactiontype.js +0 -7
  76. package/dist/esm/models/components/multicallactiontype.js.map +1 -1
  77. package/dist/esm/models/operations/aavereserveoverview.d.ts +244 -0
  78. package/dist/esm/models/operations/aavereserveoverview.d.ts.map +1 -0
  79. package/dist/esm/models/operations/aavereserveoverview.js +125 -0
  80. package/dist/esm/models/operations/aavereserveoverview.js.map +1 -0
  81. package/dist/esm/models/operations/index.d.ts +1 -0
  82. package/dist/esm/models/operations/index.d.ts.map +1 -1
  83. package/dist/esm/models/operations/index.js +1 -0
  84. package/dist/esm/models/operations/index.js.map +1 -1
  85. package/dist/esm/sdk/aavev3.d.ts +12 -0
  86. package/dist/esm/sdk/aavev3.d.ts.map +1 -1
  87. package/dist/esm/sdk/aavev3.js +15 -0
  88. package/dist/esm/sdk/aavev3.js.map +1 -1
  89. package/docs/sdks/aavev3/README.md +85 -0
  90. package/jsr.json +1 -1
  91. package/package.json +1 -1
  92. package/src/funcs/aaveV3ReserveOverview.ts +175 -0
  93. package/src/lib/config.ts +2 -2
  94. package/src/mcp-server/mcp-server.ts +1 -1
  95. package/src/mcp-server/server.ts +3 -1
  96. package/src/mcp-server/tools/aaveV3ReserveOverview.ts +42 -0
  97. package/src/models/components/aavereserveoverviewresponse.ts +96 -0
  98. package/src/models/components/index.ts +1 -7
  99. package/src/models/components/multicallaction.ts +0 -98
  100. package/src/models/components/multicallactiontype.ts +0 -7
  101. package/src/models/operations/aavereserveoverview.ts +205 -0
  102. package/src/models/operations/index.ts +1 -0
  103. package/src/sdk/aavev3.ts +23 -0
  104. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts +0 -177
  105. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts.map +0 -1
  106. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js +0 -191
  107. package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js.map +0 -1
  108. package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts +0 -186
  109. package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts.map +0 -1
  110. package/dist/commonjs/models/components/aerodromeaddliquidityparams.js +0 -197
  111. package/dist/commonjs/models/components/aerodromeaddliquidityparams.js.map +0 -1
  112. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts +0 -151
  113. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts.map +0 -1
  114. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js +0 -167
  115. package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js.map +0 -1
  116. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts +0 -161
  117. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts.map +0 -1
  118. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js +0 -173
  119. package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js.map +0 -1
  120. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts +0 -109
  121. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts.map +0 -1
  122. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js +0 -137
  123. package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js.map +0 -1
  124. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts +0 -109
  125. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts.map +0 -1
  126. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js +0 -137
  127. package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js.map +0 -1
  128. package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts +0 -128
  129. package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts.map +0 -1
  130. package/dist/commonjs/models/components/aerodromeswaptokensparams.js +0 -141
  131. package/dist/commonjs/models/components/aerodromeswaptokensparams.js.map +0 -1
  132. package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts +0 -177
  133. package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts.map +0 -1
  134. package/dist/esm/models/components/aerodromeaddliquidityethparams.js +0 -145
  135. package/dist/esm/models/components/aerodromeaddliquidityethparams.js.map +0 -1
  136. package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts +0 -186
  137. package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts.map +0 -1
  138. package/dist/esm/models/components/aerodromeaddliquidityparams.js +0 -151
  139. package/dist/esm/models/components/aerodromeaddliquidityparams.js.map +0 -1
  140. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts +0 -151
  141. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts.map +0 -1
  142. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js +0 -123
  143. package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js.map +0 -1
  144. package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts +0 -161
  145. package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts.map +0 -1
  146. package/dist/esm/models/components/aerodromeremoveliquidityrequest.js +0 -129
  147. package/dist/esm/models/components/aerodromeremoveliquidityrequest.js.map +0 -1
  148. package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts +0 -109
  149. package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts.map +0 -1
  150. package/dist/esm/models/components/aerodromeswapethfortokenparams.js +0 -95
  151. package/dist/esm/models/components/aerodromeswapethfortokenparams.js.map +0 -1
  152. package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts +0 -109
  153. package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts.map +0 -1
  154. package/dist/esm/models/components/aerodromeswaptokenforethparams.js +0 -95
  155. package/dist/esm/models/components/aerodromeswaptokenforethparams.js.map +0 -1
  156. package/dist/esm/models/components/aerodromeswaptokensparams.d.ts +0 -128
  157. package/dist/esm/models/components/aerodromeswaptokensparams.d.ts.map +0 -1
  158. package/dist/esm/models/components/aerodromeswaptokensparams.js +0 -99
  159. package/dist/esm/models/components/aerodromeswaptokensparams.js.map +0 -1
  160. package/src/models/components/aerodromeaddliquidityethparams.ts +0 -392
  161. package/src/models/components/aerodromeaddliquidityparams.ts +0 -382
  162. package/src/models/components/aerodromeremoveliquidityethrequest.ts +0 -357
  163. package/src/models/components/aerodromeremoveliquidityrequest.ts +0 -363
  164. package/src/models/components/aerodromeswapethfortokenparams.ts +0 -249
  165. package/src/models/components/aerodromeswaptokenforethparams.ts +0 -249
  166. package/src/models/components/aerodromeswaptokensparams.ts +0 -260
@@ -0,0 +1,96 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type AaveReserveOverviewResponse = {
12
+ /**
13
+ * Total tokens supplied in an Aave Reserve in USD. E.G. How much WBTC has been supplied on Aave in USD.
14
+ */
15
+ tvl: number;
16
+ /**
17
+ * Total tokens borrowed in an Aave Reserve converted to USD. E.G. How much WBTC has been supplied on Aave (in USD).
18
+ */
19
+ totalBorrowed: number;
20
+ /**
21
+ * Total borrowed divided by total supplied in an Aave Reserve. E.G. How much WBTC has been borrowed on Aaave divided by the amount supplied
22
+ */
23
+ utilizationRatio: number;
24
+ };
25
+
26
+ /** @internal */
27
+ export const AaveReserveOverviewResponse$inboundSchema: z.ZodType<
28
+ AaveReserveOverviewResponse,
29
+ z.ZodTypeDef,
30
+ unknown
31
+ > = z.object({
32
+ tvl: z.number(),
33
+ total_borrowed: z.number(),
34
+ utilization_ratio: z.number(),
35
+ }).transform((v) => {
36
+ return remap$(v, {
37
+ "total_borrowed": "totalBorrowed",
38
+ "utilization_ratio": "utilizationRatio",
39
+ });
40
+ });
41
+
42
+ /** @internal */
43
+ export type AaveReserveOverviewResponse$Outbound = {
44
+ tvl: number;
45
+ total_borrowed: number;
46
+ utilization_ratio: number;
47
+ };
48
+
49
+ /** @internal */
50
+ export const AaveReserveOverviewResponse$outboundSchema: z.ZodType<
51
+ AaveReserveOverviewResponse$Outbound,
52
+ z.ZodTypeDef,
53
+ AaveReserveOverviewResponse
54
+ > = z.object({
55
+ tvl: z.number(),
56
+ totalBorrowed: z.number(),
57
+ utilizationRatio: z.number(),
58
+ }).transform((v) => {
59
+ return remap$(v, {
60
+ totalBorrowed: "total_borrowed",
61
+ utilizationRatio: "utilization_ratio",
62
+ });
63
+ });
64
+
65
+ /**
66
+ * @internal
67
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
68
+ */
69
+ export namespace AaveReserveOverviewResponse$ {
70
+ /** @deprecated use `AaveReserveOverviewResponse$inboundSchema` instead. */
71
+ export const inboundSchema = AaveReserveOverviewResponse$inboundSchema;
72
+ /** @deprecated use `AaveReserveOverviewResponse$outboundSchema` instead. */
73
+ export const outboundSchema = AaveReserveOverviewResponse$outboundSchema;
74
+ /** @deprecated use `AaveReserveOverviewResponse$Outbound` instead. */
75
+ export type Outbound = AaveReserveOverviewResponse$Outbound;
76
+ }
77
+
78
+ export function aaveReserveOverviewResponseToJSON(
79
+ aaveReserveOverviewResponse: AaveReserveOverviewResponse,
80
+ ): string {
81
+ return JSON.stringify(
82
+ AaveReserveOverviewResponse$outboundSchema.parse(
83
+ aaveReserveOverviewResponse,
84
+ ),
85
+ );
86
+ }
87
+
88
+ export function aaveReserveOverviewResponseFromJSON(
89
+ jsonString: string,
90
+ ): SafeParseResult<AaveReserveOverviewResponse, SDKValidationError> {
91
+ return safeParse(
92
+ jsonString,
93
+ (x) => AaveReserveOverviewResponse$inboundSchema.parse(JSON.parse(x)),
94
+ `Failed to parse 'AaveReserveOverviewResponse' from JSON`,
95
+ );
96
+ }
@@ -10,6 +10,7 @@ export * from "./aaveliquiditychangeresponse.js";
10
10
  export * from "./aaverateresponse.js";
11
11
  export * from "./aaverepayparams.js";
12
12
  export * from "./aaverepayrequest.js";
13
+ export * from "./aavereserveoverviewresponse.js";
13
14
  export * from "./aavesupplyparams.js";
14
15
  export * from "./aavesupplyrequest.js";
15
16
  export * from "./aavetokenpriceresponse.js";
@@ -18,12 +19,8 @@ export * from "./aaveuserpositionsummaryresponse.js";
18
19
  export * from "./aavewithdrawparams.js";
19
20
  export * from "./aavewithdrawrequest.js";
20
21
  export * from "./action.js";
21
- export * from "./aerodromeaddliquidityethparams.js";
22
- export * from "./aerodromeaddliquidityparams.js";
23
22
  export * from "./aerodromelppositionsresponse.js";
24
23
  export * from "./aerodromeposition.js";
25
- export * from "./aerodromeremoveliquidityethrequest.js";
26
- export * from "./aerodromeremoveliquidityrequest.js";
27
24
  export * from "./aerodromeslipstreambuyexactlyparams.js";
28
25
  export * from "./aerodromeslipstreambuyexactlyrequest.js";
29
26
  export * from "./aerodromeslipstreamincreaseliquidityprovisionparams.js";
@@ -35,9 +32,6 @@ export * from "./aerodromeslipstreamsellexactlyparams.js";
35
32
  export * from "./aerodromeslipstreamsellexactlyrequest.js";
36
33
  export * from "./aerodromeslipstreamwithdrawliquidityprovisionparams.js";
37
34
  export * from "./aerodromeslipstreamwithdrawliquidityprovisionrequest.js";
38
- export * from "./aerodromeswapethfortokenparams.js";
39
- export * from "./aerodromeswaptokenforethparams.js";
40
- export * from "./aerodromeswaptokensparams.js";
41
35
  export * from "./allowanceinforesponse.js";
42
36
  export * from "./borrow.js";
43
37
  export * from "./chain.js";
@@ -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,205 @@
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 AaveReserveOverviewChain = {
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 AaveReserveOverviewChain = ClosedEnum<
23
+ typeof AaveReserveOverviewChain
24
+ >;
25
+
26
+ /**
27
+ * A class representing the token.
28
+ *
29
+ * @remarks
30
+ *
31
+ * This class is used to represent the token in the system. Notice individual
32
+ * endpoints' documentation where per chain tokens are presented.
33
+ */
34
+ export const AaveReserveOverviewToken = {
35
+ OneINCH: "1INCH",
36
+ Aave: "AAVE",
37
+ Bal: "BAL",
38
+ CbBTC: "cbBTC",
39
+ CbETH: "cbETH",
40
+ Crv: "CRV",
41
+ CrvUSD: "crvUSD",
42
+ Dai: "DAI",
43
+ Ens: "ENS",
44
+ ETHx: "ETHx",
45
+ Frax: "FRAX",
46
+ Fxs: "FXS",
47
+ Gho: "GHO",
48
+ Knc: "KNC",
49
+ Ldo: "LDO",
50
+ Link: "LINK",
51
+ Lusd: "LUSD",
52
+ Mkr: "MKR",
53
+ OsETH: "osETH",
54
+ Pyusd: "PYUSD",
55
+ RETH: "rETH",
56
+ Rpl: "RPL",
57
+ RsETH: "rsETH",
58
+ SDAI: "sDAI",
59
+ Snx: "SNX",
60
+ Stg: "STG",
61
+ SUSDe: "sUSDe",
62
+ TBTC: "tBTC",
63
+ Uni: "UNI",
64
+ Usdc: "USDC",
65
+ USDe: "USDe",
66
+ Usds: "USDS",
67
+ Usdt: "USDT",
68
+ Wbtc: "WBTC",
69
+ WeETH: "weETH",
70
+ Weth: "WETH",
71
+ WstETH: "wstETH",
72
+ Arb: "ARB",
73
+ Eurs: "EURS",
74
+ Mai: "MAI",
75
+ USDCe: "USDCe",
76
+ Aero: "AERO",
77
+ Eur: "EUR",
78
+ Virtual: "VIRTUAL",
79
+ } as const;
80
+ /**
81
+ * A class representing the token.
82
+ *
83
+ * @remarks
84
+ *
85
+ * This class is used to represent the token in the system. Notice individual
86
+ * endpoints' documentation where per chain tokens are presented.
87
+ */
88
+ export type AaveReserveOverviewToken = ClosedEnum<
89
+ typeof AaveReserveOverviewToken
90
+ >;
91
+
92
+ export type AaveReserveOverviewRequest = {
93
+ /**
94
+ * The chain to use.
95
+ */
96
+ chain?: AaveReserveOverviewChain | undefined;
97
+ /**
98
+ * A class representing the token.
99
+ *
100
+ * @remarks
101
+ *
102
+ * This class is used to represent the token in the system. Notice individual
103
+ * endpoints' documentation where per chain tokens are presented.
104
+ */
105
+ token?: AaveReserveOverviewToken | undefined;
106
+ };
107
+
108
+ /** @internal */
109
+ export const AaveReserveOverviewChain$inboundSchema: z.ZodNativeEnum<
110
+ typeof AaveReserveOverviewChain
111
+ > = z.nativeEnum(AaveReserveOverviewChain);
112
+
113
+ /** @internal */
114
+ export const AaveReserveOverviewChain$outboundSchema: z.ZodNativeEnum<
115
+ typeof AaveReserveOverviewChain
116
+ > = AaveReserveOverviewChain$inboundSchema;
117
+
118
+ /**
119
+ * @internal
120
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
121
+ */
122
+ export namespace AaveReserveOverviewChain$ {
123
+ /** @deprecated use `AaveReserveOverviewChain$inboundSchema` instead. */
124
+ export const inboundSchema = AaveReserveOverviewChain$inboundSchema;
125
+ /** @deprecated use `AaveReserveOverviewChain$outboundSchema` instead. */
126
+ export const outboundSchema = AaveReserveOverviewChain$outboundSchema;
127
+ }
128
+
129
+ /** @internal */
130
+ export const AaveReserveOverviewToken$inboundSchema: z.ZodNativeEnum<
131
+ typeof AaveReserveOverviewToken
132
+ > = z.nativeEnum(AaveReserveOverviewToken);
133
+
134
+ /** @internal */
135
+ export const AaveReserveOverviewToken$outboundSchema: z.ZodNativeEnum<
136
+ typeof AaveReserveOverviewToken
137
+ > = AaveReserveOverviewToken$inboundSchema;
138
+
139
+ /**
140
+ * @internal
141
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
142
+ */
143
+ export namespace AaveReserveOverviewToken$ {
144
+ /** @deprecated use `AaveReserveOverviewToken$inboundSchema` instead. */
145
+ export const inboundSchema = AaveReserveOverviewToken$inboundSchema;
146
+ /** @deprecated use `AaveReserveOverviewToken$outboundSchema` instead. */
147
+ export const outboundSchema = AaveReserveOverviewToken$outboundSchema;
148
+ }
149
+
150
+ /** @internal */
151
+ export const AaveReserveOverviewRequest$inboundSchema: z.ZodType<
152
+ AaveReserveOverviewRequest,
153
+ z.ZodTypeDef,
154
+ unknown
155
+ > = z.object({
156
+ chain: AaveReserveOverviewChain$inboundSchema.default("arbitrum:mainnet"),
157
+ token: AaveReserveOverviewToken$inboundSchema.default("USDC"),
158
+ });
159
+
160
+ /** @internal */
161
+ export type AaveReserveOverviewRequest$Outbound = {
162
+ chain: string;
163
+ token: string;
164
+ };
165
+
166
+ /** @internal */
167
+ export const AaveReserveOverviewRequest$outboundSchema: z.ZodType<
168
+ AaveReserveOverviewRequest$Outbound,
169
+ z.ZodTypeDef,
170
+ AaveReserveOverviewRequest
171
+ > = z.object({
172
+ chain: AaveReserveOverviewChain$outboundSchema.default("arbitrum:mainnet"),
173
+ token: AaveReserveOverviewToken$outboundSchema.default("USDC"),
174
+ });
175
+
176
+ /**
177
+ * @internal
178
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
179
+ */
180
+ export namespace AaveReserveOverviewRequest$ {
181
+ /** @deprecated use `AaveReserveOverviewRequest$inboundSchema` instead. */
182
+ export const inboundSchema = AaveReserveOverviewRequest$inboundSchema;
183
+ /** @deprecated use `AaveReserveOverviewRequest$outboundSchema` instead. */
184
+ export const outboundSchema = AaveReserveOverviewRequest$outboundSchema;
185
+ /** @deprecated use `AaveReserveOverviewRequest$Outbound` instead. */
186
+ export type Outbound = AaveReserveOverviewRequest$Outbound;
187
+ }
188
+
189
+ export function aaveReserveOverviewRequestToJSON(
190
+ aaveReserveOverviewRequest: AaveReserveOverviewRequest,
191
+ ): string {
192
+ return JSON.stringify(
193
+ AaveReserveOverviewRequest$outboundSchema.parse(aaveReserveOverviewRequest),
194
+ );
195
+ }
196
+
197
+ export function aaveReserveOverviewRequestFromJSON(
198
+ jsonString: string,
199
+ ): SafeParseResult<AaveReserveOverviewRequest, SDKValidationError> {
200
+ return safeParse(
201
+ jsonString,
202
+ (x) => AaveReserveOverviewRequest$inboundSchema.parse(JSON.parse(x)),
203
+ `Failed to parse 'AaveReserveOverviewRequest' from JSON`,
204
+ );
205
+ }
@@ -5,6 +5,7 @@
5
5
  export * from "./aavehistoricaltransactions.js";
6
6
  export * from "./aaveliquiditychange.js";
7
7
  export * from "./aaverate.js";
8
+ export * from "./aavereserveoverview.js";
8
9
  export * from "./aavetokenprice.js";
9
10
  export * from "./aaveuserpositionpertoken.js";
10
11
  export * from "./aaveuserpositionsummary.js";
package/src/sdk/aavev3.ts CHANGED
@@ -7,6 +7,7 @@ import { aaveV3HistoricalTransactions } from "../funcs/aaveV3HistoricalTransacti
7
7
  import { aaveV3LiquidityChange } from "../funcs/aaveV3LiquidityChange.js";
8
8
  import { aaveV3Rate } from "../funcs/aaveV3Rate.js";
9
9
  import { aaveV3Repay } from "../funcs/aaveV3Repay.js";
10
+ import { aaveV3ReserveOverview } from "../funcs/aaveV3ReserveOverview.js";
10
11
  import { aaveV3Supply } from "../funcs/aaveV3Supply.js";
11
12
  import { aaveV3TokenPrice } from "../funcs/aaveV3TokenPrice.js";
12
13
  import { aaveV3UserPositionPerToken } from "../funcs/aaveV3UserPositionPerToken.js";
@@ -18,6 +19,28 @@ import * as operations from "../models/operations/index.js";
18
19
  import { unwrapAsync } from "../types/fp.js";
19
20
 
20
21
  export class AaveV3 extends ClientSDK {
22
+ /**
23
+ * Reserve overview
24
+ *
25
+ * @remarks
26
+ * Returns key metrics for Aave Reserves:
27
+ * - Total Supplied (TVL) in USD
28
+ * - Total Borrowed in USD
29
+ * - Utilization Ratio
30
+ *
31
+ * See below for more info:
32
+ */
33
+ async reserveOverview(
34
+ request: operations.AaveReserveOverviewRequest,
35
+ options?: RequestOptions,
36
+ ): Promise<components.AaveReserveOverviewResponse> {
37
+ return unwrapAsync(aaveV3ReserveOverview(
38
+ this,
39
+ request,
40
+ options,
41
+ ));
42
+ }
43
+
21
44
  /**
22
45
  * Interest rates
23
46
  *