@merkl/api 0.20.167 → 0.20.168

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.
@@ -365,47 +365,144 @@ export declare const v4: Elysia<"/v4", false, {
365
365
  };
366
366
  headers: unknown;
367
367
  response: {
368
- 200: {
369
- apr: number;
370
- aprRecord: {
368
+ 200: ({
369
+ protocol?: {
370
+ url: string;
371
+ name: string;
372
+ description: string;
373
+ id: string;
374
+ tags: string[];
375
+ icon: string;
376
+ } | null | undefined;
377
+ 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;
378
+ depositUrl?: string | undefined;
379
+ explorerAddress?: string | undefined;
380
+ aprRecord?: {
381
+ timestamp: string | bigint;
371
382
  cumulated: number;
372
- timestamp: bigint;
373
- breakdowns: ({
383
+ breakdowns: {
384
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
374
385
  id: string;
386
+ identifier: string;
375
387
  value: number;
376
388
  aprRecordId: string;
377
- distributionType: import("@db/api").$Enums.DistributionType;
389
+ }[];
390
+ } | undefined;
391
+ tvlRecord?: {
392
+ total: number;
393
+ timestamp: string | bigint;
394
+ breakdowns: {
395
+ type: "TOKEN" | "PROTOCOL";
396
+ id: string;
378
397
  identifier: string;
379
- type: "CAMPAIGN";
380
- } | {
398
+ value: number;
399
+ tvlRecordId: string;
400
+ }[];
401
+ } | undefined;
402
+ rewardsRecord?: {
403
+ total: number;
404
+ id: string;
405
+ timestamp: string | bigint;
406
+ breakdowns: {
407
+ token: {
408
+ price?: number | null | undefined;
409
+ symbol: string;
410
+ name: string | null;
411
+ id: string;
412
+ icon: string;
413
+ address: string;
414
+ chainId: number;
415
+ decimals: number;
416
+ verified: boolean;
417
+ isTest: boolean;
418
+ isPoint: boolean;
419
+ isPreTGE: boolean;
420
+ };
381
421
  id: string;
382
422
  value: number;
383
- aprRecordId: string;
384
- identifier: string;
385
- type: import("@db/api").$Enums.AprType;
386
- })[];
423
+ campaignId: string;
424
+ amount: string | bigint;
425
+ dailyRewardsRecordId: string;
426
+ }[];
427
+ } | undefined;
428
+ status: string;
429
+ type: string;
430
+ name: string;
431
+ tokens: {
432
+ price?: number | null | undefined;
433
+ symbol: string;
434
+ name: string | null;
435
+ id: string;
436
+ icon: string;
437
+ address: string;
438
+ chainId: number;
439
+ decimals: number;
440
+ verified: boolean;
441
+ isTest: boolean;
442
+ isPoint: boolean;
443
+ isPreTGE: boolean;
444
+ }[];
445
+ description: string;
446
+ id: string;
447
+ tags: string[];
448
+ identifier: string;
449
+ chain: {
450
+ name: string;
451
+ id: number;
452
+ icon: string;
387
453
  };
388
- tvlRecord: {
454
+ action: string;
455
+ chainId: number;
456
+ howToSteps: string[];
457
+ tvl: number;
458
+ apr: number;
459
+ dailyRewards: number;
460
+ lastCampaignCreatedAt: string;
461
+ } | null)[];
462
+ } | {
463
+ 200: never;
464
+ } | {
465
+ 200: (Response | ({
466
+ protocol?: {
467
+ url: string;
468
+ name: string;
469
+ description: string;
389
470
  id: string;
471
+ tags: string[];
472
+ icon: string;
473
+ } | null | undefined;
474
+ 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;
475
+ depositUrl?: string | undefined;
476
+ explorerAddress?: string | undefined;
477
+ aprRecord?: {
478
+ timestamp: string | bigint;
479
+ cumulated: number;
480
+ breakdowns: {
481
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
482
+ id: string;
483
+ identifier: string;
484
+ value: number;
485
+ aprRecordId: string;
486
+ }[];
487
+ } | undefined;
488
+ tvlRecord?: {
390
489
  total: number;
391
- timestamp: bigint;
490
+ timestamp: string | bigint;
392
491
  breakdowns: {
393
- type: import("@db/api").$Enums.TvlType;
492
+ type: "TOKEN" | "PROTOCOL";
394
493
  id: string;
395
494
  identifier: string;
396
495
  value: number;
397
496
  tvlRecordId: string;
398
497
  }[];
399
- };
400
- rewardsRecord: {
401
- id: string;
498
+ } | undefined;
499
+ rewardsRecord?: {
402
500
  total: number;
403
- timestamp: bigint;
501
+ id: string;
502
+ timestamp: string | bigint;
404
503
  breakdowns: {
405
- id: string;
406
- campaignId: string;
407
- dailyRewardsRecordId: string;
408
504
  token: {
505
+ price?: number | null | undefined;
409
506
  symbol: string;
410
507
  name: string | null;
411
508
  id: string;
@@ -413,29 +510,117 @@ export declare const v4: Elysia<"/v4", false, {
413
510
  address: string;
414
511
  chainId: number;
415
512
  decimals: number;
416
- displaySymbol: string;
417
513
  verified: boolean;
418
514
  isTest: boolean;
419
515
  isPoint: boolean;
420
516
  isPreTGE: boolean;
421
- isNative: boolean;
422
- price: number | null;
423
517
  };
424
- amount: any;
518
+ id: string;
425
519
  value: number;
426
- distributionType: import("@db/api").$Enums.DistributionType;
520
+ campaignId: string;
521
+ amount: string | bigint;
522
+ dailyRewardsRecordId: string;
427
523
  }[];
524
+ } | undefined;
525
+ status: string;
526
+ type: string;
527
+ name: string;
528
+ tokens: {
529
+ price?: number | null | undefined;
530
+ symbol: string;
531
+ name: string | null;
532
+ id: string;
533
+ icon: string;
534
+ address: string;
535
+ chainId: number;
536
+ decimals: number;
537
+ verified: boolean;
538
+ isTest: boolean;
539
+ isPoint: boolean;
540
+ isPreTGE: boolean;
541
+ }[];
542
+ description: string;
543
+ id: string;
544
+ tags: string[];
545
+ identifier: string;
546
+ chain: {
547
+ name: string;
548
+ id: number;
549
+ icon: string;
428
550
  };
429
- campaigns: {
430
- params: any;
431
- chain: {
551
+ action: string;
552
+ chainId: number;
553
+ howToSteps: string[];
554
+ tvl: number;
555
+ apr: number;
556
+ dailyRewards: number;
557
+ lastCampaignCreatedAt: string;
558
+ } | null)[] | {
559
+ 200: ({
560
+ protocol?: {
561
+ url: string;
432
562
  name: string;
433
- id: number;
563
+ description: string;
564
+ id: string;
565
+ tags: string[];
434
566
  icon: string;
435
- };
436
- endTimestamp: number;
437
- startTimestamp: number;
438
- rewardToken: {
567
+ } | null | undefined;
568
+ 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;
569
+ depositUrl?: string | undefined;
570
+ explorerAddress?: string | undefined;
571
+ aprRecord?: {
572
+ timestamp: string | bigint;
573
+ cumulated: number;
574
+ breakdowns: {
575
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
576
+ id: string;
577
+ identifier: string;
578
+ value: number;
579
+ aprRecordId: string;
580
+ }[];
581
+ } | undefined;
582
+ tvlRecord?: {
583
+ total: number;
584
+ timestamp: string | bigint;
585
+ breakdowns: {
586
+ type: "TOKEN" | "PROTOCOL";
587
+ id: string;
588
+ identifier: string;
589
+ value: number;
590
+ tvlRecordId: string;
591
+ }[];
592
+ } | undefined;
593
+ rewardsRecord?: {
594
+ total: number;
595
+ id: string;
596
+ timestamp: string | bigint;
597
+ breakdowns: {
598
+ token: {
599
+ price?: number | null | undefined;
600
+ symbol: string;
601
+ name: string | null;
602
+ id: string;
603
+ icon: string;
604
+ address: string;
605
+ chainId: number;
606
+ decimals: number;
607
+ verified: boolean;
608
+ isTest: boolean;
609
+ isPoint: boolean;
610
+ isPreTGE: boolean;
611
+ };
612
+ id: string;
613
+ value: number;
614
+ campaignId: string;
615
+ amount: string | bigint;
616
+ dailyRewardsRecordId: string;
617
+ }[];
618
+ } | undefined;
619
+ status: string;
620
+ type: string;
621
+ name: string;
622
+ tokens: {
623
+ price?: number | null | undefined;
439
624
  symbol: string;
440
625
  name: string | null;
441
626
  id: string;
@@ -447,67 +632,89 @@ export declare const v4: Elysia<"/v4", false, {
447
632
  isTest: boolean;
448
633
  isPoint: boolean;
449
634
  isPreTGE: boolean;
450
- isNative: boolean;
451
- } & {
452
- price?: number | null | undefined;
453
- };
454
- distributionChain: {
635
+ }[];
636
+ description: string;
637
+ id: string;
638
+ tags: string[];
639
+ identifier: string;
640
+ chain: {
455
641
  name: string;
456
642
  id: number;
457
643
  icon: string;
458
- } | undefined;
459
- campaignStatus: {
460
- computedUntil: number;
461
- processingStarted: number;
462
- status: import("@db/api").$Enums.RunStatus;
463
- error: string;
464
- details: import("database/api/.generated/runtime/library").JsonValue;
465
- campaignId: string;
466
- } | undefined;
467
- creatorAddress: string;
468
- creator: {
469
- tags: string[];
470
- address: string;
471
- creatorId: string | null;
472
644
  };
473
- createdAt: string;
474
- description: string | undefined;
475
- Opportunity: {
476
- status: import("@db/api").$Enums.Status;
477
- type: string;
478
- name: string;
479
- description: string;
645
+ action: string;
646
+ chainId: number;
647
+ howToSteps: string[];
648
+ tvl: number;
649
+ apr: number;
650
+ dailyRewards: number;
651
+ lastCampaignCreatedAt: string;
652
+ } | null)[];
653
+ }) & ({
654
+ protocol?: {
655
+ url: string;
656
+ name: string;
657
+ description: string;
658
+ id: string;
659
+ tags: string[];
660
+ icon: string;
661
+ } | null | undefined;
662
+ 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;
663
+ depositUrl?: string | undefined;
664
+ explorerAddress?: string | undefined;
665
+ aprRecord?: {
666
+ timestamp: string | bigint;
667
+ cumulated: number;
668
+ breakdowns: {
669
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
670
+ id: string;
671
+ identifier: string;
672
+ value: number;
673
+ aprRecordId: string;
674
+ }[];
675
+ } | undefined;
676
+ tvlRecord?: {
677
+ total: number;
678
+ timestamp: string | bigint;
679
+ breakdowns: {
680
+ type: "TOKEN" | "PROTOCOL";
681
+ id: string;
682
+ identifier: string;
683
+ value: number;
684
+ tvlRecordId: string;
685
+ }[];
686
+ } | undefined;
687
+ rewardsRecord?: {
688
+ total: number;
689
+ id: string;
690
+ timestamp: string | bigint;
691
+ breakdowns: {
692
+ token: {
693
+ price?: number | null | undefined;
694
+ symbol: string;
695
+ name: string | null;
696
+ id: string;
697
+ icon: string;
698
+ address: string;
699
+ chainId: number;
700
+ decimals: number;
701
+ verified: boolean;
702
+ isTest: boolean;
703
+ isPoint: boolean;
704
+ isPreTGE: boolean;
705
+ };
480
706
  id: string;
481
- tags: string[];
482
- identifier: string;
483
- action: import("@db/api").$Enums.OpportunityAction;
484
- manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
485
- chainId: number;
486
- howToSteps: string[];
487
- depositUrl: string | null;
488
- explorerAddress: string | null;
489
- mainProtocolId: string | null;
490
- tvl: number;
491
- apr: number;
492
- dailyRewards: number;
493
- lastCampaignCreatedAt: Date;
494
- };
495
- type: string;
496
- id: string;
497
- subType: number | null;
498
- computeChainId: number;
499
- distributionChainId: number;
500
- campaignId: string;
501
- distributionType: import("@db/api").$Enums.DistributionType;
502
- rewardTokenId: string;
503
- amount: string;
504
- opportunityId: string;
505
- }[] | undefined;
506
- id: string;
507
- depositUrl: string | undefined;
508
- explorerAddress: string | undefined;
509
- lastCampaignCreatedAt: string;
510
- tokens: ({
707
+ value: number;
708
+ campaignId: string;
709
+ amount: string | bigint;
710
+ dailyRewardsRecordId: string;
711
+ }[];
712
+ } | undefined;
713
+ status: string;
714
+ type: string;
715
+ name: string;
716
+ tokens: {
717
+ price?: number | null | undefined;
511
718
  symbol: string;
512
719
  name: string | null;
513
720
  id: string;
@@ -519,35 +726,121 @@ export declare const v4: Elysia<"/v4", false, {
519
726
  isTest: boolean;
520
727
  isPoint: boolean;
521
728
  isPreTGE: boolean;
522
- isNative: boolean;
523
- } & {
524
- price?: number | null | undefined;
525
- })[];
729
+ }[];
730
+ description: string;
731
+ id: string;
732
+ tags: string[];
733
+ identifier: string;
526
734
  chain: {
527
735
  name: string;
528
736
  id: number;
529
737
  icon: string;
530
738
  };
531
- protocol: {
532
- url: string;
533
- name: string;
534
- description: string;
535
- id: string;
536
- tags: string[];
537
- icon: string;
538
- } | undefined;
539
- status: import("@db/api").$Enums.Status;
540
- type: string;
541
- name: string;
542
- description: string;
543
- tags: string[];
544
- identifier: string;
545
- action: import("@db/api").$Enums.OpportunityAction;
739
+ action: string;
546
740
  chainId: number;
547
741
  howToSteps: string[];
548
742
  tvl: number;
743
+ apr: number;
549
744
  dailyRewards: number;
550
- }[];
745
+ lastCampaignCreatedAt: string;
746
+ } | null)[];
747
+ } | {
748
+ 200: {
749
+ 200: ({
750
+ protocol?: {
751
+ url: string;
752
+ name: string;
753
+ description: string;
754
+ id: string;
755
+ tags: string[];
756
+ icon: string;
757
+ } | null | undefined;
758
+ 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;
759
+ depositUrl?: string | undefined;
760
+ explorerAddress?: string | undefined;
761
+ aprRecord?: {
762
+ timestamp: string | bigint;
763
+ cumulated: number;
764
+ breakdowns: {
765
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
766
+ id: string;
767
+ identifier: string;
768
+ value: number;
769
+ aprRecordId: string;
770
+ }[];
771
+ } | undefined;
772
+ tvlRecord?: {
773
+ total: number;
774
+ timestamp: string | bigint;
775
+ breakdowns: {
776
+ type: "TOKEN" | "PROTOCOL";
777
+ id: string;
778
+ identifier: string;
779
+ value: number;
780
+ tvlRecordId: string;
781
+ }[];
782
+ } | undefined;
783
+ rewardsRecord?: {
784
+ total: number;
785
+ id: string;
786
+ timestamp: string | bigint;
787
+ breakdowns: {
788
+ token: {
789
+ price?: number | null | undefined;
790
+ symbol: string;
791
+ name: string | null;
792
+ id: string;
793
+ icon: string;
794
+ address: string;
795
+ chainId: number;
796
+ decimals: number;
797
+ verified: boolean;
798
+ isTest: boolean;
799
+ isPoint: boolean;
800
+ isPreTGE: boolean;
801
+ };
802
+ id: string;
803
+ value: number;
804
+ campaignId: string;
805
+ amount: string | bigint;
806
+ dailyRewardsRecordId: string;
807
+ }[];
808
+ } | undefined;
809
+ status: string;
810
+ type: string;
811
+ name: string;
812
+ tokens: {
813
+ price?: number | null | undefined;
814
+ symbol: string;
815
+ name: string | null;
816
+ id: string;
817
+ icon: string;
818
+ address: string;
819
+ chainId: number;
820
+ decimals: number;
821
+ verified: boolean;
822
+ isTest: boolean;
823
+ isPoint: boolean;
824
+ isPreTGE: boolean;
825
+ }[];
826
+ description: string;
827
+ id: string;
828
+ tags: string[];
829
+ identifier: string;
830
+ chain: {
831
+ name: string;
832
+ id: number;
833
+ icon: string;
834
+ };
835
+ action: string;
836
+ chainId: number;
837
+ howToSteps: string[];
838
+ tvl: number;
839
+ apr: number;
840
+ dailyRewards: number;
841
+ lastCampaignCreatedAt: string;
842
+ } | null)[];
843
+ };
551
844
  };
552
845
  };
553
846
  };
@@ -588,6 +881,93 @@ export declare const v4: Elysia<"/v4", false, {
588
881
  };
589
882
  };
590
883
  };
884
+ } & {
885
+ opportunities: {
886
+ bins: {
887
+ apr: {
888
+ get: {
889
+ body: unknown;
890
+ params: {};
891
+ query: {
892
+ status?: string | undefined;
893
+ search?: string | undefined;
894
+ sort?: string | undefined;
895
+ type?: string | undefined;
896
+ name?: string | undefined;
897
+ tokens?: string | undefined;
898
+ items?: number | undefined;
899
+ tags?: string | undefined;
900
+ identifier?: string | undefined;
901
+ page?: number | undefined;
902
+ action?: string | undefined;
903
+ campaignId?: string | undefined;
904
+ creatorAddress?: string | undefined;
905
+ chainId?: string | undefined;
906
+ mainProtocolId?: string | undefined;
907
+ campaigns?: boolean | undefined;
908
+ point?: boolean | undefined;
909
+ rewardTokenSymbol?: string | undefined;
910
+ order?: string | undefined;
911
+ test?: boolean | undefined;
912
+ minimumTvl?: number | undefined;
913
+ };
914
+ headers: unknown;
915
+ response: {
916
+ 200: {
917
+ min: number;
918
+ max: number;
919
+ overThreshold: number;
920
+ binWidth: number;
921
+ bins: any[];
922
+ };
923
+ };
924
+ };
925
+ };
926
+ };
927
+ };
928
+ } & {
929
+ opportunities: {
930
+ bins: {
931
+ tvl: {
932
+ get: {
933
+ body: unknown;
934
+ params: {};
935
+ query: {
936
+ status?: string | undefined;
937
+ search?: string | undefined;
938
+ sort?: string | undefined;
939
+ type?: string | undefined;
940
+ name?: string | undefined;
941
+ tokens?: string | undefined;
942
+ items?: number | undefined;
943
+ tags?: string | undefined;
944
+ identifier?: string | undefined;
945
+ page?: number | undefined;
946
+ action?: string | undefined;
947
+ campaignId?: string | undefined;
948
+ creatorAddress?: string | undefined;
949
+ chainId?: string | undefined;
950
+ mainProtocolId?: string | undefined;
951
+ campaigns?: boolean | undefined;
952
+ point?: boolean | undefined;
953
+ rewardTokenSymbol?: string | undefined;
954
+ order?: string | undefined;
955
+ test?: boolean | undefined;
956
+ minimumTvl?: number | undefined;
957
+ };
958
+ headers: unknown;
959
+ response: {
960
+ 200: {
961
+ min: number;
962
+ max: number;
963
+ binWidth: number;
964
+ bins: any[];
965
+ };
966
+ };
967
+ };
968
+ };
969
+ };
970
+ };
591
971
  } & {
592
972
  opportunities: {
593
973
  ":id": {
@@ -1641,6 +2021,31 @@ export declare const v4: Elysia<"/v4", false, {
1641
2021
  };
1642
2022
  };
1643
2023
  };
2024
+ } & {
2025
+ ":id": {
2026
+ timeseries: {
2027
+ get: {
2028
+ body: unknown;
2029
+ params: {
2030
+ id: string;
2031
+ };
2032
+ query: unknown;
2033
+ headers: unknown;
2034
+ response: {
2035
+ 200: {
2036
+ tvlRecords: {
2037
+ total: number;
2038
+ timestamp: bigint;
2039
+ }[];
2040
+ aprRecords: {
2041
+ timestamp: bigint;
2042
+ cumulated: number;
2043
+ }[];
2044
+ };
2045
+ };
2046
+ };
2047
+ };
2048
+ };
1644
2049
  } & {
1645
2050
  "campaigns-to-process": {
1646
2051
  index: {