@merkl/api 0.10.237 → 0.10.238

Sign up to get free protection for your applications and to get access to all the features.
@@ -413,40 +413,45 @@ declare const eden: {
413
413
  };
414
414
  fetch?: RequestInit | undefined;
415
415
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
416
- 200: {
417
- 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;
418
428
  cumulated: number;
419
- timestamp: bigint;
420
429
  breakdowns: {
421
- type: import("../../database/api/.generated").$Enums.AprType;
430
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
422
431
  id: number;
423
432
  identifier: string;
424
433
  value: number;
425
434
  aprRecordId: string;
426
435
  }[];
427
- };
428
- tvlRecord: {
429
- id: string;
436
+ } | undefined;
437
+ tvlRecord?: {
430
438
  total: number;
431
- timestamp: bigint;
439
+ timestamp: string | bigint;
432
440
  breakdowns: {
433
- type: import("../../database/api/.generated").$Enums.TvlType;
441
+ type: "TOKEN" | "PROTOCOL";
434
442
  id: number;
435
443
  identifier: string;
436
444
  value: number;
437
445
  tvlRecordId: string;
438
446
  }[];
439
- };
440
- rewardsRecord: {
441
- id: string;
447
+ } | undefined;
448
+ rewardsRecord?: {
442
449
  total: number;
443
- timestamp: bigint;
450
+ id: string;
451
+ timestamp: string | bigint;
444
452
  breakdowns: {
445
- id: number;
446
- value: number;
447
- campaignId: string;
448
- dailyRewardsRecordId: string;
449
453
  token: {
454
+ price?: number | null | undefined;
450
455
  symbol: string;
451
456
  name: string | null;
452
457
  id: string;
@@ -454,17 +459,20 @@ declare const eden: {
454
459
  chainId: number;
455
460
  address: string;
456
461
  decimals: number;
457
- displaySymbol: string;
458
462
  verified: boolean;
459
463
  isTest: boolean;
460
- price: number | null;
461
464
  };
462
- amount: bigint;
465
+ id: number;
466
+ value: number;
467
+ campaignId: string;
468
+ amount: string | bigint;
469
+ dailyRewardsRecordId: string;
463
470
  }[];
464
- };
465
- id: string;
466
- depositUrl: string | undefined;
467
- tokens: ({
471
+ } | undefined;
472
+ name: string;
473
+ type: string;
474
+ tokens: {
475
+ price?: number | null | undefined;
468
476
  symbol: string;
469
477
  name: string | null;
470
478
  id: string;
@@ -474,153 +482,85 @@ declare const eden: {
474
482
  decimals: number;
475
483
  verified: boolean;
476
484
  isTest: boolean;
477
- } & {
478
- price?: number | null | undefined;
479
- })[];
485
+ }[];
486
+ id: string;
487
+ status: string;
488
+ tags: string[];
489
+ identifier: string;
480
490
  chain: {
481
491
  name: string;
482
492
  id: number;
483
493
  icon: string;
484
494
  };
485
- 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?: {
486
506
  name: string;
487
507
  url: string;
488
508
  description: string;
489
509
  id: string;
490
510
  tags: string[];
491
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
+ }[];
492
559
  } | undefined;
