@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
@@ -1,382 +0,0 @@
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
- import {
11
- TokenEnum,
12
- TokenEnum$inboundSchema,
13
- TokenEnum$outboundSchema,
14
- } from "./tokenenum.js";
15
-
16
- /**
17
- * The amount of token A you want to provide
18
- */
19
- export type AmountADesired = number | string;
20
-
21
- /**
22
- * The amount of token B you want to provide
23
- */
24
- export type AmountBDesired = number | string;
25
-
26
- /**
27
- * The minimal amount of token A you are willing to provide
28
- */
29
- export type AerodromeAddLiquidityParamsAmountAMin = number | string;
30
-
31
- /**
32
- * The minimal amount of token B you are willing to provide
33
- */
34
- export type AerodromeAddLiquidityParamsAmountBMin = number | string;
35
-
36
- /**
37
- * Endpoint parameters for adding liquidity on Aerodrome Basic.
38
- *
39
- * @remarks
40
- *
41
- * This action is performed on the Aerodrome Basic Router to add liquidity to a pool.
42
- */
43
- export type AerodromeAddLiquidityParams = {
44
- /**
45
- * A class representing the token.
46
- *
47
- * @remarks
48
- *
49
- * This class is used to represent the token in the system. Notice individual
50
- * endpoints' documentation where per chain tokens are presented.
51
- */
52
- tokenA: TokenEnum;
53
- /**
54
- * A class representing the token.
55
- *
56
- * @remarks
57
- *
58
- * This class is used to represent the token in the system. Notice individual
59
- * endpoints' documentation where per chain tokens are presented.
60
- */
61
- tokenB: TokenEnum;
62
- /**
63
- * If true, try to provide liquidity on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to provide liquidity on a volatile pool with a bonding curve of K=xy
64
- */
65
- stable: boolean;
66
- /**
67
- * The amount of token A you want to provide
68
- */
69
- amountADesired: number | string;
70
- /**
71
- * The amount of token B you want to provide
72
- */
73
- amountBDesired: number | string;
74
- /**
75
- * The minimal amount of token A you are willing to provide
76
- */
77
- amountAMin: number | string;
78
- /**
79
- * The minimal amount of token B you are willing to provide
80
- */
81
- amountBMin: number | string;
82
- /**
83
- * The receiver of the LP tokens from this trade, default to sender
84
- */
85
- to?: string | null | undefined;
86
- /**
87
- * The deadline for this transaction in seconds since epoch
88
- */
89
- deadline: number | null;
90
- };
91
-
92
- /** @internal */
93
- export const AmountADesired$inboundSchema: z.ZodType<
94
- AmountADesired,
95
- z.ZodTypeDef,
96
- unknown
97
- > = z.union([z.number(), z.string()]);
98
-
99
- /** @internal */
100
- export type AmountADesired$Outbound = number | string;
101
-
102
- /** @internal */
103
- export const AmountADesired$outboundSchema: z.ZodType<
104
- AmountADesired$Outbound,
105
- z.ZodTypeDef,
106
- AmountADesired
107
- > = z.union([z.number(), z.string()]);
108
-
109
- /**
110
- * @internal
111
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
112
- */
113
- export namespace AmountADesired$ {
114
- /** @deprecated use `AmountADesired$inboundSchema` instead. */
115
- export const inboundSchema = AmountADesired$inboundSchema;
116
- /** @deprecated use `AmountADesired$outboundSchema` instead. */
117
- export const outboundSchema = AmountADesired$outboundSchema;
118
- /** @deprecated use `AmountADesired$Outbound` instead. */
119
- export type Outbound = AmountADesired$Outbound;
120
- }
121
-
122
- export function amountADesiredToJSON(amountADesired: AmountADesired): string {
123
- return JSON.stringify(AmountADesired$outboundSchema.parse(amountADesired));
124
- }
125
-
126
- export function amountADesiredFromJSON(
127
- jsonString: string,
128
- ): SafeParseResult<AmountADesired, SDKValidationError> {
129
- return safeParse(
130
- jsonString,
131
- (x) => AmountADesired$inboundSchema.parse(JSON.parse(x)),
132
- `Failed to parse 'AmountADesired' from JSON`,
133
- );
134
- }
135
-
136
- /** @internal */
137
- export const AmountBDesired$inboundSchema: z.ZodType<
138
- AmountBDesired,
139
- z.ZodTypeDef,
140
- unknown
141
- > = z.union([z.number(), z.string()]);
142
-
143
- /** @internal */
144
- export type AmountBDesired$Outbound = number | string;
145
-
146
- /** @internal */
147
- export const AmountBDesired$outboundSchema: z.ZodType<
148
- AmountBDesired$Outbound,
149
- z.ZodTypeDef,
150
- AmountBDesired
151
- > = z.union([z.number(), z.string()]);
152
-
153
- /**
154
- * @internal
155
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
156
- */
157
- export namespace AmountBDesired$ {
158
- /** @deprecated use `AmountBDesired$inboundSchema` instead. */
159
- export const inboundSchema = AmountBDesired$inboundSchema;
160
- /** @deprecated use `AmountBDesired$outboundSchema` instead. */
161
- export const outboundSchema = AmountBDesired$outboundSchema;
162
- /** @deprecated use `AmountBDesired$Outbound` instead. */
163
- export type Outbound = AmountBDesired$Outbound;
164
- }
165
-
166
- export function amountBDesiredToJSON(amountBDesired: AmountBDesired): string {
167
- return JSON.stringify(AmountBDesired$outboundSchema.parse(amountBDesired));
168
- }
169
-
170
- export function amountBDesiredFromJSON(
171
- jsonString: string,
172
- ): SafeParseResult<AmountBDesired, SDKValidationError> {
173
- return safeParse(
174
- jsonString,
175
- (x) => AmountBDesired$inboundSchema.parse(JSON.parse(x)),
176
- `Failed to parse 'AmountBDesired' from JSON`,
177
- );
178
- }
179
-
180
- /** @internal */
181
- export const AerodromeAddLiquidityParamsAmountAMin$inboundSchema: z.ZodType<
182
- AerodromeAddLiquidityParamsAmountAMin,
183
- z.ZodTypeDef,
184
- unknown
185
- > = z.union([z.number(), z.string()]);
186
-
187
- /** @internal */
188
- export type AerodromeAddLiquidityParamsAmountAMin$Outbound = number | string;
189
-
190
- /** @internal */
191
- export const AerodromeAddLiquidityParamsAmountAMin$outboundSchema: z.ZodType<
192
- AerodromeAddLiquidityParamsAmountAMin$Outbound,
193
- z.ZodTypeDef,
194
- AerodromeAddLiquidityParamsAmountAMin
195
- > = z.union([z.number(), z.string()]);
196
-
197
- /**
198
- * @internal
199
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
200
- */
201
- export namespace AerodromeAddLiquidityParamsAmountAMin$ {
202
- /** @deprecated use `AerodromeAddLiquidityParamsAmountAMin$inboundSchema` instead. */
203
- export const inboundSchema =
204
- AerodromeAddLiquidityParamsAmountAMin$inboundSchema;
205
- /** @deprecated use `AerodromeAddLiquidityParamsAmountAMin$outboundSchema` instead. */
206
- export const outboundSchema =
207
- AerodromeAddLiquidityParamsAmountAMin$outboundSchema;
208
- /** @deprecated use `AerodromeAddLiquidityParamsAmountAMin$Outbound` instead. */
209
- export type Outbound = AerodromeAddLiquidityParamsAmountAMin$Outbound;
210
- }
211
-
212
- export function aerodromeAddLiquidityParamsAmountAMinToJSON(
213
- aerodromeAddLiquidityParamsAmountAMin: AerodromeAddLiquidityParamsAmountAMin,
214
- ): string {
215
- return JSON.stringify(
216
- AerodromeAddLiquidityParamsAmountAMin$outboundSchema.parse(
217
- aerodromeAddLiquidityParamsAmountAMin,
218
- ),
219
- );
220
- }
221
-
222
- export function aerodromeAddLiquidityParamsAmountAMinFromJSON(
223
- jsonString: string,
224
- ): SafeParseResult<AerodromeAddLiquidityParamsAmountAMin, SDKValidationError> {
225
- return safeParse(
226
- jsonString,
227
- (x) =>
228
- AerodromeAddLiquidityParamsAmountAMin$inboundSchema.parse(JSON.parse(x)),
229
- `Failed to parse 'AerodromeAddLiquidityParamsAmountAMin' from JSON`,
230
- );
231
- }
232
-
233
- /** @internal */
234
- export const AerodromeAddLiquidityParamsAmountBMin$inboundSchema: z.ZodType<
235
- AerodromeAddLiquidityParamsAmountBMin,
236
- z.ZodTypeDef,
237
- unknown
238
- > = z.union([z.number(), z.string()]);
239
-
240
- /** @internal */
241
- export type AerodromeAddLiquidityParamsAmountBMin$Outbound = number | string;
242
-
243
- /** @internal */
244
- export const AerodromeAddLiquidityParamsAmountBMin$outboundSchema: z.ZodType<
245
- AerodromeAddLiquidityParamsAmountBMin$Outbound,
246
- z.ZodTypeDef,
247
- AerodromeAddLiquidityParamsAmountBMin
248
- > = z.union([z.number(), z.string()]);
249
-
250
- /**
251
- * @internal
252
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
253
- */
254
- export namespace AerodromeAddLiquidityParamsAmountBMin$ {
255
- /** @deprecated use `AerodromeAddLiquidityParamsAmountBMin$inboundSchema` instead. */
256
- export const inboundSchema =
257
- AerodromeAddLiquidityParamsAmountBMin$inboundSchema;
258
- /** @deprecated use `AerodromeAddLiquidityParamsAmountBMin$outboundSchema` instead. */
259
- export const outboundSchema =
260
- AerodromeAddLiquidityParamsAmountBMin$outboundSchema;
261
- /** @deprecated use `AerodromeAddLiquidityParamsAmountBMin$Outbound` instead. */
262
- export type Outbound = AerodromeAddLiquidityParamsAmountBMin$Outbound;
263
- }
264
-
265
- export function aerodromeAddLiquidityParamsAmountBMinToJSON(
266
- aerodromeAddLiquidityParamsAmountBMin: AerodromeAddLiquidityParamsAmountBMin,
267
- ): string {
268
- return JSON.stringify(
269
- AerodromeAddLiquidityParamsAmountBMin$outboundSchema.parse(
270
- aerodromeAddLiquidityParamsAmountBMin,
271
- ),
272
- );
273
- }
274
-
275
- export function aerodromeAddLiquidityParamsAmountBMinFromJSON(
276
- jsonString: string,
277
- ): SafeParseResult<AerodromeAddLiquidityParamsAmountBMin, SDKValidationError> {
278
- return safeParse(
279
- jsonString,
280
- (x) =>
281
- AerodromeAddLiquidityParamsAmountBMin$inboundSchema.parse(JSON.parse(x)),
282
- `Failed to parse 'AerodromeAddLiquidityParamsAmountBMin' from JSON`,
283
- );
284
- }
285
-
286
- /** @internal */
287
- export const AerodromeAddLiquidityParams$inboundSchema: z.ZodType<
288
- AerodromeAddLiquidityParams,
289
- z.ZodTypeDef,
290
- unknown
291
- > = z.object({
292
- token_a: TokenEnum$inboundSchema,
293
- token_b: TokenEnum$inboundSchema,
294
- stable: z.boolean(),
295
- amount_a_desired: z.union([z.number(), z.string()]),
296
- amount_b_desired: z.union([z.number(), z.string()]),
297
- amount_a_min: z.union([z.number(), z.string()]),
298
- amount_b_min: z.union([z.number(), z.string()]),
299
- to: z.nullable(z.string()).optional(),
300
- deadline: z.nullable(z.number().int()),
301
- }).transform((v) => {
302
- return remap$(v, {
303
- "token_a": "tokenA",
304
- "token_b": "tokenB",
305
- "amount_a_desired": "amountADesired",
306
- "amount_b_desired": "amountBDesired",
307
- "amount_a_min": "amountAMin",
308
- "amount_b_min": "amountBMin",
309
- });
310
- });
311
-
312
- /** @internal */
313
- export type AerodromeAddLiquidityParams$Outbound = {
314
- token_a: string;
315
- token_b: string;
316
- stable: boolean;
317
- amount_a_desired: number | string;
318
- amount_b_desired: number | string;
319
- amount_a_min: number | string;
320
- amount_b_min: number | string;
321
- to?: string | null | undefined;
322
- deadline: number | null;
323
- };
324
-
325
- /** @internal */
326
- export const AerodromeAddLiquidityParams$outboundSchema: z.ZodType<
327
- AerodromeAddLiquidityParams$Outbound,
328
- z.ZodTypeDef,
329
- AerodromeAddLiquidityParams
330
- > = z.object({
331
- tokenA: TokenEnum$outboundSchema,
332
- tokenB: TokenEnum$outboundSchema,
333
- stable: z.boolean(),
334
- amountADesired: z.union([z.number(), z.string()]),
335
- amountBDesired: z.union([z.number(), z.string()]),
336
- amountAMin: z.union([z.number(), z.string()]),
337
- amountBMin: z.union([z.number(), z.string()]),
338
- to: z.nullable(z.string()).optional(),
339
- deadline: z.nullable(z.number().int()),
340
- }).transform((v) => {
341
- return remap$(v, {
342
- tokenA: "token_a",
343
- tokenB: "token_b",
344
- amountADesired: "amount_a_desired",
345
- amountBDesired: "amount_b_desired",
346
- amountAMin: "amount_a_min",
347
- amountBMin: "amount_b_min",
348
- });
349
- });
350
-
351
- /**
352
- * @internal
353
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
354
- */
355
- export namespace AerodromeAddLiquidityParams$ {
356
- /** @deprecated use `AerodromeAddLiquidityParams$inboundSchema` instead. */
357
- export const inboundSchema = AerodromeAddLiquidityParams$inboundSchema;
358
- /** @deprecated use `AerodromeAddLiquidityParams$outboundSchema` instead. */
359
- export const outboundSchema = AerodromeAddLiquidityParams$outboundSchema;
360
- /** @deprecated use `AerodromeAddLiquidityParams$Outbound` instead. */
361
- export type Outbound = AerodromeAddLiquidityParams$Outbound;
362
- }
363
-
364
- export function aerodromeAddLiquidityParamsToJSON(
365
- aerodromeAddLiquidityParams: AerodromeAddLiquidityParams,
366
- ): string {
367
- return JSON.stringify(
368
- AerodromeAddLiquidityParams$outboundSchema.parse(
369
- aerodromeAddLiquidityParams,
370
- ),
371
- );
372
- }
373
-
374
- export function aerodromeAddLiquidityParamsFromJSON(
375
- jsonString: string,
376
- ): SafeParseResult<AerodromeAddLiquidityParams, SDKValidationError> {
377
- return safeParse(
378
- jsonString,
379
- (x) => AerodromeAddLiquidityParams$inboundSchema.parse(JSON.parse(x)),
380
- `Failed to parse 'AerodromeAddLiquidityParams' from JSON`,
381
- );
382
- }