@compass-labs/api-sdk 0.5.57 → 0.5.59
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 +210 -106
- package/bin/mcp-server.js.map +16 -16
- package/dist/commonjs/funcs/morphoDeposit.d.ts +1 -1
- package/dist/commonjs/funcs/morphoDeposit.js +1 -1
- 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/mcp-server/tools/morphoDeposit.js +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts +47 -17
- package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityparams.js +48 -18
- package/dist/commonjs/models/components/pendleaddliquidityparams.js.map +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts +47 -17
- package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityrequest.js +48 -18
- package/dist/commonjs/models/components/pendleaddliquidityrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts +47 -17
- package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityparams.js +48 -18
- package/dist/commonjs/models/components/pendleremoveliquidityparams.js.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts +47 -17
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.js +48 -18
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellptparams.d.ts +47 -17
- package/dist/commonjs/models/components/pendlesellptparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellptparams.js +48 -18
- package/dist/commonjs/models/components/pendlesellptparams.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellptrequest.d.ts +47 -17
- package/dist/commonjs/models/components/pendlesellptrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellptrequest.js +48 -18
- package/dist/commonjs/models/components/pendlesellptrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellytparams.d.ts +47 -17
- package/dist/commonjs/models/components/pendlesellytparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellytparams.js +48 -18
- package/dist/commonjs/models/components/pendlesellytparams.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellytrequest.d.ts +47 -17
- package/dist/commonjs/models/components/pendlesellytrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellytrequest.js +48 -18
- package/dist/commonjs/models/components/pendlesellytrequest.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +32 -32
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +28 -28
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/sdk/morpho.d.ts +1 -1
- package/dist/commonjs/sdk/morpho.js +1 -1
- package/dist/esm/funcs/morphoDeposit.d.ts +1 -1
- package/dist/esm/funcs/morphoDeposit.js +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/mcp-server/tools/morphoDeposit.js +1 -1
- package/dist/esm/models/components/pendleaddliquidityparams.d.ts +47 -17
- package/dist/esm/models/components/pendleaddliquidityparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendleaddliquidityparams.js +43 -15
- package/dist/esm/models/components/pendleaddliquidityparams.js.map +1 -1
- package/dist/esm/models/components/pendleaddliquidityrequest.d.ts +47 -17
- package/dist/esm/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendleaddliquidityrequest.js +43 -15
- package/dist/esm/models/components/pendleaddliquidityrequest.js.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityparams.d.ts +47 -17
- package/dist/esm/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityparams.js +43 -15
- package/dist/esm/models/components/pendleremoveliquidityparams.js.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts +47 -17
- package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityrequest.js +43 -15
- package/dist/esm/models/components/pendleremoveliquidityrequest.js.map +1 -1
- package/dist/esm/models/components/pendlesellptparams.d.ts +47 -17
- package/dist/esm/models/components/pendlesellptparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellptparams.js +43 -15
- package/dist/esm/models/components/pendlesellptparams.js.map +1 -1
- package/dist/esm/models/components/pendlesellptrequest.d.ts +47 -17
- package/dist/esm/models/components/pendlesellptrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellptrequest.js +43 -15
- package/dist/esm/models/components/pendlesellptrequest.js.map +1 -1
- package/dist/esm/models/components/pendlesellytparams.d.ts +47 -17
- package/dist/esm/models/components/pendlesellytparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellytparams.js +43 -15
- package/dist/esm/models/components/pendlesellytparams.js.map +1 -1
- package/dist/esm/models/components/pendlesellytrequest.d.ts +47 -17
- package/dist/esm/models/components/pendlesellytrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellytrequest.js +43 -15
- package/dist/esm/models/components/pendlesellytrequest.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +32 -32
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +28 -28
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/sdk/morpho.d.ts +1 -1
- package/dist/esm/sdk/morpho.js +1 -1
- package/docs/sdks/morpho/README.md +1 -1
- package/docs/sdks/pendle/README.md +16 -8
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/morphoDeposit.ts +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/mcp-server/tools/morphoDeposit.ts +1 -1
- package/src/models/components/pendleaddliquidityparams.ts +99 -28
- package/src/models/components/pendleaddliquidityrequest.ts +100 -28
- package/src/models/components/pendleremoveliquidityparams.ts +104 -28
- package/src/models/components/pendleremoveliquidityrequest.ts +103 -28
- package/src/models/components/pendlesellptparams.ts +96 -27
- package/src/models/components/pendlesellptrequest.ts +100 -27
- package/src/models/components/pendlesellytparams.ts +96 -27
- package/src/models/components/pendlesellytrequest.ts +100 -27
- package/src/models/components/useroperation.ts +98 -98
- package/src/sdk/morpho.ts +1 -1
|
@@ -259,15 +259,15 @@ export type Body =
|
|
|
259
259
|
actionType: "AERODROME_SLIPSTREAM_SELL_EXACTLY";
|
|
260
260
|
})
|
|
261
261
|
| (OdosSwapParams & { actionType: "ODOS_SWAP" })
|
|
262
|
+
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
262
263
|
| (PendleBuyPtParams & { actionType: "PENDLE_BUY_PT" })
|
|
263
264
|
| (PendleBuyYtParams & { actionType: "PENDLE_BUY_YT" })
|
|
264
|
-
| (AaveBorrowParams & { actionType: "AAVE_BORROW" })
|
|
265
|
-
| (AaveRepayParams & { actionType: "AAVE_REPAY" })
|
|
266
|
-
| (AaveWithdrawParams & { actionType: "AAVE_WITHDRAW" })
|
|
267
|
-
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
268
265
|
| (PendleRemoveLiquidityParams & { actionType: "PENDLE_REMOVE_LIQUIDITY" })
|
|
269
266
|
| (PendleSellPtParams & { actionType: "PENDLE_SELL_PT" })
|
|
270
267
|
| (PendleSellYtParams & { actionType: "PENDLE_SELL_YT" })
|
|
268
|
+
| (AaveBorrowParams & { actionType: "AAVE_BORROW" })
|
|
269
|
+
| (AaveRepayParams & { actionType: "AAVE_REPAY" })
|
|
270
|
+
| (AaveWithdrawParams & { actionType: "AAVE_WITHDRAW" })
|
|
271
271
|
| (SetAllowanceParams & { actionType: "SET_ALLOWANCE" })
|
|
272
272
|
| (TokenTransferErc20Params & { actionType: "TOKEN_TRANSFER_ERC20" })
|
|
273
273
|
| (AaveSupplyParams & { actionType: "AAVE_SUPPLY" })
|
|
@@ -318,15 +318,15 @@ export type UserOperation = {
|
|
|
318
318
|
actionType: "AERODROME_SLIPSTREAM_SELL_EXACTLY";
|
|
319
319
|
})
|
|
320
320
|
| (OdosSwapParams & { actionType: "ODOS_SWAP" })
|
|
321
|
+
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
321
322
|
| (PendleBuyPtParams & { actionType: "PENDLE_BUY_PT" })
|
|
322
323
|
| (PendleBuyYtParams & { actionType: "PENDLE_BUY_YT" })
|
|
323
|
-
| (AaveBorrowParams & { actionType: "AAVE_BORROW" })
|
|
324
|
-
| (AaveRepayParams & { actionType: "AAVE_REPAY" })
|
|
325
|
-
| (AaveWithdrawParams & { actionType: "AAVE_WITHDRAW" })
|
|
326
|
-
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
327
324
|
| (PendleRemoveLiquidityParams & { actionType: "PENDLE_REMOVE_LIQUIDITY" })
|
|
328
325
|
| (PendleSellPtParams & { actionType: "PENDLE_SELL_PT" })
|
|
329
326
|
| (PendleSellYtParams & { actionType: "PENDLE_SELL_YT" })
|
|
327
|
+
| (AaveBorrowParams & { actionType: "AAVE_BORROW" })
|
|
328
|
+
| (AaveRepayParams & { actionType: "AAVE_REPAY" })
|
|
329
|
+
| (AaveWithdrawParams & { actionType: "AAVE_WITHDRAW" })
|
|
330
330
|
| (SetAllowanceParams & { actionType: "SET_ALLOWANCE" })
|
|
331
331
|
| (TokenTransferErc20Params & { actionType: "TOKEN_TRANSFER_ERC20" })
|
|
332
332
|
| (AaveSupplyParams & { actionType: "AAVE_SUPPLY" })
|
|
@@ -412,6 +412,11 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
412
412
|
actionType: v.action_type,
|
|
413
413
|
})),
|
|
414
414
|
),
|
|
415
|
+
PendleAddLiquidityParams$inboundSchema.and(
|
|
416
|
+
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
417
|
+
v,
|
|
418
|
+
) => ({ actionType: v.action_type })),
|
|
419
|
+
),
|
|
415
420
|
PendleBuyPtParams$inboundSchema.and(
|
|
416
421
|
z.object({ action_type: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
417
422
|
actionType: v.action_type,
|
|
@@ -422,26 +427,6 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
422
427
|
actionType: v.action_type,
|
|
423
428
|
})),
|
|
424
429
|
),
|
|
425
|
-
AaveBorrowParams$inboundSchema.and(
|
|
426
|
-
z.object({ action_type: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
427
|
-
actionType: v.action_type,
|
|
428
|
-
})),
|
|
429
|
-
),
|
|
430
|
-
AaveRepayParams$inboundSchema.and(
|
|
431
|
-
z.object({ action_type: z.literal("AAVE_REPAY") }).transform((v) => ({
|
|
432
|
-
actionType: v.action_type,
|
|
433
|
-
})),
|
|
434
|
-
),
|
|
435
|
-
AaveWithdrawParams$inboundSchema.and(
|
|
436
|
-
z.object({ action_type: z.literal("AAVE_WITHDRAW") }).transform((v) => ({
|
|
437
|
-
actionType: v.action_type,
|
|
438
|
-
})),
|
|
439
|
-
),
|
|
440
|
-
PendleAddLiquidityParams$inboundSchema.and(
|
|
441
|
-
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
442
|
-
v,
|
|
443
|
-
) => ({ actionType: v.action_type })),
|
|
444
|
-
),
|
|
445
430
|
PendleRemoveLiquidityParams$inboundSchema.and(
|
|
446
431
|
z.object({ action_type: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform(
|
|
447
432
|
(v) => ({ actionType: v.action_type })
|
|
@@ -457,6 +442,21 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
457
442
|
actionType: v.action_type,
|
|
458
443
|
})),
|
|
459
444
|
),
|
|
445
|
+
AaveBorrowParams$inboundSchema.and(
|
|
446
|
+
z.object({ action_type: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
447
|
+
actionType: v.action_type,
|
|
448
|
+
})),
|
|
449
|
+
),
|
|
450
|
+
AaveRepayParams$inboundSchema.and(
|
|
451
|
+
z.object({ action_type: z.literal("AAVE_REPAY") }).transform((v) => ({
|
|
452
|
+
actionType: v.action_type,
|
|
453
|
+
})),
|
|
454
|
+
),
|
|
455
|
+
AaveWithdrawParams$inboundSchema.and(
|
|
456
|
+
z.object({ action_type: z.literal("AAVE_WITHDRAW") }).transform((v) => ({
|
|
457
|
+
actionType: v.action_type,
|
|
458
|
+
})),
|
|
459
|
+
),
|
|
460
460
|
SetAllowanceParams$inboundSchema.and(
|
|
461
461
|
z.object({ action_type: z.literal("SET_ALLOWANCE") }).transform((v) => ({
|
|
462
462
|
actionType: v.action_type,
|
|
@@ -578,19 +578,19 @@ export type Body$Outbound =
|
|
|
578
578
|
action_type: "AERODROME_SLIPSTREAM_SELL_EXACTLY";
|
|
579
579
|
})
|
|
580
580
|
| (OdosSwapParams$Outbound & { action_type: "ODOS_SWAP" })
|
|
581
|
-
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
582
|
-
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
583
|
-
| (AaveBorrowParams$Outbound & { action_type: "AAVE_BORROW" })
|
|
584
|
-
| (AaveRepayParams$Outbound & { action_type: "AAVE_REPAY" })
|
|
585
|
-
| (AaveWithdrawParams$Outbound & { action_type: "AAVE_WITHDRAW" })
|
|
586
581
|
| (PendleAddLiquidityParams$Outbound & {
|
|
587
582
|
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
588
583
|
})
|
|
584
|
+
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
585
|
+
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
589
586
|
| (PendleRemoveLiquidityParams$Outbound & {
|
|
590
587
|
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
591
588
|
})
|
|
592
589
|
| (PendleSellPtParams$Outbound & { action_type: "PENDLE_SELL_PT" })
|
|
593
590
|
| (PendleSellYtParams$Outbound & { action_type: "PENDLE_SELL_YT" })
|
|
591
|
+
| (AaveBorrowParams$Outbound & { action_type: "AAVE_BORROW" })
|
|
592
|
+
| (AaveRepayParams$Outbound & { action_type: "AAVE_REPAY" })
|
|
593
|
+
| (AaveWithdrawParams$Outbound & { action_type: "AAVE_WITHDRAW" })
|
|
594
594
|
| (SetAllowanceParams$Outbound & { action_type: "SET_ALLOWANCE" })
|
|
595
595
|
| (TokenTransferErc20Params$Outbound & {
|
|
596
596
|
action_type: "TOKEN_TRANSFER_ERC20";
|
|
@@ -677,6 +677,11 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
677
677
|
action_type: v.actionType,
|
|
678
678
|
})),
|
|
679
679
|
),
|
|
680
|
+
PendleAddLiquidityParams$outboundSchema.and(
|
|
681
|
+
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
682
|
+
v,
|
|
683
|
+
) => ({ action_type: v.actionType })),
|
|
684
|
+
),
|
|
680
685
|
PendleBuyPtParams$outboundSchema.and(
|
|
681
686
|
z.object({ actionType: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
682
687
|
action_type: v.actionType,
|
|
@@ -687,26 +692,6 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
687
692
|
action_type: v.actionType,
|
|
688
693
|
})),
|
|
689
694
|
),
|
|
690
|
-
AaveBorrowParams$outboundSchema.and(
|
|
691
|
-
z.object({ actionType: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
692
|
-
action_type: v.actionType,
|
|
693
|
-
})),
|
|
694
|
-
),
|
|
695
|
-
AaveRepayParams$outboundSchema.and(
|
|
696
|
-
z.object({ actionType: z.literal("AAVE_REPAY") }).transform((v) => ({
|
|
697
|
-
action_type: v.actionType,
|
|
698
|
-
})),
|
|
699
|
-
),
|
|
700
|
-
AaveWithdrawParams$outboundSchema.and(
|
|
701
|
-
z.object({ actionType: z.literal("AAVE_WITHDRAW") }).transform((v) => ({
|
|
702
|
-
action_type: v.actionType,
|
|
703
|
-
})),
|
|
704
|
-
),
|
|
705
|
-
PendleAddLiquidityParams$outboundSchema.and(
|
|
706
|
-
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
707
|
-
v,
|
|
708
|
-
) => ({ action_type: v.actionType })),
|
|
709
|
-
),
|
|
710
695
|
PendleRemoveLiquidityParams$outboundSchema.and(
|
|
711
696
|
z.object({ actionType: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform((
|
|
712
697
|
v,
|
|
@@ -722,6 +707,21 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
722
707
|
action_type: v.actionType,
|
|
723
708
|
})),
|
|
724
709
|
),
|
|
710
|
+
AaveBorrowParams$outboundSchema.and(
|
|
711
|
+
z.object({ actionType: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
712
|
+
action_type: v.actionType,
|
|
713
|
+
})),
|
|
714
|
+
),
|
|
715
|
+
AaveRepayParams$outboundSchema.and(
|
|
716
|
+
z.object({ actionType: z.literal("AAVE_REPAY") }).transform((v) => ({
|
|
717
|
+
action_type: v.actionType,
|
|
718
|
+
})),
|
|
719
|
+
),
|
|
720
|
+
AaveWithdrawParams$outboundSchema.and(
|
|
721
|
+
z.object({ actionType: z.literal("AAVE_WITHDRAW") }).transform((v) => ({
|
|
722
|
+
action_type: v.actionType,
|
|
723
|
+
})),
|
|
724
|
+
),
|
|
725
725
|
SetAllowanceParams$outboundSchema.and(
|
|
726
726
|
z.object({ actionType: z.literal("SET_ALLOWANCE") }).transform((v) => ({
|
|
727
727
|
action_type: v.actionType,
|
|
@@ -903,6 +903,11 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
903
903
|
actionType: v.action_type,
|
|
904
904
|
})),
|
|
905
905
|
),
|
|
906
|
+
PendleAddLiquidityParams$inboundSchema.and(
|
|
907
|
+
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
908
|
+
v,
|
|
909
|
+
) => ({ actionType: v.action_type })),
|
|
910
|
+
),
|
|
906
911
|
PendleBuyPtParams$inboundSchema.and(
|
|
907
912
|
z.object({ action_type: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
908
913
|
actionType: v.action_type,
|
|
@@ -913,26 +918,6 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
913
918
|
actionType: v.action_type,
|
|
914
919
|
})),
|
|
915
920
|
),
|
|
916
|
-
AaveBorrowParams$inboundSchema.and(
|
|
917
|
-
z.object({ action_type: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
918
|
-
actionType: v.action_type,
|
|
919
|
-
})),
|
|
920
|
-
),
|
|
921
|
-
AaveRepayParams$inboundSchema.and(
|
|
922
|
-
z.object({ action_type: z.literal("AAVE_REPAY") }).transform((v) => ({
|
|
923
|
-
actionType: v.action_type,
|
|
924
|
-
})),
|
|
925
|
-
),
|
|
926
|
-
AaveWithdrawParams$inboundSchema.and(
|
|
927
|
-
z.object({ action_type: z.literal("AAVE_WITHDRAW") }).transform((v) => ({
|
|
928
|
-
actionType: v.action_type,
|
|
929
|
-
})),
|
|
930
|
-
),
|
|
931
|
-
PendleAddLiquidityParams$inboundSchema.and(
|
|
932
|
-
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
933
|
-
v,
|
|
934
|
-
) => ({ actionType: v.action_type })),
|
|
935
|
-
),
|
|
936
921
|
PendleRemoveLiquidityParams$inboundSchema.and(
|
|
937
922
|
z.object({ action_type: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform(
|
|
938
923
|
(v) => ({ actionType: v.action_type })
|
|
@@ -948,6 +933,21 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
948
933
|
actionType: v.action_type,
|
|
949
934
|
})),
|
|
950
935
|
),
|
|
936
|
+
AaveBorrowParams$inboundSchema.and(
|
|
937
|
+
z.object({ action_type: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
938
|
+
actionType: v.action_type,
|
|
939
|
+
})),
|
|
940
|
+
),
|
|
941
|
+
AaveRepayParams$inboundSchema.and(
|
|
942
|
+
z.object({ action_type: z.literal("AAVE_REPAY") }).transform((v) => ({
|
|
943
|
+
actionType: v.action_type,
|
|
944
|
+
})),
|
|
945
|
+
),
|
|
946
|
+
AaveWithdrawParams$inboundSchema.and(
|
|
947
|
+
z.object({ action_type: z.literal("AAVE_WITHDRAW") }).transform((v) => ({
|
|
948
|
+
actionType: v.action_type,
|
|
949
|
+
})),
|
|
950
|
+
),
|
|
951
951
|
SetAllowanceParams$inboundSchema.and(
|
|
952
952
|
z.object({ action_type: z.literal("SET_ALLOWANCE") }).transform((v) => ({
|
|
953
953
|
actionType: v.action_type,
|
|
@@ -1073,19 +1073,19 @@ export type UserOperation$Outbound = {
|
|
|
1073
1073
|
action_type: "AERODROME_SLIPSTREAM_SELL_EXACTLY";
|
|
1074
1074
|
})
|
|
1075
1075
|
| (OdosSwapParams$Outbound & { action_type: "ODOS_SWAP" })
|
|
1076
|
-
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
1077
|
-
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
1078
|
-
| (AaveBorrowParams$Outbound & { action_type: "AAVE_BORROW" })
|
|
1079
|
-
| (AaveRepayParams$Outbound & { action_type: "AAVE_REPAY" })
|
|
1080
|
-
| (AaveWithdrawParams$Outbound & { action_type: "AAVE_WITHDRAW" })
|
|
1081
1076
|
| (PendleAddLiquidityParams$Outbound & {
|
|
1082
1077
|
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
1083
1078
|
})
|
|
1079
|
+
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
1080
|
+
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
1084
1081
|
| (PendleRemoveLiquidityParams$Outbound & {
|
|
1085
1082
|
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
1086
1083
|
})
|
|
1087
1084
|
| (PendleSellPtParams$Outbound & { action_type: "PENDLE_SELL_PT" })
|
|
1088
1085
|
| (PendleSellYtParams$Outbound & { action_type: "PENDLE_SELL_YT" })
|
|
1086
|
+
| (AaveBorrowParams$Outbound & { action_type: "AAVE_BORROW" })
|
|
1087
|
+
| (AaveRepayParams$Outbound & { action_type: "AAVE_REPAY" })
|
|
1088
|
+
| (AaveWithdrawParams$Outbound & { action_type: "AAVE_WITHDRAW" })
|
|
1089
1089
|
| (SetAllowanceParams$Outbound & { action_type: "SET_ALLOWANCE" })
|
|
1090
1090
|
| (TokenTransferErc20Params$Outbound & {
|
|
1091
1091
|
action_type: "TOKEN_TRANSFER_ERC20";
|
|
@@ -1179,6 +1179,11 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1179
1179
|
action_type: v.actionType,
|
|
1180
1180
|
})),
|
|
1181
1181
|
),
|
|
1182
|
+
PendleAddLiquidityParams$outboundSchema.and(
|
|
1183
|
+
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
1184
|
+
v,
|
|
1185
|
+
) => ({ action_type: v.actionType })),
|
|
1186
|
+
),
|
|
1182
1187
|
PendleBuyPtParams$outboundSchema.and(
|
|
1183
1188
|
z.object({ actionType: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
1184
1189
|
action_type: v.actionType,
|
|
@@ -1189,26 +1194,6 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1189
1194
|
action_type: v.actionType,
|
|
1190
1195
|
})),
|
|
1191
1196
|
),
|
|
1192
|
-
AaveBorrowParams$outboundSchema.and(
|
|
1193
|
-
z.object({ actionType: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
1194
|
-
action_type: v.actionType,
|
|
1195
|
-
})),
|
|
1196
|
-
),
|
|
1197
|
-
AaveRepayParams$outboundSchema.and(
|
|
1198
|
-
z.object({ actionType: z.literal("AAVE_REPAY") }).transform((v) => ({
|
|
1199
|
-
action_type: v.actionType,
|
|
1200
|
-
})),
|
|
1201
|
-
),
|
|
1202
|
-
AaveWithdrawParams$outboundSchema.and(
|
|
1203
|
-
z.object({ actionType: z.literal("AAVE_WITHDRAW") }).transform((v) => ({
|
|
1204
|
-
action_type: v.actionType,
|
|
1205
|
-
})),
|
|
1206
|
-
),
|
|
1207
|
-
PendleAddLiquidityParams$outboundSchema.and(
|
|
1208
|
-
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
1209
|
-
v,
|
|
1210
|
-
) => ({ action_type: v.actionType })),
|
|
1211
|
-
),
|
|
1212
1197
|
PendleRemoveLiquidityParams$outboundSchema.and(
|
|
1213
1198
|
z.object({ actionType: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform((
|
|
1214
1199
|
v,
|
|
@@ -1224,6 +1209,21 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1224
1209
|
action_type: v.actionType,
|
|
1225
1210
|
})),
|
|
1226
1211
|
),
|
|
1212
|
+
AaveBorrowParams$outboundSchema.and(
|
|
1213
|
+
z.object({ actionType: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
1214
|
+
action_type: v.actionType,
|
|
1215
|
+
})),
|
|
1216
|
+
),
|
|
1217
|
+
AaveRepayParams$outboundSchema.and(
|
|
1218
|
+
z.object({ actionType: z.literal("AAVE_REPAY") }).transform((v) => ({
|
|
1219
|
+
action_type: v.actionType,
|
|
1220
|
+
})),
|
|
1221
|
+
),
|
|
1222
|
+
AaveWithdrawParams$outboundSchema.and(
|
|
1223
|
+
z.object({ actionType: z.literal("AAVE_WITHDRAW") }).transform((v) => ({
|
|
1224
|
+
action_type: v.actionType,
|
|
1225
|
+
})),
|
|
1226
|
+
),
|
|
1227
1227
|
SetAllowanceParams$outboundSchema.and(
|
|
1228
1228
|
z.object({ actionType: z.literal("SET_ALLOWANCE") }).transform((v) => ({
|
|
1229
1229
|
action_type: v.actionType,
|
package/src/sdk/morpho.ts
CHANGED