@merkl/api 0.10.236 → 0.10.238

Sign up to get free protection for your applications and to get access to all the features.
@@ -111,6 +111,7 @@ declare const eden: {
111
111
  tags: string[];
112
112
  icon: string;
113
113
  } | null | undefined;
114
+ depositUrl?: string | undefined;
114
115
  aprRecord?: {
115
116
  timestamp: string | bigint;
116
117
  cumulated: number;
@@ -211,6 +212,7 @@ declare const eden: {
211
212
  tags: string[];
212
213
  icon: string;
213
214
  } | null | undefined;
215
+ depositUrl?: string | undefined;
214
216
  aprRecord?: {
215
217
  timestamp: string | bigint;
216
218
  cumulated: number;
@@ -411,40 +413,45 @@ declare const eden: {
411
413
  };
412
414
  fetch?: RequestInit | undefined;
413
415
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
414
- 200: {
415
- aprRecord: {
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
428
  cumulated: number;
417
- timestamp: bigint;
418
429
  breakdowns: {
419
- type: import("../../database/api/.generated").$Enums.AprType;
430
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
420
431
  id: number;
421
432
  identifier: string;
422
433
  value: number;
423
434
  aprRecordId: string;
424
435
  }[];
425
- };
426
- tvlRecord: {
427
- id: string;
436
+ } | undefined;
437
+ tvlRecord?: {
428
438
  total: number;
429
- timestamp: bigint;
439
+ timestamp: string | bigint;
430
440
  breakdowns: {
431
- type: import("../../database/api/.generated").$Enums.TvlType;
441
+ type: "TOKEN" | "PROTOCOL";
432
442
  id: number;
433
443
  identifier: string;
434
444
  value: number;
435
445
  tvlRecordId: string;
436
446
  }[];
437
- };
438
- rewardsRecord: {
439
- id: string;
447
+ } | undefined;
448
+ rewardsRecord?: {
440
449
  total: number;
441
- timestamp: bigint;
450
+ id: string;
451
+ timestamp: string | bigint;
442
452
  breakdowns: {
443
- id: number;
444
- value: number;
445
- campaignId: string;
446
- dailyRewardsRecordId: string;
447
453
  token: {
454
+ price?: number | null | undefined;
448
455
  symbol: string;
449
456
  name: string | null;
450
457
  id: string;
@@ -452,16 +459,20 @@ declare const eden: {
452
459
  chainId: number;
453
460
  address: string;
454
461
  decimals: number;
455
- displaySymbol: string;
456
462
  verified: boolean;
457
463
  isTest: boolean;
458
- price: number | null;
459
464
  };
460
- amount: bigint;
465
+ id: number;
466
+ value: number;
467
+ campaignId: string;
468
+ amount: string | bigint;
469
+ dailyRewardsRecordId: string;
461
470
  }[];
462
- };
463
- id: string;
464
- tokens: ({
471
+ } | undefined;
472
+ name: string;
473
+ type: string;
474
+ tokens: {
475
+ price?: number | null | undefined;
465
476
  symbol: string;
466
477
  name: string | null;
467
478
  id: string;
@@ -471,154 +482,85 @@ declare const eden: {
471
482
  decimals: number;
472
483
  verified: boolean;
473
484
  isTest: boolean;
474
- } & {
475
- price?: number | null | undefined;
476
- })[];
485
+ }[];
486
+ id: string;
487
+ status: string;
488
+ tags: string[];
489
+ identifier: string;
477
490
  chain: {
478
491
  name: string;
479
492
  id: number;
480
493
  icon: string;
481
494
  };
482
- protocol: {
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?: {
483
506
  name: string;
484
507
  url: string;
485
508
  description: string;
486
509
  id: string;
487
510
  tags: string[];
488
511
  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
+ }[];
489
559
  } | undefined;
490
560
  name: string;
491
- type: import("../../database/api/.generated").$Enums.CampaignType;
492
- status: import("../../database/api/.generated").$Enums.Status;
493
- tags: string[];
494
- identifier: string;
495
- chainId: number;
496
- action: import("../../database/api/.generated").$Enums.OpportunityAction;
497
- depositUrl: string | null;
498
- tvl: number;
499
- apr: number;
500
- dailyRewards: number;
501
- }[];
502
- }>>;
503
- };
504
- count: {
505
- get: (options: {
506
- headers?: Record<string, unknown> | undefined;
507
- query: {
508
- sort?: string | undefined;
509
- name?: string | undefined;
510
- tokens?: string | undefined;
511
- status?: string | undefined;
512
- items?: number | undefined;
513
- tags?: string | undefined;
514
- page?: number | undefined;
515
- chainId?: string | undefined;
516
- action?: string | undefined;
517
- mainProtocolId?: string | undefined;
518
- order?: string | undefined;
519
- test?: boolean | undefined;
520
- minimumTvl?: number | undefined;
521
- };
522
- fetch?: RequestInit | undefined;
523
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
524
- 200: number;
525
- }>>;
526
- };
527
- aggregate: ((params: {
528
- field: string | number;
529
- }) => {
530
- get: (options: {
531
- headers?: Record<string, unknown> | undefined;
532
- query: {
533
- sort?: string | undefined;
534
- name?: string | undefined;
535
- tokens?: string | undefined;
536
- status?: string | undefined;
537
- items?: number | undefined;
538
- tags?: string | undefined;
539
- page?: number | undefined;
540
- chainId?: string | undefined;
541
- action?: string | undefined;
542
- mainProtocolId?: string | undefined;
543
- order?: string | undefined;
544
- test?: boolean | undefined;
545
- minimumTvl?: number | undefined;
546
- };
547
- fetch?: RequestInit | undefined;
548
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
549
- 200: {
550
- sum: File;
551
- };
552
- }>>;
553
- }) & {};
554
- };
555
- campaigns: {
556
- index: {
557
- post: (body: {
558
- identifier?: string | undefined;
559
- subType?: number | undefined;
560
- type: number;
561
- params: string;
562
- creator: string;
563
- chainId: number;
564
- startTimestamp: string;
565
- endTimestamp: string;
566
- computeChainId: number;
567
- campaignId: string;
568
- amount: string;
569
- rewardTokenAddress: string;
570
- opportunityIdentifier: string;
571
- }, options: {
572
- headers: {
573
- authorization: string;
574
- };
575
- query?: Record<string, unknown> | undefined;
576
- fetch?: RequestInit | undefined;
577
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
578
- 200: {
579
- type: import("../../database/api/.generated").$Enums.CampaignType;
580
- id: string;
581
- params: import("database/api/.generated/runtime/library").JsonValue;
582
- subType: number | null;
583
- startTimestamp: bigint;
584
- endTimestamp: bigint;
585
- computeChainId: number;
586
- distributionChainId: number;
587
- campaignId: string;
588
- rewardTokenId: string;
589
- amount: string;
590
- opportunityId: string;
591
- creatorAddress: string;
592
- } | undefined;
593
- }>>;
594
- get: (options: {
595
- headers?: Record<string, unknown> | undefined;
596
- query: {
597
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | undefined;
598
- items?: number | undefined;
599
- subType?: number | undefined;
600
- page?: number | undefined;
601
- chainId?: number | undefined;
602
- startTimestamp?: string | undefined;
603
- endTimestamp?: string | undefined;
604
- tokenAddress?: string | undefined;
605
- mainParameter?: string | undefined;
606
- campaignId?: string | undefined;
607
- opportunityId?: string | undefined;
608
- test?: boolean | undefined;
609
- creatorTag?: string | undefined;
610
- tokenSymbol?: string | undefined;
611
- };
612
- fetch?: RequestInit | undefined;
613
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
614
- 200: {
615
- params: any;
616
- chain: {
617
- name: string;
618
- id: number;
619
- icon: string;
620
- };
621
- rewardToken: {
561
+ type: string;
562
+ tokens: {
563
+ price?: number | null | undefined;
622
564
  symbol: string;
623
565
  name: string | null;
624
566
  id: string;
@@ -628,18 +570,421 @@ declare const eden: {
628
570
  decimals: number;
629
571
  verified: boolean;
630
572
  isTest: boolean;
631
- } & {
632
- price?: number | null | undefined;
633
- };
634
- distributionChain: {
573
+ }[];
574
+ id: string;
575
+ status: string;
576
+ tags: string[];
577
+ identifier: string;
578
+ chain: {
635
579
  name: string;
636
580
  id: number;
637
581
  icon: string;
638
- } | undefined;
639
- campaignStatus: {
640
- error: string;
641
- details: import("database/api/.generated/runtime/library").JsonValue;
642
- status: import("../../database/api/.generated").$Enums.RunStatus;
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: {
980
+ name: string;
981
+ id: number;
982
+ icon: string;
983
+ } | undefined;
984
+ campaignStatus: {
985
+ error: string;
986
+ details: import("database/api/.generated/runtime/library").JsonValue;
987
+ status: import("../../database/api/.generated").$Enums.RunStatus;
643
988
  campaignId: string;
644
989
  computedUntil: bigint;
645
990
  processingStarted: bigint;
@@ -2930,40 +3275,303 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2930
3275
  };
2931
3276
  headers: unknown;
2932
3277
  response: {
2933
- 200: {
2934
- aprRecord: {
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;
2935
3378
  cumulated: number;
2936
- timestamp: bigint;
2937
3379
  breakdowns: {
2938
- type: import("../../database/api/.generated").$Enums.AprType;
3380
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
2939
3381
  id: number;
2940
3382
  identifier: string;
2941
3383
  value: number;
2942
3384
  aprRecordId: string;
2943
3385
  }[];
2944
- };
2945
- tvlRecord: {
2946
- id: string;
3386
+ } | undefined;
3387
+ tvlRecord?: {
2947
3388
  total: number;
2948
- timestamp: bigint;
3389
+ timestamp: string | bigint;
2949
3390
  breakdowns: {
2950
- type: import("../../database/api/.generated").$Enums.TvlType;
3391
+ type: "TOKEN" | "PROTOCOL";
2951
3392
  id: number;
2952
3393
  identifier: string;
2953
3394
  value: number;
2954
3395
  tvlRecordId: string;
2955
3396
  }[];
2956
- };
2957
- rewardsRecord: {
2958
- id: string;
3397
+ } | undefined;
3398
+ rewardsRecord?: {
2959
3399
  total: number;
2960
- timestamp: bigint;
3400
+ id: string;
3401
+ timestamp: string | bigint;
2961
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
+ };
2962
3415
  id: number;
2963
3416
  value: number;
2964
3417
  campaignId: string;
3418
+ amount: string | bigint;
2965
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
+ };
3445
+ 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;
3548
+ cumulated: number;
3549
+ breakdowns: {
3550
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
3551
+ id: number;
3552
+ identifier: string;
3553
+ value: number;
3554
+ aprRecordId: string;
3555
+ }[];
3556
+ } | undefined;
3557
+ tvlRecord?: {
3558
+ total: number;
3559
+ timestamp: string | bigint;
3560
+ breakdowns: {
3561
+ type: "TOKEN" | "PROTOCOL";
3562
+ id: number;
3563
+ identifier: string;
3564
+ value: number;
3565
+ tvlRecordId: string;
3566
+ }[];
3567
+ } | undefined;
3568
+ rewardsRecord?: {
3569
+ total: number;
3570
+ id: string;
3571
+ timestamp: string | bigint;
3572
+ breakdowns: {
2966
3573
  token: {
3574
+ price?: number | null | undefined;
2967
3575
  symbol: string;
2968
3576
  name: string | null;
2969
3577
  id: string;
@@ -2971,16 +3579,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2971
3579
  chainId: number;
2972
3580
  address: string;
2973
3581
  decimals: number;
2974
- displaySymbol: string;
2975
3582
  verified: boolean;
2976
3583
  isTest: boolean;
2977
- price: number | null;
2978
3584
  };
2979
- amount: bigint;
3585
+ id: number;
3586
+ value: number;
3587
+ campaignId: string;
3588
+ amount: string | bigint;
3589
+ dailyRewardsRecordId: string;
2980
3590
  }[];
2981
- };
2982
- id: string;
2983
- tokens: ({
3591
+ } | undefined;
3592
+ name: string;
3593
+ type: string;
3594
+ tokens: {
3595
+ price?: number | null | undefined;
2984
3596
  symbol: string;
2985
3597
  name: string | null;
2986
3598
  id: string;
@@ -2990,34 +3602,110 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2990
3602
  decimals: number;
2991
3603
  verified: boolean;
2992
3604
  isTest: boolean;
2993
- } & {
2994
- price?: number | null | undefined;
2995
- })[];
3605
+ }[];
3606
+ id: string;
3607
+ status: string;
3608
+ tags: string[];
3609
+ identifier: string;
2996
3610
  chain: {
2997
3611
  name: string;
2998
3612
  id: number;
2999
3613
  icon: string;
3000
3614
  };
3001
- protocol: {
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;
3002
3679
  name: string;
3003
- url: string;
3004
- description: 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
+ }[];
3005
3693
  id: string;
3694
+ status: string;
3006
3695
  tags: string[];
3007
- icon: string;
3008
- } | undefined;
3009
- name: string;
3010
- type: import("../../database/api/.generated").$Enums.CampaignType;
3011
- status: import("../../database/api/.generated").$Enums.Status;
3012
- tags: string[];
3013
- identifier: string;
3014
- chainId: number;
3015
- action: import("../../database/api/.generated").$Enums.OpportunityAction;
3016
- depositUrl: string | null;
3017
- tvl: number;
3018
- apr: number;
3019
- dailyRewards: number;
3020
- }[];
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
+ };
3021
3709
  };
3022
3710
  };
3023
3711
  };
@@ -3070,6 +3758,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3070
3758
  tags: string[];
3071
3759
  icon: string;
3072
3760
  } | null | undefined;
3761
+ depositUrl?: string | undefined;
3073
3762
  aprRecord?: {
3074
3763
  timestamp: string | bigint;
3075
3764
  cumulated: number;
@@ -3179,6 +3868,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3179
3868
  tags: string[];
3180
3869
  icon: string;
3181
3870
  } | null | undefined;
3871
+ depositUrl?: string | undefined;
3182
3872
  aprRecord?: {
3183
3873
  timestamp: string | bigint;
3184
3874
  cumulated: number;
@@ -6090,235 +6780,741 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6090
6780
  symbol: string;
6091
6781
  decimals: number;
6092
6782
  };
6093
- };
6094
- };
6095
- };
6096
- };
6097
- } & {
6098
- v3: {
6099
- tokenUnclaimed: {
6100
- get: {
6101
- body: unknown;
6102
- params: {};
6103
- query: {
6104
- token: string;
6783
+ };
6784
+ };
6785
+ };
6786
+ };
6787
+ } & {
6788
+ v3: {
6789
+ tokenUnclaimed: {
6790
+ get: {
6791
+ body: unknown;
6792
+ params: {};
6793
+ query: {
6794
+ token: string;
6795
+ chainId: number;
6796
+ };
6797
+ headers: unknown;
6798
+ response: {
6799
+ 200: {
6800
+ message: string;
6801
+ };
6802
+ };
6803
+ };
6804
+ };
6805
+ };
6806
+ } & {
6807
+ v3: {
6808
+ updates: {
6809
+ get: {
6810
+ body: unknown;
6811
+ params: {};
6812
+ query: {};
6813
+ headers: unknown;
6814
+ response: {
6815
+ 200: {
6816
+ [x: number]: {
6817
+ [campaignId: string]: number;
6818
+ };
6819
+ };
6820
+ readonly 400: {
6821
+ message?: string | undefined;
6822
+ error: string;
6823
+ };
6824
+ };
6825
+ };
6826
+ };
6827
+ };
6828
+ } & {
6829
+ v3: {
6830
+ userRewards: {
6831
+ get: {
6832
+ body: unknown;
6833
+ params: {};
6834
+ query: {
6835
+ mainParameter?: string | undefined;
6836
+ rewardToken?: string | undefined;
6837
+ proof?: string | undefined;
6838
+ reloadChainId?: number | undefined;
6839
+ chainId: never;
6840
+ user: string;
6841
+ };
6842
+ headers: unknown;
6843
+ response: {
6844
+ 200: {
6845
+ [x: string]: {
6846
+ pending?: string | undefined;
6847
+ proof?: string[] | undefined;
6848
+ symbol: string;
6849
+ decimals: number;
6850
+ unclaimed: string;
6851
+ accumulated: string;
6852
+ reasons: {
6853
+ [x: string]: {
6854
+ pending?: string | undefined;
6855
+ unclaimed: string;
6856
+ accumulated: string;
6857
+ };
6858
+ };
6859
+ };
6860
+ };
6861
+ };
6862
+ };
6863
+ };
6864
+ };
6865
+ }, {
6866
+ derive: {};
6867
+ resolve: {};
6868
+ schema: {};
6869
+ }, {
6870
+ derive: {};
6871
+ resolve: {};
6872
+ schema: {};
6873
+ }>, config?: import("@elysiajs/eden").Treaty.Config) => {
6874
+ index: {
6875
+ get: (options?: {
6876
+ headers?: Record<string, unknown> | undefined;
6877
+ query?: Record<string, unknown> | undefined;
6878
+ fetch?: RequestInit | undefined;
6879
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6880
+ 200: string;
6881
+ }>>;
6882
+ };
6883
+ v1: {
6884
+ allowances: {
6885
+ get: (options: {
6886
+ headers?: Record<string, unknown> | undefined;
6887
+ query: {
6888
+ additionalTokenAddresses?: string[] | undefined;
6889
+ chainId: number;
6890
+ user: string;
6891
+ };
6892
+ fetch?: RequestInit | undefined;
6893
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6894
+ 200: {
6895
+ [x: string]: {
6896
+ symbol: string;
6897
+ balance: string;
6898
+ decimals: number;
6899
+ };
6900
+ };
6901
+ }>>;
6902
+ };
6903
+ balances: {
6904
+ get: (options: {
6905
+ headers?: Record<string, unknown> | undefined;
6906
+ query: {
6907
+ additionalTokenAddresses?: string[] | undefined;
6908
+ chainId: number;
6909
+ user: string;
6910
+ };
6911
+ fetch?: RequestInit | undefined;
6912
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6913
+ 200: {
6914
+ [x: string]: {
6915
+ symbol: string;
6916
+ balance: string;
6917
+ decimals: number;
6918
+ };
6919
+ };
6920
+ }>>;
6921
+ };
6922
+ prices: {
6923
+ get: (options: {
6924
+ headers?: Record<string, unknown> | undefined;
6925
+ query: {};
6926
+ fetch?: RequestInit | undefined;
6927
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6928
+ 200: {
6929
+ rate: number;
6930
+ token: string;
6931
+ }[];
6932
+ }>>;
6933
+ };
6934
+ tokens: {
6935
+ get: (options: {
6936
+ headers?: Record<string, unknown> | undefined;
6937
+ query: {};
6938
+ fetch?: RequestInit | undefined;
6939
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6940
+ [x: string]: any;
6941
+ 200: any;
6942
+ }>>;
6943
+ };
6944
+ };
6945
+ v2: {
6946
+ merkl: {
6947
+ get: (options: {
6948
+ headers?: Record<string, unknown> | undefined;
6949
+ query: {
6950
+ user?: string | undefined;
6951
+ chainIds?: number | number[] | undefined;
6952
+ AMMs?: string | string[] | undefined;
6953
+ onlyLive?: string | undefined;
6954
+ "AMMs[]"?: string | string[] | undefined;
6955
+ "AMMs[0]"?: string | undefined;
6956
+ "chainIds[]"?: number | number[] | undefined;
6957
+ "chainIds[0]"?: number | undefined;
6958
+ };
6959
+ fetch?: RequestInit | undefined;
6960
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6961
+ [x: string]: any;
6962
+ 200: any;
6963
+ }>>;
6964
+ };
6965
+ };
6966
+ v4: {
6967
+ opportunities: ((params: {
6968
+ id: string | number;
6969
+ }) => {
6970
+ get: (options?: {
6971
+ headers?: Record<string, unknown> | undefined;
6972
+ query?: Record<string, unknown> | undefined;
6973
+ fetch?: RequestInit | undefined;
6974
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6975
+ 200: {
6976
+ protocol?: {
6977
+ name: string;
6978
+ url: string;
6979
+ description: string;
6980
+ id: string;
6981
+ tags: string[];
6982
+ icon: string;
6983
+ } | null | undefined;
6984
+ depositUrl?: string | undefined;
6985
+ aprRecord?: {
6986
+ timestamp: string | bigint;
6987
+ cumulated: number;
6988
+ breakdowns: {
6989
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
6990
+ id: number;
6991
+ identifier: string;
6992
+ value: number;
6993
+ aprRecordId: string;
6994
+ }[];
6995
+ } | undefined;
6996
+ tvlRecord?: {
6997
+ total: number;
6998
+ timestamp: string | bigint;
6999
+ breakdowns: {
7000
+ type: "TOKEN" | "PROTOCOL";
7001
+ id: number;
7002
+ identifier: string;
7003
+ value: number;
7004
+ tvlRecordId: string;
7005
+ }[];
7006
+ } | undefined;
7007
+ rewardsRecord?: {
7008
+ total: number;
7009
+ id: string;
7010
+ timestamp: string | bigint;
7011
+ breakdowns: {
7012
+ token: {
7013
+ price?: number | null | undefined;
7014
+ symbol: string;
7015
+ name: string | null;
7016
+ id: string;
7017
+ icon: string;
7018
+ chainId: number;
7019
+ address: string;
7020
+ 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
+ };
6105
7054
  chainId: number;
7055
+ action: string;
7056
+ tvl: number;
7057
+ apr: number;
7058
+ dailyRewards: number;
6106
7059
  };
6107
- headers: unknown;
6108
- response: {
6109
- 200: {
6110
- message: string;
6111
- };
6112
- };
6113
- };
6114
- };
6115
- };
6116
- } & {
6117
- v3: {
6118
- updates: {
6119
- get: {
6120
- body: unknown;
6121
- params: {};
6122
- query: {};
6123
- headers: unknown;
6124
- response: {
6125
- 200: {
6126
- [x: number]: {
6127
- [campaignId: string]: number;
6128
- };
6129
- };
6130
- readonly 400: {
6131
- message?: string | undefined;
6132
- error: string;
6133
- };
7060
+ readonly 404: {
7061
+ message: string;
7062
+ name: string;
6134
7063
  };
6135
- };
6136
- };
6137
- };
6138
- } & {
6139
- v3: {
6140
- userRewards: {
6141
- get: {
6142
- body: unknown;
6143
- params: {};
6144
- query: {
6145
- mainParameter?: string | undefined;
6146
- rewardToken?: string | undefined;
6147
- proof?: string | undefined;
6148
- reloadChainId?: number | undefined;
6149
- chainId: never;
6150
- user: string;
7064
+ readonly 500: {
7065
+ code: string;
7066
+ info: string;
7067
+ httpCode: number;
6151
7068
  };
6152
- headers: unknown;
6153
- response: {
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<{
6154
7076
  200: {
6155
- [x: string]: {
6156
- pending?: string | undefined;
6157
- proof?: string[] | undefined;
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;
6158
7136
  symbol: string;
7137
+ name: string | null;
7138
+ id: string;
7139
+ icon: string;
7140
+ chainId: number;
7141
+ address: string;
6159
7142
  decimals: number;
6160
- unclaimed: string;
6161
- accumulated: string;
6162
- reasons: {
6163
- [x: string]: {
6164
- pending?: string | undefined;
6165
- unclaimed: string;
6166
- accumulated: string;
6167
- };
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;
6168
7203
  };
6169
- };
7204
+ }[];
6170
7205
  };
6171
- };
7206
+ readonly 404: {
7207
+ message: string;
7208
+ name: string;
7209
+ };
7210
+ readonly 500: {
7211
+ code: string;
7212
+ info: string;
7213
+ httpCode: number;
7214
+ };
7215
+ }>>;
6172
7216
  };
6173
- };
6174
- };
6175
- }, {
6176
- derive: {};
6177
- resolve: {};
6178
- schema: {};
6179
- }, {
6180
- derive: {};
6181
- resolve: {};
6182
- schema: {};
6183
- }>, config?: import("@elysiajs/eden").Treaty.Config) => {
6184
- index: {
6185
- get: (options?: {
6186
- headers?: Record<string, unknown> | undefined;
6187
- query?: Record<string, unknown> | undefined;
6188
- fetch?: RequestInit | undefined;
6189
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6190
- 200: string;
6191
- }>>;
6192
- };
6193
- v1: {
6194
- allowances: {
6195
- get: (options: {
6196
- headers?: Record<string, unknown> | undefined;
6197
- query: {
6198
- additionalTokenAddresses?: string[] | undefined;
6199
- chainId: number;
6200
- user: string;
7217
+ patch: (body: {
7218
+ name?: string | undefined;
7219
+ tags?: string[] | undefined;
7220
+ }, options: {
7221
+ headers: {
7222
+ authorization: string;
6201
7223
  };
7224
+ query?: Record<string, unknown> | undefined;
6202
7225
  fetch?: RequestInit | undefined;
6203
7226
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6204
7227
  200: {
6205
- [x: string]: {
6206
- symbol: string;
6207
- balance: string;
6208
- decimals: number;
6209
- };
7228
+ name: string;
7229
+ type: import("../../database/api/.generated").$Enums.CampaignType;
7230
+ id: string;
7231
+ status: import("../../database/api/.generated").$Enums.Status;
7232
+ tags: string[];
7233
+ identifier: string;
7234
+ chainId: number;
7235
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
7236
+ depositUrl: string | null;
7237
+ mainProtocolId: string | null;
7238
+ tvl: number;
7239
+ apr: number;
7240
+ dailyRewards: number;
6210
7241
  };
6211
7242
  }>>;
6212
- };
6213
- balances: {
6214
- get: (options: {
6215
- headers?: Record<string, unknown> | undefined;
6216
- query: {
6217
- additionalTokenAddresses?: string[] | undefined;
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;
6218
7254
  chainId: number;
6219
- user: string;
6220
- };
6221
- fetch?: RequestInit | undefined;
6222
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6223
- 200: {
6224
- [x: string]: {
6225
- symbol: string;
6226
- balance: string;
6227
- decimals: number;
7255
+ action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
7256
+ protocols: string[];
7257
+ mainProtocol: string;
7258
+ }, options: {
7259
+ headers: {
7260
+ authorization: string;
6228
7261
  };
6229
- };
6230
- }>>;
6231
- };
6232
- prices: {
6233
- get: (options: {
6234
- headers?: Record<string, unknown> | undefined;
6235
- query: {};
6236
- fetch?: RequestInit | undefined;
6237
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6238
- 200: {
6239
- rate: number;
6240
- token: string;
6241
- }[];
6242
- }>>;
6243
- };
6244
- tokens: {
6245
- get: (options: {
6246
- headers?: Record<string, unknown> | undefined;
6247
- query: {};
6248
- fetch?: RequestInit | undefined;
6249
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6250
- [x: string]: any;
6251
- 200: any;
6252
- }>>;
6253
- };
6254
- };
6255
- v2: {
6256
- merkl: {
6257
- get: (options: {
6258
- headers?: Record<string, unknown> | undefined;
6259
- query: {
6260
- user?: string | undefined;
6261
- chainIds?: number | number[] | undefined;
6262
- AMMs?: string | string[] | undefined;
6263
- onlyLive?: string | undefined;
6264
- "AMMs[]"?: string | string[] | undefined;
6265
- "AMMs[0]"?: string | undefined;
6266
- "chainIds[]"?: number | number[] | undefined;
6267
- "chainIds[0]"?: number | undefined;
6268
- };
6269
- fetch?: RequestInit | undefined;
6270
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6271
- [x: string]: any;
6272
- 200: any;
6273
- }>>;
6274
- };
6275
- };
6276
- v4: {
6277
- opportunities: ((params: {
6278
- id: string | number;
6279
- }) => {
6280
- get: (options?: {
6281
- headers?: Record<string, unknown> | undefined;
6282
- query?: Record<string, unknown> | undefined;
6283
- fetch?: RequestInit | undefined;
6284
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6285
- 200: {
6286
- protocol?: {
7262
+ query?: Record<string, unknown> | undefined;
7263
+ fetch?: RequestInit | undefined;
7264
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7265
+ 200: void;
7266
+ }>>;
7267
+ get: (options: {
7268
+ 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
+ };
7284
+ fetch?: RequestInit | undefined;
7285
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7286
+ 200: ({
7287
+ protocol?: {
7288
+ name: string;
7289
+ url: string;
7290
+ description: string;
7291
+ id: string;
7292
+ tags: string[];
7293
+ icon: string;
7294
+ } | null | undefined;
7295
+ depositUrl?: string | undefined;
7296
+ aprRecord?: {
7297
+ timestamp: string | bigint;
7298
+ cumulated: number;
7299
+ breakdowns: {
7300
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
7301
+ id: number;
7302
+ identifier: string;
7303
+ value: number;
7304
+ aprRecordId: string;
7305
+ }[];
7306
+ } | undefined;
7307
+ tvlRecord?: {
7308
+ total: number;
7309
+ timestamp: string | bigint;
7310
+ breakdowns: {
7311
+ type: "TOKEN" | "PROTOCOL";
7312
+ id: number;
7313
+ identifier: string;
7314
+ value: number;
7315
+ tvlRecordId: string;
7316
+ }[];
7317
+ } | undefined;
7318
+ rewardsRecord?: {
7319
+ total: number;
7320
+ id: string;
7321
+ timestamp: string | bigint;
7322
+ breakdowns: {
7323
+ token: {
7324
+ price?: number | null | undefined;
7325
+ symbol: string;
7326
+ name: string | null;
7327
+ id: string;
7328
+ icon: string;
7329
+ chainId: number;
7330
+ address: string;
7331
+ decimals: number;
7332
+ verified: boolean;
7333
+ isTest: boolean;
7334
+ };
7335
+ id: number;
7336
+ value: number;
7337
+ campaignId: string;
7338
+ amount: string | bigint;
7339
+ dailyRewardsRecordId: string;
7340
+ }[];
7341
+ } | undefined;
6287
7342
  name: string;
6288
- url: string;
6289
- description: string;
7343
+ type: string;
7344
+ tokens: {
7345
+ price?: number | null | undefined;
7346
+ symbol: string;
7347
+ name: string | null;
7348
+ id: string;
7349
+ icon: string;
7350
+ chainId: number;
7351
+ address: string;
7352
+ decimals: number;
7353
+ verified: boolean;
7354
+ isTest: boolean;
7355
+ }[];
6290
7356
  id: string;
7357
+ status: string;
6291
7358
  tags: string[];
6292
- icon: string;
6293
- } | null | undefined;
6294
- aprRecord?: {
6295
- timestamp: string | bigint;
6296
- cumulated: number;
6297
- breakdowns: {
6298
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
6299
- id: number;
6300
- identifier: string;
6301
- value: number;
6302
- aprRecordId: string;
6303
- }[];
6304
- } | undefined;
6305
- tvlRecord?: {
6306
- total: number;
6307
- timestamp: string | bigint;
6308
- breakdowns: {
6309
- type: "TOKEN" | "PROTOCOL";
7359
+ identifier: string;
7360
+ chain: {
7361
+ name: string;
6310
7362
  id: number;
6311
- identifier: string;
6312
- value: number;
6313
- tvlRecordId: string;
7363
+ icon: string;
7364
+ };
7365
+ chainId: number;
7366
+ action: string;
7367
+ tvl: number;
7368
+ apr: number;
7369
+ 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;
7425
+ 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;
6314
7443
  }[];
6315
- } | undefined;
6316
- rewardsRecord?: {
6317
- total: number;
6318
7444
  id: string;
6319
- timestamp: string | bigint;
6320
- breakdowns: {
6321
- token: {
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?: {
7461
+ name: string;
7462
+ url: string;
7463
+ description: string;
7464
+ id: string;
7465
+ tags: string[];
7466
+ 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
+ } | undefined;
7515
+ name: string;
7516
+ type: string;
7517
+ tokens: {
6322
7518
  price?: number | null | undefined;
6323
7519
  symbol: string;
6324
7520
  name: string | null;
@@ -6329,60 +7525,23 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6329
7525
  decimals: number;
6330
7526
  verified: boolean;
6331
7527
  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;
6332
7537
  };
6333
- id: number;
6334
- value: number;
6335
- campaignId: string;
6336
- amount: string | bigint;
6337
- dailyRewardsRecordId: string;
6338
- }[];
6339
- } | undefined;
6340
- name: string;
6341
- type: string;
6342
- tokens: {
6343
- price?: number | null | undefined;
6344
- symbol: string;
6345
- name: string | null;
6346
- id: string;
6347
- icon: string;
6348
- chainId: number;
6349
- address: string;
6350
- decimals: number;
6351
- verified: boolean;
6352
- isTest: boolean;
6353
- }[];
6354
- id: string;
6355
- status: string;
6356
- tags: string[];
6357
- identifier: string;
6358
- chain: {
6359
- name: string;
6360
- id: number;
6361
- icon: string;
6362
- };
6363
- chainId: number;
6364
- action: string;
6365
- tvl: number;
6366
- apr: number;
6367
- dailyRewards: number;
6368
- };
6369
- readonly 404: {
6370
- message: string;
6371
- name: string;
6372
- };
6373
- readonly 500: {
6374
- code: string;
6375
- info: string;
6376
- httpCode: number;
6377
- };
6378
- }>>;
6379
- campaigns: {
6380
- get: (options?: {
6381
- headers?: Record<string, unknown> | undefined;
6382
- query?: Record<string, unknown> | undefined;
6383
- fetch?: RequestInit | undefined;
6384
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6385
- 200: {
7538
+ chainId: number;
7539
+ action: string;
7540
+ tvl: number;
7541
+ apr: number;
7542
+ dailyRewards: number;
7543
+ } | null)[];
7544
+ }) & ({
6386
7545
  protocol?: {
6387
7546
  name: string;
6388
7547
  url: string;
@@ -6391,6 +7550,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6391
7550
  tags: string[];
6392
7551
  icon: string;
6393
7552
  } | null | undefined;
7553
+ depositUrl?: string | undefined;
6394
7554
  aprRecord?: {
6395
7555
  timestamp: string | bigint;
6396
7556
  cumulated: number;
@@ -6465,39 +7625,68 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6465
7625
  tvl: number;
6466
7626
  apr: number;
6467
7627
  dailyRewards: number;
6468
- campaigns: {
6469
- campaignStatus?: {
6470
- error?: string | undefined;
6471
- details?: any;
6472
- status: string;
6473
- campaignId: string;
6474
- computedUntil: string | bigint;
6475
- processingStarted: string | bigint;
6476
- } | undefined;
6477
- distributionChain?: {
7628
+ } | null)[];
7629
+ } | {
7630
+ 200: {
7631
+ 200: ({
7632
+ protocol?: {
6478
7633
  name: string;
6479
- id: number;
7634
+ url: string;
7635
+ description: string;
7636
+ id: string;
7637
+ tags: string[];
6480
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
+ }[];
6481
7686
  } | undefined;
7687
+ name: string;
6482
7688
  type: string;
6483
- id: string;
6484
- params: any;
6485
- subType: number | null;
6486
- chain: {
6487
- name: string;
6488
- id: number;
6489
- icon: string;
6490
- };
6491
- startTimestamp: string | bigint;
6492
- endTimestamp: string | bigint;
6493
- computeChainId: number;
6494
- distributionChainId: number;
6495
- campaignId: string;
6496
- rewardTokenId: string;
6497
- amount: string;
6498
- opportunityId: string;
6499
- creatorAddress: string;
6500
- rewardToken: {
7689
+ tokens: {
6501
7690
  price?: number | null | undefined;
6502
7691
  symbol: string;
6503
7692
  name: string | null;
@@ -6508,177 +7697,23 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6508
7697
  decimals: number;
6509
7698
  verified: boolean;
6510
7699
  isTest: boolean;
6511
- };
6512
- }[];
6513
- };
6514
- readonly 404: {
6515
- message: string;
6516
- name: string;
6517
- };
6518
- readonly 500: {
6519
- code: string;
6520
- info: string;
6521
- httpCode: number;
6522
- };
6523
- }>>;
6524
- };
6525
- patch: (body: {
6526
- name?: string | undefined;
6527
- tags?: string[] | undefined;
6528
- }, options: {
6529
- headers: {
6530
- authorization: string;
6531
- };
6532
- query?: Record<string, unknown> | undefined;
6533
- fetch?: RequestInit | undefined;
6534
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6535
- 200: {
6536
- name: string;
6537
- type: import("../../database/api/.generated").$Enums.CampaignType;
6538
- id: string;
6539
- status: import("../../database/api/.generated").$Enums.Status;
6540
- tags: string[];
6541
- identifier: string;
6542
- chainId: number;
6543
- action: import("../../database/api/.generated").$Enums.OpportunityAction;
6544
- depositUrl: string | null;
6545
- mainProtocolId: string | null;
6546
- tvl: number;
6547
- apr: number;
6548
- dailyRewards: number;
6549
- };
6550
- }>>;
6551
- }) & {
6552
- index: {
6553
- post: (body: {
6554
- name?: string | undefined;
6555
- type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
6556
- tokens: {
6557
- chainId: number;
6558
- address: string;
6559
- }[];
6560
- status: "NONE" | "PAST" | "LIVE" | "SOON";
6561
- identifier: string;
6562
- chainId: number;
6563
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
6564
- protocols: string[];
6565
- mainProtocol: string;
6566
- }, options: {
6567
- headers: {
6568
- authorization: string;
6569
- };
6570
- query?: Record<string, unknown> | undefined;
6571
- fetch?: RequestInit | undefined;
6572
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6573
- 200: void;
6574
- }>>;
6575
- get: (options: {
6576
- headers?: Record<string, unknown> | undefined;
6577
- query: {
6578
- sort?: string | undefined;
6579
- name?: string | undefined;
6580
- tokens?: string | undefined;
6581
- status?: string | undefined;
6582
- items?: number | undefined;
6583
- tags?: string | undefined;
6584
- page?: number | undefined;
6585
- chainId?: string | undefined;
6586
- action?: string | undefined;
6587
- mainProtocolId?: string | undefined;
6588
- order?: string | undefined;
6589
- test?: boolean | undefined;
6590
- minimumTvl?: number | undefined;
6591
- };
6592
- fetch?: RequestInit | undefined;
6593
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6594
- 200: {
6595
- aprRecord: {
6596
- cumulated: number;
6597
- timestamp: bigint;
6598
- breakdowns: {
6599
- type: import("../../database/api/.generated").$Enums.AprType;
6600
- id: number;
6601
- identifier: string;
6602
- value: number;
6603
- aprRecordId: string;
6604
- }[];
6605
- };
6606
- tvlRecord: {
6607
- id: string;
6608
- total: number;
6609
- timestamp: bigint;
6610
- breakdowns: {
6611
- type: import("../../database/api/.generated").$Enums.TvlType;
6612
- id: number;
6613
- identifier: string;
6614
- value: number;
6615
- tvlRecordId: string;
6616
7700
  }[];
6617
- };
6618
- rewardsRecord: {
6619
7701
  id: string;
6620
- total: number;
6621
- timestamp: bigint;
6622
- breakdowns: {
7702
+ status: string;
7703
+ tags: string[];
7704
+ identifier: string;
7705
+ chain: {
7706
+ name: string;
6623
7707
  id: number;
6624
- value: number;
6625
- campaignId: string;
6626
- dailyRewardsRecordId: string;
6627
- token: {
6628
- symbol: string;
6629
- name: string | null;
6630
- id: string;
6631
- icon: string;
6632
- chainId: number;
6633
- address: string;
6634
- decimals: number;
6635
- displaySymbol: string;
6636
- verified: boolean;
6637
- isTest: boolean;
6638
- price: number | null;
6639
- };
6640
- amount: bigint;
6641
- }[];
6642
- };
6643
- id: string;
6644
- tokens: ({
6645
- symbol: string;
6646
- name: string | null;
6647
- id: string;
6648
- icon: string;
7708
+ icon: string;
7709
+ };
6649
7710
  chainId: number;
6650
- address: string;
6651
- decimals: number;
6652
- verified: boolean;
6653
- isTest: boolean;
6654
- } & {
6655
- price?: number | null | undefined;
6656
- })[];
6657
- chain: {
6658
- name: string;
6659
- id: number;
6660
- icon: string;
6661
- };
6662
- protocol: {
6663
- name: string;
6664
- url: string;
6665
- description: string;
6666
- id: string;
6667
- tags: string[];
6668
- icon: string;
6669
- } | undefined;
6670
- name: string;
6671
- type: import("../../database/api/.generated").$Enums.CampaignType;
6672
- status: import("../../database/api/.generated").$Enums.Status;
6673
- tags: string[];
6674
- identifier: string;
6675
- chainId: number;
6676
- action: import("../../database/api/.generated").$Enums.OpportunityAction;
6677
- depositUrl: string | null;
6678
- tvl: number;
6679
- apr: number;
6680
- dailyRewards: number;
6681
- }[];
7711
+ action: string;
7712
+ tvl: number;
7713
+ apr: number;
7714
+ dailyRewards: number;
7715
+ } | null)[];
7716
+ };
6682
7717
  }>>;
6683
7718
  };
6684
7719
  count: {
@@ -8913,5 +9948,5 @@ export type Campaign<C extends CampaignType = CampaignType> = CampaignResource<C
8913
9948
  export type Chain = FromPromise<Api["v4"]["chains"]["index"]["get"]>;
8914
9949
  export type Explorer = FromPromise<Api["v4"]["chains"]["index"]["get"]>["explorers"][number];
8915
9950
  export type Token = FromPromise<Api["v4"]["tokens"]["index"]["get"]>;
8916
- export type Reward = NonNullable<Awaited<ReturnType<ReturnType<Api["v4"]["users"]>["rewards"]["full"]["get"]>>["data"]>[number];
9951
+ export type Reward = NonNullable<Awaited<ReturnType<ReturnType<Api["v4"]["users"]>["rewards"]["breakdowns"]["get"]>>["data"]>[number];
8917
9952
  export {};