@compass-labs/api-sdk 0.5.1 → 0.5.3
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 +45 -41
- package/bin/mcp-server.js.map +8 -8
- 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/uniswapincreaseliquidityprovisionparams.d.ts +2 -2
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.js +2 -2
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.js.map +1 -1
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionrequest.d.ts +2 -2
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionrequest.js +2 -2
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionrequest.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +26 -182
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +38 -36
- 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/uniswapincreaseliquidityprovisionparams.d.ts +2 -2
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.js +2 -2
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.js.map +1 -1
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionrequest.d.ts +2 -2
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionrequest.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionrequest.js +2 -2
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionrequest.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +26 -182
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +38 -36
- package/dist/esm/models/components/useroperation.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/uniswapincreaseliquidityprovisionparams.ts +6 -6
- package/src/models/components/uniswapincreaseliquidityprovisionrequest.ts +6 -6
- package/src/models/components/useroperation.ts +92 -70
|
@@ -209,7 +209,7 @@ export type Body =
|
|
|
209
209
|
| (UnwrapWethParams & { actionType: "UNWRAP_WETH" })
|
|
210
210
|
| (WrapEthParams & { actionType: "WRAP_ETH" })
|
|
211
211
|
| (AerodromeSlipstreamWithdrawLiquidityProvisionParams & {
|
|
212
|
-
actionType: "
|
|
212
|
+
actionType: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION";
|
|
213
213
|
})
|
|
214
214
|
| (MorphoSetVaultAllowanceParams & {
|
|
215
215
|
actionType: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
@@ -223,14 +223,14 @@ export type Body =
|
|
|
223
223
|
| (SkySellParams & { actionType: "SKY_SELL" })
|
|
224
224
|
| (SkyWithdrawParams & { actionType: "SKY_WITHDRAW" })
|
|
225
225
|
| (UniswapWithdrawLiquidityProvisionParams & {
|
|
226
|
-
actionType: "
|
|
226
|
+
actionType: "UNISWAP_WITHDRAW_LIQUIDITY_PROVISION";
|
|
227
227
|
})
|
|
228
228
|
| (AaveSupplyParams & { actionType: "AAVE_SUPPLY" })
|
|
229
229
|
| (AaveWithdrawParams & { actionType: "AAVE_WITHDRAW" })
|
|
230
230
|
| (IncreaseAllowanceParams & { actionType: "ALLOWANCE_INCREASE" })
|
|
231
231
|
| (MorphoDepositParams & { actionType: "MORPHO_DEPOSIT" })
|
|
232
232
|
| (MorphoWithdrawParams & { actionType: "MORPHO_WITHDRAW" })
|
|
233
|
-
| (TokenTransferErc20Params & { actionType: "
|
|
233
|
+
| (TokenTransferErc20Params & { actionType: "TOKEN_TRANSFER_ERC20" })
|
|
234
234
|
| (AaveBorrowParams & { actionType: "AAVE_BORROW" })
|
|
235
235
|
| (AaveRepayParams & { actionType: "AAVE_REPAY" })
|
|
236
236
|
| (MorphoBorrowParams & { actionType: "MORPHO_BORROW" })
|
|
@@ -243,7 +243,7 @@ export type Body =
|
|
|
243
243
|
actionType: "AERODROME_SLIPSTREAM_BUY_EXACTLY";
|
|
244
244
|
})
|
|
245
245
|
| (AerodromeSlipstreamIncreaseLiquidityProvisionParams & {
|
|
246
|
-
actionType: "
|
|
246
|
+
actionType: "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION";
|
|
247
247
|
})
|
|
248
248
|
| (AerodromeSlipstreamSellExactlyParams & {
|
|
249
249
|
actionType: "AERODROME_SLIPSTREAM_SELL_EXACTLY";
|
|
@@ -254,10 +254,10 @@ export type Body =
|
|
|
254
254
|
| (UniswapBuyExactlyParams & { actionType: "UNISWAP_BUY_EXACTLY" })
|
|
255
255
|
| (UniswapSellExactlyParams & { actionType: "UNISWAP_SELL_EXACTLY" })
|
|
256
256
|
| (AerodromeSlipstreamMintLiquidityProvisionParams & {
|
|
257
|
-
actionType: "
|
|
257
|
+
actionType: "AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION";
|
|
258
258
|
})
|
|
259
259
|
| (UniswapMintLiquidityProvisionParams & {
|
|
260
|
-
actionType: "
|
|
260
|
+
actionType: "UNISWAP_MINT_LIQUIDITY_PROVISION";
|
|
261
261
|
});
|
|
262
262
|
|
|
263
263
|
export type UserOperation = {
|
|
@@ -265,7 +265,7 @@ export type UserOperation = {
|
|
|
265
265
|
| (UnwrapWethParams & { actionType: "UNWRAP_WETH" })
|
|
266
266
|
| (WrapEthParams & { actionType: "WRAP_ETH" })
|
|
267
267
|
| (AerodromeSlipstreamWithdrawLiquidityProvisionParams & {
|
|
268
|
-
actionType: "
|
|
268
|
+
actionType: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION";
|
|
269
269
|
})
|
|
270
270
|
| (MorphoSetVaultAllowanceParams & {
|
|
271
271
|
actionType: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
@@ -279,14 +279,14 @@ export type UserOperation = {
|
|
|
279
279
|
| (SkySellParams & { actionType: "SKY_SELL" })
|
|
280
280
|
| (SkyWithdrawParams & { actionType: "SKY_WITHDRAW" })
|
|
281
281
|
| (UniswapWithdrawLiquidityProvisionParams & {
|
|
282
|
-
actionType: "
|
|
282
|
+
actionType: "UNISWAP_WITHDRAW_LIQUIDITY_PROVISION";
|
|
283
283
|
})
|
|
284
284
|
| (AaveSupplyParams & { actionType: "AAVE_SUPPLY" })
|
|
285
285
|
| (AaveWithdrawParams & { actionType: "AAVE_WITHDRAW" })
|
|
286
286
|
| (IncreaseAllowanceParams & { actionType: "ALLOWANCE_INCREASE" })
|
|
287
287
|
| (MorphoDepositParams & { actionType: "MORPHO_DEPOSIT" })
|
|
288
288
|
| (MorphoWithdrawParams & { actionType: "MORPHO_WITHDRAW" })
|
|
289
|
-
| (TokenTransferErc20Params & { actionType: "
|
|
289
|
+
| (TokenTransferErc20Params & { actionType: "TOKEN_TRANSFER_ERC20" })
|
|
290
290
|
| (AaveBorrowParams & { actionType: "AAVE_BORROW" })
|
|
291
291
|
| (AaveRepayParams & { actionType: "AAVE_REPAY" })
|
|
292
292
|
| (MorphoBorrowParams & { actionType: "MORPHO_BORROW" })
|
|
@@ -301,7 +301,7 @@ export type UserOperation = {
|
|
|
301
301
|
actionType: "AERODROME_SLIPSTREAM_BUY_EXACTLY";
|
|
302
302
|
})
|
|
303
303
|
| (AerodromeSlipstreamIncreaseLiquidityProvisionParams & {
|
|
304
|
-
actionType: "
|
|
304
|
+
actionType: "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION";
|
|
305
305
|
})
|
|
306
306
|
| (AerodromeSlipstreamSellExactlyParams & {
|
|
307
307
|
actionType: "AERODROME_SLIPSTREAM_SELL_EXACTLY";
|
|
@@ -312,10 +312,10 @@ export type UserOperation = {
|
|
|
312
312
|
| (UniswapBuyExactlyParams & { actionType: "UNISWAP_BUY_EXACTLY" })
|
|
313
313
|
| (UniswapSellExactlyParams & { actionType: "UNISWAP_SELL_EXACTLY" })
|
|
314
314
|
| (AerodromeSlipstreamMintLiquidityProvisionParams & {
|
|
315
|
-
actionType: "
|
|
315
|
+
actionType: "AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION";
|
|
316
316
|
})
|
|
317
317
|
| (UniswapMintLiquidityProvisionParams & {
|
|
318
|
-
actionType: "
|
|
318
|
+
actionType: "UNISWAP_MINT_LIQUIDITY_PROVISION";
|
|
319
319
|
});
|
|
320
320
|
};
|
|
321
321
|
|
|
@@ -334,7 +334,9 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
334
334
|
),
|
|
335
335
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams$inboundSchema.and(
|
|
336
336
|
z.object({
|
|
337
|
-
action_type: z.literal(
|
|
337
|
+
action_type: z.literal(
|
|
338
|
+
"AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION",
|
|
339
|
+
),
|
|
338
340
|
}).transform((v) => ({ actionType: v.action_type })),
|
|
339
341
|
),
|
|
340
342
|
MorphoSetVaultAllowanceParams$inboundSchema.and(
|
|
@@ -382,8 +384,9 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
382
384
|
})),
|
|
383
385
|
),
|
|
384
386
|
UniswapWithdrawLiquidityProvisionParams$inboundSchema.and(
|
|
385
|
-
z.object({
|
|
386
|
-
|
|
387
|
+
z.object({
|
|
388
|
+
action_type: z.literal("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"),
|
|
389
|
+
}).transform((v) => ({ actionType: v.action_type })),
|
|
387
390
|
),
|
|
388
391
|
AaveSupplyParams$inboundSchema.and(
|
|
389
392
|
z.object({ action_type: z.literal("AAVE_SUPPLY") }).transform((v) => ({
|
|
@@ -411,9 +414,9 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
411
414
|
) => ({ actionType: v.action_type })),
|
|
412
415
|
),
|
|
413
416
|
TokenTransferErc20Params$inboundSchema.and(
|
|
414
|
-
z.object({ action_type: z.literal("
|
|
415
|
-
|
|
416
|
-
})),
|
|
417
|
+
z.object({ action_type: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
418
|
+
v,
|
|
419
|
+
) => ({ actionType: v.action_type })),
|
|
417
420
|
),
|
|
418
421
|
AaveBorrowParams$inboundSchema.and(
|
|
419
422
|
z.object({ action_type: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
@@ -449,7 +452,9 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
449
452
|
),
|
|
450
453
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema.and(
|
|
451
454
|
z.object({
|
|
452
|
-
action_type: z.literal(
|
|
455
|
+
action_type: z.literal(
|
|
456
|
+
"AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION",
|
|
457
|
+
),
|
|
453
458
|
}).transform((v) => ({ actionType: v.action_type })),
|
|
454
459
|
),
|
|
455
460
|
AerodromeSlipstreamSellExactlyParams$inboundSchema.and(
|
|
@@ -473,13 +478,12 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
473
478
|
),
|
|
474
479
|
AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema.and(
|
|
475
480
|
z.object({
|
|
476
|
-
action_type: z.literal("
|
|
481
|
+
action_type: z.literal("AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"),
|
|
477
482
|
}).transform((v) => ({ actionType: v.action_type })),
|
|
478
483
|
),
|
|
479
484
|
UniswapMintLiquidityProvisionParams$inboundSchema.and(
|
|
480
|
-
z.object({ action_type: z.literal("
|
|
481
|
-
v,
|
|
482
|
-
) => ({ actionType: v.action_type })),
|
|
485
|
+
z.object({ action_type: z.literal("UNISWAP_MINT_LIQUIDITY_PROVISION") })
|
|
486
|
+
.transform((v) => ({ actionType: v.action_type })),
|
|
483
487
|
),
|
|
484
488
|
]);
|
|
485
489
|
|
|
@@ -488,7 +492,7 @@ export type Body$Outbound =
|
|
|
488
492
|
| (UnwrapWethParams$Outbound & { action_type: "UNWRAP_WETH" })
|
|
489
493
|
| (WrapEthParams$Outbound & { action_type: "WRAP_ETH" })
|
|
490
494
|
| (AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound & {
|
|
491
|
-
action_type: "
|
|
495
|
+
action_type: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION";
|
|
492
496
|
})
|
|
493
497
|
| (MorphoSetVaultAllowanceParams$Outbound & {
|
|
494
498
|
action_type: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
@@ -502,14 +506,16 @@ export type Body$Outbound =
|
|
|
502
506
|
| (SkySellParams$Outbound & { action_type: "SKY_SELL" })
|
|
503
507
|
| (SkyWithdrawParams$Outbound & { action_type: "SKY_WITHDRAW" })
|
|
504
508
|
| (UniswapWithdrawLiquidityProvisionParams$Outbound & {
|
|
505
|
-
action_type: "
|
|
509
|
+
action_type: "UNISWAP_WITHDRAW_LIQUIDITY_PROVISION";
|
|
506
510
|
})
|
|
507
511
|
| (AaveSupplyParams$Outbound & { action_type: "AAVE_SUPPLY" })
|
|
508
512
|
| (AaveWithdrawParams$Outbound & { action_type: "AAVE_WITHDRAW" })
|
|
509
513
|
| (IncreaseAllowanceParams$Outbound & { action_type: "ALLOWANCE_INCREASE" })
|
|
510
514
|
| (MorphoDepositParams$Outbound & { action_type: "MORPHO_DEPOSIT" })
|
|
511
515
|
| (MorphoWithdrawParams$Outbound & { action_type: "MORPHO_WITHDRAW" })
|
|
512
|
-
| (TokenTransferErc20Params$Outbound & {
|
|
516
|
+
| (TokenTransferErc20Params$Outbound & {
|
|
517
|
+
action_type: "TOKEN_TRANSFER_ERC20";
|
|
518
|
+
})
|
|
513
519
|
| (AaveBorrowParams$Outbound & { action_type: "AAVE_BORROW" })
|
|
514
520
|
| (AaveRepayParams$Outbound & { action_type: "AAVE_REPAY" })
|
|
515
521
|
| (MorphoBorrowParams$Outbound & { action_type: "MORPHO_BORROW" })
|
|
@@ -524,7 +530,7 @@ export type Body$Outbound =
|
|
|
524
530
|
action_type: "AERODROME_SLIPSTREAM_BUY_EXACTLY";
|
|
525
531
|
})
|
|
526
532
|
| (AerodromeSlipstreamIncreaseLiquidityProvisionParams$Outbound & {
|
|
527
|
-
action_type: "
|
|
533
|
+
action_type: "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION";
|
|
528
534
|
})
|
|
529
535
|
| (AerodromeSlipstreamSellExactlyParams$Outbound & {
|
|
530
536
|
action_type: "AERODROME_SLIPSTREAM_SELL_EXACTLY";
|
|
@@ -537,10 +543,10 @@ export type Body$Outbound =
|
|
|
537
543
|
action_type: "UNISWAP_SELL_EXACTLY";
|
|
538
544
|
})
|
|
539
545
|
| (AerodromeSlipstreamMintLiquidityProvisionParams$Outbound & {
|
|
540
|
-
action_type: "
|
|
546
|
+
action_type: "AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION";
|
|
541
547
|
})
|
|
542
548
|
| (UniswapMintLiquidityProvisionParams$Outbound & {
|
|
543
|
-
action_type: "
|
|
549
|
+
action_type: "UNISWAP_MINT_LIQUIDITY_PROVISION";
|
|
544
550
|
});
|
|
545
551
|
|
|
546
552
|
/** @internal */
|
|
@@ -558,7 +564,9 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
558
564
|
),
|
|
559
565
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema.and(
|
|
560
566
|
z.object({
|
|
561
|
-
actionType: z.literal(
|
|
567
|
+
actionType: z.literal(
|
|
568
|
+
"AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION",
|
|
569
|
+
),
|
|
562
570
|
}).transform((v) => ({ action_type: v.actionType })),
|
|
563
571
|
),
|
|
564
572
|
MorphoSetVaultAllowanceParams$outboundSchema.and(
|
|
@@ -606,8 +614,9 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
606
614
|
})),
|
|
607
615
|
),
|
|
608
616
|
UniswapWithdrawLiquidityProvisionParams$outboundSchema.and(
|
|
609
|
-
z.object({
|
|
610
|
-
|
|
617
|
+
z.object({
|
|
618
|
+
actionType: z.literal("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"),
|
|
619
|
+
}).transform((v) => ({ action_type: v.actionType })),
|
|
611
620
|
),
|
|
612
621
|
AaveSupplyParams$outboundSchema.and(
|
|
613
622
|
z.object({ actionType: z.literal("AAVE_SUPPLY") }).transform((v) => ({
|
|
@@ -635,9 +644,9 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
635
644
|
})),
|
|
636
645
|
),
|
|
637
646
|
TokenTransferErc20Params$outboundSchema.and(
|
|
638
|
-
z.object({ actionType: z.literal("
|
|
639
|
-
|
|
640
|
-
})),
|
|
647
|
+
z.object({ actionType: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
648
|
+
v,
|
|
649
|
+
) => ({ action_type: v.actionType })),
|
|
641
650
|
),
|
|
642
651
|
AaveBorrowParams$outboundSchema.and(
|
|
643
652
|
z.object({ actionType: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
@@ -674,7 +683,9 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
674
683
|
),
|
|
675
684
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema.and(
|
|
676
685
|
z.object({
|
|
677
|
-
actionType: z.literal(
|
|
686
|
+
actionType: z.literal(
|
|
687
|
+
"AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION",
|
|
688
|
+
),
|
|
678
689
|
}).transform((v) => ({ action_type: v.actionType })),
|
|
679
690
|
),
|
|
680
691
|
AerodromeSlipstreamSellExactlyParams$outboundSchema.and(
|
|
@@ -697,13 +708,13 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
697
708
|
) => ({ action_type: v.actionType })),
|
|
698
709
|
),
|
|
699
710
|
AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema.and(
|
|
700
|
-
z.object({
|
|
701
|
-
|
|
711
|
+
z.object({
|
|
712
|
+
actionType: z.literal("AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"),
|
|
713
|
+
}).transform((v) => ({ action_type: v.actionType })),
|
|
702
714
|
),
|
|
703
715
|
UniswapMintLiquidityProvisionParams$outboundSchema.and(
|
|
704
|
-
z.object({ actionType: z.literal("
|
|
705
|
-
v,
|
|
706
|
-
) => ({ action_type: v.actionType })),
|
|
716
|
+
z.object({ actionType: z.literal("UNISWAP_MINT_LIQUIDITY_PROVISION") })
|
|
717
|
+
.transform((v) => ({ action_type: v.actionType })),
|
|
707
718
|
),
|
|
708
719
|
]);
|
|
709
720
|
|
|
@@ -753,7 +764,9 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
753
764
|
),
|
|
754
765
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams$inboundSchema.and(
|
|
755
766
|
z.object({
|
|
756
|
-
action_type: z.literal(
|
|
767
|
+
action_type: z.literal(
|
|
768
|
+
"AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION",
|
|
769
|
+
),
|
|
757
770
|
}).transform((v) => ({ actionType: v.action_type })),
|
|
758
771
|
),
|
|
759
772
|
MorphoSetVaultAllowanceParams$inboundSchema.and(
|
|
@@ -801,8 +814,9 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
801
814
|
})),
|
|
802
815
|
),
|
|
803
816
|
UniswapWithdrawLiquidityProvisionParams$inboundSchema.and(
|
|
804
|
-
z.object({
|
|
805
|
-
|
|
817
|
+
z.object({
|
|
818
|
+
action_type: z.literal("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"),
|
|
819
|
+
}).transform((v) => ({ actionType: v.action_type })),
|
|
806
820
|
),
|
|
807
821
|
AaveSupplyParams$inboundSchema.and(
|
|
808
822
|
z.object({ action_type: z.literal("AAVE_SUPPLY") }).transform((v) => ({
|
|
@@ -830,9 +844,9 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
830
844
|
) => ({ actionType: v.action_type })),
|
|
831
845
|
),
|
|
832
846
|
TokenTransferErc20Params$inboundSchema.and(
|
|
833
|
-
z.object({ action_type: z.literal("
|
|
834
|
-
|
|
835
|
-
})),
|
|
847
|
+
z.object({ action_type: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
848
|
+
v,
|
|
849
|
+
) => ({ actionType: v.action_type })),
|
|
836
850
|
),
|
|
837
851
|
AaveBorrowParams$inboundSchema.and(
|
|
838
852
|
z.object({ action_type: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
@@ -868,7 +882,9 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
868
882
|
),
|
|
869
883
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema.and(
|
|
870
884
|
z.object({
|
|
871
|
-
action_type: z.literal(
|
|
885
|
+
action_type: z.literal(
|
|
886
|
+
"AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION",
|
|
887
|
+
),
|
|
872
888
|
}).transform((v) => ({ actionType: v.action_type })),
|
|
873
889
|
),
|
|
874
890
|
AerodromeSlipstreamSellExactlyParams$inboundSchema.and(
|
|
@@ -892,13 +908,12 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
892
908
|
),
|
|
893
909
|
AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema.and(
|
|
894
910
|
z.object({
|
|
895
|
-
action_type: z.literal("
|
|
911
|
+
action_type: z.literal("AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"),
|
|
896
912
|
}).transform((v) => ({ actionType: v.action_type })),
|
|
897
913
|
),
|
|
898
914
|
UniswapMintLiquidityProvisionParams$inboundSchema.and(
|
|
899
|
-
z.object({ action_type: z.literal("
|
|
900
|
-
v,
|
|
901
|
-
) => ({ actionType: v.action_type })),
|
|
915
|
+
z.object({ action_type: z.literal("UNISWAP_MINT_LIQUIDITY_PROVISION") })
|
|
916
|
+
.transform((v) => ({ actionType: v.action_type })),
|
|
902
917
|
),
|
|
903
918
|
]),
|
|
904
919
|
});
|
|
@@ -909,7 +924,7 @@ export type UserOperation$Outbound = {
|
|
|
909
924
|
| (UnwrapWethParams$Outbound & { action_type: "UNWRAP_WETH" })
|
|
910
925
|
| (WrapEthParams$Outbound & { action_type: "WRAP_ETH" })
|
|
911
926
|
| (AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound & {
|
|
912
|
-
action_type: "
|
|
927
|
+
action_type: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION";
|
|
913
928
|
})
|
|
914
929
|
| (MorphoSetVaultAllowanceParams$Outbound & {
|
|
915
930
|
action_type: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
@@ -923,14 +938,16 @@ export type UserOperation$Outbound = {
|
|
|
923
938
|
| (SkySellParams$Outbound & { action_type: "SKY_SELL" })
|
|
924
939
|
| (SkyWithdrawParams$Outbound & { action_type: "SKY_WITHDRAW" })
|
|
925
940
|
| (UniswapWithdrawLiquidityProvisionParams$Outbound & {
|
|
926
|
-
action_type: "
|
|
941
|
+
action_type: "UNISWAP_WITHDRAW_LIQUIDITY_PROVISION";
|
|
927
942
|
})
|
|
928
943
|
| (AaveSupplyParams$Outbound & { action_type: "AAVE_SUPPLY" })
|
|
929
944
|
| (AaveWithdrawParams$Outbound & { action_type: "AAVE_WITHDRAW" })
|
|
930
945
|
| (IncreaseAllowanceParams$Outbound & { action_type: "ALLOWANCE_INCREASE" })
|
|
931
946
|
| (MorphoDepositParams$Outbound & { action_type: "MORPHO_DEPOSIT" })
|
|
932
947
|
| (MorphoWithdrawParams$Outbound & { action_type: "MORPHO_WITHDRAW" })
|
|
933
|
-
| (TokenTransferErc20Params$Outbound & {
|
|
948
|
+
| (TokenTransferErc20Params$Outbound & {
|
|
949
|
+
action_type: "TOKEN_TRANSFER_ERC20";
|
|
950
|
+
})
|
|
934
951
|
| (AaveBorrowParams$Outbound & { action_type: "AAVE_BORROW" })
|
|
935
952
|
| (AaveRepayParams$Outbound & { action_type: "AAVE_REPAY" })
|
|
936
953
|
| (MorphoBorrowParams$Outbound & { action_type: "MORPHO_BORROW" })
|
|
@@ -945,7 +962,7 @@ export type UserOperation$Outbound = {
|
|
|
945
962
|
action_type: "AERODROME_SLIPSTREAM_BUY_EXACTLY";
|
|
946
963
|
})
|
|
947
964
|
| (AerodromeSlipstreamIncreaseLiquidityProvisionParams$Outbound & {
|
|
948
|
-
action_type: "
|
|
965
|
+
action_type: "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION";
|
|
949
966
|
})
|
|
950
967
|
| (AerodromeSlipstreamSellExactlyParams$Outbound & {
|
|
951
968
|
action_type: "AERODROME_SLIPSTREAM_SELL_EXACTLY";
|
|
@@ -960,10 +977,10 @@ export type UserOperation$Outbound = {
|
|
|
960
977
|
action_type: "UNISWAP_SELL_EXACTLY";
|
|
961
978
|
})
|
|
962
979
|
| (AerodromeSlipstreamMintLiquidityProvisionParams$Outbound & {
|
|
963
|
-
action_type: "
|
|
980
|
+
action_type: "AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION";
|
|
964
981
|
})
|
|
965
982
|
| (UniswapMintLiquidityProvisionParams$Outbound & {
|
|
966
|
-
action_type: "
|
|
983
|
+
action_type: "UNISWAP_MINT_LIQUIDITY_PROVISION";
|
|
967
984
|
});
|
|
968
985
|
};
|
|
969
986
|
|
|
@@ -986,7 +1003,9 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
986
1003
|
),
|
|
987
1004
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema.and(
|
|
988
1005
|
z.object({
|
|
989
|
-
actionType: z.literal(
|
|
1006
|
+
actionType: z.literal(
|
|
1007
|
+
"AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION",
|
|
1008
|
+
),
|
|
990
1009
|
}).transform((v) => ({ action_type: v.actionType })),
|
|
991
1010
|
),
|
|
992
1011
|
MorphoSetVaultAllowanceParams$outboundSchema.and(
|
|
@@ -1034,8 +1053,9 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1034
1053
|
})),
|
|
1035
1054
|
),
|
|
1036
1055
|
UniswapWithdrawLiquidityProvisionParams$outboundSchema.and(
|
|
1037
|
-
z.object({
|
|
1038
|
-
|
|
1056
|
+
z.object({
|
|
1057
|
+
actionType: z.literal("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"),
|
|
1058
|
+
}).transform((v) => ({ action_type: v.actionType })),
|
|
1039
1059
|
),
|
|
1040
1060
|
AaveSupplyParams$outboundSchema.and(
|
|
1041
1061
|
z.object({ actionType: z.literal("AAVE_SUPPLY") }).transform((v) => ({
|
|
@@ -1063,9 +1083,9 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1063
1083
|
})),
|
|
1064
1084
|
),
|
|
1065
1085
|
TokenTransferErc20Params$outboundSchema.and(
|
|
1066
|
-
z.object({ actionType: z.literal("
|
|
1067
|
-
|
|
1068
|
-
})),
|
|
1086
|
+
z.object({ actionType: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
1087
|
+
v,
|
|
1088
|
+
) => ({ action_type: v.actionType })),
|
|
1069
1089
|
),
|
|
1070
1090
|
AaveBorrowParams$outboundSchema.and(
|
|
1071
1091
|
z.object({ actionType: z.literal("AAVE_BORROW") }).transform((v) => ({
|
|
@@ -1102,7 +1122,9 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1102
1122
|
),
|
|
1103
1123
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema.and(
|
|
1104
1124
|
z.object({
|
|
1105
|
-
actionType: z.literal(
|
|
1125
|
+
actionType: z.literal(
|
|
1126
|
+
"AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION",
|
|
1127
|
+
),
|
|
1106
1128
|
}).transform((v) => ({ action_type: v.actionType })),
|
|
1107
1129
|
),
|
|
1108
1130
|
AerodromeSlipstreamSellExactlyParams$outboundSchema.and(
|
|
@@ -1125,13 +1147,13 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1125
1147
|
) => ({ action_type: v.actionType })),
|
|
1126
1148
|
),
|
|
1127
1149
|
AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema.and(
|
|
1128
|
-
z.object({
|
|
1129
|
-
|
|
1150
|
+
z.object({
|
|
1151
|
+
actionType: z.literal("AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"),
|
|
1152
|
+
}).transform((v) => ({ action_type: v.actionType })),
|
|
1130
1153
|
),
|
|
1131
1154
|
UniswapMintLiquidityProvisionParams$outboundSchema.and(
|
|
1132
|
-
z.object({ actionType: z.literal("
|
|
1133
|
-
v,
|
|
1134
|
-
) => ({ action_type: v.actionType })),
|
|
1155
|
+
z.object({ actionType: z.literal("UNISWAP_MINT_LIQUIDITY_PROVISION") })
|
|
1156
|
+
.transform((v) => ({ action_type: v.actionType })),
|
|
1135
1157
|
),
|
|
1136
1158
|
]),
|
|
1137
1159
|
});
|