@merkl/api 0.20.168 → 0.20.169

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.
@@ -495,144 +495,41 @@ declare const app: Elysia<"", false, {
495
495
  };
496
496
  headers: unknown;
497
497
  response: {
498
- 200: ({
499
- protocol?: {
500
- url: string;
501
- name: string;
502
- description: string;
503
- id: string;
504
- tags: string[];
505
- icon: string;
506
- } | null | undefined;
507
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
508
- depositUrl?: string | undefined;
509
- explorerAddress?: string | undefined;
510
- aprRecord?: {
511
- timestamp: string | bigint;
498
+ 200: {
499
+ apr: number;
500
+ aprRecord: {
512
501
  cumulated: number;
513
- breakdowns: {
514
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
515
- id: string;
516
- identifier: string;
502
+ timestamp: bigint;
503
+ breakdowns: ({
517
504
  value: number;
518
- aprRecordId: string;
519
- }[];
520
- } | undefined;
521
- tvlRecord?: {
522
- total: number;
523
- timestamp: string | bigint;
524
- breakdowns: {
525
- type: "TOKEN" | "PROTOCOL";
526
- id: string;
505
+ distributionType: import("@db/api").$Enums.DistributionType;
527
506
  identifier: string;
507
+ type: "CAMPAIGN";
508
+ } | {
528
509
  value: number;
529
- tvlRecordId: string;
530
- }[];
531
- } | undefined;
532
- rewardsRecord?: {
533
- total: number;
534
- id: string;
535
- timestamp: string | bigint;
536
- breakdowns: {
537
- token: {
538
- price?: number | null | undefined;
539
- symbol: string;
540
- name: string | null;
541
- id: string;
542
- icon: string;
543
- address: string;
544
- chainId: number;
545
- decimals: number;
546
- verified: boolean;
547
- isTest: boolean;
548
- isPoint: boolean;
549
- isPreTGE: boolean;
550
- };
551
- id: string;
552
- value: number;
553
- campaignId: string;
554
- amount: string | bigint;
555
- dailyRewardsRecordId: string;
556
- }[];
557
- } | undefined;
558
- status: string;
559
- type: string;
560
- name: string;
561
- tokens: {
562
- price?: number | null | undefined;
563
- symbol: string;
564
- name: string | null;
565
- id: string;
566
- icon: string;
567
- address: string;
568
- chainId: number;
569
- decimals: number;
570
- verified: boolean;
571
- isTest: boolean;
572
- isPoint: boolean;
573
- isPreTGE: boolean;
574
- }[];
575
- description: string;
576
- id: string;
577
- tags: string[];
578
- identifier: string;
579
- chain: {
580
- name: string;
581
- id: number;
582
- icon: string;
510
+ identifier: string;
511
+ type: import("@db/api").$Enums.AprType;
512
+ })[];
583
513
  };
584
- action: string;
585
- chainId: number;
586
- howToSteps: string[];
587
- tvl: number;
588
- apr: number;
589
- dailyRewards: number;
590
- lastCampaignCreatedAt: string;
591
- } | null)[];
592
- } | {
593
- 200: never;
594
- } | {
595
- 200: (Response | ({
596
- protocol?: {
597
- url: string;
598
- name: string;
599
- description: string;
514
+ tvlRecord: {
600
515
  id: string;
601
- tags: string[];
602
- icon: string;
603
- } | null | undefined;
604
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
605
- depositUrl?: string | undefined;
606
- explorerAddress?: string | undefined;
607
- aprRecord?: {
608
- timestamp: string | bigint;
609
- cumulated: number;
610
- breakdowns: {
611
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
612
- id: string;
613
- identifier: string;
614
- value: number;
615
- aprRecordId: string;
616
- }[];
617
- } | undefined;
618
- tvlRecord?: {
619
516
  total: number;
620
- timestamp: string | bigint;
517
+ timestamp: bigint;
621
518
  breakdowns: {
622
- type: "TOKEN" | "PROTOCOL";
623
- id: string;
519
+ type: import("@db/api").$Enums.TvlType;
624
520
  identifier: string;
625
521
  value: number;
626
- tvlRecordId: string;
627
522
  }[];
628
- } | undefined;
629
- rewardsRecord?: {
630
- total: number;
523
+ };
524
+ rewardsRecord: {
631
525
  id: string;
632
- timestamp: string | bigint;
526
+ total: number;
527
+ timestamp: bigint;
633
528
  breakdowns: {
529
+ id: string;
530
+ campaignId: string;
531
+ dailyRewardsRecordId: string;
634
532
  token: {
635
- price?: number | null | undefined;
636
533
  symbol: string;
637
534
  name: string | null;
638
535
  id: string;
@@ -640,117 +537,29 @@ declare const app: Elysia<"", false, {
640
537
  address: string;
641
538
  chainId: number;
642
539
  decimals: number;
540
+ displaySymbol: string;
643
541
  verified: boolean;
644
542
  isTest: boolean;
645
543
  isPoint: boolean;
646
544
  isPreTGE: boolean;
545
+ isNative: boolean;
546
+ price: number | null;
647
547
  };
648
- id: string;
548
+ amount: any;
649
549
  value: number;
650
- campaignId: string;
651
- amount: string | bigint;
652
- dailyRewardsRecordId: string;
550
+ distributionType: import("@db/api").$Enums.DistributionType;
653
551
  }[];
654
- } | undefined;
655
- status: string;
656
- type: string;
657
- name: string;
658
- tokens: {
659
- price?: number | null | undefined;
660
- symbol: string;
661
- name: string | null;
662
- id: string;
663
- icon: string;
664
- address: string;
665
- chainId: number;
666
- decimals: number;
667
- verified: boolean;
668
- isTest: boolean;
669
- isPoint: boolean;
670
- isPreTGE: boolean;
671
- }[];
672
- description: string;
673
- id: string;
674
- tags: string[];
675
- identifier: string;
676
- chain: {
677
- name: string;
678
- id: number;
679
- icon: string;
680
552
  };
681
- action: string;
682
- chainId: number;
683
- howToSteps: string[];
684
- tvl: number;
685
- apr: number;
686
- dailyRewards: number;
687
- lastCampaignCreatedAt: string;
688
- } | null)[] | {
689
- 200: ({
690
- protocol?: {
691
- url: string;
553
+ campaigns: {
554
+ params: any;
555
+ chain: {
692
556
  name: string;
693
- description: string;
694
- id: string;
695
- tags: string[];
557
+ id: number;
696
558
  icon: string;
697
- } | null | undefined;
698
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
699
- depositUrl?: string | undefined;
700
- explorerAddress?: string | undefined;
701
- aprRecord?: {
702
- timestamp: string | bigint;
703
- cumulated: number;
704
- breakdowns: {
705
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
706
- id: string;
707
- identifier: string;
708
- value: number;
709
- aprRecordId: string;
710
- }[];
711
- } | undefined;
712
- tvlRecord?: {
713
- total: number;
714
- timestamp: string | bigint;
715
- breakdowns: {
716
- type: "TOKEN" | "PROTOCOL";
717
- id: string;
718
- identifier: string;
719
- value: number;
720
- tvlRecordId: string;
721
- }[];
722
- } | undefined;
723
- rewardsRecord?: {
724
- total: number;
725
- id: string;
726
- timestamp: string | bigint;
727
- breakdowns: {
728
- token: {
729
- price?: number | null | undefined;
730
- symbol: string;
731
- name: string | null;
732
- id: string;
733
- icon: string;
734
- address: string;
735
- chainId: number;
736
- decimals: number;
737
- verified: boolean;
738
- isTest: boolean;
739
- isPoint: boolean;
740
- isPreTGE: boolean;
741
- };
742
- id: string;
743
- value: number;
744
- campaignId: string;
745
- amount: string | bigint;
746
- dailyRewardsRecordId: string;
747
- }[];
748
- } | undefined;
749
- status: string;
750
- type: string;
751
- name: string;
752
- tokens: {
753
- price?: number | null | undefined;
559
+ };
560
+ endTimestamp: number;
561
+ startTimestamp: number;
562
+ rewardToken: {
754
563
  symbol: string;
755
564
  name: string | null;
756
565
  id: string;
@@ -762,89 +571,67 @@ declare const app: Elysia<"", false, {
762
571
  isTest: boolean;
763
572
  isPoint: boolean;
764
573
  isPreTGE: boolean;
765
- }[];
766
- description: string;
767
- id: string;
768
- tags: string[];
769
- identifier: string;
770
- chain: {
574
+ isNative: boolean;
575
+ } & {
576
+ price?: number | null | undefined;
577
+ };
578
+ distributionChain: {
771
579
  name: string;
772
580
  id: number;
773
581
  icon: string;
582
+ } | undefined;
583
+ campaignStatus: {
584
+ computedUntil: number;
585
+ processingStarted: number;
586
+ status: import("@db/api").$Enums.RunStatus;
587
+ error: string;
588
+ details: import("database/api/.generated/runtime/library").JsonValue;
589
+ campaignId: string;
590
+ } | undefined;
591
+ creatorAddress: string;
592
+ creator: {
593
+ tags: string[];
594
+ address: string;
595
+ creatorId: string | null;
774
596
  };
775
- action: string;
776
- chainId: number;
777
- howToSteps: string[];
778
- tvl: number;
779
- apr: number;
780
- dailyRewards: number;
781
- lastCampaignCreatedAt: string;
782
- } | null)[];
783
- }) & ({
784
- protocol?: {
785
- url: string;
786
- name: string;
787
- description: string;
788
- id: string;
789
- tags: string[];
790
- icon: string;
791
- } | null | undefined;
792
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
793
- depositUrl?: string | undefined;
794
- explorerAddress?: string | undefined;
795
- aprRecord?: {
796
- timestamp: string | bigint;
797
- cumulated: number;
798
- breakdowns: {
799
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
800
- id: string;
801
- identifier: string;
802
- value: number;
803
- aprRecordId: string;
804
- }[];
805
- } | undefined;
806
- tvlRecord?: {
807
- total: number;
808
- timestamp: string | bigint;
809
- breakdowns: {
810
- type: "TOKEN" | "PROTOCOL";
597
+ createdAt: string;
598
+ description: string | undefined;
599
+ Opportunity: {
600
+ status: import("@db/api").$Enums.Status;
601
+ type: string;
602
+ name: string;
603
+ description: string;
811
604
  id: string;
605
+ tags: string[];
812
606
  identifier: string;
813
- value: number;
814
- tvlRecordId: string;
815
- }[];
816
- } | undefined;
817
- rewardsRecord?: {
818
- total: number;
607
+ action: import("@db/api").$Enums.OpportunityAction;
608
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
609
+ chainId: number;
610
+ howToSteps: string[];
611
+ depositUrl: string | null;
612
+ explorerAddress: string | null;
613
+ mainProtocolId: string | null;
614
+ tvl: number;
615
+ apr: number;
616
+ dailyRewards: number;
617
+ lastCampaignCreatedAt: Date;
618
+ };
619
+ type: string;
819
620
  id: string;
820
- timestamp: string | bigint;
821
- breakdowns: {
822
- token: {
823
- price?: number | null | undefined;
824
- symbol: string;
825
- name: string | null;
826
- id: string;
827
- icon: string;
828
- address: string;
829
- chainId: number;
830
- decimals: number;
831
- verified: boolean;
832
- isTest: boolean;
833
- isPoint: boolean;
834
- isPreTGE: boolean;
835
- };
836
- id: string;
837
- value: number;
838
- campaignId: string;
839
- amount: string | bigint;
840
- dailyRewardsRecordId: string;
841
- }[];
842
- } | undefined;
843
- status: string;
844
- type: string;
845
- name: string;
846
- tokens: {
847
- price?: number | null | undefined;
621
+ subType: number | null;
622
+ computeChainId: number;
623
+ distributionChainId: number;
624
+ campaignId: string;
625
+ distributionType: import("@db/api").$Enums.DistributionType;
626
+ rewardTokenId: string;
627
+ amount: string;
628
+ opportunityId: string;
629
+ }[] | undefined;
630
+ id: string;
631
+ depositUrl: string | undefined;
632
+ explorerAddress: string | undefined;
633
+ lastCampaignCreatedAt: string;
634
+ tokens: ({
848
635
  symbol: string;
849
636
  name: string | null;
850
637
  id: string;
@@ -856,121 +643,35 @@ declare const app: Elysia<"", false, {
856
643
  isTest: boolean;
857
644
  isPoint: boolean;
858
645
  isPreTGE: boolean;
859
- }[];
860
- description: string;
861
- id: string;
862
- tags: string[];
863
- identifier: string;
646
+ isNative: boolean;
647
+ } & {
648
+ price?: number | null | undefined;
649
+ })[];
864
650
  chain: {
865
651
  name: string;
866
652
  id: number;
867
653
  icon: string;
868
654
  };
869
- action: string;
870
- chainId: number;
871
- howToSteps: string[];
872
- tvl: number;
873
- apr: number;
874
- dailyRewards: number;
875
- lastCampaignCreatedAt: string;
876
- } | null)[];
877
- } | {
878
- 200: {
879
- 200: ({
880
- protocol?: {
881
- url: string;
882
- name: string;
883
- description: string;
884
- id: string;
885
- tags: string[];
886
- icon: string;
887
- } | null | undefined;
888
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
889
- depositUrl?: string | undefined;
890
- explorerAddress?: string | undefined;
891
- aprRecord?: {
892
- timestamp: string | bigint;
893
- cumulated: number;
894
- breakdowns: {
895
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
896
- id: string;
897
- identifier: string;
898
- value: number;
899
- aprRecordId: string;
900
- }[];
901
- } | undefined;
902
- tvlRecord?: {
903
- total: number;
904
- timestamp: string | bigint;
905
- breakdowns: {
906
- type: "TOKEN" | "PROTOCOL";
907
- id: string;
908
- identifier: string;
909
- value: number;
910
- tvlRecordId: string;
911
- }[];
912
- } | undefined;
913
- rewardsRecord?: {
914
- total: number;
915
- id: string;
916
- timestamp: string | bigint;
917
- breakdowns: {
918
- token: {
919
- price?: number | null | undefined;
920
- symbol: string;
921
- name: string | null;
922
- id: string;
923
- icon: string;
924
- address: string;
925
- chainId: number;
926
- decimals: number;
927
- verified: boolean;
928
- isTest: boolean;
929
- isPoint: boolean;
930
- isPreTGE: boolean;
931
- };
932
- id: string;
933
- value: number;
934
- campaignId: string;
935
- amount: string | bigint;
936
- dailyRewardsRecordId: string;
937
- }[];
938
- } | undefined;
939
- status: string;
940
- type: string;
655
+ protocol: {
656
+ url: string;
941
657
  name: string;
942
- tokens: {
943
- price?: number | null | undefined;
944
- symbol: string;
945
- name: string | null;
946
- id: string;
947
- icon: string;
948
- address: string;
949
- chainId: number;
950
- decimals: number;
951
- verified: boolean;
952
- isTest: boolean;
953
- isPoint: boolean;
954
- isPreTGE: boolean;
955
- }[];
956
658
  description: string;
957
659
  id: string;
958
660
  tags: string[];
959
- identifier: string;
960
- chain: {
961
- name: string;
962
- id: number;
963
- icon: string;
964
- };
965
- action: string;
966
- chainId: number;
967
- howToSteps: string[];
968
- tvl: number;
969
- apr: number;
970
- dailyRewards: number;
971
- lastCampaignCreatedAt: string;
972
- } | null)[];
973
- };
661
+ icon: string;
662
+ } | undefined;
663
+ status: import("@db/api").$Enums.Status;
664
+ type: string;
665
+ name: string;
666
+ description: string;
667
+ tags: string[];
668
+ identifier: string;
669
+ action: import("@db/api").$Enums.OpportunityAction;
670
+ chainId: number;
671
+ howToSteps: string[];
672
+ tvl: number;
673
+ dailyRewards: number;
674
+ }[];
974
675
  };
975
676
  };
976
677
  };
@@ -1129,10 +830,8 @@ declare const app: Elysia<"", false, {
1129
830
  cumulated: number;
1130
831
  breakdowns: {
1131
832
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1132
- id: string;
1133
833
  identifier: string;
1134
834
  value: number;
1135
- aprRecordId: string;
1136
835
  }[];
1137
836
  } | undefined;
1138
837
  tvlRecord?: {
@@ -1140,10 +839,8 @@ declare const app: Elysia<"", false, {
1140
839
  timestamp: string | bigint;
1141
840
  breakdowns: {
1142
841
  type: "TOKEN" | "PROTOCOL";
1143
- id: string;
1144
842
  identifier: string;
1145
843
  value: number;
1146
- tvlRecordId: string;
1147
844
  }[];
1148
845
  } | undefined;
1149
846
  rewardsRecord?: {
@@ -1268,10 +965,8 @@ declare const app: Elysia<"", false, {
1268
965
  cumulated: number;
1269
966
  breakdowns: {
1270
967
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1271
- id: string;
1272
968
  identifier: string;
1273
969
  value: number;
1274
- aprRecordId: string;
1275
970
  }[];
1276
971
  } | undefined;
1277
972
  tvlRecord?: {
@@ -1279,10 +974,8 @@ declare const app: Elysia<"", false, {
1279
974
  timestamp: string | bigint;
1280
975
  breakdowns: {
1281
976
  type: "TOKEN" | "PROTOCOL";
1282
- id: string;
1283
977
  identifier: string;
1284
978
  value: number;
1285
- tvlRecordId: string;
1286
979
  }[];
1287
980
  } | undefined;
1288
981
  rewardsRecord?: {
@@ -1444,10 +1137,8 @@ declare const app: Elysia<"", false, {
1444
1137
  cumulated: number;
1445
1138
  breakdowns: {
1446
1139
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1447
- id: string;
1448
1140
  identifier: string;
1449
1141
  value: number;
1450
- aprRecordId: string;
1451
1142
  }[];
1452
1143
  } | undefined;
1453
1144
  tvlRecord?: {
@@ -1455,10 +1146,8 @@ declare const app: Elysia<"", false, {
1455
1146
  timestamp: string | bigint;
1456
1147
  breakdowns: {
1457
1148
  type: "TOKEN" | "PROTOCOL";
1458
- id: string;
1459
1149
  identifier: string;
1460
1150
  value: number;
1461
- tvlRecordId: string;
1462
1151
  }[];
1463
1152
  } | undefined;
1464
1153
  rewardsRecord?: {