@compass-labs/api-sdk 0.0.21 → 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.
- package/bin/mcp-server.js +5 -486
- package/bin/mcp-server.js.map +9 -16
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -7
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -7
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/multicallaction.d.ts +4 -11
- package/dist/commonjs/models/components/multicallaction.d.ts.map +1 -1
- package/dist/commonjs/models/components/multicallaction.js +0 -35
- package/dist/commonjs/models/components/multicallaction.js.map +1 -1
- package/dist/commonjs/models/components/multicallactiontype.d.ts +0 -21
- package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -1
- package/dist/commonjs/models/components/multicallactiontype.js +0 -7
- package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/index.d.ts +0 -7
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -7
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/multicallaction.d.ts +4 -11
- package/dist/esm/models/components/multicallaction.d.ts.map +1 -1
- package/dist/esm/models/components/multicallaction.js +0 -35
- package/dist/esm/models/components/multicallaction.js.map +1 -1
- package/dist/esm/models/components/multicallactiontype.d.ts +0 -21
- package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -1
- package/dist/esm/models/components/multicallactiontype.js +0 -7
- package/dist/esm/models/components/multicallactiontype.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/index.ts +0 -7
- package/src/models/components/multicallaction.ts +0 -98
- package/src/models/components/multicallactiontype.ts +0 -7
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts +0 -177
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js +0 -191
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts +0 -186
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.js +0 -197
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts +0 -151
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js +0 -167
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts +0 -161
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js +0 -173
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts +0 -109
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js +0 -137
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts +0 -109
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js +0 -137
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts +0 -128
- package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeswaptokensparams.js +0 -141
- package/dist/commonjs/models/components/aerodromeswaptokensparams.js.map +0 -1
- package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts +0 -177
- package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeaddliquidityethparams.js +0 -145
- package/dist/esm/models/components/aerodromeaddliquidityethparams.js.map +0 -1
- package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts +0 -186
- package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeaddliquidityparams.js +0 -151
- package/dist/esm/models/components/aerodromeaddliquidityparams.js.map +0 -1
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts +0 -151
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js +0 -123
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js.map +0 -1
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts +0 -161
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.js +0 -129
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.js.map +0 -1
- package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts +0 -109
- package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeswapethfortokenparams.js +0 -95
- package/dist/esm/models/components/aerodromeswapethfortokenparams.js.map +0 -1
- package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts +0 -109
- package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeswaptokenforethparams.js +0 -95
- package/dist/esm/models/components/aerodromeswaptokenforethparams.js.map +0 -1
- package/dist/esm/models/components/aerodromeswaptokensparams.d.ts +0 -128
- package/dist/esm/models/components/aerodromeswaptokensparams.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeswaptokensparams.js +0 -99
- package/dist/esm/models/components/aerodromeswaptokensparams.js.map +0 -1
- package/src/models/components/aerodromeaddliquidityethparams.ts +0 -392
- package/src/models/components/aerodromeaddliquidityparams.ts +0 -382
- package/src/models/components/aerodromeremoveliquidityethrequest.ts +0 -357
- package/src/models/components/aerodromeremoveliquidityrequest.ts +0 -363
- package/src/models/components/aerodromeswapethfortokenparams.ts +0 -249
- package/src/models/components/aerodromeswaptokenforethparams.ts +0 -249
- 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
|
-
}
|