@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.
@@ -365,144 +365,41 @@ export declare const v4: Elysia<"/v4", false, {
365
365
  };
366
366
  headers: unknown;
367
367
  response: {
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;
368
+ 200: {
369
+ apr: number;
370
+ aprRecord: {
382
371
  cumulated: number;
383
- breakdowns: {
384
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
385
- id: string;
386
- identifier: string;
372
+ timestamp: bigint;
373
+ breakdowns: ({
387
374
  value: number;
388
- aprRecordId: string;
389
- }[];
390
- } | undefined;
391
- tvlRecord?: {
392
- total: number;
393
- timestamp: string | bigint;
394
- breakdowns: {
395
- type: "TOKEN" | "PROTOCOL";
396
- id: string;
375
+ distributionType: import("@db/api").$Enums.DistributionType;
397
376
  identifier: string;
377
+ type: "CAMPAIGN";
378
+ } | {
398
379
  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
- };
421
- id: string;
422
- value: number;
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;
380
+ identifier: string;
381
+ type: import("@db/api").$Enums.AprType;
382
+ })[];
453
383
  };
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;
384
+ tvlRecord: {
470
385
  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?: {
489
386
  total: number;
490
- timestamp: string | bigint;
387
+ timestamp: bigint;
491
388
  breakdowns: {
492
- type: "TOKEN" | "PROTOCOL";
493
- id: string;
389
+ type: import("@db/api").$Enums.TvlType;
494
390
  identifier: string;
495
391
  value: number;
496
- tvlRecordId: string;
497
392
  }[];
498
- } | undefined;
499
- rewardsRecord?: {
500
- total: number;
393
+ };
394
+ rewardsRecord: {
501
395
  id: string;
502
- timestamp: string | bigint;
396
+ total: number;
397
+ timestamp: bigint;
503
398
  breakdowns: {
399
+ id: string;
400
+ campaignId: string;
401
+ dailyRewardsRecordId: string;
504
402
  token: {
505
- price?: number | null | undefined;
506
403
  symbol: string;
507
404
  name: string | null;
508
405
  id: string;
@@ -510,117 +407,29 @@ export declare const v4: Elysia<"/v4", false, {
510
407
  address: string;
511
408
  chainId: number;
512
409
  decimals: number;
410
+ displaySymbol: string;
513
411
  verified: boolean;
514
412
  isTest: boolean;
515
413
  isPoint: boolean;
516
414
  isPreTGE: boolean;
415
+ isNative: boolean;
416
+ price: number | null;
517
417
  };
518
- id: string;
418
+ amount: any;
519
419
  value: number;
520
- campaignId: string;
521
- amount: string | bigint;
522
- dailyRewardsRecordId: string;
420
+ distributionType: import("@db/api").$Enums.DistributionType;
523
421
  }[];
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;
550
422
  };
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;
423
+ campaigns: {
424
+ params: any;
425
+ chain: {
562
426
  name: string;
563
- description: string;
564
- id: string;
565
- tags: string[];
427
+ id: number;
566
428
  icon: string;
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;
429
+ };
430
+ endTimestamp: number;
431
+ startTimestamp: number;
432
+ rewardToken: {
624
433
  symbol: string;
625
434
  name: string | null;
626
435
  id: string;
@@ -632,89 +441,67 @@ export declare const v4: Elysia<"/v4", false, {
632
441
  isTest: boolean;
633
442
  isPoint: boolean;
634
443
  isPreTGE: boolean;
635
- }[];
636
- description: string;
637
- id: string;
638
- tags: string[];
639
- identifier: string;
640
- chain: {
444
+ isNative: boolean;
445
+ } & {
446
+ price?: number | null | undefined;
447
+ };
448
+ distributionChain: {
641
449
  name: string;
642
450
  id: number;
643
451
  icon: string;
452
+ } | undefined;
453
+ campaignStatus: {
454
+ computedUntil: number;
455
+ processingStarted: number;
456
+ status: import("@db/api").$Enums.RunStatus;
457
+ error: string;
458
+ details: import("database/api/.generated/runtime/library").JsonValue;
459
+ campaignId: string;
460
+ } | undefined;
461
+ creatorAddress: string;
462
+ creator: {
463
+ tags: string[];
464
+ address: string;
465
+ creatorId: string | null;
644
466
  };
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";
467
+ createdAt: string;
468
+ description: string | undefined;
469
+ Opportunity: {
470
+ status: import("@db/api").$Enums.Status;
471
+ type: string;
472
+ name: string;
473
+ description: string;
681
474
  id: string;
475
+ tags: string[];
682
476
  identifier: string;
683
- value: number;
684
- tvlRecordId: string;
685
- }[];
686
- } | undefined;
687
- rewardsRecord?: {
688
- total: number;
477
+ action: import("@db/api").$Enums.OpportunityAction;
478
+ manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
479
+ chainId: number;
480
+ howToSteps: string[];
481
+ depositUrl: string | null;
482
+ explorerAddress: string | null;
483
+ mainProtocolId: string | null;
484
+ tvl: number;
485
+ apr: number;
486
+ dailyRewards: number;
487
+ lastCampaignCreatedAt: Date;
488
+ };
489
+ type: string;
689
490
  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
- };
706
- id: string;
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;
491
+ subType: number | null;
492
+ computeChainId: number;
493
+ distributionChainId: number;
494
+ campaignId: string;
495
+ distributionType: import("@db/api").$Enums.DistributionType;
496
+ rewardTokenId: string;
497
+ amount: string;
498
+ opportunityId: string;
499
+ }[] | undefined;
500
+ id: string;
501
+ depositUrl: string | undefined;
502
+ explorerAddress: string | undefined;
503
+ lastCampaignCreatedAt: string;
504
+ tokens: ({
718
505
  symbol: string;
719
506
  name: string | null;
720
507
  id: string;
@@ -726,121 +513,35 @@ export declare const v4: Elysia<"/v4", false, {
726
513
  isTest: boolean;
727
514
  isPoint: boolean;
728
515
  isPreTGE: boolean;
729
- }[];
730
- description: string;
731
- id: string;
732
- tags: string[];
733
- identifier: string;
516
+ isNative: boolean;
517
+ } & {
518
+ price?: number | null | undefined;
519
+ })[];
734
520
  chain: {
735
521
  name: string;
736
522
  id: number;
737
523
  icon: string;
738
524
  };
739
- action: string;
740
- chainId: number;
741
- howToSteps: string[];
742
- tvl: number;
743
- apr: number;
744
- dailyRewards: number;
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;
525
+ protocol: {
526
+ url: string;
811
527
  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
528
  description: string;
827
529
  id: string;
828
530
  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
- };
531
+ icon: string;
532
+ } | undefined;
533
+ status: import("@db/api").$Enums.Status;
534
+ type: string;
535
+ name: string;
536
+ description: string;
537
+ tags: string[];
538
+ identifier: string;
539
+ action: import("@db/api").$Enums.OpportunityAction;
540
+ chainId: number;
541
+ howToSteps: string[];
542
+ tvl: number;
543
+ dailyRewards: number;
544
+ }[];
844
545
  };
