@merkl/api 1.7.70 → 1.7.71

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 (27) hide show
  1. package/dist/src/eden/index.d.ts +7 -0
  2. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.js.map +1 -1
  3. package/dist/src/engine/implementations/CompoundV3BorrowFromCollateral/metadata.d.ts +30 -0
  4. package/dist/src/engine/implementations/CompoundV3BorrowFromCollateral/metadata.js.map +1 -0
  5. package/dist/src/engine/implementations/CompoundV3Collateral/metadata.d.ts +30 -0
  6. package/dist/src/engine/implementations/CompoundV3Collateral/metadata.js.map +1 -0
  7. package/dist/src/engine/implementations/Erc20/subTypes/factories.js.map +1 -1
  8. package/dist/src/engine/implementations/Erc20/subTypes/implementations/rwaxVault/metadata.d.ts +17 -0
  9. package/dist/src/engine/implementations/Erc20/subTypes/implementations/rwaxVault/metadata.js.map +1 -0
  10. package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -1
  11. package/dist/src/engine/implementations/Erc20/subTypes/index.js.map +1 -1
  12. package/dist/src/engine/metadata/factory.js.map +1 -1
  13. package/dist/src/engine/tvl/factory.js.map +1 -1
  14. package/dist/src/index.d.ts +7 -0
  15. package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +15 -15
  16. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +42 -42
  17. package/dist/src/modules/v4/router.d.ts +7 -0
  18. package/dist/src/modules/v4/template/template.controller.d.ts +7 -0
  19. package/dist/src/modules/v4/template/template.formatter.js.map +1 -1
  20. package/dist/src/modules/v4/template/template.repository.d.ts +3 -0
  21. package/dist/src/modules/v4/template/template.repository.js.map +1 -1
  22. package/dist/src/modules/v4/template/template.service.d.ts +5 -0
  23. package/dist/src/modules/v4/template/template.service.js.map +1 -1
  24. package/dist/src/utils/getAPR.d.ts +139 -7
  25. package/dist/src/utils/parseDistributionType.d.ts +135 -3
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +1 -1
@@ -174,12 +174,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
174
174
  };
175
175
  };
176
176
  Creator: {
177
- tags?: undefined;
178
177
  OR: ({
179
- tags?: undefined;
180
178
  Creator: {
181
179
  id: string;
182
180
  };
181
+ tags?: undefined;
183
182
  } | {
184
183
  Creator?: undefined;
185
184
  tags: {
@@ -187,12 +186,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
187
186
  };
188
187
  })[];
189
188
  Creator?: undefined;
190
- } | {
191
189
  tags?: undefined;
190
+ } | {
192
191
  OR?: undefined;
193
192
  Creator: {
194
193
  id: string;
195
194
  };
195
+ tags?: undefined;
196
196
  } | {
197
197
  OR?: undefined;
198
198
  Creator?: undefined;
@@ -389,12 +389,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
389
389
  };
390
390
  };
391
391
  Creator: {
392
- tags?: undefined;
393
392
  OR: ({
394
- tags?: undefined;
395
393
  Creator: {
396
394
  id: string;
397
395
  };
396
+ tags?: undefined;
398
397
  } | {
399
398
  Creator?: undefined;
400
399
  tags: {
@@ -402,12 +401,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
402
401
  };
403
402
  })[];
404
403
  Creator?: undefined;
405
- } | {
406
404
  tags?: undefined;
405
+ } | {
407
406
  OR?: undefined;
408
407
  Creator: {
409
408
  id: string;
410
409
  };
410
+ tags?: undefined;
411
411
  } | {
412
412
  OR?: undefined;
413
413
  Creator?: undefined;
@@ -614,12 +614,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
614
614
  };
615
615
  };
616
616
  Creator: {
617
- tags?: undefined;
618
617
  OR: ({
619
- tags?: undefined;
620
618
  Creator: {
621
619
  id: string;
622
620
  };
621
+ tags?: undefined;
623
622
  } | {
624
623
  Creator?: undefined;
625
624
  tags: {
@@ -627,12 +626,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
627
626
  };
628
627
  })[];
629
628
  Creator?: undefined;
630
- } | {
631
629
  tags?: undefined;
630
+ } | {
632
631
  OR?: undefined;
633
632
  Creator: {
634
633
  id: string;
635
634
  };
635
+ tags?: undefined;
636
636
  } | {
637
637
  OR?: undefined;
638
638
  Creator?: undefined;
@@ -835,12 +835,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
835
835
  };