493
560
  name: string;
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: {
561
+ type: string;
562
+ tokens: {
563
+ price?: number | null | undefined;
624
564
  symbol: string;
625
565
  name: string | null;
626
566
  id: string;
@@ -630,16 +570,419 @@ declare const eden: {
630
570
  decimals: number;
631
571
  verified: boolean;
632
572
  isTest: boolean;
633
- } & {
634
- price?: number | null | undefined;
635
- };
636
- distributionChain: {
573
+ }[];
574
+ id: string;
575
+ status: string;
576
+ tags: string[];
577
+ identifier: string;
578
+ chain: {
637
579
  name: string;
638
580
  id: number;
639
581
  icon: string;
640
- } | undefined;
641
- campaignStatus: {
642
- error: 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: {
980
+ name: string;
981
+ id: number;
982
+ icon: string;
983
+ } | undefined;
984
+ campaignStatus: {
985
+ error: string;
643
986
  details: import("database/api/.generated/runtime/library").JsonValue;
644
987
  status: import("../../database/api/.generated").$Enums.RunStatus;
645
988
  campaignId: string;
@@ -2932,40 +3275,303 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2932
3275
  };
2933
3276
  headers: unknown;
2934
3277
  response: {
2935
- 200: {
2936
- 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;
2937
3378
  cumulated: number;
2938
- timestamp: bigint;
2939
3379
  breakdowns: {
2940
- type: import("../../database/api/.generated").$Enums.AprType;
3380
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
2941
3381
  id: number;
2942
3382
  identifier: string;
2943
3383
  value: number;
2944
3384
  aprRecordId: string;
2945
3385
  }[];
2946
- };
2947
- tvlRecord: {
2948
- id: string;
3386
+ } | undefined;
3387
+ tvlRecord?: {
2949
3388
  total: number;
2950
- timestamp: bigint;
3389
+ timestamp: string | bigint;
2951
3390
  breakdowns: {
2952
- type: import("../../database/api/.generated").$Enums.TvlType;
3391
+ type: "TOKEN" | "PROTOCOL";
2953
3392
  id: number;
2954
3393
  identifier: string;
2955
3394
  value: number;
2956
3395
  tvlRecordId: string;
2957
3396
  }[];
2958
- };
2959
- rewardsRecord: {
2960
- id: string;
3397
+ } | undefined;
3398
+ rewardsRecord?: {
2961
3399
  total: number;
2962
- timestamp: bigint;
3400
+ id: string;
3401
+ timestamp: string | bigint;
2963
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
+ };
2964
3415
  id: number;
2965
3416
  value: number;
2966
3417
  campaignId: string;
3418
+ amount: string | bigint;
2967
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: {
2968
3573
  token: {
3574
+ price?: number | null | undefined;
2969
3575
  symbol: string;
2970
3576
  name: string | null;
2971
3577
  id: string;
@@ -2973,17 +3579,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2973
3579
  chainId: number;
2974
3580
  address: string;
2975
3581
  decimals: number;
2976
- displaySymbol: string;
2977
3582
  verified: boolean;
2978
3583
  isTest: boolean;
2979
- price: number | null;
2980
3584
  };
2981
- amount: bigint;
3585
+ id: number;
3586
+ value: number;
3587
+ campaignId: string;
3588
+ amount: string | bigint;
3589
+ dailyRewardsRecordId: string;
2982
3590
  }[];
2983
- };
2984
- id: string;
2985
- depositUrl: string | undefined;
2986
- tokens: ({
3591
+ } | undefined;
3592
+ name: string;
3593
+ type: string;
3594
+ tokens: {
3595
+ price?: number | null | undefined;
2987
3596
  symbol: string;
2988
3597
  name: string | null;
2989
3598
  id: string;
@@ -2993,33 +3602,110 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2993
3602
  decimals: number;
2994
3603
  verified: boolean;
2995
3604
  isTest: boolean;
2996
- } & {
2997
- price?: number | null | undefined;
2998
- })[];
3605
+ }[];
3606
+ id: string;
3607
+ status: string;
3608
+ tags: string[];
3609
+ identifier: string;
2999
3610
  chain: {
3000
3611
  name: string;
3001
3612
  id: number;
3002
3613
  icon: string;
3003
3614
  };
3004
- 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;
3005
3679
  name: string;
3006
- url: string;
3007
- 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
+ }[];
3008
3693
  id: string;
3694
+ status: string;
3009
3695
  tags: string[];
3010
- icon: string;
3011
- } | undefined;
3012
- name: string;
3013
- type: import("../../database/api/.generated").$Enums.CampaignType;
3014
- status: import("../../database/api/.generated").$Enums.Status;
3015
- tags: string[];
3016
- identifier: string;
3017
- chainId: number;
3018
- action: import("../../database/api/.generated").$Enums.OpportunityAction;
3019
- tvl: number;
3020
- apr: number;
3021
- dailyRewards: number;
3022
- }[];
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
+ };
3023
3709
  };
3024
3710
  };
3025
3711
  };
@@ -6094,236 +6780,741 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6094
6780
  symbol: string;
6095
6781
  decimals: number;
6096
6782
  };