845
546
  };
846
547
  };
@@ -999,10 +700,8 @@ export declare const v4: Elysia<"/v4", false, {
999
700
  cumulated: number;
1000
701
  breakdowns: {
1001
702
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1002
- id: string;
1003
703
  identifier: string;
1004
704
  value: number;
1005
- aprRecordId: string;
1006
705
  }[];
1007
706
  } | undefined;
1008
707
  tvlRecord?: {
@@ -1010,10 +709,8 @@ export declare const v4: Elysia<"/v4", false, {
1010
709
  timestamp: string | bigint;
1011
710
  breakdowns: {
1012
711
  type: "TOKEN" | "PROTOCOL";
1013
- id: string;
1014
712
  identifier: string;
1015
713
  value: number;
1016
- tvlRecordId: string;
1017
714
  }[];
1018
715
  } | undefined;
1019
716
  rewardsRecord?: {
@@ -1138,10 +835,8 @@ export declare const v4: Elysia<"/v4", false, {
1138
835
  cumulated: number;
1139
836
  breakdowns: {
1140
837
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1141
- id: string;
1142
838
  identifier: string;
1143
839
  value: number;
1144
- aprRecordId: string;
1145
840
  }[];
1146
841
  } | undefined;
1147
842
  tvlRecord?: {
@@ -1149,10 +844,8 @@ export declare const v4: Elysia<"/v4", false, {
1149
844
  timestamp: string | bigint;
1150
845
  breakdowns: {
1151
846
  type: "TOKEN" | "PROTOCOL";
1152
- id: string;
1153
847
  identifier: string;
1154
848
  value: number;
1155
- tvlRecordId: string;
1156
849
  }[];
1157
850
  } | undefined;
1158
851
  rewardsRecord?: {
@@ -1314,10 +1007,8 @@ export declare const v4: Elysia<"/v4", false, {
1314
1007
  cumulated: number;
1315
1008
  breakdowns: {
1316
1009
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
1317
- id: string;
1318
1010
  identifier: string;
1319
1011
  value: number;
1320
- aprRecordId: string;
1321
1012
  }[];
1322
1013
  } | undefined;
1323
1014
  tvlRecord?: {
@@ -1325,10 +1016,8 @@ export declare const v4: Elysia<"/v4", false, {
1325
1016
  timestamp: string | bigint;
1326
1017
  breakdowns: {
1327
1018
  type: "TOKEN" | "PROTOCOL";
1328
- id: string;
1329
1019
  identifier: string;
1330
1020
  value: number;
1331
- tvlRecordId: string;
1332
1021
  }[];
1333
1022
  } | undefined;
1334
1023
  rewardsRecord?: {