836
836
  };
837
837
  Creator: {
838
- tags?: undefined;
839
838
  OR: ({
840
- tags?: undefined;
841
839
  Creator: {
842
840
  id: string;
843
841
  };
842
+ tags?: undefined;
844
843
  } | {
845
844
  Creator?: undefined;
846
845
  tags: {
@@ -848,12 +847,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
848
847
  };
849
848
  })[];
850
849
  Creator?: undefined;
851
- } | {
852
850
  tags?: undefined;
851
+ } | {
853
852
  OR?: undefined;
854
853
  Creator: {
855
854
  id: string;
856
855
  };
856
+ tags?: undefined;
857
857
  } | {
858
858
  OR?: undefined;
859
859
  Creator?: undefined;
@@ -1056,12 +1056,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1056
1056
  };
1057
1057
  };
1058
1058
  Creator: {
1059
- tags?: undefined;
1060
1059
  OR: ({
1061
- tags?: undefined;
1062
1060
  Creator: {
1063
1061
  id: string;
1064
1062
  };
1063
+ tags?: undefined;
1065
1064
  } | {
1066
1065
  Creator?: undefined;
1067
1066
  tags: {
@@ -1069,12 +1068,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1069
1068
  };
1070
1069
  })[];
1071
1070
  Creator?: undefined;
1072
- } | {
1073
1071
  tags?: undefined;
1072
+ } | {
1074
1073
  OR?: undefined;
1075
1074
  Creator: {
1076
1075
  id: string;
1077
1076
  };
1077
+ tags?: undefined;
1078
1078
  } | {
1079
1079
  OR?: undefined;
1080
1080
  Creator?: undefined;
@@ -106,10 +106,10 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
106
106
  in: string[];
107
107
  } | undefined;