6097
- };
6098
- };
6099
- };
6100
- };
6101
- } & {
6102
- v3: {
6103
- tokenUnclaimed: {
6104
- get: {
6105
- body: unknown;
6106
- params: {};
6107
- query: {
6108
- 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
+ };
6109
7054
  chainId: number;
7055
+ action: string;
7056
+ tvl: number;
7057
+ apr: number;
7058
+ dailyRewards: number;
6110
7059
  };
6111
- headers: unknown;
6112
- response: {
6113
- 200: {
6114
- message: string;
6115
- };
6116
- };
6117
- };
6118
- };
6119
- };
6120
- } & {
6121
- v3: {
6122
- updates: {
6123
- get: {
6124
- body: unknown;
6125
- params: {};
6126
- query: {};
6127
- headers: unknown;
6128
- response: {
6129
- 200: {
6130
- [x: number]: {
6131
- [campaignId: string]: number;
6132
- };
6133
- };
6134
- readonly 400: {
6135
- message?: string | undefined;
6136
- error: string;
6137
- };
7060
+ readonly 404: {
7061
+ message: string;
7062
+ name: string;
6138
7063
  };
6139
- };
6140
- };
6141
- };
6142
- } & {
6143
- v3: {
6144
- userRewards: {
6145
- get: {
6146
- body: unknown;
6147
- params: {};
6148
- query: {
6149
- mainParameter?: string | undefined;
6150
- rewardToken?: string | undefined;
6151
- proof?: string | undefined;
6152
- reloadChainId?: number | undefined;
6153
- chainId: never;
6154
- user: string;
7064
+ readonly 500: {
7065
+ code: string;
7066
+ info: string;
7067
+ httpCode: number;
6155
7068
  };
6156
- headers: unknown;
6157
- 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<{
6158
7076
  200: {
6159
- [x: string]: {
6160
- pending?: string | undefined;
6161
- 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;
6162
7136
  symbol: string;
7137
+ name: string | null;
7138
+ id: string;
7139
+ icon: string;
7140
+ chainId: number;
7141
+ address: string;
6163
7142
  decimals: number;
6164
- unclaimed: string;
6165
- accumulated: string;
6166
- reasons: {
6167
- [x: string]: {
6168
- pending?: string | undefined;
6169
- unclaimed: string;
6170
- accumulated: string;
6171
- };
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;
6172
7203
  };
6173
- };
7204
+ }[];
6174
7205
  };
6175
- };
7206
+ readonly 404: {
7207
+ message: string;
7208
+ name: string;
7209
+ };
7210
+ readonly 500: {
7211
+ code: string;
7212
+ info: string;
7213
+ httpCode: number;
7214
+ };
7215
+ }>>;
6176
7216
  };
6177
- };
6178
- };
6179
- }, {
6180
- derive: {};
6181
- resolve: {};
6182
- schema: {};
6183
- }, {
6184
- derive: {};
6185
- resolve: {};
6186
- schema: {};
6187
- }>, config?: import("@elysiajs/eden").Treaty.Config) => {
6188
- index: {
6189
- get: (options?: {
6190
- headers?: Record<string, unknown> | undefined;
6191
- query?: Record<string, unknown> | undefined;
6192
- fetch?: RequestInit | undefined;
6193
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6194
- 200: string;
6195
- }>>;
6196
- };
6197
- v1: {
6198
- allowances: {
6199
- get: (options: {
6200
- headers?: Record<string, unknown> | undefined;
6201
- query: {
6202
- additionalTokenAddresses?: string[] | undefined;
6203
- chainId: number;
6204
- user: string;
7217
+ patch: (body: {
7218
+ name?: string | undefined;
7219
+ tags?: string[] | undefined;
7220
+ }, options: {
7221
+ headers: {
7222
+ authorization: string;
6205
7223
  };
7224
+ query?: Record<string, unknown> | undefined;
6206
7225
  fetch?: RequestInit | undefined;
6207
7226
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6208
7227
  200: {
6209
- [x: string]: {
6210
- symbol: string;
6211
- balance: string;
6212
- decimals: number;
6213
- };
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;
6214
7241
  };
6215
7242
  }>>;
6216
- };
6217
- balances: {
6218
- get: (options: {
6219
- headers?: Record<string, unknown> | undefined;
6220
- query: {
6221
- 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;
6222
7254
  chainId: number;
6223
- user: string;
6224
- };
6225
- fetch?: RequestInit | undefined;
6226
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6227
- 200: {
6228
- [x: string]: {
6229
- symbol: string;
6230
- balance: string;
6231
- decimals: number;
7255
+ action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
7256
+ protocols: string[];
7257
+ mainProtocol: string;
7258
+ }, options: {
7259
+ headers: {
7260
+ authorization: string;
6232
7261
  };
6233
- };
6234
- }>>;
6235
- };
6236
- prices: {
6237
- get: (options: {
6238
- headers?: Record<string, unknown> | undefined;
6239
- query: {};
6240
- fetch?: RequestInit | undefined;
6241
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6242
- 200: {
6243
- rate: number;
6244
- token: string;
6245
- }[];
6246
- }>>;
6247
- };
6248
- tokens: {
6249
- get: (options: {
6250
- headers?: Record<string, unknown> | undefined;
6251
- query: {};
6252
- fetch?: RequestInit | undefined;
6253
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6254
- [x: string]: any;
6255
- 200: any;
6256
- }>>;
6257
- };
6258
- };
6259
- v2: {
6260
- merkl: {
6261
- get: (options: {
6262
- headers?: Record<string, unknown> | undefined;
6263
- query: {
6264
- user?: string | undefined;
6265
- chainIds?: number | number[] | undefined;
6266
- AMMs?: string | string[] | undefined;
6267
- onlyLive?: string | undefined;
6268
- "AMMs[]"?: string | string[] | undefined;
6269
- "AMMs[0]"?: string | undefined;
6270
- "chainIds[]"?: number | number[] | undefined;
6271
- "chainIds[0]"?: number | undefined;
6272
- };
6273
- fetch?: RequestInit | undefined;
6274
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6275
- [x: string]: any;
6276
- 200: any;
6277
- }>>;
6278
- };
6279
- };
6280
- v4: {
6281
- opportunities: ((params: {
6282
- id: string | number;
6283
- }) => {
6284
- get: (options?: {
6285
- headers?: Record<string, unknown> | undefined;
6286
- query?: Record<string, unknown> | undefined;
6287
- fetch?: RequestInit | undefined;
6288
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6289
- 200: {
6290
- 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;
6291
7342
  name: string;
6292
- url: string;
6293
- 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
+ }[];
6294
7356
  id: string;
7357
+ status: string;
6295
7358
  tags: string[];
6296
- icon: string;
6297
- } | null | undefined;
6298
- depositUrl?: string | undefined;
6299
- aprRecord?: {
6300
- timestamp: string | bigint;
6301
- cumulated: number;
6302
- breakdowns: {
6303
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
6304
- id: number;
6305
- identifier: string;
6306
- value: number;
6307
- aprRecordId: string;
6308
- }[];
6309
- } | undefined;
6310
- tvlRecord?: {
6311
- total: number;
6312
- timestamp: string | bigint;
6313
- breakdowns: {
6314
- type: "TOKEN" | "PROTOCOL";
7359
+ identifier: string;
7360
+ chain: {
7361
+ name: string;
6315
7362
  id: number;
6316
- identifier: string;
6317
- value: number;
6318
- 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;
6319
7443
  }[];
6320
- } | undefined;
6321
- rewardsRecord?: {
6322
- total: number;
6323
7444
  id: string;
6324
- timestamp: string | bigint;
6325
- breakdowns: {
6326
- 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: {
6327
7518
  price?: number | null | undefined;
6328
7519
  symbol: string;
6329
7520
  name: string | null;
@@ -6334,60 +7525,23 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6334
7525
  decimals: number;
6335
7526
  verified: boolean;
6336
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;
6337
7537
  };
6338
- id: number;
6339
- value: number;
6340
- campaignId: string;
6341
- amount: string | bigint;
6342
- dailyRewardsRecordId: string;
6343
- }[];
6344
- } | undefined;
6345
- name: string;
6346
- type: string;
6347
- tokens: {
6348
- price?: number | null | undefined;
6349
- symbol: string;
6350
- name: string | null;
6351
- id: string;
6352
- icon: string;
6353
- chainId: number;
6354
- address: string;
6355
- decimals: number;
6356
- verified: boolean;
6357
- isTest: boolean;
6358
- }[];
6359
- id: string;
6360
- status: string;
6361
- tags: string[];
6362
- identifier: string;
6363
- chain: {
6364
- name: string;
6365
- id: number;
6366
- icon: string;
6367
- };
6368
- chainId: number;
6369
- action: string;
6370
- tvl: number;
6371
- apr: number;
6372
- dailyRewards: number;
6373
- };
6374
- readonly 404: {
6375
- message: string;
6376
- name: string;
6377
- };
6378
- readonly 500: {
6379
- code: string;
6380
- info: string;
6381
- httpCode: number;
6382
- };
6383
- }>>;
6384
- campaigns: {
6385
- get: (options?: {
6386
- headers?: Record<string, unknown> | undefined;
6387
- query?: Record<string, unknown> | undefined;
6388
- fetch?: RequestInit | undefined;
6389
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6390
- 200: {
7538
+ chainId: number;
7539
+ action: string;
7540
+ tvl: number;
7541
+ apr: number;
7542
+ dailyRewards: number;
7543
+ } | null)[];
7544
+ }) & ({
6391
7545
  protocol?: {
6392
7546
  name: string;
6393
7547
  url: string;
@@ -6471,39 +7625,68 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6471
7625
  tvl: number;
6472
7626
  apr: number;
6473
7627
  dailyRewards: number;
6474
- campaigns: {
6475
- campaignStatus?: {
6476
- error?: string | undefined;
6477
- details?: any;
6478
- status: string;
6479
- campaignId: string;
6480
- computedUntil: string | bigint;
6481
- processingStarted: string | bigint;
6482
- } | undefined;
6483
- distributionChain?: {
7628
+ } | null)[];
7629
+ } | {
7630
+ 200: {
7631
+ 200: ({
7632
+ protocol?: {
6484
7633
  name: string;
6485
- id: number;
7634
+ url: string;
7635
+ description: string;
7636
+ id: string;
7637
+ tags: string[];
6486
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
+ }[];
6487
7686
  } | undefined;
7687
+ name: string;
6488
7688
  type: string;
6489
- id: string;
6490
- params: any;
6491
- subType: number | null;
6492
- chain: {
6493
- name: string;
6494
- id: number;
6495
- icon: string;
6496
- };
6497
- startTimestamp: string | bigint;
6498
- endTimestamp: string | bigint;
6499
- computeChainId: number;
6500
- distributionChainId: number;
6501
- campaignId: string;
6502
- rewardTokenId: string;
6503
- amount: string;
6504
- opportunityId: string;
6505
- creatorAddress: string;
6506
- rewardToken: {
7689
+ tokens: {
6507
7690
  price?: number | null | undefined;
6508
7691
  symbol: string;
6509
7692
  name: string | null;
@@ -6514,177 +7697,23 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6514
7697
  decimals: number;
6515
7698
  verified: boolean;
6516
7699
  isTest: boolean;
6517
- };
6518
- }[];
6519
- };
6520
- readonly 404: {
6521
- message: string;
6522
- name: string;
6523
- };
6524
- readonly 500: {
6525
- code: string;
6526
- info: string;
6527
- httpCode: number;
6528
- };
6529
- }>>;
6530
- };
6531
- patch: (body: {
6532
- name?: string | undefined;
6533
- tags?: string[] | undefined;
6534
- }, options: {
6535
- headers: {
6536
- authorization: string;
6537
- };
6538
- query?: Record<string, unknown> | undefined;
6539
- fetch?: RequestInit | undefined;
6540
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6541
- 200: {
6542
- name: string;
6543
- type: import("../../database/api/.generated").$Enums.CampaignType;
6544
- id: string;
6545
- status: import("../../database/api/.generated").$Enums.Status;
6546
- tags: string[];
6547
- identifier: string;
6548
- chainId: number;
6549
- action: import("../../database/api/.generated").$Enums.OpportunityAction;
6550
- depositUrl: string | null;
6551
- mainProtocolId: string | null;
6552
- tvl: number;
6553
- apr: number;
6554
- dailyRewards: number;
6555
- };
6556
- }>>;
6557
- }) & {
6558
- index: {
6559
- post: (body: {
6560
- name?: string | undefined;
6561
- type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
6562
- tokens: {
6563
- chainId: number;
6564
- address: string;
6565
- }[];
6566
- status: "NONE" | "PAST" | "LIVE" | "SOON";
6567
- identifier: string;
6568
- chainId: number;
6569
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
6570
- protocols: string[];
6571
- mainProtocol: string;
6572
- }, options: {
6573
- headers: {
6574
- authorization: string;
6575
- };
6576
- query?: Record<string, unknown> | undefined;
6577
- fetch?: RequestInit | undefined;
6578
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6579
- 200: void;
6580
- }>>;
6581
- get: (options: {
6582
- headers?: Record<string, unknown> | undefined;
6583
- query: {
6584
- sort?: string | undefined;
6585
- name?: string | undefined;
6586
- tokens?: string | undefined;
6587
- status?: string | undefined;
6588
- items?: number | undefined;
6589
- tags?: string | undefined;
6590
- page?: number | undefined;
6591
- chainId?: string | undefined;
6592
- action?: string | undefined;
6593
- mainProtocolId?: string | undefined;
6594
- order?: string | undefined;
6595
- test?: boolean | undefined;
6596
- minimumTvl?: number | undefined;
6597
- };
6598
- fetch?: RequestInit | undefined;
6599
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6600
- 200: {
6601
- aprRecord: {
6602
- cumulated: number;
6603
- timestamp: bigint;
6604
- breakdowns: {
6605
- type: import("../../database/api/.generated").$Enums.AprType;
6606
- id: number;
6607
- identifier: string;
6608
- value: number;
6609
- aprRecordId: string;
6610
- }[];
6611
- };
6612
- tvlRecord: {
6613
- id: string;
6614
- total: number;
6615
- timestamp: bigint;
6616
- breakdowns: {
6617
- type: import("../../database/api/.generated").$Enums.TvlType;
6618
- id: number;
6619
- identifier: string;
6620
- value: number;
6621
- tvlRecordId: string;
6622
7700
  }[];
6623
- };
6624
- rewardsRecord: {
6625
7701
  id: string;
6626
- total: number;
6627
- timestamp: bigint;
6628
- breakdowns: {
7702
+ status: string;
7703
+ tags: string[];
7704
+ identifier: string;
7705
+ chain: {
7706
+ name: string;
6629
7707
  id: number;
6630
- value: number;
6631
- campaignId: string;
6632
- dailyRewardsRecordId: string;
6633
- token: {
6634
- symbol: string;
6635
- name: string | null;
6636
- id: string;
6637
- icon: string;
6638
- chainId: number;
6639
- address: string;
6640
- decimals: number;
6641
- displaySymbol: string;
6642
- verified: boolean;
6643
- isTest: boolean;
6644
- price: number | null;
6645
- };
6646
- amount: bigint;
6647
- }[];
6648
- };
6649
- id: string;
6650
- depositUrl: string | undefined;
6651
- tokens: ({
6652
- symbol: string;
6653
- name: string | null;
6654
- id: string;
6655
- icon: string;
7708
+ icon: string;
7709
+ };
6656
7710
  chainId: number;
6657
- address: string;
6658
- decimals: number;
6659
- verified: boolean;
6660
- isTest: boolean;
6661
- } & {
6662
- price?: number | null | undefined;
6663
- })[];
6664
- chain: {
6665
- name: string;
6666
- id: number;
6667
- icon: string;
6668
- };
6669
- protocol: {
6670
- name: string;
6671
- url: string;
6672
- description: string;
6673
- id: string;
6674
- tags: string[];
6675
- icon: string;
6676
- } | undefined;
6677
- name: string;
6678
- type: import("../../database/api/.generated").$Enums.CampaignType;
6679
- status: import("../../database/api/.generated").$Enums.Status;
6680
- tags: string[];
6681
- identifier: string;
6682
- chainId: number;
6683
- action: import("../../database/api/.generated").$Enums.OpportunityAction;
6684
- tvl: number;
6685
- apr: number;
6686
- dailyRewards: number;
6687
- }[];
7711
+ action: string;
7712
+ tvl: number;
7713
+ apr: number;
7714
+ dailyRewards: number;
7715
+ } | null)[];
7716
+ };
6688
7717
  }>>;
6689
7718
  };
6690
7719
  count: {
@@ -8919,5 +9948,5 @@ export type Campaign<C extends CampaignType = CampaignType> = CampaignResource<C
8919
9948
  export type Chain = FromPromise<Api["v4"]["chains"]["index"]["get"]>;
8920
9949
  export type Explorer = FromPromise<Api["v4"]["chains"]["index"]["get"]>["explorers"][number];
8921
9950
  export type Token = FromPromise<Api["v4"]["tokens"]["index"]["get"]>;
8922
- 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];
8923
9952
  export {};