@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.
Files changed (111) hide show
  1. package/bin/mcp-server.js +210 -106
  2. package/bin/mcp-server.js.map +16 -16
  3. package/dist/commonjs/funcs/morphoDeposit.d.ts +1 -1
  4. package/dist/commonjs/funcs/morphoDeposit.js +1 -1
  5. package/dist/commonjs/lib/config.d.ts +2 -2
  6. package/dist/commonjs/lib/config.js +2 -2
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/mcp-server/tools/morphoDeposit.js +1 -1
  10. package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts +47 -17
  11. package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/pendleaddliquidityparams.js +48 -18
  13. package/dist/commonjs/models/components/pendleaddliquidityparams.js.map +1 -1
  14. package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts +47 -17
  15. package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
  16. package/dist/commonjs/models/components/pendleaddliquidityrequest.js +48 -18
  17. package/dist/commonjs/models/components/pendleaddliquidityrequest.js.map +1 -1
  18. package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts +47 -17
  19. package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/pendleremoveliquidityparams.js +48 -18
  21. package/dist/commonjs/models/components/pendleremoveliquidityparams.js.map +1 -1
  22. package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts +47 -17
  23. package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/pendleremoveliquidityrequest.js +48 -18
  25. package/dist/commonjs/models/components/pendleremoveliquidityrequest.js.map +1 -1
  26. package/dist/commonjs/models/components/pendlesellptparams.d.ts +47 -17
  27. package/dist/commonjs/models/components/pendlesellptparams.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/pendlesellptparams.js +48 -18
  29. package/dist/commonjs/models/components/pendlesellptparams.js.map +1 -1
  30. package/dist/commonjs/models/components/pendlesellptrequest.d.ts +47 -17
  31. package/dist/commonjs/models/components/pendlesellptrequest.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/pendlesellptrequest.js +48 -18
  33. package/dist/commonjs/models/components/pendlesellptrequest.js.map +1 -1
  34. package/dist/commonjs/models/components/pendlesellytparams.d.ts +47 -17
  35. package/dist/commonjs/models/components/pendlesellytparams.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/pendlesellytparams.js +48 -18
  37. package/dist/commonjs/models/components/pendlesellytparams.js.map +1 -1
  38. package/dist/commonjs/models/components/pendlesellytrequest.d.ts +47 -17
  39. package/dist/commonjs/models/components/pendlesellytrequest.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/pendlesellytrequest.js +48 -18
  41. package/dist/commonjs/models/components/pendlesellytrequest.js.map +1 -1
  42. package/dist/commonjs/models/components/useroperation.d.ts +32 -32
  43. package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/useroperation.js +28 -28
  45. package/dist/commonjs/models/components/useroperation.js.map +1 -1
  46. package/dist/commonjs/sdk/morpho.d.ts +1 -1
  47. package/dist/commonjs/sdk/morpho.js +1 -1
  48. package/dist/esm/funcs/morphoDeposit.d.ts +1 -1
  49. package/dist/esm/funcs/morphoDeposit.js +1 -1
  50. package/dist/esm/lib/config.d.ts +2 -2
  51. package/dist/esm/lib/config.js +2 -2
  52. package/dist/esm/mcp-server/mcp-server.js +1 -1
  53. package/dist/esm/mcp-server/server.js +1 -1
  54. package/dist/esm/mcp-server/tools/morphoDeposit.js +1 -1
  55. package/dist/esm/models/components/pendleaddliquidityparams.d.ts +47 -17
  56. package/dist/esm/models/components/pendleaddliquidityparams.d.ts.map +1 -1
  57. package/dist/esm/models/components/pendleaddliquidityparams.js +43 -15
  58. package/dist/esm/models/components/pendleaddliquidityparams.js.map +1 -1
  59. package/dist/esm/models/components/pendleaddliquidityrequest.d.ts +47 -17
  60. package/dist/esm/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
  61. package/dist/esm/models/components/pendleaddliquidityrequest.js +43 -15
  62. package/dist/esm/models/components/pendleaddliquidityrequest.js.map +1 -1
  63. package/dist/esm/models/components/pendleremoveliquidityparams.d.ts +47 -17
  64. package/dist/esm/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
  65. package/dist/esm/models/components/pendleremoveliquidityparams.js +43 -15
  66. package/dist/esm/models/components/pendleremoveliquidityparams.js.map +1 -1
  67. package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts +47 -17
  68. package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
  69. package/dist/esm/models/components/pendleremoveliquidityrequest.js +43 -15
  70. package/dist/esm/models/components/pendleremoveliquidityrequest.js.map +1 -1
  71. package/dist/esm/models/components/pendlesellptparams.d.ts +47 -17
  72. package/dist/esm/models/components/pendlesellptparams.d.ts.map +1 -1
  73. package/dist/esm/models/components/pendlesellptparams.js +43 -15
  74. package/dist/esm/models/components/pendlesellptparams.js.map +1 -1
  75. package/dist/esm/models/components/pendlesellptrequest.d.ts +47 -17
  76. package/dist/esm/models/components/pendlesellptrequest.d.ts.map +1 -1
  77. package/dist/esm/models/components/pendlesellptrequest.js +43 -15
  78. package/dist/esm/models/components/pendlesellptrequest.js.map +1 -1
  79. package/dist/esm/models/components/pendlesellytparams.d.ts +47 -17
  80. package/dist/esm/models/components/pendlesellytparams.d.ts.map +1 -1
  81. package/dist/esm/models/components/pendlesellytparams.js +43 -15
  82. package/dist/esm/models/components/pendlesellytparams.js.map +1 -1
  83. package/dist/esm/models/components/pendlesellytrequest.d.ts +47 -17
  84. package/dist/esm/models/components/pendlesellytrequest.d.ts.map +1 -1
  85. package/dist/esm/models/components/pendlesellytrequest.js +43 -15
  86. package/dist/esm/models/components/pendlesellytrequest.js.map +1 -1
  87. package/dist/esm/models/components/useroperation.d.ts +32 -32
  88. package/dist/esm/models/components/useroperation.d.ts.map +1 -1
  89. package/dist/esm/models/components/useroperation.js +28 -28
  90. package/dist/esm/models/components/useroperation.js.map +1 -1
  91. package/dist/esm/sdk/morpho.d.ts +1 -1
  92. package/dist/esm/sdk/morpho.js +1 -1
  93. package/docs/sdks/morpho/README.md +1 -1
  94. package/docs/sdks/pendle/README.md +16 -8
  95. package/jsr.json +1 -1
  96. package/package.json +1 -1
  97. package/src/funcs/morphoDeposit.ts +1 -1
  98. package/src/lib/config.ts +2 -2
  99. package/src/mcp-server/mcp-server.ts +1 -1
  100. package/src/mcp-server/server.ts +1 -1
  101. package/src/mcp-server/tools/morphoDeposit.ts +1 -1
  102. package/src/models/components/pendleaddliquidityparams.ts +99 -28
  103. package/src/models/components/pendleaddliquidityrequest.ts +100 -28
  104. package/src/models/components/pendleremoveliquidityparams.ts +104 -28
  105. package/src/models/components/pendleremoveliquidityrequest.ts +103 -28
  106. package/src/models/components/pendlesellptparams.ts +96 -27
  107. package/src/models/components/pendlesellptrequest.ts +100 -27
  108. package/src/models/components/pendlesellytparams.ts +96 -27
  109. package/src/models/components/pendlesellytrequest.ts +100 -27
  110. package/src/models/components/useroperation.ts +98 -98
  111. 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
@@ -164,7 +164,7 @@ export class Morpho extends ClientSDK {
164
164
  *
165
165
  * In order to make this transaction, token allowances need to be set on the following contracts.
166
166
  *
167
- * - `USDC`
167
+ * - `<vault-contract-address>`
168
168
  * </Info>
169
169
  */
170
170
  async deposit(