108
108
  OR: ({
109
- mainProtocolId?: undefined;
110
109
  tags: {
111
110
  has: string;
112
111
  };
112
+ mainProtocolId?: undefined;
113
113
  } | {
114
114
  tags?: undefined;
115
115
  mainProtocolId: string;
@@ -451,12 +451,12 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
451
451
  };
452
452
  startTimestamp?: undefined;
453
453
  } | {
454
- endTimestamp?: undefined;
455
454
  startTimestamp: {
456
455
  lte?: undefined;
457
456
  gt: number;
458
457
  gte?: undefined;
459
458
  };
459
+ endTimestamp?: undefined;
460
460
  } | {
461
461
  endTimestamp: {
462
462
  lt?: undefined;
@@ -506,36 +506,35 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
506
506
  } | {
507
507
  AND: {
508
508
  OR: ({
509
- identifier?: undefined;
510
- mainProtocolId?: undefined;
511
509
  id: {
512
510
  contains: string;
513
511
  mode: "insensitive";
514
512
  };
515
513
  name?: undefined;
514
+ identifier?: undefined;
516
515
  explorerAddress?: undefined;
517
516
  type?: undefined;
518
517
  MainProtocol?: undefined;
518
+ mainProtocolId?: undefined;
519
519
  Tokens?: undefined;
520
520
  Campaigns?: undefined;
521
521
  Chain?: undefined;
522
522
  } | {
523
523
  id?: undefined;
524
- identifier?: undefined;
525
- mainProtocolId?: undefined;
526
524
  name: {
527
525
  contains: string;
528
526
  mode: "insensitive";
529
527
  };
528
+ identifier?: undefined;
530
529
  explorerAddress?: undefined;
531
530
  type?: undefined;
532
531
  MainProtocol?: undefined;
532
+ mainProtocolId?: undefined;
533
533
  Tokens?: undefined;
534
534
  Campaigns?: undefined;
535
535
  Chain?: undefined;
536
536
  } | {
537
537
  id?: undefined;
538
- mainProtocolId?: undefined;
539
538
  name?: undefined;
540
539
  identifier: {
541
540
  contains: string;
@@ -544,108 +543,108 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
544
543
  explorerAddress?: undefined;
545
544
  type?: undefined;
546
545
  MainProtocol?: undefined;
546
+ mainProtocolId?: undefined;
547
547
  Tokens?: undefined;
548
548
  Campaigns?: undefined;
549
549
  Chain?: undefined;
550
550
  } | {
551
551
  id?: undefined;
552
- identifier?: undefined;
553
- mainProtocolId?: undefined;
554
552
  name?: undefined;
553
+ identifier?: undefined;
555
554
  explorerAddress: {
556
555
  contains: string;
557
556
  mode: "insensitive";
558
557
  };
559
558
  type?: undefined;
560
559
  MainProtocol?: undefined;
560
+ mainProtocolId?: undefined;
561
561
  Tokens?: undefined;
562
562
  Campaigns?: undefined;
563
563
  Chain?: undefined;
564
564
  } | {
565
565
  id?: undefined;
566
- identifier?: undefined;
567
- mainProtocolId?: undefined;
568
566
  name?: undefined;
567
+ identifier?: undefined;
569
568
  explorerAddress?: undefined;
570
569
  Campaigns: {
571
570
  some: {
572
571
  id?: undefined;
573
- creatorAddress?: undefined;
574
- RewardToken?: undefined;
575
- endTimestamp?: undefined;
576
572
  campaignId: {
577
573
  contains: string;
578
574
  mode: "insensitive";
579
575
  };
576
+ creatorAddress?: undefined;
577
+ RewardToken?: undefined;
578
+ endTimestamp?: undefined;
580
579
  };
581
580
  };
582
581
  type?: undefined;
583
582
  MainProtocol?: undefined;
583
+ mainProtocolId?: undefined;
584
584
  Tokens?: undefined;
585
585
  Chain?: undefined;
586
586
  } | {
587
587
  id?: undefined;
588
- identifier?: undefined;
589
- mainProtocolId?: undefined;
590
588
  name?: undefined;
589
+ identifier?: undefined;
591
590
  explorerAddress?: undefined;
592
591
  Campaigns: {
593
592
  some: {
594
593
  campaignId?: undefined;
595
- creatorAddress?: undefined;
596
- RewardToken?: undefined;
597
- endTimestamp?: undefined;
598
594
  id: {
599
595
  contains: string;
600
596
  mode: "insensitive";
601
597
  };
598
+ creatorAddress?: undefined;
599
+ RewardToken?: undefined;
600
+ endTimestamp?: undefined;
602
601
  };
603
602
  };
604
603
  type?: undefined;
605
604
  MainProtocol?: undefined;
605
+ mainProtocolId?: undefined;
606
606
  Tokens?: undefined;
607
607
  Chain?: undefined;
608
608
  } | {
609
609
  id?: undefined;
610
- identifier?: undefined;
611
- mainProtocolId?: undefined;
612
610
  name?: undefined;
611
+ identifier?: undefined;
613
612
  explorerAddress?: undefined;
614
613
  Campaigns: {
615
614
  some: {
616
615
  id?: undefined;
617
616
  campaignId?: undefined;
618
- RewardToken?: undefined;
619
- endTimestamp?: undefined;
620
617
  creatorAddress: {
621
618
  contains: string;
622
619
  mode: "insensitive";
623
620
  };
621
+ RewardToken?: undefined;
622
+ endTimestamp?: undefined;
624
623
  };
625
624
  };
626
625
  type?: undefined;
627
626
  MainProtocol?: undefined;
627
+ mainProtocolId?: undefined;
628
628
  Tokens?: undefined;
629
629
  Chain?: undefined;
630
630
  } | {
631
631
  id?: undefined;
632
- identifier?: undefined;
633
- mainProtocolId?: undefined;
634
632
  name?: undefined;
633
+ identifier?: undefined;
635
634
  explorerAddress?: undefined;
636
635
  type: {
637
636
  contains: string;
638
637
  mode: "insensitive";
639
638
  };
640
639
  MainProtocol?: undefined;
640
+ mainProtocolId?: undefined;
641
641
  Tokens?: undefined;
642
642
  Campaigns?: undefined;
643
643
  Chain?: undefined;
644
644
  } | {
645
645
  id?: undefined;
646
- identifier?: undefined;
647
- mainProtocolId?: undefined;
648
646
  name?: undefined;
647
+ identifier?: undefined;
649
648
  explorerAddress?: undefined;
650
649
  type?: undefined;
651
650
  MainProtocol: {
@@ -654,13 +653,14 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
654
653
  mode: "insensitive";
655
654
  };
656
655
  };
656
+ mainProtocolId?: undefined;
657
657
  Tokens?: undefined;
658
658
  Campaigns?: undefined;
659
659
  Chain?: undefined;
660
660
  } | {
661
661
  id?: undefined;
662
- identifier?: undefined;
663
662
  name?: undefined;
663
+ identifier?: undefined;
664
664
  explorerAddress?: undefined;
665
665
  type?: undefined;
666
666
  MainProtocol?: undefined;
@@ -673,56 +673,56 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
673
673
  Chain?: undefined;
674
674
  } | {
675
675
  id?: undefined;
676
- identifier?: undefined;
677
- mainProtocolId?: undefined;
678
676
  name?: undefined;
677
+ identifier?: undefined;
679
678
  explorerAddress?: undefined;
680
679
  type?: undefined;
681
680
  MainProtocol?: undefined;
681
+ mainProtocolId?: undefined;
682
682
  Tokens: {
683
683
  some: {
684
- symbol?: undefined;
685
- address?: undefined;
686
684
  name: {
687
685
  contains: string;
688
686
  mode: "insensitive";
689
687
  };
688
+ symbol?: undefined;
689
+ address?: undefined;
690
690
  };
691
691
  };
692
692
  Campaigns?: undefined;
693
693
  Chain?: undefined;
694
694
  } | {
695
695
  id?: undefined;
696
- identifier?: undefined;
697
- mainProtocolId?: undefined;
698
696
  name?: undefined;
697
+ identifier?: undefined;
699
698
  explorerAddress?: undefined;
700
699
  type?: undefined;
701
700
  MainProtocol?: undefined;
701
+ mainProtocolId?: undefined;
702
702
  Tokens: {
703
703
  some: {
704
- address?: undefined;
705
704
  name?: undefined;
706
705
  symbol: {
707
706
  contains: string;
708
707
  mode: "insensitive";
709
708
  };
709
+ address?: undefined;
710
710
  };
711
711
  };
712
712
  Campaigns?: undefined;
713
713
  Chain?: undefined;
714
714
  } | {
715
715
  id?: undefined;
716
- identifier?: undefined;
717
- mainProtocolId?: undefined;
718
716
  name?: undefined;
717
+ identifier?: undefined;
719
718
  explorerAddress?: undefined;
720
719
  type?: undefined;
721
720
  MainProtocol?: undefined;
721
+ mainProtocolId?: undefined;
722
722
  Tokens: {
723
723
  some: {
724
- symbol?: undefined;
725
724
  name?: undefined;
725
+ symbol?: undefined;
726
726
  address: {
727
727
  contains: string;
728
728
  mode: "insensitive";
@@ -733,12 +733,12 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
733
733
  Chain?: undefined;
734
734
  } | {
735
735
  id?: undefined;
736
- identifier?: undefined;
737
- mainProtocolId?: undefined;
738
736
  name?: undefined;
737
+ identifier?: undefined;
739
738
  explorerAddress?: undefined;
740
739
  type?: undefined;
741
740
  MainProtocol?: undefined;
741
+ mainProtocolId?: undefined;
742
742
  Tokens?: undefined;
743
743
  Campaigns: {
744
744
  some: {
@@ -768,12 +768,12 @@ export declare function transformQueryToPrismaFilters(query: FindManyOpportunity
768
768
  Chain?: undefined;
769
769
  } | {
770
770
  id?: undefined;
771
- identifier?: undefined;
772
- mainProtocolId?: undefined;
773
771
  name?: undefined;
772
+ identifier?: undefined;
774
773
  explorerAddress?: undefined;
775
774
  type?: undefined;
776
775
  MainProtocol?: undefined;
776
+ mainProtocolId?: undefined;
777
777
  Tokens?: undefined;
778
778
  Campaigns?: undefined;
779
779
  Chain: {
@@ -15513,6 +15513,7 @@ export declare const v4: Elysia<"/v4", {
15513
15513
  opportunityBannerLight: string | null;
15514
15514
  opportunityBannerDark: string | null;
15515
15515
  } | undefined;
15516
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
15516
15517
  }[];
15517
15518
  422: {
15518
15519
  type: "validation";
@@ -15588,6 +15589,7 @@ export declare const v4: Elysia<"/v4", {
15588
15589
  opportunityBannerLight: string | null;
15589
15590
  opportunityBannerDark: string | null;
15590
15591
  } | undefined;
15592
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
15591
15593
  } | null;
15592
15594
  422: {
15593
15595
  type: "validation";
@@ -15613,6 +15615,7 @@ export declare const v4: Elysia<"/v4", {
15613
15615
  [x: string]: any;
15614
15616
  };
15615
15617
  protocolId?: string | undefined;
15618
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
15616
15619
  };
15617
15620
  params: {};
15618
15621
  query: unknown;
@@ -15643,6 +15646,7 @@ export declare const v4: Elysia<"/v4", {
15643
15646
  opportunityBannerLight: string | null;
15644
15647
  opportunityBannerDark: string | null;
15645
15648
  } | undefined;
15649
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
15646
15650
  };
15647
15651
  422: {
15648
15652
  type: "validation";
@@ -15666,6 +15670,7 @@ export declare const v4: Elysia<"/v4", {
15666
15670
  baseConfig?: any;
15667
15671
  completionConfig?: {} | undefined;
15668
15672
  protocolId?: string | undefined;
15673
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
15669
15674
  };
15670
15675
  params: {
15671
15676
  id: string;
@@ -15698,6 +15703,7 @@ export declare const v4: Elysia<"/v4", {
15698
15703
  opportunityBannerLight: string | null;
15699
15704
  opportunityBannerDark: string | null;
15700
15705
  } | undefined;
15706
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
15701
15707
  };
15702
15708
  422: {
15703
15709
  type: "validation";
@@ -15732,6 +15738,7 @@ export declare const v4: Elysia<"/v4", {
15732
15738
  baseConfig: import("@prisma/client/runtime/client").JsonValue;
15733
15739
  completionConfig: import("@prisma/client/runtime/client").JsonValue;
15734
15740
  protocolId: string | null;
15741
+ action: import("@package/databases").OpportunityAction | null;
15735
15742
  };
15736
15743
  422: {
15737
15744
  type: "validation";
@@ -54,6 +54,7 @@ export declare const TemplateController: Elysia<"/templates", {
54
54
  opportunityBannerLight: string | null;
55
55
  opportunityBannerDark: string | null;
56
56
  } | undefined;
57
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
57
58
  }[];
58
59
  422: {
59
60
  type: "validation";
@@ -129,6 +130,7 @@ export declare const TemplateController: Elysia<"/templates", {
129
130
  opportunityBannerLight: string | null;
130
131
  opportunityBannerDark: string | null;
131
132
  } | undefined;
133
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
132
134
  } | null;
133
135
  422: {
134
136
  type: "validation";
@@ -154,6 +156,7 @@ export declare const TemplateController: Elysia<"/templates", {
154
156
  [x: string]: any;
155
157
  };
156
158
  protocolId?: string | undefined;
159
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
157
160
  };
158
161
  params: {};
159
162
  query: unknown;
@@ -184,6 +187,7 @@ export declare const TemplateController: Elysia<"/templates", {
184
187
  opportunityBannerLight: string | null;
185
188
  opportunityBannerDark: string | null;
186
189
  } | undefined;
190
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
187
191
  };
188
192
  422: {
189
193
  type: "validation";
@@ -207,6 +211,7 @@ export declare const TemplateController: Elysia<"/templates", {
207
211
  baseConfig?: any;
208
212
  completionConfig?: {} | undefined;
209
213
  protocolId?: string | undefined;
214
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
210
215
  };
211
216
  params: {
212
217
  id: string;
@@ -239,6 +244,7 @@ export declare const TemplateController: Elysia<"/templates", {
239
244
  opportunityBannerLight: string | null;
240
245
  opportunityBannerDark: string | null;
241
246
  } | undefined;
247
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
242
248
  };
243
249
  422: {
244
250
  type: "validation";
@@ -273,6 +279,7 @@ export declare const TemplateController: Elysia<"/templates", {
273
279
  baseConfig: import("@prisma/client/runtime/client").JsonValue;
274
280
  completionConfig: import("@prisma/client/runtime/client").JsonValue;
275
281
  protocolId: string | null;
282
+ action: import("@package/databases").OpportunityAction | null;
276
283
  };
277
284
  422: {
278
285
  type: "validation";
@@ -1 +1 @@
1
- {"version":3,"file":"template.formatter.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.formatter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAMnE;;;GAGG;AACH,MAAM,OAAgB,iBAAiB;IACrC;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,cAA0C,EAAY;QAClE,MAAM,gBAAgB,GAAI,cAAc,CAAC,gBAA4C,IAAI,EAAE,CAAC;QAE5F,OAAO;YACL,EAAE,EAAE,cAAc,CAAC,EAAE;YACrB,IAAI,EAAE,cAAc,CAAC,IAAI;YACzB,WAAW,EAAE,cAAc,CAAC,WAAW,IAAI,SAAS;YACpD,UAAU,EAAE,cAAc,CAAC,UAAU;YACrC,gBAAgB;YAChB,UAAU,EAAE,cAAc,CAAC,UAAU,IAAI,SAAS;YAClD,QAAQ,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;SAClG,CAAC;IAAA,CACH;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,eAA6C,EAAc;QAC3E,OAAO,eAAe,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAAA,CACtD;CACF"}
1
+ {"version":3,"file":"template.formatter.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.formatter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAMnE;;;GAGG;AACH,MAAM,OAAgB,iBAAiB;IACrC;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,cAA0C,EAAY;QAClE,MAAM,gBAAgB,GAAI,cAAc,CAAC,gBAA4C,IAAI,EAAE,CAAC;QAE5F,OAAO;YACL,EAAE,EAAE,cAAc,CAAC,EAAE;YACrB,IAAI,EAAE,cAAc,CAAC,IAAI;YACzB,WAAW,EAAE,cAAc,CAAC,WAAW,IAAI,SAAS;YACpD,UAAU,EAAE,cAAc,CAAC,UAAU;YACrC,gBAAgB;YAChB,UAAU,EAAE,cAAc,CAAC,UAAU,IAAI,SAAS;YAClD,QAAQ,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;YACjG,MAAM,EAAE,cAAc,CAAC,MAAM,IAAI,SAAS;SAC3C,CAAC;IAAA,CACH;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,eAA6C,EAAc;QAC3E,OAAO,eAAe,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAAA,CACtD;CACF"}
@@ -11,6 +11,7 @@ export declare abstract class TemplateRepository {
11
11
  baseConfig: Prisma.InputJsonValue;
12
12
  completionConfig: Prisma.InputJsonValue;
13
13
  protocolId?: string;
14
+ action?: string;
14
15
  }): Promise<Template>;
15
16
  static findMany(query: GetTemplatesQueryDtoModel): Promise<Template[]>;
16
17
  /**
@@ -24,6 +25,7 @@ export declare abstract class TemplateRepository {
24
25
  baseConfig?: Prisma.InputJsonValue;
25
26
  completionConfig?: Prisma.InputJsonValue;
26
27
  protocolId?: string | null;
28
+ action?: string | null;
27
29
  }): Promise<Template>;
28
30
  static count(query: GetTemplatesQueryDtoModel): Promise<number>;
29
31
  static delete(idOrName: string): Promise<{
@@ -33,5 +35,6 @@ export declare abstract class TemplateRepository {
33
35
  baseConfig: import("@prisma/client/runtime/client").JsonValue;
34
36
  completionConfig: import("@prisma/client/runtime/client").JsonValue;
35
37
  protocolId: string | null;
38
+ action: import("@package/databases").OpportunityAction | null;
36
39
  }>;
37
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"template.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.repository.ts"],"names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YAEH,OAAO,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC1C,CAAC;IAAA,CACF;IAED,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAgC,EAAE;QACnD,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;QAErC,OAAO,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC;YAChC,KAAK,EAAE;gBACL,GAAG,CAAC,UAAU,IAAI,EAAE,UAAU,EAAE,CAAC;gBACjC,GAAG,CAAC,MAAM,IAAI;oBACZ,EAAE,EAAE;wBACF,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE;wBACnD,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE;qBAC3D;iBACF,CAAC;aACH;SACF,CAAC,CAAC;IAAA,CACJ;IAED,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAgB,EAAE;QACpC,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC;YACpD,KAAK,EAAE;gBACL,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;aAC3C;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,uBAAuB,QAAQ,EAAE,CAAC,CAAC;QACrD,CAAC;QAED,OAAO,MAAM,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC;YACvC,KAAK,EAAE,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE;SAC3B,CAAC,CAAC;IAAA,CACJ;CACF"}
1
+ {"version":3,"file":"template.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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C;IAAA,CACJ;CACF"}
@@ -24,6 +24,7 @@ export declare abstract class TemplateService {
24
24
  opportunityBannerLight: string | null;
25
25
  opportunityBannerDark: string | null;
26
26
  } | undefined;
27
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
27
28
  }>;
28
29
  static findMany(query: GetTemplatesQueryDtoModel): Promise<{
29
30
  id: string;
@@ -48,6 +49,7 @@ export declare abstract class TemplateService {
48
49
  opportunityBannerLight: string | null;
49
50
  opportunityBannerDark: string | null;
50
51
  } | undefined;
52
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
51
53
  }[]>;
52
54
  static findUnique(idOrName: string): Promise<{
53
55
  id: string;
@@ -72,6 +74,7 @@ export declare abstract class TemplateService {
72
74
  opportunityBannerLight: string | null;
73
75
  opportunityBannerDark: string | null;
74
76
  } | undefined;
77
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
75
78
  } | null>;
76
79
  static update(idOrName: string, body: UpdateTemplateDto): Promise<{
77
80
  id: string;
@@ -96,6 +99,7 @@ export declare abstract class TemplateService {
96
99
  opportunityBannerLight: string | null;
97
100
  opportunityBannerDark: string | null;
98
101
  } | undefined;
102
+ action?: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP" | undefined;
99
103
  }>;
100
104
  static count(query: GetTemplatesQueryDtoModel): Promise<number>;
101
105
  static delete(id: string): Promise<{
@@ -105,5 +109,6 @@ export declare abstract class TemplateService {
105
109
  baseConfig: import("@prisma/client/runtime/client").JsonValue;
106
110
  completionConfig: import("@prisma/client/runtime/client").JsonValue;
107
111
  protocolId: string | null;
112
+ action: import("@package/databases").OpportunityAction | null;
108
113
  }>;
109
114
  }
@@ -1 +1 @@
1
- {"version":3,"file":"template.service.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,OAAgB,eAAe;IACnC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAuB,EAAE;QAC3C,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,MAAM,eAAe,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3D,CAAC;QAED,OAAO,kBAAkB,CAAC,MAAM,CAAC;YAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,UAAU,EAAE,IAAI,CAAC,UAAmC;YACpD,gBAAgB,EAAE,IAAI,CAAC,gBAAyC;YAChE,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC,CAAC;IAAA,CACJ;IAED,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAgC,EAAE;QACtD,OAAO,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAAA,CAC3C;IAED,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,QAAgB,EAAE;QACxC,OAAO,kBAAkB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAAA,CAChD;IAED,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAgB,EAAE,IAAuB,EAAE;QAC7D,MAAM,UAAU,GAMZ;YACF,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC;QAEF,gFAAgF;QAChF,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,UAAmC,CAAC;QACnE,CAAC;QAED,kDAAkD;QAClD,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC1B,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAyC,CAAC;QAC/E,CAAC;QAED,OAAO,kBAAkB,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IAAA,CACxD;IAED,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAgC,EAAE;QACnD,OAAO,kBAAkB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAAA,CACxC;IAED,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE;QAC9B,OAAO,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAAA,CACtC;CACF"}
1
+ {"version":3,"file":"template.service.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,OAAgB,eAAe;IACnC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAuB,EAAE;QAC3C,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,MAAM,eAAe,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3D,CAAC;QAED,OAAO,kBAAkB,CAAC,MAAM,CAAC;YAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,UAAU,EAAE,IAAI,CAAC,UAAmC;YACpD,gBAAgB,EAAE,IAAI,CAAC,gBAAyC;YAChE,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CAAC;IAAA,CACJ;IAED,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAg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