@merkl/api 0.10.238 → 0.10.240

Sign up to get free protection for your applications and to get access to all the features.
@@ -413,45 +413,40 @@ declare const eden: {
413
413
  };
414
414
  fetch?: RequestInit | undefined;
415
415
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
416
- 200: ({
417
- protocol?: {
418
- name: string;
419
- url: string;
420
- description: string;
421
- id: string;
422
- tags: string[];
423
- icon: string;
424
- } | null | undefined;
425
- depositUrl?: string | undefined;
426
- aprRecord?: {
427
- timestamp: string | bigint;
416
+ 200: {
417
+ aprRecord: {
428
418
  cumulated: number;
419
+ timestamp: bigint;
429
420
  breakdowns: {
430
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
421
+ type: import("../../database/api/.generated").$Enums.AprType;
431
422
  id: number;
432
423
  identifier: string;
433
424
  value: number;
434
425
  aprRecordId: string;
435
426
  }[];
436
- } | undefined;
437
- tvlRecord?: {
427
+ };
428
+ tvlRecord: {
429
+ id: string;
438
430
  total: number;
439
- timestamp: string | bigint;
431
+ timestamp: bigint;
440
432
  breakdowns: {
441
- type: "TOKEN" | "PROTOCOL";
433
+ type: import("../../database/api/.generated").$Enums.TvlType;
442
434
  id: number;
443
435
  identifier: string;
444
436
  value: number;
445
437
  tvlRecordId: string;
446
438
  }[];
447
- } | undefined;
448
- rewardsRecord?: {
449
- total: number;
439
+ };
440
+ rewardsRecord: {
450
441
  id: string;
451
- timestamp: string | bigint;
442
+ total: number;
443
+ timestamp: bigint;
452
444
  breakdowns: {
445
+ id: number;
446
+ value: number;
447
+ campaignId: string;
448
+ dailyRewardsRecordId: string;
453
449
  token: {
454
- price?: number | null | undefined;
455
450
  symbol: string;
456
451
  name: string | null;
457
452
  id: string;
@@ -459,20 +454,17 @@ declare const eden: {
459
454
  chainId: number;
460
455
  address: string;
461
456
  decimals: number;
457
+ displaySymbol: string;
462
458
  verified: boolean;
463
459
  isTest: boolean;
460
+ price: number | null;
464
461
  };
465
- id: number;
466
- value: number;
467
- campaignId: string;
468
- amount: string | bigint;
469
- dailyRewardsRecordId: string;
462
+ amount: bigint;
470
463
  }[];
471
- } | undefined;
472
- name: string;
473
- type: string;
474
- tokens: {
475
- price?: number | null | undefined;
464
+ };
465
+ id: string;
466
+ depositUrl: string | undefined;
467
+ tokens: ({
476
468
  symbol: string;
477
469
  name: string | null;
478
470
  id: string;
@@ -482,85 +474,153 @@ declare const eden: {
482
474
  decimals: number;
483
475
  verified: boolean;
484
476
  isTest: boolean;
485
- }[];
486
- id: string;
487
- status: string;
488
- tags: string[];
489
- identifier: string;
477
+ } & {
478
+ price?: number | null | undefined;
479
+ })[];
490
480
  chain: {
491
481
  name: string;
492
482
  id: number;
493
483
  icon: string;
494
484
  };
495
- chainId: number;
496
- action: string;
497
- tvl: number;
498
- apr: number;
499
- dailyRewards: number;
500
- } | null)[];
501
- } | {
502
- 200: AsyncGenerator<unknown, unknown, unknown>;
503
- } | {
504
- 200: (Response | ({
505
- protocol?: {
485
+ protocol: {
506
486
  name: string;
507
487
  url: string;
508
488
  description: string;
509
489
  id: string;
510
490
  tags: string[];
511
491
  icon: string;
512
- } | null | undefined;
513
- depositUrl?: string | undefined;
514
- aprRecord?: {
515
- timestamp: string | bigint;
516
- cumulated: number;
517
- breakdowns: {
518
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
519
- id: number;
520
- identifier: string;
521
- value: number;
522
- aprRecordId: string;
523
- }[];
524
- } | undefined;
525
- tvlRecord?: {
526
- total: number;
527
- timestamp: string | bigint;
528
- breakdowns: {
529
- type: "TOKEN" | "PROTOCOL";
530
- id: number;
531
- identifier: string;
532
- value: number;
533
- tvlRecordId: string;
534
- }[];
535
- } | undefined;
536
- rewardsRecord?: {
537
- total: number;
538
- id: string;
539
- timestamp: string | bigint;
540
- breakdowns: {
541
- token: {
542
- price?: number | null | undefined;
543
- symbol: string;
544
- name: string | null;
545
- id: string;
546
- icon: string;
547
- chainId: number;
548
- address: string;
549
- decimals: number;
550
- verified: boolean;
551
- isTest: boolean;
552
- };
553
- id: number;
554
- value: number;
555
- campaignId: string;
556
- amount: string | bigint;
557
- dailyRewardsRecordId: string;
558
- }[];
559
492
  } | undefined;
560
493
  name: string;
561
- type: string;
562
- tokens: {
563
- price?: number | null | undefined;
494
+ type: import("../../database/api/.generated").$Enums.CampaignType;
495
+ status: import("../../database/api/.generated").$Enums.Status;
496
+ tags: string[];
497
+ identifier: string;
498
+ chainId: number;
499
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
500
+ tvl: number;
501
+ apr: number;
502
+ dailyRewards: number;
503
+ }[];
504
+ }>>;
505
+ };
506
+ count: {
507
+ get: (options: {
508
+ headers?: Record<string, unknown> | undefined;
509
+ query: {
510
+ sort?: string | undefined;
511
+ name?: string | undefined;
512
+ tokens?: string | undefined;
513
+ status?: string | undefined;
514
+ items?: number | undefined;
515
+ tags?: string | undefined;
516
+ page?: number | undefined;
517
+ chainId?: string | undefined;
518
+ action?: string | undefined;
519
+ mainProtocolId?: string | undefined;
520
+ order?: string | undefined;
521
+ test?: boolean | undefined;
522
+ minimumTvl?: number | undefined;
523
+ };
524
+ fetch?: RequestInit | undefined;
525
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
526
+ 200: number;
527
+ }>>;
528
+ };
529
+ aggregate: ((params: {
530
+ field: string | number;
531
+ }) => {
532
+ get: (options: {
533
+ headers?: Record<string, unknown> | undefined;
534
+ query: {
535
+ sort?: string | undefined;
536
+ name?: string | undefined;
537
+ tokens?: string | undefined;
538
+ status?: string | undefined;
539
+ items?: number | undefined;
540
+ tags?: string | undefined;
541
+ page?: number | undefined;
542
+ chainId?: string | undefined;
543
+ action?: string | undefined;
544
+ mainProtocolId?: string | undefined;
545
+ order?: string | undefined;
546
+ test?: boolean | undefined;
547
+ minimumTvl?: number | undefined;
548
+ };
549
+ fetch?: RequestInit | undefined;
550
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
551
+ 200: {
552
+ sum: File;
553
+ };
554
+ }>>;
555
+ }) & {};
556
+ };
557
+ campaigns: {
558
+ index: {
559
+ post: (body: {
560
+ identifier?: string | undefined;
561
+ subType?: number | undefined;
562
+ type: number;
563
+ params: string;
564
+ creator: string;
565
+ chainId: number;
566
+ startTimestamp: string;
567
+ endTimestamp: string;
568
+ computeChainId: number;
569
+ campaignId: string;
570
+ amount: string;
571
+ rewardTokenAddress: string;
572
+ opportunityIdentifier: string;
573
+ }, options: {
574
+ headers: {
575
+ authorization: string;
576
+ };
577
+ query?: Record<string, unknown> | undefined;
578
+ fetch?: RequestInit | undefined;
579
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
580
+ 200: {
581
+ type: import("../../database/api/.generated").$Enums.CampaignType;
582
+ id: string;
583
+ params: import("database/api/.generated/runtime/library").JsonValue;
584
+ subType: number | null;
585
+ startTimestamp: bigint;
586
+ endTimestamp: bigint;
587
+ computeChainId: number;
588
+ distributionChainId: number;
589
+ campaignId: string;
590
+ rewardTokenId: string;
591
+ amount: string;
592
+ opportunityId: string;
593
+ creatorAddress: string;
594
+ } | undefined;
595
+ }>>;
596
+ get: (options: {
597
+ headers?: Record<string, unknown> | undefined;
598
+ query: {
599
+ type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | undefined;
600
+ items?: number | undefined;
601
+ subType?: number | undefined;
602
+ page?: number | undefined;
603
+ chainId?: number | undefined;
604
+ startTimestamp?: string | undefined;
605
+ endTimestamp?: string | undefined;
606
+ tokenAddress?: string | undefined;
607
+ mainParameter?: string | undefined;
608
+ campaignId?: string | undefined;
609
+ opportunityId?: string | undefined;
610
+ test?: boolean | undefined;
611
+ creatorTag?: string | undefined;
612
+ tokenSymbol?: string | undefined;
613
+ };
614
+ fetch?: RequestInit | undefined;
615
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
616
+ 200: {
617
+ params: any;
618
+ chain: {
619
+ name: string;
620
+ id: number;
621
+ icon: string;
622
+ };
623
+ rewardToken: {
564
624
  symbol: string;
565
625
  name: string | null;
566
626
  id: string;
@@ -570,413 +630,10 @@ declare const eden: {
570
630
  decimals: number;
571
631
  verified: boolean;
572
632
  isTest: boolean;
573
- }[];
574
- id: string;
575
- status: string;
576
- tags: string[];
577
- identifier: string;
578
- chain: {
579
- name: string;
580
- id: number;
581
- icon: string;
582
- };
583
- chainId: number;
584
- action: string;
585
- tvl: number;
586
- apr: number;
587
- dailyRewards: number;
588
- } | null)[] | {
589
- 200: ({
590
- protocol?: {
591
- name: string;
592
- url: string;
593
- description: string;
594
- id: string;
595
- tags: string[];
596
- icon: string;
597
- } | null | undefined;
598
- depositUrl?: string | undefined;
599
- aprRecord?: {
600
- timestamp: string | bigint;
601
- cumulated: number;
602
- breakdowns: {
603
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
604
- id: number;
605
- identifier: string;
606
- value: number;
607
- aprRecordId: string;
608
- }[];
609
- } | undefined;
610
- tvlRecord?: {
611
- total: number;
612
- timestamp: string | bigint;
613
- breakdowns: {
614
- type: "TOKEN" | "PROTOCOL";
615
- id: number;
616
- identifier: string;
617
- value: number;
618
- tvlRecordId: string;
619
- }[];
620
- } | undefined;
621
- rewardsRecord?: {
622
- total: number;
623
- id: string;
624
- timestamp: string | bigint;
625
- breakdowns: {
626
- token: {
627
- price?: number | null | undefined;
628
- symbol: string;
629
- name: string | null;
630
- id: string;
631
- icon: string;
632
- chainId: number;
633
- address: string;
634
- decimals: number;
635
- verified: boolean;
636
- isTest: boolean;
637
- };
638
- id: number;
639
- value: number;
640
- campaignId: string;
641
- amount: string | bigint;
642
- dailyRewardsRecordId: string;
643
- }[];
644
- } | undefined;
645
- name: string;
646
- type: string;
647
- tokens: {
648
- price?: number | null | undefined;
649
- symbol: string;
650
- name: string | null;
651
- id: string;
652
- icon: string;
653
- chainId: number;
654
- address: string;
655
- decimals: number;
656
- verified: boolean;
657
- isTest: boolean;
658
- }[];
659
- id: string;
660
- status: string;
661
- tags: string[];
662
- identifier: string;
663
- chain: {
664
- name: string;
665
- id: number;
666
- icon: string;
667
- };
668
- chainId: number;
669
- action: string;
670
- tvl: number;
671
- apr: number;
672
- dailyRewards: number;
673
- } | null)[];
674
- }) & ({
675
- protocol?: {
676
- name: string;
677
- url: string;
678
- description: string;
679
- id: string;
680
- tags: string[];
681
- icon: string;
682
- } | null | undefined;
683
- depositUrl?: string | undefined;
684
- aprRecord?: {
685
- timestamp: string | bigint;
686
- cumulated: number;
687
- breakdowns: {
688
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
689
- id: number;
690
- identifier: string;
691
- value: number;
692
- aprRecordId: string;
693
- }[];
694
- } | undefined;
695
- tvlRecord?: {
696
- total: number;
697
- timestamp: string | bigint;
698
- breakdowns: {
699
- type: "TOKEN" | "PROTOCOL";
700
- id: number;
701
- identifier: string;
702
- value: number;
703
- tvlRecordId: string;
704
- }[];
705
- } | undefined;
706
- rewardsRecord?: {
707
- total: number;
708
- id: string;
709
- timestamp: string | bigint;
710
- breakdowns: {
711
- token: {
712
- price?: number | null | undefined;
713
- symbol: string;
714
- name: string | null;
715
- id: string;
716
- icon: string;
717
- chainId: number;
718
- address: string;
719
- decimals: number;
720
- verified: boolean;
721
- isTest: boolean;
722
- };
723
- id: number;
724
- value: number;
725
- campaignId: string;
726
- amount: string | bigint;
727
- dailyRewardsRecordId: string;
728
- }[];
729
- } | undefined;
730
- name: string;
731
- type: string;
732
- tokens: {
733
- price?: number | null | undefined;
734
- symbol: string;
735
- name: string | null;
736
- id: string;
737
- icon: string;
738
- chainId: number;
739
- address: string;
740
- decimals: number;
741
- verified: boolean;
742
- isTest: boolean;
743
- }[];
744
- id: string;
745
- status: string;
746
- tags: string[];
747
- identifier: string;
748
- chain: {
749
- name: string;
750
- id: number;
751
- icon: string;
752
- };
753
- chainId: number;
754
- action: string;
755
- tvl: number;
756
- apr: number;
757
- dailyRewards: number;
758
- } | null)[];
759
- } | {
760
- 200: {
761
- 200: ({
762
- protocol?: {
763
- name: string;
764
- url: string;
765
- description: string;
766
- id: string;
767
- tags: string[];
768
- icon: string;
769
- } | null | undefined;
770
- depositUrl?: string | undefined;
771
- aprRecord?: {
772
- timestamp: string | bigint;
773
- cumulated: number;
774
- breakdowns: {
775
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
776
- id: number;
777
- identifier: string;
778
- value: number;
779
- aprRecordId: string;
780
- }[];
781
- } | undefined;
782
- tvlRecord?: {
783
- total: number;
784
- timestamp: string | bigint;
785
- breakdowns: {
786
- type: "TOKEN" | "PROTOCOL";
787
- id: number;
788
- identifier: string;
789
- value: number;
790
- tvlRecordId: string;
791
- }[];
792
- } | undefined;
793
- rewardsRecord?: {
794
- total: number;
795
- id: string;
796
- timestamp: string | bigint;
797
- breakdowns: {
798
- token: {
799
- price?: number | null | undefined;
800
- symbol: string;
801
- name: string | null;
802
- id: string;
803
- icon: string;
804
- chainId: number;
805
- address: string;
806
- decimals: number;
807
- verified: boolean;
808
- isTest: boolean;
809
- };
810
- id: number;
811
- value: number;
812
- campaignId: string;
813
- amount: string | bigint;
814
- dailyRewardsRecordId: string;
815
- }[];
816
- } | undefined;
817
- name: string;
818
- type: string;
819
- tokens: {
820
- price?: number | null | undefined;
821
- symbol: string;
822
- name: string | null;
823
- id: string;
824
- icon: string;
825
- chainId: number;
826
- address: string;
827
- decimals: number;
828
- verified: boolean;
829
- isTest: boolean;
830
- }[];
831
- id: string;
832
- status: string;
833
- tags: string[];
834
- identifier: string;
835
- chain: {
836
- name: string;
837
- id: number;
838
- icon: string;
839
- };
840
- chainId: number;
841
- action: string;
842
- tvl: number;
843
- apr: number;
844
- dailyRewards: number;
845
- } | null)[];
846
- };
847
- }>>;
848
- };
849
- count: {
850
- get: (options: {
851
- headers?: Record<string, unknown> | undefined;
852
- query: {
853
- sort?: string | undefined;
854
- name?: string | undefined;
855
- tokens?: string | undefined;
856
- status?: string | undefined;
857
- items?: number | undefined;
858
- tags?: string | undefined;
859
- page?: number | undefined;
860
- chainId?: string | undefined;
861
- action?: string | undefined;
862
- mainProtocolId?: string | undefined;
863
- order?: string | undefined;
864
- test?: boolean | undefined;
865
- minimumTvl?: number | undefined;
866
- };
867
- fetch?: RequestInit | undefined;
868
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
869
- 200: number;
870
- }>>;
871
- };
872
- aggregate: ((params: {
873
- field: string | number;
874
- }) => {
875
- get: (options: {
876
- headers?: Record<string, unknown> | undefined;
877
- query: {
878
- sort?: string | undefined;
879
- name?: string | undefined;
880
- tokens?: string | undefined;
881
- status?: string | undefined;
882
- items?: number | undefined;
883
- tags?: string | undefined;
884
- page?: number | undefined;
885
- chainId?: string | undefined;
886
- action?: string | undefined;
887
- mainProtocolId?: string | undefined;
888
- order?: string | undefined;
889
- test?: boolean | undefined;
890
- minimumTvl?: number | undefined;
891
- };
892
- fetch?: RequestInit | undefined;
893
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
894
- 200: {
895
- sum: File;
896
- };
897
- }>>;
898
- }) & {};
899
- };
900
- campaigns: {
901
- index: {
902
- post: (body: {
903
- identifier?: string | undefined;
904
- subType?: number | undefined;
905
- type: number;
906
- params: string;
907
- creator: string;
908
- chainId: number;
909
- startTimestamp: string;
910
- endTimestamp: string;
911
- computeChainId: number;
912
- campaignId: string;
913
- amount: string;
914
- rewardTokenAddress: string;
915
- opportunityIdentifier: string;
916
- }, options: {
917
- headers: {
918
- authorization: string;
919
- };
920
- query?: Record<string, unknown> | undefined;
921
- fetch?: RequestInit | undefined;
922
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
923
- 200: {
924
- type: import("../../database/api/.generated").$Enums.CampaignType;
925
- id: string;
926
- params: import("database/api/.generated/runtime/library").JsonValue;
927
- subType: number | null;
928
- startTimestamp: bigint;
929
- endTimestamp: bigint;
930
- computeChainId: number;
931
- distributionChainId: number;
932
- campaignId: string;
933
- rewardTokenId: string;
934
- amount: string;
935
- opportunityId: string;
936
- creatorAddress: string;
937
- } | undefined;
938
- }>>;
939
- get: (options: {
940
- headers?: Record<string, unknown> | undefined;
941
- query: {
942
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | undefined;
943
- items?: number | undefined;
944
- subType?: number | undefined;
945
- page?: number | undefined;
946
- chainId?: number | undefined;
947
- startTimestamp?: string | undefined;
948
- endTimestamp?: string | undefined;
949
- tokenAddress?: string | undefined;
950
- mainParameter?: string | undefined;
951
- campaignId?: string | undefined;
952
- opportunityId?: string | undefined;
953
- test?: boolean | undefined;
954
- creatorTag?: string | undefined;
955
- tokenSymbol?: string | undefined;
956
- };
957
- fetch?: RequestInit | undefined;
958
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
959
- 200: {
960
- params: any;
961
- chain: {
962
- name: string;
963
- id: number;
964
- icon: string;
965
- };
966
- rewardToken: {
967
- symbol: string;
968
- name: string | null;
969
- id: string;
970
- icon: string;
971
- chainId: number;
972
- address: string;
973
- decimals: number;
974
- verified: boolean;
975
- isTest: boolean;
976
- } & {
977
- price?: number | null | undefined;
978
- };
979
- distributionChain: {
633
+ } & {
634
+ price?: number | null | undefined;
635
+ };
636
+ distributionChain: {
980
637
  name: string;
981
638
  id: number;
982
639
  icon: string;
@@ -1248,6 +905,7 @@ declare const eden: {
1248
905
  name?: string | undefined;
1249
906
  chainId?: any;
1250
907
  address?: string | undefined;
908
+ displaySymbol?: string | undefined;
1251
909
  verified?: boolean | undefined;
1252
910
  test?: boolean | undefined;
1253
911
  };
@@ -1302,6 +960,7 @@ declare const eden: {
1302
960
  name?: string | undefined;
1303
961
  chainId?: any;
1304
962
  address?: string | undefined;
963
+ displaySymbol?: string | undefined;
1305
964
  verified?: boolean | undefined;
1306
965
  test?: boolean | undefined;
1307
966
  };
@@ -3224,354 +2883,91 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3224
2883
  v4: {};
3225
2884
  } & {
3226
2885
  v4: {
3227
- opportunities: {
3228
- index: {
3229
- post: {
3230
- body: {
3231
- name?: string | undefined;
3232
- type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
3233
- tokens: {
3234
- chainId: number;
3235
- address: string;
3236
- }[];
3237
- status: "NONE" | "PAST" | "LIVE" | "SOON";
3238
- identifier: string;
3239
- chainId: number;
3240
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
3241
- protocols: string[];
3242
- mainProtocol: string;
3243
- };
3244
- params: {};
3245
- query: unknown;
3246
- headers: {
3247
- authorization: string;
3248
- };
3249
- response: {
3250
- 200: void;
3251
- };
3252
- };
3253
- };
3254
- };
3255
- } & {
3256
- opportunities: {
3257
- index: {
3258
- get: {
3259
- body: unknown;
3260
- params: {};
3261
- query: {
3262
- sort?: string | undefined;
3263
- name?: string | undefined;
3264
- tokens?: string | undefined;
3265
- status?: string | undefined;
3266
- items?: number | undefined;
3267
- tags?: string | undefined;
3268
- page?: number | undefined;
3269
- chainId?: string | undefined;
3270
- action?: string | undefined;
3271
- mainProtocolId?: string | undefined;
3272
- order?: string | undefined;
3273
- test?: boolean | undefined;
3274
- minimumTvl?: number | undefined;
3275
- };
3276
- headers: unknown;
3277
- response: {
3278
- 200: ({
3279
- protocol?: {
3280
- name: string;
3281
- url: string;
3282
- description: string;
3283
- id: string;
3284
- tags: string[];
3285
- icon: string;
3286
- } | null | undefined;
3287
- depositUrl?: string | undefined;
3288
- aprRecord?: {
3289
- timestamp: string | bigint;
3290
- cumulated: number;
3291
- breakdowns: {
3292
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
3293
- id: number;
3294
- identifier: string;
3295
- value: number;
3296
- aprRecordId: string;
3297
- }[];
3298
- } | undefined;
3299
- tvlRecord?: {
3300
- total: number;
3301
- timestamp: string | bigint;
3302
- breakdowns: {
3303
- type: "TOKEN" | "PROTOCOL";
3304
- id: number;
3305
- identifier: string;
3306
- value: number;
3307
- tvlRecordId: string;
3308
- }[];
3309
- } | undefined;
3310
- rewardsRecord?: {
3311
- total: number;
3312
- id: string;
3313
- timestamp: string | bigint;
3314
- breakdowns: {
3315
- token: {
3316
- price?: number | null | undefined;
3317
- symbol: string;
3318
- name: string | null;
3319
- id: string;
3320
- icon: string;
3321
- chainId: number;
3322
- address: string;
3323
- decimals: number;
3324
- verified: boolean;
3325
- isTest: boolean;
3326
- };
3327
- id: number;
3328
- value: number;
3329
- campaignId: string;
3330
- amount: string | bigint;
3331
- dailyRewardsRecordId: string;
3332
- }[];
3333
- } | undefined;
3334
- name: string;
3335
- type: string;
3336
- tokens: {
3337
- price?: number | null | undefined;
3338
- symbol: string;
3339
- name: string | null;
3340
- id: string;
3341
- icon: string;
3342
- chainId: number;
3343
- address: string;
3344
- decimals: number;
3345
- verified: boolean;
3346
- isTest: boolean;
3347
- }[];
3348
- id: string;
3349
- status: string;
3350
- tags: string[];
3351
- identifier: string;
3352
- chain: {
3353
- name: string;
3354
- id: number;
3355
- icon: string;
3356
- };
3357
- chainId: number;
3358
- action: string;
3359
- tvl: number;
3360
- apr: number;
3361
- dailyRewards: number;
3362
- } | null)[];
3363
- } | {
3364
- 200: never;
3365
- } | {
3366
- 200: (Response | ({
3367
- protocol?: {
3368
- name: string;
3369
- url: string;
3370
- description: string;
3371
- id: string;
3372
- tags: string[];
3373
- icon: string;
3374
- } | null | undefined;
3375
- depositUrl?: string | undefined;
3376
- aprRecord?: {
3377
- timestamp: string | bigint;
3378
- cumulated: number;
3379
- breakdowns: {
3380
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
3381
- id: number;
3382
- identifier: string;
3383
- value: number;
3384
- aprRecordId: string;
3385
- }[];
3386
- } | undefined;
3387
- tvlRecord?: {
3388
- total: number;
3389
- timestamp: string | bigint;
3390
- breakdowns: {
3391
- type: "TOKEN" | "PROTOCOL";
3392
- id: number;
3393
- identifier: string;
3394
- value: number;
3395
- tvlRecordId: string;
3396
- }[];
3397
- } | undefined;
3398
- rewardsRecord?: {
3399
- total: number;
3400
- id: string;
3401
- timestamp: string | bigint;
3402
- breakdowns: {
3403
- token: {
3404
- price?: number | null | undefined;
3405
- symbol: string;
3406
- name: string | null;
3407
- id: string;
3408
- icon: string;
3409
- chainId: number;
3410
- address: string;
3411
- decimals: number;
3412
- verified: boolean;
3413
- isTest: boolean;
3414
- };
3415
- id: number;
3416
- value: number;
3417
- campaignId: string;
3418
- amount: string | bigint;
3419
- dailyRewardsRecordId: string;
3420
- }[];
3421
- } | undefined;
3422
- name: string;
3423
- type: string;
3424
- tokens: {
3425
- price?: number | null | undefined;
3426
- symbol: string;
3427
- name: string | null;
3428
- id: string;
3429
- icon: string;
3430
- chainId: number;
3431
- address: string;
3432
- decimals: number;
3433
- verified: boolean;
3434
- isTest: boolean;
3435
- }[];
3436
- id: string;
3437
- status: string;
3438
- tags: string[];
3439
- identifier: string;
3440
- chain: {
3441
- name: string;
3442
- id: number;
3443
- icon: string;
3444
- };
2886
+ opportunities: {
2887
+ index: {
2888
+ post: {
2889
+ body: {
2890
+ name?: string | undefined;
2891
+ type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
2892
+ tokens: {
3445
2893
  chainId: number;
3446
- action: string;
3447
- tvl: number;
3448
- apr: number;
3449
- dailyRewards: number;
3450
- } | null)[] | {
3451
- 200: ({
3452
- protocol?: {
3453
- name: string;
3454
- url: string;
3455
- description: string;
3456
- id: string;
3457
- tags: string[];
3458
- icon: string;
3459
- } | null | undefined;
3460
- depositUrl?: string | undefined;
3461
- aprRecord?: {
3462
- timestamp: string | bigint;
3463
- cumulated: number;
3464
- breakdowns: {
3465
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
3466
- id: number;
3467
- identifier: string;
3468
- value: number;
3469
- aprRecordId: string;
3470
- }[];
3471
- } | undefined;
3472
- tvlRecord?: {
3473
- total: number;
3474
- timestamp: string | bigint;
3475
- breakdowns: {
3476
- type: "TOKEN" | "PROTOCOL";
3477
- id: number;
3478
- identifier: string;
3479
- value: number;
3480
- tvlRecordId: string;
3481
- }[];
3482
- } | undefined;
3483
- rewardsRecord?: {
3484
- total: number;
3485
- id: string;
3486
- timestamp: string | bigint;
3487
- breakdowns: {
3488
- token: {
3489
- price?: number | null | undefined;
3490
- symbol: string;
3491
- name: string | null;
3492
- id: string;
3493
- icon: string;
3494
- chainId: number;
3495
- address: string;
3496
- decimals: number;
3497
- verified: boolean;
3498
- isTest: boolean;
3499
- };
3500
- id: number;
3501
- value: number;
3502
- campaignId: string;
3503
- amount: string | bigint;
3504
- dailyRewardsRecordId: string;
3505
- }[];
3506
- } | undefined;
3507
- name: string;
3508
- type: string;
3509
- tokens: {
3510
- price?: number | null | undefined;
3511
- symbol: string;
3512
- name: string | null;
3513
- id: string;
3514
- icon: string;
3515
- chainId: number;
3516
- address: string;
3517
- decimals: number;
3518
- verified: boolean;
3519
- isTest: boolean;
3520
- }[];
3521
- id: string;
3522
- status: string;
3523
- tags: string[];
3524
- identifier: string;
3525
- chain: {
3526
- name: string;
3527
- id: number;
3528
- icon: string;
3529
- };
3530
- chainId: number;
3531
- action: string;
3532
- tvl: number;
3533
- apr: number;
3534
- dailyRewards: number;
3535
- } | null)[];
3536
- }) & ({
3537
- protocol?: {
3538
- name: string;
3539
- url: string;
3540
- description: string;
3541
- id: string;
3542
- tags: string[];
3543
- icon: string;
3544
- } | null | undefined;
3545
- depositUrl?: string | undefined;
3546
- aprRecord?: {
3547
- timestamp: string | bigint;
2894
+ address: string;
2895
+ }[];
2896
+ status: "NONE" | "PAST" | "LIVE" | "SOON";
2897
+ identifier: string;
2898
+ chainId: number;
2899
+ action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
2900
+ protocols: string[];
2901
+ mainProtocol: string;
2902
+ };
2903
+ params: {};
2904
+ query: unknown;
2905
+ headers: {
2906
+ authorization: string;
2907
+ };
2908
+ response: {
2909
+ 200: void;
2910
+ };
2911
+ };
2912
+ };
2913
+ };
2914
+ } & {
2915
+ opportunities: {
2916
+ index: {
2917
+ get: {
2918
+ body: unknown;
2919
+ params: {};
2920
+ query: {
2921
+ sort?: string | undefined;
2922
+ name?: string | undefined;
2923
+ tokens?: string | undefined;
2924
+ status?: string | undefined;
2925
+ items?: number | undefined;
2926
+ tags?: string | undefined;
2927
+ page?: number | undefined;
2928
+ chainId?: string | undefined;
2929
+ action?: string | undefined;
2930
+ mainProtocolId?: string | undefined;
2931
+ order?: string | undefined;
2932
+ test?: boolean | undefined;
2933
+ minimumTvl?: number | undefined;
2934
+ };
2935
+ headers: unknown;
2936
+ response: {
2937
+ 200: {
2938
+ aprRecord: {
3548
2939
  cumulated: number;
2940
+ timestamp: bigint;
3549
2941
  breakdowns: {
3550
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
2942
+ type: import("../../database/api/.generated").$Enums.AprType;
3551
2943
  id: number;
3552
2944
  identifier: string;
3553
2945
  value: number;
3554
2946
  aprRecordId: string;
3555
2947
  }[];
3556
- } | undefined;
3557
- tvlRecord?: {
2948
+ };
2949
+ tvlRecord: {
2950
+ id: string;
3558
2951
  total: number;
3559
- timestamp: string | bigint;
2952
+ timestamp: bigint;
3560
2953
  breakdowns: {
3561
- type: "TOKEN" | "PROTOCOL";
2954
+ type: import("../../database/api/.generated").$Enums.TvlType;
3562
2955
  id: number;
3563
2956
  identifier: string;
3564
2957
  value: number;
3565
2958
  tvlRecordId: string;
3566
2959
  }[];
3567
- } | undefined;
3568
- rewardsRecord?: {
3569
- total: number;
2960
+ };
2961
+ rewardsRecord: {
3570
2962
  id: string;
3571
- timestamp: string | bigint;
2963
+ total: number;
2964
+ timestamp: bigint;
3572
2965
  breakdowns: {
2966
+ id: number;
2967
+ value: number;
2968
+ campaignId: string;
2969
+ dailyRewardsRecordId: string;
3573
2970
  token: {
3574
- price?: number | null | undefined;
3575
2971
  symbol: string;
3576
2972
  name: string | null;
3577
2973
  id: string;
@@ -3579,20 +2975,17 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3579
2975
  chainId: number;
3580
2976
  address: string;
3581
2977
  decimals: number;
2978
+ displaySymbol: string;
3582
2979
  verified: boolean;
3583
2980
  isTest: boolean;
2981
+ price: number | null;
3584
2982
  };
3585
- id: number;
3586
- value: number;
3587
- campaignId: string;
3588
- amount: string | bigint;
3589
- dailyRewardsRecordId: string;
2983
+ amount: bigint;
3590
2984
  }[];
3591
- } | undefined;
3592
- name: string;
3593
- type: string;
3594
- tokens: {
3595
- price?: number | null | undefined;
2985
+ };
2986
+ id: string;
2987
+ depositUrl: string | undefined;
2988
+ tokens: ({
3596
2989
  symbol: string;
3597
2990
  name: string | null;
3598
2991
  id: string;
@@ -3602,110 +2995,33 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3602
2995
  decimals: number;
3603
2996
  verified: boolean;
3604
2997
  isTest: boolean;
3605
- }[];
3606
- id: string;
3607
- status: string;
3608
- tags: string[];
3609
- identifier: string;
3610
- chain: {
3611
- name: string;
3612
- id: number;
3613
- icon: string;
3614
- };
3615
- chainId: number;
3616
- action: string;
3617
- tvl: number;
3618
- apr: number;
3619
- dailyRewards: number;
3620
- } | null)[];
3621
- } | {
3622
- 200: {
3623
- 200: ({
3624
- protocol?: {
3625
- name: string;
3626
- url: string;
3627
- description: string;
3628
- id: string;
3629
- tags: string[];
3630
- icon: string;
3631
- } | null | undefined;
3632
- depositUrl?: string | undefined;
3633
- aprRecord?: {
3634
- timestamp: string | bigint;
3635
- cumulated: number;
3636
- breakdowns: {
3637
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
3638
- id: number;
3639
- identifier: string;
3640
- value: number;
3641
- aprRecordId: string;
3642
- }[];
3643
- } | undefined;
3644
- tvlRecord?: {
3645
- total: number;
3646
- timestamp: string | bigint;
3647
- breakdowns: {
3648
- type: "TOKEN" | "PROTOCOL";
3649
- id: number;
3650
- identifier: string;
3651
- value: number;
3652
- tvlRecordId: string;
3653
- }[];
3654
- } | undefined;
3655
- rewardsRecord?: {
3656
- total: number;
3657
- id: string;
3658
- timestamp: string | bigint;
3659
- breakdowns: {
3660
- token: {
3661
- price?: number | null | undefined;
3662
- symbol: string;
3663
- name: string | null;
3664
- id: string;
3665
- icon: string;
3666
- chainId: number;
3667
- address: string;
3668
- decimals: number;
3669
- verified: boolean;
3670
- isTest: boolean;
3671
- };
3672
- id: number;
3673
- value: number;
3674
- campaignId: string;
3675
- amount: string | bigint;
3676
- dailyRewardsRecordId: string;
3677
- }[];
3678
- } | undefined;
2998
+ } & {
2999
+ price?: number | null | undefined;
3000
+ })[];
3001
+ chain: {
3679
3002
  name: string;
3680
- type: string;
3681
- tokens: {
3682
- price?: number | null | undefined;
3683
- symbol: string;
3684
- name: string | null;
3685
- id: string;
3686
- icon: string;
3687
- chainId: number;
3688
- address: string;
3689
- decimals: number;
3690
- verified: boolean;
3691
- isTest: boolean;
3692
- }[];
3003
+ id: number;
3004
+ icon: string;
3005
+ };
3006
+ protocol: {
3007
+ name: string;
3008
+ url: string;
3009
+ description: string;
3693
3010
  id: string;
3694
- status: string;
3695
3011
  tags: string[];
3696
- identifier: string;
3697
- chain: {
3698
- name: string;
3699
- id: number;
3700
- icon: string;
3701
- };
3702
- chainId: number;
3703
- action: string;
3704
- tvl: number;
3705
- apr: number;
3706
- dailyRewards: number;
3707
- } | null)[];
3708
- };
3012
+ icon: string;
3013
+ } | undefined;
3014
+ name: string;
3015
+ type: import("../../database/api/.generated").$Enums.CampaignType;
3016
+ status: import("../../database/api/.generated").$Enums.Status;
3017
+ tags: string[];
3018
+ identifier: string;
3019
+ chainId: number;
3020
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
3021
+ tvl: number;
3022
+ apr: number;
3023
+ dailyRewards: number;
3024
+ }[];
3709
3025
  };
3710
3026
  };
3711
3027
  };
@@ -4471,6 +3787,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4471
3787
  name?: string | undefined;
4472
3788
  chainId?: any;
4473
3789
  address?: string | undefined;
3790
+ displaySymbol?: string | undefined;
4474
3791
  verified?: boolean | undefined;
4475
3792
  test?: boolean | undefined;
4476
3793
  };
@@ -4504,6 +3821,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4504
3821
  name?: string | undefined;
4505
3822
  chainId?: any;
4506
3823
  address?: string | undefined;
3824
+ displaySymbol?: string | undefined;
4507
3825
  verified?: boolean | undefined;
4508
3826
  test?: boolean | undefined;
4509
3827
  };
@@ -7018,272 +6336,62 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7018
6336
  chainId: number;
7019
6337
  address: string;
7020
6338
  decimals: number;
7021
- verified: boolean;
7022
- isTest: boolean;
7023
- };
7024
- id: number;
7025
- value: number;
7026
- campaignId: string;
7027
- amount: string | bigint;
7028
- dailyRewardsRecordId: string;
7029
- }[];
7030
- } | undefined;
7031
- name: string;
7032
- type: string;
7033
- tokens: {
7034
- price?: number | null | undefined;
7035
- symbol: string;
7036
- name: string | null;
7037
- id: string;
7038
- icon: string;
7039
- chainId: number;
7040
- address: string;
7041
- decimals: number;
7042
- verified: boolean;
7043
- isTest: boolean;
7044
- }[];
7045
- id: string;
7046
- status: string;
7047
- tags: string[];
7048
- identifier: string;
7049
- chain: {
7050
- name: string;
7051
- id: number;
7052
- icon: string;
7053
- };
7054
- chainId: number;
7055
- action: string;
7056
- tvl: number;
7057
- apr: number;
7058
- dailyRewards: number;
7059
- };
7060
- readonly 404: {
7061
- message: string;
7062
- name: string;
7063
- };
7064
- readonly 500: {
7065
- code: string;
7066
- info: string;
7067
- httpCode: number;
7068
- };
7069
- }>>;
7070
- campaigns: {
7071
- get: (options?: {
7072
- headers?: Record<string, unknown> | undefined;
7073
- query?: Record<string, unknown> | undefined;
7074
- fetch?: RequestInit | undefined;
7075
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7076
- 200: {
7077
- protocol?: {
7078
- name: string;
7079
- url: string;
7080
- description: string;
7081
- id: string;
7082
- tags: string[];
7083
- icon: string;
7084
- } | null | undefined;
7085
- depositUrl?: string | undefined;
7086
- aprRecord?: {
7087
- timestamp: string | bigint;
7088
- cumulated: number;
7089
- breakdowns: {
7090
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
7091
- id: number;
7092
- identifier: string;
7093
- value: number;
7094
- aprRecordId: string;
7095
- }[];
7096
- } | undefined;
7097
- tvlRecord?: {
7098
- total: number;
7099
- timestamp: string | bigint;
7100
- breakdowns: {
7101
- type: "TOKEN" | "PROTOCOL";
7102
- id: number;
7103
- identifier: string;
7104
- value: number;
7105
- tvlRecordId: string;
7106
- }[];
7107
- } | undefined;
7108
- rewardsRecord?: {
7109
- total: number;
7110
- id: string;
7111
- timestamp: string | bigint;
7112
- breakdowns: {
7113
- token: {
7114
- price?: number | null | undefined;
7115
- symbol: string;
7116
- name: string | null;
7117
- id: string;
7118
- icon: string;
7119
- chainId: number;
7120
- address: string;
7121
- decimals: number;
7122
- verified: boolean;
7123
- isTest: boolean;
7124
- };
7125
- id: number;
7126
- value: number;
7127
- campaignId: string;
7128
- amount: string | bigint;
7129
- dailyRewardsRecordId: string;
7130
- }[];
7131
- } | undefined;
7132
- name: string;
7133
- type: string;
7134
- tokens: {
7135
- price?: number | null | undefined;
7136
- symbol: string;
7137
- name: string | null;
7138
- id: string;
7139
- icon: string;
7140
- chainId: number;
7141
- address: string;
7142
- decimals: number;
7143
- verified: boolean;
7144
- isTest: boolean;
7145
- }[];
7146
- id: string;
7147
- status: string;
7148
- tags: string[];
7149
- identifier: string;
7150
- chain: {
7151
- name: string;
7152
- id: number;
7153
- icon: string;
7154
- };
7155
- chainId: number;
7156
- action: string;
7157
- tvl: number;
7158
- apr: number;
7159
- dailyRewards: number;
7160
- campaigns: {
7161
- campaignStatus?: {
7162
- error?: string | undefined;
7163
- details?: any;
7164
- status: string;
7165
- campaignId: string;
7166
- computedUntil: string | bigint;
7167
- processingStarted: string | bigint;
7168
- } | undefined;
7169
- distributionChain?: {
7170
- name: string;
7171
- id: number;
7172
- icon: string;
7173
- } | undefined;
7174
- type: string;
7175
- id: string;
7176
- params: any;
7177
- subType: number | null;
7178
- chain: {
7179
- name: string;
7180
- id: number;
7181
- icon: string;
7182
- };
7183
- startTimestamp: string | bigint;
7184
- endTimestamp: string | bigint;
7185
- computeChainId: number;
7186
- distributionChainId: number;
7187
- campaignId: string;
7188
- rewardTokenId: string;
7189
- amount: string;
7190
- opportunityId: string;
7191
- creatorAddress: string;
7192
- rewardToken: {
7193
- price?: number | null | undefined;
7194
- symbol: string;
7195
- name: string | null;
7196
- id: string;
7197
- icon: string;
7198
- chainId: number;
7199
- address: string;
7200
- decimals: number;
7201
- verified: boolean;
7202
- isTest: boolean;
7203
- };
7204
- }[];
7205
- };
7206
- readonly 404: {
7207
- message: string;
7208
- name: string;
7209
- };
7210
- readonly 500: {
7211
- code: string;
7212
- info: string;
7213
- httpCode: number;
7214
- };
7215
- }>>;
7216
- };
7217
- patch: (body: {
7218
- name?: string | undefined;
7219
- tags?: string[] | undefined;
7220
- }, options: {
7221
- headers: {
7222
- authorization: string;
7223
- };
7224
- query?: Record<string, unknown> | undefined;
7225
- fetch?: RequestInit | undefined;
7226
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7227
- 200: {
6339
+ verified: boolean;
6340
+ isTest: boolean;
6341
+ };
6342
+ id: number;
6343
+ value: number;
6344
+ campaignId: string;
6345
+ amount: string | bigint;
6346
+ dailyRewardsRecordId: string;
6347
+ }[];
6348
+ } | undefined;
7228
6349
  name: string;
7229
- type: import("../../database/api/.generated").$Enums.CampaignType;
6350
+ type: string;
6351
+ tokens: {
6352
+ price?: number | null | undefined;
6353
+ symbol: string;
6354
+ name: string | null;
6355
+ id: string;
6356
+ icon: string;
6357
+ chainId: number;
6358
+ address: string;
6359
+ decimals: number;
6360
+ verified: boolean;
6361
+ isTest: boolean;
6362
+ }[];
7230
6363
  id: string;
7231
- status: import("../../database/api/.generated").$Enums.Status;
6364
+ status: string;
7232
6365
  tags: string[];
7233
6366
  identifier: string;
6367
+ chain: {
6368
+ name: string;
6369
+ id: number;
6370
+ icon: string;
6371
+ };
7234
6372
  chainId: number;
7235
- action: import("../../database/api/.generated").$Enums.OpportunityAction;
7236
- depositUrl: string | null;
7237
- mainProtocolId: string | null;
6373
+ action: string;
7238
6374
  tvl: number;
7239
6375
  apr: number;
7240
6376
  dailyRewards: number;
7241
6377
  };
6378
+ readonly 404: {
6379
+ message: string;
6380
+ name: string;
6381
+ };
6382
+ readonly 500: {
6383
+ code: string;
6384
+ info: string;
6385
+ httpCode: number;
6386
+ };
7242
6387
  }>>;
7243
- }) & {
7244
- index: {
7245
- post: (body: {
7246
- name?: string | undefined;
7247
- type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
7248
- tokens: {
7249
- chainId: number;
7250
- address: string;
7251
- }[];
7252
- status: "NONE" | "PAST" | "LIVE" | "SOON";
7253
- identifier: string;
7254
- chainId: number;
7255
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
7256
- protocols: string[];
7257
- mainProtocol: string;
7258
- }, options: {
7259
- headers: {
7260
- authorization: string;
7261
- };
7262
- query?: Record<string, unknown> | undefined;
7263
- fetch?: RequestInit | undefined;
7264
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7265
- 200: void;
7266
- }>>;
7267
- get: (options: {
6388
+ campaigns: {
6389
+ get: (options?: {
7268
6390
  headers?: Record<string, unknown> | undefined;
7269
- query: {
7270
- sort?: string | undefined;
7271
- name?: string | undefined;
7272
- tokens?: string | undefined;
7273
- status?: string | undefined;
7274
- items?: number | undefined;
7275
- tags?: string | undefined;
7276
- page?: number | undefined;
7277
- chainId?: string | undefined;
7278
- action?: string | undefined;
7279
- mainProtocolId?: string | undefined;
7280
- order?: string | undefined;
7281
- test?: boolean | undefined;
7282
- minimumTvl?: number | undefined;
7283
- };
6391
+ query?: Record<string, unknown> | undefined;
7284
6392
  fetch?: RequestInit | undefined;
7285
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7286
- 200: ({
6393
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6394
+ 200: {
7287
6395
  protocol?: {
7288
6396
  name: string;
7289
6397
  url: string;
@@ -7367,154 +6475,39 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7367
6475
  tvl: number;
7368
6476
  apr: number;
7369
6477
  dailyRewards: number;
7370
- } | null)[];
7371
- } | {
7372
- 200: AsyncGenerator<unknown, unknown, unknown>;
7373
- } | {
7374
- 200: (Response | ({
7375
- protocol?: {
7376
- name: string;
7377
- url: string;
7378
- description: string;
7379
- id: string;
7380
- tags: string[];
7381
- icon: string;
7382
- } | null | undefined;
7383
- depositUrl?: string | undefined;
7384
- aprRecord?: {
7385
- timestamp: string | bigint;
7386
- cumulated: number;
7387
- breakdowns: {
7388
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
7389
- id: number;
7390
- identifier: string;
7391
- value: number;
7392
- aprRecordId: string;
7393
- }[];
7394
- } | undefined;
7395
- tvlRecord?: {
7396
- total: number;
7397
- timestamp: string | bigint;
7398
- breakdowns: {
7399
- type: "TOKEN" | "PROTOCOL";
7400
- id: number;
7401
- identifier: string;
7402
- value: number;
7403
- tvlRecordId: string;
7404
- }[];
7405
- } | undefined;
7406
- rewardsRecord?: {
7407
- total: number;
7408
- id: string;
7409
- timestamp: string | bigint;
7410
- breakdowns: {
7411
- token: {
7412
- price?: number | null | undefined;
7413
- symbol: string;
7414
- name: string | null;
7415
- id: string;
7416
- icon: string;
7417
- chainId: number;
7418
- address: string;
7419
- decimals: number;
7420
- verified: boolean;
7421
- isTest: boolean;
7422
- };
7423
- id: number;
7424
- value: number;
6478
+ campaigns: {
6479
+ campaignStatus?: {
6480
+ error?: string | undefined;
6481
+ details?: any;
6482
+ status: string;
7425
6483
  campaignId: string;
7426
- amount: string | bigint;
7427
- dailyRewardsRecordId: string;
7428
- }[];
7429
- } | undefined;
7430
- name: string;
7431
- type: string;
7432
- tokens: {
7433
- price?: number | null | undefined;
7434
- symbol: string;
7435
- name: string | null;
7436
- id: string;
7437
- icon: string;
7438
- chainId: number;
7439
- address: string;
7440
- decimals: number;
7441
- verified: boolean;
7442
- isTest: boolean;
7443
- }[];
7444
- id: string;
7445
- status: string;
7446
- tags: string[];
7447
- identifier: string;
7448
- chain: {
7449
- name: string;
7450
- id: number;
7451
- icon: string;
7452
- };
7453
- chainId: number;
7454
- action: string;
7455
- tvl: number;
7456
- apr: number;
7457
- dailyRewards: number;
7458
- } | null)[] | {
7459
- 200: ({
7460
- protocol?: {
6484
+ computedUntil: string | bigint;
6485
+ processingStarted: string | bigint;
6486
+ } | undefined;
6487
+ distributionChain?: {
7461
6488
  name: string;
7462
- url: string;
7463
- description: string;
7464
- id: string;
7465
- tags: string[];
6489
+ id: number;
7466
6490
  icon: string;
7467
- } | null | undefined;
7468
- depositUrl?: string | undefined;
7469
- aprRecord?: {
7470
- timestamp: string | bigint;
7471
- cumulated: number;
7472
- breakdowns: {
7473
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
7474
- id: number;
7475
- identifier: string;
7476
- value: number;
7477
- aprRecordId: string;
7478
- }[];
7479
- } | undefined;
7480
- tvlRecord?: {
7481
- total: number;
7482
- timestamp: string | bigint;
7483
- breakdowns: {
7484
- type: "TOKEN" | "PROTOCOL";
7485
- id: number;
7486
- identifier: string;
7487
- value: number;
7488
- tvlRecordId: string;
7489
- }[];
7490
- } | undefined;
7491
- rewardsRecord?: {
7492
- total: number;
7493
- id: string;
7494
- timestamp: string | bigint;
7495
- breakdowns: {
7496
- token: {
7497
- price?: number | null | undefined;
7498
- symbol: string;
7499
- name: string | null;
7500
- id: string;
7501
- icon: string;
7502
- chainId: number;
7503
- address: string;
7504
- decimals: number;
7505
- verified: boolean;
7506
- isTest: boolean;
7507
- };
7508
- id: number;
7509
- value: number;
7510
- campaignId: string;
7511
- amount: string | bigint;
7512
- dailyRewardsRecordId: string;
7513
- }[];
7514
6491
  } | undefined;
7515
- name: string;
7516
6492
  type: string;
7517
- tokens: {
6493
+ id: string;
6494
+ params: any;
6495
+ subType: number | null;
6496
+ chain: {
6497
+ name: string;
6498
+ id: number;
6499
+ icon: string;
6500
+ };
6501
+ startTimestamp: string | bigint;
6502
+ endTimestamp: string | bigint;
6503
+ computeChainId: number;
6504
+ distributionChainId: number;
6505
+ campaignId: string;
6506
+ rewardTokenId: string;
6507
+ amount: string;
6508
+ opportunityId: string;
6509
+ creatorAddress: string;
6510
+ rewardToken: {
7518
6511
  price?: number | null | undefined;
7519
6512
  symbol: string;
7520
6513
  name: string | null;
@@ -7525,61 +6518,123 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7525
6518
  decimals: number;
7526
6519
  verified: boolean;
7527
6520
  isTest: boolean;
7528
- }[];
7529
- id: string;
7530
- status: string;
7531
- tags: string[];
7532
- identifier: string;
7533
- chain: {
7534
- name: string;
7535
- id: number;
7536
- icon: string;
7537
6521
  };
7538
- chainId: number;
7539
- action: string;
7540
- tvl: number;
7541
- apr: number;
7542
- dailyRewards: number;
7543
- } | null)[];
7544
- }) & ({
7545
- protocol?: {
7546
- name: string;
7547
- url: string;
7548
- description: string;
7549
- id: string;
7550
- tags: string[];
7551
- icon: string;
7552
- } | null | undefined;
7553
- depositUrl?: string | undefined;
7554
- aprRecord?: {
7555
- timestamp: string | bigint;
6522
+ }[];
6523
+ };
6524
+ readonly 404: {
6525
+ message: string;
6526
+ name: string;
6527
+ };
6528
+ readonly 500: {
6529
+ code: string;
6530
+ info: string;
6531
+ httpCode: number;
6532
+ };
6533
+ }>>;
6534
+ };
6535
+ patch: (body: {
6536
+ name?: string | undefined;
6537
+ tags?: string[] | undefined;
6538
+ }, options: {
6539
+ headers: {
6540
+ authorization: string;
6541
+ };
6542
+ query?: Record<string, unknown> | undefined;
6543
+ fetch?: RequestInit | undefined;
6544
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6545
+ 200: {
6546
+ name: string;
6547
+ type: import("../../database/api/.generated").$Enums.CampaignType;
6548
+ id: string;
6549
+ status: import("../../database/api/.generated").$Enums.Status;
6550
+ tags: string[];
6551
+ identifier: string;
6552
+ chainId: number;
6553
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
6554
+ depositUrl: string | null;
6555
+ mainProtocolId: string | null;
6556
+ tvl: number;
6557
+ apr: number;
6558
+ dailyRewards: number;
6559
+ };
6560
+ }>>;
6561
+ }) & {
6562
+ index: {
6563
+ post: (body: {
6564
+ name?: string | undefined;
6565
+ type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
6566
+ tokens: {
6567
+ chainId: number;
6568
+ address: string;
6569
+ }[];
6570
+ status: "NONE" | "PAST" | "LIVE" | "SOON";
6571
+ identifier: string;
6572
+ chainId: number;
6573
+ action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
6574
+ protocols: string[];
6575
+ mainProtocol: string;
6576
+ }, options: {
6577
+ headers: {
6578
+ authorization: string;
6579
+ };
6580
+ query?: Record<string, unknown> | undefined;
6581
+ fetch?: RequestInit | undefined;
6582
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6583
+ 200: void;
6584
+ }>>;
6585
+ get: (options: {
6586
+ headers?: Record<string, unknown> | undefined;
6587
+ query: {
6588
+ sort?: string | undefined;
6589
+ name?: string | undefined;
6590
+ tokens?: string | undefined;
6591
+ status?: string | undefined;
6592
+ items?: number | undefined;
6593
+ tags?: string | undefined;
6594
+ page?: number | undefined;
6595
+ chainId?: string | undefined;
6596
+ action?: string | undefined;
6597
+ mainProtocolId?: string | undefined;
6598
+ order?: string | undefined;
6599
+ test?: boolean | undefined;
6600
+ minimumTvl?: number | undefined;
6601
+ };
6602
+ fetch?: RequestInit | undefined;
6603
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6604
+ 200: {
6605
+ aprRecord: {
7556
6606
  cumulated: number;
6607
+ timestamp: bigint;
7557
6608
  breakdowns: {
7558
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
6609
+ type: import("../../database/api/.generated").$Enums.AprType;
7559
6610
  id: number;
7560
6611
  identifier: string;
7561
6612
  value: number;
7562
6613
  aprRecordId: string;
7563
6614
  }[];
7564
- } | undefined;
7565
- tvlRecord?: {
6615
+ };
6616
+ tvlRecord: {
6617
+ id: string;
7566
6618
  total: number;
7567
- timestamp: string | bigint;
6619
+ timestamp: bigint;
7568
6620
  breakdowns: {
7569
- type: "TOKEN" | "PROTOCOL";
6621
+ type: import("../../database/api/.generated").$Enums.TvlType;
7570
6622
  id: number;
7571
6623
  identifier: string;
7572
6624
  value: number;
7573
6625
  tvlRecordId: string;
7574
6626
  }[];
7575
- } | undefined;
7576
- rewardsRecord?: {
7577
- total: number;
6627
+ };
6628
+ rewardsRecord: {
7578
6629
  id: string;
7579
- timestamp: string | bigint;
6630
+ total: number;
6631
+ timestamp: bigint;
7580
6632
  breakdowns: {
6633
+ id: number;
6634
+ value: number;
6635
+ campaignId: string;
6636
+ dailyRewardsRecordId: string;
7581
6637
  token: {
7582
- price?: number | null | undefined;
7583
6638
  symbol: string;
7584
6639
  name: string | null;
7585
6640
  id: string;
@@ -7587,20 +6642,17 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7587
6642
  chainId: number;
7588
6643
  address: string;
7589
6644
  decimals: number;
6645
+ displaySymbol: string;
7590
6646
  verified: boolean;
7591
6647
  isTest: boolean;
6648
+ price: number | null;
7592
6649
  };
7593
- id: number;
7594
- value: number;
7595
- campaignId: string;
7596
- amount: string | bigint;
7597
- dailyRewardsRecordId: string;
6650
+ amount: bigint;
7598
6651
  }[];
7599
- } | undefined;
7600
- name: string;
7601
- type: string;
7602
- tokens: {
7603
- price?: number | null | undefined;
6652
+ };
6653
+ id: string;
6654
+ depositUrl: string | undefined;
6655
+ tokens: ({
7604
6656
  symbol: string;
7605
6657
  name: string | null;
7606
6658
  id: string;
@@ -7610,110 +6662,33 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7610
6662
  decimals: number;
7611
6663
  verified: boolean;
7612
6664
  isTest: boolean;
7613
- }[];
7614
- id: string;
7615
- status: string;
7616
- tags: string[];
7617
- identifier: string;
6665
+ } & {
6666
+ price?: number | null | undefined;
6667
+ })[];
7618
6668
  chain: {
7619
6669
  name: string;
7620
6670
  id: number;
7621
6671
  icon: string;
7622
6672
  };
6673
+ protocol: {
6674
+ name: string;
6675
+ url: string;
6676
+ description: string;
6677
+ id: string;
6678
+ tags: string[];
6679
+ icon: string;
6680
+ } | undefined;
6681
+ name: string;
6682
+ type: import("../../database/api/.generated").$Enums.CampaignType;
6683
+ status: import("../../database/api/.generated").$Enums.Status;
6684
+ tags: string[];
6685
+ identifier: string;
7623
6686
  chainId: number;
7624
- action: string;
6687
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
7625
6688
  tvl: number;
7626
6689
  apr: number;
7627
6690
  dailyRewards: number;
7628
- } | null)[];
7629
- } | {
7630
- 200: {
7631
- 200: ({
7632
- protocol?: {
7633
- name: string;
7634
- url: string;
7635
- description: string;
7636
- id: string;
7637
- tags: string[];
7638
- icon: string;
7639
- } | null | undefined;
7640
- depositUrl?: string | undefined;
7641
- aprRecord?: {
7642
- timestamp: string | bigint;
7643
- cumulated: number;
7644
- breakdowns: {
7645
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
7646
- id: number;
7647
- identifier: string;
7648
- value: number;
7649
- aprRecordId: string;
7650
- }[];
7651
- } | undefined;
7652
- tvlRecord?: {
7653
- total: number;
7654
- timestamp: string | bigint;
7655
- breakdowns: {
7656
- type: "TOKEN" | "PROTOCOL";
7657
- id: number;
7658
- identifier: string;
7659
- value: number;
7660
- tvlRecordId: string;
7661
- }[];
7662
- } | undefined;
7663
- rewardsRecord?: {
7664
- total: number;
7665
- id: string;
7666
- timestamp: string | bigint;
7667
- breakdowns: {
7668
- token: {
7669
- price?: number | null | undefined;
7670
- symbol: string;
7671
- name: string | null;
7672
- id: string;
7673
- icon: string;
7674
- chainId: number;
7675
- address: string;
7676
- decimals: number;
7677
- verified: boolean;
7678
- isTest: boolean;
7679
- };
7680
- id: number;
7681
- value: number;
7682
- campaignId: string;
7683
- amount: string | bigint;
7684
- dailyRewardsRecordId: string;
7685
- }[];
7686
- } | undefined;
7687
- name: string;
7688
- type: string;
7689
- tokens: {
7690
- price?: number | null | undefined;
7691
- symbol: string;
7692
- name: string | null;
7693
- id: string;
7694
- icon: string;
7695
- chainId: number;
7696
- address: string;
7697
- decimals: number;
7698
- verified: boolean;
7699
- isTest: boolean;
7700
- }[];
7701
- id: string;
7702
- status: string;
7703
- tags: string[];
7704
- identifier: string;
7705
- chain: {
7706
- name: string;
7707
- id: number;
7708
- icon: string;
7709
- };
7710
- chainId: number;
7711
- action: string;
7712
- tvl: number;
7713
- apr: number;
7714
- dailyRewards: number;
7715
- } | null)[];
7716
- };
6691
+ }[];
7717
6692
  }>>;
7718
6693
  };
7719
6694
  count: {
@@ -8118,6 +7093,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8118
7093
  name?: string | undefined;
8119
7094
  chainId?: any;
8120
7095
  address?: string | undefined;
7096
+ displaySymbol?: string | undefined;
8121
7097
  verified?: boolean | undefined;
8122
7098
  test?: boolean | undefined;
8123
7099
  };
@@ -8172,6 +7148,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8172
7148
  name?: string | undefined;
8173
7149
  chainId?: any;
8174
7150
  address?: string | undefined;
7151
+ displaySymbol?: string | undefined;
8175
7152
  verified?: boolean | undefined;
8176
7153
  test?: boolean | undefined;
8177
7154
  };