@compass-labs/api-sdk 0.5.14 → 0.5.16
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 +145 -97
- package/bin/mcp-server.js.map +18 -18
- 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/pendleaddliquidityparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityparams.js +4 -0
- package/dist/commonjs/models/components/pendleaddliquidityparams.js.map +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityrequest.js +4 -0
- package/dist/commonjs/models/components/pendleaddliquidityrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendlebuyptparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendlebuyptparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlebuyptparams.js +4 -0
- package/dist/commonjs/models/components/pendlebuyptparams.js.map +1 -1
- package/dist/commonjs/models/components/pendlebuyptrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendlebuyptrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlebuyptrequest.js +4 -0
- package/dist/commonjs/models/components/pendlebuyptrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendlebuyytparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendlebuyytparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlebuyytparams.js +4 -0
- package/dist/commonjs/models/components/pendlebuyytparams.js.map +1 -1
- package/dist/commonjs/models/components/pendlebuyytrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendlebuyytrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlebuyytrequest.js +4 -0
- package/dist/commonjs/models/components/pendlebuyytrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityparams.js +4 -0
- package/dist/commonjs/models/components/pendleremoveliquidityparams.js.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.js +4 -0
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellptparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendlesellptparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellptparams.js +4 -0
- package/dist/commonjs/models/components/pendlesellptparams.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellptrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendlesellptrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellptrequest.js +4 -0
- package/dist/commonjs/models/components/pendlesellptrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellytparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendlesellytparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellytparams.js +4 -0
- package/dist/commonjs/models/components/pendlesellytparams.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellytrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendlesellytrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellytrequest.js +4 -0
- package/dist/commonjs/models/components/pendlesellytrequest.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +48 -48
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +56 -56
- package/dist/commonjs/models/components/useroperation.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/pendleaddliquidityparams.d.ts +5 -0
- package/dist/esm/models/components/pendleaddliquidityparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendleaddliquidityparams.js +4 -0
- package/dist/esm/models/components/pendleaddliquidityparams.js.map +1 -1
- package/dist/esm/models/components/pendleaddliquidityrequest.d.ts +5 -0
- package/dist/esm/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendleaddliquidityrequest.js +4 -0
- package/dist/esm/models/components/pendleaddliquidityrequest.js.map +1 -1
- package/dist/esm/models/components/pendlebuyptparams.d.ts +5 -0
- package/dist/esm/models/components/pendlebuyptparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendlebuyptparams.js +4 -0
- package/dist/esm/models/components/pendlebuyptparams.js.map +1 -1
- package/dist/esm/models/components/pendlebuyptrequest.d.ts +5 -0
- package/dist/esm/models/components/pendlebuyptrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendlebuyptrequest.js +4 -0
- package/dist/esm/models/components/pendlebuyptrequest.js.map +1 -1
- package/dist/esm/models/components/pendlebuyytparams.d.ts +5 -0
- package/dist/esm/models/components/pendlebuyytparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendlebuyytparams.js +4 -0
- package/dist/esm/models/components/pendlebuyytparams.js.map +1 -1
- package/dist/esm/models/components/pendlebuyytrequest.d.ts +5 -0
- package/dist/esm/models/components/pendlebuyytrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendlebuyytrequest.js +4 -0
- package/dist/esm/models/components/pendlebuyytrequest.js.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityparams.d.ts +5 -0
- package/dist/esm/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityparams.js +4 -0
- package/dist/esm/models/components/pendleremoveliquidityparams.js.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts +5 -0
- package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityrequest.js +4 -0
- package/dist/esm/models/components/pendleremoveliquidityrequest.js.map +1 -1
- package/dist/esm/models/components/pendlesellptparams.d.ts +5 -0
- package/dist/esm/models/components/pendlesellptparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellptparams.js +4 -0
- package/dist/esm/models/components/pendlesellptparams.js.map +1 -1
- package/dist/esm/models/components/pendlesellptrequest.d.ts +5 -0
- package/dist/esm/models/components/pendlesellptrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellptrequest.js +4 -0
- package/dist/esm/models/components/pendlesellptrequest.js.map +1 -1
- package/dist/esm/models/components/pendlesellytparams.d.ts +5 -0
- package/dist/esm/models/components/pendlesellytparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellytparams.js +4 -0
- package/dist/esm/models/components/pendlesellytparams.js.map +1 -1
- package/dist/esm/models/components/pendlesellytrequest.d.ts +5 -0
- package/dist/esm/models/components/pendlesellytrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellytrequest.js +4 -0
- package/dist/esm/models/components/pendlesellytrequest.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +48 -48
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +56 -56
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/docs/sdks/pendle/README.md +12 -0
- 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/pendleaddliquidityparams.ts +9 -0
- package/src/models/components/pendleaddliquidityrequest.ts +9 -0
- package/src/models/components/pendlebuyptparams.ts +9 -0
- package/src/models/components/pendlebuyptrequest.ts +9 -0
- package/src/models/components/pendlebuyytparams.ts +9 -0
- package/src/models/components/pendlebuyytrequest.ts +9 -0
- package/src/models/components/pendleremoveliquidityparams.ts +9 -0
- package/src/models/components/pendleremoveliquidityrequest.ts +9 -0
- package/src/models/components/pendlesellptparams.ts +9 -0
- package/src/models/components/pendlesellptrequest.ts +9 -0
- package/src/models/components/pendlesellytparams.ts +9 -0
- package/src/models/components/pendlesellytrequest.ts +9 -0
- package/src/models/components/useroperation.ts +152 -152
|
@@ -24,6 +24,10 @@ export type PendleSellYtRequest = {
|
|
|
24
24
|
* The amount of market's Yield Token (YT) you would like to sell for market's Underlying Token.
|
|
25
25
|
*/
|
|
26
26
|
amount: number | string;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
29
|
+
*/
|
|
30
|
+
maxSlippagePercent: number;
|
|
27
31
|
/**
|
|
28
32
|
* The chain to use.
|
|
29
33
|
*/
|
|
@@ -91,12 +95,14 @@ export const PendleSellYtRequest$inboundSchema: z.ZodType<
|
|
|
91
95
|
action_type: z.literal("PENDLE_SELL_YT").default("PENDLE_SELL_YT"),
|
|
92
96
|
market_address: z.string(),
|
|
93
97
|
amount: z.union([z.number(), z.string()]),
|
|
98
|
+
max_slippage_percent: z.number(),
|
|
94
99
|
chain: Chain$inboundSchema,
|
|
95
100
|
sender: z.string(),
|
|
96
101
|
}).transform((v) => {
|
|
97
102
|
return remap$(v, {
|
|
98
103
|
"action_type": "actionType",
|
|
99
104
|
"market_address": "marketAddress",
|
|
105
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
100
106
|
});
|
|
101
107
|
});
|
|
102
108
|
|
|
@@ -105,6 +111,7 @@ export type PendleSellYtRequest$Outbound = {
|
|
|
105
111
|
action_type: "PENDLE_SELL_YT";
|
|
106
112
|
market_address: string;
|
|
107
113
|
amount: number | string;
|
|
114
|
+
max_slippage_percent: number;
|
|
108
115
|
chain: string;
|
|
109
116
|
sender: string;
|
|
110
117
|
};
|
|
@@ -118,12 +125,14 @@ export const PendleSellYtRequest$outboundSchema: z.ZodType<
|
|
|
118
125
|
actionType: z.literal("PENDLE_SELL_YT").default("PENDLE_SELL_YT" as const),
|
|
119
126
|
marketAddress: z.string(),
|
|
120
127
|
amount: z.union([z.number(), z.string()]),
|
|
128
|
+
maxSlippagePercent: z.number(),
|
|
121
129
|
chain: Chain$outboundSchema,
|
|
122
130
|
sender: z.string(),
|
|
123
131
|
}).transform((v) => {
|
|
124
132
|
return remap$(v, {
|
|
125
133
|
actionType: "action_type",
|
|
126
134
|
marketAddress: "market_address",
|
|
135
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -233,12 +233,6 @@ export type Body =
|
|
|
233
233
|
| (MorphoSetVaultAllowanceParams & {
|
|
234
234
|
actionType: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
235
235
|
})
|
|
236
|
-
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
237
|
-
| (PendleBuyPtParams & { actionType: "PENDLE_BUY_PT" })
|
|
238
|
-
| (PendleBuyYtParams & { actionType: "PENDLE_BUY_YT" })
|
|
239
|
-
| (PendleRemoveLiquidityParams & { actionType: "PENDLE_REMOVE_LIQUIDITY" })
|
|
240
|
-
| (PendleSellPtParams & { actionType: "PENDLE_SELL_PT" })
|
|
241
|
-
| (PendleSellYtParams & { actionType: "PENDLE_SELL_YT" })
|
|
242
236
|
| (SkyBuyParams & { actionType: "SKY_BUY" })
|
|
243
237
|
| (SkyDepositParams & { actionType: "SKY_DEPOSIT" })
|
|
244
238
|
| (SkySellParams & { actionType: "SKY_SELL" })
|
|
@@ -251,6 +245,12 @@ export type Body =
|
|
|
251
245
|
| (IncreaseAllowanceParams & { actionType: "ALLOWANCE_INCREASE" })
|
|
252
246
|
| (MorphoDepositParams & { actionType: "MORPHO_DEPOSIT" })
|
|
253
247
|
| (MorphoWithdrawParams & { actionType: "MORPHO_WITHDRAW" })
|
|
248
|
+
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
249
|
+
| (PendleBuyPtParams & { actionType: "PENDLE_BUY_PT" })
|
|
250
|
+
| (PendleBuyYtParams & { actionType: "PENDLE_BUY_YT" })
|
|
251
|
+
| (PendleRemoveLiquidityParams & { actionType: "PENDLE_REMOVE_LIQUIDITY" })
|
|
252
|
+
| (PendleSellPtParams & { actionType: "PENDLE_SELL_PT" })
|
|
253
|
+
| (PendleSellYtParams & { actionType: "PENDLE_SELL_YT" })
|
|
254
254
|
| (TokenTransferErc20Params & { actionType: "TOKEN_TRANSFER_ERC20" })
|
|
255
255
|
| (AaveBorrowParams & { actionType: "AAVE_BORROW" })
|
|
256
256
|
| (AaveRepayParams & { actionType: "AAVE_REPAY" })
|
|
@@ -292,12 +292,6 @@ export type UserOperation = {
|
|
|
292
292
|
| (MorphoSetVaultAllowanceParams & {
|
|
293
293
|
actionType: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
294
294
|
})
|
|
295
|
-
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
296
|
-
| (PendleBuyPtParams & { actionType: "PENDLE_BUY_PT" })
|
|
297
|
-
| (PendleBuyYtParams & { actionType: "PENDLE_BUY_YT" })
|
|
298
|
-
| (PendleRemoveLiquidityParams & { actionType: "PENDLE_REMOVE_LIQUIDITY" })
|
|
299
|
-
| (PendleSellPtParams & { actionType: "PENDLE_SELL_PT" })
|
|
300
|
-
| (PendleSellYtParams & { actionType: "PENDLE_SELL_YT" })
|
|
301
295
|
| (SkyBuyParams & { actionType: "SKY_BUY" })
|
|
302
296
|
| (SkyDepositParams & { actionType: "SKY_DEPOSIT" })
|
|
303
297
|
| (SkySellParams & { actionType: "SKY_SELL" })
|
|
@@ -310,6 +304,12 @@ export type UserOperation = {
|
|
|
310
304
|
| (IncreaseAllowanceParams & { actionType: "ALLOWANCE_INCREASE" })
|
|
311
305
|
| (MorphoDepositParams & { actionType: "MORPHO_DEPOSIT" })
|
|
312
306
|
| (MorphoWithdrawParams & { actionType: "MORPHO_WITHDRAW" })
|
|
307
|
+
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
308
|
+
| (PendleBuyPtParams & { actionType: "PENDLE_BUY_PT" })
|
|
309
|
+
| (PendleBuyYtParams & { actionType: "PENDLE_BUY_YT" })
|
|
310
|
+
| (PendleRemoveLiquidityParams & { actionType: "PENDLE_REMOVE_LIQUIDITY" })
|
|
311
|
+
| (PendleSellPtParams & { actionType: "PENDLE_SELL_PT" })
|
|
312
|
+
| (PendleSellYtParams & { actionType: "PENDLE_SELL_YT" })
|
|
313
313
|
| (TokenTransferErc20Params & { actionType: "TOKEN_TRANSFER_ERC20" })
|
|
314
314
|
| (AaveBorrowParams & { actionType: "AAVE_BORROW" })
|
|
315
315
|
| (AaveRepayParams & { actionType: "AAVE_REPAY" })
|
|
@@ -372,36 +372,6 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
372
372
|
z.object({ action_type: z.literal("MORPHO_SET_VAULT_ALLOWANCE") })
|
|
373
373
|
.transform((v) => ({ actionType: v.action_type })),
|
|
374
374
|
),
|
|
375
|
-
PendleAddLiquidityParams$inboundSchema.and(
|
|
376
|
-
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
377
|
-
v,
|
|
378
|
-
) => ({ actionType: v.action_type })),
|
|
379
|
-
),
|
|
380
|
-
PendleBuyPtParams$inboundSchema.and(
|
|
381
|
-
z.object({ action_type: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
382
|
-
actionType: v.action_type,
|
|
383
|
-
})),
|
|
384
|
-
),
|
|
385
|
-
PendleBuyYtParams$inboundSchema.and(
|
|
386
|
-
z.object({ action_type: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
387
|
-
actionType: v.action_type,
|
|
388
|
-
})),
|
|
389
|
-
),
|
|
390
|
-
PendleRemoveLiquidityParams$inboundSchema.and(
|
|
391
|
-
z.object({ action_type: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform(
|
|
392
|
-
(v) => ({ actionType: v.action_type })
|
|
393
|
-
),
|
|
394
|
-
),
|
|
395
|
-
PendleSellPtParams$inboundSchema.and(
|
|
396
|
-
z.object({ action_type: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
397
|
-
actionType: v.action_type,
|
|
398
|
-
})),
|
|
399
|
-
),
|
|
400
|
-
PendleSellYtParams$inboundSchema.and(
|
|
401
|
-
z.object({ action_type: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
402
|
-
actionType: v.action_type,
|
|
403
|
-
})),
|
|
404
|
-
),
|
|
405
375
|
SkyBuyParams$inboundSchema.and(
|
|
406
376
|
z.object({ action_type: z.literal("SKY_BUY") }).transform((v) => ({
|
|
407
377
|
actionType: v.action_type,
|
|
@@ -452,6 +422,36 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
452
422
|
v,
|
|
453
423
|
) => ({ actionType: v.action_type })),
|
|
454
424
|
),
|
|
425
|
+
PendleAddLiquidityParams$inboundSchema.and(
|
|
426
|
+
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
427
|
+
v,
|
|
428
|
+
) => ({ actionType: v.action_type })),
|
|
429
|
+
),
|
|
430
|
+
PendleBuyPtParams$inboundSchema.and(
|
|
431
|
+
z.object({ action_type: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
432
|
+
actionType: v.action_type,
|
|
433
|
+
})),
|
|
434
|
+
),
|
|
435
|
+
PendleBuyYtParams$inboundSchema.and(
|
|
436
|
+
z.object({ action_type: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
437
|
+
actionType: v.action_type,
|
|
438
|
+
})),
|
|
439
|
+
),
|
|
440
|
+
PendleRemoveLiquidityParams$inboundSchema.and(
|
|
441
|
+
z.object({ action_type: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform(
|
|
442
|
+
(v) => ({ actionType: v.action_type })
|
|
443
|
+
),
|
|
444
|
+
),
|
|
445
|
+
PendleSellPtParams$inboundSchema.and(
|
|
446
|
+
z.object({ action_type: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
447
|
+
actionType: v.action_type,
|
|
448
|
+
})),
|
|
449
|
+
),
|
|
450
|
+
PendleSellYtParams$inboundSchema.and(
|
|
451
|
+
z.object({ action_type: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
452
|
+
actionType: v.action_type,
|
|
453
|
+
})),
|
|
454
|
+
),
|
|
455
455
|
TokenTransferErc20Params$inboundSchema.and(
|
|
456
456
|
z.object({ action_type: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
457
457
|
v,
|
|
@@ -537,16 +537,6 @@ export type Body$Outbound =
|
|
|
537
537
|
| (MorphoSetVaultAllowanceParams$Outbound & {
|
|
538
538
|
action_type: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
539
539
|
})
|
|
540
|
-
| (PendleAddLiquidityParams$Outbound & {
|
|
541
|
-
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
542
|
-
})
|
|
543
|
-
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
544
|
-
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
545
|
-
| (PendleRemoveLiquidityParams$Outbound & {
|
|
546
|
-
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
547
|
-
})
|
|
548
|
-
| (PendleSellPtParams$Outbound & { action_type: "PENDLE_SELL_PT" })
|
|
549
|
-
| (PendleSellYtParams$Outbound & { action_type: "PENDLE_SELL_YT" })
|
|
550
540
|
| (SkyBuyParams$Outbound & { action_type: "SKY_BUY" })
|
|
551
541
|
| (SkyDepositParams$Outbound & { action_type: "SKY_DEPOSIT" })
|
|
552
542
|
| (SkySellParams$Outbound & { action_type: "SKY_SELL" })
|
|
@@ -559,6 +549,16 @@ export type Body$Outbound =
|
|
|
559
549
|
| (IncreaseAllowanceParams$Outbound & { action_type: "ALLOWANCE_INCREASE" })
|
|
560
550
|
| (MorphoDepositParams$Outbound & { action_type: "MORPHO_DEPOSIT" })
|
|
561
551
|
| (MorphoWithdrawParams$Outbound & { action_type: "MORPHO_WITHDRAW" })
|
|
552
|
+
| (PendleAddLiquidityParams$Outbound & {
|
|
553
|
+
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
554
|
+
})
|
|
555
|
+
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
556
|
+
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
557
|
+
| (PendleRemoveLiquidityParams$Outbound & {
|
|
558
|
+
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
559
|
+
})
|
|
560
|
+
| (PendleSellPtParams$Outbound & { action_type: "PENDLE_SELL_PT" })
|
|
561
|
+
| (PendleSellYtParams$Outbound & { action_type: "PENDLE_SELL_YT" })
|
|
562
562
|
| (TokenTransferErc20Params$Outbound & {
|
|
563
563
|
action_type: "TOKEN_TRANSFER_ERC20";
|
|
564
564
|
})
|
|
@@ -624,36 +624,6 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
624
624
|
z.object({ actionType: z.literal("MORPHO_SET_VAULT_ALLOWANCE") })
|
|
625
625
|
.transform((v) => ({ action_type: v.actionType })),
|
|
626
626
|
),
|
|
627
|
-
PendleAddLiquidityParams$outboundSchema.and(
|
|
628
|
-
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
629
|
-
v,
|
|
630
|
-
) => ({ action_type: v.actionType })),
|
|
631
|
-
),
|
|
632
|
-
PendleBuyPtParams$outboundSchema.and(
|
|
633
|
-
z.object({ actionType: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
634
|
-
action_type: v.actionType,
|
|
635
|
-
})),
|
|
636
|
-
),
|
|
637
|
-
PendleBuyYtParams$outboundSchema.and(
|
|
638
|
-
z.object({ actionType: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
639
|
-
action_type: v.actionType,
|
|
640
|
-
})),
|
|
641
|
-
),
|
|
642
|
-
PendleRemoveLiquidityParams$outboundSchema.and(
|
|
643
|
-
z.object({ actionType: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform((
|
|
644
|
-
v,
|
|
645
|
-
) => ({ action_type: v.actionType })),
|
|
646
|
-
),
|
|
647
|
-
PendleSellPtParams$outboundSchema.and(
|
|
648
|
-
z.object({ actionType: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
649
|
-
action_type: v.actionType,
|
|
650
|
-
})),
|
|
651
|
-
),
|
|
652
|
-
PendleSellYtParams$outboundSchema.and(
|
|
653
|
-
z.object({ actionType: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
654
|
-
action_type: v.actionType,
|
|
655
|
-
})),
|
|
656
|
-
),
|
|
657
627
|
SkyBuyParams$outboundSchema.and(
|
|
658
628
|
z.object({ actionType: z.literal("SKY_BUY") }).transform((v) => ({
|
|
659
629
|
action_type: v.actionType,
|
|
@@ -704,6 +674,36 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
704
674
|
action_type: v.actionType,
|
|
705
675
|
})),
|
|
706
676
|
),
|
|
677
|
+
PendleAddLiquidityParams$outboundSchema.and(
|
|
678
|
+
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
679
|
+
v,
|
|
680
|
+
) => ({ action_type: v.actionType })),
|
|
681
|
+
),
|
|
682
|
+
PendleBuyPtParams$outboundSchema.and(
|
|
683
|
+
z.object({ actionType: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
684
|
+
action_type: v.actionType,
|
|
685
|
+
})),
|
|
686
|
+
),
|
|
687
|
+
PendleBuyYtParams$outboundSchema.and(
|
|
688
|
+
z.object({ actionType: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
689
|
+
action_type: v.actionType,
|
|
690
|
+
})),
|
|
691
|
+
),
|
|
692
|
+
PendleRemoveLiquidityParams$outboundSchema.and(
|
|
693
|
+
z.object({ actionType: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform((
|
|
694
|
+
v,
|
|
695
|
+
) => ({ action_type: v.actionType })),
|
|
696
|
+
),
|
|
697
|
+
PendleSellPtParams$outboundSchema.and(
|
|
698
|
+
z.object({ actionType: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
699
|
+
action_type: v.actionType,
|
|
700
|
+
})),
|
|
701
|
+
),
|
|
702
|
+
PendleSellYtParams$outboundSchema.and(
|
|
703
|
+
z.object({ actionType: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
704
|
+
action_type: v.actionType,
|
|
705
|
+
})),
|
|
706
|
+
),
|
|
707
707
|
TokenTransferErc20Params$outboundSchema.and(
|
|
708
708
|
z.object({ actionType: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
709
709
|
v,
|
|
@@ -839,36 +839,6 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
839
839
|
z.object({ action_type: z.literal("MORPHO_SET_VAULT_ALLOWANCE") })
|
|
840
840
|
.transform((v) => ({ actionType: v.action_type })),
|
|
841
841
|
),
|
|
842
|
-
PendleAddLiquidityParams$inboundSchema.and(
|
|
843
|
-
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
844
|
-
v,
|
|
845
|
-
) => ({ actionType: v.action_type })),
|
|
846
|
-
),
|
|
847
|
-
PendleBuyPtParams$inboundSchema.and(
|
|
848
|
-
z.object({ action_type: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
849
|
-
actionType: v.action_type,
|
|
850
|
-
})),
|
|
851
|
-
),
|
|
852
|
-
PendleBuyYtParams$inboundSchema.and(
|
|
853
|
-
z.object({ action_type: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
854
|
-
actionType: v.action_type,
|
|
855
|
-
})),
|
|
856
|
-
),
|
|
857
|
-
PendleRemoveLiquidityParams$inboundSchema.and(
|
|
858
|
-
z.object({ action_type: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform(
|
|
859
|
-
(v) => ({ actionType: v.action_type })
|
|
860
|
-
),
|
|
861
|
-
),
|
|
862
|
-
PendleSellPtParams$inboundSchema.and(
|
|
863
|
-
z.object({ action_type: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
864
|
-
actionType: v.action_type,
|
|
865
|
-
})),
|
|
866
|
-
),
|
|
867
|
-
PendleSellYtParams$inboundSchema.and(
|
|
868
|
-
z.object({ action_type: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
869
|
-
actionType: v.action_type,
|
|
870
|
-
})),
|
|
871
|
-
),
|
|
872
842
|
SkyBuyParams$inboundSchema.and(
|
|
873
843
|
z.object({ action_type: z.literal("SKY_BUY") }).transform((v) => ({
|
|
874
844
|
actionType: v.action_type,
|
|
@@ -919,6 +889,36 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
919
889
|
v,
|
|
920
890
|
) => ({ actionType: v.action_type })),
|
|
921
891
|
),
|
|
892
|
+
PendleAddLiquidityParams$inboundSchema.and(
|
|
893
|
+
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
894
|
+
v,
|
|
895
|
+
) => ({ actionType: v.action_type })),
|
|
896
|
+
),
|
|
897
|
+
PendleBuyPtParams$inboundSchema.and(
|
|
898
|
+
z.object({ action_type: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
899
|
+
actionType: v.action_type,
|
|
900
|
+
})),
|
|
901
|
+
),
|
|
902
|
+
PendleBuyYtParams$inboundSchema.and(
|
|
903
|
+
z.object({ action_type: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
904
|
+
actionType: v.action_type,
|
|
905
|
+
})),
|
|
906
|
+
),
|
|
907
|
+
PendleRemoveLiquidityParams$inboundSchema.and(
|
|
908
|
+
z.object({ action_type: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform(
|
|
909
|
+
(v) => ({ actionType: v.action_type })
|
|
910
|
+
),
|
|
911
|
+
),
|
|
912
|
+
PendleSellPtParams$inboundSchema.and(
|
|
913
|
+
z.object({ action_type: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
914
|
+
actionType: v.action_type,
|
|
915
|
+
})),
|
|
916
|
+
),
|
|
917
|
+
PendleSellYtParams$inboundSchema.and(
|
|
918
|
+
z.object({ action_type: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
919
|
+
actionType: v.action_type,
|
|
920
|
+
})),
|
|
921
|
+
),
|
|
922
922
|
TokenTransferErc20Params$inboundSchema.and(
|
|
923
923
|
z.object({ action_type: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
924
924
|
v,
|
|
@@ -1008,16 +1008,6 @@ export type UserOperation$Outbound = {
|
|
|
1008
1008
|
| (MorphoSetVaultAllowanceParams$Outbound & {
|
|
1009
1009
|
action_type: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
1010
1010
|
})
|
|
1011
|
-
| (PendleAddLiquidityParams$Outbound & {
|
|
1012
|
-
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
1013
|
-
})
|
|
1014
|
-
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
1015
|
-
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
1016
|
-
| (PendleRemoveLiquidityParams$Outbound & {
|
|
1017
|
-
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
1018
|
-
})
|
|
1019
|
-
| (PendleSellPtParams$Outbound & { action_type: "PENDLE_SELL_PT" })
|
|
1020
|
-
| (PendleSellYtParams$Outbound & { action_type: "PENDLE_SELL_YT" })
|
|
1021
1011
|
| (SkyBuyParams$Outbound & { action_type: "SKY_BUY" })
|
|
1022
1012
|
| (SkyDepositParams$Outbound & { action_type: "SKY_DEPOSIT" })
|
|
1023
1013
|
| (SkySellParams$Outbound & { action_type: "SKY_SELL" })
|
|
@@ -1030,6 +1020,16 @@ export type UserOperation$Outbound = {
|
|
|
1030
1020
|
| (IncreaseAllowanceParams$Outbound & { action_type: "ALLOWANCE_INCREASE" })
|
|
1031
1021
|
| (MorphoDepositParams$Outbound & { action_type: "MORPHO_DEPOSIT" })
|
|
1032
1022
|
| (MorphoWithdrawParams$Outbound & { action_type: "MORPHO_WITHDRAW" })
|
|
1023
|
+
| (PendleAddLiquidityParams$Outbound & {
|
|
1024
|
+
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
1025
|
+
})
|
|
1026
|
+
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
1027
|
+
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
1028
|
+
| (PendleRemoveLiquidityParams$Outbound & {
|
|
1029
|
+
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
1030
|
+
})
|
|
1031
|
+
| (PendleSellPtParams$Outbound & { action_type: "PENDLE_SELL_PT" })
|
|
1032
|
+
| (PendleSellYtParams$Outbound & { action_type: "PENDLE_SELL_YT" })
|
|
1033
1033
|
| (TokenTransferErc20Params$Outbound & {
|
|
1034
1034
|
action_type: "TOKEN_TRANSFER_ERC20";
|
|
1035
1035
|
})
|
|
@@ -1102,36 +1102,6 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1102
1102
|
z.object({ actionType: z.literal("MORPHO_SET_VAULT_ALLOWANCE") })
|
|
1103
1103
|
.transform((v) => ({ action_type: v.actionType })),
|
|
1104
1104
|
),
|
|
1105
|
-
PendleAddLiquidityParams$outboundSchema.and(
|
|
1106
|
-
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
1107
|
-
v,
|
|
1108
|
-
) => ({ action_type: v.actionType })),
|
|
1109
|
-
),
|
|
1110
|
-
PendleBuyPtParams$outboundSchema.and(
|
|
1111
|
-
z.object({ actionType: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
1112
|
-
action_type: v.actionType,
|
|
1113
|
-
})),
|
|
1114
|
-
),
|
|
1115
|
-
PendleBuyYtParams$outboundSchema.and(
|
|
1116
|
-
z.object({ actionType: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
1117
|
-
action_type: v.actionType,
|
|
1118
|
-
})),
|
|
1119
|
-
),
|
|
1120
|
-
PendleRemoveLiquidityParams$outboundSchema.and(
|
|
1121
|
-
z.object({ actionType: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform((
|
|
1122
|
-
v,
|
|
1123
|
-
) => ({ action_type: v.actionType })),
|
|
1124
|
-
),
|
|
1125
|
-
PendleSellPtParams$outboundSchema.and(
|
|
1126
|
-
z.object({ actionType: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
1127
|
-
action_type: v.actionType,
|
|
1128
|
-
})),
|
|
1129
|
-
),
|
|
1130
|
-
PendleSellYtParams$outboundSchema.and(
|
|
1131
|
-
z.object({ actionType: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
1132
|
-
action_type: v.actionType,
|
|
1133
|
-
})),
|
|
1134
|
-
),
|
|
1135
1105
|
SkyBuyParams$outboundSchema.and(
|
|
1136
1106
|
z.object({ actionType: z.literal("SKY_BUY") }).transform((v) => ({
|
|
1137
1107
|
action_type: v.actionType,
|
|
@@ -1182,6 +1152,36 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1182
1152
|
action_type: v.actionType,
|
|
1183
1153
|
})),
|
|
1184
1154
|
),
|
|
1155
|
+
PendleAddLiquidityParams$outboundSchema.and(
|
|
1156
|
+
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
1157
|
+
v,
|
|
1158
|
+
) => ({ action_type: v.actionType })),
|
|
1159
|
+
),
|
|
1160
|
+
PendleBuyPtParams$outboundSchema.and(
|
|
1161
|
+
z.object({ actionType: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
1162
|
+
action_type: v.actionType,
|
|
1163
|
+
})),
|
|
1164
|
+
),
|
|
1165
|
+
PendleBuyYtParams$outboundSchema.and(
|
|
1166
|
+
z.object({ actionType: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
1167
|
+
action_type: v.actionType,
|
|
1168
|
+
})),
|
|
1169
|
+
),
|
|
1170
|
+
PendleRemoveLiquidityParams$outboundSchema.and(
|
|
1171
|
+
z.object({ actionType: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform((
|
|
1172
|
+
v,
|
|
1173
|
+
) => ({ action_type: v.actionType })),
|
|
1174
|
+
),
|
|
1175
|
+
PendleSellPtParams$outboundSchema.and(
|
|
1176
|
+
z.object({ actionType: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
1177
|
+
action_type: v.actionType,
|
|
1178
|
+
})),
|
|
1179
|
+
),
|
|
1180
|
+
PendleSellYtParams$outboundSchema.and(
|
|
1181
|
+
z.object({ actionType: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
1182
|
+
action_type: v.actionType,
|
|
1183
|
+
})),
|
|
1184
|
+
),
|
|
1185
1185
|
TokenTransferErc20Params$outboundSchema.and(
|
|
1186
1186
|
z.object({ actionType: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
1187
1187
|
v,
|