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